2 # From configure.ac Revision: 1.4 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.0.040304.
6 # Report bugs to <martin.quinson@ens-lyon.fr>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Remove one level of quotation (which was required for Make).
254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259 if test "X$1" = X--no-reexec; then
260 # Discard the --no-reexec flag, and continue.
262 elif test "X$1" = X--fallback-echo; then
263 # Avoid inline document here, it may be left over
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266 # Yippee, $echo works!
269 # Restart under the correct shell.
270 exec $SHELL "$0" --no-reexec ${1+"$@"}
273 if test "X$1" = X--fallback-echo; then
274 # used as fallback echo
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292 echo_test_string="`eval $cmd`" &&
293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302 test "X$echo_testing_string" = "X$echo_test_string"; then
305 # The Solaris, AIX, and Digital Unix default echo programs unquote
306 # backslashes. This makes it impossible to quote backslashes using
307 # echo "$something" | sed 's/\\/\\\\/g'
309 # So, first we look for a working echo in the user's PATH.
311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312 for dir in $PATH /usr/ucb; do
314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317 test "X$echo_testing_string" = "X$echo_test_string"; then
324 if test "X$echo" = Xecho; then
325 # We didn't find a better echo, so look for alternatives.
326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328 test "X$echo_testing_string" = "X$echo_test_string"; then
329 # This shell has a builtin print -r that does the trick.
331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332 test "X$CONFIG_SHELL" != X/bin/ksh; then
333 # If we have ksh, try running configure again with it.
334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335 export ORIGINAL_CONFIG_SHELL
336 CONFIG_SHELL=/bin/ksh
338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348 test "X$echo_testing_string" = 'X\t' &&
349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 SHELL="$CONFIG_SHELL"
355 echo="$CONFIG_SHELL $0 --fallback-echo"
356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357 test "X$echo_testing_string" = 'X\t' &&
358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
360 echo="$CONFIG_SHELL $0 --fallback-echo"
362 # maybe with a smaller string...
365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 if test "$prev" != 'sed 50q "$0"'; then
374 echo_test_string=`eval $prev`
375 export echo_test_string
376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 # Oops. We lost completely, so just stick with echo.
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 tagnames=${tagnames+${tagnames},}CXX
399 tagnames=${tagnames+${tagnames},}F77
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
417 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete. It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
424 # Identity of this package.
426 PACKAGE_TARNAME='gras'
427 PACKAGE_VERSION='0.0.040304'
428 PACKAGE_STRING='GRAS 0.0.040304'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
431 ac_unique_file="src/include/gras.h"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
436 # include <sys/types.h>
439 # include <sys/stat.h>
450 # if !STDC_HEADERS && HAVE_MEMORY_H
456 # include <strings.h>
459 # include <inttypes.h>
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS HTML_DIR PKG_CONFIG ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE ACI_CACHE_PROG aci_module_desc_XML aci_pkg_config_XML HAVE_XML CFLAGS_XML LIBS_XML aci_module_desc_SimGrid aci_pkg_prefix_SimGrid aci_pkg_inc_SimGrid aci_pkg_lib_SimGrid aci_pkg_extra_SimGrid HAVE_SimGrid CFLAGS_SimGrid LIBS_SimGrid MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT cflags_set BASH WARNING LTLIBOBJS'
472 # Initialize some variables set by options.
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
484 program_transform_name=s,x,x,
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
587 -help | --help | --hel | --he | -h)
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 # Obsolete; use --without-fp.
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
717 -site=* | --site=* | --sit=*)
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 -version | --version | --versio | --versi | --vers | -V)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
766 # Obsolete; use --with-x.
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
879 if test ! -r $srcdir/$ac_unique_file; then
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
952 # Report the --help message.
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
958 \`configure' configures GRAS 0.0.040304 to adapt to many kinds of systems.
960 Usage: $0 [OPTION]... [VAR=VALUE]...
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
965 Defaults for the options are specified in brackets.
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
992 For better control, use the options below.
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1012 --program-prefix=PREFIX prepend PREFIX to installed program names
1013 --program-suffix=SUFFIX append SUFFIX to installed program names
1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1017 --build=BUILD configure for building on BUILD [guessed]
1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 --target=TARGET configure for building compilers for TARGET [HOST]
1023 if test -n "$ac_init_help"; then
1024 case $ac_init_help in
1025 short | recursive ) echo "Configuration of GRAS 0.0.040304:";;
1030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-dependency-tracking Speeds up one-time builds
1039 --enable-dependency-tracking Do not reject slow dependency extractors
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-gtk-doc use gtk-doc to build documentation default=no
1042 --enable-maintainer-mode enable make rules and dependencies not useful
1043 (and sometimes confusing) to the casual installer
1044 --enable-compile-warnings=no/minimum/yes Turn on compiler warnings.
1045 --enable-iso-c Try to warn if code is not ISO C
1048 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1049 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1050 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1051 --with-pic try to use only PIC/non-PIC objects [default=use
1054 include additional configurations [automatic]
1055 --with-html-dir=PATH path to installed docs
1056 --with-SimGrid=DIR root directory of the SimGrid simulator installation
1057 --with-SimGrid-includes=DIR
1058 specify exact include dir for the SimGrid simulator headers
1059 --with-SimGrid-libraries=DIR
1060 specify exact library dir for the SimGrid simulator library
1061 --with-SimGrid-extra=ARG
1062 specify extra args to pass to the linker to get the
1063 the SimGrid simulator library (with no space. A sed to change "!"
1066 Some influential environment variables:
1067 CC C compiler command
1068 CFLAGS C compiler flags
1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
1074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
1076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1083 Report bugs to <martin.quinson@ens-lyon.fr>.
1087 if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1094 if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 ac_dir_suffix= ac_top_builddir=
1103 .) # No --srcdir option. We are building in place.
1105 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1121 .) ac_abs_builddir="$ac_dir";;
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
1166 test -f $ac_srcdir/configure.in; then
1168 $ac_configure --help
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1179 GRAS configure 0.0.040304
1180 generated by GNU Autoconf 2.59
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1190 This file contains any messages produced by compilers while
1191 running configure, to aid debugging if configure makes a mistake.
1193 It was created by GRAS $as_me 0.0.040304, which was
1194 generated by GNU Autoconf 2.59. Invocation command line was
1205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1228 test -z "$as_dir" && as_dir=.
1229 echo "PATH: $as_dir"
1244 # Keep a trace of the command line.
1245 # Strip out --no-create and --no-recursion so they do not pile up.
1246 # Strip out --silent because we don't want to record it for future runs.
1247 # Also quote any args containing shell meta-characters.
1248 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_must_keep_next=false
1259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270 if test $ac_must_keep_next = true; then
1271 ac_must_keep_next=false # Got value, back to normal.
1274 *=* | --config-cache | -C | -disable-* | --disable-* \
1275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277 | -with-* | --with-* | -without-* | --without-* | --x)
1278 case "$ac_configure_args0 " in
1279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282 -* ) ac_must_keep_next=true ;;
1285 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286 # Get rid of the leading space.
1292 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1295 # When interrupted or exit'd, cleanup temporary files, and complete
1296 # config.log. We remove comments because anyway the quotes in there
1297 # would cause problems or look ugly.
1298 # WARNING: Be sure not to use single quotes in there, as some shells,
1299 # such as our DU 5.0 friend, will then `close' the trap.
1300 trap 'exit_status=$?
1301 # Save into config.log some information that might help in debugging.
1306 ## ---------------- ##
1307 ## Cache variables. ##
1308 ## ---------------- ##
1311 # The following way of writing the cache mishandles newlines in values,
1314 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1329 ## ----------------- ##
1330 ## Output variables. ##
1331 ## ----------------- ##
1334 for ac_var in $ac_subst_vars
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1341 if test -n "$ac_subst_files"; then
1348 for ac_var in $ac_subst_files
1350 eval ac_val=$`echo $ac_var`
1351 echo "$ac_var='"'"'$ac_val'"'"'"
1356 if test -s confdefs.h; then
1363 sed "/^$/d" confdefs.h | sort
1366 test "$ac_signal" != 0 &&
1367 echo "$as_me: caught signal $ac_signal"
1368 echo "$as_me: exit $exit_status"
1370 rm -f core *.core &&
1371 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374 for ac_signal in 1 2 13 15; do
1375 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1380 rm -rf conftest* confdefs.h
1381 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 # Predefined preprocessor variables.
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_NAME "$PACKAGE_NAME"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_STRING "$PACKAGE_STRING"
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1411 # Let the site file select an alternate cache file if it wants to.
1412 # Prefer explicitly selected file to automatically selected ones.
1413 if test -z "$CONFIG_SITE"; then
1414 if test "x$prefix" != xNONE; then
1415 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420 for ac_site_file in $CONFIG_SITE; do
1421 if test -r "$ac_site_file"; then
1422 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423 echo "$as_me: loading site script $ac_site_file" >&6;}
1424 sed 's/^/| /' "$ac_site_file" >&5
1429 if test -r "$cache_file"; then
1430 # Some versions of bash will fail to source /dev/null (special
1431 # files actually), so we avoid doing that.
1432 if test -f "$cache_file"; then
1433 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434 echo "$as_me: loading cache $cache_file" >&6;}
1436 [\\/]* | ?:[\\/]* ) . $cache_file;;
1437 *) . ./$cache_file;;
1441 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442 echo "$as_me: creating cache $cache_file" >&6;}
1446 # Check that the precious variables saved in the cache have kept the same
1448 ac_cache_corrupted=false
1449 for ac_var in `(set) 2>&1 |
1450 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1451 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452 eval ac_new_set=\$ac_env_${ac_var}_set
1453 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454 eval ac_new_val="\$ac_env_${ac_var}_value"
1455 case $ac_old_set,$ac_new_set in
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1466 if test "x$ac_old_val" != "x$ac_new_val"; then
1467 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1468 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1469 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1470 echo "$as_me: former value: $ac_old_val" >&2;}
1471 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1472 echo "$as_me: current value: $ac_new_val" >&2;}
1473 ac_cache_corrupted=:
1476 # Pass precious variables to config.status.
1477 if test "$ac_new_set" = set; then
1479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481 *) ac_arg=$ac_var=$ac_new_val ;;
1483 case " $ac_configure_args " in
1484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1485 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1489 if $ac_cache_corrupted; then
1490 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494 { (exit 1); exit 1; }; }
1498 ac_cpp='$CPP $CPPFLAGS'
1499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534 if test -f $ac_dir/install-sh; then
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1538 elif test -f $ac_dir/install.sh; then
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1542 elif test -f $ac_dir/shtool; then
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 if test -z "$ac_aux_dir"; then
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551 { (exit 1); exit 1; }; }
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1557 # Make sure we can run config.sub.
1558 $ac_config_sub sun4 >/dev/null 2>&1 ||
1559 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561 { (exit 1); exit 1; }; }
1563 echo "$as_me:$LINENO: checking build system type" >&5
1564 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565 if test "${ac_cv_build+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 ac_cv_build_alias=$build_alias
1569 test -z "$ac_cv_build_alias" &&
1570 ac_cv_build_alias=`$ac_config_guess`
1571 test -z "$ac_cv_build_alias" &&
1572 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574 { (exit 1); exit 1; }; }
1575 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1581 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582 echo "${ECHO_T}$ac_cv_build" >&6
1584 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589 echo "$as_me:$LINENO: checking host system type" >&5
1590 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1591 if test "${ac_cv_host+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 ac_cv_host_alias=$host_alias
1595 test -z "$ac_cv_host_alias" &&
1596 ac_cv_host_alias=$ac_cv_build_alias
1597 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1599 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1603 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1604 echo "${ECHO_T}$ac_cv_host" >&6
1606 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611 echo "$as_me:$LINENO: checking target system type" >&5
1612 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1613 if test "${ac_cv_target+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 ac_cv_target_alias=$target_alias
1617 test "x$ac_cv_target_alias" = "x" &&
1618 ac_cv_target_alias=$ac_cv_host_alias
1619 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1621 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1625 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1626 echo "${ECHO_T}$ac_cv_target" >&6
1627 target=$ac_cv_target
1628 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633 # The aliases save the names the user supplied, while $host etc.
1634 # will get canonicalized.
1635 test -n "$target_alias" &&
1636 test "$program_prefix$program_suffix$program_transform_name" = \
1638 program_prefix=${target_alias}-
1640 ac_cpp='$CPP $CPPFLAGS'
1641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1646 ac_config_headers="$ac_config_headers src/gras_config.h"
1648 am__api_version="1.7"
1649 # Find a good install program. We prefer a C program (faster),
1650 # so one script is as good as another. But avoid the broken or
1651 # incompatible versions:
1652 # SysV /etc/install, /usr/sbin/install
1653 # SunOS /usr/etc/install
1654 # IRIX /sbin/install
1656 # AmigaOS /C/install, which installs bootblocks on floppy discs
1657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1660 # OS/2's system install, which has a completely different semantic
1661 # ./install, which can be erroneously created by make from ./install.sh.
1662 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1663 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1664 if test -z "$INSTALL"; then
1665 if test "${ac_cv_path_install+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 test -z "$as_dir" && as_dir=.
1673 # Account for people who put trailing slashes in PATH elements.
1675 ./ | .// | /cC/* | \
1676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1677 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1680 # OSF1 and SCO ODT 3.0 have their own names for install.
1681 # Don't use installbsd from OSF since it installs stuff as root
1683 for ac_prog in ginstall scoinst install; do
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1686 if test $ac_prog = install &&
1687 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1688 # AIX install. It has an incompatible calling convention.
1690 elif test $ac_prog = install &&
1691 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1692 # program-specific install script used by HP pwplus--don't use.
1695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1707 if test "${ac_cv_path_install+set}" = set; then
1708 INSTALL=$ac_cv_path_install
1710 # As a last resort, use the slow shell script. We don't cache a
1711 # path for INSTALL within a source directory, because that will
1712 # break other packages using the cache if that directory is
1713 # removed, or if the path is relative.
1714 INSTALL=$ac_install_sh
1717 echo "$as_me:$LINENO: result: $INSTALL" >&5
1718 echo "${ECHO_T}$INSTALL" >&6
1720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1721 # It thinks the first close brace ends the variable substitution.
1722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1728 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1729 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1732 echo timestamp > conftest.file
1733 # Do `set' in a subshell so we don't clobber the current shell's
1734 # arguments. Must try -L first in case configure is actually a
1735 # symlink; some systems play weird games with the mod time of symlinks
1736 # (eg FreeBSD returns the mod time of the symlink's containing
1739 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1740 if test "$*" = "X"; then
1742 set X `ls -t $srcdir/configure conftest.file`
1745 if test "$*" != "X $srcdir/configure conftest.file" \
1746 && test "$*" != "X conftest.file $srcdir/configure"; then
1748 # If neither matched, then we have a broken ls. This can happen
1749 # if, for instance, CONFIG_SHELL is bash and it inherits a
1750 # broken ls alias from the environment. This has actually
1751 # happened. Such a system could not be considered "sane".
1752 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1753 alias in your environment" >&5
1754 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1755 alias in your environment" >&2;}
1756 { (exit 1); exit 1; }; }
1759 test "$2" = conftest.file
1765 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1766 Check your system clock" >&5
1767 echo "$as_me: error: newly created file is older than distributed files!
1768 Check your system clock" >&2;}
1769 { (exit 1); exit 1; }; }
1771 echo "$as_me:$LINENO: result: yes" >&5
1772 echo "${ECHO_T}yes" >&6
1773 test "$program_prefix" != NONE &&
1774 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1775 # Use a double $ so make ignores it.
1776 test "$program_suffix" != NONE &&
1777 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1778 # Double any \ or $. echo might interpret backslashes.
1779 # By default was `s,x,x', remove it if useless.
1780 cat <<\_ACEOF >conftest.sed
1781 s/[\\$]/&&/g;s/;s,x,x,$//
1783 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1787 # expand $ac_aux_dir to an absolute path
1788 am_aux_dir=`cd $ac_aux_dir && pwd`
1790 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1791 # Use eval to expand $SHELL
1792 if eval "$MISSING --run true"; then
1793 am_missing_run="$MISSING --run "
1796 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1797 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1800 for ac_prog in gawk mawk nawk awk
1802 # Extract the first word of "$ac_prog", so it can be a program name with args.
1803 set dummy $ac_prog; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_AWK+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 if test -n "$AWK"; then
1810 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_AWK="$ac_prog"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 if test -n "$AWK"; then
1830 echo "$as_me:$LINENO: result: $AWK" >&5
1831 echo "${ECHO_T}$AWK" >&6
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1837 test -n "$AWK" && break
1840 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1841 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1842 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1843 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 cat >conftest.make <<\_ACEOF
1848 @echo 'ac_maketemp="$(MAKE)"'
1850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1851 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1852 if test -n "$ac_maketemp"; then
1853 eval ac_cv_prog_make_${ac_make}_set=yes
1855 eval ac_cv_prog_make_${ac_make}_set=no
1859 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1860 echo "$as_me:$LINENO: result: yes" >&5
1861 echo "${ECHO_T}yes" >&6
1864 echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1866 SET_MAKE="MAKE=${MAKE-make}"
1869 rm -rf .tst 2>/dev/null
1870 mkdir .tst 2>/dev/null
1871 if test -d .tst; then
1876 rmdir .tst 2>/dev/null
1878 # test to see if srcdir already configured
1879 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1880 test -f $srcdir/config.status; then
1881 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1882 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1883 { (exit 1); exit 1; }; }
1886 # test whether we have cygpath
1887 if test -z "$CYGPATH_W"; then
1888 if (cygpath --version) >/dev/null 2>/dev/null; then
1889 CYGPATH_W='cygpath -w'
1896 # Define the identity of the package.
1898 VERSION='0.0.040304'
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE "$PACKAGE"
1906 cat >>confdefs.h <<_ACEOF
1907 #define VERSION "$VERSION"
1910 # Some tools Automake needs.
1912 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1915 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1918 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1921 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1924 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1927 AMTAR=${AMTAR-"${am_missing_run}tar"}
1929 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1931 # Installed binaries are usually stripped using `strip' when the user
1932 # run `make install-strip'. However `strip' might not be the right
1933 # tool to use in cross-compilation environments, therefore Automake
1934 # will honor the `STRIP' environment variable to overrule this program.
1935 if test "$cross_compiling" != no; then
1936 if test -n "$ac_tool_prefix"; then
1937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1938 set dummy ${ac_tool_prefix}strip; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_STRIP+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 if test -n "$STRIP"; then
1945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 test -z "$as_dir" && as_dir=.
1952 for ac_exec_ext in '' $ac_executable_extensions; do
1953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963 STRIP=$ac_cv_prog_STRIP
1964 if test -n "$STRIP"; then
1965 echo "$as_me:$LINENO: result: $STRIP" >&5
1966 echo "${ECHO_T}$STRIP" >&6
1968 echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1973 if test -z "$ac_cv_prog_STRIP"; then
1975 # Extract the first word of "strip", so it can be a program name with args.
1976 set dummy strip; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 if test -n "$ac_ct_STRIP"; then
1983 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992 ac_cv_prog_ac_ct_STRIP="strip"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2002 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2003 if test -n "$ac_ct_STRIP"; then
2004 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2005 echo "${ECHO_T}$ac_ct_STRIP" >&6
2007 echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2013 STRIP="$ac_cv_prog_STRIP"
2017 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2019 # We need awk for the "check" target. The system "awk" is bad on
2025 # Check whether --enable-shared or --disable-shared was given.
2026 if test "${enable_shared+set}" = set; then
2027 enableval="$enable_shared"
2028 p=${PACKAGE-default}
2030 yes) enable_shared=yes ;;
2031 no) enable_shared=no ;;
2034 # Look at the argument we got. We use all the common list separators.
2035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2036 for pkg in $enableval; do
2038 if test "X$pkg" = "X$p"; then
2049 # Check whether --enable-static or --disable-static was given.
2050 if test "${enable_static+set}" = set; then
2051 enableval="$enable_static"
2052 p=${PACKAGE-default}
2054 yes) enable_static=yes ;;
2055 no) enable_static=no ;;
2058 # Look at the argument we got. We use all the common list separators.
2059 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2060 for pkg in $enableval; do
2062 if test "X$pkg" = "X$p"; then
2073 # Check whether --enable-fast-install or --disable-fast-install was given.
2074 if test "${enable_fast_install+set}" = set; then
2075 enableval="$enable_fast_install"
2076 p=${PACKAGE-default}
2078 yes) enable_fast_install=yes ;;
2079 no) enable_fast_install=no ;;
2081 enable_fast_install=no
2082 # Look at the argument we got. We use all the common list separators.
2083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2084 for pkg in $enableval; do
2086 if test "X$pkg" = "X$p"; then
2087 enable_fast_install=yes
2094 enable_fast_install=yes
2097 DEPDIR="${am__leading_dot}deps"
2099 ac_config_commands="$ac_config_commands depfiles"
2102 am_make=${MAKE-make}
2103 cat > confinc << 'END'
2108 # If we don't find an include directive, just comment out the code.
2109 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2110 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2114 # First try GNU make style include.
2115 echo "include confinc" > confmf
2116 # We grep out `Entering directory' and `Leaving directory'
2117 # messages which can occur if `w' ends up in MAKEFLAGS.
2118 # In particular we don't look at `^make:' because GNU make might
2119 # be invoked under some other name (usually "gmake"), in which
2120 # case it prints its new name instead of `make'.
2121 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2126 # Now try BSD make style include.
2127 if test "$am__include" = "#"; then
2128 echo '.include "confinc"' > confmf
2129 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2130 am__include=.include
2137 echo "$as_me:$LINENO: result: $_am_result" >&5
2138 echo "${ECHO_T}$_am_result" >&6
2139 rm -f confinc confmf
2141 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2142 if test "${enable_dependency_tracking+set}" = set; then
2143 enableval="$enable_dependency_tracking"
2146 if test "x$enable_dependency_tracking" != xno; then
2147 am_depcomp="$ac_aux_dir/depcomp"
2152 if test "x$enable_dependency_tracking" != xno; then
2163 ac_cpp='$CPP $CPPFLAGS'
2164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2167 if test -n "$ac_tool_prefix"; then
2168 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2169 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_CC+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test -n "$CC"; then
2176 ac_cv_prog_CC="$CC" # Let the user override the test.
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 if test -n "$CC"; then
2196 echo "$as_me:$LINENO: result: $CC" >&5
2197 echo "${ECHO_T}$CC" >&6
2199 echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2204 if test -z "$ac_cv_prog_CC"; then
2206 # Extract the first word of "gcc", so it can be a program name with args.
2207 set dummy gcc; ac_word=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test -n "$ac_ct_CC"; then
2214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223 ac_cv_prog_ac_ct_CC="gcc"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2233 if test -n "$ac_ct_CC"; then
2234 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2235 echo "${ECHO_T}$ac_ct_CC" >&6
2237 echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2246 if test -z "$CC"; then
2247 if test -n "$ac_tool_prefix"; then
2248 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2249 set dummy ${ac_tool_prefix}cc; ac_word=$2
2250 echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252 if test "${ac_cv_prog_CC+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 if test -n "$CC"; then
2256 ac_cv_prog_CC="$CC" # Let the user override the test.
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 test -z "$as_dir" && as_dir=.
2263 for ac_exec_ext in '' $ac_executable_extensions; do
2264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265 ac_cv_prog_CC="${ac_tool_prefix}cc"
2266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 if test -n "$CC"; then
2276 echo "$as_me:$LINENO: result: $CC" >&5
2277 echo "${ECHO_T}$CC" >&6
2279 echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6
2284 if test -z "$ac_cv_prog_CC"; then
2286 # Extract the first word of "cc", so it can be a program name with args.
2287 set dummy cc; ac_word=$2
2288 echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2290 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 if test -n "$ac_ct_CC"; then
2294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303 ac_cv_prog_ac_ct_CC="cc"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2313 if test -n "$ac_ct_CC"; then
2314 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2315 echo "${ECHO_T}$ac_ct_CC" >&6
2317 echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2327 if test -z "$CC"; then
2328 # Extract the first word of "cc", so it can be a program name with args.
2329 set dummy cc; ac_word=$2
2330 echo "$as_me:$LINENO: checking for $ac_word" >&5
2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2332 if test "${ac_cv_prog_CC+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 if test -n "$CC"; then
2336 ac_cv_prog_CC="$CC" # Let the user override the test.
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2347 ac_prog_rejected=yes
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 if test $ac_prog_rejected = yes; then
2358 # We found a bogon in the path, so make sure we never use it.
2359 set dummy $ac_cv_prog_CC
2361 if test $# != 0; then
2362 # We chose a different compiler from the bogus one.
2363 # However, it has the same basename, so the bogon will be chosen
2364 # first if we set CC to just the basename; use the full file name.
2366 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2372 if test -n "$CC"; then
2373 echo "$as_me:$LINENO: result: $CC" >&5
2374 echo "${ECHO_T}$CC" >&6
2376 echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2381 if test -z "$CC"; then
2382 if test -n "$ac_tool_prefix"; then
2385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2387 echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 if test -n "$CC"; then
2413 echo "$as_me:$LINENO: result: $CC" >&5
2414 echo "${ECHO_T}$CC" >&6
2416 echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6
2420 test -n "$CC" && break
2423 if test -z "$CC"; then
2427 # Extract the first word of "$ac_prog", so it can be a program name with args.
2428 set dummy $ac_prog; ac_word=$2
2429 echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 if test -n "$ac_ct_CC"; then
2435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444 ac_cv_prog_ac_ct_CC="$ac_prog"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454 if test -n "$ac_ct_CC"; then
2455 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456 echo "${ECHO_T}$ac_ct_CC" >&6
2458 echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6
2462 test -n "$ac_ct_CC" && break
2471 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2472 See \`config.log' for more details." >&5
2473 echo "$as_me: error: no acceptable C compiler found in \$PATH
2474 See \`config.log' for more details." >&2;}
2475 { (exit 1); exit 1; }; }
2477 # Provide some information about the compiler.
2478 echo "$as_me:$LINENO:" \
2479 "checking for C compiler version" >&5
2480 ac_compiler=`set X $ac_compile; echo $2`
2481 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2482 (eval $ac_compiler --version </dev/null >&5) 2>&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }
2486 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2487 (eval $ac_compiler -v </dev/null >&5) 2>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }
2491 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2492 (eval $ac_compiler -V </dev/null >&5) 2>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2512 ac_clean_files_save=$ac_clean_files
2513 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2514 # Try to create an executable without -o first, disregard a.out.
2515 # It will help us diagnose broken compilers, and finding out an intuition
2517 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2518 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2519 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2520 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2521 (eval $ac_link_default) 2>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; then
2525 # Find the output, starting from the most likely. This scheme is
2526 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2529 # Be careful to initialize this variable, since it used to be cached.
2530 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2532 # b.out is created by i960 compilers.
2533 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2535 test -f "$ac_file" || continue
2537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2540 # This is the source file.
2543 # We found the default executable, but exeext='' is most
2547 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2548 # FIXME: I believe we export ac_cv_exeext for Libtool,
2549 # but it would be cool to find out if it's true. Does anybody
2550 # maintain Libtool? --akim.
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2561 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2562 See \`config.log' for more details." >&5
2563 echo "$as_me: error: C compiler cannot create executables
2564 See \`config.log' for more details." >&2;}
2565 { (exit 77); exit 77; }; }
2568 ac_exeext=$ac_cv_exeext
2569 echo "$as_me:$LINENO: result: $ac_file" >&5
2570 echo "${ECHO_T}$ac_file" >&6
2572 # Check the compiler produces executables we can run. If not, either
2573 # the compiler is broken, or we cross compile.
2574 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2575 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2576 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2577 # If not cross compiling, check that we can run a simple program.
2578 if test "$cross_compiling" != yes; then
2579 if { ac_try='./$ac_file'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2587 if test "$cross_compiling" = maybe; then
2590 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2591 If you meant to cross compile, use \`--host'.
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: cannot run C compiled programs.
2594 If you meant to cross compile, use \`--host'.
2595 See \`config.log' for more details." >&2;}
2596 { (exit 1); exit 1; }; }
2600 echo "$as_me:$LINENO: result: yes" >&5
2601 echo "${ECHO_T}yes" >&6
2603 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2604 ac_clean_files=$ac_clean_files_save
2605 # Check the compiler produces executables we can run. If not, either
2606 # the compiler is broken, or we cross compile.
2607 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2608 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2609 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2610 echo "${ECHO_T}$cross_compiling" >&6
2612 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2613 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615 (eval $ac_link) 2>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; then
2619 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2620 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2621 # work properly (i.e., refer to `conftest.exe'), while it won't with
2623 for ac_file in conftest.exe conftest conftest.*; do
2624 test -f "$ac_file" || continue
2626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2627 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2634 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details." >&5
2636 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2637 See \`config.log' for more details." >&2;}
2638 { (exit 1); exit 1; }; }
2641 rm -f conftest$ac_cv_exeext
2642 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2643 echo "${ECHO_T}$ac_cv_exeext" >&6
2645 rm -f conftest.$ac_ext
2646 EXEEXT=$ac_cv_exeext
2648 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2649 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2650 if test "${ac_cv_objext+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 cat >conftest.$ac_ext <<_ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h. */
2668 rm -f conftest.o conftest.obj
2669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670 (eval $ac_compile) 2>&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; then
2674 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2677 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2685 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2686 See \`config.log' for more details." >&5
2687 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2688 See \`config.log' for more details." >&2;}
2689 { (exit 1); exit 1; }; }
2692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2694 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2695 echo "${ECHO_T}$ac_cv_objext" >&6
2696 OBJEXT=$ac_cv_objext
2698 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2699 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2700 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 cat >conftest.$ac_ext <<_ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2721 rm -f conftest.$ac_objext
2722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723 (eval $ac_compile) 2>conftest.er1
2725 grep -v '^ *+' conftest.er1 >conftest.err
2727 cat conftest.err >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } &&
2730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2753 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2754 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2755 GCC=`test $ac_compiler_gnu = yes && echo yes`
2756 ac_test_CFLAGS=${CFLAGS+set}
2757 ac_save_CFLAGS=$CFLAGS
2759 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2760 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2761 if test "${ac_cv_prog_cc_g+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2811 if test "$ac_test_CFLAGS" = set; then
2812 CFLAGS=$ac_save_CFLAGS
2813 elif test $ac_cv_prog_cc_g = yes; then
2814 if test "$GCC" = yes; then
2820 if test "$GCC" = yes; then
2826 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2827 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2828 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 ac_cv_prog_cc_stdc=no
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2857 s = g (p, va_arg (v,int));
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2863 function prototypes and stuff, but not '\xHH' hex character constants.
2864 These don't provoke an error unfortunately, instead are silently treated
2865 as 'x'. The following induces an error, until -std1 is added to get
2866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2867 array size at least. It's necessary to write '\x00'==0 to get something
2868 that's true only with -std1. */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871 int test (int i, double x);
2872 struct s1 {int (*f) (int a);};
2873 struct s2 {int (*f) (double a);};
2874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2885 # Don't try gcc -ansi; that turns off useful extensions and
2886 # breaks some systems' header files.
2887 # AIX -qlanglvl=ansi
2888 # Ultrix and OSF/1 -std1
2889 # HP-UX 10.20 and later -Ae
2890 # HP-UX older versions -Aa -D_HPUX_SOURCE
2891 # SVR4 -Xc -D__EXTENSIONS__
2892 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 CC="$ac_save_CC $ac_arg"
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897 (eval $ac_compile) 2>conftest.er1
2899 grep -v '^ *+' conftest.er1 >conftest.err
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2916 ac_cv_prog_cc_stdc=$ac_arg
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f conftest.err conftest.$ac_objext
2925 rm -f conftest.$ac_ext conftest.$ac_objext
2930 case "x$ac_cv_prog_cc_stdc" in
2932 echo "$as_me:$LINENO: result: none needed" >&5
2933 echo "${ECHO_T}none needed" >&6 ;;
2935 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2937 CC="$CC $ac_cv_prog_cc_stdc" ;;
2940 # Some people use a C++ compiler to compile C. Since we use `exit',
2941 # in C++ we need to declare it. In case someone uses the same compiler
2942 # for both compiling C and C++ we need to have the C++ compiler decide
2943 # the declaration of exit, since it's the most demanding environment.
2944 cat >conftest.$ac_ext <<_ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 (eval $ac_compile) 2>conftest.er1
2953 grep -v '^ *+' conftest.er1 >conftest.err
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 for ac_declaration in \
2972 'extern "C" void std::exit (int) throw (); using std::exit;' \
2973 'extern "C" void std::exit (int); using std::exit;' \
2974 'extern "C" void exit (int) throw ();' \
2975 'extern "C" void exit (int);' \
2978 cat >conftest.$ac_ext <<_ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996 (eval $ac_compile) 2>conftest.er1
2998 grep -v '^ *+' conftest.er1 >conftest.err
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; } &&
3009 { ac_try='test -s conftest.$ac_objext'
3010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* 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
3065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068 if test -n "$ac_declaration"; then
3069 echo '#ifdef __cplusplus' >>confdefs.h
3070 echo $ac_declaration >>confdefs.h
3071 echo '#endif' >>confdefs.h
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cpp='$CPP $CPPFLAGS'
3082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086 depcc="$CC" am_compiler_list=
3088 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3089 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3090 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3094 # We make a subdir and do the tests there. Otherwise we can end up
3095 # making bogus files that we don't know about and never remove. For
3096 # instance it was reported that on HP-UX the gcc test will end up
3097 # making a dummy file named `D' -- because `-MD' means `put the output
3100 # Copy depcomp to subdir because otherwise we won't find it if we're
3101 # using a relative directory.
3102 cp "$am_depcomp" conftest.dir
3104 # We will build objects and dependencies in a subdirectory because
3105 # it helps to detect inapplicable dependency modes. For instance
3106 # both Tru64's cc and ICC support -MD to output dependencies as a
3107 # side effect of compilation, but ICC will put the dependencies in
3108 # the current directory while Tru64 will put them in the object
3112 am_cv_CC_dependencies_compiler_type=none
3113 if test "$am_compiler_list" = ""; then
3114 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3116 for depmode in $am_compiler_list; do
3117 # Setup a source with many dependencies, because some compilers
3118 # like to wrap large dependency lists on column 80 (with \), and
3119 # we should not choose a depcomp mode which is confused by this.
3121 # We need to recreate these files for each test, as the compiler may
3122 # overwrite some of them when testing with obscure command lines.
3123 # This happens at least with the AIX C compiler.
3125 for i in 1 2 3 4 5 6; do
3126 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3133 # after this tag, mechanisms are not by side-effect, so they'll
3134 # only be used when explicitly requested
3135 if test "x$enable_dependency_tracking" = xyes; then
3143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3144 # mode. It turns out that the SunPro C++ compiler does not properly
3145 # handle `-M -o', and we need to detect this.
3146 if depmode=$depmode \
3147 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3149 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3150 >/dev/null 2>conftest.err &&
3151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3152 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3154 # icc doesn't choke on unknown options, it will just issue warnings
3155 # (even with -Werror). So we grep stderr for any message
3156 # that says an option was ignored.
3157 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3158 am_cv_CC_dependencies_compiler_type=$depmode
3167 am_cv_CC_dependencies_compiler_type=none
3171 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3172 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3173 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3178 test "x$enable_dependency_tracking" != xno \
3179 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3181 am__fastdepCC_FALSE='#'
3183 am__fastdepCC_TRUE='#'
3184 am__fastdepCC_FALSE=
3188 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3189 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3190 if test "${lt_cv_path_SED+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 # Loop through the user's path and test for sed and gsed.
3194 # Then use that list of sed's as ones to test for truncation.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir=.
3200 for lt_ac_prog in sed gsed; do
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3203 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3210 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3211 # along with /bin/sed that truncates output.
3212 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3213 test ! -f $lt_ac_sed && break
3214 cat /dev/null > conftest.in
3216 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3217 # Check for GNU sed and select it if it is found.
3218 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3219 lt_cv_path_SED=$lt_ac_sed
3223 cat conftest.in conftest.in >conftest.tmp
3224 mv conftest.tmp conftest.in
3225 cp conftest.in conftest.nl
3227 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3228 cmp -s conftest.out conftest.nl || break
3229 # 10000 chars as input seems more than enough
3230 test $lt_ac_count -gt 10 && break
3231 lt_ac_count=`expr $lt_ac_count + 1`
3232 if test $lt_ac_count -gt $lt_ac_max; then
3233 lt_ac_max=$lt_ac_count
3234 lt_cv_path_SED=$lt_ac_sed
3242 echo "$as_me:$LINENO: result: $SED" >&5
3243 echo "${ECHO_T}$SED" >&6
3245 echo "$as_me:$LINENO: checking for egrep" >&5
3246 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3247 if test "${ac_cv_prog_egrep+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3251 then ac_cv_prog_egrep='grep -E'
3252 else ac_cv_prog_egrep='egrep'
3255 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3256 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3257 EGREP=$ac_cv_prog_egrep
3261 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3262 if test "${with_gnu_ld+set}" = set; then
3263 withval="$with_gnu_ld"
3264 test "$withval" = no || with_gnu_ld=yes
3269 if test "$GCC" = yes; then
3270 # Check if gcc -print-prog-name=ld gives a path.
3271 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3272 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3275 # gcc leaves a trailing carriage return which upsets mingw
3276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3281 # Accept absolute paths.
3283 re_direlt='/[^/][^/]*/\.\./'
3284 # Canonicalize the pathname of ld
3285 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3286 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3287 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3289 test -z "$LD" && LD="$ac_prog"
3292 # If it fails, then pretend we aren't using GCC.
3296 # If it is relative, then search for the first ld in PATH.
3300 elif test "$with_gnu_ld" = yes; then
3301 echo "$as_me:$LINENO: checking for GNU ld" >&5
3302 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3304 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3305 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3307 if test "${lt_cv_path_LD+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 if test -z "$LD"; then
3311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3312 for ac_dir in $PATH; do
3314 test -z "$ac_dir" && ac_dir=.
3315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3316 lt_cv_path_LD="$ac_dir/$ac_prog"
3317 # Check to see if the program is GNU ld. I'd rather use --version,
3318 # but apparently some GNU ld's only accept -v.
3319 # Break only if it was the GNU/non-GNU ld that we prefer.
3320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3321 *GNU* | *'with BFD'*)
3322 test "$with_gnu_ld" != no && break
3325 test "$with_gnu_ld" != yes && break
3332 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3337 if test -n "$LD"; then
3338 echo "$as_me:$LINENO: result: $LD" >&5
3339 echo "${ECHO_T}$LD" >&6
3341 echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3344 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3345 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3346 { (exit 1); exit 1; }; }
3347 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3348 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3349 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3353 case `$LD -v 2>&1 </dev/null` in
3354 *GNU* | *'with BFD'*)
3355 lt_cv_prog_gnu_ld=yes
3358 lt_cv_prog_gnu_ld=no
3362 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3363 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3364 with_gnu_ld=$lt_cv_prog_gnu_ld
3367 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3368 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3369 if test "${lt_cv_ld_reload_flag+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 lt_cv_ld_reload_flag='-r'
3374 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3375 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3376 reload_flag=$lt_cv_ld_reload_flag
3377 case $reload_flag in
3379 *) reload_flag=" $reload_flag" ;;
3381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3383 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3384 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3385 if test "${lt_cv_path_NM+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 if test -n "$NM"; then
3389 # Let the user override the test.
3392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3393 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3395 test -z "$ac_dir" && ac_dir=.
3396 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3397 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3398 # Check to see if the nm accepts a BSD-compat flag.
3399 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3400 # nm: unknown option "B" ignored
3401 # Tru64's nm complains that /dev/null is an invalid object file
3402 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3403 */dev/null* | *'Invalid file or object type'*)
3404 lt_cv_path_NM="$tmp_nm -B"
3408 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3410 lt_cv_path_NM="$tmp_nm -p"
3414 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3415 continue # so that we can try to find one that supports BSD flags
3422 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3425 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3426 echo "${ECHO_T}$lt_cv_path_NM" >&6
3429 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3430 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3432 if test "$LN_S" = "ln -s"; then
3433 echo "$as_me:$LINENO: result: yes" >&5
3434 echo "${ECHO_T}yes" >&6
3436 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3437 echo "${ECHO_T}no, using $LN_S" >&6
3440 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3441 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3442 if test "${lt_cv_deplibs_check_method+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 lt_cv_file_magic_cmd='$MAGIC_CMD'
3446 lt_cv_file_magic_test_file=
3447 lt_cv_deplibs_check_method='unknown'
3448 # Need to set the preceding variable on all platforms that support
3449 # interlibrary dependencies.
3450 # 'none' -- dependencies not supported.
3451 # `unknown' -- same as none, but documents that we really don't know.
3452 # 'pass_all' -- all dependencies passed with no checks.
3453 # 'test_compile' -- check by making test program.
3454 # 'file_magic [[regex]]' -- check by looking for files in library path
3455 # which responds to the $file_magic_cmd with a given extended regex.
3456 # If you have `file' or equivalent on your system and you're not sure
3457 # whether `pass_all' will *always* work, you probably want this one.
3461 lt_cv_deplibs_check_method=pass_all
3465 lt_cv_deplibs_check_method=pass_all
3469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3470 lt_cv_file_magic_cmd='/usr/bin/file -L'
3471 lt_cv_file_magic_test_file=/shlib/libc.so
3475 # win32_libid is a shell function defined in ltmain.sh
3476 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3477 lt_cv_file_magic_cmd='win32_libid'
3481 # Base MSYS/MinGW do not provide the 'file' command needed by
3482 # win32_libid shell function, so use a weaker test based on 'objdump'.
3483 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3484 lt_cv_file_magic_cmd='$OBJDUMP -f'
3487 darwin* | rhapsody*)
3488 lt_cv_deplibs_check_method=pass_all
3491 freebsd* | kfreebsd*-gnu)
3492 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3495 # Not sure whether the presence of OpenBSD here was a mistake.
3496 # Let's accept both of them until this is cleared up.
3497 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3498 lt_cv_file_magic_cmd=/usr/bin/file
3499 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3503 lt_cv_deplibs_check_method=pass_all
3508 lt_cv_deplibs_check_method=pass_all
3511 hpux10.20* | hpux11*)
3512 lt_cv_file_magic_cmd=/usr/bin/file
3515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3516 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3519 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]'
3520 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3524 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3529 irix5* | irix6* | nonstopux*)
3531 *-32|*"-32 ") libmagic=32-bit;;
3532 *-n32|*"-n32 ") libmagic=N32;;
3533 *-64|*"-64 ") libmagic=64-bit;;
3534 *) libmagic=never-match;;
3536 lt_cv_deplibs_check_method=pass_all
3539 # This must be Linux ELF.
3541 lt_cv_deplibs_check_method=pass_all
3544 netbsd* | knetbsd*-gnu)
3545 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3554 lt_cv_file_magic_cmd=/usr/bin/file
3555 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3559 lt_cv_deplibs_check_method=unknown
3563 lt_cv_file_magic_cmd=/usr/bin/file
3564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3566 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3568 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3572 osf3* | osf4* | osf5*)
3573 lt_cv_deplibs_check_method=pass_all
3577 lt_cv_deplibs_check_method=pass_all
3581 lt_cv_deplibs_check_method=pass_all
3584 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3585 case $host_vendor in
3587 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]'
3588 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3591 lt_cv_deplibs_check_method=pass_all
3594 lt_cv_file_magic_cmd='/bin/file'
3595 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3598 lt_cv_file_magic_cmd='/bin/file'
3599 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3600 lt_cv_file_magic_test_file=/lib/libc.so
3603 lt_cv_deplibs_check_method=pass_all
3608 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3609 lt_cv_deplibs_check_method=pass_all
3614 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3615 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3616 file_magic_cmd=$lt_cv_file_magic_cmd
3617 deplibs_check_method=$lt_cv_deplibs_check_method
3618 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3623 # If no C compiler was specified, use CC.
3626 # Allow CC to be a program name with arguments.
3630 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3631 if test "${enable_libtool_lock+set}" = set; then
3632 enableval="$enable_libtool_lock"
3635 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3637 # Some flags need to be propagated to the compiler or linker for good
3641 # Find out which ABI we are using.
3642 echo 'int i;' > conftest.$ac_ext
3643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644 (eval $ac_compile) 2>&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; then
3648 case `/usr/bin/file conftest.$ac_objext` in
3660 # Find out which ABI we are using.
3661 echo '#line 3661 "configure"' > conftest.$ac_ext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663 (eval $ac_compile) 2>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; then
3667 if test "$lt_cv_prog_gnu_ld" = yes; then
3668 case `/usr/bin/file conftest.$ac_objext` in
3670 LD="${LD-ld} -melf32bsmip"
3673 LD="${LD-ld} -melf32bmipn32"
3676 LD="${LD-ld} -melf64bmip"
3680 case `/usr/bin/file conftest.$ac_objext` in
3696 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3697 # Find out which ABI we are using.
3698 echo 'int i;' > conftest.$ac_ext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; then
3704 case "`/usr/bin/file conftest.o`" in
3708 LD="${LD-ld} -m elf_i386"
3710 ppc64-*linux*|powerpc64-*linux*)
3711 LD="${LD-ld} -m elf32ppclinux"
3714 LD="${LD-ld} -m elf_s390"
3717 LD="${LD-ld} -m elf32_sparc"
3724 LD="${LD-ld} -m elf_x86_64"
3726 ppc*-*linux*|powerpc*-*linux*)
3727 LD="${LD-ld} -m elf64ppc"
3730 LD="${LD-ld} -m elf64_s390"
3733 LD="${LD-ld} -m elf64_sparc"
3743 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3744 SAVE_CFLAGS="$CFLAGS"
3745 CFLAGS="$CFLAGS -belf"
3746 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3747 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3748 if test "${lt_cv_cc_needs_belf+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3757 cat >conftest.$ac_ext <<_ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3772 rm -f conftest.$ac_objext conftest$ac_exeext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3774 (eval $ac_link) 2>conftest.er1
3776 grep -v '^ *+' conftest.er1 >conftest.err
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } &&
3781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; } &&
3787 { ac_try='test -s conftest$ac_exeext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 lt_cv_cc_needs_belf=yes
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 lt_cv_cc_needs_belf=no
3800 rm -f conftest.err conftest.$ac_objext \
3801 conftest$ac_exeext conftest.$ac_ext
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
3809 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3810 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3811 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3812 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3813 CFLAGS="$SAVE_CFLAGS"
3819 need_locks="$enable_libtool_lock"
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3828 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3829 # On Suns, sometimes $CPP names a directory.
3830 if test -n "$CPP" && test -d "$CPP"; then
3833 if test -z "$CPP"; then
3834 if test "${ac_cv_prog_CPP+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 # Double quotes because CPP needs to be expanded
3838 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3841 for ac_c_preproc_warn_flag in '' yes
3843 # Use a header file that comes with gcc, so configuring glibc
3844 # with a fresh cross-compiler works.
3845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3846 # <limits.h> exists even on freestanding compilers.
3847 # On the NeXT, cc -E runs the code through the compiler's parser,
3848 # not just through cpp. "Syntax error" is here to catch this case.
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3856 # include <limits.h>
3858 # include <assert.h>
3862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3865 grep -v '^ *+' conftest.er1 >conftest.err
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } >/dev/null; then
3870 if test -s conftest.err; then
3871 ac_cpp_err=$ac_c_preproc_warn_flag
3872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3879 if test -z "$ac_cpp_err"; then
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 # Broken: fails on valid input.
3888 rm -f conftest.err conftest.$ac_ext
3890 # OK, works on sane cases. Now check whether non-existent headers
3891 # can be detected and how.
3892 cat >conftest.$ac_ext <<_ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 #include <ac_nonexistent.h>
3900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3903 grep -v '^ *+' conftest.er1 >conftest.err
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } >/dev/null; then
3908 if test -s conftest.err; then
3909 ac_cpp_err=$ac_c_preproc_warn_flag
3910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3917 if test -z "$ac_cpp_err"; then
3918 # Broken: success on invalid input.
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 # Passes both tests.
3928 rm -f conftest.err conftest.$ac_ext
3931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3932 rm -f conftest.err conftest.$ac_ext
3933 if $ac_preproc_ok; then
3945 echo "$as_me:$LINENO: result: $CPP" >&5
3946 echo "${ECHO_T}$CPP" >&6
3948 for ac_c_preproc_warn_flag in '' yes
3950 # Use a header file that comes with gcc, so configuring glibc
3951 # with a fresh cross-compiler works.
3952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3953 # <limits.h> exists even on freestanding compilers.
3954 # On the NeXT, cc -E runs the code through the compiler's parser,
3955 # not just through cpp. "Syntax error" is here to catch this case.
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3963 # include <limits.h>
3965 # include <assert.h>
3969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3972 grep -v '^ *+' conftest.er1 >conftest.err
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } >/dev/null; then
3977 if test -s conftest.err; then
3978 ac_cpp_err=$ac_c_preproc_warn_flag
3979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3986 if test -z "$ac_cpp_err"; then
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 # Broken: fails on valid input.
3995 rm -f conftest.err conftest.$ac_ext
3997 # OK, works on sane cases. Now check whether non-existent headers
3998 # can be detected and how.
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 #include <ac_nonexistent.h>
4007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4010 grep -v '^ *+' conftest.er1 >conftest.err
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } >/dev/null; then
4015 if test -s conftest.err; then
4016 ac_cpp_err=$ac_c_preproc_warn_flag
4017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4024 if test -z "$ac_cpp_err"; then
4025 # Broken: success on invalid input.
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 # Passes both tests.
4035 rm -f conftest.err conftest.$ac_ext
4038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4039 rm -f conftest.err conftest.$ac_ext
4040 if $ac_preproc_ok; then
4043 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4044 See \`config.log' for more details." >&5
4045 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4046 See \`config.log' for more details." >&2;}
4047 { (exit 1); exit 1; }; }
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4058 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4059 if test "${ac_cv_header_stdc+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4081 rm -f conftest.$ac_objext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083 (eval $ac_compile) 2>conftest.er1
4085 grep -v '^ *+' conftest.er1 >conftest.err
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_cv_header_stdc=yes
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 ac_cv_header_stdc=no
4109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4111 if test $ac_cv_header_stdc = yes; then
4112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4113 cat >conftest.$ac_ext <<_ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4123 $EGREP "memchr" >/dev/null 2>&1; then
4126 ac_cv_header_stdc=no
4132 if test $ac_cv_header_stdc = yes; then
4133 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4134 cat >conftest.$ac_ext <<_ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4144 $EGREP "free" >/dev/null 2>&1; then
4147 ac_cv_header_stdc=no
4153 if test $ac_cv_header_stdc = yes; then
4154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4155 if test "$cross_compiling" = yes; then
4158 cat >conftest.$ac_ext <<_ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4165 #if ((' ' & 0x0FF) == 0x020)
4166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4169 # define ISLOWER(c) \
4170 (('a' <= (c) && (c) <= 'i') \
4171 || ('j' <= (c) && (c) <= 'r') \
4172 || ('s' <= (c) && (c) <= 'z'))
4173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4181 for (i = 0; i < 256; i++)
4182 if (XOR (islower (i), ISLOWER (i))
4183 || toupper (i) != TOUPPER (i))
4188 rm -f conftest$ac_exeext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4190 (eval $ac_link) 2>&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4201 echo "$as_me: program exited with status $ac_status" >&5
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_cv_header_stdc=no
4208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4212 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4213 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4214 if test $ac_cv_header_stdc = yes; then
4216 cat >>confdefs.h <<\_ACEOF
4217 #define STDC_HEADERS 1
4222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4233 inttypes.h stdint.h unistd.h
4235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4236 echo "$as_me:$LINENO: checking for $ac_header" >&5
4237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 cat >conftest.$ac_ext <<_ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 $ac_includes_default
4249 #include <$ac_header>
4251 rm -f conftest.$ac_objext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4253 (eval $ac_compile) 2>conftest.er1
4255 grep -v '^ *+' conftest.er1 >conftest.err
4257 cat conftest.err >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 eval "$as_ac_Header=yes"
4274 echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4277 eval "$as_ac_Header=no"
4279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4284 cat >>confdefs.h <<_ACEOF
4285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4294 for ac_header in dlfcn.h
4296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4298 echo "$as_me:$LINENO: checking for $ac_header" >&5
4299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4306 # Is the header compilable?
4307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 $ac_includes_default
4316 #include <$ac_header>
4318 rm -f conftest.$ac_objext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320 (eval $ac_compile) 2>conftest.er1
4322 grep -v '^ *+' conftest.er1 >conftest.err
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest.$ac_objext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 ac_header_compiler=yes
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 ac_header_compiler=no
4346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4348 echo "${ECHO_T}$ac_header_compiler" >&6
4350 # Is the header present?
4351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <$ac_header>
4361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4364 grep -v '^ *+' conftest.er1 >conftest.err
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } >/dev/null; then
4369 if test -s conftest.err; then
4370 ac_cpp_err=$ac_c_preproc_warn_flag
4371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4378 if test -z "$ac_cpp_err"; then
4379 ac_header_preproc=yes
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4384 ac_header_preproc=no
4386 rm -f conftest.err conftest.$ac_ext
4387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4388 echo "${ECHO_T}$ac_header_preproc" >&6
4390 # So? What about this header?
4391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4397 ac_header_preproc=yes
4400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4414 ## ----------------------------------------- ##
4415 ## Report this to martin.quinson@ens-lyon.fr ##
4416 ## ----------------------------------------- ##
4419 sed "s/^/$as_me: WARNING: /" >&2
4422 echo "$as_me:$LINENO: checking for $ac_header" >&5
4423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 eval "$as_ac_Header=\$ac_header_preproc"
4429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4434 cat >>confdefs.h <<_ACEOF
4435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4443 ac_cpp='$CXXCPP $CPPFLAGS'
4444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4447 if test -n "$ac_tool_prefix"; then
4448 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4452 echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454 if test "${ac_cv_prog_CXX+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 if test -n "$CXX"; then
4458 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 if test -n "$CXX"; then
4478 echo "$as_me:$LINENO: result: $CXX" >&5
4479 echo "${ECHO_T}$CXX" >&6
4481 echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4485 test -n "$CXX" && break
4488 if test -z "$CXX"; then
4490 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4492 # Extract the first word of "$ac_prog", so it can be a program name with args.
4493 set dummy $ac_prog; ac_word=$2
4494 echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 if test -n "$ac_ct_CXX"; then
4500 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509 ac_cv_prog_ac_ct_CXX="$ac_prog"
4510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4519 if test -n "$ac_ct_CXX"; then
4520 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4521 echo "${ECHO_T}$ac_ct_CXX" >&6
4523 echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6
4527 test -n "$ac_ct_CXX" && break
4529 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4535 # Provide some information about the compiler.
4536 echo "$as_me:$LINENO:" \
4537 "checking for C++ compiler version" >&5
4538 ac_compiler=`set X $ac_compile; echo $2`
4539 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4540 (eval $ac_compiler --version </dev/null >&5) 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }
4544 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4545 (eval $ac_compiler -v </dev/null >&5) 2>&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }
4549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4550 (eval $ac_compiler -V </dev/null >&5) 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }
4555 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4556 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4557 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 cat >conftest.$ac_ext <<_ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>conftest.er1
4582 grep -v '^ *+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; } &&
4593 { ac_try='test -s conftest.$ac_objext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4610 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4612 GXX=`test $ac_compiler_gnu = yes && echo yes`
4613 ac_test_CXXFLAGS=${CXXFLAGS+set}
4614 ac_save_CXXFLAGS=$CXXFLAGS
4616 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4617 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4618 if test "${ac_cv_prog_cxx_g+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 cat >conftest.$ac_ext <<_ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4640 grep -v '^ *+' conftest.er1 >conftest.err
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_prog_cxx_g=yes
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4666 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4667 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4668 if test "$ac_test_CXXFLAGS" = set; then
4669 CXXFLAGS=$ac_save_CXXFLAGS
4670 elif test $ac_cv_prog_cxx_g = yes; then
4671 if test "$GXX" = yes; then
4677 if test "$GXX" = yes; then
4683 for ac_declaration in \
4685 'extern "C" void std::exit (int) throw (); using std::exit;' \
4686 'extern "C" void std::exit (int); using std::exit;' \
4687 'extern "C" void exit (int) throw ();' \
4688 'extern "C" void exit (int);' \
4691 cat >conftest.$ac_ext <<_ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h. */
4707 rm -f conftest.$ac_objext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709 (eval $ac_compile) 2>conftest.er1
4711 grep -v '^ *+' conftest.er1 >conftest.err
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; } &&
4722 { ac_try='test -s conftest.$ac_objext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736 cat >conftest.$ac_ext <<_ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>conftest.er1
4755 grep -v '^ *+' conftest.er1 >conftest.err
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest.$ac_objext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4781 if test -n "$ac_declaration"; then
4782 echo '#ifdef __cplusplus' >>confdefs.h
4783 echo $ac_declaration >>confdefs.h
4784 echo '#endif' >>confdefs.h
4788 ac_cpp='$CXXCPP $CPPFLAGS'
4789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4793 depcc="$CXX" am_compiler_list=
4795 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4796 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4797 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4801 # We make a subdir and do the tests there. Otherwise we can end up
4802 # making bogus files that we don't know about and never remove. For
4803 # instance it was reported that on HP-UX the gcc test will end up
4804 # making a dummy file named `D' -- because `-MD' means `put the output
4807 # Copy depcomp to subdir because otherwise we won't find it if we're
4808 # using a relative directory.
4809 cp "$am_depcomp" conftest.dir
4811 # We will build objects and dependencies in a subdirectory because
4812 # it helps to detect inapplicable dependency modes. For instance
4813 # both Tru64's cc and ICC support -MD to output dependencies as a
4814 # side effect of compilation, but ICC will put the dependencies in
4815 # the current directory while Tru64 will put them in the object
4819 am_cv_CXX_dependencies_compiler_type=none
4820 if test "$am_compiler_list" = ""; then
4821 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4823 for depmode in $am_compiler_list; do
4824 # Setup a source with many dependencies, because some compilers
4825 # like to wrap large dependency lists on column 80 (with \), and
4826 # we should not choose a depcomp mode which is confused by this.
4828 # We need to recreate these files for each test, as the compiler may
4829 # overwrite some of them when testing with obscure command lines.
4830 # This happens at least with the AIX C compiler.
4832 for i in 1 2 3 4 5 6; do
4833 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4836 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4840 # after this tag, mechanisms are not by side-effect, so they'll
4841 # only be used when explicitly requested
4842 if test "x$enable_dependency_tracking" = xyes; then
4850 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4851 # mode. It turns out that the SunPro C++ compiler does not properly
4852 # handle `-M -o', and we need to detect this.
4853 if depmode=$depmode \
4854 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4855 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4856 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4857 >/dev/null 2>conftest.err &&
4858 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4859 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4860 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4861 # icc doesn't choke on unknown options, it will just issue warnings
4862 # (even with -Werror). So we grep stderr for any message
4863 # that says an option was ignored.
4864 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4865 am_cv_CXX_dependencies_compiler_type=$depmode
4874 am_cv_CXX_dependencies_compiler_type=none
4878 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4879 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4880 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4885 test "x$enable_dependency_tracking" != xno \
4886 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4887 am__fastdepCXX_TRUE=
4888 am__fastdepCXX_FALSE='#'
4890 am__fastdepCXX_TRUE='#'
4891 am__fastdepCXX_FALSE=
4896 ac_cpp='$CXXCPP $CPPFLAGS'
4897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4900 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4901 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4902 if test -z "$CXXCPP"; then
4903 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 # Double quotes because CXXCPP needs to be expanded
4907 for CXXCPP in "$CXX -E" "/lib/cpp"
4910 for ac_cxx_preproc_warn_flag in '' yes
4912 # Use a header file that comes with gcc, so configuring glibc
4913 # with a fresh cross-compiler works.
4914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4915 # <limits.h> exists even on freestanding compilers.
4916 # On the NeXT, cc -E runs the code through the compiler's parser,
4917 # not just through cpp. "Syntax error" is here to catch this case.
4918 cat >conftest.$ac_ext <<_ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4925 # include <limits.h>
4927 # include <assert.h>
4931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } >/dev/null; then
4939 if test -s conftest.err; then
4940 ac_cpp_err=$ac_cxx_preproc_warn_flag
4941 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4948 if test -z "$ac_cpp_err"; then
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4954 # Broken: fails on valid input.
4957 rm -f conftest.err conftest.$ac_ext
4959 # OK, works on sane cases. Now check whether non-existent headers
4960 # can be detected and how.
4961 cat >conftest.$ac_ext <<_ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4967 #include <ac_nonexistent.h>
4969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } >/dev/null; then
4977 if test -s conftest.err; then
4978 ac_cpp_err=$ac_cxx_preproc_warn_flag
4979 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4986 if test -z "$ac_cpp_err"; then
4987 # Broken: success on invalid input.
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 # Passes both tests.
4997 rm -f conftest.err conftest.$ac_ext
5000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5001 rm -f conftest.err conftest.$ac_ext
5002 if $ac_preproc_ok; then
5007 ac_cv_prog_CXXCPP=$CXXCPP
5010 CXXCPP=$ac_cv_prog_CXXCPP
5012 ac_cv_prog_CXXCPP=$CXXCPP
5014 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5015 echo "${ECHO_T}$CXXCPP" >&6
5017 for ac_cxx_preproc_warn_flag in '' yes
5019 # Use a header file that comes with gcc, so configuring glibc
5020 # with a fresh cross-compiler works.
5021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022 # <limits.h> exists even on freestanding compilers.
5023 # On the NeXT, cc -E runs the code through the compiler's parser,
5024 # not just through cpp. "Syntax error" is here to catch this case.
5025 cat >conftest.$ac_ext <<_ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5032 # include <limits.h>
5034 # include <assert.h>
5038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5041 grep -v '^ *+' conftest.er1 >conftest.err
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } >/dev/null; then
5046 if test -s conftest.err; then
5047 ac_cpp_err=$ac_cxx_preproc_warn_flag
5048 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5055 if test -z "$ac_cpp_err"; then
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 # Broken: fails on valid input.
5064 rm -f conftest.err conftest.$ac_ext
5066 # OK, works on sane cases. Now check whether non-existent headers
5067 # can be detected and how.
5068 cat >conftest.$ac_ext <<_ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 #include <ac_nonexistent.h>
5076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5079 grep -v '^ *+' conftest.er1 >conftest.err
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev/null; then
5084 if test -s conftest.err; then
5085 ac_cpp_err=$ac_cxx_preproc_warn_flag
5086 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5093 if test -z "$ac_cpp_err"; then
5094 # Broken: success on invalid input.
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5100 # Passes both tests.
5104 rm -f conftest.err conftest.$ac_ext
5107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108 rm -f conftest.err conftest.$ac_ext
5109 if $ac_preproc_ok; then
5112 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5113 See \`config.log' for more details." >&5
5114 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5115 See \`config.log' for more details." >&2;}
5116 { (exit 1); exit 1; }; }
5120 ac_cpp='$CXXCPP $CPPFLAGS'
5121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5128 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5130 if test -n "$ac_tool_prefix"; then
5131 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5135 echo "$as_me:$LINENO: checking for $ac_word" >&5
5136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5137 if test "${ac_cv_prog_F77+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 if test -n "$F77"; then
5141 ac_cv_prog_F77="$F77" # Let the user override the test.
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 if test -n "$F77"; then
5161 echo "$as_me:$LINENO: result: $F77" >&5
5162 echo "${ECHO_T}$F77" >&6
5164 echo "$as_me:$LINENO: result: no" >&5
5165 echo "${ECHO_T}no" >&6
5168 test -n "$F77" && break
5171 if test -z "$F77"; then
5173 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5175 # Extract the first word of "$ac_prog", so it can be a program name with args.
5176 set dummy $ac_prog; ac_word=$2
5177 echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 if test -n "$ac_ct_F77"; then
5183 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_ac_ct_F77="$ac_prog"
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5202 if test -n "$ac_ct_F77"; then
5203 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5204 echo "${ECHO_T}$ac_ct_F77" >&6
5206 echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5210 test -n "$ac_ct_F77" && break
5217 # Provide some information about the compiler.
5218 echo "$as_me:5218:" \
5219 "checking for Fortran 77 compiler version" >&5
5220 ac_compiler=`set X $ac_compile; echo $2`
5221 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5222 (eval $ac_compiler --version </dev/null >&5) 2>&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }
5226 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5227 (eval $ac_compiler -v </dev/null >&5) 2>&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }
5231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5232 (eval $ac_compiler -V </dev/null >&5) 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }
5238 # If we don't use `.F' as extension, the preprocessor is not run on the
5239 # input file. (Note that this only needs to work for GNU compilers.)
5242 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5243 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5244 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 cat >conftest.$ac_ext <<_ACEOF
5255 rm -f conftest.$ac_objext
5256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5257 (eval $ac_compile) 2>conftest.er1
5259 grep -v '^ *+' conftest.er1 >conftest.err
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } &&
5264 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; } &&
5270 { ac_try='test -s conftest.$ac_objext'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5284 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5287 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5288 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5290 ac_test_FFLAGS=${FFLAGS+set}
5291 ac_save_FFLAGS=$FFLAGS
5293 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5294 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5295 if test "${ac_cv_prog_f77_g+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 cat >conftest.$ac_ext <<_ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>conftest.er1
5308 grep -v '^ *+' conftest.er1 >conftest.err
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; } &&
5319 { ac_try='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_cv_prog_f77_g=yes
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5335 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5336 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5337 if test "$ac_test_FFLAGS" = set; then
5338 FFLAGS=$ac_save_FFLAGS
5339 elif test $ac_cv_prog_f77_g = yes; then
5340 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5346 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5353 G77=`test $ac_compiler_gnu = yes && echo yes`
5355 ac_cpp='$CPP $CPPFLAGS'
5356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5362 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5364 # find the maximum length of command line arguments
5365 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5366 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5367 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 # On DJGPP, this test can blow up pretty badly due to problems in libc
5376 # (any single argument exceeding 2000 bytes causes a buffer overrun
5377 # during glob expansion). Even if it were fixed, the result of this
5378 # check would be larger than it should be.
5379 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5383 # Under GNU Hurd, this test is not required because there is
5384 # no limit to the length of command line arguments.
5385 # Libtool will interpret -1 as no limit whatsoever
5386 lt_cv_sys_max_cmd_len=-1;
5390 # On Win9x/ME, this test blows up -- it succeeds, but takes
5391 # about 5 minutes as the teststring grows exponentially.
5392 # Worse, since 9x/ME are not pre-emptively multitasking,
5393 # you end up with a "frozen" computer, even though with patience
5394 # the test eventually succeeds (with a max line length of 256k).
5395 # Instead, let's just punt: use the minimum linelength reported by
5396 # all of the supported platforms: 8192 (on NT/2K/XP).
5397 lt_cv_sys_max_cmd_len=8192;
5401 # On AmigaOS with pdksh, this test takes hours, literally.
5402 # So we just punt and use a minimum line length of 8192.
5403 lt_cv_sys_max_cmd_len=8192;
5407 # If test is not a shell built-in, we'll probably end up computing a
5408 # maximum length that is only half of the actual maximum length, but
5410 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5411 = "XX$testring") >/dev/null 2>&1 &&
5412 new_result=`expr "X$testring" : ".*" 2>&1` &&
5413 lt_cv_sys_max_cmd_len=$new_result &&
5414 test $i != 17 # 1/2 MB should be enough
5417 testring=$testring$testring
5420 # Add a significant safety factor because C++ compilers can tack on massive
5421 # amounts of additional arguments before passing them to the linker.
5422 # It appears as though 1/2 is a usable value.
5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5429 if test -n $lt_cv_sys_max_cmd_len ; then
5430 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5431 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5433 echo "$as_me:$LINENO: result: none" >&5
5434 echo "${ECHO_T}none" >&6
5440 # Check for command to grab the raw symbol name followed by C symbol from nm.
5441 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5442 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5443 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 # These are sane defaults that work on at least a few old systems.
5448 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5450 # Character class describing NM global symbol codes.
5451 symcode='[BCDEGRST]'
5453 # Regexp to match symbols that can be accessed directly from C.
5454 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5456 # Transform the above into a raw symbol and a C symbol.
5457 symxfrm='\1 \2\3 \3'
5459 # Transform an extracted symbol line into a proper C declaration
5460 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5462 # Transform an extracted symbol line into symbol name and symbol address
5463 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'"
5465 # Define system-specific variables.
5470 cygwin* | mingw* | pw32*)
5471 symcode='[ABCDGISTW]'
5473 hpux*) # Its linker distinguishes data from code symbols
5474 if test "$host_cpu" = ia64; then
5475 symcode='[ABCDEGRST]'
5477 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5478 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'"
5481 symcode='[BCDEGRST]'
5484 symcode='[BCDEGQRST]'
5494 # Handle CRLF in mingw tool chain
5498 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5502 # If we're using GNU nm, then use its standard symbol codes.
5503 case `$NM -V 2>&1` in
5504 *GNU* | *'with BFD'*)
5505 symcode='[ABCDGIRSTW]' ;;
5508 # Try without a prefix undercore, then with it.
5509 for ac_symprfx in "" "_"; do
5511 # Write the raw and C identifiers.
5512 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5514 # Check to see that the pipe works correctly.
5518 cat > conftest.$ac_ext <<EOF
5523 void nm_test_func(){}
5527 int main(){nm_test_var='a';nm_test_func();return(0);}
5530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531 (eval $ac_compile) 2>&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; then
5535 # Now try to grab the symbols.
5537 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5538 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && test -s "$nlist"; then
5542 # Try sorting and uniquifying the output.
5543 if sort "$nlist" | uniq > "$nlist"T; then
5544 mv -f "$nlist"T "$nlist"
5549 # Make sure that we snagged all the symbols we need.
5550 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5551 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5552 cat <<EOF > conftest.$ac_ext
5558 # Now generate the symbol file.
5559 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5561 cat <<EOF >> conftest.$ac_ext
5562 #if defined (__STDC__) && __STDC__
5563 # define lt_ptr_t void *
5565 # define lt_ptr_t char *
5569 /* The mapping between symbol names and symbols. */
5574 lt_preloaded_symbols[] =
5577 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5578 cat <<\EOF >> conftest.$ac_ext
5586 # Now try linking the two files.
5587 mv conftest.$ac_objext conftstm.$ac_objext
5588 lt_save_LIBS="$LIBS"
5589 lt_save_CFLAGS="$CFLAGS"
5590 LIBS="conftstm.$ac_objext"
5591 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5599 LIBS="$lt_save_LIBS"
5600 CFLAGS="$lt_save_CFLAGS"
5602 echo "cannot find nm_test_func in $nlist" >&5
5605 echo "cannot find nm_test_var in $nlist" >&5
5608 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5611 echo "$progname: failed program was:" >&5
5612 cat conftest.$ac_ext >&5
5614 rm -f conftest* conftst*
5616 # Do not use the global_symbol_pipe unless it works.
5617 if test "$pipe_works" = yes; then
5620 lt_cv_sys_global_symbol_pipe=
5626 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5627 lt_cv_sys_global_symbol_to_cdecl=
5629 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5630 echo "$as_me:$LINENO: result: failed" >&5
5631 echo "${ECHO_T}failed" >&6
5633 echo "$as_me:$LINENO: result: ok" >&5
5634 echo "${ECHO_T}ok" >&6
5637 echo "$as_me:$LINENO: checking for objdir" >&5
5638 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5639 if test "${lt_cv_objdir+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 rm -f .libs 2>/dev/null
5643 mkdir .libs 2>/dev/null
5644 if test -d .libs; then
5647 # MS-DOS does not allow filenames that begin with a dot.
5650 rmdir .libs 2>/dev/null
5652 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5653 echo "${ECHO_T}$lt_cv_objdir" >&6
5654 objdir=$lt_cv_objdir
5662 # AIX sometimes has problems with the GCC collect2 program. For some
5663 # reason, if we set the COLLECT_NAMES environment variable, the problems
5664 # vanish in a puff of smoke.
5665 if test "X${COLLECT_NAMES+set}" != Xset; then
5667 export COLLECT_NAMES
5672 # Sed substitution that helps us do robust quoting. It backslashifies
5673 # metacharacters that are still active within double-quoted strings.
5674 Xsed='sed -e s/^X//'
5675 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5677 # Same as above, but do not quote variable references.
5678 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5680 # Sed substitution to delay expansion of an escaped shell variable in a
5681 # double_quote_subst'ed string.
5682 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5684 # Sed substitution to avoid accidental globbing in evaled expressions
5685 no_glob_subst='s/\*/\\\*/g'
5691 default_ofile=libtool
5692 can_build_shared=yes
5694 # All known linkers require a `.a' archive for static linking (except M$VC,
5695 # which needs '.lib').
5697 ltmain="$ac_aux_dir/ltmain.sh"
5698 ofile="$default_ofile"
5699 with_gnu_ld="$lt_cv_prog_gnu_ld"
5701 if test -n "$ac_tool_prefix"; then
5702 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5703 set dummy ${ac_tool_prefix}ar; ac_word=$2
5704 echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5706 if test "${ac_cv_prog_AR+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 if test -n "$AR"; then
5710 ac_cv_prog_AR="$AR" # Let the user override the test.
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719 ac_cv_prog_AR="${ac_tool_prefix}ar"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 if test -n "$AR"; then
5730 echo "$as_me:$LINENO: result: $AR" >&5
5731 echo "${ECHO_T}$AR" >&6
5733 echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6
5738 if test -z "$ac_cv_prog_AR"; then
5740 # Extract the first word of "ar", so it can be a program name with args.
5741 set dummy ar; ac_word=$2
5742 echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5744 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 if test -n "$ac_ct_AR"; then
5748 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_ac_ct_AR="ar"
5758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5767 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5768 if test -n "$ac_ct_AR"; then
5769 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5770 echo "${ECHO_T}$ac_ct_AR" >&6
5772 echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6
5781 if test -n "$ac_tool_prefix"; then
5782 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5784 echo "$as_me:$LINENO: checking for $ac_word" >&5
5785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5786 if test "${ac_cv_prog_RANLIB+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 if test -n "$RANLIB"; then
5790 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 RANLIB=$ac_cv_prog_RANLIB
5809 if test -n "$RANLIB"; then
5810 echo "$as_me:$LINENO: result: $RANLIB" >&5
5811 echo "${ECHO_T}$RANLIB" >&6
5813 echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6
5818 if test -z "$ac_cv_prog_RANLIB"; then
5819 ac_ct_RANLIB=$RANLIB
5820 # Extract the first word of "ranlib", so it can be a program name with args.
5821 set dummy ranlib; ac_word=$2
5822 echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 if test -n "$ac_ct_RANLIB"; then
5828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837 ac_cv_prog_ac_ct_RANLIB="ranlib"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5848 if test -n "$ac_ct_RANLIB"; then
5849 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5850 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5852 echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6
5856 RANLIB=$ac_ct_RANLIB
5858 RANLIB="$ac_cv_prog_RANLIB"
5861 if test -n "$ac_tool_prefix"; then
5862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5863 set dummy ${ac_tool_prefix}strip; ac_word=$2
5864 echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5866 if test "${ac_cv_prog_STRIP+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 if test -n "$STRIP"; then
5870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 STRIP=$ac_cv_prog_STRIP
5889 if test -n "$STRIP"; then
5890 echo "$as_me:$LINENO: result: $STRIP" >&5
5891 echo "${ECHO_T}$STRIP" >&6
5893 echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5898 if test -z "$ac_cv_prog_STRIP"; then
5900 # Extract the first word of "strip", so it can be a program name with args.
5901 set dummy strip; ac_word=$2
5902 echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 if test -n "$ac_ct_STRIP"; then
5908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_prog_ac_ct_STRIP="strip"
5918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5928 if test -n "$ac_ct_STRIP"; then
5929 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5930 echo "${ECHO_T}$ac_ct_STRIP" >&6
5932 echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6
5938 STRIP="$ac_cv_prog_STRIP"
5943 old_CFLAGS="$CFLAGS"
5945 # Set sane defaults for various variables
5946 test -z "$AR" && AR=ar
5947 test -z "$AR_FLAGS" && AR_FLAGS=cru
5948 test -z "$AS" && AS=as
5949 test -z "$CC" && CC=cc
5950 test -z "$LTCC" && LTCC=$CC
5951 test -z "$DLLTOOL" && DLLTOOL=dlltool
5952 test -z "$LD" && LD=ld
5953 test -z "$LN_S" && LN_S="ln -s"
5954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5955 test -z "$NM" && NM=nm
5956 test -z "$SED" && SED=sed
5957 test -z "$OBJDUMP" && OBJDUMP=objdump
5958 test -z "$RANLIB" && RANLIB=:
5959 test -z "$STRIP" && STRIP=:
5960 test -z "$ac_objext" && ac_objext=o
5962 # Determine commands to create old-style static archives.
5963 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5964 old_postinstall_cmds='chmod 644 $oldlib'
5965 old_postuninstall_cmds=
5967 if test -n "$RANLIB"; then
5970 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5973 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5976 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5979 # Only perform the check for file, if the check method requires it
5980 case $deplibs_check_method in
5982 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5983 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5984 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5985 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5993 lt_save_MAGIC_CMD="$MAGIC_CMD"
5994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5995 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5996 for ac_dir in $ac_dummy; do
5998 test -z "$ac_dir" && ac_dir=.
5999 if test -f $ac_dir/${ac_tool_prefix}file; then
6000 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6001 if test -n "$file_magic_test_file"; then
6002 case $deplibs_check_method in
6004 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6006 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6007 $EGREP "$file_magic_regex" > /dev/null; then
6012 *** Warning: the command libtool uses to detect shared libraries,
6013 *** $file_magic_cmd, produces output that libtool cannot recognize.
6014 *** The result is that libtool may fail to recognize shared libraries
6015 *** as such. This will affect the creation of libtool libraries that
6016 *** depend on shared libraries, but programs linked with such libtool
6017 *** libraries will work regardless of this problem. Nevertheless, you
6018 *** may want to report the problem to your system manager and/or to
6019 *** bug-libtool@gnu.org
6029 MAGIC_CMD="$lt_save_MAGIC_CMD"
6034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6035 if test -n "$MAGIC_CMD"; then
6036 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6037 echo "${ECHO_T}$MAGIC_CMD" >&6
6039 echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6043 if test -z "$lt_cv_path_MAGIC_CMD"; then
6044 if test -n "$ac_tool_prefix"; then
6045 echo "$as_me:$LINENO: checking for file" >&5
6046 echo $ECHO_N "checking for file... $ECHO_C" >&6
6047 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6055 lt_save_MAGIC_CMD="$MAGIC_CMD"
6056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6057 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6058 for ac_dir in $ac_dummy; do
6060 test -z "$ac_dir" && ac_dir=.
6061 if test -f $ac_dir/file; then
6062 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6063 if test -n "$file_magic_test_file"; then
6064 case $deplibs_check_method in
6066 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6067 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6068 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6069 $EGREP "$file_magic_regex" > /dev/null; then
6074 *** Warning: the command libtool uses to detect shared libraries,
6075 *** $file_magic_cmd, produces output that libtool cannot recognize.
6076 *** The result is that libtool may fail to recognize shared libraries
6077 *** as such. This will affect the creation of libtool libraries that
6078 *** depend on shared libraries, but programs linked with such libtool
6079 *** libraries will work regardless of this problem. Nevertheless, you
6080 *** may want to report the problem to your system manager and/or to
6081 *** bug-libtool@gnu.org
6091 MAGIC_CMD="$lt_save_MAGIC_CMD"
6096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097 if test -n "$MAGIC_CMD"; then
6098 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6099 echo "${ECHO_T}$MAGIC_CMD" >&6
6101 echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6
6117 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6118 if test "${enable_libtool_lock+set}" = set; then
6119 enableval="$enable_libtool_lock"
6122 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6125 # Check whether --with-pic or --without-pic was given.
6126 if test "${with_pic+set}" = set; then
6132 test -z "$pic_mode" && pic_mode=default
6134 # Use C for the default configuration in the libtool script
6138 ac_cpp='$CPP $CPPFLAGS'
6139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6144 # Source file extension for C test sources.
6147 # Object file extension for compiled C test sources.
6151 # Code to be used in simple compile tests
6152 lt_simple_compile_test_code="int some_variable = 0;\n"
6154 # Code to be used in simple link tests
6155 lt_simple_link_test_code='int main(){return(0);}\n'
6158 # If no C compiler was specified, use CC.
6161 # Allow CC to be a program name with arguments.
6166 # Check for any special shared library compilation flags.
6169 if test "$GCC" = no; then
6172 lt_prog_cc_shlib='-belf'
6176 if test -n "$lt_prog_cc_shlib"; then
6177 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6178 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6179 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6181 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6182 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6183 lt_cv_prog_cc_can_build_shared=no
6189 # Check to make sure the static flag actually works.
6191 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6192 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6193 if test "${lt_prog_compiler_static_works+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 lt_prog_compiler_static_works=no
6197 save_LDFLAGS="$LDFLAGS"
6198 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6199 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6200 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6201 # The compiler can only warn and ignore the option if not recognized
6202 # So say no if there are warnings
6203 if test -s conftest.err; then
6204 # Append any errors to the config.log.
6205 cat conftest.err 1>&5
6207 lt_prog_compiler_static_works=yes
6211 LDFLAGS="$save_LDFLAGS"
6214 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6215 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6217 if test x"$lt_prog_compiler_static_works" = xyes; then
6220 lt_prog_compiler_static=
6226 lt_prog_compiler_no_builtin_flag=
6228 if test "$GCC" = yes; then
6229 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6232 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6233 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6234 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 lt_cv_prog_compiler_rtti_exceptions=no
6238 ac_outfile=conftest.$ac_objext
6239 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6240 lt_compiler_flag="-fno-rtti -fno-exceptions"
6241 # Insert the option either (1) after the last *FLAGS variable, or
6242 # (2) before a word containing "conftest.", or (3) at the end.
6243 # Note that $ac_compile itself does not contain backslashes and begins
6244 # with a dollar sign (not a hyphen), so the echo should work correctly.
6245 # The option is referenced via a variable to avoid confusing sed.
6246 lt_compile=`echo "$ac_compile" | $SED \
6247 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6249 -e 's:$: $lt_compiler_flag:'`
6250 (eval echo "\"\$as_me:6250: $lt_compile\"" >&5)
6251 (eval "$lt_compile" 2>conftest.err)
6253 cat conftest.err >&5
6254 echo "$as_me:6254: \$? = $ac_status" >&5
6255 if (exit $ac_status) && test -s "$ac_outfile"; then
6256 # The compiler can only warn and ignore the option if not recognized
6257 # So say no if there are warnings
6258 if test ! -s conftest.err; then
6259 lt_cv_prog_compiler_rtti_exceptions=yes
6265 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6266 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6268 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6269 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6276 lt_prog_compiler_wl=
6277 lt_prog_compiler_pic=
6278 lt_prog_compiler_static=
6280 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6281 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6283 if test "$GCC" = yes; then
6284 lt_prog_compiler_wl='-Wl,'
6285 lt_prog_compiler_static='-static'
6289 # All AIX code is PIC.
6290 if test "$host_cpu" = ia64; then
6291 # AIX 5 now supports IA64 processor
6292 lt_prog_compiler_static='-Bstatic'
6297 # FIXME: we need at least 68020 code to build shared libraries, but
6298 # adding the `-m68020' flag to GCC prevents building anything better,
6300 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6303 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6304 # PIC is the default for these OSes.
6307 mingw* | pw32* | os2*)
6308 # This hack is so that the source file can tell whether it is being
6309 # built for inclusion in a dll (and should export symbols for example).
6310 lt_prog_compiler_pic='-DDLL_EXPORT'
6313 darwin* | rhapsody*)
6314 # PIC is the default on this platform
6315 # Common symbols not allowed in MH_DYLIB files
6316 lt_prog_compiler_pic='-fno-common'
6320 # Just because we use GCC doesn't mean we suddenly get shared libraries
6321 # on systems that don't support them.
6322 lt_prog_compiler_can_build_shared=no
6327 if test -d /usr/nec; then
6328 lt_prog_compiler_pic=-Kconform_pic
6333 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6340 lt_prog_compiler_pic='-fPIC'
6346 lt_prog_compiler_pic='-fPIC'
6350 # PORTME Check for flag to pass linker flags through the system compiler.
6353 lt_prog_compiler_wl='-Wl,'
6354 if test "$host_cpu" = ia64; then
6355 # AIX 5 now supports IA64 processor
6356 lt_prog_compiler_static='-Bstatic'
6358 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6362 mingw* | pw32* | os2*)
6363 # This hack is so that the source file can tell whether it is being
6364 # built for inclusion in a dll (and should export symbols for example).
6365 lt_prog_compiler_pic='-DDLL_EXPORT'
6368 hpux9* | hpux10* | hpux11*)
6369 lt_prog_compiler_wl='-Wl,'
6370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6377 lt_prog_compiler_pic='+Z'
6380 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6381 lt_prog_compiler_static='${wl}-a ${wl}archive'
6384 irix5* | irix6* | nonstopux*)
6385 lt_prog_compiler_wl='-Wl,'
6386 # PIC (with -KPIC) is the default.
6387 lt_prog_compiler_static='-non_shared'
6391 lt_prog_compiler_pic='-KPIC'
6392 lt_prog_compiler_static='-Bstatic'
6398 lt_prog_compiler_wl='-Wl,'
6399 lt_prog_compiler_pic='-KPIC'
6400 lt_prog_compiler_static='-static'
6403 lt_prog_compiler_wl='-Wl,'
6404 # All Alpha code is PIC.
6405 lt_prog_compiler_static='-non_shared'
6410 osf3* | osf4* | osf5*)
6411 lt_prog_compiler_wl='-Wl,'
6412 # All OSF/1 code is PIC.
6413 lt_prog_compiler_static='-non_shared'
6417 lt_prog_compiler_pic='-Kpic'
6418 lt_prog_compiler_static='-dn'
6422 lt_prog_compiler_wl='-Wl,'
6423 lt_prog_compiler_pic='-KPIC'
6424 lt_prog_compiler_static='-Bstatic'
6428 lt_prog_compiler_wl='-Qoption ld '
6429 lt_prog_compiler_pic='-PIC'
6430 lt_prog_compiler_static='-Bstatic'
6433 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6434 lt_prog_compiler_wl='-Wl,'
6435 lt_prog_compiler_pic='-KPIC'
6436 lt_prog_compiler_static='-Bstatic'
6440 if test -d /usr/nec ;then
6441 lt_prog_compiler_pic='-Kconform_pic'
6442 lt_prog_compiler_static='-Bstatic'
6447 lt_prog_compiler_pic='-pic'
6448 lt_prog_compiler_static='-Bstatic'
6452 lt_prog_compiler_can_build_shared=no
6457 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6458 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6461 # Check to make sure the PIC flag actually works.
6463 if test -n "$lt_prog_compiler_pic"; then
6465 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6466 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6467 if test "${lt_prog_compiler_pic_works+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 lt_prog_compiler_pic_works=no
6471 ac_outfile=conftest.$ac_objext
6472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6473 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6474 # Insert the option either (1) after the last *FLAGS variable, or
6475 # (2) before a word containing "conftest.", or (3) at the end.
6476 # Note that $ac_compile itself does not contain backslashes and begins
6477 # with a dollar sign (not a hyphen), so the echo should work correctly.
6478 # The option is referenced via a variable to avoid confusing sed.
6479 lt_compile=`echo "$ac_compile" | $SED \
6480 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6482 -e 's:$: $lt_compiler_flag:'`
6483 (eval echo "\"\$as_me:6483: $lt_compile\"" >&5)
6484 (eval "$lt_compile" 2>conftest.err)
6486 cat conftest.err >&5
6487 echo "$as_me:6487: \$? = $ac_status" >&5
6488 if (exit $ac_status) && test -s "$ac_outfile"; then
6489 # The compiler can only warn and ignore the option if not recognized
6490 # So say no if there are warnings
6491 if test ! -s conftest.err; then
6492 lt_prog_compiler_pic_works=yes
6498 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6499 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6501 if test x"$lt_prog_compiler_pic_works" = xyes; then
6502 case $lt_prog_compiler_pic in
6504 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6507 lt_prog_compiler_pic=
6508 lt_prog_compiler_can_build_shared=no
6513 # For platforms which do not support PIC, -DPIC is meaningless:
6515 lt_prog_compiler_pic=
6518 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6522 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6523 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6524 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 lt_cv_prog_compiler_c_o=no
6528 $rm -r conftest 2>/dev/null
6532 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6534 lt_compiler_flag="-o out/conftest2.$ac_objext"
6535 # Insert the option either (1) after the last *FLAGS variable, or
6536 # (2) before a word containing "conftest.", or (3) at the end.
6537 # Note that $ac_compile itself does not contain backslashes and begins
6538 # with a dollar sign (not a hyphen), so the echo should work correctly.
6539 lt_compile=`echo "$ac_compile" | $SED \
6540 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6542 -e 's:$: $lt_compiler_flag:'`
6543 (eval echo "\"\$as_me:6543: $lt_compile\"" >&5)
6544 (eval "$lt_compile" 2>out/conftest.err)
6546 cat out/conftest.err >&5
6547 echo "$as_me:6547: \$? = $ac_status" >&5
6548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6550 # The compiler can only warn and ignore the option if not recognized
6551 # So say no if there are warnings
6552 if test ! -s out/conftest.err; then
6553 lt_cv_prog_compiler_c_o=yes
6558 # SGI C++ compiler will create directory out/ii_files/ for
6559 # template instantiation
6560 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6561 $rm out/* && rmdir out
6567 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6568 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6571 hard_links="nottested"
6572 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6573 # do not overwrite the value of need_locks provided by the user
6574 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6575 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6580 ln conftest.a conftest.b 2>&5 || hard_links=no
6581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6582 echo "$as_me:$LINENO: result: $hard_links" >&5
6583 echo "${ECHO_T}$hard_links" >&6
6584 if test "$hard_links" = no; then
6585 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6586 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6593 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6594 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6597 allow_undefined_flag=
6598 enable_shared_with_static_runtimes=no
6600 archive_expsym_cmds=
6601 old_archive_From_new_cmds=
6602 old_archive_from_expsyms_cmds=
6603 export_dynamic_flag_spec=
6604 whole_archive_flag_spec=
6605 thread_safe_flag_spec=
6606 hardcode_libdir_flag_spec=
6607 hardcode_libdir_flag_spec_ld=
6608 hardcode_libdir_separator=
6611 hardcode_shlibpath_var=unsupported
6612 link_all_deplibs=unknown
6613 hardcode_automatic=no
6616 always_export_symbols=no
6617 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6618 # include_expsyms should be a list of space-separated symbols to be *always*
6619 # included in the symbol list
6621 # exclude_expsyms can be an extended regexp of symbols to exclude
6622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6624 # as well as any symbol that contains `d'.
6625 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6627 # platforms (ab)use it in PIC code, but their linkers get confused if
6628 # the symbol is explicitly referenced. Since portable code cannot
6629 # rely on this symbol name, it's probably fine to never include it in
6630 # preloaded symbol tables.
6631 extract_expsyms_cmds=
6634 cygwin* | mingw* | pw32*)
6635 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6636 # When not using gcc, we currently assume that we are using
6637 # Microsoft Visual C++.
6638 if test "$GCC" != yes; then
6648 if test "$with_gnu_ld" = yes; then
6649 # If archive_cmds runs LD, not CC, wlarc should be empty
6652 # See if GNU ld supports shared libraries.
6654 aix3* | aix4* | aix5*)
6655 # On AIX/PPC, the GNU linker is very broken
6656 if test "$host_cpu" != ia64; then
6660 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6661 *** to be unable to reliably create shared libraries on AIX.
6662 *** Therefore, libtool is disabling shared libraries support. If you
6663 *** really care for shared libraries, you may want to modify your PATH
6664 *** so that a non-GNU linker is found, and then restart.
6671 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)'
6672 hardcode_libdir_flag_spec='-L$libdir'
6673 hardcode_minus_L=yes
6675 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6676 # that the semantics of dynamic libraries on AmigaOS, at least up
6677 # to version 4, is to share data among multiple programs linked
6678 # with the same dynamic library. Since this doesn't match the
6679 # behavior of shared libraries on other platforms, we can't use
6685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6686 allow_undefined_flag=unsupported
6687 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6688 # support --undefined. This deserves some investigation. FIXME
6689 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6695 cygwin* | mingw* | pw32*)
6696 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6697 # as there is no search path for DLLs.
6698 hardcode_libdir_flag_spec='-L$libdir'
6699 allow_undefined_flag=unsupported
6700 always_export_symbols=no
6701 enable_shared_with_static_runtimes=yes
6702 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6704 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6706 # If the export-symbols file already is a .def file (1st line
6707 # is EXPORTS), use it as is; otherwise, prepend...
6708 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6709 cp $export_symbols $output_objdir/$soname.def;
6711 echo EXPORTS > $output_objdir/$soname.def;
6712 cat $export_symbols >> $output_objdir/$soname.def;
6714 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6720 netbsd* | knetbsd*-gnu)
6721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6722 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6726 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6731 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6735 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6736 *** create shared libraries on Solaris systems. Therefore, libtool
6737 *** is disabling shared libraries support. We urge you to upgrade GNU
6738 *** binutils to release 2.9.1 or newer. Another option is to modify
6739 *** your PATH or compiler configuration so that the native linker is
6740 *** used, and then restart.
6743 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6745 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6752 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6755 hardcode_shlibpath_var=no
6759 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6760 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761 archive_cmds="$tmp_archive_cmds"
6762 supports_anon_versioning=no
6763 case `$LD -v 2>/dev/null` in
6764 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6765 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6766 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6767 *\ 2.11.*) ;; # other 2.11 versions
6768 *) supports_anon_versioning=yes ;;
6770 if test $supports_anon_versioning = yes; then
6771 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6773 $echo "local: *; };" >> $output_objdir/$libname.ver~
6774 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6776 archive_expsym_cmds="$tmp_archive_cmds"
6784 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6786 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6793 if test "$ld_shlibs" = yes; then
6794 runpath_var=LD_RUN_PATH
6795 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6796 export_dynamic_flag_spec='${wl}--export-dynamic'
6797 # ancient GNU ld didn't support --whole-archive et. al.
6798 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6799 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6801 whole_archive_flag_spec=
6805 # PORTME fill in a description of your system's linker (not GNU ld)
6808 allow_undefined_flag=unsupported
6809 always_export_symbols=yes
6810 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'
6811 # Note: this linker hardcodes the directories in LIBPATH if there
6812 # are no directories specified by -L.
6813 hardcode_minus_L=yes
6814 if test "$GCC" = yes && test -z "$link_static_flag"; then
6815 # Neither direct hardcoding nor static linking is supported with a
6817 hardcode_direct=unsupported
6822 if test "$host_cpu" = ia64; then
6823 # On IA64, the linker does run time linking by default, so we don't
6824 # have to do anything special.
6825 aix_use_runtimelinking=no
6826 exp_sym_flag='-Bexport'
6829 # If we're using GNU nm, then we don't want the "-C" option.
6830 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6831 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6832 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'
6834 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'
6836 aix_use_runtimelinking=no
6838 # Test if we are trying to use run time linking or normal
6839 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6840 # need to do runtime linking.
6841 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6842 for ld_flag in $LDFLAGS; do
6843 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6844 aix_use_runtimelinking=yes
6850 exp_sym_flag='-bexport'
6851 no_entry_flag='-bnoentry'
6854 # When large executables or shared objects are built, AIX ld can
6855 # have problems creating the table of contents. If linking a library
6856 # or program results in "error TOC overflow" add -mminimal-toc to
6857 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6858 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6862 hardcode_libdir_separator=':'
6863 link_all_deplibs=yes
6865 if test "$GCC" = yes; then
6866 case $host_os in aix4.012|aix4.012.*)
6867 # We only want to do this on AIX 4.2 and lower, the check
6868 # below for broken collect2 doesn't work under 4.3+
6869 collect2name=`${CC} -print-prog-name=collect2`
6870 if test -f "$collect2name" && \
6871 strings "$collect2name" | grep resolve_lib_name >/dev/null
6873 # We have reworked collect2
6876 # We have old collect2
6877 hardcode_direct=unsupported
6878 # It fails to find uninstalled libraries when the uninstalled
6879 # path is not listed in the libpath. Setting hardcode_minus_L
6880 # to unsupported forces relinking
6881 hardcode_minus_L=yes
6882 hardcode_libdir_flag_spec='-L$libdir'
6883 hardcode_libdir_separator=
6886 shared_flag='-shared'
6889 if test "$host_cpu" = ia64; then
6890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6891 # chokes on -Wl,-G. The following line is correct:
6894 if test "$aix_use_runtimelinking" = yes; then
6895 shared_flag='${wl}-G'
6897 shared_flag='${wl}-bM:SRE'
6902 # It seems that -bexpall does not export symbols beginning with
6903 # underscore (_), so it is better to generate a list of symbols to export.
6904 always_export_symbols=yes
6905 if test "$aix_use_runtimelinking" = yes; then
6906 # Warning - without using the other runtime loading flags (-brtl),
6907 # -berok will link without error, but may produce a broken library.
6908 allow_undefined_flag='-berok'
6909 # Determine the default libpath from the value encoded in an empty executable.
6910 cat >conftest.$ac_ext <<_ACEOF
6913 cat confdefs.h >>conftest.$ac_ext
6914 cat >>conftest.$ac_ext <<_ACEOF
6915 /* end confdefs.h. */
6925 rm -f conftest.$ac_objext conftest$ac_exeext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6927 (eval $ac_link) 2>conftest.er1
6929 grep -v '^ *+' conftest.er1 >conftest.err
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
6934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; } &&
6940 { ac_try='test -s conftest$ac_exeext'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; }; then
6947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6949 # Check for a 64-bit object if we didn't find anything.
6950 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; }
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6957 rm -f conftest.err conftest.$ac_objext \
6958 conftest$ac_exeext conftest.$ac_ext
6959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6962 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"
6964 if test "$host_cpu" = ia64; then
6965 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6966 allow_undefined_flag="-z nodefs"
6967 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"
6969 # Determine the default libpath from the value encoded in an empty executable.
6970 cat >conftest.$ac_ext <<_ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6985 rm -f conftest.$ac_objext conftest$ac_exeext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6987 (eval $ac_link) 2>conftest.er1
6989 grep -v '^ *+' conftest.er1 >conftest.err
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; } &&
7000 { ac_try='test -s conftest$ac_exeext'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7009 # Check for a 64-bit object if we didn't find anything.
7010 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; }
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7017 rm -f conftest.err conftest.$ac_objext \
7018 conftest$ac_exeext conftest.$ac_ext
7019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7021 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7022 # Warning - without using the other run time loading flags,
7023 # -berok will link without error, but may produce a broken library.
7024 no_undefined_flag=' ${wl}-bernotok'
7025 allow_undefined_flag=' ${wl}-berok'
7026 # -bexpall does not export symbols beginning with underscore (_)
7027 always_export_symbols=yes
7028 # Exported symbols can be pulled into shared objects from archives
7029 whole_archive_flag_spec=' '
7030 archive_cmds_need_lc=yes
7031 # This is similar to how AIX traditionally builds it's shared libraries.
7032 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'
7038 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)'
7039 hardcode_libdir_flag_spec='-L$libdir'
7040 hardcode_minus_L=yes
7041 # see comment about different semantics on the GNU ld section
7046 export_dynamic_flag_spec=-rdynamic
7049 cygwin* | mingw* | pw32*)
7050 # When not using gcc, we currently assume that we are using
7051 # Microsoft Visual C++.
7052 # hardcode_libdir_flag_spec is actually meaningless, as there is
7053 # no search path for DLLs.
7054 hardcode_libdir_flag_spec=' '
7055 allow_undefined_flag=unsupported
7056 # Tell ltmain to make .lib files, not .a files.
7058 # Tell ltmain to make .dll files, not .so files.
7060 # FIXME: Setting linknames here is a bad hack.
7061 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7062 # The linker will automatically build a .lib file if we build a DLL.
7063 old_archive_From_new_cmds='true'
7064 # FIXME: Should let the user specify the lib program.
7065 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7066 fix_srcfile_path='`cygpath -w "$srcfile"`'
7067 enable_shared_with_static_runtimes=yes
7070 darwin* | rhapsody*)
7071 if test "$GXX" = yes ; then
7072 archive_cmds_need_lc=no
7074 rhapsody* | darwin1.[012])
7075 allow_undefined_flag='-undefined suppress'
7078 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7079 allow_undefined_flag='-flat_namespace -undefined suppress'
7081 case ${MACOSX_DEPLOYMENT_TARGET} in
7083 allow_undefined_flag='-flat_namespace -undefined suppress'
7086 allow_undefined_flag='-undefined dynamic_lookup'
7092 lt_int_apple_cc_single_mod=no
7093 output_verbose_link_cmd='echo'
7094 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7095 lt_int_apple_cc_single_mod=yes
7097 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7098 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7100 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'
7102 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7103 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7104 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7105 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}'
7107 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}'
7109 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}'
7111 hardcode_automatic=yes
7112 hardcode_shlibpath_var=unsupported
7113 whole_archive_flag_spec='-all_load $convenience'
7114 link_all_deplibs=yes
7121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7122 hardcode_libdir_flag_spec='-L$libdir'
7123 hardcode_shlibpath_var=no
7130 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7131 # support. Future versions do this automatically, but an explicit c++rt0.o
7132 # does not break anything, and helps significantly (at the cost of a little
7135 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7136 hardcode_libdir_flag_spec='-R$libdir'
7138 hardcode_shlibpath_var=no
7141 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7145 hardcode_minus_L=yes
7146 hardcode_shlibpath_var=no
7149 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7150 freebsd* | kfreebsd*-gnu)
7151 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7152 hardcode_libdir_flag_spec='-R$libdir'
7154 hardcode_shlibpath_var=no
7158 if test "$GCC" = yes; then
7159 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'
7161 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'
7163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7164 hardcode_libdir_separator=:
7167 # hardcode_minus_L: Not really in the search PATH,
7168 # but as the default location of the library.
7169 hardcode_minus_L=yes
7170 export_dynamic_flag_spec='${wl}-E'
7174 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7177 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7180 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7186 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7189 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7193 if test "$with_gnu_ld" = no; then
7196 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7197 hardcode_libdir_flag_spec_ld='+b $libdir'
7198 hardcode_libdir_separator=:
7200 hardcode_shlibpath_var=no
7203 hardcode_libdir_flag_spec='-L$libdir'
7205 hardcode_shlibpath_var=no
7207 # hardcode_minus_L: Not really in the search PATH,
7208 # but as the default location of the library.
7209 hardcode_minus_L=yes
7212 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7213 hardcode_libdir_separator=:
7215 export_dynamic_flag_spec='${wl}-E'
7217 # hardcode_minus_L: Not really in the search PATH,
7218 # but as the default location of the library.
7219 hardcode_minus_L=yes
7225 irix5* | irix6* | nonstopux*)
7226 if test "$GCC" = yes; then
7227 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'
7229 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'
7230 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7233 hardcode_libdir_separator=:
7234 link_all_deplibs=yes
7237 netbsd* | knetbsd*-gnu)
7238 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7241 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7243 hardcode_libdir_flag_spec='-R$libdir'
7245 hardcode_shlibpath_var=no
7249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7251 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7252 hardcode_libdir_separator=:
7253 hardcode_shlibpath_var=no
7258 hardcode_shlibpath_var=no
7259 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7261 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7262 export_dynamic_flag_spec='${wl}-E'
7265 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7267 hardcode_libdir_flag_spec='-R$libdir'
7270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7271 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7278 hardcode_libdir_flag_spec='-L$libdir'
7279 hardcode_minus_L=yes
7280 allow_undefined_flag=unsupported
7281 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'
7282 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7286 if test "$GCC" = yes; then
7287 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7288 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'
7290 allow_undefined_flag=' -expect_unresolved \*'
7291 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'
7293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7294 hardcode_libdir_separator=:
7297 osf4* | osf5*) # as osf3* with the addition of -msym flag
7298 if test "$GCC" = yes; then
7299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7300 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'
7301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7303 allow_undefined_flag=' -expect_unresolved \*'
7304 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'
7305 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7306 $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'
7308 # Both c and cxx compiler support -rpath directly
7309 hardcode_libdir_flag_spec='-rpath $libdir'
7311 hardcode_libdir_separator=:
7315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7316 hardcode_shlibpath_var=no
7317 export_dynamic_flag_spec='${wl}-Bexport'
7318 runpath_var=LD_RUN_PATH
7319 hardcode_runpath_var=yes
7323 no_undefined_flag=' -z text'
7324 if test "$GCC" = yes; then
7325 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7326 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7327 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7329 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7330 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7331 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7333 hardcode_libdir_flag_spec='-R$libdir'
7334 hardcode_shlibpath_var=no
7336 solaris2.[0-5] | solaris2.[0-5].*) ;;
7337 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7338 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7340 link_all_deplibs=yes
7344 if test "x$host_vendor" = xsequent; then
7345 # Use $CC to link under sequent, because it throws in some extra .o
7346 # files that make .init and .fini sections work.
7347 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7349 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7351 hardcode_libdir_flag_spec='-L$libdir'
7353 hardcode_minus_L=yes
7354 hardcode_shlibpath_var=no
7358 case $host_vendor in
7360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7361 hardcode_direct=yes # is this really true???
7364 ## LD is ld it makes a PLAMLIB
7365 ## CC just makes a GrossModule.
7366 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7367 reload_cmds='$CC -r -o $output$reload_objs'
7371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7372 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7375 runpath_var='LD_RUN_PATH'
7376 hardcode_shlibpath_var=no
7380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7381 hardcode_shlibpath_var=no
7382 export_dynamic_flag_spec='-Bexport'
7386 if test -d /usr/nec; then
7387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7388 hardcode_shlibpath_var=no
7389 runpath_var=LD_RUN_PATH
7390 hardcode_runpath_var=yes
7396 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7399 hardcode_shlibpath_var=no
7400 hardcode_runpath_var=yes
7401 runpath_var=LD_RUN_PATH
7404 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7405 no_undefined_flag='${wl}-z ${wl}text'
7406 if test "$GCC" = yes; then
7407 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7409 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7411 runpath_var='LD_RUN_PATH'
7412 hardcode_shlibpath_var=no
7416 no_undefined_flag=' -z text'
7417 # $CC -shared without GNU ld will not create a library from C++
7418 # object files and a static libstdc++, better avoid it by now
7419 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7420 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7421 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7422 hardcode_libdir_flag_spec=
7423 hardcode_shlibpath_var=no
7424 runpath_var='LD_RUN_PATH'
7428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7429 hardcode_libdir_flag_spec='-L$libdir'
7430 hardcode_shlibpath_var=no
7439 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7440 echo "${ECHO_T}$ld_shlibs" >&6
7441 test "$ld_shlibs" = no && can_build_shared=no
7443 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7444 if test "$GCC" = yes; then
7445 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7449 # Do we need to explicitly link libc?
7451 case "x$archive_cmds_need_lc" in
7453 # Assume -lc should be added
7454 archive_cmds_need_lc=yes
7456 if test "$enable_shared" = yes && test "$GCC" = yes; then
7457 case $archive_cmds in
7459 # FIXME: we may have to deal with multi-command sequences.
7462 # Test whether the compiler implicitly links with -lc since on some
7463 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7464 # to ld, don't add -lc before -lgcc.
7465 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7466 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7471 (eval $ac_compile) 2>&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } 2>conftest.err; then
7477 libobjs=conftest.$ac_objext
7479 wl=$lt_prog_compiler_wl
7485 lt_save_allow_undefined_flag=$allow_undefined_flag
7486 allow_undefined_flag=
7487 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7488 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }
7493 archive_cmds_need_lc=no
7495 archive_cmds_need_lc=yes
7497 allow_undefined_flag=$lt_save_allow_undefined_flag
7499 cat conftest.err 1>&5
7502 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7503 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7510 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7511 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7513 libname_spec='lib$name'
7521 shlibpath_overrides_runpath=unknown
7523 dynamic_linker="$host_os ld.so"
7524 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7525 if test "$GCC" = yes; then
7526 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7527 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7528 # if the path contains ";" then we assume it to be the separator
7529 # otherwise default to the standard path separator (i.e. ":") - it is
7530 # assumed that no part of a normal pathname contains ";" but that should
7531 # okay in the real world where ";" in dirpaths is itself problematic.
7532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7534 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7539 need_lib_prefix=unknown
7540 hardcode_into_libs=no
7542 # when you set need_version to no, make sure it does not cause -set_version
7543 # flags to be left without arguments
7544 need_version=unknown
7549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7550 shlibpath_var=LIBPATH
7552 # AIX 3 has no versioning support, so we append a major version to the name.
7553 soname_spec='${libname}${release}${shared_ext}$major'
7560 hardcode_into_libs=yes
7561 if test "$host_cpu" = ia64; then
7562 # AIX 5 supports IA64
7563 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7564 shlibpath_var=LD_LIBRARY_PATH
7566 # With GCC up to 2.95.x, collect2 would create an import file
7567 # for dependence libraries. The import file would start with
7568 # the line `#! .'. This would cause the generated library to
7569 # depend on `.', always an invalid library. This was fixed in
7570 # development snapshots of GCC prior to 3.0.
7572 aix4 | aix4.[01] | aix4.[01].*)
7573 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7575 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7582 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7583 # soname into executable. Probably we can add versioning support to
7584 # collect2, so additional links can be useful in future.
7585 if test "$aix_use_runtimelinking" = yes; then
7586 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7587 # instead of lib<name>.a to let people know that these are not
7588 # typical AIX shared libraries.
7589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7591 # We preserve .a as extension for shared libraries through AIX4.2
7592 # and later when we are not doing run time linking.
7593 library_names_spec='${libname}${release}.a $libname.a'
7594 soname_spec='${libname}${release}${shared_ext}$major'
7596 shlibpath_var=LIBPATH
7601 library_names_spec='$libname.ixlibrary $libname.a'
7602 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7603 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'
7607 library_names_spec='${libname}${shared_ext}'
7608 dynamic_linker="$host_os ld.so"
7609 shlibpath_var=LIBRARY_PATH
7615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7616 soname_spec='${libname}${release}${shared_ext}$major'
7617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7618 shlibpath_var=LD_LIBRARY_PATH
7619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7621 # the default ld.so.conf also contains /usr/contrib/lib and
7622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7623 # libtool to hard-code these into programs
7626 cygwin* | mingw* | pw32*)
7627 version_type=windows
7632 case $GCC,$host_os in
7633 yes,cygwin* | yes,mingw* | yes,pw32*)
7634 library_names_spec='$libname.dll.a'
7635 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7636 postinstall_cmds='base_file=`basename \${file}`~
7637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7638 dldir=$destdir/`dirname \$dlpath`~
7639 test -d \$dldir || mkdir -p \$dldir~
7640 $install_prog $dir/$dlname \$dldir/$dlname'
7641 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7642 dlpath=$dir/\$dldll~
7644 shlibpath_overrides_runpath=yes
7648 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7649 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7650 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7653 # MinGW DLLs use traditional 'lib' prefix
7654 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7655 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7656 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7657 # It is most probably a Windows format PATH printed by
7658 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7659 # path with ; separators, and with drive letters. We can handle the
7660 # drive letters (cygwin fileutils understands them), so leave them,
7661 # especially as we might pass files found there to a mingw objdump,
7662 # which wouldn't understand a cygwinified path. Ahh.
7663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7669 # pw32 DLLs use 'pw' prefix rather than 'lib'
7670 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7676 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7679 dynamic_linker='Win32 ld.exe'
7680 # FIXME: first we should search . and the directory the executable is in
7684 darwin* | rhapsody*)
7685 dynamic_linker="$host_os dyld"
7689 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7690 soname_spec='${libname}${release}${major}$shared_ext'
7691 shlibpath_overrides_runpath=yes
7692 shlibpath_var=DYLD_LIBRARY_PATH
7693 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7694 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7695 if test "$GCC" = yes; then
7696 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"`
7698 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7700 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7708 soname_spec='${libname}${release}${shared_ext}$major'
7709 shlibpath_var=LD_LIBRARY_PATH
7720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7721 soname_spec='${libname}${release}${shared_ext}$major'
7722 shlibpath_var=LD_LIBRARY_PATH
7723 shlibpath_overrides_runpath=no
7724 hardcode_into_libs=yes
7725 dynamic_linker='GNU ld.so'
7729 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7730 version_type=freebsd-$objformat
7731 case $version_type in
7733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7742 shlibpath_var=LD_LIBRARY_PATH
7745 shlibpath_overrides_runpath=yes
7747 freebsd3.01* | freebsdelf3.01*)
7748 shlibpath_overrides_runpath=yes
7749 hardcode_into_libs=yes
7752 shlibpath_overrides_runpath=no
7753 hardcode_into_libs=yes
7762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7763 soname_spec='${libname}${release}${shared_ext}$major'
7764 shlibpath_var=LD_LIBRARY_PATH
7765 hardcode_into_libs=yes
7768 hpux9* | hpux10* | hpux11*)
7769 # Give a soname corresponding to the major version so that dld.sl refuses to
7770 # link against other versions.
7777 hardcode_into_libs=yes
7778 dynamic_linker="$host_os dld.so"
7779 shlibpath_var=LD_LIBRARY_PATH
7780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7782 soname_spec='${libname}${release}${shared_ext}$major'
7783 if test "X$HPUX_IA64_MODE" = X32; then
7784 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7786 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7792 hardcode_into_libs=yes
7793 dynamic_linker="$host_os dld.sl"
7794 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7797 soname_spec='${libname}${release}${shared_ext}$major'
7798 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7803 dynamic_linker="$host_os dld.sl"
7804 shlibpath_var=SHLIB_PATH
7805 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7807 soname_spec='${libname}${release}${shared_ext}$major'
7810 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7811 postinstall_cmds='chmod 555 $lib'
7814 irix5* | irix6* | nonstopux*)
7816 nonstopux*) version_type=nonstopux ;;
7818 if test "$lt_cv_prog_gnu_ld" = yes; then
7826 soname_spec='${libname}${release}${shared_ext}$major'
7827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7829 irix5* | nonstopux*)
7833 case $LD in # libtool.m4 will add one of these switches to LD
7834 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7835 libsuff= shlibsuff= libmagic=32-bit;;
7836 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7837 libsuff=32 shlibsuff=N32 libmagic=N32;;
7838 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7839 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7840 *) libsuff= shlibsuff= libmagic=never-match;;
7844 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7845 shlibpath_overrides_runpath=no
7846 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7847 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7848 hardcode_into_libs=yes
7851 # No shared lib support for Linux oldld, aout, or coff.
7852 linux*oldld* | linux*aout* | linux*coff*)
7856 # This must be Linux ELF.
7861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7862 soname_spec='${libname}${release}${shared_ext}$major'
7863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7864 shlibpath_var=LD_LIBRARY_PATH
7865 shlibpath_overrides_runpath=no
7866 # This implies no fast_install, which is unacceptable.
7867 # Some rework will be needed to allow for fast_install
7868 # before this can be enabled.
7869 hardcode_into_libs=yes
7871 # Append ld.so.conf contents to the search path
7872 if test -f /etc/ld.so.conf; then
7873 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7874 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7877 # We used to test for /lib/ld.so.1 and disable shared libraries on
7878 # powerpc, because MkLinux only supported shared libraries with the
7879 # GNU dynamic linker. Since this was broken with cross compilers,
7880 # most powerpc-linux boxes support dynamic linking these days and
7881 # people can always --disable-shared, the test was removed, and we
7882 # assume the GNU/Linux dynamic linker is in use.
7883 dynamic_linker='GNU/Linux ld.so'
7890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7891 soname_spec='${libname}${release}${shared_ext}$major'
7892 shlibpath_var=LD_LIBRARY_PATH
7893 shlibpath_overrides_runpath=no
7894 hardcode_into_libs=yes
7895 dynamic_linker='GNU ld.so'
7902 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7905 dynamic_linker='NetBSD (a.out) ld.so'
7907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7908 soname_spec='${libname}${release}${shared_ext}$major'
7909 dynamic_linker='NetBSD ld.elf_so'
7911 shlibpath_var=LD_LIBRARY_PATH
7912 shlibpath_overrides_runpath=yes
7913 hardcode_into_libs=yes
7918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7919 shlibpath_var=LD_LIBRARY_PATH
7920 shlibpath_overrides_runpath=yes
7927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7928 soname_spec='${libname}${release}${shared_ext}$major'
7929 shlibpath_var=LD_LIBRARY_PATH
7930 shlibpath_overrides_runpath=yes
7937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7939 shlibpath_var=LD_LIBRARY_PATH
7940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7942 openbsd2.[89] | openbsd2.[89].*)
7943 shlibpath_overrides_runpath=no
7946 shlibpath_overrides_runpath=yes
7950 shlibpath_overrides_runpath=yes
7955 libname_spec='$name'
7958 library_names_spec='$libname${shared_ext} $libname.a'
7959 dynamic_linker='OS/2 ld.exe'
7960 shlibpath_var=LIBPATH
7963 osf3* | osf4* | osf5*)
7967 soname_spec='${libname}${release}${shared_ext}$major'
7968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7969 shlibpath_var=LD_LIBRARY_PATH
7970 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7971 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7976 soname_spec='${libname}${release}${shared_ext}$major'
7977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7978 shlibpath_var=LD_LIBRARY_PATH
7985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7986 soname_spec='${libname}${release}${shared_ext}$major'
7987 shlibpath_var=LD_LIBRARY_PATH
7988 shlibpath_overrides_runpath=yes
7989 hardcode_into_libs=yes
7990 # ldd complains unless libraries are executable
7991 postinstall_cmds='chmod +x $lib'
7996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7998 shlibpath_var=LD_LIBRARY_PATH
7999 shlibpath_overrides_runpath=yes
8000 if test "$with_gnu_ld" = yes; then
8006 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8009 soname_spec='${libname}${release}${shared_ext}$major'
8010 shlibpath_var=LD_LIBRARY_PATH
8011 case $host_vendor in
8013 shlibpath_overrides_runpath=no
8015 export_dynamic_flag_spec='${wl}-Blargedynsym'
8016 runpath_var=LD_RUN_PATH
8024 shlibpath_overrides_runpath=no
8025 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8031 if test -d /usr/nec ;then
8033 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8034 soname_spec='$libname${shared_ext}.$major'
8035 shlibpath_var=LD_LIBRARY_PATH
8041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8042 soname_spec='${libname}${release}${shared_ext}$major'
8043 shlibpath_var=LD_LIBRARY_PATH
8050 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8051 echo "${ECHO_T}$dynamic_linker" >&6
8052 test "$dynamic_linker" = no && can_build_shared=no
8054 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8055 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8057 if test -n "$hardcode_libdir_flag_spec" || \
8058 test -n "$runpath_var " || \
8059 test "X$hardcode_automatic"="Xyes" ; then
8061 # We can hardcode non-existant directories.
8062 if test "$hardcode_direct" != no &&
8063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8064 # have to relink, otherwise we might link with an installed library
8065 # when we should be linking with a yet-to-be-installed one
8066 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8067 test "$hardcode_minus_L" != no; then
8068 # Linking always hardcodes the temporary library directory.
8069 hardcode_action=relink
8071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8072 hardcode_action=immediate
8075 # We cannot hardcode anything, or else we can only hardcode existing
8077 hardcode_action=unsupported
8079 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8080 echo "${ECHO_T}$hardcode_action" >&6
8082 if test "$hardcode_action" = relink; then
8083 # Fast installation is not supported
8084 enable_fast_install=no
8085 elif test "$shlibpath_overrides_runpath" = yes ||
8086 test "$enable_shared" = no; then
8087 # Fast installation is not necessary
8088 enable_fast_install=needless
8093 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8094 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8095 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8096 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8097 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8098 echo "$as_me:$LINENO: result: yes" >&5
8099 echo "${ECHO_T}yes" >&6
8101 # FIXME - insert some real tests, host_os isn't really good enough
8104 if test -n "$STRIP" ; then
8105 striplib="$STRIP -x"
8106 echo "$as_me:$LINENO: result: yes" >&5
8107 echo "${ECHO_T}yes" >&6
8109 echo "$as_me:$LINENO: result: no" >&5
8110 echo "${ECHO_T}no" >&6
8114 echo "$as_me:$LINENO: result: no" >&5
8115 echo "${ECHO_T}no" >&6
8120 if test "x$enable_dlopen" != xyes; then
8121 enable_dlopen=unknown
8122 enable_dlopen_self=unknown
8123 enable_dlopen_self_static=unknown
8130 lt_cv_dlopen="load_add_on"
8132 lt_cv_dlopen_self=yes
8136 lt_cv_dlopen="LoadLibrary"
8141 lt_cv_dlopen="dlopen"
8146 # if libdl is installed we need to link against it
8147 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8148 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8149 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 ac_check_lib_save_LIBS=$LIBS
8154 cat >conftest.$ac_ext <<_ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8161 /* Override any gcc2 internal prototype to avoid an error. */
8165 /* We use char because int might match the return type of a gcc2
8166 builtin and then its argument prototype would still apply. */
8176 rm -f conftest.$ac_objext conftest$ac_exeext
8177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8178 (eval $ac_link) 2>conftest.er1
8180 grep -v '^ *+' conftest.er1 >conftest.err
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } &&
8185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; } &&
8191 { ac_try='test -s conftest$ac_exeext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 ac_cv_lib_dl_dlopen=yes
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 ac_cv_lib_dl_dlopen=no
8204 rm -f conftest.err conftest.$ac_objext \
8205 conftest$ac_exeext conftest.$ac_ext
8206 LIBS=$ac_check_lib_save_LIBS
8208 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8209 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8210 if test $ac_cv_lib_dl_dlopen = yes; then
8211 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8216 lt_cv_dlopen_self=yes
8223 echo "$as_me:$LINENO: checking for shl_load" >&5
8224 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8225 if test "${ac_cv_func_shl_load+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8236 #define shl_load innocuous_shl_load
8238 /* System header to define __stub macros and hopefully few prototypes,
8239 which can conflict with char shl_load (); below.
8240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8241 <limits.h> exists even on freestanding compilers. */
8244 # include <limits.h>
8246 # include <assert.h>
8251 /* Override any gcc2 internal prototype to avoid an error. */
8256 /* We use char because int might match the return type of a gcc2
8257 builtin and then its argument prototype would still apply. */
8259 /* The GNU C library defines this for functions which it implements
8260 to always fail with ENOSYS. Some functions are actually named
8261 something starting with __ and the normal name is an alias. */
8262 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8265 char (*f) () = shl_load;
8274 return f != shl_load;
8279 rm -f conftest.$ac_objext conftest$ac_exeext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8281 (eval $ac_link) 2>conftest.er1
8283 grep -v '^ *+' conftest.er1 >conftest.err
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try='test -s conftest$ac_exeext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 ac_cv_func_shl_load=yes
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8305 ac_cv_func_shl_load=no
8307 rm -f conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8311 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8312 if test $ac_cv_func_shl_load = yes; then
8313 lt_cv_dlopen="shl_load"
8315 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8316 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8317 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 ac_check_lib_save_LIBS=$LIBS
8322 cat >conftest.$ac_ext <<_ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8329 /* Override any gcc2 internal prototype to avoid an error. */
8333 /* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */
8344 rm -f conftest.$ac_objext conftest$ac_exeext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346 (eval $ac_link) 2>conftest.er1
8348 grep -v '^ *+' conftest.er1 >conftest.err
8350 cat conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 ac_cv_lib_dld_shl_load=yes
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 ac_cv_lib_dld_shl_load=no
8372 rm -f conftest.err conftest.$ac_objext \
8373 conftest$ac_exeext conftest.$ac_ext
8374 LIBS=$ac_check_lib_save_LIBS
8376 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8377 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8378 if test $ac_cv_lib_dld_shl_load = yes; then
8379 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8381 echo "$as_me:$LINENO: checking for dlopen" >&5
8382 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8383 if test "${ac_cv_func_dlopen+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 cat >conftest.$ac_ext <<_ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8394 #define dlopen innocuous_dlopen
8396 /* System header to define __stub macros and hopefully few prototypes,
8397 which can conflict with char dlopen (); below.
8398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8399 <limits.h> exists even on freestanding compilers. */
8402 # include <limits.h>
8404 # include <assert.h>
8409 /* Override any gcc2 internal prototype to avoid an error. */
8414 /* We use char because int might match the return type of a gcc2
8415 builtin and then its argument prototype would still apply. */
8417 /* The GNU C library defines this for functions which it implements
8418 to always fail with ENOSYS. Some functions are actually named
8419 something starting with __ and the normal name is an alias. */
8420 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8423 char (*f) () = dlopen;
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439 (eval $ac_link) 2>conftest.er1
8441 grep -v '^ *+' conftest.er1 >conftest.err
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try='test -s conftest$ac_exeext'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_cv_func_dlopen=yes
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_cv_func_dlopen=no
8465 rm -f conftest.err conftest.$ac_objext \
8466 conftest$ac_exeext conftest.$ac_ext
8468 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8469 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8470 if test $ac_cv_func_dlopen = yes; then
8471 lt_cv_dlopen="dlopen"
8473 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8474 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8475 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 ac_check_lib_save_LIBS=$LIBS
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8487 /* Override any gcc2 internal prototype to avoid an error. */
8491 /* We use char because int might match the return type of a gcc2
8492 builtin and then its argument prototype would still apply. */
8502 rm -f conftest.$ac_objext conftest$ac_exeext
8503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504 (eval $ac_link) 2>conftest.er1
8506 grep -v '^ *+' conftest.er1 >conftest.err
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } &&
8511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; } &&
8517 { ac_try='test -s conftest$ac_exeext'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; }; then
8523 ac_cv_lib_dl_dlopen=yes
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8528 ac_cv_lib_dl_dlopen=no
8530 rm -f conftest.err conftest.$ac_objext \
8531 conftest$ac_exeext conftest.$ac_ext
8532 LIBS=$ac_check_lib_save_LIBS
8534 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8535 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8536 if test $ac_cv_lib_dl_dlopen = yes; then
8537 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8539 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8540 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8541 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 ac_check_lib_save_LIBS=$LIBS
8546 cat >conftest.$ac_ext <<_ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8553 /* Override any gcc2 internal prototype to avoid an error. */
8557 /* We use char because int might match the return type of a gcc2
8558 builtin and then its argument prototype would still apply. */
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570 (eval $ac_link) 2>conftest.er1
8572 grep -v '^ *+' conftest.er1 >conftest.err
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } &&
8577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; } &&
8583 { ac_try='test -s conftest$ac_exeext'
8584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); }; }; then
8589 ac_cv_lib_svld_dlopen=yes
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8594 ac_cv_lib_svld_dlopen=no
8596 rm -f conftest.err conftest.$ac_objext \
8597 conftest$ac_exeext conftest.$ac_ext
8598 LIBS=$ac_check_lib_save_LIBS
8600 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8601 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8602 if test $ac_cv_lib_svld_dlopen = yes; then
8603 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8605 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8606 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8607 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 ac_check_lib_save_LIBS=$LIBS
8612 cat >conftest.$ac_ext <<_ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8619 /* Override any gcc2 internal prototype to avoid an error. */
8623 /* We use char because int might match the return type of a gcc2
8624 builtin and then its argument prototype would still apply. */
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636 (eval $ac_link) 2>conftest.er1
8638 grep -v '^ *+' conftest.er1 >conftest.err
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } &&
8649 { ac_try='test -s conftest$ac_exeext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 ac_cv_lib_dld_dld_link=yes
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 ac_cv_lib_dld_dld_link=no
8662 rm -f conftest.err conftest.$ac_objext \
8663 conftest$ac_exeext conftest.$ac_ext
8664 LIBS=$ac_check_lib_save_LIBS
8666 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8667 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8668 if test $ac_cv_lib_dld_dld_link = yes; then
8669 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8690 if test "x$lt_cv_dlopen" != xno; then
8696 case $lt_cv_dlopen in
8698 save_CPPFLAGS="$CPPFLAGS"
8699 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8701 save_LDFLAGS="$LDFLAGS"
8702 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8705 LIBS="$lt_cv_dlopen_libs $LIBS"
8707 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8708 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8709 if test "${lt_cv_dlopen_self+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 if test "$cross_compiling" = yes; then :
8713 lt_cv_dlopen_self=cross
8715 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8716 lt_status=$lt_dlunknown
8717 cat > conftest.$ac_ext <<EOF
8718 #line 8718 "configure"
8719 #include "confdefs.h"
8728 # define LT_DLGLOBAL RTLD_GLOBAL
8731 # define LT_DLGLOBAL DL_GLOBAL
8733 # define LT_DLGLOBAL 0
8737 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8738 find out it does not work in some platform. */
8739 #ifndef LT_DLLAZY_OR_NOW
8741 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8744 # define LT_DLLAZY_OR_NOW DL_LAZY
8747 # define LT_DLLAZY_OR_NOW RTLD_NOW
8750 # define LT_DLLAZY_OR_NOW DL_NOW
8752 # define LT_DLLAZY_OR_NOW 0
8760 extern "C" void exit (int);
8763 void fnord() { int i=42;}
8766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8767 int status = $lt_dlunknown;
8771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8772 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8773 /* dlclose (self); */
8779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8780 (eval $ac_link) 2>&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8784 (./conftest; exit; ) 2>/dev/null
8787 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8788 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8789 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8792 # compilation failed
8793 lt_cv_dlopen_self=no
8800 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8801 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8803 if test "x$lt_cv_dlopen_self" = xyes; then
8804 LDFLAGS="$LDFLAGS $link_static_flag"
8805 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8806 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8807 if test "${lt_cv_dlopen_self_static+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 if test "$cross_compiling" = yes; then :
8811 lt_cv_dlopen_self_static=cross
8813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8814 lt_status=$lt_dlunknown
8815 cat > conftest.$ac_ext <<EOF
8816 #line 8816 "configure"
8817 #include "confdefs.h"
8826 # define LT_DLGLOBAL RTLD_GLOBAL
8829 # define LT_DLGLOBAL DL_GLOBAL
8831 # define LT_DLGLOBAL 0
8835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8836 find out it does not work in some platform. */
8837 #ifndef LT_DLLAZY_OR_NOW
8839 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8842 # define LT_DLLAZY_OR_NOW DL_LAZY
8845 # define LT_DLLAZY_OR_NOW RTLD_NOW
8848 # define LT_DLLAZY_OR_NOW DL_NOW
8850 # define LT_DLLAZY_OR_NOW 0
8858 extern "C" void exit (int);
8861 void fnord() { int i=42;}
8864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8865 int status = $lt_dlunknown;
8869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8870 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8871 /* dlclose (self); */
8877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8878 (eval $ac_link) 2>&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8882 (./conftest; exit; ) 2>/dev/null
8885 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8886 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8887 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8890 # compilation failed
8891 lt_cv_dlopen_self_static=no
8898 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8899 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8902 CPPFLAGS="$save_CPPFLAGS"
8903 LDFLAGS="$save_LDFLAGS"
8908 case $lt_cv_dlopen_self in
8909 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8910 *) enable_dlopen_self=unknown ;;
8913 case $lt_cv_dlopen_self_static in
8914 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8915 *) enable_dlopen_self_static=unknown ;;
8920 # Report which librarie types wil actually be built
8921 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8922 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8923 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8924 echo "${ECHO_T}$can_build_shared" >&6
8926 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8927 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8928 test "$can_build_shared" = "no" && enable_shared=no
8930 # On AIX, shared libraries and static libraries use the same namespace, and
8931 # are all built from PIC.
8934 test "$enable_shared" = yes && enable_static=no
8935 if test -n "$RANLIB"; then
8936 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8937 postinstall_cmds='$RANLIB $lib'
8942 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8943 test "$enable_shared" = yes && enable_static=no
8946 darwin* | rhapsody*)
8947 if test "$GCC" = yes; then
8948 archive_cmds_need_lc=no
8950 rhapsody* | darwin1.[012])
8951 allow_undefined_flag='-undefined suppress'
8954 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8955 allow_undefined_flag='-flat_namespace -undefined suppress'
8957 case ${MACOSX_DEPLOYMENT_TARGET} in
8959 allow_undefined_flag='-flat_namespace -undefined suppress'
8962 allow_undefined_flag='-undefined dynamic_lookup'
8968 output_verbose_link_cmd='echo'
8969 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8970 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8971 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8972 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}'
8973 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}'
8975 hardcode_automatic=yes
8976 hardcode_shlibpath_var=unsupported
8977 whole_archive_flag_spec='-all_load $convenience'
8978 link_all_deplibs=yes
8984 echo "$as_me:$LINENO: result: $enable_shared" >&5
8985 echo "${ECHO_T}$enable_shared" >&6
8987 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8988 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8989 # Make sure either enable_shared or enable_static is yes.
8990 test "$enable_shared" = yes || enable_static=yes
8991 echo "$as_me:$LINENO: result: $enable_static" >&5
8992 echo "${ECHO_T}$enable_static" >&6
8994 # The else clause should only fire when bootstrapping the
8995 # libtool distribution, otherwise you forgot to ship ltmain.sh
8996 # with your package, and you will get complaints that there are
8997 # no rules to generate ltmain.sh.
8998 if test -f "$ltmain"; then
8999 # See if we are running on zsh, and set the options which allow our commands through
9000 # without removal of \ escapes.
9001 if test -n "${ZSH_VERSION+set}" ; then
9002 setopt NO_GLOB_SUBST
9004 # Now quote all the things that may contain metacharacters while being
9005 # careful not to overquote the AC_SUBSTed values. We take copies of the
9006 # variables and quote the copies for generation of the libtool script.
9007 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9009 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9010 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9011 deplibs_check_method reload_flag reload_cmds need_locks \
9012 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9013 lt_cv_sys_global_symbol_to_c_name_address \
9014 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9015 old_postinstall_cmds old_postuninstall_cmds \
9019 lt_prog_compiler_wl \
9020 lt_prog_compiler_pic \
9021 lt_prog_compiler_static \
9022 lt_prog_compiler_no_builtin_flag \
9023 export_dynamic_flag_spec \
9024 thread_safe_flag_spec \
9025 whole_archive_flag_spec \
9026 enable_shared_with_static_runtimes \
9028 old_archive_from_new_cmds \
9033 compiler_lib_search_path \
9035 archive_expsym_cmds \
9037 postuninstall_cmds \
9038 old_archive_from_expsyms_cmds \
9039 allow_undefined_flag \
9041 export_symbols_cmds \
9042 hardcode_libdir_flag_spec \
9043 hardcode_libdir_flag_spec_ld \
9044 hardcode_libdir_separator \
9045 hardcode_automatic \
9047 module_expsym_cmds \
9048 lt_cv_prog_compiler_c_o \
9053 old_archive_cmds | \
9054 old_archive_from_new_cmds | \
9056 archive_expsym_cmds | \
9058 module_expsym_cmds | \
9059 old_archive_from_expsyms_cmds | \
9060 export_symbols_cmds | \
9061 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9062 postinstall_cmds | postuninstall_cmds | \
9063 old_postinstall_cmds | old_postuninstall_cmds | \
9064 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9065 # Double-quote double-evaled strings.
9066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9075 *'\$0 --fallback-echo"')
9076 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9081 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9083 { echo "$as_me:$LINENO: creating $ofile" >&5
9084 echo "$as_me: creating $ofile" >&6;}
9086 cat <<__EOF__ >> "$cfgfile"
9089 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9090 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9091 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9093 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9094 # Free Software Foundation, Inc.
9096 # This file is part of GNU Libtool:
9097 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9099 # This program is free software; you can redistribute it and/or modify
9100 # it under the terms of the GNU General Public License as published by
9101 # the Free Software Foundation; either version 2 of the License, or
9102 # (at your option) any later version.
9104 # This program is distributed in the hope that it will be useful, but
9105 # WITHOUT ANY WARRANTY; without even the implied warranty of
9106 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9107 # General Public License for more details.
9109 # You should have received a copy of the GNU General Public License
9110 # along with this program; if not, write to the Free Software
9111 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9113 # As a special exception to the GNU General Public License, if you
9114 # distribute this file as part of a program that contains a
9115 # configuration script generated by Autoconf, you may include it under
9116 # the same distribution terms that you use for the rest of that program.
9118 # A sed program that does not truncate output.
9121 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9122 Xsed="$SED -e s/^X//"
9124 # The HP-UX ksh and POSIX shell print the target directory to stdout
9126 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9128 # The names of the tagged configurations supported by this script.
9131 # ### BEGIN LIBTOOL CONFIG
9133 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9135 # Shell to use when invoking shell scripts.
9138 # Whether or not to build shared libraries.
9139 build_libtool_libs=$enable_shared
9141 # Whether or not to build static libraries.
9142 build_old_libs=$enable_static
9144 # Whether or not to add -lc for building shared libraries.
9145 build_libtool_need_lc=$archive_cmds_need_lc
9147 # Whether or not to disallow shared libs when runtime libs are static
9148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9150 # Whether or not to optimize for fast installation.
9151 fast_install=$enable_fast_install
9154 host_alias=$host_alias
9157 # An echo program that does not interpret backslashes.
9162 AR_FLAGS=$lt_AR_FLAGS
9167 # A language-specific compiler.
9170 # Is the compiler the GNU C compiler?
9176 # The linker used to build libraries.
9179 # Whether we need hard or soft links.
9182 # A BSD-compatible nm program.
9185 # A symbol stripping program
9188 # Used to examine libraries when file_magic_cmd begins "file"
9189 MAGIC_CMD=$MAGIC_CMD
9191 # Used on cygwin: DLL creation program.
9194 # Used on cygwin: object dumper.
9197 # Used on cygwin: assembler.
9200 # The name of the directory that contains temporary libtool files.
9203 # How to create reloadable object files.
9204 reload_flag=$lt_reload_flag
9205 reload_cmds=$lt_reload_cmds
9207 # How to pass a linker flag through the compiler.
9208 wl=$lt_lt_prog_compiler_wl
9210 # Object file suffix (normally "o").
9213 # Old archive suffix (normally "a").
9216 # Shared library suffix (normally ".so").
9219 # Executable file suffix (normally "").
9222 # Additional compiler flags for building library objects.
9223 pic_flag=$lt_lt_prog_compiler_pic
9226 # What is the maximum length of a command?
9227 max_cmd_len=$lt_cv_sys_max_cmd_len
9229 # Does compiler simultaneously support -c and -o options?
9230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9232 # Must we lock files when doing compilation ?
9233 need_locks=$lt_need_locks
9235 # Do we need the lib prefix for modules?
9236 need_lib_prefix=$need_lib_prefix
9238 # Do we need a version for libraries?
9239 need_version=$need_version
9241 # Whether dlopen is supported.
9242 dlopen_support=$enable_dlopen
9244 # Whether dlopen of programs is supported.
9245 dlopen_self=$enable_dlopen_self
9247 # Whether dlopen of statically linked programs is supported.
9248 dlopen_self_static=$enable_dlopen_self_static
9250 # Compiler flag to prevent dynamic linking.
9251 link_static_flag=$lt_lt_prog_compiler_static
9253 # Compiler flag to turn off builtin functions.
9254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9256 # Compiler flag to allow reflexive dlopens.
9257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9259 # Compiler flag to generate shared objects directly from archives.
9260 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9262 # Compiler flag to generate thread-safe objects.
9263 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9265 # Library versioning type.
9266 version_type=$version_type
9268 # Format of library name prefix.
9269 libname_spec=$lt_libname_spec
9271 # List of archive names. First name is the real one, the rest are links.
9272 # The last name is the one that the linker finds with -lNAME.
9273 library_names_spec=$lt_library_names_spec
9275 # The coded name of the library, if different from the real name.
9276 soname_spec=$lt_soname_spec
9278 # Commands used to build and install an old-style archive.
9280 old_archive_cmds=$lt_old_archive_cmds
9281 old_postinstall_cmds=$lt_old_postinstall_cmds
9282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9284 # Create an old-style archive from a shared archive.
9285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9287 # Create a temporary old-style archive to link instead of a shared archive.
9288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9290 # Commands used to build and install a shared archive.
9291 archive_cmds=$lt_archive_cmds
9292 archive_expsym_cmds=$lt_archive_expsym_cmds
9293 postinstall_cmds=$lt_postinstall_cmds
9294 postuninstall_cmds=$lt_postuninstall_cmds
9296 # Commands used to build a loadable module (assumed same as above if empty)
9297 module_cmds=$lt_module_cmds
9298 module_expsym_cmds=$lt_module_expsym_cmds
9300 # Commands to strip libraries.
9301 old_striplib=$lt_old_striplib
9302 striplib=$lt_striplib
9304 # Dependencies to place before the objects being linked to create a
9306 predep_objects=$lt_predep_objects
9308 # Dependencies to place after the objects being linked to create a
9310 postdep_objects=$lt_postdep_objects
9312 # Dependencies to place before the objects being linked to create a
9316 # Dependencies to place after the objects being linked to create a
9318 postdeps=$lt_postdeps
9320 # The library search path used internally by the compiler when linking
9322 compiler_lib_search_path=$lt_compiler_lib_search_path
9324 # Method to check whether dependent libraries are shared objects.
9325 deplibs_check_method=$lt_deplibs_check_method
9327 # Command to use when deplibs_check_method == file_magic.
9328 file_magic_cmd=$lt_file_magic_cmd
9330 # Flag that allows shared libraries with undefined symbols to be built.
9331 allow_undefined_flag=$lt_allow_undefined_flag
9333 # Flag that forces no undefined symbols.
9334 no_undefined_flag=$lt_no_undefined_flag
9336 # Commands used to finish a libtool library installation in a directory.
9337 finish_cmds=$lt_finish_cmds
9339 # Same as above, but a single script fragment to be evaled but not shown.
9340 finish_eval=$lt_finish_eval
9342 # Take the output of nm and produce a listing of raw symbols and C names.
9343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9345 # Transform the output of nm in a proper C declaration
9346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9348 # Transform the output of nm in a C name address pair
9349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9351 # This is the shared library runtime path variable.
9352 runpath_var=$runpath_var
9354 # This is the shared library path variable.
9355 shlibpath_var=$shlibpath_var
9357 # Is shlibpath searched before the hard-coded library search path?
9358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9360 # How to hardcode a shared library path into an executable.
9361 hardcode_action=$hardcode_action
9363 # Whether we should hardcode library paths into libraries.
9364 hardcode_into_libs=$hardcode_into_libs
9366 # Flag to hardcode \$libdir into a binary during linking.
9367 # This must work even if \$libdir does not exist.
9368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9370 # If ld is used when linking, flag to hardcode \$libdir into
9371 # a binary during linking. This must work even if \$libdir does
9373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9375 # Whether we need a single -rpath flag with a separated argument.
9376 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9378 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9380 hardcode_direct=$hardcode_direct
9382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9384 hardcode_minus_L=$hardcode_minus_L
9386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9387 # the resulting binary.
9388 hardcode_shlibpath_var=$hardcode_shlibpath_var
9390 # Set to yes if building a shared library automatically hardcodes DIR into the library
9391 # and all subsequent libraries and executables linked against it.
9392 hardcode_automatic=$hardcode_automatic
9394 # Variables whose values should be saved in libtool wrapper scripts and
9395 # restored at relink time.
9396 variables_saved_for_relink="$variables_saved_for_relink"
9398 # Whether libtool must link a program against all its dependency libraries.
9399 link_all_deplibs=$link_all_deplibs
9401 # Compile-time system search path for libraries
9402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9404 # Run-time system search path for libraries
9405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9407 # Fix the shell variable \$srcfile for the compiler.
9408 fix_srcfile_path="$fix_srcfile_path"
9410 # Set to yes if exported symbols are required.
9411 always_export_symbols=$always_export_symbols
9413 # The commands to list exported symbols.
9414 export_symbols_cmds=$lt_export_symbols_cmds
9416 # The commands to extract the exported symbol list from a shared archive.
9417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9419 # Symbols that should not be listed in the preloaded symbols.
9420 exclude_expsyms=$lt_exclude_expsyms
9422 # Symbols that must always be exported.
9423 include_expsyms=$lt_include_expsyms
9425 # ### END LIBTOOL CONFIG
9432 cat <<\EOF >> "$cfgfile"
9434 # AIX sometimes has problems with the GCC collect2 program. For some
9435 # reason, if we set the COLLECT_NAMES environment variable, the problems
9436 # vanish in a puff of smoke.
9437 if test "X${COLLECT_NAMES+set}" != Xset; then
9439 export COLLECT_NAMES
9445 # We use sed instead of cat because bash on DJGPP gets confused if
9446 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9447 # text mode, it properly converts lines to CR/LF. This bash problem
9448 # is reportedly fixed, but why not run on old versions too?
9449 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9451 mv -f "$cfgfile" "$ofile" || \
9452 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9456 # If there is no Makefile yet, we rely on a make rule to execute
9457 # `config.status --recheck' to rerun these tests and create the
9458 # libtool script then.
9459 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9460 if test -f "$ltmain_in"; then
9461 test -f Makefile && make "$ltmain"
9467 ac_cpp='$CPP $CPPFLAGS'
9468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9475 # Check whether --with-tags or --without-tags was given.
9476 if test "${with_tags+set}" = set; then
9477 withval="$with_tags"
9481 if test -f "$ltmain" && test -n "$tagnames"; then
9482 if test ! -f "${ofile}"; then
9483 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9484 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9487 if test -z "$LTCC"; then
9488 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9489 if test -z "$LTCC"; then
9490 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9491 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9493 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9494 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9498 # Extract list of available tagged configurations in $ofile.
9499 # Note that this assumes the entire list is on one line.
9500 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9502 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9503 for tagname in $tagnames; do
9505 # Check whether tagname contains only valid characters
9506 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9508 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9509 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9510 { (exit 1); exit 1; }; }
9514 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9516 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9517 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9518 { (exit 1); exit 1; }; }
9521 # Update the list of available tags.
9522 if test -n "$tagname"; then
9523 echo appending configuration tag \"$tagname\" to $ofile
9527 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9529 ac_cpp='$CXXCPP $CPPFLAGS'
9530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9537 archive_cmds_need_lc_CXX=no
9538 allow_undefined_flag_CXX=
9539 always_export_symbols_CXX=no
9540 archive_expsym_cmds_CXX=
9541 export_dynamic_flag_spec_CXX=
9542 hardcode_direct_CXX=no
9543 hardcode_libdir_flag_spec_CXX=
9544 hardcode_libdir_flag_spec_ld_CXX=
9545 hardcode_libdir_separator_CXX=
9546 hardcode_minus_L_CXX=no
9547 hardcode_automatic_CXX=no
9549 module_expsym_cmds_CXX=
9550 link_all_deplibs_CXX=unknown
9551 old_archive_cmds_CXX=$old_archive_cmds
9552 no_undefined_flag_CXX=
9553 whole_archive_flag_spec_CXX=
9554 enable_shared_with_static_runtimes_CXX=no
9556 # Dependencies to place before and after the object being linked:
9558 postdep_objects_CXX=
9561 compiler_lib_search_path_CXX=
9563 # Source file extension for C++ test sources.
9566 # Object file extension for compiled C++ test sources.
9570 # Code to be used in simple compile tests
9571 lt_simple_compile_test_code="int some_variable = 0;\n"
9573 # Code to be used in simple link tests
9574 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9576 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9578 # If no C compiler was specified, use CC.
9581 # Allow CC to be a program name with arguments.
9585 # Allow CC to be a program name with arguments.
9590 lt_save_with_gnu_ld=$with_gnu_ld
9591 lt_save_path_LD=$lt_cv_path_LD
9592 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9593 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9595 unset lt_cv_prog_gnu_ld
9597 if test -n "${lt_cv_path_LDCXX+set}"; then
9598 lt_cv_path_LD=$lt_cv_path_LDCXX
9602 test -z "${LDCXX+set}" || LD=$LDCXX
9606 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9608 # We don't want -fno-exception wen compiling C++ code, so set the
9609 # no_builtin_flag separately
9610 if test "$GXX" = yes; then
9611 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9613 lt_prog_compiler_no_builtin_flag_CXX=
9616 if test "$GXX" = yes; then
9617 # Set up default GNU C++ configuration
9620 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9621 if test "${with_gnu_ld+set}" = set; then
9622 withval="$with_gnu_ld"
9623 test "$withval" = no || with_gnu_ld=yes
9628 if test "$GCC" = yes; then
9629 # Check if gcc -print-prog-name=ld gives a path.
9630 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9631 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9634 # gcc leaves a trailing carriage return which upsets mingw
9635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9640 # Accept absolute paths.
9642 re_direlt='/[^/][^/]*/\.\./'
9643 # Canonicalize the pathname of ld
9644 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9645 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9646 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9648 test -z "$LD" && LD="$ac_prog"
9651 # If it fails, then pretend we aren't using GCC.
9655 # If it is relative, then search for the first ld in PATH.
9659 elif test "$with_gnu_ld" = yes; then
9660 echo "$as_me:$LINENO: checking for GNU ld" >&5
9661 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9663 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9664 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9666 if test "${lt_cv_path_LD+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 if test -z "$LD"; then
9670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9671 for ac_dir in $PATH; do
9673 test -z "$ac_dir" && ac_dir=.
9674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9675 lt_cv_path_LD="$ac_dir/$ac_prog"
9676 # Check to see if the program is GNU ld. I'd rather use --version,
9677 # but apparently some GNU ld's only accept -v.
9678 # Break only if it was the GNU/non-GNU ld that we prefer.
9679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9680 *GNU* | *'with BFD'*)
9681 test "$with_gnu_ld" != no && break
9684 test "$with_gnu_ld" != yes && break
9691 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9696 if test -n "$LD"; then
9697 echo "$as_me:$LINENO: result: $LD" >&5
9698 echo "${ECHO_T}$LD" >&6
9700 echo "$as_me:$LINENO: result: no" >&5
9701 echo "${ECHO_T}no" >&6
9703 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9704 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9705 { (exit 1); exit 1; }; }
9706 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9707 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9708 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9712 case `$LD -v 2>&1 </dev/null` in
9713 *GNU* | *'with BFD'*)
9714 lt_cv_prog_gnu_ld=yes
9717 lt_cv_prog_gnu_ld=no
9721 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9722 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9723 with_gnu_ld=$lt_cv_prog_gnu_ld
9727 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9728 # archiving commands below assume that GNU ld is being used.
9729 if test "$with_gnu_ld" = yes; then
9730 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731 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'
9733 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9734 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9736 # If archive_cmds runs LD, not CC, wlarc should be empty
9737 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9738 # investigate it a little bit more. (MM)
9741 # ancient GNU ld didn't support --whole-archive et. al.
9742 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9743 grep 'no-whole-archive' > /dev/null; then
9744 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9746 whole_archive_flag_spec_CXX=
9752 # A generic and very simple default shared library creation
9753 # command for GNU C++ for the case where it uses the native
9754 # linker, instead of GNU ld. If possible, this setting should
9755 # overridden to take advantage of the native linker features on
9756 # the platform it is being used on.
9757 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9760 # Commands to make compiler produce verbose output that lists
9761 # what "hidden" libraries, object files and flags are used when
9762 # linking a shared library.
9763 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9771 # PORTME: fill in a description of your system's C++ link characteristics
9772 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9773 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9777 # FIXME: insert proper C++ library support
9781 if test "$host_cpu" = ia64; then
9782 # On IA64, the linker does run time linking by default, so we don't
9783 # have to do anything special.
9784 aix_use_runtimelinking=no
9785 exp_sym_flag='-Bexport'
9788 aix_use_runtimelinking=no
9790 # Test if we are trying to use run time linking or normal
9791 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9792 # need to do runtime linking.
9793 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9794 for ld_flag in $LDFLAGS; do
9797 aix_use_runtimelinking=yes
9804 exp_sym_flag='-bexport'
9805 no_entry_flag='-bnoentry'
9808 # When large executables or shared objects are built, AIX ld can
9809 # have problems creating the table of contents. If linking a library
9810 # or program results in "error TOC overflow" add -mminimal-toc to
9811 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9812 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9815 hardcode_direct_CXX=yes
9816 hardcode_libdir_separator_CXX=':'
9817 link_all_deplibs_CXX=yes
9819 if test "$GXX" = yes; then
9820 case $host_os in aix4.012|aix4.012.*)
9821 # We only want to do this on AIX 4.2 and lower, the check
9822 # below for broken collect2 doesn't work under 4.3+
9823 collect2name=`${CC} -print-prog-name=collect2`
9824 if test -f "$collect2name" && \
9825 strings "$collect2name" | grep resolve_lib_name >/dev/null
9827 # We have reworked collect2
9828 hardcode_direct_CXX=yes
9830 # We have old collect2
9831 hardcode_direct_CXX=unsupported
9832 # It fails to find uninstalled libraries when the uninstalled
9833 # path is not listed in the libpath. Setting hardcode_minus_L
9834 # to unsupported forces relinking
9835 hardcode_minus_L_CXX=yes
9836 hardcode_libdir_flag_spec_CXX='-L$libdir'
9837 hardcode_libdir_separator_CXX=
9840 shared_flag='-shared'
9843 if test "$host_cpu" = ia64; then
9844 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9845 # chokes on -Wl,-G. The following line is correct:
9848 if test "$aix_use_runtimelinking" = yes; then
9849 shared_flag='${wl}-G'
9851 shared_flag='${wl}-bM:SRE'
9856 # It seems that -bexpall does not export symbols beginning with
9857 # underscore (_), so it is better to generate a list of symbols to export.
9858 always_export_symbols_CXX=yes
9859 if test "$aix_use_runtimelinking" = yes; then
9860 # Warning - without using the other runtime loading flags (-brtl),
9861 # -berok will link without error, but may produce a broken library.
9862 allow_undefined_flag_CXX='-berok'
9863 # Determine the default libpath from the value encoded in an empty executable.
9864 cat >conftest.$ac_ext <<_ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9879 rm -f conftest.$ac_objext conftest$ac_exeext
9880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9881 (eval $ac_link) 2>conftest.er1
9883 grep -v '^ *+' conftest.er1 >conftest.err
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } &&
9888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; } &&
9894 { ac_try='test -s conftest$ac_exeext'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; }; then
9901 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9903 # Check for a 64-bit object if we didn't find anything.
9904 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; }
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9911 rm -f conftest.err conftest.$ac_objext \
9912 conftest$ac_exeext conftest.$ac_ext
9913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9915 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9917 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"
9919 if test "$host_cpu" = ia64; then
9920 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9921 allow_undefined_flag_CXX="-z nodefs"
9922 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"
9924 # Determine the default libpath from the value encoded in an empty executable.
9925 cat >conftest.$ac_ext <<_ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942 (eval $ac_link) 2>conftest.er1
9944 grep -v '^ *+' conftest.er1 >conftest.err
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; } &&
9955 { ac_try='test -s conftest$ac_exeext'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
9962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9964 # Check for a 64-bit object if we didn't find anything.
9965 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; }
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9972 rm -f conftest.err conftest.$ac_objext \
9973 conftest$ac_exeext conftest.$ac_ext
9974 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9976 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9977 # Warning - without using the other run time loading flags,
9978 # -berok will link without error, but may produce a broken library.
9979 no_undefined_flag_CXX=' ${wl}-bernotok'
9980 allow_undefined_flag_CXX=' ${wl}-berok'
9981 # -bexpall does not export symbols beginning with underscore (_)
9982 always_export_symbols_CXX=yes
9983 # Exported symbols can be pulled into shared objects from archives
9984 whole_archive_flag_spec_CXX=' '
9985 archive_cmds_need_lc_CXX=yes
9986 # This is similar to how AIX traditionally builds it's shared libraries.
9987 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'
9992 case $cc_basename in
9994 # FIXME: insert proper C++ library support
10000 cygwin* | mingw* | pw32*)
10001 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10002 # as there is no search path for DLLs.
10003 hardcode_libdir_flag_spec_CXX='-L$libdir'
10004 allow_undefined_flag_CXX=unsupported
10005 always_export_symbols_CXX=no
10006 enable_shared_with_static_runtimes_CXX=yes
10008 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10009 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'
10010 # If the export-symbols file already is a .def file (1st line
10011 # is EXPORTS), use it as is; otherwise, prepend...
10012 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10013 cp $export_symbols $output_objdir/$soname.def;
10015 echo EXPORTS > $output_objdir/$soname.def;
10016 cat $export_symbols >> $output_objdir/$soname.def;
10018 $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'
10024 darwin* | rhapsody*)
10025 if test "$GXX" = yes; then
10026 archive_cmds_need_lc_CXX=no
10028 rhapsody* | darwin1.[012])
10029 allow_undefined_flag_CXX='-undefined suppress'
10032 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10033 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10035 case ${MACOSX_DEPLOYMENT_TARGET} in
10037 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10040 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10046 lt_int_apple_cc_single_mod=no
10047 output_verbose_link_cmd='echo'
10048 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10049 lt_int_apple_cc_single_mod=yes
10051 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10052 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10054 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'
10056 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10058 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10059 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10060 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}'
10062 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}'
10064 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}'
10065 hardcode_direct_CXX=no
10066 hardcode_automatic_CXX=yes
10067 hardcode_shlibpath_var_CXX=unsupported
10068 whole_archive_flag_spec_CXX='-all_load $convenience'
10069 link_all_deplibs_CXX=yes
10076 case $cc_basename in
10078 # FIXME: insert proper C++ library support
10082 # Green Hills C++ Compiler
10083 # FIXME: insert proper C++ library support
10087 # FIXME: insert proper C++ library support
10093 # C++ shared libraries reported to be fairly broken before switch to ELF
10097 archive_cmds_need_lc_CXX=no
10099 freebsd* | kfreebsd*-gnu)
10100 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10107 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10108 hardcode_libdir_separator_CXX=:
10109 export_dynamic_flag_spec_CXX='${wl}-E'
10110 hardcode_direct_CXX=yes
10111 hardcode_minus_L_CXX=yes # Not in the search PATH,
10112 # but as the default
10113 # location of the library.
10115 case $cc_basename in
10117 # FIXME: insert proper C++ library support
10121 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'
10122 # Commands to make compiler produce verbose output that lists
10123 # what "hidden" libraries, object files and flags are used when
10124 # linking a shared library.
10126 # There doesn't appear to be a way to prevent this compiler from
10127 # explicitly linking system object files so we need to strip them
10128 # from the output so that they don't get included in the library
10130 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10133 if test "$GXX" = yes; then
10134 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'
10136 # FIXME: insert proper C++ library support
10143 if test $with_gnu_ld = no; then
10144 case "$host_cpu" in
10146 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10147 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10148 hardcode_libdir_separator_CXX=:
10151 hardcode_libdir_flag_spec_CXX='-L$libdir'
10154 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10155 hardcode_libdir_separator_CXX=:
10156 export_dynamic_flag_spec_CXX='${wl}-E'
10160 case "$host_cpu" in
10162 hardcode_direct_CXX=no
10163 hardcode_shlibpath_var_CXX=no
10166 hardcode_direct_CXX=no
10167 hardcode_shlibpath_var_CXX=no
10168 hardcode_minus_L_CXX=yes # Not in the search PATH,
10169 # but as the default
10170 # location of the library.
10173 hardcode_direct_CXX=yes
10174 hardcode_minus_L_CXX=yes # Not in the search PATH,
10175 # but as the default
10176 # location of the library.
10180 case $cc_basename in
10182 # FIXME: insert proper C++ library support
10186 case "$host_cpu" in
10188 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10191 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10194 # Commands to make compiler produce verbose output that lists
10195 # what "hidden" libraries, object files and flags are used when
10196 # linking a shared library.
10198 # There doesn't appear to be a way to prevent this compiler from
10199 # explicitly linking system object files so we need to strip them
10200 # from the output so that they don't get included in the library
10202 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'
10205 if test "$GXX" = yes; then
10206 if test $with_gnu_ld = no; then
10207 case "$host_cpu" in
10209 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10212 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'
10217 # FIXME: insert proper C++ library support
10224 case $cc_basename in
10227 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'
10229 # Archives containing C++ object files must be created using
10230 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10231 # necessary to make sure instantiated templates are included
10233 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10236 if test "$GXX" = yes; then
10237 if test "$with_gnu_ld" = no; then
10238 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'
10240 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'
10243 link_all_deplibs_CXX=yes
10246 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10247 hardcode_libdir_separator_CXX=:
10250 case $cc_basename in
10252 # Kuck and Associates, Inc. (KAI) C++ Compiler
10254 # KCC will only create a shared library if the output file
10255 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10256 # to its proper name (with version) after linking.
10257 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'
10258 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'
10259 # Commands to make compiler produce verbose output that lists
10260 # what "hidden" libraries, object files and flags are used when
10261 # linking a shared library.
10263 # There doesn't appear to be a way to prevent this compiler from
10264 # explicitly linking system object files so we need to strip them
10265 # from the output so that they don't get included in the library
10267 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'
10269 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10270 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10272 # Archives containing C++ object files must be created using
10273 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10274 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10279 archive_cmds_need_lc_CXX=no
10280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10281 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'
10282 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10283 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10284 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10288 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10289 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'
10291 runpath_var=LD_RUN_PATH
10292 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10293 hardcode_libdir_separator_CXX=:
10295 # Commands to make compiler produce verbose output that lists
10296 # what "hidden" libraries, object files and flags are used when
10297 # linking a shared library.
10299 # There doesn't appear to be a way to prevent this compiler from
10300 # explicitly linking system object files so we need to strip them
10301 # from the output so that they don't get included in the library
10303 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'
10308 # FIXME: insert proper C++ library support
10312 # FIXME: insert proper C++ library support
10316 case $cc_basename in
10318 # FIXME: insert proper C++ library support
10322 # FIXME: insert proper C++ library support
10327 netbsd* | knetbsd*-gnu)
10328 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10329 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10331 hardcode_libdir_flag_spec_CXX='-R$libdir'
10332 hardcode_direct_CXX=yes
10333 hardcode_shlibpath_var_CXX=no
10335 # Workaround some broken pre-1.5 toolchains
10336 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10339 case $cc_basename in
10341 # Kuck and Associates, Inc. (KAI) C++ Compiler
10343 # KCC will only create a shared library if the output file
10344 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10345 # to its proper name (with version) after linking.
10346 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'
10348 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10349 hardcode_libdir_separator_CXX=:
10351 # Archives containing C++ object files must be created using
10352 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10353 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10357 # Rational C++ 2.4.1
10358 # FIXME: insert proper C++ library support
10362 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10363 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'
10365 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10366 hardcode_libdir_separator_CXX=:
10368 # Commands to make compiler produce verbose output that lists
10369 # what "hidden" libraries, object files and flags are used when
10370 # linking a shared library.
10372 # There doesn't appear to be a way to prevent this compiler from
10373 # explicitly linking system object files so we need to strip them
10374 # from the output so that they don't get included in the library
10376 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'
10379 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10380 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10381 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'
10383 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10384 hardcode_libdir_separator_CXX=:
10386 # Commands to make compiler produce verbose output that lists
10387 # what "hidden" libraries, object files and flags are used when
10388 # linking a shared library.
10389 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10392 # FIXME: insert proper C++ library support
10399 case $cc_basename in
10401 # Kuck and Associates, Inc. (KAI) C++ Compiler
10403 # KCC will only create a shared library if the output file
10404 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10405 # to its proper name (with version) after linking.
10406 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'
10408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10409 hardcode_libdir_separator_CXX=:
10411 # Archives containing C++ object files must be created using
10412 # the KAI C++ compiler.
10413 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10416 # Rational C++ 2.4.1
10417 # FIXME: insert proper C++ library support
10421 allow_undefined_flag_CXX=' -expect_unresolved \*'
10422 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'
10423 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10424 echo "-hidden">> $lib.exp~
10425 $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~
10428 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10429 hardcode_libdir_separator_CXX=:
10431 # Commands to make compiler produce verbose output that lists
10432 # what "hidden" libraries, object files and flags are used when
10433 # linking a shared library.
10435 # There doesn't appear to be a way to prevent this compiler from
10436 # explicitly linking system object files so we need to strip them
10437 # from the output so that they don't get included in the library
10439 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'
10442 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10443 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10444 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'
10446 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10447 hardcode_libdir_separator_CXX=:
10449 # Commands to make compiler produce verbose output that lists
10450 # what "hidden" libraries, object files and flags are used when
10451 # linking a shared library.
10452 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10455 # FIXME: insert proper C++ library support
10462 # FIXME: insert proper C++ library support
10466 archive_cmds_need_lc_CXX=no
10467 case $cc_basename in
10469 # FIXME: insert proper C++ library support
10473 # FIXME: insert proper C++ library support
10479 case $cc_basename in
10482 # FIXME: insert proper C++ library support
10487 # FIXME: insert proper C++ library support
10491 # FIXME: insert proper C++ library support
10497 case $cc_basename in
10499 # Sun C++ 4.2, 5.x and Centerline C++
10500 no_undefined_flag_CXX=' -zdefs'
10501 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10502 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10503 $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'
10505 hardcode_libdir_flag_spec_CXX='-R$libdir'
10506 hardcode_shlibpath_var_CXX=no
10508 solaris2.0-5 | solaris2.0-5.*) ;;
10510 # The C++ compiler is used as linker so we must use $wl
10511 # flag to pass the commands to the underlying system
10513 # Supported since Solaris 2.6 (maybe 2.5.1?)
10514 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10517 link_all_deplibs_CXX=yes
10519 # Commands to make compiler produce verbose output that lists
10520 # what "hidden" libraries, object files and flags are used when
10521 # linking a shared library.
10523 # There doesn't appear to be a way to prevent this compiler from
10524 # explicitly linking system object files so we need to strip them
10525 # from the output so that they don't get included in the library
10527 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'
10529 # Archives containing C++ object files must be created using
10530 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10531 # necessary to make sure instantiated templates are included
10533 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10536 # Green Hills C++ Compiler
10537 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10539 # The C++ compiler must be used to create the archive.
10540 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10543 # GNU C++ compiler with Solaris linker
10544 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10545 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10546 if $CC --version | grep -v '^2\.7' > /dev/null; then
10547 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10548 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10549 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10551 # Commands to make compiler produce verbose output that lists
10552 # what "hidden" libraries, object files and flags are used when
10553 # linking a shared library.
10554 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10556 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10558 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10559 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10560 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10562 # Commands to make compiler produce verbose output that lists
10563 # what "hidden" libraries, object files and flags are used when
10564 # linking a shared library.
10565 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10568 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10573 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10574 archive_cmds_need_lc_CXX=no
10577 case $cc_basename in
10579 # NonStop-UX NCC 3.20
10580 # FIXME: insert proper C++ library support
10584 # FIXME: insert proper C++ library support
10590 # FIXME: insert proper C++ library support
10594 # FIXME: insert proper C++ library support
10598 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10599 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10600 test "$ld_shlibs_CXX" = no && can_build_shared=no
10606 cat > conftest.$ac_ext <<EOF
10610 Foo (void) { a = 0; }
10616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10617 (eval $ac_compile) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; then
10621 # Parse the compiler output and extract the necessary
10622 # objects, libraries and library flags.
10624 # Sentinel used to keep track of whether or not we are before
10625 # the conftest object file.
10626 pre_test_object_deps_done=no
10628 # The `*' in the case matches for architectures that use `case' in
10629 # $output_verbose_cmd can trigger glob expansion during the loop
10630 # eval without this substitution.
10631 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10633 for p in `eval $output_verbose_link_cmd`; do
10637 # Some compilers place space between "-{L,R}" and the path.
10638 # Remove the space.
10639 if test $p = "-L" \
10640 || test $p = "-R"; then
10647 if test "$pre_test_object_deps_done" = no; then
10650 # Internal compiler library paths should come after those
10651 # provided the user. The postdeps already come after the
10652 # user supplied libs so there is no need to process them.
10653 if test -z "$compiler_lib_search_path_CXX"; then
10654 compiler_lib_search_path_CXX="${prev}${p}"
10656 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10659 # The "-l" case would never come before the object being
10660 # linked, so don't bother handling this case.
10663 if test -z "$postdeps_CXX"; then
10664 postdeps_CXX="${prev}${p}"
10666 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10672 # This assumes that the test object file only shows up
10673 # once in the compiler output.
10674 if test "$p" = "conftest.$objext"; then
10675 pre_test_object_deps_done=yes
10679 if test "$pre_test_object_deps_done" = no; then
10680 if test -z "$predep_objects_CXX"; then
10681 predep_objects_CXX="$p"
10683 predep_objects_CXX="$predep_objects_CXX $p"
10686 if test -z "$postdep_objects_CXX"; then
10687 postdep_objects_CXX="$p"
10689 postdep_objects_CXX="$postdep_objects_CXX $p"
10694 *) ;; # Ignore the rest.
10702 echo "libtool.m4: error: problem compiling CXX test program"
10705 $rm -f confest.$objext
10707 case " $postdeps_CXX " in
10708 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10711 lt_prog_compiler_wl_CXX=
10712 lt_prog_compiler_pic_CXX=
10713 lt_prog_compiler_static_CXX=
10715 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10716 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10718 # C++ specific cases for pic, static, wl, etc.
10719 if test "$GXX" = yes; then
10720 lt_prog_compiler_wl_CXX='-Wl,'
10721 lt_prog_compiler_static_CXX='-static'
10725 # All AIX code is PIC.
10726 if test "$host_cpu" = ia64; then
10727 # AIX 5 now supports IA64 processor
10728 lt_prog_compiler_static_CXX='-Bstatic'
10732 # FIXME: we need at least 68020 code to build shared libraries, but
10733 # adding the `-m68020' flag to GCC prevents building anything better,
10735 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10737 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10738 # PIC is the default for these OSes.
10740 mingw* | os2* | pw32*)
10741 # This hack is so that the source file can tell whether it is being
10742 # built for inclusion in a dll (and should export symbols for example).
10743 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10745 darwin* | rhapsody*)
10746 # PIC is the default on this platform
10747 # Common symbols not allowed in MH_DYLIB files
10748 lt_prog_compiler_pic_CXX='-fno-common'
10751 # DJGPP does not support shared libraries at all
10752 lt_prog_compiler_pic_CXX=
10755 if test -d /usr/nec; then
10756 lt_prog_compiler_pic_CXX=-Kconform_pic
10760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10761 # not for PA HP-UX.
10762 case "$host_cpu" in
10766 lt_prog_compiler_pic_CXX='-fPIC'
10771 lt_prog_compiler_pic_CXX='-fPIC'
10777 # All AIX code is PIC.
10778 if test "$host_cpu" = ia64; then
10779 # AIX 5 now supports IA64 processor
10780 lt_prog_compiler_static_CXX='-Bstatic'
10782 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10786 case $cc_basename in
10788 # Green Hills C++ Compiler
10789 # _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"
10794 case $cc_basename in
10796 lt_prog_compiler_pic_CXX='-KPIC'
10799 # Green Hills C++ Compiler
10800 lt_prog_compiler_pic_CXX='-pic'
10806 freebsd* | kfreebsd*-gnu)
10807 # FreeBSD uses GNU C++
10809 hpux9* | hpux10* | hpux11*)
10810 case $cc_basename in
10812 lt_prog_compiler_wl_CXX='-Wl,'
10813 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10814 if test "$host_cpu" != ia64; then
10815 lt_prog_compiler_pic_CXX='+Z'
10819 lt_prog_compiler_wl_CXX='-Wl,'
10820 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10821 case "$host_cpu" in
10826 lt_prog_compiler_pic_CXX='+Z'
10834 irix5* | irix6* | nonstopux*)
10835 case $cc_basename in
10837 lt_prog_compiler_wl_CXX='-Wl,'
10838 lt_prog_compiler_static_CXX='-non_shared'
10839 # CC pic flag -KPIC is the default.
10846 case $cc_basename in
10849 lt_prog_compiler_wl_CXX='--backend -Wl,'
10850 lt_prog_compiler_pic_CXX='-fPIC'
10854 lt_prog_compiler_wl_CXX='-Wl,'
10855 lt_prog_compiler_pic_CXX='-KPIC'
10856 lt_prog_compiler_static_CXX='-static'
10860 # Make sure the PIC flag is empty. It appears that all Alpha
10861 # Linux and Compaq Tru64 Unix objects are PIC.
10862 lt_prog_compiler_pic_CXX=
10863 lt_prog_compiler_static_CXX='-non_shared'
10874 case $cc_basename in
10876 lt_prog_compiler_pic_CXX='-W c,exportall'
10882 netbsd* | knetbsd*-gnu)
10884 osf3* | osf4* | osf5*)
10885 case $cc_basename in
10887 lt_prog_compiler_wl_CXX='--backend -Wl,'
10890 # Rational C++ 2.4.1
10891 lt_prog_compiler_pic_CXX='-pic'
10894 # Digital/Compaq C++
10895 lt_prog_compiler_wl_CXX='-Wl,'
10896 # Make sure the PIC flag is empty. It appears that all Alpha
10897 # Linux and Compaq Tru64 Unix objects are PIC.
10898 lt_prog_compiler_pic_CXX=
10899 lt_prog_compiler_static_CXX='-non_shared'
10908 case $cc_basename in
10910 lt_prog_compiler_pic_CXX='-fPIC'
10917 case $cc_basename in
10919 # Sun C++ 4.2, 5.x and Centerline C++
10920 lt_prog_compiler_pic_CXX='-KPIC'
10921 lt_prog_compiler_static_CXX='-Bstatic'
10922 lt_prog_compiler_wl_CXX='-Qoption ld '
10925 # Green Hills C++ Compiler
10926 lt_prog_compiler_pic_CXX='-PIC'
10933 case $cc_basename in
10936 lt_prog_compiler_pic_CXX='-pic'
10937 lt_prog_compiler_static_CXX='-Bstatic'
10941 lt_prog_compiler_pic_CXX='-pic'
10948 case $cc_basename in
10950 # NonStop-UX NCC 3.20
10951 lt_prog_compiler_pic_CXX='-KPIC'
10962 lt_prog_compiler_can_build_shared_CXX=no
10967 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10968 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10971 # Check to make sure the PIC flag actually works.
10973 if test -n "$lt_prog_compiler_pic_CXX"; then
10975 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10976 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10977 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 lt_prog_compiler_pic_works_CXX=no
10981 ac_outfile=conftest.$ac_objext
10982 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10983 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10984 # Insert the option either (1) after the last *FLAGS variable, or
10985 # (2) before a word containing "conftest.", or (3) at the end.
10986 # Note that $ac_compile itself does not contain backslashes and begins
10987 # with a dollar sign (not a hyphen), so the echo should work correctly.
10988 # The option is referenced via a variable to avoid confusing sed.
10989 lt_compile=`echo "$ac_compile" | $SED \
10990 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10992 -e 's:$: $lt_compiler_flag:'`
10993 (eval echo "\"\$as_me:10993: $lt_compile\"" >&5)
10994 (eval "$lt_compile" 2>conftest.err)
10996 cat conftest.err >&5
10997 echo "$as_me:10997: \$? = $ac_status" >&5
10998 if (exit $ac_status) && test -s "$ac_outfile"; then
10999 # The compiler can only warn and ignore the option if not recognized
11000 # So say no if there are warnings
11001 if test ! -s conftest.err; then
11002 lt_prog_compiler_pic_works_CXX=yes
11008 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11009 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11011 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11012 case $lt_prog_compiler_pic_CXX in
11014 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11017 lt_prog_compiler_pic_CXX=
11018 lt_prog_compiler_can_build_shared_CXX=no
11023 # For platforms which do not support PIC, -DPIC is meaningless:
11025 lt_prog_compiler_pic_CXX=
11028 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11032 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11033 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11034 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 lt_cv_prog_compiler_c_o_CXX=no
11038 $rm -r conftest 2>/dev/null
11042 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11044 lt_compiler_flag="-o out/conftest2.$ac_objext"
11045 # Insert the option either (1) after the last *FLAGS variable, or
11046 # (2) before a word containing "conftest.", or (3) at the end.
11047 # Note that $ac_compile itself does not contain backslashes and begins
11048 # with a dollar sign (not a hyphen), so the echo should work correctly.
11049 lt_compile=`echo "$ac_compile" | $SED \
11050 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11052 -e 's:$: $lt_compiler_flag:'`
11053 (eval echo "\"\$as_me:11053: $lt_compile\"" >&5)
11054 (eval "$lt_compile" 2>out/conftest.err)
11056 cat out/conftest.err >&5
11057 echo "$as_me:11057: \$? = $ac_status" >&5
11058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11060 # The compiler can only warn and ignore the option if not recognized
11061 # So say no if there are warnings
11062 if test ! -s out/conftest.err; then
11063 lt_cv_prog_compiler_c_o_CXX=yes
11068 # SGI C++ compiler will create directory out/ii_files/ for
11069 # template instantiation
11070 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11071 $rm out/* && rmdir out
11077 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11078 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11081 hard_links="nottested"
11082 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11083 # do not overwrite the value of need_locks provided by the user
11084 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11085 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11090 ln conftest.a conftest.b 2>&5 || hard_links=no
11091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11092 echo "$as_me:$LINENO: result: $hard_links" >&5
11093 echo "${ECHO_T}$hard_links" >&6
11094 if test "$hard_links" = no; then
11095 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11096 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11103 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11104 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11106 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11109 # If we're using GNU nm, then we don't want the "-C" option.
11110 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11111 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11112 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'
11114 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'
11118 export_symbols_cmds_CXX="$ltdll_cmds"
11121 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11128 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11129 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11130 test "$ld_shlibs_CXX" = no && can_build_shared=no
11132 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11133 if test "$GCC" = yes; then
11134 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11138 # Do we need to explicitly link libc?
11140 case "x$archive_cmds_need_lc_CXX" in
11142 # Assume -lc should be added
11143 archive_cmds_need_lc_CXX=yes
11145 if test "$enable_shared" = yes && test "$GCC" = yes; then
11146 case $archive_cmds_CXX in
11148 # FIXME: we may have to deal with multi-command sequences.
11151 # Test whether the compiler implicitly links with -lc since on some
11152 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11153 # to ld, don't add -lc before -lgcc.
11154 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11155 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11157 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11160 (eval $ac_compile) 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } 2>conftest.err; then
11166 libobjs=conftest.$ac_objext
11168 wl=$lt_prog_compiler_wl_CXX
11174 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11175 allow_undefined_flag_CXX=
11176 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11177 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }
11182 archive_cmds_need_lc_CXX=no
11184 archive_cmds_need_lc_CXX=yes
11186 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11188 cat conftest.err 1>&5
11191 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11192 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11199 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11200 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11201 library_names_spec=
11202 libname_spec='lib$name'
11206 postuninstall_cmds=
11210 shlibpath_overrides_runpath=unknown
11212 dynamic_linker="$host_os ld.so"
11213 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11214 if test "$GCC" = yes; then
11215 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11216 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11217 # if the path contains ";" then we assume it to be the separator
11218 # otherwise default to the standard path separator (i.e. ":") - it is
11219 # assumed that no part of a normal pathname contains ";" but that should
11220 # okay in the real world where ";" in dirpaths is itself problematic.
11221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11226 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11228 need_lib_prefix=unknown
11229 hardcode_into_libs=no
11231 # when you set need_version to no, make sure it does not cause -set_version
11232 # flags to be left without arguments
11233 need_version=unknown
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11239 shlibpath_var=LIBPATH
11241 # AIX 3 has no versioning support, so we append a major version to the name.
11242 soname_spec='${libname}${release}${shared_ext}$major'
11249 hardcode_into_libs=yes
11250 if test "$host_cpu" = ia64; then
11251 # AIX 5 supports IA64
11252 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11253 shlibpath_var=LD_LIBRARY_PATH
11255 # With GCC up to 2.95.x, collect2 would create an import file
11256 # for dependence libraries. The import file would start with
11257 # the line `#! .'. This would cause the generated library to
11258 # depend on `.', always an invalid library. This was fixed in
11259 # development snapshots of GCC prior to 3.0.
11261 aix4 | aix4.[01] | aix4.[01].*)
11262 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11264 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11267 can_build_shared=no
11271 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11272 # soname into executable. Probably we can add versioning support to
11273 # collect2, so additional links can be useful in future.
11274 if test "$aix_use_runtimelinking" = yes; then
11275 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11276 # instead of lib<name>.a to let people know that these are not
11277 # typical AIX shared libraries.
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280 # We preserve .a as extension for shared libraries through AIX4.2
11281 # and later when we are not doing run time linking.
11282 library_names_spec='${libname}${release}.a $libname.a'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11285 shlibpath_var=LIBPATH
11290 library_names_spec='$libname.ixlibrary $libname.a'
11291 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11292 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'
11296 library_names_spec='${libname}${shared_ext}'
11297 dynamic_linker="$host_os ld.so"
11298 shlibpath_var=LIBRARY_PATH
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11309 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11310 # the default ld.so.conf also contains /usr/contrib/lib and
11311 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11312 # libtool to hard-code these into programs
11315 cygwin* | mingw* | pw32*)
11316 version_type=windows
11321 case $GCC,$host_os in
11322 yes,cygwin* | yes,mingw* | yes,pw32*)
11323 library_names_spec='$libname.dll.a'
11324 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11325 postinstall_cmds='base_file=`basename \${file}`~
11326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11327 dldir=$destdir/`dirname \$dlpath`~
11328 test -d \$dldir || mkdir -p \$dldir~
11329 $install_prog $dir/$dlname \$dldir/$dlname'
11330 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11331 dlpath=$dir/\$dldll~
11333 shlibpath_overrides_runpath=yes
11337 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11338 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11339 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11342 # MinGW DLLs use traditional 'lib' prefix
11343 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11344 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11345 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11346 # It is most probably a Windows format PATH printed by
11347 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11348 # path with ; separators, and with drive letters. We can handle the
11349 # drive letters (cygwin fileutils understands them), so leave them,
11350 # especially as we might pass files found there to a mingw objdump,
11351 # which wouldn't understand a cygwinified path. Ahh.
11352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11358 # pw32 DLLs use 'pw' prefix rather than 'lib'
11359 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11365 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11368 dynamic_linker='Win32 ld.exe'
11369 # FIXME: first we should search . and the directory the executable is in
11373 darwin* | rhapsody*)
11374 dynamic_linker="$host_os dyld"
11375 version_type=darwin
11378 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11379 soname_spec='${libname}${release}${major}$shared_ext'
11380 shlibpath_overrides_runpath=yes
11381 shlibpath_var=DYLD_LIBRARY_PATH
11382 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11383 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11384 if test "$GCC" = yes; then
11385 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"`
11387 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11389 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11397 soname_spec='${libname}${release}${shared_ext}$major'
11398 shlibpath_var=LD_LIBRARY_PATH
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11410 soname_spec='${libname}${release}${shared_ext}$major'
11411 shlibpath_var=LD_LIBRARY_PATH
11412 shlibpath_overrides_runpath=no
11413 hardcode_into_libs=yes
11414 dynamic_linker='GNU ld.so'
11418 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11419 version_type=freebsd-$objformat
11420 case $version_type in
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11431 shlibpath_var=LD_LIBRARY_PATH
11434 shlibpath_overrides_runpath=yes
11436 freebsd3.01* | freebsdelf3.01*)
11437 shlibpath_overrides_runpath=yes
11438 hardcode_into_libs=yes
11441 shlibpath_overrides_runpath=no
11442 hardcode_into_libs=yes
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11452 soname_spec='${libname}${release}${shared_ext}$major'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 hardcode_into_libs=yes
11457 hpux9* | hpux10* | hpux11*)
11458 # Give a soname corresponding to the major version so that dld.sl refuses to
11459 # link against other versions.
11463 case "$host_cpu" in
11466 hardcode_into_libs=yes
11467 dynamic_linker="$host_os dld.so"
11468 shlibpath_var=LD_LIBRARY_PATH
11469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
11473 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11475 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11477 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11481 hardcode_into_libs=yes
11482 dynamic_linker="$host_os dld.sl"
11483 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11484 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11492 dynamic_linker="$host_os dld.sl"
11493 shlibpath_var=SHLIB_PATH
11494 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496 soname_spec='${libname}${release}${shared_ext}$major'
11499 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11500 postinstall_cmds='chmod 555 $lib'
11503 irix5* | irix6* | nonstopux*)
11505 nonstopux*) version_type=nonstopux ;;
11507 if test "$lt_cv_prog_gnu_ld" = yes; then
11515 soname_spec='${libname}${release}${shared_ext}$major'
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11518 irix5* | nonstopux*)
11519 libsuff= shlibsuff=
11522 case $LD in # libtool.m4 will add one of these switches to LD
11523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11524 libsuff= shlibsuff= libmagic=32-bit;;
11525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11526 libsuff=32 shlibsuff=N32 libmagic=N32;;
11527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11528 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11529 *) libsuff= shlibsuff= libmagic=never-match;;
11533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11534 shlibpath_overrides_runpath=no
11535 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11536 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11537 hardcode_into_libs=yes
11540 # No shared lib support for Linux oldld, aout, or coff.
11541 linux*oldld* | linux*aout* | linux*coff*)
11545 # This must be Linux ELF.
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=no
11555 # This implies no fast_install, which is unacceptable.
11556 # Some rework will be needed to allow for fast_install
11557 # before this can be enabled.
11558 hardcode_into_libs=yes
11560 # Append ld.so.conf contents to the search path
11561 if test -f /etc/ld.so.conf; then
11562 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11563 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11566 # We used to test for /lib/ld.so.1 and disable shared libraries on
11567 # powerpc, because MkLinux only supported shared libraries with the
11568 # GNU dynamic linker. Since this was broken with cross compilers,
11569 # most powerpc-linux boxes support dynamic linking these days and
11570 # people can always --disable-shared, the test was removed, and we
11571 # assume the GNU/Linux dynamic linker is in use.
11572 dynamic_linker='GNU/Linux ld.so'
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11580 soname_spec='${libname}${release}${shared_ext}$major'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 shlibpath_overrides_runpath=no
11583 hardcode_into_libs=yes
11584 dynamic_linker='GNU ld.so'
11591 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11594 dynamic_linker='NetBSD (a.out) ld.so'
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 dynamic_linker='NetBSD ld.elf_so'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 shlibpath_overrides_runpath=yes
11602 hardcode_into_libs=yes
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 shlibpath_var=LD_LIBRARY_PATH
11609 shlibpath_overrides_runpath=yes
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617 soname_spec='${libname}${release}${shared_ext}$major'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 shlibpath_overrides_runpath=yes
11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11631 openbsd2.[89] | openbsd2.[89].*)
11632 shlibpath_overrides_runpath=no
11635 shlibpath_overrides_runpath=yes
11639 shlibpath_overrides_runpath=yes
11644 libname_spec='$name'
11647 library_names_spec='$libname${shared_ext} $libname.a'
11648 dynamic_linker='OS/2 ld.exe'
11649 shlibpath_var=LIBPATH
11652 osf3* | osf4* | osf5*)
11656 soname_spec='${libname}${release}${shared_ext}$major'
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11658 shlibpath_var=LD_LIBRARY_PATH
11659 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11660 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11667 shlibpath_var=LD_LIBRARY_PATH
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 shlibpath_var=LD_LIBRARY_PATH
11677 shlibpath_overrides_runpath=yes
11678 hardcode_into_libs=yes
11679 # ldd complains unless libraries are executable
11680 postinstall_cmds='chmod +x $lib'
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11686 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11687 shlibpath_var=LD_LIBRARY_PATH
11688 shlibpath_overrides_runpath=yes
11689 if test "$with_gnu_ld" = yes; then
11695 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698 soname_spec='${libname}${release}${shared_ext}$major'
11699 shlibpath_var=LD_LIBRARY_PATH
11700 case $host_vendor in
11702 shlibpath_overrides_runpath=no
11704 export_dynamic_flag_spec='${wl}-Blargedynsym'
11705 runpath_var=LD_RUN_PATH
11713 shlibpath_overrides_runpath=no
11714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11720 if test -d /usr/nec ;then
11722 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11723 soname_spec='$libname${shared_ext}.$major'
11724 shlibpath_var=LD_LIBRARY_PATH
11730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11731 soname_spec='${libname}${release}${shared_ext}$major'
11732 shlibpath_var=LD_LIBRARY_PATH
11739 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11740 echo "${ECHO_T}$dynamic_linker" >&6
11741 test "$dynamic_linker" = no && can_build_shared=no
11743 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11744 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11745 hardcode_action_CXX=
11746 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11747 test -n "$runpath_var CXX" || \
11748 test "X$hardcode_automatic_CXX"="Xyes" ; then
11750 # We can hardcode non-existant directories.
11751 if test "$hardcode_direct_CXX" != no &&
11752 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11753 # have to relink, otherwise we might link with an installed library
11754 # when we should be linking with a yet-to-be-installed one
11755 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11756 test "$hardcode_minus_L_CXX" != no; then
11757 # Linking always hardcodes the temporary library directory.
11758 hardcode_action_CXX=relink
11760 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11761 hardcode_action_CXX=immediate
11764 # We cannot hardcode anything, or else we can only hardcode existing
11766 hardcode_action_CXX=unsupported
11768 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11769 echo "${ECHO_T}$hardcode_action_CXX" >&6
11771 if test "$hardcode_action_CXX" = relink; then
11772 # Fast installation is not supported
11773 enable_fast_install=no
11774 elif test "$shlibpath_overrides_runpath" = yes ||
11775 test "$enable_shared" = no; then
11776 # Fast installation is not necessary
11777 enable_fast_install=needless
11782 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11783 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11784 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11785 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11786 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11787 echo "$as_me:$LINENO: result: yes" >&5
11788 echo "${ECHO_T}yes" >&6
11790 # FIXME - insert some real tests, host_os isn't really good enough
11793 if test -n "$STRIP" ; then
11794 striplib="$STRIP -x"
11795 echo "$as_me:$LINENO: result: yes" >&5
11796 echo "${ECHO_T}yes" >&6
11798 echo "$as_me:$LINENO: result: no" >&5
11799 echo "${ECHO_T}no" >&6
11803 echo "$as_me:$LINENO: result: no" >&5
11804 echo "${ECHO_T}no" >&6
11809 if test "x$enable_dlopen" != xyes; then
11810 enable_dlopen=unknown
11811 enable_dlopen_self=unknown
11812 enable_dlopen_self_static=unknown
11819 lt_cv_dlopen="load_add_on"
11821 lt_cv_dlopen_self=yes
11825 lt_cv_dlopen="LoadLibrary"
11830 lt_cv_dlopen="dlopen"
11835 # if libdl is installed we need to link against it
11836 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11837 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11838 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 ac_check_lib_save_LIBS=$LIBS
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11850 /* Override any gcc2 internal prototype to avoid an error. */
11854 /* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11865 rm -f conftest.$ac_objext conftest$ac_exeext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11867 (eval $ac_link) 2>conftest.er1
11869 grep -v '^ *+' conftest.er1 >conftest.err
11871 cat conftest.err >&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; } &&
11880 { ac_try='test -s conftest$ac_exeext'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; }; then
11886 ac_cv_lib_dl_dlopen=yes
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 ac_cv_lib_dl_dlopen=no
11893 rm -f conftest.err conftest.$ac_objext \
11894 conftest$ac_exeext conftest.$ac_ext
11895 LIBS=$ac_check_lib_save_LIBS
11897 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11898 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11899 if test $ac_cv_lib_dl_dlopen = yes; then
11900 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11903 lt_cv_dlopen="dyld"
11905 lt_cv_dlopen_self=yes
11912 echo "$as_me:$LINENO: checking for shl_load" >&5
11913 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11914 if test "${ac_cv_func_shl_load+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 cat >conftest.$ac_ext <<_ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11925 #define shl_load innocuous_shl_load
11927 /* System header to define __stub macros and hopefully few prototypes,
11928 which can conflict with char shl_load (); below.
11929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11930 <limits.h> exists even on freestanding compilers. */
11933 # include <limits.h>
11935 # include <assert.h>
11940 /* Override any gcc2 internal prototype to avoid an error. */
11945 /* We use char because int might match the return type of a gcc2
11946 builtin and then its argument prototype would still apply. */
11948 /* The GNU C library defines this for functions which it implements
11949 to always fail with ENOSYS. Some functions are actually named
11950 something starting with __ and the normal name is an alias. */
11951 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11954 char (*f) () = shl_load;
11963 return f != shl_load;
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970 (eval $ac_link) 2>conftest.er1
11972 grep -v '^ *+' conftest.er1 >conftest.err
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_cv_func_shl_load=yes
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11994 ac_cv_func_shl_load=no
11996 rm -f conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11999 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12000 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12001 if test $ac_cv_func_shl_load = yes; then
12002 lt_cv_dlopen="shl_load"
12004 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12005 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12006 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 ac_check_lib_save_LIBS=$LIBS
12011 cat >conftest.$ac_ext <<_ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12018 /* Override any gcc2 internal prototype to avoid an error. */
12022 /* We use char because int might match the return type of a gcc2
12023 builtin and then its argument prototype would still apply. */
12033 rm -f conftest.$ac_objext conftest$ac_exeext
12034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12035 (eval $ac_link) 2>conftest.er1
12037 grep -v '^ *+' conftest.er1 >conftest.err
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest$ac_exeext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_cv_lib_dld_shl_load=yes
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_cv_lib_dld_shl_load=no
12061 rm -f conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12063 LIBS=$ac_check_lib_save_LIBS
12065 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12066 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12067 if test $ac_cv_lib_dld_shl_load = yes; then
12068 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12070 echo "$as_me:$LINENO: checking for dlopen" >&5
12071 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12072 if test "${ac_cv_func_dlopen+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 cat >conftest.$ac_ext <<_ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12081 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12083 #define dlopen innocuous_dlopen
12085 /* System header to define __stub macros and hopefully few prototypes,
12086 which can conflict with char dlopen (); below.
12087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12088 <limits.h> exists even on freestanding compilers. */
12091 # include <limits.h>
12093 # include <assert.h>
12098 /* Override any gcc2 internal prototype to avoid an error. */
12103 /* We use char because int might match the return type of a gcc2
12104 builtin and then its argument prototype would still apply. */
12106 /* The GNU C library defines this for functions which it implements
12107 to always fail with ENOSYS. Some functions are actually named
12108 something starting with __ and the normal name is an alias. */
12109 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12112 char (*f) () = dlopen;
12121 return f != dlopen;
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest$ac_exeext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_func_dlopen=yes
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12152 ac_cv_func_dlopen=no
12154 rm -f conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12157 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12158 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12159 if test $ac_cv_func_dlopen = yes; then
12160 lt_cv_dlopen="dlopen"
12162 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12163 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12164 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 ac_check_lib_save_LIBS=$LIBS
12169 cat >conftest.$ac_ext <<_ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12176 /* Override any gcc2 internal prototype to avoid an error. */
12180 /* We use char because int might match the return type of a gcc2
12181 builtin and then its argument prototype would still apply. */
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193 (eval $ac_link) 2>conftest.er1
12195 grep -v '^ *+' conftest.er1 >conftest.err
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest$ac_exeext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_cv_lib_dl_dlopen=yes
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 ac_cv_lib_dl_dlopen=no
12219 rm -f conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12223 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12224 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12225 if test $ac_cv_lib_dl_dlopen = yes; then
12226 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12228 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12229 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12230 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-lsvld $LIBS"
12235 cat >conftest.$ac_ext <<_ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12242 /* Override any gcc2 internal prototype to avoid an error. */
12246 /* We use char because int might match the return type of a gcc2
12247 builtin and then its argument prototype would still apply. */
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259 (eval $ac_link) 2>conftest.er1
12261 grep -v '^ *+' conftest.er1 >conftest.err
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 ac_cv_lib_svld_dlopen=yes
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283 ac_cv_lib_svld_dlopen=no
12285 rm -f conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_check_lib_save_LIBS
12289 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12290 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12291 if test $ac_cv_lib_svld_dlopen = yes; then
12292 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12294 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12295 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12296 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 ac_check_lib_save_LIBS=$LIBS
12301 cat >conftest.$ac_ext <<_ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12308 /* Override any gcc2 internal prototype to avoid an error. */
12312 /* We use char because int might match the return type of a gcc2
12313 builtin and then its argument prototype would still apply. */
12323 rm -f conftest.$ac_objext conftest$ac_exeext
12324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12325 (eval $ac_link) 2>conftest.er1
12327 grep -v '^ *+' conftest.er1 >conftest.err
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; } &&
12338 { ac_try='test -s conftest$ac_exeext'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_cv_lib_dld_dld_link=yes
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 ac_cv_lib_dld_dld_link=no
12351 rm -f conftest.err conftest.$ac_objext \
12352 conftest$ac_exeext conftest.$ac_ext
12353 LIBS=$ac_check_lib_save_LIBS
12355 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12356 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12357 if test $ac_cv_lib_dld_dld_link = yes; then
12358 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12379 if test "x$lt_cv_dlopen" != xno; then
12385 case $lt_cv_dlopen in
12387 save_CPPFLAGS="$CPPFLAGS"
12388 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12390 save_LDFLAGS="$LDFLAGS"
12391 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12394 LIBS="$lt_cv_dlopen_libs $LIBS"
12396 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12397 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12398 if test "${lt_cv_dlopen_self+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 if test "$cross_compiling" = yes; then :
12402 lt_cv_dlopen_self=cross
12404 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12405 lt_status=$lt_dlunknown
12406 cat > conftest.$ac_ext <<EOF
12407 #line 12407 "configure"
12408 #include "confdefs.h"
12417 # define LT_DLGLOBAL RTLD_GLOBAL
12420 # define LT_DLGLOBAL DL_GLOBAL
12422 # define LT_DLGLOBAL 0
12426 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12427 find out it does not work in some platform. */
12428 #ifndef LT_DLLAZY_OR_NOW
12430 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12433 # define LT_DLLAZY_OR_NOW DL_LAZY
12436 # define LT_DLLAZY_OR_NOW RTLD_NOW
12439 # define LT_DLLAZY_OR_NOW DL_NOW
12441 # define LT_DLLAZY_OR_NOW 0
12449 extern "C" void exit (int);
12452 void fnord() { int i=42;}
12455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12456 int status = $lt_dlunknown;
12460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12461 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12462 /* dlclose (self); */
12468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12469 (eval $ac_link) 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12473 (./conftest; exit; ) 2>/dev/null
12475 case x$lt_status in
12476 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12477 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12478 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12481 # compilation failed
12482 lt_cv_dlopen_self=no
12489 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12490 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12492 if test "x$lt_cv_dlopen_self" = xyes; then
12493 LDFLAGS="$LDFLAGS $link_static_flag"
12494 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12495 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12496 if test "${lt_cv_dlopen_self_static+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 if test "$cross_compiling" = yes; then :
12500 lt_cv_dlopen_self_static=cross
12502 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12503 lt_status=$lt_dlunknown
12504 cat > conftest.$ac_ext <<EOF
12505 #line 12505 "configure"
12506 #include "confdefs.h"
12515 # define LT_DLGLOBAL RTLD_GLOBAL
12518 # define LT_DLGLOBAL DL_GLOBAL
12520 # define LT_DLGLOBAL 0
12524 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12525 find out it does not work in some platform. */
12526 #ifndef LT_DLLAZY_OR_NOW
12528 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12531 # define LT_DLLAZY_OR_NOW DL_LAZY
12534 # define LT_DLLAZY_OR_NOW RTLD_NOW
12537 # define LT_DLLAZY_OR_NOW DL_NOW
12539 # define LT_DLLAZY_OR_NOW 0
12547 extern "C" void exit (int);
12550 void fnord() { int i=42;}
12553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12554 int status = $lt_dlunknown;
12558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12559 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12560 /* dlclose (self); */
12566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12567 (eval $ac_link) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12571 (./conftest; exit; ) 2>/dev/null
12573 case x$lt_status in
12574 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12575 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12576 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12579 # compilation failed
12580 lt_cv_dlopen_self_static=no
12587 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12588 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12591 CPPFLAGS="$save_CPPFLAGS"
12592 LDFLAGS="$save_LDFLAGS"
12597 case $lt_cv_dlopen_self in
12598 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12599 *) enable_dlopen_self=unknown ;;
12602 case $lt_cv_dlopen_self_static in
12603 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12604 *) enable_dlopen_self_static=unknown ;;
12609 # The else clause should only fire when bootstrapping the
12610 # libtool distribution, otherwise you forgot to ship ltmain.sh
12611 # with your package, and you will get complaints that there are
12612 # no rules to generate ltmain.sh.
12613 if test -f "$ltmain"; then
12614 # See if we are running on zsh, and set the options which allow our commands through
12615 # without removal of \ escapes.
12616 if test -n "${ZSH_VERSION+set}" ; then
12617 setopt NO_GLOB_SUBST
12619 # Now quote all the things that may contain metacharacters while being
12620 # careful not to overquote the AC_SUBSTed values. We take copies of the
12621 # variables and quote the copies for generation of the libtool script.
12622 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12624 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12625 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12626 deplibs_check_method reload_flag reload_cmds need_locks \
12627 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12628 lt_cv_sys_global_symbol_to_c_name_address \
12629 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12630 old_postinstall_cmds old_postuninstall_cmds \
12634 lt_prog_compiler_wl_CXX \
12635 lt_prog_compiler_pic_CXX \
12636 lt_prog_compiler_static_CXX \
12637 lt_prog_compiler_no_builtin_flag_CXX \
12638 export_dynamic_flag_spec_CXX \
12639 thread_safe_flag_spec_CXX \
12640 whole_archive_flag_spec_CXX \
12641 enable_shared_with_static_runtimes_CXX \
12642 old_archive_cmds_CXX \
12643 old_archive_from_new_cmds_CXX \
12644 predep_objects_CXX \
12645 postdep_objects_CXX \
12648 compiler_lib_search_path_CXX \
12650 archive_expsym_cmds_CXX \
12651 postinstall_cmds_CXX \
12652 postuninstall_cmds_CXX \
12653 old_archive_from_expsyms_cmds_CXX \
12654 allow_undefined_flag_CXX \
12655 no_undefined_flag_CXX \
12656 export_symbols_cmds_CXX \
12657 hardcode_libdir_flag_spec_CXX \
12658 hardcode_libdir_flag_spec_ld_CXX \
12659 hardcode_libdir_separator_CXX \
12660 hardcode_automatic_CXX \
12662 module_expsym_cmds_CXX \
12663 lt_cv_prog_compiler_c_o_CXX \
12664 exclude_expsyms_CXX \
12665 include_expsyms_CXX; do
12668 old_archive_cmds_CXX | \
12669 old_archive_from_new_cmds_CXX | \
12670 archive_cmds_CXX | \
12671 archive_expsym_cmds_CXX | \
12672 module_cmds_CXX | \
12673 module_expsym_cmds_CXX | \
12674 old_archive_from_expsyms_cmds_CXX | \
12675 export_symbols_cmds_CXX | \
12676 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12677 postinstall_cmds | postuninstall_cmds | \
12678 old_postinstall_cmds | old_postuninstall_cmds | \
12679 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12680 # Double-quote double-evaled strings.
12681 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12690 *'\$0 --fallback-echo"')
12691 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12697 cat <<__EOF__ >> "$cfgfile"
12698 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12702 # Shell to use when invoking shell scripts.
12705 # Whether or not to build shared libraries.
12706 build_libtool_libs=$enable_shared
12708 # Whether or not to build static libraries.
12709 build_old_libs=$enable_static
12711 # Whether or not to add -lc for building shared libraries.
12712 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12714 # Whether or not to disallow shared libs when runtime libs are static
12715 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12717 # Whether or not to optimize for fast installation.
12718 fast_install=$enable_fast_install
12721 host_alias=$host_alias
12724 # An echo program that does not interpret backslashes.
12729 AR_FLAGS=$lt_AR_FLAGS
12734 # A language-specific compiler.
12735 CC=$lt_compiler_CXX
12737 # Is the compiler the GNU C compiler?
12743 # The linker used to build libraries.
12746 # Whether we need hard or soft links.
12749 # A BSD-compatible nm program.
12752 # A symbol stripping program
12755 # Used to examine libraries when file_magic_cmd begins "file"
12756 MAGIC_CMD=$MAGIC_CMD
12758 # Used on cygwin: DLL creation program.
12761 # Used on cygwin: object dumper.
12764 # Used on cygwin: assembler.
12767 # The name of the directory that contains temporary libtool files.
12770 # How to create reloadable object files.
12771 reload_flag=$lt_reload_flag
12772 reload_cmds=$lt_reload_cmds
12774 # How to pass a linker flag through the compiler.
12775 wl=$lt_lt_prog_compiler_wl_CXX
12777 # Object file suffix (normally "o").
12778 objext="$ac_objext"
12780 # Old archive suffix (normally "a").
12783 # Shared library suffix (normally ".so").
12786 # Executable file suffix (normally "").
12789 # Additional compiler flags for building library objects.
12790 pic_flag=$lt_lt_prog_compiler_pic_CXX
12793 # What is the maximum length of a command?
12794 max_cmd_len=$lt_cv_sys_max_cmd_len
12796 # Does compiler simultaneously support -c and -o options?
12797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12799 # Must we lock files when doing compilation ?
12800 need_locks=$lt_need_locks
12802 # Do we need the lib prefix for modules?
12803 need_lib_prefix=$need_lib_prefix
12805 # Do we need a version for libraries?
12806 need_version=$need_version
12808 # Whether dlopen is supported.
12809 dlopen_support=$enable_dlopen
12811 # Whether dlopen of programs is supported.
12812 dlopen_self=$enable_dlopen_self
12814 # Whether dlopen of statically linked programs is supported.
12815 dlopen_self_static=$enable_dlopen_self_static
12817 # Compiler flag to prevent dynamic linking.
12818 link_static_flag=$lt_lt_prog_compiler_static_CXX
12820 # Compiler flag to turn off builtin functions.
12821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12823 # Compiler flag to allow reflexive dlopens.
12824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12826 # Compiler flag to generate shared objects directly from archives.
12827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12829 # Compiler flag to generate thread-safe objects.
12830 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12832 # Library versioning type.
12833 version_type=$version_type
12835 # Format of library name prefix.
12836 libname_spec=$lt_libname_spec
12838 # List of archive names. First name is the real one, the rest are links.
12839 # The last name is the one that the linker finds with -lNAME.
12840 library_names_spec=$lt_library_names_spec
12842 # The coded name of the library, if different from the real name.
12843 soname_spec=$lt_soname_spec
12845 # Commands used to build and install an old-style archive.
12847 old_archive_cmds=$lt_old_archive_cmds_CXX
12848 old_postinstall_cmds=$lt_old_postinstall_cmds
12849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12851 # Create an old-style archive from a shared archive.
12852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12854 # Create a temporary old-style archive to link instead of a shared archive.
12855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12857 # Commands used to build and install a shared archive.
12858 archive_cmds=$lt_archive_cmds_CXX
12859 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12860 postinstall_cmds=$lt_postinstall_cmds
12861 postuninstall_cmds=$lt_postuninstall_cmds
12863 # Commands used to build a loadable module (assumed same as above if empty)
12864 module_cmds=$lt_module_cmds_CXX
12865 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12867 # Commands to strip libraries.
12868 old_striplib=$lt_old_striplib
12869 striplib=$lt_striplib
12871 # Dependencies to place before the objects being linked to create a
12873 predep_objects=$lt_predep_objects_CXX
12875 # Dependencies to place after the objects being linked to create a
12877 postdep_objects=$lt_postdep_objects_CXX
12879 # Dependencies to place before the objects being linked to create a
12881 predeps=$lt_predeps_CXX
12883 # Dependencies to place after the objects being linked to create a
12885 postdeps=$lt_postdeps_CXX
12887 # The library search path used internally by the compiler when linking
12888 # a shared library.
12889 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12891 # Method to check whether dependent libraries are shared objects.
12892 deplibs_check_method=$lt_deplibs_check_method
12894 # Command to use when deplibs_check_method == file_magic.
12895 file_magic_cmd=$lt_file_magic_cmd
12897 # Flag that allows shared libraries with undefined symbols to be built.
12898 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12900 # Flag that forces no undefined symbols.
12901 no_undefined_flag=$lt_no_undefined_flag_CXX
12903 # Commands used to finish a libtool library installation in a directory.
12904 finish_cmds=$lt_finish_cmds
12906 # Same as above, but a single script fragment to be evaled but not shown.
12907 finish_eval=$lt_finish_eval
12909 # Take the output of nm and produce a listing of raw symbols and C names.
12910 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12912 # Transform the output of nm in a proper C declaration
12913 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12915 # Transform the output of nm in a C name address pair
12916 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12918 # This is the shared library runtime path variable.
12919 runpath_var=$runpath_var
12921 # This is the shared library path variable.
12922 shlibpath_var=$shlibpath_var
12924 # Is shlibpath searched before the hard-coded library search path?
12925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12927 # How to hardcode a shared library path into an executable.
12928 hardcode_action=$hardcode_action_CXX
12930 # Whether we should hardcode library paths into libraries.
12931 hardcode_into_libs=$hardcode_into_libs
12933 # Flag to hardcode \$libdir into a binary during linking.
12934 # This must work even if \$libdir does not exist.
12935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12937 # If ld is used when linking, flag to hardcode \$libdir into
12938 # a binary during linking. This must work even if \$libdir does
12940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12942 # Whether we need a single -rpath flag with a separated argument.
12943 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12945 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12946 # resulting binary.
12947 hardcode_direct=$hardcode_direct_CXX
12949 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12950 # resulting binary.
12951 hardcode_minus_L=$hardcode_minus_L_CXX
12953 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12954 # the resulting binary.
12955 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12957 # Set to yes if building a shared library automatically hardcodes DIR into the library
12958 # and all subsequent libraries and executables linked against it.
12959 hardcode_automatic=$hardcode_automatic_CXX
12961 # Variables whose values should be saved in libtool wrapper scripts and
12962 # restored at relink time.
12963 variables_saved_for_relink="$variables_saved_for_relink"
12965 # Whether libtool must link a program against all its dependency libraries.
12966 link_all_deplibs=$link_all_deplibs_CXX
12968 # Compile-time system search path for libraries
12969 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12971 # Run-time system search path for libraries
12972 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12974 # Fix the shell variable \$srcfile for the compiler.
12975 fix_srcfile_path="$fix_srcfile_path_CXX"
12977 # Set to yes if exported symbols are required.
12978 always_export_symbols=$always_export_symbols_CXX
12980 # The commands to list exported symbols.
12981 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12983 # The commands to extract the exported symbol list from a shared archive.
12984 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12986 # Symbols that should not be listed in the preloaded symbols.
12987 exclude_expsyms=$lt_exclude_expsyms_CXX
12989 # Symbols that must always be exported.
12990 include_expsyms=$lt_include_expsyms_CXX
12992 # ### END LIBTOOL TAG CONFIG: $tagname
12998 # If there is no Makefile yet, we rely on a make rule to execute
12999 # `config.status --recheck' to rerun these tests and create the
13000 # libtool script then.
13001 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13002 if test -f "$ltmain_in"; then
13003 test -f Makefile && make "$ltmain"
13009 ac_cpp='$CPP $CPPFLAGS'
13010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13018 with_gnu_ldcxx=$with_gnu_ld
13019 with_gnu_ld=$lt_save_with_gnu_ld
13020 lt_cv_path_LDCXX=$lt_cv_path_LD
13021 lt_cv_path_LD=$lt_save_path_LD
13022 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13023 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13031 if test -n "$F77" && test "X$F77" != "Xno"; then
13034 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13035 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13036 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13039 archive_cmds_need_lc_F77=no
13040 allow_undefined_flag_F77=
13041 always_export_symbols_F77=no
13042 archive_expsym_cmds_F77=
13043 export_dynamic_flag_spec_F77=
13044 hardcode_direct_F77=no
13045 hardcode_libdir_flag_spec_F77=
13046 hardcode_libdir_flag_spec_ld_F77=
13047 hardcode_libdir_separator_F77=
13048 hardcode_minus_L_F77=no
13049 hardcode_automatic_F77=no
13051 module_expsym_cmds_F77=
13052 link_all_deplibs_F77=unknown
13053 old_archive_cmds_F77=$old_archive_cmds
13054 no_undefined_flag_F77=
13055 whole_archive_flag_spec_F77=
13056 enable_shared_with_static_runtimes_F77=no
13058 # Source file extension for f77 test sources.
13061 # Object file extension for compiled f77 test sources.
13065 # Code to be used in simple compile tests
13066 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13068 # Code to be used in simple link tests
13069 lt_simple_link_test_code=" program t\n end\n"
13071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13073 # If no C compiler was specified, use CC.
13076 # Allow CC to be a program name with arguments.
13080 # Allow CC to be a program name with arguments.
13085 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13087 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13088 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13089 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13090 echo "${ECHO_T}$can_build_shared" >&6
13092 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13093 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13094 test "$can_build_shared" = "no" && enable_shared=no
13096 # On AIX, shared libraries and static libraries use the same namespace, and
13097 # are all built from PIC.
13100 test "$enable_shared" = yes && enable_static=no
13101 if test -n "$RANLIB"; then
13102 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13103 postinstall_cmds='$RANLIB $lib'
13107 test "$enable_shared" = yes && enable_static=no
13110 echo "$as_me:$LINENO: result: $enable_shared" >&5
13111 echo "${ECHO_T}$enable_shared" >&6
13113 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13114 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13115 # Make sure either enable_shared or enable_static is yes.
13116 test "$enable_shared" = yes || enable_static=yes
13117 echo "$as_me:$LINENO: result: $enable_static" >&5
13118 echo "${ECHO_T}$enable_static" >&6
13120 test "$ld_shlibs_F77" = no && can_build_shared=no
13125 lt_prog_compiler_wl_F77=
13126 lt_prog_compiler_pic_F77=
13127 lt_prog_compiler_static_F77=
13129 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13130 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13132 if test "$GCC" = yes; then
13133 lt_prog_compiler_wl_F77='-Wl,'
13134 lt_prog_compiler_static_F77='-static'
13138 # All AIX code is PIC.
13139 if test "$host_cpu" = ia64; then
13140 # AIX 5 now supports IA64 processor
13141 lt_prog_compiler_static_F77='-Bstatic'
13146 # FIXME: we need at least 68020 code to build shared libraries, but
13147 # adding the `-m68020' flag to GCC prevents building anything better,
13149 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13152 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13153 # PIC is the default for these OSes.
13156 mingw* | pw32* | os2*)
13157 # This hack is so that the source file can tell whether it is being
13158 # built for inclusion in a dll (and should export symbols for example).
13159 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13162 darwin* | rhapsody*)
13163 # PIC is the default on this platform
13164 # Common symbols not allowed in MH_DYLIB files
13165 lt_prog_compiler_pic_F77='-fno-common'
13169 # Just because we use GCC doesn't mean we suddenly get shared libraries
13170 # on systems that don't support them.
13171 lt_prog_compiler_can_build_shared_F77=no
13176 if test -d /usr/nec; then
13177 lt_prog_compiler_pic_F77=-Kconform_pic
13182 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13183 # not for PA HP-UX.
13184 case "$host_cpu" in
13189 lt_prog_compiler_pic_F77='-fPIC'
13195 lt_prog_compiler_pic_F77='-fPIC'
13199 # PORTME Check for flag to pass linker flags through the system compiler.
13202 lt_prog_compiler_wl_F77='-Wl,'
13203 if test "$host_cpu" = ia64; then
13204 # AIX 5 now supports IA64 processor
13205 lt_prog_compiler_static_F77='-Bstatic'
13207 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13211 mingw* | pw32* | os2*)
13212 # This hack is so that the source file can tell whether it is being
13213 # built for inclusion in a dll (and should export symbols for example).
13214 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13217 hpux9* | hpux10* | hpux11*)
13218 lt_prog_compiler_wl_F77='-Wl,'
13219 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13220 # not for PA HP-UX.
13221 case "$host_cpu" in
13226 lt_prog_compiler_pic_F77='+Z'
13229 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13230 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13233 irix5* | irix6* | nonstopux*)
13234 lt_prog_compiler_wl_F77='-Wl,'
13235 # PIC (with -KPIC) is the default.
13236 lt_prog_compiler_static_F77='-non_shared'
13240 lt_prog_compiler_pic_F77='-KPIC'
13241 lt_prog_compiler_static_F77='-Bstatic'
13247 lt_prog_compiler_wl_F77='-Wl,'
13248 lt_prog_compiler_pic_F77='-KPIC'
13249 lt_prog_compiler_static_F77='-static'
13252 lt_prog_compiler_wl_F77='-Wl,'
13253 # All Alpha code is PIC.
13254 lt_prog_compiler_static_F77='-non_shared'
13259 osf3* | osf4* | osf5*)
13260 lt_prog_compiler_wl_F77='-Wl,'
13261 # All OSF/1 code is PIC.
13262 lt_prog_compiler_static_F77='-non_shared'
13266 lt_prog_compiler_pic_F77='-Kpic'
13267 lt_prog_compiler_static_F77='-dn'
13271 lt_prog_compiler_wl_F77='-Wl,'
13272 lt_prog_compiler_pic_F77='-KPIC'
13273 lt_prog_compiler_static_F77='-Bstatic'
13277 lt_prog_compiler_wl_F77='-Qoption ld '
13278 lt_prog_compiler_pic_F77='-PIC'
13279 lt_prog_compiler_static_F77='-Bstatic'
13282 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13283 lt_prog_compiler_wl_F77='-Wl,'
13284 lt_prog_compiler_pic_F77='-KPIC'
13285 lt_prog_compiler_static_F77='-Bstatic'
13289 if test -d /usr/nec ;then
13290 lt_prog_compiler_pic_F77='-Kconform_pic'
13291 lt_prog_compiler_static_F77='-Bstatic'
13296 lt_prog_compiler_pic_F77='-pic'
13297 lt_prog_compiler_static_F77='-Bstatic'
13301 lt_prog_compiler_can_build_shared_F77=no
13306 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13307 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13310 # Check to make sure the PIC flag actually works.
13312 if test -n "$lt_prog_compiler_pic_F77"; then
13314 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13315 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13316 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13319 lt_prog_compiler_pic_works_F77=no
13320 ac_outfile=conftest.$ac_objext
13321 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13322 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13323 # Insert the option either (1) after the last *FLAGS variable, or
13324 # (2) before a word containing "conftest.", or (3) at the end.
13325 # Note that $ac_compile itself does not contain backslashes and begins
13326 # with a dollar sign (not a hyphen), so the echo should work correctly.
13327 # The option is referenced via a variable to avoid confusing sed.
13328 lt_compile=`echo "$ac_compile" | $SED \
13329 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13331 -e 's:$: $lt_compiler_flag:'`
13332 (eval echo "\"\$as_me:13332: $lt_compile\"" >&5)
13333 (eval "$lt_compile" 2>conftest.err)
13335 cat conftest.err >&5
13336 echo "$as_me:13336: \$? = $ac_status" >&5
13337 if (exit $ac_status) && test -s "$ac_outfile"; then
13338 # The compiler can only warn and ignore the option if not recognized
13339 # So say no if there are warnings
13340 if test ! -s conftest.err; then
13341 lt_prog_compiler_pic_works_F77=yes
13347 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13348 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13350 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13351 case $lt_prog_compiler_pic_F77 in
13353 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13356 lt_prog_compiler_pic_F77=
13357 lt_prog_compiler_can_build_shared_F77=no
13362 # For platforms which do not support PIC, -DPIC is meaningless:
13364 lt_prog_compiler_pic_F77=
13367 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13371 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13372 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13373 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 lt_cv_prog_compiler_c_o_F77=no
13377 $rm -r conftest 2>/dev/null
13381 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13383 lt_compiler_flag="-o out/conftest2.$ac_objext"
13384 # Insert the option either (1) after the last *FLAGS variable, or
13385 # (2) before a word containing "conftest.", or (3) at the end.
13386 # Note that $ac_compile itself does not contain backslashes and begins
13387 # with a dollar sign (not a hyphen), so the echo should work correctly.
13388 lt_compile=`echo "$ac_compile" | $SED \
13389 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13391 -e 's:$: $lt_compiler_flag:'`
13392 (eval echo "\"\$as_me:13392: $lt_compile\"" >&5)
13393 (eval "$lt_compile" 2>out/conftest.err)
13395 cat out/conftest.err >&5
13396 echo "$as_me:13396: \$? = $ac_status" >&5
13397 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13399 # The compiler can only warn and ignore the option if not recognized
13400 # So say no if there are warnings
13401 if test ! -s out/conftest.err; then
13402 lt_cv_prog_compiler_c_o_F77=yes
13407 # SGI C++ compiler will create directory out/ii_files/ for
13408 # template instantiation
13409 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13410 $rm out/* && rmdir out
13416 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13417 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13420 hard_links="nottested"
13421 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13422 # do not overwrite the value of need_locks provided by the user
13423 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13424 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13427 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13429 ln conftest.a conftest.b 2>&5 || hard_links=no
13430 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13431 echo "$as_me:$LINENO: result: $hard_links" >&5
13432 echo "${ECHO_T}$hard_links" >&6
13433 if test "$hard_links" = no; then
13434 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13435 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13442 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13443 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13446 allow_undefined_flag_F77=
13447 enable_shared_with_static_runtimes_F77=no
13449 archive_expsym_cmds_F77=
13450 old_archive_From_new_cmds_F77=
13451 old_archive_from_expsyms_cmds_F77=
13452 export_dynamic_flag_spec_F77=
13453 whole_archive_flag_spec_F77=
13454 thread_safe_flag_spec_F77=
13455 hardcode_libdir_flag_spec_F77=
13456 hardcode_libdir_flag_spec_ld_F77=
13457 hardcode_libdir_separator_F77=
13458 hardcode_direct_F77=no
13459 hardcode_minus_L_F77=no
13460 hardcode_shlibpath_var_F77=unsupported
13461 link_all_deplibs_F77=unknown
13462 hardcode_automatic_F77=no
13464 module_expsym_cmds_F77=
13465 always_export_symbols_F77=no
13466 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13467 # include_expsyms should be a list of space-separated symbols to be *always*
13468 # included in the symbol list
13469 include_expsyms_F77=
13470 # exclude_expsyms can be an extended regexp of symbols to exclude
13471 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13472 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13473 # as well as any symbol that contains `d'.
13474 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13475 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13476 # platforms (ab)use it in PIC code, but their linkers get confused if
13477 # the symbol is explicitly referenced. Since portable code cannot
13478 # rely on this symbol name, it's probably fine to never include it in
13479 # preloaded symbol tables.
13480 extract_expsyms_cmds=
13483 cygwin* | mingw* | pw32*)
13484 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13485 # When not using gcc, we currently assume that we are using
13486 # Microsoft Visual C++.
13487 if test "$GCC" != yes; then
13497 if test "$with_gnu_ld" = yes; then
13498 # If archive_cmds runs LD, not CC, wlarc should be empty
13501 # See if GNU ld supports shared libraries.
13503 aix3* | aix4* | aix5*)
13504 # On AIX/PPC, the GNU linker is very broken
13505 if test "$host_cpu" != ia64; then
13509 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13510 *** to be unable to reliably create shared libraries on AIX.
13511 *** Therefore, libtool is disabling shared libraries support. If you
13512 *** really care for shared libraries, you may want to modify your PATH
13513 *** so that a non-GNU linker is found, and then restart.
13520 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)'
13521 hardcode_libdir_flag_spec_F77='-L$libdir'
13522 hardcode_minus_L_F77=yes
13524 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13525 # that the semantics of dynamic libraries on AmigaOS, at least up
13526 # to version 4, is to share data among multiple programs linked
13527 # with the same dynamic library. Since this doesn't match the
13528 # behavior of shared libraries on other platforms, we can't use
13534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13535 allow_undefined_flag_F77=unsupported
13536 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13537 # support --undefined. This deserves some investigation. FIXME
13538 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13544 cygwin* | mingw* | pw32*)
13545 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13546 # as there is no search path for DLLs.
13547 hardcode_libdir_flag_spec_F77='-L$libdir'
13548 allow_undefined_flag_F77=unsupported
13549 always_export_symbols_F77=no
13550 enable_shared_with_static_runtimes_F77=yes
13551 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13553 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13554 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13555 # If the export-symbols file already is a .def file (1st line
13556 # is EXPORTS), use it as is; otherwise, prepend...
13557 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13558 cp $export_symbols $output_objdir/$soname.def;
13560 echo EXPORTS > $output_objdir/$soname.def;
13561 cat $export_symbols >> $output_objdir/$soname.def;
13563 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13569 netbsd* | knetbsd*-gnu)
13570 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13571 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13574 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13580 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13584 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13585 *** create shared libraries on Solaris systems. Therefore, libtool
13586 *** is disabling shared libraries support. We urge you to upgrade GNU
13587 *** binutils to release 2.9.1 or newer. Another option is to modify
13588 *** your PATH or compiler configuration so that the native linker is
13589 *** used, and then restart.
13592 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13593 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13594 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13601 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13603 hardcode_direct_F77=yes
13604 hardcode_shlibpath_var_F77=no
13608 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13609 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13610 archive_cmds_F77="$tmp_archive_cmds"
13611 supports_anon_versioning=no
13612 case `$LD -v 2>/dev/null` in
13613 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13614 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13615 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13616 *\ 2.11.*) ;; # other 2.11 versions
13617 *) supports_anon_versioning=yes ;;
13619 if test $supports_anon_versioning = yes; then
13620 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13622 $echo "local: *; };" >> $output_objdir/$libname.ver~
13623 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13625 archive_expsym_cmds_F77="$tmp_archive_cmds"
13633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13634 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13635 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13642 if test "$ld_shlibs_F77" = yes; then
13643 runpath_var=LD_RUN_PATH
13644 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13645 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13646 # ancient GNU ld didn't support --whole-archive et. al.
13647 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13648 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13650 whole_archive_flag_spec_F77=
13654 # PORTME fill in a description of your system's linker (not GNU ld)
13657 allow_undefined_flag_F77=unsupported
13658 always_export_symbols_F77=yes
13659 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'
13660 # Note: this linker hardcodes the directories in LIBPATH if there
13661 # are no directories specified by -L.
13662 hardcode_minus_L_F77=yes
13663 if test "$GCC" = yes && test -z "$link_static_flag"; then
13664 # Neither direct hardcoding nor static linking is supported with a
13666 hardcode_direct_F77=unsupported
13671 if test "$host_cpu" = ia64; then
13672 # On IA64, the linker does run time linking by default, so we don't
13673 # have to do anything special.
13674 aix_use_runtimelinking=no
13675 exp_sym_flag='-Bexport'
13678 # If we're using GNU nm, then we don't want the "-C" option.
13679 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13680 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13681 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'
13683 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'
13685 aix_use_runtimelinking=no
13687 # Test if we are trying to use run time linking or normal
13688 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13689 # need to do runtime linking.
13690 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13691 for ld_flag in $LDFLAGS; do
13692 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13693 aix_use_runtimelinking=yes
13699 exp_sym_flag='-bexport'
13700 no_entry_flag='-bnoentry'
13703 # When large executables or shared objects are built, AIX ld can
13704 # have problems creating the table of contents. If linking a library
13705 # or program results in "error TOC overflow" add -mminimal-toc to
13706 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13707 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13709 archive_cmds_F77=''
13710 hardcode_direct_F77=yes
13711 hardcode_libdir_separator_F77=':'
13712 link_all_deplibs_F77=yes
13714 if test "$GCC" = yes; then
13715 case $host_os in aix4.012|aix4.012.*)
13716 # We only want to do this on AIX 4.2 and lower, the check
13717 # below for broken collect2 doesn't work under 4.3+
13718 collect2name=`${CC} -print-prog-name=collect2`
13719 if test -f "$collect2name" && \
13720 strings "$collect2name" | grep resolve_lib_name >/dev/null
13722 # We have reworked collect2
13723 hardcode_direct_F77=yes
13725 # We have old collect2
13726 hardcode_direct_F77=unsupported
13727 # It fails to find uninstalled libraries when the uninstalled
13728 # path is not listed in the libpath. Setting hardcode_minus_L
13729 # to unsupported forces relinking
13730 hardcode_minus_L_F77=yes
13731 hardcode_libdir_flag_spec_F77='-L$libdir'
13732 hardcode_libdir_separator_F77=
13735 shared_flag='-shared'
13738 if test "$host_cpu" = ia64; then
13739 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13740 # chokes on -Wl,-G. The following line is correct:
13743 if test "$aix_use_runtimelinking" = yes; then
13744 shared_flag='${wl}-G'
13746 shared_flag='${wl}-bM:SRE'
13751 # It seems that -bexpall does not export symbols beginning with
13752 # underscore (_), so it is better to generate a list of symbols to export.
13753 always_export_symbols_F77=yes
13754 if test "$aix_use_runtimelinking" = yes; then
13755 # Warning - without using the other runtime loading flags (-brtl),
13756 # -berok will link without error, but may produce a broken library.
13757 allow_undefined_flag_F77='-berok'
13758 # Determine the default libpath from the value encoded in an empty executable.
13759 cat >conftest.$ac_ext <<_ACEOF
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13766 (eval $ac_link) 2>conftest.er1
13768 grep -v '^ *+' conftest.er1 >conftest.err
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest$ac_exeext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13786 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13788 # Check for a 64-bit object if we didn't find anything.
13789 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; }
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13796 rm -f conftest.err conftest.$ac_objext \
13797 conftest$ac_exeext conftest.$ac_ext
13798 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13800 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13801 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"
13803 if test "$host_cpu" = ia64; then
13804 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13805 allow_undefined_flag_F77="-z nodefs"
13806 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"
13808 # Determine the default libpath from the value encoded in an empty executable.
13809 cat >conftest.$ac_ext <<_ACEOF
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest$ac_exeext'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13836 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13838 # Check for a 64-bit object if we didn't find anything.
13839 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; }
13842 echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13846 rm -f conftest.err conftest.$ac_objext \
13847 conftest$ac_exeext conftest.$ac_ext
13848 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13850 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13851 # Warning - without using the other run time loading flags,
13852 # -berok will link without error, but may produce a broken library.
13853 no_undefined_flag_F77=' ${wl}-bernotok'
13854 allow_undefined_flag_F77=' ${wl}-berok'
13855 # -bexpall does not export symbols beginning with underscore (_)
13856 always_export_symbols_F77=yes
13857 # Exported symbols can be pulled into shared objects from archives
13858 whole_archive_flag_spec_F77=' '
13859 archive_cmds_need_lc_F77=yes
13860 # This is similar to how AIX traditionally builds it's shared libraries.
13861 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'
13867 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)'
13868 hardcode_libdir_flag_spec_F77='-L$libdir'
13869 hardcode_minus_L_F77=yes
13870 # see comment about different semantics on the GNU ld section
13875 export_dynamic_flag_spec_F77=-rdynamic
13878 cygwin* | mingw* | pw32*)
13879 # When not using gcc, we currently assume that we are using
13880 # Microsoft Visual C++.
13881 # hardcode_libdir_flag_spec is actually meaningless, as there is
13882 # no search path for DLLs.
13883 hardcode_libdir_flag_spec_F77=' '
13884 allow_undefined_flag_F77=unsupported
13885 # Tell ltmain to make .lib files, not .a files.
13887 # Tell ltmain to make .dll files, not .so files.
13889 # FIXME: Setting linknames here is a bad hack.
13890 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13891 # The linker will automatically build a .lib file if we build a DLL.
13892 old_archive_From_new_cmds_F77='true'
13893 # FIXME: Should let the user specify the lib program.
13894 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13895 fix_srcfile_path='`cygpath -w "$srcfile"`'
13896 enable_shared_with_static_runtimes_F77=yes
13899 darwin* | rhapsody*)
13900 if test "$GXX" = yes ; then
13901 archive_cmds_need_lc_F77=no
13903 rhapsody* | darwin1.[012])
13904 allow_undefined_flag_F77='-undefined suppress'
13907 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13908 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13910 case ${MACOSX_DEPLOYMENT_TARGET} in
13912 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13915 allow_undefined_flag_F77='-undefined dynamic_lookup'
13921 lt_int_apple_cc_single_mod=no
13922 output_verbose_link_cmd='echo'
13923 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13924 lt_int_apple_cc_single_mod=yes
13926 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13927 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13929 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'
13931 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13932 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13933 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13934 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}'
13936 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}'
13938 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}'
13939 hardcode_direct_F77=no
13940 hardcode_automatic_F77=yes
13941 hardcode_shlibpath_var_F77=unsupported
13942 whole_archive_flag_spec_F77='-all_load $convenience'
13943 link_all_deplibs_F77=yes
13950 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13951 hardcode_libdir_flag_spec_F77='-L$libdir'
13952 hardcode_shlibpath_var_F77=no
13959 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13960 # support. Future versions do this automatically, but an explicit c++rt0.o
13961 # does not break anything, and helps significantly (at the cost of a little
13964 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13965 hardcode_libdir_flag_spec_F77='-R$libdir'
13966 hardcode_direct_F77=yes
13967 hardcode_shlibpath_var_F77=no
13970 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13972 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13973 hardcode_direct_F77=yes
13974 hardcode_minus_L_F77=yes
13975 hardcode_shlibpath_var_F77=no
13978 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13979 freebsd* | kfreebsd*-gnu)
13980 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13981 hardcode_libdir_flag_spec_F77='-R$libdir'
13982 hardcode_direct_F77=yes
13983 hardcode_shlibpath_var_F77=no
13987 if test "$GCC" = yes; then
13988 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'
13990 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'
13992 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13993 hardcode_libdir_separator_F77=:
13994 hardcode_direct_F77=yes
13996 # hardcode_minus_L: Not really in the search PATH,
13997 # but as the default location of the library.
13998 hardcode_minus_L_F77=yes
13999 export_dynamic_flag_spec_F77='${wl}-E'
14003 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14004 case "$host_cpu" in
14006 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14009 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14013 case "$host_cpu" in
14015 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14018 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14022 if test "$with_gnu_ld" = no; then
14023 case "$host_cpu" in
14025 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14026 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14027 hardcode_libdir_separator_F77=:
14028 hardcode_direct_F77=no
14029 hardcode_shlibpath_var_F77=no
14032 hardcode_libdir_flag_spec_F77='-L$libdir'
14033 hardcode_direct_F77=no
14034 hardcode_shlibpath_var_F77=no
14036 # hardcode_minus_L: Not really in the search PATH,
14037 # but as the default location of the library.
14038 hardcode_minus_L_F77=yes
14041 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14042 hardcode_libdir_separator_F77=:
14043 hardcode_direct_F77=yes
14044 export_dynamic_flag_spec_F77='${wl}-E'
14046 # hardcode_minus_L: Not really in the search PATH,
14047 # but as the default location of the library.
14048 hardcode_minus_L_F77=yes
14054 irix5* | irix6* | nonstopux*)
14055 if test "$GCC" = yes; then
14056 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'
14058 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'
14059 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14061 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14062 hardcode_libdir_separator_F77=:
14063 link_all_deplibs_F77=yes
14066 netbsd* | knetbsd*-gnu)
14067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14068 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14070 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14072 hardcode_libdir_flag_spec_F77='-R$libdir'
14073 hardcode_direct_F77=yes
14074 hardcode_shlibpath_var_F77=no
14078 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14079 hardcode_direct_F77=yes
14080 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14081 hardcode_libdir_separator_F77=:
14082 hardcode_shlibpath_var_F77=no
14086 hardcode_direct_F77=yes
14087 hardcode_shlibpath_var_F77=no
14088 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14089 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14090 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14091 export_dynamic_flag_spec_F77='${wl}-E'
14094 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14095 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14096 hardcode_libdir_flag_spec_F77='-R$libdir'
14099 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14100 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14107 hardcode_libdir_flag_spec_F77='-L$libdir'
14108 hardcode_minus_L_F77=yes
14109 allow_undefined_flag_F77=unsupported
14110 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'
14111 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14115 if test "$GCC" = yes; then
14116 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14117 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'
14119 allow_undefined_flag_F77=' -expect_unresolved \*'
14120 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'
14122 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14123 hardcode_libdir_separator_F77=:
14126 osf4* | osf5*) # as osf3* with the addition of -msym flag
14127 if test "$GCC" = yes; then
14128 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14129 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'
14130 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14132 allow_undefined_flag_F77=' -expect_unresolved \*'
14133 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'
14134 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~
14135 $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'
14137 # Both c and cxx compiler support -rpath directly
14138 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14140 hardcode_libdir_separator_F77=:
14144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145 hardcode_shlibpath_var_F77=no
14146 export_dynamic_flag_spec_F77='${wl}-Bexport'
14147 runpath_var=LD_RUN_PATH
14148 hardcode_runpath_var=yes
14152 no_undefined_flag_F77=' -z text'
14153 if test "$GCC" = yes; then
14154 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14155 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14156 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14158 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14160 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14162 hardcode_libdir_flag_spec_F77='-R$libdir'
14163 hardcode_shlibpath_var_F77=no
14165 solaris2.[0-5] | solaris2.[0-5].*) ;;
14166 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14167 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14169 link_all_deplibs_F77=yes
14173 if test "x$host_vendor" = xsequent; then
14174 # Use $CC to link under sequent, because it throws in some extra .o
14175 # files that make .init and .fini sections work.
14176 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14178 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14180 hardcode_libdir_flag_spec_F77='-L$libdir'
14181 hardcode_direct_F77=yes
14182 hardcode_minus_L_F77=yes
14183 hardcode_shlibpath_var_F77=no
14187 case $host_vendor in
14189 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14190 hardcode_direct_F77=yes # is this really true???
14193 ## LD is ld it makes a PLAMLIB
14194 ## CC just makes a GrossModule.
14195 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14196 reload_cmds_F77='$CC -r -o $output$reload_objs'
14197 hardcode_direct_F77=no
14200 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14201 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14204 runpath_var='LD_RUN_PATH'
14205 hardcode_shlibpath_var_F77=no
14209 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14210 hardcode_shlibpath_var_F77=no
14211 export_dynamic_flag_spec_F77='-Bexport'
14215 if test -d /usr/nec; then
14216 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14217 hardcode_shlibpath_var_F77=no
14218 runpath_var=LD_RUN_PATH
14219 hardcode_runpath_var=yes
14225 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14226 hardcode_direct_F77=yes
14227 hardcode_minus_L_F77=no
14228 hardcode_shlibpath_var_F77=no
14229 hardcode_runpath_var=yes
14230 runpath_var=LD_RUN_PATH
14233 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14234 no_undefined_flag_F77='${wl}-z ${wl}text'
14235 if test "$GCC" = yes; then
14236 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14238 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14240 runpath_var='LD_RUN_PATH'
14241 hardcode_shlibpath_var_F77=no
14245 no_undefined_flag_F77=' -z text'
14246 # $CC -shared without GNU ld will not create a library from C++
14247 # object files and a static libstdc++, better avoid it by now
14248 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14249 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14250 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14251 hardcode_libdir_flag_spec_F77=
14252 hardcode_shlibpath_var_F77=no
14253 runpath_var='LD_RUN_PATH'
14257 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14258 hardcode_libdir_flag_spec_F77='-L$libdir'
14259 hardcode_shlibpath_var_F77=no
14268 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14269 echo "${ECHO_T}$ld_shlibs_F77" >&6
14270 test "$ld_shlibs_F77" = no && can_build_shared=no
14272 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14273 if test "$GCC" = yes; then
14274 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14278 # Do we need to explicitly link libc?
14280 case "x$archive_cmds_need_lc_F77" in
14282 # Assume -lc should be added
14283 archive_cmds_need_lc_F77=yes
14285 if test "$enable_shared" = yes && test "$GCC" = yes; then
14286 case $archive_cmds_F77 in
14288 # FIXME: we may have to deal with multi-command sequences.
14291 # Test whether the compiler implicitly links with -lc since on some
14292 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14293 # to ld, don't add -lc before -lgcc.
14294 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14295 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14297 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300 (eval $ac_compile) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } 2>conftest.err; then
14306 libobjs=conftest.$ac_objext
14308 wl=$lt_prog_compiler_wl_F77
14314 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14315 allow_undefined_flag_F77=
14316 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14317 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }
14322 archive_cmds_need_lc_F77=no
14324 archive_cmds_need_lc_F77=yes
14326 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14328 cat conftest.err 1>&5
14331 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14332 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14339 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14340 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14341 library_names_spec=
14342 libname_spec='lib$name'
14346 postuninstall_cmds=
14350 shlibpath_overrides_runpath=unknown
14352 dynamic_linker="$host_os ld.so"
14353 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14354 if test "$GCC" = yes; then
14355 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14356 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14357 # if the path contains ";" then we assume it to be the separator
14358 # otherwise default to the standard path separator (i.e. ":") - it is
14359 # assumed that no part of a normal pathname contains ";" but that should
14360 # okay in the real world where ";" in dirpaths is itself problematic.
14361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14363 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14366 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14368 need_lib_prefix=unknown
14369 hardcode_into_libs=no
14371 # when you set need_version to no, make sure it does not cause -set_version
14372 # flags to be left without arguments
14373 need_version=unknown
14378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14379 shlibpath_var=LIBPATH
14381 # AIX 3 has no versioning support, so we append a major version to the name.
14382 soname_spec='${libname}${release}${shared_ext}$major'
14389 hardcode_into_libs=yes
14390 if test "$host_cpu" = ia64; then
14391 # AIX 5 supports IA64
14392 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14393 shlibpath_var=LD_LIBRARY_PATH
14395 # With GCC up to 2.95.x, collect2 would create an import file
14396 # for dependence libraries. The import file would start with
14397 # the line `#! .'. This would cause the generated library to
14398 # depend on `.', always an invalid library. This was fixed in
14399 # development snapshots of GCC prior to 3.0.
14401 aix4 | aix4.[01] | aix4.[01].*)
14402 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14404 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14407 can_build_shared=no
14411 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14412 # soname into executable. Probably we can add versioning support to
14413 # collect2, so additional links can be useful in future.
14414 if test "$aix_use_runtimelinking" = yes; then
14415 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14416 # instead of lib<name>.a to let people know that these are not
14417 # typical AIX shared libraries.
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420 # We preserve .a as extension for shared libraries through AIX4.2
14421 # and later when we are not doing run time linking.
14422 library_names_spec='${libname}${release}.a $libname.a'
14423 soname_spec='${libname}${release}${shared_ext}$major'
14425 shlibpath_var=LIBPATH
14430 library_names_spec='$libname.ixlibrary $libname.a'
14431 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14432 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'
14436 library_names_spec='${libname}${shared_ext}'
14437 dynamic_linker="$host_os ld.so"
14438 shlibpath_var=LIBRARY_PATH
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445 soname_spec='${libname}${release}${shared_ext}$major'
14446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14447 shlibpath_var=LD_LIBRARY_PATH
14448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14450 # the default ld.so.conf also contains /usr/contrib/lib and
14451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14452 # libtool to hard-code these into programs
14455 cygwin* | mingw* | pw32*)
14456 version_type=windows
14461 case $GCC,$host_os in
14462 yes,cygwin* | yes,mingw* | yes,pw32*)
14463 library_names_spec='$libname.dll.a'
14464 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14465 postinstall_cmds='base_file=`basename \${file}`~
14466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14467 dldir=$destdir/`dirname \$dlpath`~
14468 test -d \$dldir || mkdir -p \$dldir~
14469 $install_prog $dir/$dlname \$dldir/$dlname'
14470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14471 dlpath=$dir/\$dldll~
14473 shlibpath_overrides_runpath=yes
14477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14478 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14479 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14482 # MinGW DLLs use traditional 'lib' prefix
14483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14484 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14485 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14486 # It is most probably a Windows format PATH printed by
14487 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14488 # path with ; separators, and with drive letters. We can handle the
14489 # drive letters (cygwin fileutils understands them), so leave them,
14490 # especially as we might pass files found there to a mingw objdump,
14491 # which wouldn't understand a cygwinified path. Ahh.
14492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14494 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14498 # pw32 DLLs use 'pw' prefix rather than 'lib'
14499 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14505 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14508 dynamic_linker='Win32 ld.exe'
14509 # FIXME: first we should search . and the directory the executable is in
14513 darwin* | rhapsody*)
14514 dynamic_linker="$host_os dyld"
14515 version_type=darwin
14518 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14519 soname_spec='${libname}${release}${major}$shared_ext'
14520 shlibpath_overrides_runpath=yes
14521 shlibpath_var=DYLD_LIBRARY_PATH
14522 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14523 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14524 if test "$GCC" = yes; then
14525 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"`
14527 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14529 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14537 soname_spec='${libname}${release}${shared_ext}$major'
14538 shlibpath_var=LD_LIBRARY_PATH
14549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14550 soname_spec='${libname}${release}${shared_ext}$major'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 shlibpath_overrides_runpath=no
14553 hardcode_into_libs=yes
14554 dynamic_linker='GNU ld.so'
14558 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14559 version_type=freebsd-$objformat
14560 case $version_type in
14562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14571 shlibpath_var=LD_LIBRARY_PATH
14574 shlibpath_overrides_runpath=yes
14576 freebsd3.01* | freebsdelf3.01*)
14577 shlibpath_overrides_runpath=yes
14578 hardcode_into_libs=yes
14581 shlibpath_overrides_runpath=no
14582 hardcode_into_libs=yes
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14592 soname_spec='${libname}${release}${shared_ext}$major'
14593 shlibpath_var=LD_LIBRARY_PATH
14594 hardcode_into_libs=yes
14597 hpux9* | hpux10* | hpux11*)
14598 # Give a soname corresponding to the major version so that dld.sl refuses to
14599 # link against other versions.
14603 case "$host_cpu" in
14606 hardcode_into_libs=yes
14607 dynamic_linker="$host_os dld.so"
14608 shlibpath_var=LD_LIBRARY_PATH
14609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 if test "X$HPUX_IA64_MODE" = X32; then
14613 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14621 hardcode_into_libs=yes
14622 dynamic_linker="$host_os dld.sl"
14623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 soname_spec='${libname}${release}${shared_ext}$major'
14627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14632 dynamic_linker="$host_os dld.sl"
14633 shlibpath_var=SHLIB_PATH
14634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14639 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14640 postinstall_cmds='chmod 555 $lib'
14643 irix5* | irix6* | nonstopux*)
14645 nonstopux*) version_type=nonstopux ;;
14647 if test "$lt_cv_prog_gnu_ld" = yes; then
14655 soname_spec='${libname}${release}${shared_ext}$major'
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14658 irix5* | nonstopux*)
14659 libsuff= shlibsuff=
14662 case $LD in # libtool.m4 will add one of these switches to LD
14663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14664 libsuff= shlibsuff= libmagic=32-bit;;
14665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14666 libsuff=32 shlibsuff=N32 libmagic=N32;;
14667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14669 *) libsuff= shlibsuff= libmagic=never-match;;
14673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14674 shlibpath_overrides_runpath=no
14675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14677 hardcode_into_libs=yes
14680 # No shared lib support for Linux oldld, aout, or coff.
14681 linux*oldld* | linux*aout* | linux*coff*)
14685 # This must be Linux ELF.
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 shlibpath_overrides_runpath=no
14695 # This implies no fast_install, which is unacceptable.
14696 # Some rework will be needed to allow for fast_install
14697 # before this can be enabled.
14698 hardcode_into_libs=yes
14700 # Append ld.so.conf contents to the search path
14701 if test -f /etc/ld.so.conf; then
14702 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14703 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14706 # We used to test for /lib/ld.so.1 and disable shared libraries on
14707 # powerpc, because MkLinux only supported shared libraries with the
14708 # GNU dynamic linker. Since this was broken with cross compilers,
14709 # most powerpc-linux boxes support dynamic linking these days and
14710 # people can always --disable-shared, the test was removed, and we
14711 # assume the GNU/Linux dynamic linker is in use.
14712 dynamic_linker='GNU/Linux ld.so'
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 shlibpath_overrides_runpath=no
14723 hardcode_into_libs=yes
14724 dynamic_linker='GNU ld.so'
14731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14734 dynamic_linker='NetBSD (a.out) ld.so'
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 dynamic_linker='NetBSD ld.elf_so'
14740 shlibpath_var=LD_LIBRARY_PATH
14741 shlibpath_overrides_runpath=yes
14742 hardcode_into_libs=yes
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14748 shlibpath_var=LD_LIBRARY_PATH
14749 shlibpath_overrides_runpath=yes
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 soname_spec='${libname}${release}${shared_ext}$major'
14758 shlibpath_var=LD_LIBRARY_PATH
14759 shlibpath_overrides_runpath=yes
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14768 shlibpath_var=LD_LIBRARY_PATH
14769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14771 openbsd2.[89] | openbsd2.[89].*)
14772 shlibpath_overrides_runpath=no
14775 shlibpath_overrides_runpath=yes
14779 shlibpath_overrides_runpath=yes
14784 libname_spec='$name'
14787 library_names_spec='$libname${shared_ext} $libname.a'
14788 dynamic_linker='OS/2 ld.exe'
14789 shlibpath_var=LIBPATH
14792 osf3* | osf4* | osf5*)
14796 soname_spec='${libname}${release}${shared_ext}$major'
14797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14800 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14805 soname_spec='${libname}${release}${shared_ext}$major'
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807 shlibpath_var=LD_LIBRARY_PATH
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815 soname_spec='${libname}${release}${shared_ext}$major'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath=yes
14818 hardcode_into_libs=yes
14819 # ldd complains unless libraries are executable
14820 postinstall_cmds='chmod +x $lib'
14825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14826 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14827 shlibpath_var=LD_LIBRARY_PATH
14828 shlibpath_overrides_runpath=yes
14829 if test "$with_gnu_ld" = yes; then
14835 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838 soname_spec='${libname}${release}${shared_ext}$major'
14839 shlibpath_var=LD_LIBRARY_PATH
14840 case $host_vendor in
14842 shlibpath_overrides_runpath=no
14844 export_dynamic_flag_spec='${wl}-Blargedynsym'
14845 runpath_var=LD_RUN_PATH
14853 shlibpath_overrides_runpath=no
14854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14860 if test -d /usr/nec ;then
14862 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14863 soname_spec='$libname${shared_ext}.$major'
14864 shlibpath_var=LD_LIBRARY_PATH
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14871 soname_spec='${libname}${release}${shared_ext}$major'
14872 shlibpath_var=LD_LIBRARY_PATH
14879 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14880 echo "${ECHO_T}$dynamic_linker" >&6
14881 test "$dynamic_linker" = no && can_build_shared=no
14883 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14884 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14885 hardcode_action_F77=
14886 if test -n "$hardcode_libdir_flag_spec_F77" || \
14887 test -n "$runpath_var F77" || \
14888 test "X$hardcode_automatic_F77"="Xyes" ; then
14890 # We can hardcode non-existant directories.
14891 if test "$hardcode_direct_F77" != no &&
14892 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14893 # have to relink, otherwise we might link with an installed library
14894 # when we should be linking with a yet-to-be-installed one
14895 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14896 test "$hardcode_minus_L_F77" != no; then
14897 # Linking always hardcodes the temporary library directory.
14898 hardcode_action_F77=relink
14900 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14901 hardcode_action_F77=immediate
14904 # We cannot hardcode anything, or else we can only hardcode existing
14906 hardcode_action_F77=unsupported
14908 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14909 echo "${ECHO_T}$hardcode_action_F77" >&6
14911 if test "$hardcode_action_F77" = relink; then
14912 # Fast installation is not supported
14913 enable_fast_install=no
14914 elif test "$shlibpath_overrides_runpath" = yes ||
14915 test "$enable_shared" = no; then
14916 # Fast installation is not necessary
14917 enable_fast_install=needless
14922 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14923 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14924 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14925 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14926 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14927 echo "$as_me:$LINENO: result: yes" >&5
14928 echo "${ECHO_T}yes" >&6
14930 # FIXME - insert some real tests, host_os isn't really good enough
14933 if test -n "$STRIP" ; then
14934 striplib="$STRIP -x"
14935 echo "$as_me:$LINENO: result: yes" >&5
14936 echo "${ECHO_T}yes" >&6
14938 echo "$as_me:$LINENO: result: no" >&5
14939 echo "${ECHO_T}no" >&6
14943 echo "$as_me:$LINENO: result: no" >&5
14944 echo "${ECHO_T}no" >&6
14951 # The else clause should only fire when bootstrapping the
14952 # libtool distribution, otherwise you forgot to ship ltmain.sh
14953 # with your package, and you will get complaints that there are
14954 # no rules to generate ltmain.sh.
14955 if test -f "$ltmain"; then
14956 # See if we are running on zsh, and set the options which allow our commands through
14957 # without removal of \ escapes.
14958 if test -n "${ZSH_VERSION+set}" ; then
14959 setopt NO_GLOB_SUBST
14961 # Now quote all the things that may contain metacharacters while being
14962 # careful not to overquote the AC_SUBSTed values. We take copies of the
14963 # variables and quote the copies for generation of the libtool script.
14964 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14966 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14967 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14968 deplibs_check_method reload_flag reload_cmds need_locks \
14969 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14970 lt_cv_sys_global_symbol_to_c_name_address \
14971 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14972 old_postinstall_cmds old_postuninstall_cmds \
14976 lt_prog_compiler_wl_F77 \
14977 lt_prog_compiler_pic_F77 \
14978 lt_prog_compiler_static_F77 \
14979 lt_prog_compiler_no_builtin_flag_F77 \
14980 export_dynamic_flag_spec_F77 \
14981 thread_safe_flag_spec_F77 \
14982 whole_archive_flag_spec_F77 \
14983 enable_shared_with_static_runtimes_F77 \
14984 old_archive_cmds_F77 \
14985 old_archive_from_new_cmds_F77 \
14986 predep_objects_F77 \
14987 postdep_objects_F77 \
14990 compiler_lib_search_path_F77 \
14992 archive_expsym_cmds_F77 \
14993 postinstall_cmds_F77 \
14994 postuninstall_cmds_F77 \
14995 old_archive_from_expsyms_cmds_F77 \
14996 allow_undefined_flag_F77 \
14997 no_undefined_flag_F77 \
14998 export_symbols_cmds_F77 \
14999 hardcode_libdir_flag_spec_F77 \
15000 hardcode_libdir_flag_spec_ld_F77 \
15001 hardcode_libdir_separator_F77 \
15002 hardcode_automatic_F77 \
15004 module_expsym_cmds_F77 \
15005 lt_cv_prog_compiler_c_o_F77 \
15006 exclude_expsyms_F77 \
15007 include_expsyms_F77; do
15010 old_archive_cmds_F77 | \
15011 old_archive_from_new_cmds_F77 | \
15012 archive_cmds_F77 | \
15013 archive_expsym_cmds_F77 | \
15014 module_cmds_F77 | \
15015 module_expsym_cmds_F77 | \
15016 old_archive_from_expsyms_cmds_F77 | \
15017 export_symbols_cmds_F77 | \
15018 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15019 postinstall_cmds | postuninstall_cmds | \
15020 old_postinstall_cmds | old_postuninstall_cmds | \
15021 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15022 # Double-quote double-evaled strings.
15023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15026 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15032 *'\$0 --fallback-echo"')
15033 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15039 cat <<__EOF__ >> "$cfgfile"
15040 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15042 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15044 # Shell to use when invoking shell scripts.
15047 # Whether or not to build shared libraries.
15048 build_libtool_libs=$enable_shared
15050 # Whether or not to build static libraries.
15051 build_old_libs=$enable_static
15053 # Whether or not to add -lc for building shared libraries.
15054 build_libtool_need_lc=$archive_cmds_need_lc_F77
15056 # Whether or not to disallow shared libs when runtime libs are static
15057 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15059 # Whether or not to optimize for fast installation.
15060 fast_install=$enable_fast_install
15063 host_alias=$host_alias
15066 # An echo program that does not interpret backslashes.
15071 AR_FLAGS=$lt_AR_FLAGS
15076 # A language-specific compiler.
15077 CC=$lt_compiler_F77
15079 # Is the compiler the GNU C compiler?
15085 # The linker used to build libraries.
15088 # Whether we need hard or soft links.
15091 # A BSD-compatible nm program.
15094 # A symbol stripping program
15097 # Used to examine libraries when file_magic_cmd begins "file"
15098 MAGIC_CMD=$MAGIC_CMD
15100 # Used on cygwin: DLL creation program.
15103 # Used on cygwin: object dumper.
15106 # Used on cygwin: assembler.
15109 # The name of the directory that contains temporary libtool files.
15112 # How to create reloadable object files.
15113 reload_flag=$lt_reload_flag
15114 reload_cmds=$lt_reload_cmds
15116 # How to pass a linker flag through the compiler.
15117 wl=$lt_lt_prog_compiler_wl_F77
15119 # Object file suffix (normally "o").
15120 objext="$ac_objext"
15122 # Old archive suffix (normally "a").
15125 # Shared library suffix (normally ".so").
15128 # Executable file suffix (normally "").
15131 # Additional compiler flags for building library objects.
15132 pic_flag=$lt_lt_prog_compiler_pic_F77
15135 # What is the maximum length of a command?
15136 max_cmd_len=$lt_cv_sys_max_cmd_len
15138 # Does compiler simultaneously support -c and -o options?
15139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15141 # Must we lock files when doing compilation ?
15142 need_locks=$lt_need_locks
15144 # Do we need the lib prefix for modules?
15145 need_lib_prefix=$need_lib_prefix
15147 # Do we need a version for libraries?
15148 need_version=$need_version
15150 # Whether dlopen is supported.
15151 dlopen_support=$enable_dlopen
15153 # Whether dlopen of programs is supported.
15154 dlopen_self=$enable_dlopen_self
15156 # Whether dlopen of statically linked programs is supported.
15157 dlopen_self_static=$enable_dlopen_self_static
15159 # Compiler flag to prevent dynamic linking.
15160 link_static_flag=$lt_lt_prog_compiler_static_F77
15162 # Compiler flag to turn off builtin functions.
15163 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15165 # Compiler flag to allow reflexive dlopens.
15166 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15168 # Compiler flag to generate shared objects directly from archives.
15169 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15171 # Compiler flag to generate thread-safe objects.
15172 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15174 # Library versioning type.
15175 version_type=$version_type
15177 # Format of library name prefix.
15178 libname_spec=$lt_libname_spec
15180 # List of archive names. First name is the real one, the rest are links.
15181 # The last name is the one that the linker finds with -lNAME.
15182 library_names_spec=$lt_library_names_spec
15184 # The coded name of the library, if different from the real name.
15185 soname_spec=$lt_soname_spec
15187 # Commands used to build and install an old-style archive.
15189 old_archive_cmds=$lt_old_archive_cmds_F77
15190 old_postinstall_cmds=$lt_old_postinstall_cmds
15191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15193 # Create an old-style archive from a shared archive.
15194 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15196 # Create a temporary old-style archive to link instead of a shared archive.
15197 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15199 # Commands used to build and install a shared archive.
15200 archive_cmds=$lt_archive_cmds_F77
15201 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15202 postinstall_cmds=$lt_postinstall_cmds
15203 postuninstall_cmds=$lt_postuninstall_cmds
15205 # Commands used to build a loadable module (assumed same as above if empty)
15206 module_cmds=$lt_module_cmds_F77
15207 module_expsym_cmds=$lt_module_expsym_cmds_F77
15209 # Commands to strip libraries.
15210 old_striplib=$lt_old_striplib
15211 striplib=$lt_striplib
15213 # Dependencies to place before the objects being linked to create a
15215 predep_objects=$lt_predep_objects_F77
15217 # Dependencies to place after the objects being linked to create a
15219 postdep_objects=$lt_postdep_objects_F77
15221 # Dependencies to place before the objects being linked to create a
15223 predeps=$lt_predeps_F77
15225 # Dependencies to place after the objects being linked to create a
15227 postdeps=$lt_postdeps_F77
15229 # The library search path used internally by the compiler when linking
15230 # a shared library.
15231 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15233 # Method to check whether dependent libraries are shared objects.
15234 deplibs_check_method=$lt_deplibs_check_method
15236 # Command to use when deplibs_check_method == file_magic.
15237 file_magic_cmd=$lt_file_magic_cmd
15239 # Flag that allows shared libraries with undefined symbols to be built.
15240 allow_undefined_flag=$lt_allow_undefined_flag_F77
15242 # Flag that forces no undefined symbols.
15243 no_undefined_flag=$lt_no_undefined_flag_F77
15245 # Commands used to finish a libtool library installation in a directory.
15246 finish_cmds=$lt_finish_cmds
15248 # Same as above, but a single script fragment to be evaled but not shown.
15249 finish_eval=$lt_finish_eval
15251 # Take the output of nm and produce a listing of raw symbols and C names.
15252 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15254 # Transform the output of nm in a proper C declaration
15255 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15257 # Transform the output of nm in a C name address pair
15258 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15260 # This is the shared library runtime path variable.
15261 runpath_var=$runpath_var
15263 # This is the shared library path variable.
15264 shlibpath_var=$shlibpath_var
15266 # Is shlibpath searched before the hard-coded library search path?
15267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15269 # How to hardcode a shared library path into an executable.
15270 hardcode_action=$hardcode_action_F77
15272 # Whether we should hardcode library paths into libraries.
15273 hardcode_into_libs=$hardcode_into_libs
15275 # Flag to hardcode \$libdir into a binary during linking.
15276 # This must work even if \$libdir does not exist.
15277 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15279 # If ld is used when linking, flag to hardcode \$libdir into
15280 # a binary during linking. This must work even if \$libdir does
15282 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15284 # Whether we need a single -rpath flag with a separated argument.
15285 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15287 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15288 # resulting binary.
15289 hardcode_direct=$hardcode_direct_F77
15291 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15292 # resulting binary.
15293 hardcode_minus_L=$hardcode_minus_L_F77
15295 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15296 # the resulting binary.
15297 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15299 # Set to yes if building a shared library automatically hardcodes DIR into the library
15300 # and all subsequent libraries and executables linked against it.
15301 hardcode_automatic=$hardcode_automatic_F77
15303 # Variables whose values should be saved in libtool wrapper scripts and
15304 # restored at relink time.
15305 variables_saved_for_relink="$variables_saved_for_relink"
15307 # Whether libtool must link a program against all its dependency libraries.
15308 link_all_deplibs=$link_all_deplibs_F77
15310 # Compile-time system search path for libraries
15311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15313 # Run-time system search path for libraries
15314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15316 # Fix the shell variable \$srcfile for the compiler.
15317 fix_srcfile_path="$fix_srcfile_path_F77"
15319 # Set to yes if exported symbols are required.
15320 always_export_symbols=$always_export_symbols_F77
15322 # The commands to list exported symbols.
15323 export_symbols_cmds=$lt_export_symbols_cmds_F77
15325 # The commands to extract the exported symbol list from a shared archive.
15326 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15328 # Symbols that should not be listed in the preloaded symbols.
15329 exclude_expsyms=$lt_exclude_expsyms_F77
15331 # Symbols that must always be exported.
15332 include_expsyms=$lt_include_expsyms_F77
15334 # ### END LIBTOOL TAG CONFIG: $tagname
15340 # If there is no Makefile yet, we rely on a make rule to execute
15341 # `config.status --recheck' to rerun these tests and create the
15342 # libtool script then.
15343 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15344 if test -f "$ltmain_in"; then
15345 test -f Makefile && make "$ltmain"
15351 ac_cpp='$CPP $CPPFLAGS'
15352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15364 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15368 # Source file extension for Java test sources.
15371 # Object file extension for compiled Java test sources.
15375 # Code to be used in simple compile tests
15376 lt_simple_compile_test_code="class foo {}\n"
15378 # Code to be used in simple link tests
15379 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15381 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15383 # If no C compiler was specified, use CC.
15386 # Allow CC to be a program name with arguments.
15390 # Allow CC to be a program name with arguments.
15396 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15397 archive_cmds_need_lc_GCJ=no
15400 lt_prog_compiler_no_builtin_flag_GCJ=
15402 if test "$GCC" = yes; then
15403 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15406 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15407 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15408 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 lt_cv_prog_compiler_rtti_exceptions=no
15412 ac_outfile=conftest.$ac_objext
15413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15414 lt_compiler_flag="-fno-rtti -fno-exceptions"
15415 # Insert the option either (1) after the last *FLAGS variable, or
15416 # (2) before a word containing "conftest.", or (3) at the end.
15417 # Note that $ac_compile itself does not contain backslashes and begins
15418 # with a dollar sign (not a hyphen), so the echo should work correctly.
15419 # The option is referenced via a variable to avoid confusing sed.
15420 lt_compile=`echo "$ac_compile" | $SED \
15421 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15423 -e 's:$: $lt_compiler_flag:'`
15424 (eval echo "\"\$as_me:15424: $lt_compile\"" >&5)
15425 (eval "$lt_compile" 2>conftest.err)
15427 cat conftest.err >&5
15428 echo "$as_me:15428: \$? = $ac_status" >&5
15429 if (exit $ac_status) && test -s "$ac_outfile"; then
15430 # The compiler can only warn and ignore the option if not recognized
15431 # So say no if there are warnings
15432 if test ! -s conftest.err; then
15433 lt_cv_prog_compiler_rtti_exceptions=yes
15439 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15440 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15442 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15443 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15450 lt_prog_compiler_wl_GCJ=
15451 lt_prog_compiler_pic_GCJ=
15452 lt_prog_compiler_static_GCJ=
15454 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15455 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15457 if test "$GCC" = yes; then
15458 lt_prog_compiler_wl_GCJ='-Wl,'
15459 lt_prog_compiler_static_GCJ='-static'
15463 # All AIX code is PIC.
15464 if test "$host_cpu" = ia64; then
15465 # AIX 5 now supports IA64 processor
15466 lt_prog_compiler_static_GCJ='-Bstatic'
15471 # FIXME: we need at least 68020 code to build shared libraries, but
15472 # adding the `-m68020' flag to GCC prevents building anything better,
15474 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15477 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15478 # PIC is the default for these OSes.
15481 mingw* | pw32* | os2*)
15482 # This hack is so that the source file can tell whether it is being
15483 # built for inclusion in a dll (and should export symbols for example).
15484 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15487 darwin* | rhapsody*)
15488 # PIC is the default on this platform
15489 # Common symbols not allowed in MH_DYLIB files
15490 lt_prog_compiler_pic_GCJ='-fno-common'
15494 # Just because we use GCC doesn't mean we suddenly get shared libraries
15495 # on systems that don't support them.
15496 lt_prog_compiler_can_build_shared_GCJ=no
15501 if test -d /usr/nec; then
15502 lt_prog_compiler_pic_GCJ=-Kconform_pic
15507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15508 # not for PA HP-UX.
15509 case "$host_cpu" in
15514 lt_prog_compiler_pic_GCJ='-fPIC'
15520 lt_prog_compiler_pic_GCJ='-fPIC'
15524 # PORTME Check for flag to pass linker flags through the system compiler.
15527 lt_prog_compiler_wl_GCJ='-Wl,'
15528 if test "$host_cpu" = ia64; then
15529 # AIX 5 now supports IA64 processor
15530 lt_prog_compiler_static_GCJ='-Bstatic'
15532 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15536 mingw* | pw32* | os2*)
15537 # This hack is so that the source file can tell whether it is being
15538 # built for inclusion in a dll (and should export symbols for example).
15539 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15542 hpux9* | hpux10* | hpux11*)
15543 lt_prog_compiler_wl_GCJ='-Wl,'
15544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15545 # not for PA HP-UX.
15546 case "$host_cpu" in
15551 lt_prog_compiler_pic_GCJ='+Z'
15554 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15555 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15558 irix5* | irix6* | nonstopux*)
15559 lt_prog_compiler_wl_GCJ='-Wl,'
15560 # PIC (with -KPIC) is the default.
15561 lt_prog_compiler_static_GCJ='-non_shared'
15565 lt_prog_compiler_pic_GCJ='-KPIC'
15566 lt_prog_compiler_static_GCJ='-Bstatic'
15572 lt_prog_compiler_wl_GCJ='-Wl,'
15573 lt_prog_compiler_pic_GCJ='-KPIC'
15574 lt_prog_compiler_static_GCJ='-static'
15577 lt_prog_compiler_wl_GCJ='-Wl,'
15578 # All Alpha code is PIC.
15579 lt_prog_compiler_static_GCJ='-non_shared'
15584 osf3* | osf4* | osf5*)
15585 lt_prog_compiler_wl_GCJ='-Wl,'
15586 # All OSF/1 code is PIC.
15587 lt_prog_compiler_static_GCJ='-non_shared'
15591 lt_prog_compiler_pic_GCJ='-Kpic'
15592 lt_prog_compiler_static_GCJ='-dn'
15596 lt_prog_compiler_wl_GCJ='-Wl,'
15597 lt_prog_compiler_pic_GCJ='-KPIC'
15598 lt_prog_compiler_static_GCJ='-Bstatic'
15602 lt_prog_compiler_wl_GCJ='-Qoption ld '
15603 lt_prog_compiler_pic_GCJ='-PIC'
15604 lt_prog_compiler_static_GCJ='-Bstatic'
15607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15608 lt_prog_compiler_wl_GCJ='-Wl,'
15609 lt_prog_compiler_pic_GCJ='-KPIC'
15610 lt_prog_compiler_static_GCJ='-Bstatic'
15614 if test -d /usr/nec ;then
15615 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15616 lt_prog_compiler_static_GCJ='-Bstatic'
15621 lt_prog_compiler_pic_GCJ='-pic'
15622 lt_prog_compiler_static_GCJ='-Bstatic'
15626 lt_prog_compiler_can_build_shared_GCJ=no
15631 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15632 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15635 # Check to make sure the PIC flag actually works.
15637 if test -n "$lt_prog_compiler_pic_GCJ"; then
15639 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15640 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15641 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 lt_prog_compiler_pic_works_GCJ=no
15645 ac_outfile=conftest.$ac_objext
15646 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15647 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15648 # Insert the option either (1) after the last *FLAGS variable, or
15649 # (2) before a word containing "conftest.", or (3) at the end.
15650 # Note that $ac_compile itself does not contain backslashes and begins
15651 # with a dollar sign (not a hyphen), so the echo should work correctly.
15652 # The option is referenced via a variable to avoid confusing sed.
15653 lt_compile=`echo "$ac_compile" | $SED \
15654 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15656 -e 's:$: $lt_compiler_flag:'`
15657 (eval echo "\"\$as_me:15657: $lt_compile\"" >&5)
15658 (eval "$lt_compile" 2>conftest.err)
15660 cat conftest.err >&5
15661 echo "$as_me:15661: \$? = $ac_status" >&5
15662 if (exit $ac_status) && test -s "$ac_outfile"; then
15663 # The compiler can only warn and ignore the option if not recognized
15664 # So say no if there are warnings
15665 if test ! -s conftest.err; then
15666 lt_prog_compiler_pic_works_GCJ=yes
15672 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15673 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15675 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15676 case $lt_prog_compiler_pic_GCJ in
15678 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15681 lt_prog_compiler_pic_GCJ=
15682 lt_prog_compiler_can_build_shared_GCJ=no
15687 # For platforms which do not support PIC, -DPIC is meaningless:
15689 lt_prog_compiler_pic_GCJ=
15692 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15696 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15697 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15698 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 lt_cv_prog_compiler_c_o_GCJ=no
15702 $rm -r conftest 2>/dev/null
15706 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15708 lt_compiler_flag="-o out/conftest2.$ac_objext"
15709 # Insert the option either (1) after the last *FLAGS variable, or
15710 # (2) before a word containing "conftest.", or (3) at the end.
15711 # Note that $ac_compile itself does not contain backslashes and begins
15712 # with a dollar sign (not a hyphen), so the echo should work correctly.
15713 lt_compile=`echo "$ac_compile" | $SED \
15714 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15716 -e 's:$: $lt_compiler_flag:'`
15717 (eval echo "\"\$as_me:15717: $lt_compile\"" >&5)
15718 (eval "$lt_compile" 2>out/conftest.err)
15720 cat out/conftest.err >&5
15721 echo "$as_me:15721: \$? = $ac_status" >&5
15722 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15724 # The compiler can only warn and ignore the option if not recognized
15725 # So say no if there are warnings
15726 if test ! -s out/conftest.err; then
15727 lt_cv_prog_compiler_c_o_GCJ=yes
15732 # SGI C++ compiler will create directory out/ii_files/ for
15733 # template instantiation
15734 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15735 $rm out/* && rmdir out
15741 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15742 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15745 hard_links="nottested"
15746 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15747 # do not overwrite the value of need_locks provided by the user
15748 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15749 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15754 ln conftest.a conftest.b 2>&5 || hard_links=no
15755 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15756 echo "$as_me:$LINENO: result: $hard_links" >&5
15757 echo "${ECHO_T}$hard_links" >&6
15758 if test "$hard_links" = no; then
15759 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15760 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15767 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15768 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15771 allow_undefined_flag_GCJ=
15772 enable_shared_with_static_runtimes_GCJ=no
15774 archive_expsym_cmds_GCJ=
15775 old_archive_From_new_cmds_GCJ=
15776 old_archive_from_expsyms_cmds_GCJ=
15777 export_dynamic_flag_spec_GCJ=
15778 whole_archive_flag_spec_GCJ=
15779 thread_safe_flag_spec_GCJ=
15780 hardcode_libdir_flag_spec_GCJ=
15781 hardcode_libdir_flag_spec_ld_GCJ=
15782 hardcode_libdir_separator_GCJ=
15783 hardcode_direct_GCJ=no
15784 hardcode_minus_L_GCJ=no
15785 hardcode_shlibpath_var_GCJ=unsupported
15786 link_all_deplibs_GCJ=unknown
15787 hardcode_automatic_GCJ=no
15789 module_expsym_cmds_GCJ=
15790 always_export_symbols_GCJ=no
15791 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15792 # include_expsyms should be a list of space-separated symbols to be *always*
15793 # included in the symbol list
15794 include_expsyms_GCJ=
15795 # exclude_expsyms can be an extended regexp of symbols to exclude
15796 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15797 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15798 # as well as any symbol that contains `d'.
15799 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15800 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15801 # platforms (ab)use it in PIC code, but their linkers get confused if
15802 # the symbol is explicitly referenced. Since portable code cannot
15803 # rely on this symbol name, it's probably fine to never include it in
15804 # preloaded symbol tables.
15805 extract_expsyms_cmds=
15808 cygwin* | mingw* | pw32*)
15809 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15810 # When not using gcc, we currently assume that we are using
15811 # Microsoft Visual C++.
15812 if test "$GCC" != yes; then
15822 if test "$with_gnu_ld" = yes; then
15823 # If archive_cmds runs LD, not CC, wlarc should be empty
15826 # See if GNU ld supports shared libraries.
15828 aix3* | aix4* | aix5*)
15829 # On AIX/PPC, the GNU linker is very broken
15830 if test "$host_cpu" != ia64; then
15834 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15835 *** to be unable to reliably create shared libraries on AIX.
15836 *** Therefore, libtool is disabling shared libraries support. If you
15837 *** really care for shared libraries, you may want to modify your PATH
15838 *** so that a non-GNU linker is found, and then restart.
15845 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)'
15846 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15847 hardcode_minus_L_GCJ=yes
15849 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15850 # that the semantics of dynamic libraries on AmigaOS, at least up
15851 # to version 4, is to share data among multiple programs linked
15852 # with the same dynamic library. Since this doesn't match the
15853 # behavior of shared libraries on other platforms, we can't use
15859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15860 allow_undefined_flag_GCJ=unsupported
15861 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15862 # support --undefined. This deserves some investigation. FIXME
15863 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15869 cygwin* | mingw* | pw32*)
15870 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15871 # as there is no search path for DLLs.
15872 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15873 allow_undefined_flag_GCJ=unsupported
15874 always_export_symbols_GCJ=no
15875 enable_shared_with_static_runtimes_GCJ=yes
15876 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15878 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15879 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15880 # If the export-symbols file already is a .def file (1st line
15881 # is EXPORTS), use it as is; otherwise, prepend...
15882 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15883 cp $export_symbols $output_objdir/$soname.def;
15885 echo EXPORTS > $output_objdir/$soname.def;
15886 cat $export_symbols >> $output_objdir/$soname.def;
15888 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15894 netbsd* | knetbsd*-gnu)
15895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15896 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15899 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15900 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15905 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15909 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15910 *** create shared libraries on Solaris systems. Therefore, libtool
15911 *** is disabling shared libraries support. We urge you to upgrade GNU
15912 *** binutils to release 2.9.1 or newer. Another option is to modify
15913 *** your PATH or compiler configuration so that the native linker is
15914 *** used, and then restart.
15917 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15918 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15919 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15926 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15928 hardcode_direct_GCJ=yes
15929 hardcode_shlibpath_var_GCJ=no
15933 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15934 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15935 archive_cmds_GCJ="$tmp_archive_cmds"
15936 supports_anon_versioning=no
15937 case `$LD -v 2>/dev/null` in
15938 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15939 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15940 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15941 *\ 2.11.*) ;; # other 2.11 versions
15942 *) supports_anon_versioning=yes ;;
15944 if test $supports_anon_versioning = yes; then
15945 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15947 $echo "local: *; };" >> $output_objdir/$libname.ver~
15948 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15950 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15958 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15959 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15960 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15967 if test "$ld_shlibs_GCJ" = yes; then
15968 runpath_var=LD_RUN_PATH
15969 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15970 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15971 # ancient GNU ld didn't support --whole-archive et. al.
15972 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15973 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15975 whole_archive_flag_spec_GCJ=
15979 # PORTME fill in a description of your system's linker (not GNU ld)
15982 allow_undefined_flag_GCJ=unsupported
15983 always_export_symbols_GCJ=yes
15984 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'
15985 # Note: this linker hardcodes the directories in LIBPATH if there
15986 # are no directories specified by -L.
15987 hardcode_minus_L_GCJ=yes
15988 if test "$GCC" = yes && test -z "$link_static_flag"; then
15989 # Neither direct hardcoding nor static linking is supported with a
15991 hardcode_direct_GCJ=unsupported
15996 if test "$host_cpu" = ia64; then
15997 # On IA64, the linker does run time linking by default, so we don't
15998 # have to do anything special.
15999 aix_use_runtimelinking=no
16000 exp_sym_flag='-Bexport'
16003 # If we're using GNU nm, then we don't want the "-C" option.
16004 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16005 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16006 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'
16008 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'
16010 aix_use_runtimelinking=no
16012 # Test if we are trying to use run time linking or normal
16013 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16014 # need to do runtime linking.
16015 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16016 for ld_flag in $LDFLAGS; do
16017 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16018 aix_use_runtimelinking=yes
16024 exp_sym_flag='-bexport'
16025 no_entry_flag='-bnoentry'
16028 # When large executables or shared objects are built, AIX ld can
16029 # have problems creating the table of contents. If linking a library
16030 # or program results in "error TOC overflow" add -mminimal-toc to
16031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16034 archive_cmds_GCJ=''
16035 hardcode_direct_GCJ=yes
16036 hardcode_libdir_separator_GCJ=':'
16037 link_all_deplibs_GCJ=yes
16039 if test "$GCC" = yes; then
16040 case $host_os in aix4.012|aix4.012.*)
16041 # We only want to do this on AIX 4.2 and lower, the check
16042 # below for broken collect2 doesn't work under 4.3+
16043 collect2name=`${CC} -print-prog-name=collect2`
16044 if test -f "$collect2name" && \
16045 strings "$collect2name" | grep resolve_lib_name >/dev/null
16047 # We have reworked collect2
16048 hardcode_direct_GCJ=yes
16050 # We have old collect2
16051 hardcode_direct_GCJ=unsupported
16052 # It fails to find uninstalled libraries when the uninstalled
16053 # path is not listed in the libpath. Setting hardcode_minus_L
16054 # to unsupported forces relinking
16055 hardcode_minus_L_GCJ=yes
16056 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16057 hardcode_libdir_separator_GCJ=
16060 shared_flag='-shared'
16063 if test "$host_cpu" = ia64; then
16064 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16065 # chokes on -Wl,-G. The following line is correct:
16068 if test "$aix_use_runtimelinking" = yes; then
16069 shared_flag='${wl}-G'
16071 shared_flag='${wl}-bM:SRE'
16076 # It seems that -bexpall does not export symbols beginning with
16077 # underscore (_), so it is better to generate a list of symbols to export.
16078 always_export_symbols_GCJ=yes
16079 if test "$aix_use_runtimelinking" = yes; then
16080 # Warning - without using the other runtime loading flags (-brtl),
16081 # -berok will link without error, but may produce a broken library.
16082 allow_undefined_flag_GCJ='-berok'
16083 # Determine the default libpath from the value encoded in an empty executable.
16084 cat >conftest.$ac_ext <<_ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h. */
16099 rm -f conftest.$ac_objext conftest$ac_exeext
16100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16101 (eval $ac_link) 2>conftest.er1
16103 grep -v '^ *+' conftest.er1 >conftest.err
16105 cat conftest.err >&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } &&
16108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; } &&
16114 { ac_try='test -s conftest$ac_exeext'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16121 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16123 # Check for a 64-bit object if we didn't find anything.
16124 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; }
16127 echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16131 rm -f conftest.err conftest.$ac_objext \
16132 conftest$ac_exeext conftest.$ac_ext
16133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16135 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16136 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"
16138 if test "$host_cpu" = ia64; then
16139 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16140 allow_undefined_flag_GCJ="-z nodefs"
16141 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"
16143 # Determine the default libpath from the value encoded in an empty executable.
16144 cat >conftest.$ac_ext <<_ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16159 rm -f conftest.$ac_objext conftest$ac_exeext
16160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16161 (eval $ac_link) 2>conftest.er1
16163 grep -v '^ *+' conftest.er1 >conftest.err
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } &&
16168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16170 (eval $ac_try) 2>&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); }; } &&
16174 { ac_try='test -s conftest$ac_exeext'
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; }; then
16181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16183 # Check for a 64-bit object if we didn't find anything.
16184 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; }
16187 echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16191 rm -f conftest.err conftest.$ac_objext \
16192 conftest$ac_exeext conftest.$ac_ext
16193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16195 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16196 # Warning - without using the other run time loading flags,
16197 # -berok will link without error, but may produce a broken library.
16198 no_undefined_flag_GCJ=' ${wl}-bernotok'
16199 allow_undefined_flag_GCJ=' ${wl}-berok'
16200 # -bexpall does not export symbols beginning with underscore (_)
16201 always_export_symbols_GCJ=yes
16202 # Exported symbols can be pulled into shared objects from archives
16203 whole_archive_flag_spec_GCJ=' '
16204 archive_cmds_need_lc_GCJ=yes
16205 # This is similar to how AIX traditionally builds it's shared libraries.
16206 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'
16212 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)'
16213 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16214 hardcode_minus_L_GCJ=yes
16215 # see comment about different semantics on the GNU ld section
16220 export_dynamic_flag_spec_GCJ=-rdynamic
16223 cygwin* | mingw* | pw32*)
16224 # When not using gcc, we currently assume that we are using
16225 # Microsoft Visual C++.
16226 # hardcode_libdir_flag_spec is actually meaningless, as there is
16227 # no search path for DLLs.
16228 hardcode_libdir_flag_spec_GCJ=' '
16229 allow_undefined_flag_GCJ=unsupported
16230 # Tell ltmain to make .lib files, not .a files.
16232 # Tell ltmain to make .dll files, not .so files.
16234 # FIXME: Setting linknames here is a bad hack.
16235 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16236 # The linker will automatically build a .lib file if we build a DLL.
16237 old_archive_From_new_cmds_GCJ='true'
16238 # FIXME: Should let the user specify the lib program.
16239 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16240 fix_srcfile_path='`cygpath -w "$srcfile"`'
16241 enable_shared_with_static_runtimes_GCJ=yes
16244 darwin* | rhapsody*)
16245 if test "$GXX" = yes ; then
16246 archive_cmds_need_lc_GCJ=no
16248 rhapsody* | darwin1.[012])
16249 allow_undefined_flag_GCJ='-undefined suppress'
16252 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16253 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16255 case ${MACOSX_DEPLOYMENT_TARGET} in
16257 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16260 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16266 lt_int_apple_cc_single_mod=no
16267 output_verbose_link_cmd='echo'
16268 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16269 lt_int_apple_cc_single_mod=yes
16271 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16272 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16274 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'
16276 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16277 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16278 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16279 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}'
16281 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}'
16283 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}'
16284 hardcode_direct_GCJ=no
16285 hardcode_automatic_GCJ=yes
16286 hardcode_shlibpath_var_GCJ=unsupported
16287 whole_archive_flag_spec_GCJ='-all_load $convenience'
16288 link_all_deplibs_GCJ=yes
16295 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16296 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16297 hardcode_shlibpath_var_GCJ=no
16304 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16305 # support. Future versions do this automatically, but an explicit c++rt0.o
16306 # does not break anything, and helps significantly (at the cost of a little
16309 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16310 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16311 hardcode_direct_GCJ=yes
16312 hardcode_shlibpath_var_GCJ=no
16315 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16317 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16318 hardcode_direct_GCJ=yes
16319 hardcode_minus_L_GCJ=yes
16320 hardcode_shlibpath_var_GCJ=no
16323 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16324 freebsd* | kfreebsd*-gnu)
16325 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16326 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16327 hardcode_direct_GCJ=yes
16328 hardcode_shlibpath_var_GCJ=no
16332 if test "$GCC" = yes; then
16333 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'
16335 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'
16337 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16338 hardcode_libdir_separator_GCJ=:
16339 hardcode_direct_GCJ=yes
16341 # hardcode_minus_L: Not really in the search PATH,
16342 # but as the default location of the library.
16343 hardcode_minus_L_GCJ=yes
16344 export_dynamic_flag_spec_GCJ='${wl}-E'
16348 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16349 case "$host_cpu" in
16351 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16354 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16358 case "$host_cpu" in
16360 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16363 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16367 if test "$with_gnu_ld" = no; then
16368 case "$host_cpu" in
16370 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16371 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16372 hardcode_libdir_separator_GCJ=:
16373 hardcode_direct_GCJ=no
16374 hardcode_shlibpath_var_GCJ=no
16377 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16378 hardcode_direct_GCJ=no
16379 hardcode_shlibpath_var_GCJ=no
16381 # hardcode_minus_L: Not really in the search PATH,
16382 # but as the default location of the library.
16383 hardcode_minus_L_GCJ=yes
16386 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16387 hardcode_libdir_separator_GCJ=:
16388 hardcode_direct_GCJ=yes
16389 export_dynamic_flag_spec_GCJ='${wl}-E'
16391 # hardcode_minus_L: Not really in the search PATH,
16392 # but as the default location of the library.
16393 hardcode_minus_L_GCJ=yes
16399 irix5* | irix6* | nonstopux*)
16400 if test "$GCC" = yes; then
16401 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'
16403 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'
16404 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16406 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16407 hardcode_libdir_separator_GCJ=:
16408 link_all_deplibs_GCJ=yes
16411 netbsd* | knetbsd*-gnu)
16412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16413 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16415 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16417 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16418 hardcode_direct_GCJ=yes
16419 hardcode_shlibpath_var_GCJ=no
16423 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16424 hardcode_direct_GCJ=yes
16425 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16426 hardcode_libdir_separator_GCJ=:
16427 hardcode_shlibpath_var_GCJ=no
16431 hardcode_direct_GCJ=yes
16432 hardcode_shlibpath_var_GCJ=no
16433 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16434 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16435 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16436 export_dynamic_flag_spec_GCJ='${wl}-E'
16439 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16440 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16441 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16444 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16445 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16452 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16453 hardcode_minus_L_GCJ=yes
16454 allow_undefined_flag_GCJ=unsupported
16455 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'
16456 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16460 if test "$GCC" = yes; then
16461 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16462 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'
16464 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16465 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'
16467 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16468 hardcode_libdir_separator_GCJ=:
16471 osf4* | osf5*) # as osf3* with the addition of -msym flag
16472 if test "$GCC" = yes; then
16473 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16474 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'
16475 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16477 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16478 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'
16479 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~
16480 $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'
16482 # Both c and cxx compiler support -rpath directly
16483 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16485 hardcode_libdir_separator_GCJ=:
16489 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16490 hardcode_shlibpath_var_GCJ=no
16491 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16492 runpath_var=LD_RUN_PATH
16493 hardcode_runpath_var=yes
16497 no_undefined_flag_GCJ=' -z text'
16498 if test "$GCC" = yes; then
16499 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16500 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16501 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16503 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16504 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16505 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16507 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16508 hardcode_shlibpath_var_GCJ=no
16510 solaris2.[0-5] | solaris2.[0-5].*) ;;
16511 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16512 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16514 link_all_deplibs_GCJ=yes
16518 if test "x$host_vendor" = xsequent; then
16519 # Use $CC to link under sequent, because it throws in some extra .o
16520 # files that make .init and .fini sections work.
16521 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16523 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16525 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16526 hardcode_direct_GCJ=yes
16527 hardcode_minus_L_GCJ=yes
16528 hardcode_shlibpath_var_GCJ=no
16532 case $host_vendor in
16534 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16535 hardcode_direct_GCJ=yes # is this really true???
16538 ## LD is ld it makes a PLAMLIB
16539 ## CC just makes a GrossModule.
16540 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16541 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16542 hardcode_direct_GCJ=no
16545 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16546 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16549 runpath_var='LD_RUN_PATH'
16550 hardcode_shlibpath_var_GCJ=no
16554 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16555 hardcode_shlibpath_var_GCJ=no
16556 export_dynamic_flag_spec_GCJ='-Bexport'
16560 if test -d /usr/nec; then
16561 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16562 hardcode_shlibpath_var_GCJ=no
16563 runpath_var=LD_RUN_PATH
16564 hardcode_runpath_var=yes
16570 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16571 hardcode_direct_GCJ=yes
16572 hardcode_minus_L_GCJ=no
16573 hardcode_shlibpath_var_GCJ=no
16574 hardcode_runpath_var=yes
16575 runpath_var=LD_RUN_PATH
16578 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16579 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16580 if test "$GCC" = yes; then
16581 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16583 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16585 runpath_var='LD_RUN_PATH'
16586 hardcode_shlibpath_var_GCJ=no
16590 no_undefined_flag_GCJ=' -z text'
16591 # $CC -shared without GNU ld will not create a library from C++
16592 # object files and a static libstdc++, better avoid it by now
16593 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16594 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16595 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16596 hardcode_libdir_flag_spec_GCJ=
16597 hardcode_shlibpath_var_GCJ=no
16598 runpath_var='LD_RUN_PATH'
16602 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16603 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16604 hardcode_shlibpath_var_GCJ=no
16613 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16614 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16615 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16617 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16618 if test "$GCC" = yes; then
16619 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16623 # Do we need to explicitly link libc?
16625 case "x$archive_cmds_need_lc_GCJ" in
16627 # Assume -lc should be added
16628 archive_cmds_need_lc_GCJ=yes
16630 if test "$enable_shared" = yes && test "$GCC" = yes; then
16631 case $archive_cmds_GCJ in
16633 # FIXME: we may have to deal with multi-command sequences.
16636 # Test whether the compiler implicitly links with -lc since on some
16637 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16638 # to ld, don't add -lc before -lgcc.
16639 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16640 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16642 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16645 (eval $ac_compile) 2>&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } 2>conftest.err; then
16651 libobjs=conftest.$ac_objext
16653 wl=$lt_prog_compiler_wl_GCJ
16659 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16660 allow_undefined_flag_GCJ=
16661 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16662 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }
16667 archive_cmds_need_lc_GCJ=no
16669 archive_cmds_need_lc_GCJ=yes
16671 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16673 cat conftest.err 1>&5
16676 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16677 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16684 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16685 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16686 library_names_spec=
16687 libname_spec='lib$name'
16691 postuninstall_cmds=
16695 shlibpath_overrides_runpath=unknown
16697 dynamic_linker="$host_os ld.so"
16698 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16699 if test "$GCC" = yes; then
16700 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16701 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16702 # if the path contains ";" then we assume it to be the separator
16703 # otherwise default to the standard path separator (i.e. ":") - it is
16704 # assumed that no part of a normal pathname contains ";" but that should
16705 # okay in the real world where ";" in dirpaths is itself problematic.
16706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16711 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16713 need_lib_prefix=unknown
16714 hardcode_into_libs=no
16716 # when you set need_version to no, make sure it does not cause -set_version
16717 # flags to be left without arguments
16718 need_version=unknown
16723 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16724 shlibpath_var=LIBPATH
16726 # AIX 3 has no versioning support, so we append a major version to the name.
16727 soname_spec='${libname}${release}${shared_ext}$major'
16734 hardcode_into_libs=yes
16735 if test "$host_cpu" = ia64; then
16736 # AIX 5 supports IA64
16737 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16738 shlibpath_var=LD_LIBRARY_PATH
16740 # With GCC up to 2.95.x, collect2 would create an import file
16741 # for dependence libraries. The import file would start with
16742 # the line `#! .'. This would cause the generated library to
16743 # depend on `.', always an invalid library. This was fixed in
16744 # development snapshots of GCC prior to 3.0.
16746 aix4 | aix4.[01] | aix4.[01].*)
16747 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16749 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16752 can_build_shared=no
16756 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16757 # soname into executable. Probably we can add versioning support to
16758 # collect2, so additional links can be useful in future.
16759 if test "$aix_use_runtimelinking" = yes; then
16760 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16761 # instead of lib<name>.a to let people know that these are not
16762 # typical AIX shared libraries.
16763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16765 # We preserve .a as extension for shared libraries through AIX4.2
16766 # and later when we are not doing run time linking.
16767 library_names_spec='${libname}${release}.a $libname.a'
16768 soname_spec='${libname}${release}${shared_ext}$major'
16770 shlibpath_var=LIBPATH
16775 library_names_spec='$libname.ixlibrary $libname.a'
16776 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16777 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'
16781 library_names_spec='${libname}${shared_ext}'
16782 dynamic_linker="$host_os ld.so"
16783 shlibpath_var=LIBRARY_PATH
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790 soname_spec='${libname}${release}${shared_ext}$major'
16791 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16792 shlibpath_var=LD_LIBRARY_PATH
16793 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16794 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16795 # the default ld.so.conf also contains /usr/contrib/lib and
16796 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16797 # libtool to hard-code these into programs
16800 cygwin* | mingw* | pw32*)
16801 version_type=windows
16806 case $GCC,$host_os in
16807 yes,cygwin* | yes,mingw* | yes,pw32*)
16808 library_names_spec='$libname.dll.a'
16809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16810 postinstall_cmds='base_file=`basename \${file}`~
16811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16812 dldir=$destdir/`dirname \$dlpath`~
16813 test -d \$dldir || mkdir -p \$dldir~
16814 $install_prog $dir/$dlname \$dldir/$dlname'
16815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16816 dlpath=$dir/\$dldll~
16818 shlibpath_overrides_runpath=yes
16822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16823 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16824 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16827 # MinGW DLLs use traditional 'lib' prefix
16828 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16829 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16830 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16831 # It is most probably a Windows format PATH printed by
16832 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16833 # path with ; separators, and with drive letters. We can handle the
16834 # drive letters (cygwin fileutils understands them), so leave them,
16835 # especially as we might pass files found there to a mingw objdump,
16836 # which wouldn't understand a cygwinified path. Ahh.
16837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16843 # pw32 DLLs use 'pw' prefix rather than 'lib'
16844 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16850 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16853 dynamic_linker='Win32 ld.exe'
16854 # FIXME: first we should search . and the directory the executable is in
16858 darwin* | rhapsody*)
16859 dynamic_linker="$host_os dyld"
16860 version_type=darwin
16863 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16864 soname_spec='${libname}${release}${major}$shared_ext'
16865 shlibpath_overrides_runpath=yes
16866 shlibpath_var=DYLD_LIBRARY_PATH
16867 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16868 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16869 if test "$GCC" = yes; then
16870 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"`
16872 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16874 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16882 soname_spec='${libname}${release}${shared_ext}$major'
16883 shlibpath_var=LD_LIBRARY_PATH
16894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16895 soname_spec='${libname}${release}${shared_ext}$major'
16896 shlibpath_var=LD_LIBRARY_PATH
16897 shlibpath_overrides_runpath=no
16898 hardcode_into_libs=yes
16899 dynamic_linker='GNU ld.so'
16903 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16904 version_type=freebsd-$objformat
16905 case $version_type in
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16916 shlibpath_var=LD_LIBRARY_PATH
16919 shlibpath_overrides_runpath=yes
16921 freebsd3.01* | freebsdelf3.01*)
16922 shlibpath_overrides_runpath=yes
16923 hardcode_into_libs=yes
16926 shlibpath_overrides_runpath=no
16927 hardcode_into_libs=yes
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16937 soname_spec='${libname}${release}${shared_ext}$major'
16938 shlibpath_var=LD_LIBRARY_PATH
16939 hardcode_into_libs=yes
16942 hpux9* | hpux10* | hpux11*)
16943 # Give a soname corresponding to the major version so that dld.sl refuses to
16944 # link against other versions.
16948 case "$host_cpu" in
16951 hardcode_into_libs=yes
16952 dynamic_linker="$host_os dld.so"
16953 shlibpath_var=LD_LIBRARY_PATH
16954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956 soname_spec='${libname}${release}${shared_ext}$major'
16957 if test "X$HPUX_IA64_MODE" = X32; then
16958 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16960 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16966 hardcode_into_libs=yes
16967 dynamic_linker="$host_os dld.sl"
16968 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971 soname_spec='${libname}${release}${shared_ext}$major'
16972 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16977 dynamic_linker="$host_os dld.sl"
16978 shlibpath_var=SHLIB_PATH
16979 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16981 soname_spec='${libname}${release}${shared_ext}$major'
16984 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16985 postinstall_cmds='chmod 555 $lib'
16988 irix5* | irix6* | nonstopux*)
16990 nonstopux*) version_type=nonstopux ;;
16992 if test "$lt_cv_prog_gnu_ld" = yes; then
17000 soname_spec='${libname}${release}${shared_ext}$major'
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17003 irix5* | nonstopux*)
17004 libsuff= shlibsuff=
17007 case $LD in # libtool.m4 will add one of these switches to LD
17008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17009 libsuff= shlibsuff= libmagic=32-bit;;
17010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17011 libsuff=32 shlibsuff=N32 libmagic=N32;;
17012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17014 *) libsuff= shlibsuff= libmagic=never-match;;
17018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17019 shlibpath_overrides_runpath=no
17020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17022 hardcode_into_libs=yes
17025 # No shared lib support for Linux oldld, aout, or coff.
17026 linux*oldld* | linux*aout* | linux*coff*)
17030 # This must be Linux ELF.
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036 soname_spec='${libname}${release}${shared_ext}$major'
17037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17038 shlibpath_var=LD_LIBRARY_PATH
17039 shlibpath_overrides_runpath=no
17040 # This implies no fast_install, which is unacceptable.
17041 # Some rework will be needed to allow for fast_install
17042 # before this can be enabled.
17043 hardcode_into_libs=yes
17045 # Append ld.so.conf contents to the search path
17046 if test -f /etc/ld.so.conf; then
17047 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17048 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17051 # We used to test for /lib/ld.so.1 and disable shared libraries on
17052 # powerpc, because MkLinux only supported shared libraries with the
17053 # GNU dynamic linker. Since this was broken with cross compilers,
17054 # most powerpc-linux boxes support dynamic linking these days and
17055 # people can always --disable-shared, the test was removed, and we
17056 # assume the GNU/Linux dynamic linker is in use.
17057 dynamic_linker='GNU/Linux ld.so'
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17065 soname_spec='${libname}${release}${shared_ext}$major'
17066 shlibpath_var=LD_LIBRARY_PATH
17067 shlibpath_overrides_runpath=no
17068 hardcode_into_libs=yes
17069 dynamic_linker='GNU ld.so'
17076 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17079 dynamic_linker='NetBSD (a.out) ld.so'
17081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17082 soname_spec='${libname}${release}${shared_ext}$major'
17083 dynamic_linker='NetBSD ld.elf_so'
17085 shlibpath_var=LD_LIBRARY_PATH
17086 shlibpath_overrides_runpath=yes
17087 hardcode_into_libs=yes
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093 shlibpath_var=LD_LIBRARY_PATH
17094 shlibpath_overrides_runpath=yes
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17102 soname_spec='${libname}${release}${shared_ext}$major'
17103 shlibpath_var=LD_LIBRARY_PATH
17104 shlibpath_overrides_runpath=yes
17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17113 shlibpath_var=LD_LIBRARY_PATH
17114 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17116 openbsd2.[89] | openbsd2.[89].*)
17117 shlibpath_overrides_runpath=no
17120 shlibpath_overrides_runpath=yes
17124 shlibpath_overrides_runpath=yes
17129 libname_spec='$name'
17132 library_names_spec='$libname${shared_ext} $libname.a'
17133 dynamic_linker='OS/2 ld.exe'
17134 shlibpath_var=LIBPATH
17137 osf3* | osf4* | osf5*)
17141 soname_spec='${libname}${release}${shared_ext}$major'
17142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143 shlibpath_var=LD_LIBRARY_PATH
17144 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17145 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17150 soname_spec='${libname}${release}${shared_ext}$major'
17151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17152 shlibpath_var=LD_LIBRARY_PATH
17159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17160 soname_spec='${libname}${release}${shared_ext}$major'
17161 shlibpath_var=LD_LIBRARY_PATH
17162 shlibpath_overrides_runpath=yes
17163 hardcode_into_libs=yes
17164 # ldd complains unless libraries are executable
17165 postinstall_cmds='chmod +x $lib'
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17171 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17172 shlibpath_var=LD_LIBRARY_PATH
17173 shlibpath_overrides_runpath=yes
17174 if test "$with_gnu_ld" = yes; then
17180 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 case $host_vendor in
17187 shlibpath_overrides_runpath=no
17189 export_dynamic_flag_spec='${wl}-Blargedynsym'
17190 runpath_var=LD_RUN_PATH
17198 shlibpath_overrides_runpath=no
17199 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17205 if test -d /usr/nec ;then
17207 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17208 soname_spec='$libname${shared_ext}.$major'
17209 shlibpath_var=LD_LIBRARY_PATH
17215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17216 soname_spec='${libname}${release}${shared_ext}$major'
17217 shlibpath_var=LD_LIBRARY_PATH
17224 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17225 echo "${ECHO_T}$dynamic_linker" >&6
17226 test "$dynamic_linker" = no && can_build_shared=no
17228 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17229 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17230 hardcode_action_GCJ=
17231 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17232 test -n "$runpath_var GCJ" || \
17233 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17235 # We can hardcode non-existant directories.
17236 if test "$hardcode_direct_GCJ" != no &&
17237 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17238 # have to relink, otherwise we might link with an installed library
17239 # when we should be linking with a yet-to-be-installed one
17240 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17241 test "$hardcode_minus_L_GCJ" != no; then
17242 # Linking always hardcodes the temporary library directory.
17243 hardcode_action_GCJ=relink
17245 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17246 hardcode_action_GCJ=immediate
17249 # We cannot hardcode anything, or else we can only hardcode existing
17251 hardcode_action_GCJ=unsupported
17253 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17254 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17256 if test "$hardcode_action_GCJ" = relink; then
17257 # Fast installation is not supported
17258 enable_fast_install=no
17259 elif test "$shlibpath_overrides_runpath" = yes ||
17260 test "$enable_shared" = no; then
17261 # Fast installation is not necessary
17262 enable_fast_install=needless
17267 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17268 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17269 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17270 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17271 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17272 echo "$as_me:$LINENO: result: yes" >&5
17273 echo "${ECHO_T}yes" >&6
17275 # FIXME - insert some real tests, host_os isn't really good enough
17278 if test -n "$STRIP" ; then
17279 striplib="$STRIP -x"
17280 echo "$as_me:$LINENO: result: yes" >&5
17281 echo "${ECHO_T}yes" >&6
17283 echo "$as_me:$LINENO: result: no" >&5
17284 echo "${ECHO_T}no" >&6
17288 echo "$as_me:$LINENO: result: no" >&5
17289 echo "${ECHO_T}no" >&6
17294 if test "x$enable_dlopen" != xyes; then
17295 enable_dlopen=unknown
17296 enable_dlopen_self=unknown
17297 enable_dlopen_self_static=unknown
17304 lt_cv_dlopen="load_add_on"
17306 lt_cv_dlopen_self=yes
17310 lt_cv_dlopen="LoadLibrary"
17315 lt_cv_dlopen="dlopen"
17320 # if libdl is installed we need to link against it
17321 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17322 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17323 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 ac_check_lib_save_LIBS=$LIBS
17328 cat >conftest.$ac_ext <<_ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h. */
17335 /* Override any gcc2 internal prototype to avoid an error. */
17339 /* We use char because int might match the return type of a gcc2
17340 builtin and then its argument prototype would still apply. */
17350 rm -f conftest.$ac_objext conftest$ac_exeext
17351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17352 (eval $ac_link) 2>conftest.er1
17354 grep -v '^ *+' conftest.er1 >conftest.err
17356 cat conftest.err >&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } &&
17359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; } &&
17365 { ac_try='test -s conftest$ac_exeext'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; }; then
17371 ac_cv_lib_dl_dlopen=yes
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 ac_cv_lib_dl_dlopen=no
17378 rm -f conftest.err conftest.$ac_objext \
17379 conftest$ac_exeext conftest.$ac_ext
17380 LIBS=$ac_check_lib_save_LIBS
17382 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17383 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17384 if test $ac_cv_lib_dl_dlopen = yes; then
17385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17388 lt_cv_dlopen="dyld"
17390 lt_cv_dlopen_self=yes
17397 echo "$as_me:$LINENO: checking for shl_load" >&5
17398 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17399 if test "${ac_cv_func_shl_load+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 cat >conftest.$ac_ext <<_ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h. */
17408 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17410 #define shl_load innocuous_shl_load
17412 /* System header to define __stub macros and hopefully few prototypes,
17413 which can conflict with char shl_load (); below.
17414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17415 <limits.h> exists even on freestanding compilers. */
17418 # include <limits.h>
17420 # include <assert.h>
17425 /* Override any gcc2 internal prototype to avoid an error. */
17430 /* We use char because int might match the return type of a gcc2
17431 builtin and then its argument prototype would still apply. */
17433 /* The GNU C library defines this for functions which it implements
17434 to always fail with ENOSYS. Some functions are actually named
17435 something starting with __ and the normal name is an alias. */
17436 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17439 char (*f) () = shl_load;
17448 return f != shl_load;
17453 rm -f conftest.$ac_objext conftest$ac_exeext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17455 (eval $ac_link) 2>conftest.er1
17457 grep -v '^ *+' conftest.er1 >conftest.err
17459 cat conftest.err >&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
17462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; } &&
17468 { ac_try='test -s conftest$ac_exeext'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
17474 ac_cv_func_shl_load=yes
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17479 ac_cv_func_shl_load=no
17481 rm -f conftest.err conftest.$ac_objext \
17482 conftest$ac_exeext conftest.$ac_ext
17484 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17485 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17486 if test $ac_cv_func_shl_load = yes; then
17487 lt_cv_dlopen="shl_load"
17489 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17490 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17491 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17494 ac_check_lib_save_LIBS=$LIBS
17496 cat >conftest.$ac_ext <<_ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17503 /* Override any gcc2 internal prototype to avoid an error. */
17507 /* We use char because int might match the return type of a gcc2
17508 builtin and then its argument prototype would still apply. */
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17520 (eval $ac_link) 2>conftest.er1
17522 grep -v '^ *+' conftest.er1 >conftest.err
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; } &&
17533 { ac_try='test -s conftest$ac_exeext'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_lib_dld_shl_load=yes
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 ac_cv_lib_dld_shl_load=no
17546 rm -f conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17550 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17551 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17552 if test $ac_cv_lib_dld_shl_load = yes; then
17553 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17555 echo "$as_me:$LINENO: checking for dlopen" >&5
17556 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17557 if test "${ac_cv_func_dlopen+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 cat >conftest.$ac_ext <<_ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17568 #define dlopen innocuous_dlopen
17570 /* System header to define __stub macros and hopefully few prototypes,
17571 which can conflict with char dlopen (); below.
17572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17573 <limits.h> exists even on freestanding compilers. */
17576 # include <limits.h>
17578 # include <assert.h>
17583 /* Override any gcc2 internal prototype to avoid an error. */
17588 /* We use char because int might match the return type of a gcc2
17589 builtin and then its argument prototype would still apply. */
17591 /* The GNU C library defines this for functions which it implements
17592 to always fail with ENOSYS. Some functions are actually named
17593 something starting with __ and the normal name is an alias. */
17594 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17597 char (*f) () = dlopen;
17606 return f != dlopen;
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17613 (eval $ac_link) 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } &&
17620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; } &&
17626 { ac_try='test -s conftest$ac_exeext'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; }; then
17632 ac_cv_func_dlopen=yes
17634 echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17637 ac_cv_func_dlopen=no
17639 rm -f conftest.err conftest.$ac_objext \
17640 conftest$ac_exeext conftest.$ac_ext
17642 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17643 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17644 if test $ac_cv_func_dlopen = yes; then
17645 lt_cv_dlopen="dlopen"
17647 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17648 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17649 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17652 ac_check_lib_save_LIBS=$LIBS
17654 cat >conftest.$ac_ext <<_ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17661 /* Override any gcc2 internal prototype to avoid an error. */
17665 /* We use char because int might match the return type of a gcc2
17666 builtin and then its argument prototype would still apply. */
17676 rm -f conftest.$ac_objext conftest$ac_exeext
17677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17678 (eval $ac_link) 2>conftest.er1
17680 grep -v '^ *+' conftest.er1 >conftest.err
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest$ac_exeext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 ac_cv_lib_dl_dlopen=yes
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17702 ac_cv_lib_dl_dlopen=no
17704 rm -f conftest.err conftest.$ac_objext \
17705 conftest$ac_exeext conftest.$ac_ext
17706 LIBS=$ac_check_lib_save_LIBS
17708 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17709 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17710 if test $ac_cv_lib_dl_dlopen = yes; then
17711 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17713 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17714 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17715 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17718 ac_check_lib_save_LIBS=$LIBS
17719 LIBS="-lsvld $LIBS"
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17727 /* Override any gcc2 internal prototype to avoid an error. */
17731 /* We use char because int might match the return type of a gcc2
17732 builtin and then its argument prototype would still apply. */
17742 rm -f conftest.$ac_objext conftest$ac_exeext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744 (eval $ac_link) 2>conftest.er1
17746 grep -v '^ *+' conftest.er1 >conftest.err
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; } &&
17757 { ac_try='test -s conftest$ac_exeext'
17758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 ac_cv_lib_svld_dlopen=yes
17765 echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17768 ac_cv_lib_svld_dlopen=no
17770 rm -f conftest.err conftest.$ac_objext \
17771 conftest$ac_exeext conftest.$ac_ext
17772 LIBS=$ac_check_lib_save_LIBS
17774 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17775 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17776 if test $ac_cv_lib_svld_dlopen = yes; then
17777 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17779 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17780 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17781 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17784 ac_check_lib_save_LIBS=$LIBS
17786 cat >conftest.$ac_ext <<_ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h. */
17793 /* Override any gcc2 internal prototype to avoid an error. */
17797 /* We use char because int might match the return type of a gcc2
17798 builtin and then its argument prototype would still apply. */
17808 rm -f conftest.$ac_objext conftest$ac_exeext
17809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17810 (eval $ac_link) 2>conftest.er1
17812 grep -v '^ *+' conftest.er1 >conftest.err
17814 cat conftest.err >&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } &&
17817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; } &&
17823 { ac_try='test -s conftest$ac_exeext'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; }; then
17829 ac_cv_lib_dld_dld_link=yes
17831 echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17834 ac_cv_lib_dld_dld_link=no
17836 rm -f conftest.err conftest.$ac_objext \
17837 conftest$ac_exeext conftest.$ac_ext
17838 LIBS=$ac_check_lib_save_LIBS
17840 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17841 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17842 if test $ac_cv_lib_dld_dld_link = yes; then
17843 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17864 if test "x$lt_cv_dlopen" != xno; then
17870 case $lt_cv_dlopen in
17872 save_CPPFLAGS="$CPPFLAGS"
17873 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17875 save_LDFLAGS="$LDFLAGS"
17876 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17879 LIBS="$lt_cv_dlopen_libs $LIBS"
17881 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17882 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17883 if test "${lt_cv_dlopen_self+set}" = set; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 if test "$cross_compiling" = yes; then :
17887 lt_cv_dlopen_self=cross
17889 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17890 lt_status=$lt_dlunknown
17891 cat > conftest.$ac_ext <<EOF
17892 #line 17892 "configure"
17893 #include "confdefs.h"
17902 # define LT_DLGLOBAL RTLD_GLOBAL
17905 # define LT_DLGLOBAL DL_GLOBAL
17907 # define LT_DLGLOBAL 0
17911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17912 find out it does not work in some platform. */
17913 #ifndef LT_DLLAZY_OR_NOW
17915 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17918 # define LT_DLLAZY_OR_NOW DL_LAZY
17921 # define LT_DLLAZY_OR_NOW RTLD_NOW
17924 # define LT_DLLAZY_OR_NOW DL_NOW
17926 # define LT_DLLAZY_OR_NOW 0
17934 extern "C" void exit (int);
17937 void fnord() { int i=42;}
17940 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17941 int status = $lt_dlunknown;
17945 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17946 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17947 /* dlclose (self); */
17953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954 (eval $ac_link) 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17958 (./conftest; exit; ) 2>/dev/null
17960 case x$lt_status in
17961 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17962 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17963 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17966 # compilation failed
17967 lt_cv_dlopen_self=no
17974 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17975 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17977 if test "x$lt_cv_dlopen_self" = xyes; then
17978 LDFLAGS="$LDFLAGS $link_static_flag"
17979 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17980 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17981 if test "${lt_cv_dlopen_self_static+set}" = set; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17984 if test "$cross_compiling" = yes; then :
17985 lt_cv_dlopen_self_static=cross
17987 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17988 lt_status=$lt_dlunknown
17989 cat > conftest.$ac_ext <<EOF
17990 #line 17990 "configure"
17991 #include "confdefs.h"
18000 # define LT_DLGLOBAL RTLD_GLOBAL
18003 # define LT_DLGLOBAL DL_GLOBAL
18005 # define LT_DLGLOBAL 0
18009 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18010 find out it does not work in some platform. */
18011 #ifndef LT_DLLAZY_OR_NOW
18013 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18016 # define LT_DLLAZY_OR_NOW DL_LAZY
18019 # define LT_DLLAZY_OR_NOW RTLD_NOW
18022 # define LT_DLLAZY_OR_NOW DL_NOW
18024 # define LT_DLLAZY_OR_NOW 0
18032 extern "C" void exit (int);
18035 void fnord() { int i=42;}
18038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18039 int status = $lt_dlunknown;
18043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18044 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18045 /* dlclose (self); */
18051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18052 (eval $ac_link) 2>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18056 (./conftest; exit; ) 2>/dev/null
18058 case x$lt_status in
18059 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18060 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18061 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18064 # compilation failed
18065 lt_cv_dlopen_self_static=no
18072 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18073 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18076 CPPFLAGS="$save_CPPFLAGS"
18077 LDFLAGS="$save_LDFLAGS"
18082 case $lt_cv_dlopen_self in
18083 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18084 *) enable_dlopen_self=unknown ;;
18087 case $lt_cv_dlopen_self_static in
18088 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18089 *) enable_dlopen_self_static=unknown ;;
18094 # The else clause should only fire when bootstrapping the
18095 # libtool distribution, otherwise you forgot to ship ltmain.sh
18096 # with your package, and you will get complaints that there are
18097 # no rules to generate ltmain.sh.
18098 if test -f "$ltmain"; then
18099 # See if we are running on zsh, and set the options which allow our commands through
18100 # without removal of \ escapes.
18101 if test -n "${ZSH_VERSION+set}" ; then
18102 setopt NO_GLOB_SUBST
18104 # Now quote all the things that may contain metacharacters while being
18105 # careful not to overquote the AC_SUBSTed values. We take copies of the
18106 # variables and quote the copies for generation of the libtool script.
18107 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18109 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18110 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18111 deplibs_check_method reload_flag reload_cmds need_locks \
18112 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18113 lt_cv_sys_global_symbol_to_c_name_address \
18114 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18115 old_postinstall_cmds old_postuninstall_cmds \
18119 lt_prog_compiler_wl_GCJ \
18120 lt_prog_compiler_pic_GCJ \
18121 lt_prog_compiler_static_GCJ \
18122 lt_prog_compiler_no_builtin_flag_GCJ \
18123 export_dynamic_flag_spec_GCJ \
18124 thread_safe_flag_spec_GCJ \
18125 whole_archive_flag_spec_GCJ \
18126 enable_shared_with_static_runtimes_GCJ \
18127 old_archive_cmds_GCJ \
18128 old_archive_from_new_cmds_GCJ \
18129 predep_objects_GCJ \
18130 postdep_objects_GCJ \
18133 compiler_lib_search_path_GCJ \
18135 archive_expsym_cmds_GCJ \
18136 postinstall_cmds_GCJ \
18137 postuninstall_cmds_GCJ \
18138 old_archive_from_expsyms_cmds_GCJ \
18139 allow_undefined_flag_GCJ \
18140 no_undefined_flag_GCJ \
18141 export_symbols_cmds_GCJ \
18142 hardcode_libdir_flag_spec_GCJ \
18143 hardcode_libdir_flag_spec_ld_GCJ \
18144 hardcode_libdir_separator_GCJ \
18145 hardcode_automatic_GCJ \
18147 module_expsym_cmds_GCJ \
18148 lt_cv_prog_compiler_c_o_GCJ \
18149 exclude_expsyms_GCJ \
18150 include_expsyms_GCJ; do
18153 old_archive_cmds_GCJ | \
18154 old_archive_from_new_cmds_GCJ | \
18155 archive_cmds_GCJ | \
18156 archive_expsym_cmds_GCJ | \
18157 module_cmds_GCJ | \
18158 module_expsym_cmds_GCJ | \
18159 old_archive_from_expsyms_cmds_GCJ | \
18160 export_symbols_cmds_GCJ | \
18161 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18162 postinstall_cmds | postuninstall_cmds | \
18163 old_postinstall_cmds | old_postuninstall_cmds | \
18164 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18165 # Double-quote double-evaled strings.
18166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18175 *'\$0 --fallback-echo"')
18176 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18182 cat <<__EOF__ >> "$cfgfile"
18183 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18187 # Shell to use when invoking shell scripts.
18190 # Whether or not to build shared libraries.
18191 build_libtool_libs=$enable_shared
18193 # Whether or not to build static libraries.
18194 build_old_libs=$enable_static
18196 # Whether or not to add -lc for building shared libraries.
18197 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18199 # Whether or not to disallow shared libs when runtime libs are static
18200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18202 # Whether or not to optimize for fast installation.
18203 fast_install=$enable_fast_install
18206 host_alias=$host_alias
18209 # An echo program that does not interpret backslashes.
18214 AR_FLAGS=$lt_AR_FLAGS
18219 # A language-specific compiler.
18220 CC=$lt_compiler_GCJ
18222 # Is the compiler the GNU C compiler?
18228 # The linker used to build libraries.
18231 # Whether we need hard or soft links.
18234 # A BSD-compatible nm program.
18237 # A symbol stripping program
18240 # Used to examine libraries when file_magic_cmd begins "file"
18241 MAGIC_CMD=$MAGIC_CMD
18243 # Used on cygwin: DLL creation program.
18246 # Used on cygwin: object dumper.
18249 # Used on cygwin: assembler.
18252 # The name of the directory that contains temporary libtool files.
18255 # How to create reloadable object files.
18256 reload_flag=$lt_reload_flag
18257 reload_cmds=$lt_reload_cmds
18259 # How to pass a linker flag through the compiler.
18260 wl=$lt_lt_prog_compiler_wl_GCJ
18262 # Object file suffix (normally "o").
18263 objext="$ac_objext"
18265 # Old archive suffix (normally "a").
18268 # Shared library suffix (normally ".so").
18271 # Executable file suffix (normally "").
18274 # Additional compiler flags for building library objects.
18275 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18278 # What is the maximum length of a command?
18279 max_cmd_len=$lt_cv_sys_max_cmd_len
18281 # Does compiler simultaneously support -c and -o options?
18282 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18284 # Must we lock files when doing compilation ?
18285 need_locks=$lt_need_locks
18287 # Do we need the lib prefix for modules?
18288 need_lib_prefix=$need_lib_prefix
18290 # Do we need a version for libraries?
18291 need_version=$need_version
18293 # Whether dlopen is supported.
18294 dlopen_support=$enable_dlopen
18296 # Whether dlopen of programs is supported.
18297 dlopen_self=$enable_dlopen_self
18299 # Whether dlopen of statically linked programs is supported.
18300 dlopen_self_static=$enable_dlopen_self_static
18302 # Compiler flag to prevent dynamic linking.
18303 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18305 # Compiler flag to turn off builtin functions.
18306 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18308 # Compiler flag to allow reflexive dlopens.
18309 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18311 # Compiler flag to generate shared objects directly from archives.
18312 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18314 # Compiler flag to generate thread-safe objects.
18315 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18317 # Library versioning type.
18318 version_type=$version_type
18320 # Format of library name prefix.
18321 libname_spec=$lt_libname_spec
18323 # List of archive names. First name is the real one, the rest are links.
18324 # The last name is the one that the linker finds with -lNAME.
18325 library_names_spec=$lt_library_names_spec
18327 # The coded name of the library, if different from the real name.
18328 soname_spec=$lt_soname_spec
18330 # Commands used to build and install an old-style archive.
18332 old_archive_cmds=$lt_old_archive_cmds_GCJ
18333 old_postinstall_cmds=$lt_old_postinstall_cmds
18334 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18336 # Create an old-style archive from a shared archive.
18337 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18339 # Create a temporary old-style archive to link instead of a shared archive.
18340 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18342 # Commands used to build and install a shared archive.
18343 archive_cmds=$lt_archive_cmds_GCJ
18344 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18345 postinstall_cmds=$lt_postinstall_cmds
18346 postuninstall_cmds=$lt_postuninstall_cmds
18348 # Commands used to build a loadable module (assumed same as above if empty)
18349 module_cmds=$lt_module_cmds_GCJ
18350 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18352 # Commands to strip libraries.
18353 old_striplib=$lt_old_striplib
18354 striplib=$lt_striplib
18356 # Dependencies to place before the objects being linked to create a
18358 predep_objects=$lt_predep_objects_GCJ
18360 # Dependencies to place after the objects being linked to create a
18362 postdep_objects=$lt_postdep_objects_GCJ
18364 # Dependencies to place before the objects being linked to create a
18366 predeps=$lt_predeps_GCJ
18368 # Dependencies to place after the objects being linked to create a
18370 postdeps=$lt_postdeps_GCJ
18372 # The library search path used internally by the compiler when linking
18373 # a shared library.
18374 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18376 # Method to check whether dependent libraries are shared objects.
18377 deplibs_check_method=$lt_deplibs_check_method
18379 # Command to use when deplibs_check_method == file_magic.
18380 file_magic_cmd=$lt_file_magic_cmd
18382 # Flag that allows shared libraries with undefined symbols to be built.
18383 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18385 # Flag that forces no undefined symbols.
18386 no_undefined_flag=$lt_no_undefined_flag_GCJ
18388 # Commands used to finish a libtool library installation in a directory.
18389 finish_cmds=$lt_finish_cmds
18391 # Same as above, but a single script fragment to be evaled but not shown.
18392 finish_eval=$lt_finish_eval
18394 # Take the output of nm and produce a listing of raw symbols and C names.
18395 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18397 # Transform the output of nm in a proper C declaration
18398 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18400 # Transform the output of nm in a C name address pair
18401 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18403 # This is the shared library runtime path variable.
18404 runpath_var=$runpath_var
18406 # This is the shared library path variable.
18407 shlibpath_var=$shlibpath_var
18409 # Is shlibpath searched before the hard-coded library search path?
18410 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18412 # How to hardcode a shared library path into an executable.
18413 hardcode_action=$hardcode_action_GCJ
18415 # Whether we should hardcode library paths into libraries.
18416 hardcode_into_libs=$hardcode_into_libs
18418 # Flag to hardcode \$libdir into a binary during linking.
18419 # This must work even if \$libdir does not exist.
18420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18422 # If ld is used when linking, flag to hardcode \$libdir into
18423 # a binary during linking. This must work even if \$libdir does
18425 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18427 # Whether we need a single -rpath flag with a separated argument.
18428 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18430 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18431 # resulting binary.
18432 hardcode_direct=$hardcode_direct_GCJ
18434 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18435 # resulting binary.
18436 hardcode_minus_L=$hardcode_minus_L_GCJ
18438 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18439 # the resulting binary.
18440 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18442 # Set to yes if building a shared library automatically hardcodes DIR into the library
18443 # and all subsequent libraries and executables linked against it.
18444 hardcode_automatic=$hardcode_automatic_GCJ
18446 # Variables whose values should be saved in libtool wrapper scripts and
18447 # restored at relink time.
18448 variables_saved_for_relink="$variables_saved_for_relink"
18450 # Whether libtool must link a program against all its dependency libraries.
18451 link_all_deplibs=$link_all_deplibs_GCJ
18453 # Compile-time system search path for libraries
18454 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18456 # Run-time system search path for libraries
18457 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18459 # Fix the shell variable \$srcfile for the compiler.
18460 fix_srcfile_path="$fix_srcfile_path_GCJ"
18462 # Set to yes if exported symbols are required.
18463 always_export_symbols=$always_export_symbols_GCJ
18465 # The commands to list exported symbols.
18466 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18468 # The commands to extract the exported symbol list from a shared archive.
18469 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18471 # Symbols that should not be listed in the preloaded symbols.
18472 exclude_expsyms=$lt_exclude_expsyms_GCJ
18474 # Symbols that must always be exported.
18475 include_expsyms=$lt_include_expsyms_GCJ
18477 # ### END LIBTOOL TAG CONFIG: $tagname
18483 # If there is no Makefile yet, we rely on a make rule to execute
18484 # `config.status --recheck' to rerun these tests and create the
18485 # libtool script then.
18486 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18487 if test -f "$ltmain_in"; then
18488 test -f Makefile && make "$ltmain"
18494 ac_cpp='$CPP $CPPFLAGS'
18495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18510 # Source file extension for RC test sources.
18513 # Object file extension for compiled RC test sources.
18517 # Code to be used in simple compile tests
18518 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18520 # Code to be used in simple link tests
18521 lt_simple_link_test_code="$lt_simple_compile_test_code"
18523 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18525 # If no C compiler was specified, use CC.
18528 # Allow CC to be a program name with arguments.
18532 # Allow CC to be a program name with arguments.
18537 lt_cv_prog_compiler_c_o_RC=yes
18539 # The else clause should only fire when bootstrapping the
18540 # libtool distribution, otherwise you forgot to ship ltmain.sh
18541 # with your package, and you will get complaints that there are
18542 # no rules to generate ltmain.sh.
18543 if test -f "$ltmain"; then
18544 # See if we are running on zsh, and set the options which allow our commands through
18545 # without removal of \ escapes.
18546 if test -n "${ZSH_VERSION+set}" ; then
18547 setopt NO_GLOB_SUBST
18549 # Now quote all the things that may contain metacharacters while being
18550 # careful not to overquote the AC_SUBSTed values. We take copies of the
18551 # variables and quote the copies for generation of the libtool script.
18552 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18554 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18555 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18556 deplibs_check_method reload_flag reload_cmds need_locks \
18557 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18558 lt_cv_sys_global_symbol_to_c_name_address \
18559 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18560 old_postinstall_cmds old_postuninstall_cmds \
18564 lt_prog_compiler_wl_RC \
18565 lt_prog_compiler_pic_RC \
18566 lt_prog_compiler_static_RC \
18567 lt_prog_compiler_no_builtin_flag_RC \
18568 export_dynamic_flag_spec_RC \
18569 thread_safe_flag_spec_RC \
18570 whole_archive_flag_spec_RC \
18571 enable_shared_with_static_runtimes_RC \
18572 old_archive_cmds_RC \
18573 old_archive_from_new_cmds_RC \
18574 predep_objects_RC \
18575 postdep_objects_RC \
18578 compiler_lib_search_path_RC \
18580 archive_expsym_cmds_RC \
18581 postinstall_cmds_RC \
18582 postuninstall_cmds_RC \
18583 old_archive_from_expsyms_cmds_RC \
18584 allow_undefined_flag_RC \
18585 no_undefined_flag_RC \
18586 export_symbols_cmds_RC \
18587 hardcode_libdir_flag_spec_RC \
18588 hardcode_libdir_flag_spec_ld_RC \
18589 hardcode_libdir_separator_RC \
18590 hardcode_automatic_RC \
18592 module_expsym_cmds_RC \
18593 lt_cv_prog_compiler_c_o_RC \
18594 exclude_expsyms_RC \
18595 include_expsyms_RC; do
18598 old_archive_cmds_RC | \
18599 old_archive_from_new_cmds_RC | \
18600 archive_cmds_RC | \
18601 archive_expsym_cmds_RC | \
18603 module_expsym_cmds_RC | \
18604 old_archive_from_expsyms_cmds_RC | \
18605 export_symbols_cmds_RC | \
18606 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18607 postinstall_cmds | postuninstall_cmds | \
18608 old_postinstall_cmds | old_postuninstall_cmds | \
18609 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18610 # Double-quote double-evaled strings.
18611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18620 *'\$0 --fallback-echo"')
18621 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18627 cat <<__EOF__ >> "$cfgfile"
18628 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18630 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18632 # Shell to use when invoking shell scripts.
18635 # Whether or not to build shared libraries.
18636 build_libtool_libs=$enable_shared
18638 # Whether or not to build static libraries.
18639 build_old_libs=$enable_static
18641 # Whether or not to add -lc for building shared libraries.
18642 build_libtool_need_lc=$archive_cmds_need_lc_RC
18644 # Whether or not to disallow shared libs when runtime libs are static
18645 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18647 # Whether or not to optimize for fast installation.
18648 fast_install=$enable_fast_install
18651 host_alias=$host_alias
18654 # An echo program that does not interpret backslashes.
18659 AR_FLAGS=$lt_AR_FLAGS
18664 # A language-specific compiler.
18667 # Is the compiler the GNU C compiler?
18673 # The linker used to build libraries.
18676 # Whether we need hard or soft links.
18679 # A BSD-compatible nm program.
18682 # A symbol stripping program
18685 # Used to examine libraries when file_magic_cmd begins "file"
18686 MAGIC_CMD=$MAGIC_CMD
18688 # Used on cygwin: DLL creation program.
18691 # Used on cygwin: object dumper.
18694 # Used on cygwin: assembler.
18697 # The name of the directory that contains temporary libtool files.
18700 # How to create reloadable object files.
18701 reload_flag=$lt_reload_flag
18702 reload_cmds=$lt_reload_cmds
18704 # How to pass a linker flag through the compiler.
18705 wl=$lt_lt_prog_compiler_wl_RC
18707 # Object file suffix (normally "o").
18708 objext="$ac_objext"
18710 # Old archive suffix (normally "a").
18713 # Shared library suffix (normally ".so").
18716 # Executable file suffix (normally "").
18719 # Additional compiler flags for building library objects.
18720 pic_flag=$lt_lt_prog_compiler_pic_RC
18723 # What is the maximum length of a command?
18724 max_cmd_len=$lt_cv_sys_max_cmd_len
18726 # Does compiler simultaneously support -c and -o options?
18727 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18729 # Must we lock files when doing compilation ?
18730 need_locks=$lt_need_locks
18732 # Do we need the lib prefix for modules?
18733 need_lib_prefix=$need_lib_prefix
18735 # Do we need a version for libraries?
18736 need_version=$need_version
18738 # Whether dlopen is supported.
18739 dlopen_support=$enable_dlopen
18741 # Whether dlopen of programs is supported.
18742 dlopen_self=$enable_dlopen_self
18744 # Whether dlopen of statically linked programs is supported.
18745 dlopen_self_static=$enable_dlopen_self_static
18747 # Compiler flag to prevent dynamic linking.
18748 link_static_flag=$lt_lt_prog_compiler_static_RC
18750 # Compiler flag to turn off builtin functions.
18751 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18753 # Compiler flag to allow reflexive dlopens.
18754 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18756 # Compiler flag to generate shared objects directly from archives.
18757 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18759 # Compiler flag to generate thread-safe objects.
18760 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18762 # Library versioning type.
18763 version_type=$version_type
18765 # Format of library name prefix.
18766 libname_spec=$lt_libname_spec
18768 # List of archive names. First name is the real one, the rest are links.
18769 # The last name is the one that the linker finds with -lNAME.
18770 library_names_spec=$lt_library_names_spec
18772 # The coded name of the library, if different from the real name.
18773 soname_spec=$lt_soname_spec
18775 # Commands used to build and install an old-style archive.
18777 old_archive_cmds=$lt_old_archive_cmds_RC
18778 old_postinstall_cmds=$lt_old_postinstall_cmds
18779 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18781 # Create an old-style archive from a shared archive.
18782 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18784 # Create a temporary old-style archive to link instead of a shared archive.
18785 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18787 # Commands used to build and install a shared archive.
18788 archive_cmds=$lt_archive_cmds_RC
18789 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18790 postinstall_cmds=$lt_postinstall_cmds
18791 postuninstall_cmds=$lt_postuninstall_cmds
18793 # Commands used to build a loadable module (assumed same as above if empty)
18794 module_cmds=$lt_module_cmds_RC
18795 module_expsym_cmds=$lt_module_expsym_cmds_RC
18797 # Commands to strip libraries.
18798 old_striplib=$lt_old_striplib
18799 striplib=$lt_striplib
18801 # Dependencies to place before the objects being linked to create a
18803 predep_objects=$lt_predep_objects_RC
18805 # Dependencies to place after the objects being linked to create a
18807 postdep_objects=$lt_postdep_objects_RC
18809 # Dependencies to place before the objects being linked to create a
18811 predeps=$lt_predeps_RC
18813 # Dependencies to place after the objects being linked to create a
18815 postdeps=$lt_postdeps_RC
18817 # The library search path used internally by the compiler when linking
18818 # a shared library.
18819 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18821 # Method to check whether dependent libraries are shared objects.
18822 deplibs_check_method=$lt_deplibs_check_method
18824 # Command to use when deplibs_check_method == file_magic.
18825 file_magic_cmd=$lt_file_magic_cmd
18827 # Flag that allows shared libraries with undefined symbols to be built.
18828 allow_undefined_flag=$lt_allow_undefined_flag_RC
18830 # Flag that forces no undefined symbols.
18831 no_undefined_flag=$lt_no_undefined_flag_RC
18833 # Commands used to finish a libtool library installation in a directory.
18834 finish_cmds=$lt_finish_cmds
18836 # Same as above, but a single script fragment to be evaled but not shown.
18837 finish_eval=$lt_finish_eval
18839 # Take the output of nm and produce a listing of raw symbols and C names.
18840 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18842 # Transform the output of nm in a proper C declaration
18843 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18845 # Transform the output of nm in a C name address pair
18846 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18848 # This is the shared library runtime path variable.
18849 runpath_var=$runpath_var
18851 # This is the shared library path variable.
18852 shlibpath_var=$shlibpath_var
18854 # Is shlibpath searched before the hard-coded library search path?
18855 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18857 # How to hardcode a shared library path into an executable.
18858 hardcode_action=$hardcode_action_RC
18860 # Whether we should hardcode library paths into libraries.
18861 hardcode_into_libs=$hardcode_into_libs
18863 # Flag to hardcode \$libdir into a binary during linking.
18864 # This must work even if \$libdir does not exist.
18865 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18867 # If ld is used when linking, flag to hardcode \$libdir into
18868 # a binary during linking. This must work even if \$libdir does
18870 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18872 # Whether we need a single -rpath flag with a separated argument.
18873 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18875 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18876 # resulting binary.
18877 hardcode_direct=$hardcode_direct_RC
18879 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18880 # resulting binary.
18881 hardcode_minus_L=$hardcode_minus_L_RC
18883 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18884 # the resulting binary.
18885 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18887 # Set to yes if building a shared library automatically hardcodes DIR into the library
18888 # and all subsequent libraries and executables linked against it.
18889 hardcode_automatic=$hardcode_automatic_RC
18891 # Variables whose values should be saved in libtool wrapper scripts and
18892 # restored at relink time.
18893 variables_saved_for_relink="$variables_saved_for_relink"
18895 # Whether libtool must link a program against all its dependency libraries.
18896 link_all_deplibs=$link_all_deplibs_RC
18898 # Compile-time system search path for libraries
18899 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18901 # Run-time system search path for libraries
18902 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18904 # Fix the shell variable \$srcfile for the compiler.
18905 fix_srcfile_path="$fix_srcfile_path_RC"
18907 # Set to yes if exported symbols are required.
18908 always_export_symbols=$always_export_symbols_RC
18910 # The commands to list exported symbols.
18911 export_symbols_cmds=$lt_export_symbols_cmds_RC
18913 # The commands to extract the exported symbol list from a shared archive.
18914 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18916 # Symbols that should not be listed in the preloaded symbols.
18917 exclude_expsyms=$lt_exclude_expsyms_RC
18919 # Symbols that must always be exported.
18920 include_expsyms=$lt_include_expsyms_RC
18922 # ### END LIBTOOL TAG CONFIG: $tagname
18928 # If there is no Makefile yet, we rely on a make rule to execute
18929 # `config.status --recheck' to rerun these tests and create the
18930 # libtool script then.
18931 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18932 if test -f "$ltmain_in"; then
18933 test -f Makefile && make "$ltmain"
18939 ac_cpp='$CPP $CPPFLAGS'
18940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18949 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18950 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18951 { (exit 1); exit 1; }; }
18955 # Append the new tag name to the list of available tags.
18956 if test -n "$tagname" ; then
18957 available_tags="$available_tags $tagname"
18963 # Now substitute the updated list of available tags.
18964 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18965 mv "${ofile}T" "$ofile"
18969 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18970 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18971 { (exit 1); exit 1; }; }
18977 # This can be used to rebuild libtool when needed
18978 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18980 # Always use our own libtool.
18981 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18983 # Prevent multiple expansion
19005 # declare the modules (no optional module)
19007 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19008 ACLOCAL="$ACLOCAL -I acmacro"
19012 ac_cpp='$CPP $CPPFLAGS'
19013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19016 if test -n "$ac_tool_prefix"; then
19017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19018 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19019 echo "$as_me:$LINENO: checking for $ac_word" >&5
19020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19021 if test "${ac_cv_prog_CC+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19024 if test -n "$CC"; then
19025 ac_cv_prog_CC="$CC" # Let the user override the test.
19027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19028 for as_dir in $PATH
19031 test -z "$as_dir" && as_dir=.
19032 for ac_exec_ext in '' $ac_executable_extensions; do
19033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19034 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19044 if test -n "$CC"; then
19045 echo "$as_me:$LINENO: result: $CC" >&5
19046 echo "${ECHO_T}$CC" >&6
19048 echo "$as_me:$LINENO: result: no" >&5
19049 echo "${ECHO_T}no" >&6
19053 if test -z "$ac_cv_prog_CC"; then
19055 # Extract the first word of "gcc", so it can be a program name with args.
19056 set dummy gcc; ac_word=$2
19057 echo "$as_me:$LINENO: checking for $ac_word" >&5
19058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 if test -n "$ac_ct_CC"; then
19063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19066 for as_dir in $PATH
19069 test -z "$as_dir" && as_dir=.
19070 for ac_exec_ext in '' $ac_executable_extensions; do
19071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19072 ac_cv_prog_ac_ct_CC="gcc"
19073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19082 if test -n "$ac_ct_CC"; then
19083 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19084 echo "${ECHO_T}$ac_ct_CC" >&6
19086 echo "$as_me:$LINENO: result: no" >&5
19087 echo "${ECHO_T}no" >&6
19092 CC="$ac_cv_prog_CC"
19095 if test -z "$CC"; then
19096 if test -n "$ac_tool_prefix"; then
19097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19098 set dummy ${ac_tool_prefix}cc; ac_word=$2
19099 echo "$as_me:$LINENO: checking for $ac_word" >&5
19100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19101 if test "${ac_cv_prog_CC+set}" = set; then
19102 echo $ECHO_N "(cached) $ECHO_C" >&6
19104 if test -n "$CC"; then
19105 ac_cv_prog_CC="$CC" # Let the user override the test.
19107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19108 for as_dir in $PATH
19111 test -z "$as_dir" && as_dir=.
19112 for ac_exec_ext in '' $ac_executable_extensions; do
19113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19114 ac_cv_prog_CC="${ac_tool_prefix}cc"
19115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19124 if test -n "$CC"; then
19125 echo "$as_me:$LINENO: result: $CC" >&5
19126 echo "${ECHO_T}$CC" >&6
19128 echo "$as_me:$LINENO: result: no" >&5
19129 echo "${ECHO_T}no" >&6
19133 if test -z "$ac_cv_prog_CC"; then
19135 # Extract the first word of "cc", so it can be a program name with args.
19136 set dummy cc; ac_word=$2
19137 echo "$as_me:$LINENO: checking for $ac_word" >&5
19138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 if test -n "$ac_ct_CC"; then
19143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19146 for as_dir in $PATH
19149 test -z "$as_dir" && as_dir=.
19150 for ac_exec_ext in '' $ac_executable_extensions; do
19151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19152 ac_cv_prog_ac_ct_CC="cc"
19153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19162 if test -n "$ac_ct_CC"; then
19163 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19164 echo "${ECHO_T}$ac_ct_CC" >&6
19166 echo "$as_me:$LINENO: result: no" >&5
19167 echo "${ECHO_T}no" >&6
19172 CC="$ac_cv_prog_CC"
19176 if test -z "$CC"; then
19177 # Extract the first word of "cc", so it can be a program name with args.
19178 set dummy cc; ac_word=$2
19179 echo "$as_me:$LINENO: checking for $ac_word" >&5
19180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19181 if test "${ac_cv_prog_CC+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 if test -n "$CC"; then
19185 ac_cv_prog_CC="$CC" # Let the user override the test.
19187 ac_prog_rejected=no
19188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19189 for as_dir in $PATH
19192 test -z "$as_dir" && as_dir=.
19193 for ac_exec_ext in '' $ac_executable_extensions; do
19194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19196 ac_prog_rejected=yes
19200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19206 if test $ac_prog_rejected = yes; then
19207 # We found a bogon in the path, so make sure we never use it.
19208 set dummy $ac_cv_prog_CC
19210 if test $# != 0; then
19211 # We chose a different compiler from the bogus one.
19212 # However, it has the same basename, so the bogon will be chosen
19213 # first if we set CC to just the basename; use the full file name.
19215 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19221 if test -n "$CC"; then
19222 echo "$as_me:$LINENO: result: $CC" >&5
19223 echo "${ECHO_T}$CC" >&6
19225 echo "$as_me:$LINENO: result: no" >&5
19226 echo "${ECHO_T}no" >&6
19230 if test -z "$CC"; then
19231 if test -n "$ac_tool_prefix"; then
19234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19236 echo "$as_me:$LINENO: checking for $ac_word" >&5
19237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19238 if test "${ac_cv_prog_CC+set}" = set; then
19239 echo $ECHO_N "(cached) $ECHO_C" >&6
19241 if test -n "$CC"; then
19242 ac_cv_prog_CC="$CC" # Let the user override the test.
19244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19245 for as_dir in $PATH
19248 test -z "$as_dir" && as_dir=.
19249 for ac_exec_ext in '' $ac_executable_extensions; do
19250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19251 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19261 if test -n "$CC"; then
19262 echo "$as_me:$LINENO: result: $CC" >&5
19263 echo "${ECHO_T}$CC" >&6
19265 echo "$as_me:$LINENO: result: no" >&5
19266 echo "${ECHO_T}no" >&6
19269 test -n "$CC" && break
19272 if test -z "$CC"; then
19276 # Extract the first word of "$ac_prog", so it can be a program name with args.
19277 set dummy $ac_prog; ac_word=$2
19278 echo "$as_me:$LINENO: checking for $ac_word" >&5
19279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19281 echo $ECHO_N "(cached) $ECHO_C" >&6
19283 if test -n "$ac_ct_CC"; then
19284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19287 for as_dir in $PATH
19290 test -z "$as_dir" && as_dir=.
19291 for ac_exec_ext in '' $ac_executable_extensions; do
19292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19293 ac_cv_prog_ac_ct_CC="$ac_prog"
19294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19303 if test -n "$ac_ct_CC"; then
19304 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19305 echo "${ECHO_T}$ac_ct_CC" >&6
19307 echo "$as_me:$LINENO: result: no" >&5
19308 echo "${ECHO_T}no" >&6
19311 test -n "$ac_ct_CC" && break
19320 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19321 See \`config.log' for more details." >&5
19322 echo "$as_me: error: no acceptable C compiler found in \$PATH
19323 See \`config.log' for more details." >&2;}
19324 { (exit 1); exit 1; }; }
19326 # Provide some information about the compiler.
19327 echo "$as_me:$LINENO:" \
19328 "checking for C compiler version" >&5
19329 ac_compiler=`set X $ac_compile; echo $2`
19330 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19331 (eval $ac_compiler --version </dev/null >&5) 2>&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }
19335 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19336 (eval $ac_compiler -v </dev/null >&5) 2>&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }
19340 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19341 (eval $ac_compiler -V </dev/null >&5) 2>&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }
19346 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19347 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19348 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19351 cat >conftest.$ac_ext <<_ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19369 rm -f conftest.$ac_objext
19370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19371 (eval $ac_compile) 2>conftest.er1
19373 grep -v '^ *+' conftest.er1 >conftest.err
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; } &&
19384 { ac_try='test -s conftest.$ac_objext'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
19390 ac_compiler_gnu=yes
19392 echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19401 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19402 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19403 GCC=`test $ac_compiler_gnu = yes && echo yes`
19404 ac_test_CFLAGS=${CFLAGS+set}
19405 ac_save_CFLAGS=$CFLAGS
19407 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19409 if test "${ac_cv_prog_cc_g+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 cat >conftest.$ac_ext <<_ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h. */
19427 rm -f conftest.$ac_objext
19428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19429 (eval $ac_compile) 2>conftest.er1
19431 grep -v '^ *+' conftest.er1 >conftest.err
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } &&
19436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest.$ac_objext'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 ac_cv_prog_cc_g=yes
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19457 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19458 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19459 if test "$ac_test_CFLAGS" = set; then
19460 CFLAGS=$ac_save_CFLAGS
19461 elif test $ac_cv_prog_cc_g = yes; then
19462 if test "$GCC" = yes; then
19468 if test "$GCC" = yes; then
19474 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19475 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19476 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19479 ac_cv_prog_cc_stdc=no
19481 cat >conftest.$ac_ext <<_ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19487 #include <stdarg.h>
19489 #include <sys/types.h>
19490 #include <sys/stat.h>
19491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19492 struct buf { int x; };
19493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19494 static char *e (p, i)
19500 static char *f (char * (*g) (char **, int), char **p, ...)
19505 s = g (p, va_arg (v,int));
19510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19511 function prototypes and stuff, but not '\xHH' hex character constants.
19512 These don't provoke an error unfortunately, instead are silently treated
19513 as 'x'. The following induces an error, until -std1 is added to get
19514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19515 array size at least. It's necessary to write '\x00'==0 to get something
19516 that's true only with -std1. */
19517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19519 int test (int i, double x);
19520 struct s1 {int (*f) (int a);};
19521 struct s2 {int (*f) (double a);};
19522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19528 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19533 # Don't try gcc -ansi; that turns off useful extensions and
19534 # breaks some systems' header files.
19535 # AIX -qlanglvl=ansi
19536 # Ultrix and OSF/1 -std1
19537 # HP-UX 10.20 and later -Ae
19538 # HP-UX older versions -Aa -D_HPUX_SOURCE
19539 # SVR4 -Xc -D__EXTENSIONS__
19540 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19542 CC="$ac_save_CC $ac_arg"
19543 rm -f conftest.$ac_objext
19544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19545 (eval $ac_compile) 2>conftest.er1
19547 grep -v '^ *+' conftest.er1 >conftest.err
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 ac_cv_prog_cc_stdc=$ac_arg
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19571 rm -f conftest.err conftest.$ac_objext
19573 rm -f conftest.$ac_ext conftest.$ac_objext
19578 case "x$ac_cv_prog_cc_stdc" in
19580 echo "$as_me:$LINENO: result: none needed" >&5
19581 echo "${ECHO_T}none needed" >&6 ;;
19583 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19584 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19585 CC="$CC $ac_cv_prog_cc_stdc" ;;
19588 # Some people use a C++ compiler to compile C. Since we use `exit',
19589 # in C++ we need to declare it. In case someone uses the same compiler
19590 # for both compiling C and C++ we need to have the C++ compiler decide
19591 # the declaration of exit, since it's the most demanding environment.
19592 cat >conftest.$ac_ext <<_ACEOF
19593 #ifndef __cplusplus
19597 rm -f conftest.$ac_objext
19598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19599 (eval $ac_compile) 2>conftest.er1
19601 grep -v '^ *+' conftest.er1 >conftest.err
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } &&
19606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; } &&
19612 { ac_try='test -s conftest.$ac_objext'
19613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614 (eval $ac_try) 2>&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; }; then
19618 for ac_declaration in \
19620 'extern "C" void std::exit (int) throw (); using std::exit;' \
19621 'extern "C" void std::exit (int); using std::exit;' \
19622 'extern "C" void exit (int) throw ();' \
19623 'extern "C" void exit (int);' \
19626 cat >conftest.$ac_ext <<_ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h. */
19633 #include <stdlib.h>
19642 rm -f conftest.$ac_objext
19643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19644 (eval $ac_compile) 2>conftest.er1
19646 grep -v '^ *+' conftest.er1 >conftest.err
19648 cat conftest.err >&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); } &&
19651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; } &&
19657 { ac_try='test -s conftest.$ac_objext'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; }; then
19665 echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19671 cat >conftest.$ac_ext <<_ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h. */
19686 rm -f conftest.$ac_objext
19687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19688 (eval $ac_compile) 2>conftest.er1
19690 grep -v '^ *+' conftest.er1 >conftest.err
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } &&
19695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697 (eval $ac_try) 2>&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); }; } &&
19701 { ac_try='test -s conftest.$ac_objext'
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; }; then
19709 echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19716 if test -n "$ac_declaration"; then
19717 echo '#ifdef __cplusplus' >>confdefs.h
19718 echo $ac_declaration >>confdefs.h
19719 echo '#endif' >>confdefs.h
19723 echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19729 ac_cpp='$CPP $CPPFLAGS'
19730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19734 depcc="$CC" am_compiler_list=
19736 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19737 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19738 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19742 # We make a subdir and do the tests there. Otherwise we can end up
19743 # making bogus files that we don't know about and never remove. For
19744 # instance it was reported that on HP-UX the gcc test will end up
19745 # making a dummy file named `D' -- because `-MD' means `put the output
19748 # Copy depcomp to subdir because otherwise we won't find it if we're
19749 # using a relative directory.
19750 cp "$am_depcomp" conftest.dir
19752 # We will build objects and dependencies in a subdirectory because
19753 # it helps to detect inapplicable dependency modes. For instance
19754 # both Tru64's cc and ICC support -MD to output dependencies as a
19755 # side effect of compilation, but ICC will put the dependencies in
19756 # the current directory while Tru64 will put them in the object
19760 am_cv_CC_dependencies_compiler_type=none
19761 if test "$am_compiler_list" = ""; then
19762 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19764 for depmode in $am_compiler_list; do
19765 # Setup a source with many dependencies, because some compilers
19766 # like to wrap large dependency lists on column 80 (with \), and
19767 # we should not choose a depcomp mode which is confused by this.
19769 # We need to recreate these files for each test, as the compiler may
19770 # overwrite some of them when testing with obscure command lines.
19771 # This happens at least with the AIX C compiler.
19773 for i in 1 2 3 4 5 6; do
19774 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19775 : > sub/conftst$i.h
19777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19781 # after this tag, mechanisms are not by side-effect, so they'll
19782 # only be used when explicitly requested
19783 if test "x$enable_dependency_tracking" = xyes; then
19791 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19792 # mode. It turns out that the SunPro C++ compiler does not properly
19793 # handle `-M -o', and we need to detect this.
19794 if depmode=$depmode \
19795 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19797 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19798 >/dev/null 2>conftest.err &&
19799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19800 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19802 # icc doesn't choke on unknown options, it will just issue warnings
19803 # (even with -Werror). So we grep stderr for any message
19804 # that says an option was ignored.
19805 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19806 am_cv_CC_dependencies_compiler_type=$depmode
19813 rm -rf conftest.dir
19815 am_cv_CC_dependencies_compiler_type=none
19819 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19820 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19821 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19826 test "x$enable_dependency_tracking" != xno \
19827 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19828 am__fastdepCC_TRUE=
19829 am__fastdepCC_FALSE='#'
19831 am__fastdepCC_TRUE='#'
19832 am__fastdepCC_FALSE=
19836 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19837 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19840 echo timestamp > conftest.file
19841 # Do `set' in a subshell so we don't clobber the current shell's
19842 # arguments. Must try -L first in case configure is actually a
19843 # symlink; some systems play weird games with the mod time of symlinks
19844 # (eg FreeBSD returns the mod time of the symlink's containing
19847 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19848 if test "$*" = "X"; then
19850 set X `ls -t $srcdir/configure conftest.file`
19852 rm -f conftest.file
19853 if test "$*" != "X $srcdir/configure conftest.file" \
19854 && test "$*" != "X conftest.file $srcdir/configure"; then
19856 # If neither matched, then we have a broken ls. This can happen
19857 # if, for instance, CONFIG_SHELL is bash and it inherits a
19858 # broken ls alias from the environment. This has actually
19859 # happened. Such a system could not be considered "sane".
19860 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19861 alias in your environment" >&5
19862 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19863 alias in your environment" >&2;}
19864 { (exit 1); exit 1; }; }
19867 test "$2" = conftest.file
19873 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19874 Check your system clock" >&5
19875 echo "$as_me: error: newly created file is older than distributed files!
19876 Check your system clock" >&2;}
19877 { (exit 1); exit 1; }; }
19879 echo "$as_me:$LINENO: result: yes" >&5
19880 echo "${ECHO_T}yes" >&6
19881 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19882 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19883 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19884 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19887 cat >conftest.make <<\_ACEOF
19889 @echo 'ac_maketemp="$(MAKE)"'
19891 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19892 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19893 if test -n "$ac_maketemp"; then
19894 eval ac_cv_prog_make_${ac_make}_set=yes
19896 eval ac_cv_prog_make_${ac_make}_set=no
19898 rm -f conftest.make
19900 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19901 echo "$as_me:$LINENO: result: yes" >&5
19902 echo "${ECHO_T}yes" >&6
19905 echo "$as_me:$LINENO: result: no" >&5
19906 echo "${ECHO_T}no" >&6
19907 SET_MAKE="MAKE=${MAKE-make}"
19911 # Check architecture signature
19913 # Check for the architecture
19914 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19915 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19916 if test "${ac_cv_c_bigendian+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 # See if sys/param.h defines the BYTE_ORDER macro.
19920 cat >conftest.$ac_ext <<_ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19926 #include <sys/types.h>
19927 #include <sys/param.h>
19932 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19933 bogus endian macros
19940 rm -f conftest.$ac_objext
19941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19942 (eval $ac_compile) 2>conftest.er1
19944 grep -v '^ *+' conftest.er1 >conftest.err
19946 cat conftest.err >&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } &&
19949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; } &&
19955 { ac_try='test -s conftest.$ac_objext'
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; }; then
19961 # It does; now see whether it defined to BIG_ENDIAN or not.
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 #include <sys/types.h>
19969 #include <sys/param.h>
19974 #if BYTE_ORDER != BIG_ENDIAN
19982 rm -f conftest.$ac_objext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19984 (eval $ac_compile) 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
19991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993 (eval $ac_try) 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; } &&
19997 { ac_try='test -s conftest.$ac_objext'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20003 ac_cv_c_bigendian=yes
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 ac_cv_c_bigendian=no
20010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 # It does not; compile a test program.
20016 if test "$cross_compiling" = yes; then
20017 # try to guess the endianness by grepping values into an object file
20018 ac_cv_c_bigendian=unknown
20019 cat >conftest.$ac_ext <<_ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20025 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20026 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20027 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20028 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20029 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20030 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20034 _ascii (); _ebcdic ();
20039 rm -f conftest.$ac_objext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20041 (eval $ac_compile) 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; } &&
20054 { ac_try='test -s conftest.$ac_objext'
20055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056 (eval $ac_try) 2>&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; }; then
20060 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20061 ac_cv_c_bigendian=yes
20063 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20064 if test "$ac_cv_c_bigendian" = unknown; then
20065 ac_cv_c_bigendian=no
20067 # finding both strings is unlikely to happen, but who knows?
20068 ac_cv_c_bigendian=unknown
20072 echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20078 cat >conftest.$ac_ext <<_ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20087 /* Are we little or big endian? From Harbison&Steele. */
20091 char c[sizeof (long)];
20094 exit (u.c[sizeof (long) - 1] == 1);
20097 rm -f conftest$ac_exeext
20098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20099 (eval $ac_link) 2>&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; }; then
20108 ac_cv_c_bigendian=no
20110 echo "$as_me: program exited with status $ac_status" >&5
20111 echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20114 ( exit $ac_status )
20115 ac_cv_c_bigendian=yes
20117 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20122 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20123 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20124 case $ac_cv_c_bigendian in
20130 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
20131 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
20132 { (exit 1); exit 1; }; } ;;
20136 cat >>confdefs.h <<_ACEOF
20137 #define GRAS_BIGENDIAN $endian
20141 echo "$as_me:$LINENO: checking size of char" >&5
20142 echo $ECHO_N "checking size of char... $ECHO_C" >&6
20143 if test "${ac_cv_sizeof_char+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20147 cat >conftest.$ac_ext <<_ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 #include "confdefs.h"
20154 #include <sys/types.h>
20160 switch (0) case 0: case (sizeof (char) == $ac_size):;
20165 rm -f conftest.$ac_objext
20166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20167 (eval $ac_compile) 2>conftest.er1
20169 grep -v '^ *+' conftest.er1 >conftest.err
20171 cat conftest.err >&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } &&
20174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176 (eval $ac_try) 2>&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); }; } &&
20180 { ac_try='test -s conftest.$ac_objext'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; }; then
20186 ac_cv_sizeof_char=$ac_size
20188 echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20193 if test x$ac_cv_sizeof_char != x ; then break; fi
20199 unspecif=$ac_cv_sizeof_char
20200 if test x$unspecif = x ; then
20201 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
20202 echo "$as_me: error: cannot determine a size for char" >&2;}
20203 { (exit 1); exit 1; }; }
20206 if test "${ac_cv_sizeof_signed_char+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20209 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20210 cat >conftest.$ac_ext <<_ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 #include "confdefs.h"
20217 #include <sys/types.h>
20223 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
20228 rm -f conftest.$ac_objext
20229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20230 (eval $ac_compile) 2>conftest.er1
20232 grep -v '^ *+' conftest.er1 >conftest.err
20234 cat conftest.err >&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
20237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; } &&
20243 { ac_try='test -s conftest.$ac_objext'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; }; then
20249 ac_cv_sizeof_signed_char=$ac_size
20251 echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20256 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
20262 signed=$ac_cv_sizeof_signed_char
20263 if test x$signed = x ; then
20264 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
20265 echo "$as_me: error: cannot determine a size for signed char" >&2;}
20266 { (exit 1); exit 1; }; }
20268 if test x$unspecif != x$signed ; then
20269 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
20270 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
20271 { (exit 1); exit 1; }; }
20274 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20278 cat >conftest.$ac_ext <<_ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 #include "confdefs.h"
20285 #include <sys/types.h>
20291 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
20296 rm -f conftest.$ac_objext
20297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20298 (eval $ac_compile) 2>conftest.er1
20300 grep -v '^ *+' conftest.er1 >conftest.err
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } &&
20305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; } &&
20311 { ac_try='test -s conftest.$ac_objext'
20312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313 (eval $ac_try) 2>&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; }; then
20317 ac_cv_sizeof_unsigned_char=$ac_size
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20324 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
20330 unsigned=$ac_cv_sizeof_unsigned_char
20331 if test x$unsigned = x ; then
20332 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
20333 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
20334 { (exit 1); exit 1; }; }
20336 if test x$unsigned != x$signed ; then
20337 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
20338 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
20339 { (exit 1); exit 1; }; }
20342 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
20343 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
20345 cat >>confdefs.h <<_ACEOF
20346 #define SIZEOF_CHAR $ac_cv_sizeof_unsigned_char
20350 echo "$as_me:$LINENO: checking size of short int" >&5
20351 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
20352 if test "${ac_cv_sizeof_short_int+set}" = set; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
20355 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20356 cat >conftest.$ac_ext <<_ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20362 #include "confdefs.h"
20363 #include <sys/types.h>
20369 switch (0) case 0: case (sizeof (short int) == $ac_size):;
20374 rm -f conftest.$ac_objext
20375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20376 (eval $ac_compile) 2>conftest.er1
20378 grep -v '^ *+' conftest.er1 >conftest.err
20380 cat conftest.err >&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } &&
20383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; } &&
20389 { ac_try='test -s conftest.$ac_objext'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 ac_cv_sizeof_short_int=$ac_size
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20402 if test x$ac_cv_sizeof_short_int != x ; then break; fi
20408 unspecif=$ac_cv_sizeof_short_int
20409 if test x$unspecif = x ; then
20410 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
20411 echo "$as_me: error: cannot determine a size for short int" >&2;}
20412 { (exit 1); exit 1; }; }
20415 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
20416 echo $ECHO_N "(cached) $ECHO_C" >&6
20418 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20419 cat >conftest.$ac_ext <<_ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20425 #include "confdefs.h"
20426 #include <sys/types.h>
20432 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
20437 rm -f conftest.$ac_objext
20438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20439 (eval $ac_compile) 2>conftest.er1
20441 grep -v '^ *+' conftest.er1 >conftest.err
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } &&
20446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448 (eval $ac_try) 2>&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; } &&
20452 { ac_try='test -s conftest.$ac_objext'
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }; then
20458 ac_cv_sizeof_signed_short_int=$ac_size
20460 echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20465 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
20471 signed=$ac_cv_sizeof_signed_short_int
20472 if test x$signed = x ; then
20473 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
20474 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
20475 { (exit 1); exit 1; }; }
20477 if test x$unspecif != x$signed ; then
20478 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
20479 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
20480 { (exit 1); exit 1; }; }
20483 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
20486 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20487 cat >conftest.$ac_ext <<_ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20493 #include "confdefs.h"
20494 #include <sys/types.h>
20500 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
20505 rm -f conftest.$ac_objext
20506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20507 (eval $ac_compile) 2>conftest.er1
20509 grep -v '^ *+' conftest.er1 >conftest.err
20511 cat conftest.err >&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } &&
20514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; } &&
20520 { ac_try='test -s conftest.$ac_objext'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; }; then
20526 ac_cv_sizeof_unsigned_short_int=$ac_size
20528 echo "$as_me: failed program was:" >&5
20529 sed 's/^/| /' conftest.$ac_ext >&5
20532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20533 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
20539 unsigned=$ac_cv_sizeof_unsigned_short_int
20540 if test x$unsigned = x ; then
20541 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
20542 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
20543 { (exit 1); exit 1; }; }
20545 if test x$unsigned != x$signed ; then
20546 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
20547 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
20548 { (exit 1); exit 1; }; }
20551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
20552 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
20554 cat >>confdefs.h <<_ACEOF
20555 #define SIZEOF_SHORT_INT $ac_cv_sizeof_unsigned_short_int
20559 echo "$as_me:$LINENO: checking size of int" >&5
20560 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20561 if test "${ac_cv_sizeof_int+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20565 cat >conftest.$ac_ext <<_ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h. */
20571 #include "confdefs.h"
20572 #include <sys/types.h>
20578 switch (0) case 0: case (sizeof (int) == $ac_size):;
20583 rm -f conftest.$ac_objext
20584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20585 (eval $ac_compile) 2>conftest.er1
20587 grep -v '^ *+' conftest.er1 >conftest.err
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } &&
20592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; } &&
20598 { ac_try='test -s conftest.$ac_objext'
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; }; then
20604 ac_cv_sizeof_int=$ac_size
20606 echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20611 if test x$ac_cv_sizeof_int != x ; then break; fi
20617 unspecif=$ac_cv_sizeof_int
20618 if test x$unspecif = x ; then
20619 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
20620 echo "$as_me: error: cannot determine a size for int" >&2;}
20621 { (exit 1); exit 1; }; }
20624 if test "${ac_cv_sizeof_signed_int+set}" = set; then
20625 echo $ECHO_N "(cached) $ECHO_C" >&6
20627 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20628 cat >conftest.$ac_ext <<_ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h. */
20634 #include "confdefs.h"
20635 #include <sys/types.h>
20641 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
20646 rm -f conftest.$ac_objext
20647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20648 (eval $ac_compile) 2>conftest.er1
20650 grep -v '^ *+' conftest.er1 >conftest.err
20652 cat conftest.err >&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } &&
20655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20657 (eval $ac_try) 2>&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; } &&
20661 { ac_try='test -s conftest.$ac_objext'
20662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663 (eval $ac_try) 2>&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); }; }; then
20667 ac_cv_sizeof_signed_int=$ac_size
20669 echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20674 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
20680 signed=$ac_cv_sizeof_signed_int
20681 if test x$signed = x ; then
20682 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
20683 echo "$as_me: error: cannot determine a size for signed int" >&2;}
20684 { (exit 1); exit 1; }; }
20686 if test x$unspecif != x$signed ; then
20687 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
20688 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
20689 { (exit 1); exit 1; }; }
20692 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20695 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20696 cat >conftest.$ac_ext <<_ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20702 #include "confdefs.h"
20703 #include <sys/types.h>
20709 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
20714 rm -f conftest.$ac_objext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20716 (eval $ac_compile) 2>conftest.er1
20718 grep -v '^ *+' conftest.er1 >conftest.err
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } &&
20723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725 (eval $ac_try) 2>&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; } &&
20729 { ac_try='test -s conftest.$ac_objext'
20730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731 (eval $ac_try) 2>&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; }; then
20735 ac_cv_sizeof_unsigned_int=$ac_size
20737 echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20742 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
20748 unsigned=$ac_cv_sizeof_unsigned_int
20749 if test x$unsigned = x ; then
20750 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
20751 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
20752 { (exit 1); exit 1; }; }
20754 if test x$unsigned != x$signed ; then
20755 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
20756 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
20757 { (exit 1); exit 1; }; }
20760 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
20761 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
20763 cat >>confdefs.h <<_ACEOF
20764 #define SIZEOF_INT $ac_cv_sizeof_unsigned_int
20768 echo "$as_me:$LINENO: checking size of long int" >&5
20769 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
20770 if test "${ac_cv_sizeof_long_int+set}" = set; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20773 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20774 cat >conftest.$ac_ext <<_ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20780 #include "confdefs.h"
20781 #include <sys/types.h>
20787 switch (0) case 0: case (sizeof (long int) == $ac_size):;
20792 rm -f conftest.$ac_objext
20793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20794 (eval $ac_compile) 2>conftest.er1
20796 grep -v '^ *+' conftest.er1 >conftest.err
20798 cat conftest.err >&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } &&
20801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; } &&
20807 { ac_try='test -s conftest.$ac_objext'
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; }; then
20813 ac_cv_sizeof_long_int=$ac_size
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20820 if test x$ac_cv_sizeof_long_int != x ; then break; fi
20826 unspecif=$ac_cv_sizeof_long_int
20827 if test x$unspecif = x ; then
20828 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
20829 echo "$as_me: error: cannot determine a size for long int" >&2;}
20830 { (exit 1); exit 1; }; }
20833 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
20836 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20837 cat >conftest.$ac_ext <<_ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20843 #include "confdefs.h"
20844 #include <sys/types.h>
20850 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
20855 rm -f conftest.$ac_objext
20856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20857 (eval $ac_compile) 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } &&
20864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; } &&
20870 { ac_try='test -s conftest.$ac_objext'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876 ac_cv_sizeof_signed_long_int=$ac_size
20878 echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20883 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
20889 signed=$ac_cv_sizeof_signed_long_int
20890 if test x$signed = x ; then
20891 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
20892 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
20893 { (exit 1); exit 1; }; }
20895 if test x$unspecif != x$signed ; then
20896 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
20897 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
20898 { (exit 1); exit 1; }; }
20901 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20905 cat >conftest.$ac_ext <<_ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 #include "confdefs.h"
20912 #include <sys/types.h>
20918 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
20923 rm -f conftest.$ac_objext
20924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20925 (eval $ac_compile) 2>conftest.er1
20927 grep -v '^ *+' conftest.er1 >conftest.err
20929 cat conftest.err >&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } &&
20932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934 (eval $ac_try) 2>&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; } &&
20938 { ac_try='test -s conftest.$ac_objext'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; }; then
20944 ac_cv_sizeof_unsigned_long_int=$ac_size
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20951 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
20957 unsigned=$ac_cv_sizeof_unsigned_long_int
20958 if test x$unsigned = x ; then
20959 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
20960 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
20961 { (exit 1); exit 1; }; }
20963 if test x$unsigned != x$signed ; then
20964 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
20965 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
20966 { (exit 1); exit 1; }; }
20969 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
20970 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
20972 cat >>confdefs.h <<_ACEOF
20973 #define SIZEOF_LONG_INT $ac_cv_sizeof_unsigned_long_int
20977 echo "$as_me:$LINENO: checking size of long long int" >&5
20978 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
20979 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20982 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20983 cat >conftest.$ac_ext <<_ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20989 #include "confdefs.h"
20990 #include <sys/types.h>
20996 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
21001 rm -f conftest.$ac_objext
21002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21003 (eval $ac_compile) 2>conftest.er1
21005 grep -v '^ *+' conftest.er1 >conftest.err
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } &&
21010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; } &&
21016 { ac_try='test -s conftest.$ac_objext'
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_cv_sizeof_long_long_int=$ac_size
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21029 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
21035 unspecif=$ac_cv_sizeof_long_long_int
21036 if test x$unspecif = x ; then
21037 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
21038 echo "$as_me: error: cannot determine a size for long long int" >&2;}
21039 { (exit 1); exit 1; }; }
21042 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
21043 echo $ECHO_N "(cached) $ECHO_C" >&6
21045 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 #include "confdefs.h"
21053 #include <sys/types.h>
21059 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
21064 rm -f conftest.$ac_objext
21065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21066 (eval $ac_compile) 2>conftest.er1
21068 grep -v '^ *+' conftest.er1 >conftest.err
21070 cat conftest.err >&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } &&
21073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; } &&
21079 { ac_try='test -s conftest.$ac_objext'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 ac_cv_sizeof_signed_long_long_int=$ac_size
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21092 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
21098 signed=$ac_cv_sizeof_signed_long_long_int
21099 if test x$signed = x ; then
21100 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
21101 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
21102 { (exit 1); exit 1; }; }
21104 if test x$unspecif != x$signed ; then
21105 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
21106 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
21107 { (exit 1); exit 1; }; }
21110 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21113 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21114 cat >conftest.$ac_ext <<_ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21120 #include "confdefs.h"
21121 #include <sys/types.h>
21127 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
21132 rm -f conftest.$ac_objext
21133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21134 (eval $ac_compile) 2>conftest.er1
21136 grep -v '^ *+' conftest.er1 >conftest.err
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } &&
21141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest.$ac_objext'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 ac_cv_sizeof_unsigned_long_long_int=$ac_size
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21160 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
21166 unsigned=$ac_cv_sizeof_unsigned_long_long_int
21167 if test x$unsigned = x ; then
21168 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
21169 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
21170 { (exit 1); exit 1; }; }
21172 if test x$unsigned != x$signed ; then
21173 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
21174 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
21175 { (exit 1); exit 1; }; }
21178 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
21179 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
21181 cat >>confdefs.h <<_ACEOF
21182 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
21188 echo "$as_me:$LINENO: checking size of void *" >&5
21189 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
21190 if test "${ac_cv_sizeof_void_p+set}" = set; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21194 cat >conftest.$ac_ext <<_ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21200 #include "confdefs.h"
21201 #include <sys/types.h>
21207 switch (0) case 0: case (sizeof (void *) == $ac_size):;
21212 rm -f conftest.$ac_objext
21213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21214 (eval $ac_compile) 2>conftest.er1
21216 grep -v '^ *+' conftest.er1 >conftest.err
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } &&
21221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223 (eval $ac_try) 2>&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; } &&
21227 { ac_try='test -s conftest.$ac_objext'
21228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229 (eval $ac_try) 2>&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; }; then
21233 ac_cv_sizeof_void_p=$ac_size
21235 echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21240 if test x$ac_cv_sizeof_void_p != x ; then break; fi
21246 if test x$ac_cv_sizeof_void_p = x ; then
21247 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
21248 echo "$as_me: error: cannot determine a size for void *" >&2;}
21249 { (exit 1); exit 1; }; }
21251 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21252 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
21254 cat >>confdefs.h <<_ACEOF
21255 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21259 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
21260 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
21261 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21265 cat >conftest.$ac_ext <<_ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 #include "confdefs.h"
21272 #include <sys/types.h>
21278 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
21283 rm -f conftest.$ac_objext
21284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21285 (eval $ac_compile) 2>conftest.er1
21287 grep -v '^ *+' conftest.er1 >conftest.err
21289 cat conftest.err >&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } &&
21292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; } &&
21298 { ac_try='test -s conftest.$ac_objext'
21299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300 (eval $ac_try) 2>&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); }; }; then
21304 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21311 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
21317 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
21318 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
21319 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
21320 { (exit 1); exit 1; }; }
21322 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
21323 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
21325 cat >>confdefs.h <<_ACEOF
21326 #define SIZEOF_VOID__P___VOID_ $ac_cv_sizeof_void_LpR_LvoidR
21331 echo "$as_me:$LINENO: checking size of float" >&5
21332 echo $ECHO_N "checking size of float... $ECHO_C" >&6
21333 if test "${ac_cv_sizeof_float+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21336 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21337 cat >conftest.$ac_ext <<_ACEOF
21340 cat confdefs.h >>conftest.$ac_ext
21341 cat >>conftest.$ac_ext <<_ACEOF
21342 /* end confdefs.h. */
21343 #include "confdefs.h"
21344 #include <sys/types.h>
21350 switch (0) case 0: case (sizeof (float) == $ac_size):;
21355 rm -f conftest.$ac_objext
21356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21357 (eval $ac_compile) 2>conftest.er1
21359 grep -v '^ *+' conftest.er1 >conftest.err
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } &&
21364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; } &&
21370 { ac_try='test -s conftest.$ac_objext'
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; }; then
21376 ac_cv_sizeof_float=$ac_size
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21383 if test x$ac_cv_sizeof_float != x ; then break; fi
21389 if test x$ac_cv_sizeof_float = x ; then
21390 { { echo "$as_me:$LINENO: error: cannot determine a size for float" >&5
21391 echo "$as_me: error: cannot determine a size for float" >&2;}
21392 { (exit 1); exit 1; }; }
21394 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
21395 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
21397 cat >>confdefs.h <<_ACEOF
21398 #define SIZEOF_FLOAT $ac_cv_sizeof_float
21402 echo "$as_me:$LINENO: checking size of double" >&5
21403 echo $ECHO_N "checking size of double... $ECHO_C" >&6
21404 if test "${ac_cv_sizeof_double+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21408 cat >conftest.$ac_ext <<_ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21414 #include "confdefs.h"
21415 #include <sys/types.h>
21421 switch (0) case 0: case (sizeof (double) == $ac_size):;
21426 rm -f conftest.$ac_objext
21427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21428 (eval $ac_compile) 2>conftest.er1
21430 grep -v '^ *+' conftest.er1 >conftest.err
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } &&
21435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; } &&
21441 { ac_try='test -s conftest.$ac_objext'
21442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443 (eval $ac_try) 2>&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; }; then
21447 ac_cv_sizeof_double=$ac_size
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21454 if test x$ac_cv_sizeof_double != x ; then break; fi
21460 if test x$ac_cv_sizeof_double = x ; then
21461 { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
21462 echo "$as_me: error: cannot determine a size for double" >&2;}
21463 { (exit 1); exit 1; }; }
21465 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21466 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
21468 cat >>confdefs.h <<_ACEOF
21469 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
21473 echo "$as_me:$LINENO: checking if floating point datatypes are IEEE 754 compliant" >&5
21474 echo $ECHO_N "checking if floating point datatypes are IEEE 754 compliant... $ECHO_C" >&6
21475 cat >conftest.$ac_ext <<_ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 #include "confdefs.h"
21484 unsigned char bytes[sizeof(double)];
21488 unsigned char bytes[sizeof(float)];
21495 memset(&doubleTester, 0, sizeof(doubleTester));
21496 memset(&floatTester, 0, sizeof(floatTester));
21498 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 1 : 0]=192;
21499 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 2 : 1] =
21500 (sizeof(double) == 4) ? 128 :
21501 (sizeof(double) == 8) ? 16 :
21502 (sizeof(double) == 16) ? 1 : 0;
21503 if (doubleTester.testFP != -4.0) return 1;
21505 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 1 : 0]=192;
21506 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 2 : 1] =
21507 (sizeof(float) == 4) ? 128 :
21508 (sizeof(float) == 8) ? 16 :
21509 (sizeof(float) == 16) ? 1 : 0;
21510 if (floatTester.testFP != -4.0) return 1;
21517 rm -f conftest.$ac_objext
21518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21519 (eval $ac_compile) 2>conftest.er1
21521 grep -v '^ *+' conftest.er1 >conftest.err
21523 cat conftest.err >&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } &&
21526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528 (eval $ac_try) 2>&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; } &&
21532 { ac_try='test -s conftest.$ac_objext'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21540 cat >>confdefs.h <<\_ACEOF
21546 echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21550 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21551 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21552 { (exit 1); exit 1; }; }
21554 rm -f conftest.err conftest.$ac_objext conftest.$ac_extecho "$as_me:$LINENO: result: $IEEE_FP" >&5
21555 echo "${ECHO_T}$IEEE_FP" >&6
21558 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
21559 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
21560 if test x$endian = x1 ; then
21566 trace="$trace_endian"
21567 trace="${trace}:${ac_cv_sizeof_char}.${ac_cv_sizeof_short_int}.${ac_cv_sizeof_int}.${ac_cv_sizeof_long_int}.${ac_cv_sizeof_long_long_int}"
21568 trace="${trace}:${ac_cv_sizeof_void_p}.${ac_cv_sizeof_void_LpR_LvoidR}"
21569 trace="${trace}:${ac_cv_sizeof_float}.${ac_cv_sizeof_double}"
21571 l:1.2.4.4.8:4.4:4.8) gras_arch=0; gras_arch_name=i386;;
21573 if test x$gras_arch = xunknown ; then
21574 echo "$as_me:$LINENO: result: damnit ($trace)" >&5
21575 echo "${ECHO_T}damnit ($trace)" >&6
21576 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
21577 Please report this architecture trace ($trace) and what it corresponds to." >&5
21578 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
21579 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
21580 { (exit 1); exit 1; }; }
21582 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
21584 cat >>confdefs.h <<_ACEOF
21585 #define GRAS_THISARCH_NAME "$gras_arch_name"
21589 cat >>confdefs.h <<_ACEOF
21590 #define GRAS_THISARCH $gras_arch
21593 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
21594 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
21597 # Checks for header files.
21598 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21599 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21600 if test "${ac_cv_header_stdc+set}" = set; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21603 cat >conftest.$ac_ext <<_ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 #include <stdlib.h>
21610 #include <stdarg.h>
21611 #include <string.h>
21622 rm -f conftest.$ac_objext
21623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21624 (eval $ac_compile) 2>conftest.er1
21626 grep -v '^ *+' conftest.er1 >conftest.err
21628 cat conftest.err >&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } &&
21631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633 (eval $ac_try) 2>&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; } &&
21637 { ac_try='test -s conftest.$ac_objext'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 ac_cv_header_stdc=yes
21645 echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21648 ac_cv_header_stdc=no
21650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21652 if test $ac_cv_header_stdc = yes; then
21653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21654 cat >conftest.$ac_ext <<_ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 #include <string.h>
21663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21664 $EGREP "memchr" >/dev/null 2>&1; then
21667 ac_cv_header_stdc=no
21673 if test $ac_cv_header_stdc = yes; then
21674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21675 cat >conftest.$ac_ext <<_ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 #include <stdlib.h>
21684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21685 $EGREP "free" >/dev/null 2>&1; then
21688 ac_cv_header_stdc=no
21694 if test $ac_cv_header_stdc = yes; then
21695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21696 if test "$cross_compiling" = yes; then
21699 cat >conftest.$ac_ext <<_ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h. */
21706 #if ((' ' & 0x0FF) == 0x020)
21707 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21708 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21710 # define ISLOWER(c) \
21711 (('a' <= (c) && (c) <= 'i') \
21712 || ('j' <= (c) && (c) <= 'r') \
21713 || ('s' <= (c) && (c) <= 'z'))
21714 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21722 for (i = 0; i < 256; i++)
21723 if (XOR (islower (i), ISLOWER (i))
21724 || toupper (i) != TOUPPER (i))
21729 rm -f conftest$ac_exeext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21731 (eval $ac_link) 2>&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736 (eval $ac_try) 2>&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }; then
21742 echo "$as_me: program exited with status $ac_status" >&5
21743 echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21746 ( exit $ac_status )
21747 ac_cv_header_stdc=no
21749 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21753 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21754 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21755 if test $ac_cv_header_stdc = yes; then
21757 cat >>confdefs.h <<\_ACEOF
21758 #define STDC_HEADERS 1
21767 for ac_header in stddef.h stdlib.h string.h unistd.h
21769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21771 echo "$as_me:$LINENO: checking for $ac_header" >&5
21772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21779 # Is the header compilable?
21780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21782 cat >conftest.$ac_ext <<_ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21788 $ac_includes_default
21789 #include <$ac_header>
21791 rm -f conftest.$ac_objext
21792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21793 (eval $ac_compile) 2>conftest.er1
21795 grep -v '^ *+' conftest.er1 >conftest.err
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } &&
21800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802 (eval $ac_try) 2>&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); }; } &&
21806 { ac_try='test -s conftest.$ac_objext'
21807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808 (eval $ac_try) 2>&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); }; }; then
21812 ac_header_compiler=yes
21814 echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21817 ac_header_compiler=no
21819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21821 echo "${ECHO_T}$ac_header_compiler" >&6
21823 # Is the header present?
21824 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21826 cat >conftest.$ac_ext <<_ACEOF
21829 cat confdefs.h >>conftest.$ac_ext
21830 cat >>conftest.$ac_ext <<_ACEOF
21831 /* end confdefs.h. */
21832 #include <$ac_header>
21834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21837 grep -v '^ *+' conftest.er1 >conftest.err
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } >/dev/null; then
21842 if test -s conftest.err; then
21843 ac_cpp_err=$ac_c_preproc_warn_flag
21844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21851 if test -z "$ac_cpp_err"; then
21852 ac_header_preproc=yes
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21857 ac_header_preproc=no
21859 rm -f conftest.err conftest.$ac_ext
21860 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21861 echo "${ECHO_T}$ac_header_preproc" >&6
21863 # So? What about this header?
21864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21870 ac_header_preproc=yes
21873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21880 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21887 ## ----------------------------------------- ##
21888 ## Report this to martin.quinson@ens-lyon.fr ##
21889 ## ----------------------------------------- ##
21892 sed "s/^/$as_me: WARNING: /" >&2
21895 echo "$as_me:$LINENO: checking for $ac_header" >&5
21896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21898 echo $ECHO_N "(cached) $ECHO_C" >&6
21900 eval "$as_ac_Header=\$ac_header_preproc"
21902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21907 cat >>confdefs.h <<_ACEOF
21908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21916 # Checks for typedefs, structures, and compiler characteristics.
21917 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21918 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21919 if test "${ac_cv_c_const+set}" = set; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21922 cat >conftest.$ac_ext <<_ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21932 /* FIXME: Include the comments suggested by Paul. */
21933 #ifndef __cplusplus
21934 /* Ultrix mips cc rejects this. */
21935 typedef int charset[2];
21937 /* SunOS 4.1.1 cc rejects this. */
21938 char const *const *ccp;
21940 /* NEC SVR4.0.2 mips cc rejects this. */
21941 struct point {int x, y;};
21942 static struct point const zero = {0,0};
21943 /* AIX XL C 1.02.0.0 rejects this.
21944 It does not let you subtract one const X* pointer from another in
21945 an arm of an if-expression whose if-part is not a constant
21947 const char *g = "string";
21948 ccp = &g + (g ? g-g : 0);
21949 /* HPUX 7.0 cc rejects these. */
21952 ccp = (char const *const *) p;
21953 { /* SCO 3.2v4 cc rejects this. */
21955 char const *s = 0 ? (char *) 0 : (char const *) 0;
21959 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21960 int x[] = {25, 17};
21961 const int *foo = &x[0];
21964 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21965 typedef const int *iptr;
21969 { /* AIX XL C 1.02.0.0 rejects this saying
21970 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21971 struct s { int j; const int *ap[3]; };
21972 struct s *b; b->j = 5;
21974 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21975 const int foo = 10;
21983 rm -f conftest.$ac_objext
21984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21985 (eval $ac_compile) 2>conftest.er1
21987 grep -v '^ *+' conftest.er1 >conftest.err
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } &&
21992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994 (eval $ac_try) 2>&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); }; } &&
21998 { ac_try='test -s conftest.$ac_objext'
21999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000 (eval $ac_try) 2>&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; }; then
22006 echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22013 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22014 echo "${ECHO_T}$ac_cv_c_const" >&6
22015 if test $ac_cv_c_const = no; then
22017 cat >>confdefs.h <<\_ACEOF
22023 echo "$as_me:$LINENO: checking for inline" >&5
22024 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22025 if test "${ac_cv_c_inline+set}" = set; then
22026 echo $ECHO_N "(cached) $ECHO_C" >&6
22029 for ac_kw in inline __inline__ __inline; do
22030 cat >conftest.$ac_ext <<_ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22036 #ifndef __cplusplus
22038 static $ac_kw foo_t static_foo () {return 0; }
22039 $ac_kw foo_t foo () {return 0; }
22043 rm -f conftest.$ac_objext
22044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22045 (eval $ac_compile) 2>conftest.er1
22047 grep -v '^ *+' conftest.er1 >conftest.err
22049 cat conftest.err >&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } &&
22052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; } &&
22058 { ac_try='test -s conftest.$ac_objext'
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; }; then
22064 ac_cv_c_inline=$ac_kw; break
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22074 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22075 echo "${ECHO_T}$ac_cv_c_inline" >&6
22078 case $ac_cv_c_inline in
22081 case $ac_cv_c_inline in
22083 *) ac_val=$ac_cv_c_inline;;
22085 cat >>confdefs.h <<_ACEOF
22086 #ifndef __cplusplus
22087 #define inline $ac_val
22093 echo "$as_me:$LINENO: checking for size_t" >&5
22094 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22095 if test "${ac_cv_type_size_t+set}" = set; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
22098 cat >conftest.$ac_ext <<_ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22104 $ac_includes_default
22110 if (sizeof (size_t))
22116 rm -f conftest.$ac_objext
22117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22118 (eval $ac_compile) 2>conftest.er1
22120 grep -v '^ *+' conftest.er1 >conftest.err
22122 cat conftest.err >&5
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); } &&
22125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22127 (eval $ac_try) 2>&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); }; } &&
22131 { ac_try='test -s conftest.$ac_objext'
22132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22133 (eval $ac_try) 2>&5
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); }; }; then
22137 ac_cv_type_size_t=yes
22139 echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22142 ac_cv_type_size_t=no
22144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22146 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22147 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22148 if test $ac_cv_type_size_t = yes; then
22152 cat >>confdefs.h <<_ACEOF
22153 #define size_t unsigned
22159 # Checks for library functions.
22161 for ac_header in stdlib.h
22163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22165 echo "$as_me:$LINENO: checking for $ac_header" >&5
22166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22168 echo $ECHO_N "(cached) $ECHO_C" >&6
22170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22173 # Is the header compilable?
22174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22176 cat >conftest.$ac_ext <<_ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h. */
22182 $ac_includes_default
22183 #include <$ac_header>
22185 rm -f conftest.$ac_objext
22186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22187 (eval $ac_compile) 2>conftest.er1
22189 grep -v '^ *+' conftest.er1 >conftest.err
22191 cat conftest.err >&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); } &&
22194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196 (eval $ac_try) 2>&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; } &&
22200 { ac_try='test -s conftest.$ac_objext'
22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202 (eval $ac_try) 2>&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); }; }; then
22206 ac_header_compiler=yes
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 ac_header_compiler=no
22213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22215 echo "${ECHO_T}$ac_header_compiler" >&6
22217 # Is the header present?
22218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22220 cat >conftest.$ac_ext <<_ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h. */
22226 #include <$ac_header>
22228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22231 grep -v '^ *+' conftest.er1 >conftest.err
22233 cat conftest.err >&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); } >/dev/null; then
22236 if test -s conftest.err; then
22237 ac_cpp_err=$ac_c_preproc_warn_flag
22238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22245 if test -z "$ac_cpp_err"; then
22246 ac_header_preproc=yes
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22251 ac_header_preproc=no
22253 rm -f conftest.err conftest.$ac_ext
22254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22255 echo "${ECHO_T}$ac_header_preproc" >&6
22257 # So? What about this header?
22258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22264 ac_header_preproc=yes
22267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22281 ## ----------------------------------------- ##
22282 ## Report this to martin.quinson@ens-lyon.fr ##
22283 ## ----------------------------------------- ##
22286 sed "s/^/$as_me: WARNING: /" >&2
22289 echo "$as_me:$LINENO: checking for $ac_header" >&5
22290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22292 echo $ECHO_N "(cached) $ECHO_C" >&6
22294 eval "$as_ac_Header=\$ac_header_preproc"
22296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22301 cat >>confdefs.h <<_ACEOF
22302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22309 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22310 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22311 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 if test "$cross_compiling" = yes; then
22315 ac_cv_func_malloc_0_nonnull=no
22317 cat >conftest.$ac_ext <<_ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22323 #if STDC_HEADERS || HAVE_STDLIB_H
22324 # include <stdlib.h>
22332 exit (malloc (0) ? 0 : 1);
22337 rm -f conftest$ac_exeext
22338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22339 (eval $ac_link) 2>&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22344 (eval $ac_try) 2>&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); }; }; then
22348 ac_cv_func_malloc_0_nonnull=yes
22350 echo "$as_me: program exited with status $ac_status" >&5
22351 echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22354 ( exit $ac_status )
22355 ac_cv_func_malloc_0_nonnull=no
22357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22360 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22361 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22362 if test $ac_cv_func_malloc_0_nonnull = yes; then
22364 cat >>confdefs.h <<\_ACEOF
22365 #define HAVE_MALLOC 1
22369 cat >>confdefs.h <<\_ACEOF
22370 #define HAVE_MALLOC 0
22374 "malloc.$ac_objext" | \
22375 *" malloc.$ac_objext" | \
22376 "malloc.$ac_objext "* | \
22377 *" malloc.$ac_objext "* ) ;;
22378 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
22382 cat >>confdefs.h <<\_ACEOF
22383 #define malloc rpl_malloc
22390 echo "$as_me:$LINENO: checking for working memcmp" >&5
22391 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22392 if test "${ac_cv_func_memcmp_working+set}" = set; then
22393 echo $ECHO_N "(cached) $ECHO_C" >&6
22395 if test "$cross_compiling" = yes; then
22396 ac_cv_func_memcmp_working=no
22398 cat >conftest.$ac_ext <<_ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22404 $ac_includes_default
22409 /* Some versions of memcmp are not 8-bit clean. */
22410 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22411 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22414 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22415 or more and with at least one buffer not starting on a 4-byte boundary.
22416 William Lewis provided this test program. */
22421 for (i = 0; i < 4; i++)
22425 strcpy (a, "--------01111111");
22426 strcpy (b, "--------10000000");
22427 if (memcmp (a, b, 16) >= 0)
22437 rm -f conftest$ac_exeext
22438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22439 (eval $ac_link) 2>&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; }; then
22448 ac_cv_func_memcmp_working=yes
22450 echo "$as_me: program exited with status $ac_status" >&5
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22454 ( exit $ac_status )
22455 ac_cv_func_memcmp_working=no
22457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22460 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22461 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22462 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22463 "memcmp.$ac_objext" | \
22464 *" memcmp.$ac_objext" | \
22465 "memcmp.$ac_objext "* | \
22466 *" memcmp.$ac_objext "* ) ;;
22467 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
22475 for ac_func in memset strchr strerror usleep
22477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22478 echo "$as_me:$LINENO: checking for $ac_func" >&5
22479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22480 if eval "test \"\${$as_ac_var+set}\" = set"; then
22481 echo $ECHO_N "(cached) $ECHO_C" >&6
22483 cat >conftest.$ac_ext <<_ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h. */
22489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22491 #define $ac_func innocuous_$ac_func
22493 /* System header to define __stub macros and hopefully few prototypes,
22494 which can conflict with char $ac_func (); below.
22495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22496 <limits.h> exists even on freestanding compilers. */
22499 # include <limits.h>
22501 # include <assert.h>
22506 /* Override any gcc2 internal prototype to avoid an error. */
22511 /* We use char because int might match the return type of a gcc2
22512 builtin and then its argument prototype would still apply. */
22514 /* The GNU C library defines this for functions which it implements
22515 to always fail with ENOSYS. Some functions are actually named
22516 something starting with __ and the normal name is an alias. */
22517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22520 char (*f) () = $ac_func;
22529 return f != $ac_func;
22534 rm -f conftest.$ac_objext conftest$ac_exeext
22535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22536 (eval $ac_link) 2>conftest.er1
22538 grep -v '^ *+' conftest.er1 >conftest.err
22540 cat conftest.err >&5
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); } &&
22543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22545 (eval $ac_try) 2>&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); }; } &&
22549 { ac_try='test -s conftest$ac_exeext'
22550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551 (eval $ac_try) 2>&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); }; }; then
22555 eval "$as_ac_var=yes"
22557 echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22560 eval "$as_ac_var=no"
22562 rm -f conftest.err conftest.$ac_objext \
22563 conftest$ac_exeext conftest.$ac_ext
22565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22567 if test `eval echo '${'$as_ac_var'}'` = yes; then
22568 cat >>confdefs.h <<_ACEOF
22569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22576 # Can we rebuild the documentation?
22579 # Check whether --with-html-dir or --without-html-dir was given.
22580 if test "${with_html_dir+set}" = set; then
22581 withval="$with_html_dir"
22584 with_html_dir='${datadir}/gtk-doc/html'
22586 HTML_DIR="$with_html_dir"
22589 # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
22590 if test "${enable_gtk_doc+set}" = set; then
22591 enableval="$enable_gtk_doc"
22598 if test -z "$PKG_CONFIG"; then
22599 # Extract the first word of "pkg-config", so it can be a program name with args.
22600 set dummy pkg-config; ac_word=$2
22601 echo "$as_me:$LINENO: checking for $ac_word" >&5
22602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22603 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22606 case $PKG_CONFIG in
22608 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22612 for as_dir in $PATH
22615 test -z "$as_dir" && as_dir=.
22616 for ac_exec_ext in '' $ac_executable_extensions; do
22617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22618 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22625 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22629 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22631 if test -n "$PKG_CONFIG"; then
22632 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22633 echo "${ECHO_T}$PKG_CONFIG" >&6
22635 echo "$as_me:$LINENO: result: no" >&5
22636 echo "${ECHO_T}no" >&6
22640 if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
22645 if test x$enable_gtk_doc = xyes; then
22646 if test "$have_gtk_doc" != yes; then
22653 if test x$enable_gtk_doc = xyes; then
22654 ENABLE_GTK_DOC_TRUE=
22655 ENABLE_GTK_DOC_FALSE='#'
22657 ENABLE_GTK_DOC_TRUE='#'
22658 ENABLE_GTK_DOC_FALSE=
22663 if test -n "$LIBTOOL"; then
22664 GTK_DOC_USE_LIBTOOL_TRUE=
22665 GTK_DOC_USE_LIBTOOL_FALSE='#'
22667 GTK_DOC_USE_LIBTOOL_TRUE='#'
22668 GTK_DOC_USE_LIBTOOL_FALSE=
22674 echo "BEGINING OF ACI-PACKAGE-SAVED(XML)">&5;
22675 # Extract the first word of "xml2-config", so it can be a program name with args.
22676 set dummy xml2-config; ac_word=$2
22677 echo "$as_me:$LINENO: checking for $ac_word" >&5
22678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22679 if test "${ac_cv_path_ACI_CACHE_PROG+set}" = set; then
22680 echo $ECHO_N "(cached) $ECHO_C" >&6
22682 case $ACI_CACHE_PROG in
22684 ac_cv_path_ACI_CACHE_PROG="$ACI_CACHE_PROG" # Let the user override the test with a path.
22687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22688 for as_dir in $PATH
22691 test -z "$as_dir" && as_dir=.
22692 for ac_exec_ext in '' $ac_executable_extensions; do
22693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22694 ac_cv_path_ACI_CACHE_PROG="$as_dir/$ac_word$ac_exec_ext"
22695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22701 test -z "$ac_cv_path_ACI_CACHE_PROG" && ac_cv_path_ACI_CACHE_PROG="no"
22705 ACI_CACHE_PROG=$ac_cv_path_ACI_CACHE_PROG
22707 if test -n "$ACI_CACHE_PROG"; then
22708 echo "$as_me:$LINENO: result: $ACI_CACHE_PROG" >&5
22709 echo "${ECHO_T}$ACI_CACHE_PROG" >&6
22711 echo "$as_me:$LINENO: result: no" >&5
22712 echo "${ECHO_T}no" >&6
22715 aci_module_desc_XML="XML library (version XML2)"
22716 aci_pkg_config_XML=xml2-config
22717 aci_packages="$aci_packages XML"
22718 if test x$ACI_CACHE_PROG = xno; then
22725 CFLAGS_XML=`$ACI_CACHE_PROG --cflags `
22726 LIBS_XML=`$ACI_CACHE_PROG --libs `
22729 echo "END OF ACI-PACKAGE-SAVED(XML)">&5;
22740 aci_nameok=`echo SimGrid|sed 'y/-/./'`
22741 if test "xSimGrid" != "x$aci_nameok" ; then
22742 { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
22743 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
22744 { (exit 1); exit 1; }; }
22746 echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
22747 aci_module_desc_SimGrid="the SimGrid simulator"
22748 aci_packages="$aci_packages SimGrid"
22751 # Check whether --with-SimGrid or --without-SimGrid was given.
22752 if test "${with_SimGrid+set}" = set; then
22753 withval="$with_SimGrid"
22754 with_SimGrid=$withval
22756 if test "$withval" = yes ; then good=no; fi
22757 if test "$withval" = no ; then good=no; fi
22758 if test $good = no ; then
22759 { { 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
22760 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;}
22761 { (exit 1); exit 1; }; }
22763 aci_pkg_prefix_SimGrid="$withval"
22764 CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
22765 LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
22770 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
22771 if test "${with_SimGrid_includes+set}" = set; then
22772 withval="$with_SimGrid_includes"
22773 CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
22774 aci_pkg_inc_SimGrid="$withval"
22779 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
22780 if test "${with_SimGrid_libraries+set}" = set; then
22781 withval="$with_SimGrid_libraries"
22782 LIBS_SimGrid="-L$withval $LIBS_SimGrid"
22783 aci_pkg_lib_SimGrid="$withval"
22787 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
22788 if test "${with_SimGrid_extra+set}" = set; then
22789 withval="$with_SimGrid_extra"
22790 LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
22791 aci_pkg_extra_SimGrid="$withval"
22795 OLD_LDFLAGS=$LDFLAGS
22797 OLD_CPPFLAGS=$CPPFLAGS
22799 i=`echo -lsimgrid|wc -l`
22800 if test $i != 1 && test $i != 0 ; then
22801 { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
22802 please no newline and no tab." >&5
22803 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
22804 please no newline and no tab." >&2;}
22805 { (exit 1); exit 1; }; }
22808 ac_func_search_save_LIBS="$LIBS"
22809 ac_func_search_save_this_LIBS="$LIBS_SimGrid"
22811 echo "----------------------------------------" >&5
22812 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
22813 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
22814 cat >conftest.$ac_ext <<_ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h. */
22821 /* Override any gcc2 internal prototype to avoid an error. */
22825 /* We use char because int might match the return type of a gcc2
22826 builtin and then its argument prototype would still apply. */
22836 rm -f conftest.$ac_objext conftest$ac_exeext
22837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22838 (eval $ac_link) 2>conftest.er1
22840 grep -v '^ *+' conftest.er1 >conftest.err
22842 cat conftest.err >&5
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); } &&
22845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22847 (eval $ac_try) 2>&5
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); }; } &&
22851 { ac_try='test -s conftest$ac_exeext'
22852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22853 (eval $ac_try) 2>&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); }; }; then
22857 echo "$as_me:$LINENO: result: yes" >&5
22858 echo "${ECHO_T}yes" >&6 aci_found="yes"
22860 echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22863 echo "$as_me:$LINENO: result: no" >&5
22864 echo "${ECHO_T}no" >&6
22866 rm -f conftest.err conftest.$ac_objext \
22867 conftest$ac_exeext conftest.$ac_ext
22868 if test "$aci_found" = "no"; then
22869 if test -n "$LIBS_SimGrid" ; then
22870 LIBS="$LIBS_SimGrid"
22871 echo "----------------------------------------" >&5
22872 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
22873 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
22874 cat >conftest.$ac_ext <<_ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22881 /* Override any gcc2 internal prototype to avoid an error. */
22885 /* We use char because int might match the return type of a gcc2
22886 builtin and then its argument prototype would still apply. */
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22898 (eval $ac_link) 2>conftest.er1
22900 grep -v '^ *+' conftest.er1 >conftest.err
22902 cat conftest.err >&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } &&
22905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907 (eval $ac_try) 2>&5
22909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); }; } &&
22911 { ac_try='test -s conftest$ac_exeext'
22912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22913 (eval $ac_try) 2>&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); }; }; then
22919 echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22924 rm -f conftest.err conftest.$ac_objext \
22925 conftest$ac_exeext conftest.$ac_ext
22926 echo "$as_me:$LINENO: result: $aci_found" >&5
22927 echo "${ECHO_T}$aci_found" >&6
22932 if test "x$aci_found" = "xno"; then
22933 LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
22934 LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
22935 echo "----------------------------------------" >&5
22936 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
22937 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
22938 cat >conftest.$ac_ext <<_ACEOF
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h. */
22945 /* Override any gcc2 internal prototype to avoid an error. */
22949 /* We use char because int might match the return type of a gcc2
22950 builtin and then its argument prototype would still apply. */
22960 rm -f conftest.$ac_objext conftest$ac_exeext
22961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22962 (eval $ac_link) 2>conftest.er1
22964 grep -v '^ *+' conftest.er1 >conftest.err
22966 cat conftest.err >&5
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } &&
22969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22971 (eval $ac_try) 2>&5
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); }; } &&
22975 { ac_try='test -s conftest$ac_exeext'
22976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22977 (eval $ac_try) 2>&5
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); }; }; then
22983 echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22988 rm -f conftest.err conftest.$ac_objext \
22989 conftest$ac_exeext conftest.$ac_ext
22990 echo "$as_me:$LINENO: result: $aci_found" >&5
22991 echo "${ECHO_T}$aci_found" >&6
22994 LIBS="$ac_func_search_save_LIBS"
22996 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
22997 CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
22998 echo "CPPFLAGS=$CPPFLAGS">&5;
22999 if test "${ac_cv_header_simgrid_h+set}" = set; then
23000 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23001 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23002 if test "${ac_cv_header_simgrid_h+set}" = set; then
23003 echo $ECHO_N "(cached) $ECHO_C" >&6
23005 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23006 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23008 # Is the header compilable?
23009 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
23010 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
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
23018 #include <simgrid.h>
23020 rm -f conftest.$ac_objext
23021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23022 (eval $ac_compile) 2>conftest.er1
23024 grep -v '^ *+' conftest.er1 >conftest.err
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } &&
23029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031 (eval $ac_try) 2>&5
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; } &&
23035 { ac_try='test -s conftest.$ac_objext'
23036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037 (eval $ac_try) 2>&5
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); }; }; then
23041 ac_header_compiler=yes
23043 echo "$as_me: failed program was:" >&5
23044 sed 's/^/| /' conftest.$ac_ext >&5
23046 ac_header_compiler=no
23048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23050 echo "${ECHO_T}$ac_header_compiler" >&6
23052 # Is the header present?
23053 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
23054 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
23055 cat >conftest.$ac_ext <<_ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23061 #include <simgrid.h>
23063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23066 grep -v '^ *+' conftest.er1 >conftest.err
23068 cat conftest.err >&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } >/dev/null; then
23071 if test -s conftest.err; then
23072 ac_cpp_err=$ac_c_preproc_warn_flag
23073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23080 if test -z "$ac_cpp_err"; then
23081 ac_header_preproc=yes
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_header_preproc=no
23088 rm -f conftest.err conftest.$ac_ext
23089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23090 echo "${ECHO_T}$ac_header_preproc" >&6
23092 # So? What about this header?
23093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23095 { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23096 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23097 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
23098 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
23099 ac_header_preproc=yes
23102 { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
23103 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
23104 { echo "$as_me:$LINENO: WARNING: simgrid.h: check for missing prerequisite headers?" >&5
23105 echo "$as_me: WARNING: simgrid.h: check for missing prerequisite headers?" >&2;}
23106 { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
23107 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
23108 { echo "$as_me:$LINENO: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&5
23109 echo "$as_me: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23110 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
23111 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
23112 { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
23113 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
23116 ## ----------------------------------------- ##
23117 ## Report this to martin.quinson@ens-lyon.fr ##
23118 ## ----------------------------------------- ##
23121 sed "s/^/$as_me: WARNING: /" >&2
23124 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23125 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23126 if test "${ac_cv_header_simgrid_h+set}" = set; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23129 ac_cv_header_simgrid_h=$ac_header_preproc
23131 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23132 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23135 if test $ac_cv_header_simgrid_h = yes; then
23143 if test "x$aci_found" = "xno" ; then
23144 { { echo "$as_me:$LINENO: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&5
23145 echo "$as_me: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&2;}
23146 { (exit 1); exit 1; }; }
23151 if test "x$HAVE_SimGrid" != "xyes" ; then
23159 echo "END OF ACI-PACKAGE(SimGrid)">&5;
23160 LDFLAGS=$OLDLDFLAGS
23161 CPPFLAGS=$OLDCPPFLAGS
23166 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23167 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23168 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23169 if test "${enable_maintainer_mode+set}" = set; then
23170 enableval="$enable_maintainer_mode"
23171 USE_MAINTAINER_MODE=$enableval
23173 USE_MAINTAINER_MODE=no
23175 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
23176 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
23179 if test $USE_MAINTAINER_MODE = yes; then
23180 MAINTAINER_MODE_TRUE=
23181 MAINTAINER_MODE_FALSE='#'
23183 MAINTAINER_MODE_TRUE='#'
23184 MAINTAINER_MODE_FALSE=
23187 MAINT=$MAINTAINER_MODE_TRUE
23190 if test x$USE_MAINTAINER_MODE = xyes
23193 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
23194 if test "${enable_compile_warnings+set}" = set; then
23195 enableval="$enable_compile_warnings"
23198 enable_compile_warnings=yes
23201 echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
23202 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
23204 if test "x$GCC" != xyes; then
23205 enable_compile_warnings=no
23208 if test "x$enable_compile_warnings" != "xno"; then
23209 if test "x$GCC" = "xyes"; then
23210 case " $CFLAGS " in
23212 *) warnCFLAGS="-g -Wall -Wunused" ;;
23215 ## -W is not all that useful. And it cannot be controlled
23216 ## with individual -Wno-xxx flags, unlike -Wall
23217 if test "x$enable_compile_warnings" = "xyes"; then
23218 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations\
23219 -finline-functions -Wshadow -Wpointer-arith \
23220 -Wwrite-strings -Wno-unused-function -Werror"
23224 echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
23225 echo "${ECHO_T}$warnCFLAGS" >&6
23227 # Check whether --enable-iso-c or --disable-iso-c was given.
23228 if test "${enable_iso_c+set}" = set; then
23229 enableval="$enable_iso_c"
23235 echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
23236 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
23238 if test "x$enable_iso_c" != "xno"; then
23239 if test "x$GCC" = "xyes"; then
23240 case " $CFLAGS " in
23242 *) complCFLAGS="$complCFLAGS -ansi" ;;
23245 case " $CFLAGS " in
23247 *) complCFLAGS="$complCFLAGS -pedantic" ;;
23251 echo "$as_me:$LINENO: result: $complCFLAGS" >&5
23252 echo "${ECHO_T}$complCFLAGS" >&6
23253 if test "x$cflags_set" != "xyes"; then
23254 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
23265 # Extract the first word of "bash", so it can be a program name with args.
23266 set dummy bash; ac_word=$2
23267 echo "$as_me:$LINENO: checking for $ac_word" >&5
23268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23269 if test "${ac_cv_prog_BASH+set}" = set; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23272 if test -n "$BASH"; then
23273 ac_cv_prog_BASH="$BASH" # Let the user override the test.
23275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23276 for as_dir in $PATH
23279 test -z "$as_dir" && as_dir=.
23280 for ac_exec_ext in '' $ac_executable_extensions; do
23281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23282 ac_cv_prog_BASH="`which bash`"
23283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23289 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
23292 BASH=$ac_cv_prog_BASH
23293 if test -n "$BASH"; then
23294 echo "$as_me:$LINENO: result: $BASH" >&5
23295 echo "${ECHO_T}$BASH" >&6
23297 echo "$as_me:$LINENO: result: no" >&5
23298 echo "${ECHO_T}no" >&6
23301 WARNING="This file is generated, do not edit"
23304 ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/include/modules/Makefile src/base/Makefile src/base/Tests/Makefile src/base/Tests/gs_example src/base/Tests/run_tests src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
23307 cat >confcache <<\_ACEOF
23308 # This file is a shell script that caches the results of configure
23309 # tests run on this system so they can be shared between configure
23310 # scripts and configure runs, see configure's option --config-cache.
23311 # It is not useful on other systems. If it contains results you don't
23312 # want to keep, you may remove or edit it.
23314 # config.status only pays attention to the cache file if you give it
23315 # the --recheck option to rerun configure.
23317 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23318 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23319 # following values.
23323 # The following way of writing the cache mishandles newlines in values,
23324 # but we know of no workaround that is simple, portable, and efficient.
23325 # So, don't put newlines in cache variables' values.
23326 # Ultrix sh set writes to stderr and can't be redirected directly,
23327 # and sets the high bit in the cache file unless we assign to the vars.
23330 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23332 # `set' does not quote correctly, so add quotes (double-quote
23333 # substitution turns \\\\ into \\, and sed turns \\ into \).
23336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23339 # `set' quotes correctly as required by POSIX, so do not add quotes.
23341 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23348 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23350 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23352 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23353 if test -w $cache_file; then
23354 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23355 cat confcache >$cache_file
23357 echo "not updating unwritable cache $cache_file"
23362 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23363 # Let make expand exec_prefix.
23364 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23366 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23367 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23368 # trailing colons and then remove the whole line if VPATH becomes empty
23369 # (actually we leave an empty line to preserve line numbers).
23370 if test "x$srcdir" = x.; then
23371 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23372 s/:*\$(srcdir):*/:/;
23373 s/:*\${srcdir}:*/:/;
23375 s/^\([^=]*=[ ]*\):*/\1/;
23381 DEFS=-DHAVE_CONFIG_H
23385 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23386 # 1. Remove the extension, and $U if already installed.
23387 ac_i=`echo "$ac_i" |
23388 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23390 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23391 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23393 LIBOBJS=$ac_libobjs
23395 LTLIBOBJS=$ac_ltlibobjs
23398 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23399 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23400 Usually this means the macro was only invoked conditionally." >&5
23401 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23402 Usually this means the macro was only invoked conditionally." >&2;}
23403 { (exit 1); exit 1; }; }
23405 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23406 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23407 Usually this means the macro was only invoked conditionally." >&5
23408 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23409 Usually this means the macro was only invoked conditionally." >&2;}
23410 { (exit 1); exit 1; }; }
23412 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23413 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23414 Usually this means the macro was only invoked conditionally." >&5
23415 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23416 Usually this means the macro was only invoked conditionally." >&2;}
23417 { (exit 1); exit 1; }; }
23419 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23420 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23421 Usually this means the macro was only invoked conditionally." >&5
23422 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23423 Usually this means the macro was only invoked conditionally." >&2;}
23424 { (exit 1); exit 1; }; }
23426 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
23427 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23428 Usually this means the macro was only invoked conditionally." >&5
23429 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23430 Usually this means the macro was only invoked conditionally." >&2;}
23431 { (exit 1); exit 1; }; }
23433 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
23434 { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23435 Usually this means the macro was only invoked conditionally." >&5
23436 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23437 Usually this means the macro was only invoked conditionally." >&2;}
23438 { (exit 1); exit 1; }; }
23440 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23441 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23442 Usually this means the macro was only invoked conditionally." >&5
23443 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23444 Usually this means the macro was only invoked conditionally." >&2;}
23445 { (exit 1); exit 1; }; }
23448 : ${CONFIG_STATUS=./config.status}
23449 ac_clean_files_save=$ac_clean_files
23450 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23451 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23452 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23453 cat >$CONFIG_STATUS <<_ACEOF
23455 # Generated by $as_me.
23456 # Run this file to recreate the current configuration.
23457 # Compiler output produced by configure, useful for debugging
23458 # configure, is in config.log if it exists.
23461 ac_cs_recheck=false
23463 SHELL=\${CONFIG_SHELL-$SHELL}
23466 cat >>$CONFIG_STATUS <<\_ACEOF
23467 ## --------------------- ##
23468 ## M4sh Initialization. ##
23469 ## --------------------- ##
23471 # Be Bourne compatible
23472 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23475 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23476 # is contrary to our usage. Disable this feature.
23477 alias -g '${1+"$@"}'='"$@"'
23478 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23481 DUALCASE=1; export DUALCASE # for MKS sh
23483 # Support unset when possible.
23484 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23491 # Work around bugs in pre-3.0 UWIN ksh.
23492 $as_unset ENV MAIL MAILPATH
23499 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23500 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23501 LC_TELEPHONE LC_TIME
23503 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23504 eval $as_var=C; export $as_var
23510 # Required to use basename.
23511 if expr a : '\(a\)' >/dev/null 2>&1; then
23517 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23518 as_basename=basename
23524 # Name of the executable.
23525 as_me=`$as_basename "$0" ||
23526 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23527 X"$0" : 'X\(//\)$' \| \
23528 X"$0" : 'X\(/\)$' \| \
23529 . : '\(.\)' 2>/dev/null ||
23531 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23532 /^X\/\(\/\/\)$/{ s//\1/; q; }
23533 /^X\/\(\/\).*/{ s//\1/; q; }
23537 # PATH needs CR, and LINENO needs CR and PATH.
23538 # Avoid depending upon Character Ranges.
23539 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23540 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23541 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23542 as_cr_digits='0123456789'
23543 as_cr_alnum=$as_cr_Letters$as_cr_digits
23545 # The user is always right.
23546 if test "${PATH_SEPARATOR+set}" != set; then
23547 echo "#! /bin/sh" >conf$$.sh
23548 echo "exit 0" >>conf$$.sh
23550 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23559 as_lineno_1=$LINENO
23560 as_lineno_2=$LINENO
23561 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23562 test "x$as_lineno_1" != "x$as_lineno_2" &&
23563 test "x$as_lineno_3" = "x$as_lineno_2" || {
23564 # Find who we are. Look in the path if we contain no path at all
23567 *[\\/]* ) as_myself=$0 ;;
23568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23569 for as_dir in $PATH
23572 test -z "$as_dir" && as_dir=.
23573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23578 # We did not find ourselves, most probably we were run as `sh COMMAND'
23579 # in which case we are not to be found in the path.
23580 if test "x$as_myself" = x; then
23583 if test ! -f "$as_myself"; then
23584 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23585 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23586 { (exit 1); exit 1; }; }
23588 case $CONFIG_SHELL in
23590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23591 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23594 test -z "$as_dir" && as_dir=.
23595 for as_base in sh bash ksh sh5; do
23598 if ("$as_dir/$as_base" -c '
23599 as_lineno_1=$LINENO
23600 as_lineno_2=$LINENO
23601 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23602 test "x$as_lineno_1" != "x$as_lineno_2" &&
23603 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23604 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23605 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23606 CONFIG_SHELL=$as_dir/$as_base
23607 export CONFIG_SHELL
23608 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23616 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23617 # uniformly replaced by the line number. The first 'sed' inserts a
23618 # line-number line before each line; the second 'sed' does the real
23619 # work. The second script uses 'N' to pair each line-number line
23620 # with the numbered line, and appends trailing '-' during
23621 # substitution so that $LINENO is not a special case at line end.
23622 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23623 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23624 sed '=' <$as_myself |
23629 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23632 s,^['$as_cr_digits']*\n,,
23633 ' >$as_me.lineno &&
23634 chmod +x $as_me.lineno ||
23635 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23636 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23637 { (exit 1); exit 1; }; }
23639 # Don't try to exec as it changes $[0], causing all sort of problems
23640 # (the dirname of $[0] is not the place where we might find the
23641 # original and so on. Autoconf is especially sensible to this).
23643 # Exit status is that of the last command.
23648 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23649 *c*,-n*) ECHO_N= ECHO_C='
23651 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23652 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23655 if expr a : '\(a\)' >/dev/null 2>&1; then
23661 rm -f conf$$ conf$$.exe conf$$.file
23663 if ln -s conf$$.file conf$$ 2>/dev/null; then
23664 # We could just check for DJGPP; but this test a) works b) is more generic
23665 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23666 if test -f conf$$.exe; then
23667 # Don't use ln at all; we don't have any links
23672 elif ln conf$$.file conf$$ 2>/dev/null; then
23677 rm -f conf$$ conf$$.exe conf$$.file
23679 if mkdir -p . 2>/dev/null; then
23682 test -d ./-p && rmdir ./-p
23686 as_executable_p="test -f"
23688 # Sed expression to map a string onto a valid CPP name.
23689 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23691 # Sed expression to map a string onto a valid variable name.
23692 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23696 # We need space, tab and new line, in precisely that order.
23706 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23707 # report actual input values of CONFIG_FILES etc. instead of their
23708 # values after options handling. Logging --version etc. is OK.
23712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23713 ## Running $as_me. ##
23718 This file was extended by GRAS $as_me 0.0.040304, which was
23719 generated by GNU Autoconf 2.59. Invocation command line was
23721 CONFIG_FILES = $CONFIG_FILES
23722 CONFIG_HEADERS = $CONFIG_HEADERS
23723 CONFIG_LINKS = $CONFIG_LINKS
23724 CONFIG_COMMANDS = $CONFIG_COMMANDS
23728 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23732 # Files that config.status was made for.
23733 if test -n "$ac_config_files"; then
23734 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23737 if test -n "$ac_config_headers"; then
23738 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23741 if test -n "$ac_config_links"; then
23742 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23745 if test -n "$ac_config_commands"; then
23746 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23749 cat >>$CONFIG_STATUS <<\_ACEOF
23752 \`$as_me' instantiates files from templates according to the
23753 current configuration.
23755 Usage: $0 [OPTIONS] [FILE]...
23757 -h, --help print this help, then exit
23758 -V, --version print version number, then exit
23759 -q, --quiet do not print progress messages
23760 -d, --debug don't remove temporary files
23761 --recheck update $as_me by reconfiguring in the same conditions
23762 --file=FILE[:TEMPLATE]
23763 instantiate the configuration file FILE
23764 --header=FILE[:TEMPLATE]
23765 instantiate the configuration header FILE
23767 Configuration files:
23770 Configuration headers:
23773 Configuration commands:
23776 Report bugs to <bug-autoconf@gnu.org>."
23779 cat >>$CONFIG_STATUS <<_ACEOF
23781 GRAS config.status 0.0.040304
23782 configured by $0, generated by GNU Autoconf 2.59,
23783 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23785 Copyright (C) 2003 Free Software Foundation, Inc.
23786 This config.status script is free software; the Free Software Foundation
23787 gives unlimited permission to copy, distribute and modify it."
23792 cat >>$CONFIG_STATUS <<\_ACEOF
23793 # If no file are specified by the user, then we need to provide default
23794 # value. By we need to know if files were specified by the user.
23800 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23801 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23809 *) # This is not an option, so the user has probably given explicit
23812 ac_need_defaults=false;;
23816 # Handling of the options.
23818 cat >>$CONFIG_STATUS <<\_ACEOF
23819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23821 --version | --vers* | -V )
23822 echo "$ac_cs_version"; exit 0 ;;
23824 # Conflict between --help and --header
23825 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23826 Try \`$0 --help' for more information." >&5
23827 echo "$as_me: error: ambiguous option: $1
23828 Try \`$0 --help' for more information." >&2;}
23829 { (exit 1); exit 1; }; };;
23830 --help | --hel | -h )
23831 echo "$ac_cs_usage"; exit 0 ;;
23832 --debug | --d* | -d )
23834 --file | --fil | --fi | --f )
23836 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23837 ac_need_defaults=false;;
23838 --header | --heade | --head | --hea )
23840 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23841 ac_need_defaults=false;;
23842 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23843 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23846 # This is an error.
23847 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23848 Try \`$0 --help' for more information." >&5
23849 echo "$as_me: error: unrecognized option: $1
23850 Try \`$0 --help' for more information." >&2;}
23851 { (exit 1); exit 1; }; } ;;
23853 *) ac_config_targets="$ac_config_targets $1" ;;
23859 ac_configure_extra_args=
23861 if $ac_cs_silent; then
23863 ac_configure_extra_args="$ac_configure_extra_args --silent"
23867 cat >>$CONFIG_STATUS <<_ACEOF
23868 if \$ac_cs_recheck; then
23869 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23870 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23875 cat >>$CONFIG_STATUS <<_ACEOF
23877 # INIT-COMMANDS section.
23880 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23886 cat >>$CONFIG_STATUS <<\_ACEOF
23887 for ac_config_target in $ac_config_targets
23889 case "$ac_config_target" in
23890 # Handling of arguments.
23891 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23892 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23893 "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
23894 "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
23895 "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
23896 "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
23897 "src/base/Tests/gs_example" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/gs_example" ;;
23898 "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
23899 "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
23900 "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
23901 "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
23902 "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
23903 "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
23904 "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
23905 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23906 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23907 "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
23908 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23909 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23910 { (exit 1); exit 1; }; };;
23914 # If the user did not use the arguments to specify the items to instantiate,
23915 # then the envvar interface is used. Set only those that are not.
23916 # We use the long form for the default assignment because of an extremely
23917 # bizarre bug on SunOS 4.1.3.
23918 if $ac_need_defaults; then
23919 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23920 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23921 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23924 # Have a temporary directory for convenience. Make it in the build tree
23925 # simply because there is no reason to put it here, and in addition,
23926 # creating and moving files from /tmp can sometimes cause problems.
23927 # Create a temporary directory, and hook for its removal unless debugging.
23930 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23931 trap '{ (exit 1); exit 1; }' 1 2 13 15
23934 # Create a (secure) tmp directory for tmp files.
23937 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23938 test -n "$tmp" && test -d "$tmp"
23941 tmp=./confstat$$-$RANDOM
23942 (umask 077 && mkdir $tmp)
23945 echo "$me: cannot create a temporary directory in ." >&2
23946 { (exit 1); exit 1; }
23951 cat >>$CONFIG_STATUS <<_ACEOF
23954 # CONFIG_FILES section.
23957 # No need to generate the scripts if there are no CONFIG_FILES.
23958 # This happens for instance when ./config.status config.h
23959 if test -n "\$CONFIG_FILES"; then
23960 # Protect against being on the right side of a sed subst in config.status.
23961 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23962 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23963 s,@SHELL@,$SHELL,;t t
23964 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23965 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23966 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23967 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23968 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23969 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23970 s,@exec_prefix@,$exec_prefix,;t t
23971 s,@prefix@,$prefix,;t t
23972 s,@program_transform_name@,$program_transform_name,;t t
23973 s,@bindir@,$bindir,;t t
23974 s,@sbindir@,$sbindir,;t t
23975 s,@libexecdir@,$libexecdir,;t t
23976 s,@datadir@,$datadir,;t t
23977 s,@sysconfdir@,$sysconfdir,;t t
23978 s,@sharedstatedir@,$sharedstatedir,;t t
23979 s,@localstatedir@,$localstatedir,;t t
23980 s,@libdir@,$libdir,;t t
23981 s,@includedir@,$includedir,;t t
23982 s,@oldincludedir@,$oldincludedir,;t t
23983 s,@infodir@,$infodir,;t t
23984 s,@mandir@,$mandir,;t t
23985 s,@build_alias@,$build_alias,;t t
23986 s,@host_alias@,$host_alias,;t t
23987 s,@target_alias@,$target_alias,;t t
23988 s,@DEFS@,$DEFS,;t t
23989 s,@ECHO_C@,$ECHO_C,;t t
23990 s,@ECHO_N@,$ECHO_N,;t t
23991 s,@ECHO_T@,$ECHO_T,;t t
23992 s,@LIBS@,$LIBS,;t t
23993 s,@build@,$build,;t t
23994 s,@build_cpu@,$build_cpu,;t t
23995 s,@build_vendor@,$build_vendor,;t t
23996 s,@build_os@,$build_os,;t t
23997 s,@host@,$host,;t t
23998 s,@host_cpu@,$host_cpu,;t t
23999 s,@host_vendor@,$host_vendor,;t t
24000 s,@host_os@,$host_os,;t t
24001 s,@target@,$target,;t t
24002 s,@target_cpu@,$target_cpu,;t t
24003 s,@target_vendor@,$target_vendor,;t t
24004 s,@target_os@,$target_os,;t t
24005 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24006 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24007 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24008 s,@CYGPATH_W@,$CYGPATH_W,;t t
24009 s,@PACKAGE@,$PACKAGE,;t t
24010 s,@VERSION@,$VERSION,;t t
24011 s,@ACLOCAL@,$ACLOCAL,;t t
24012 s,@AUTOCONF@,$AUTOCONF,;t t
24013 s,@AUTOMAKE@,$AUTOMAKE,;t t
24014 s,@AUTOHEADER@,$AUTOHEADER,;t t
24015 s,@MAKEINFO@,$MAKEINFO,;t t
24016 s,@AMTAR@,$AMTAR,;t t
24017 s,@install_sh@,$install_sh,;t t
24018 s,@STRIP@,$STRIP,;t t
24019 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24020 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24022 s,@SET_MAKE@,$SET_MAKE,;t t
24023 s,@am__leading_dot@,$am__leading_dot,;t t
24025 s,@CFLAGS@,$CFLAGS,;t t
24026 s,@LDFLAGS@,$LDFLAGS,;t t
24027 s,@CPPFLAGS@,$CPPFLAGS,;t t
24028 s,@ac_ct_CC@,$ac_ct_CC,;t t
24029 s,@EXEEXT@,$EXEEXT,;t t
24030 s,@OBJEXT@,$OBJEXT,;t t
24031 s,@DEPDIR@,$DEPDIR,;t t
24032 s,@am__include@,$am__include,;t t
24033 s,@am__quote@,$am__quote,;t t
24034 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24035 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24036 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24037 s,@CCDEPMODE@,$CCDEPMODE,;t t
24038 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24039 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24040 s,@EGREP@,$EGREP,;t t
24041 s,@LN_S@,$LN_S,;t t
24042 s,@ECHO@,$ECHO,;t t
24044 s,@ac_ct_AR@,$ac_ct_AR,;t t
24045 s,@RANLIB@,$RANLIB,;t t
24046 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24049 s,@CXXFLAGS@,$CXXFLAGS,;t t
24050 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24051 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24052 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24053 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24054 s,@CXXCPP@,$CXXCPP,;t t
24056 s,@FFLAGS@,$FFLAGS,;t t
24057 s,@ac_ct_F77@,$ac_ct_F77,;t t
24058 s,@LIBTOOL@,$LIBTOOL,;t t
24059 s,@LIBOBJS@,$LIBOBJS,;t t
24060 s,@HTML_DIR@,$HTML_DIR,;t t
24061 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24062 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
24063 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
24064 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
24065 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
24066 s,@ACI_CACHE_PROG@,$ACI_CACHE_PROG,;t t
24067 s,@aci_module_desc_XML@,$aci_module_desc_XML,;t t
24068 s,@aci_pkg_config_XML@,$aci_pkg_config_XML,;t t
24069 s,@HAVE_XML@,$HAVE_XML,;t t
24070 s,@CFLAGS_XML@,$CFLAGS_XML,;t t
24071 s,@LIBS_XML@,$LIBS_XML,;t t
24072 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
24073 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
24074 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
24075 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
24076 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
24077 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
24078 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
24079 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
24080 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24081 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24082 s,@MAINT@,$MAINT,;t t
24083 s,@cflags_set@,$cflags_set,;t t
24084 s,@BASH@,$BASH,;t t
24085 s,@WARNING@,$WARNING,;t t
24086 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24091 cat >>$CONFIG_STATUS <<\_ACEOF
24092 # Split the substitutions into bite-sized pieces for seds with
24093 # small command number limits, like on Digital OSF/1 and HP-UX.
24094 ac_max_sed_lines=48
24095 ac_sed_frag=1 # Number of current file.
24096 ac_beg=1 # First line for current file.
24097 ac_end=$ac_max_sed_lines # Line after last line for current file.
24100 while $ac_more_lines; do
24101 if test $ac_beg -gt 1; then
24102 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24104 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24106 if test ! -s $tmp/subs.frag; then
24107 ac_more_lines=false
24109 # The purpose of the label and of the branching condition is to
24110 # speed up the sed processing (if there are no `@' at all, there
24111 # is no need to browse any of the substitutions).
24112 # These are the two extra sed commands mentioned above.
24114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24115 if test -z "$ac_sed_cmds"; then
24116 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24118 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24120 ac_sed_frag=`expr $ac_sed_frag + 1`
24122 ac_end=`expr $ac_end + $ac_max_sed_lines`
24125 if test -z "$ac_sed_cmds"; then
24128 fi # test -n "$CONFIG_FILES"
24131 cat >>$CONFIG_STATUS <<\_ACEOF
24132 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24133 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24135 - | *:- | *:-:* ) # input from stdin
24137 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24138 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24139 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24140 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24141 * ) ac_file_in=$ac_file.in ;;
24144 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24145 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24146 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24147 X"$ac_file" : 'X\(//\)[^/]' \| \
24148 X"$ac_file" : 'X\(//\)$' \| \
24149 X"$ac_file" : 'X\(/\)' \| \
24150 . : '\(.\)' 2>/dev/null ||
24152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24154 /^X\(\/\/\)$/{ s//\1/; q; }
24155 /^X\(\/\).*/{ s//\1/; q; }
24157 { if $as_mkdir_p; then
24162 while test ! -d "$as_dir"; do
24163 as_dirs="$as_dir $as_dirs"
24164 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24165 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24166 X"$as_dir" : 'X\(//\)[^/]' \| \
24167 X"$as_dir" : 'X\(//\)$' \| \
24168 X"$as_dir" : 'X\(/\)' \| \
24169 . : '\(.\)' 2>/dev/null ||
24171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24173 /^X\(\/\/\)$/{ s//\1/; q; }
24174 /^X\(\/\).*/{ s//\1/; q; }
24177 test ! -n "$as_dirs" || mkdir $as_dirs
24178 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24179 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24180 { (exit 1); exit 1; }; }; }
24184 if test "$ac_dir" != .; then
24185 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24186 # A "../" for each directory in $ac_dir_suffix.
24187 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24189 ac_dir_suffix= ac_top_builddir=
24193 .) # No --srcdir option. We are building in place.
24195 if test -z "$ac_top_builddir"; then
24198 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24200 [\\/]* | ?:[\\/]* ) # Absolute path.
24201 ac_srcdir=$srcdir$ac_dir_suffix;
24202 ac_top_srcdir=$srcdir ;;
24203 *) # Relative path.
24204 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24205 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24208 # Do not use `cd foo && pwd` to compute absolute paths, because
24209 # the directories may not exist.
24211 .) ac_abs_builddir="$ac_dir";;
24214 .) ac_abs_builddir=`pwd`;;
24215 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24216 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24219 case $ac_abs_builddir in
24220 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24222 case ${ac_top_builddir}. in
24223 .) ac_abs_top_builddir=$ac_abs_builddir;;
24224 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24225 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24228 case $ac_abs_builddir in
24229 .) ac_abs_srcdir=$ac_srcdir;;
24232 .) ac_abs_srcdir=$ac_abs_builddir;;
24233 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24234 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24237 case $ac_abs_builddir in
24238 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24240 case $ac_top_srcdir in
24241 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24242 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24243 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24249 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24250 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24253 # Let's still pretend it is `configure' which instantiates (i.e., don't
24254 # use $as_me), people would be surprised to read:
24255 # /* config.h. Generated by config.status. */
24256 if test x"$ac_file" = x-; then
24259 configure_input="$ac_file. "
24261 configure_input=$configure_input"Generated from `echo $ac_file_in |
24262 sed 's,.*/,,'` by configure."
24264 # First look for the input files in the build tree, otherwise in the
24266 ac_file_inputs=`IFS=:
24267 for f in $ac_file_in; do
24269 -) echo $tmp/stdin ;;
24271 # Absolute (can't be DOS-style, as IFS=:)
24272 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24273 echo "$as_me: error: cannot find input file: $f" >&2;}
24274 { (exit 1); exit 1; }; }
24277 if test -f "$f"; then
24280 elif test -f "$srcdir/$f"; then
24285 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24286 echo "$as_me: error: cannot find input file: $f" >&2;}
24287 { (exit 1); exit 1; }; }
24290 done` || { (exit 1); exit 1; }
24292 if test x"$ac_file" != x-; then
24293 { echo "$as_me:$LINENO: creating $ac_file" >&5
24294 echo "$as_me: creating $ac_file" >&6;}
24298 cat >>$CONFIG_STATUS <<_ACEOF
24302 cat >>$CONFIG_STATUS <<\_ACEOF
24304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24305 s,@configure_input@,$configure_input,;t t
24306 s,@srcdir@,$ac_srcdir,;t t
24307 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24308 s,@top_srcdir@,$ac_top_srcdir,;t t
24309 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24310 s,@builddir@,$ac_builddir,;t t
24311 s,@abs_builddir@,$ac_abs_builddir,;t t
24312 s,@top_builddir@,$ac_top_builddir,;t t
24313 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24314 s,@INSTALL@,$ac_INSTALL,;t t
24315 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24317 if test x"$ac_file" != x-; then
24318 mv $tmp/out $ac_file
24324 # Run the commands associated with the file.
24326 Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24327 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24328 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24329 src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24330 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24331 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24332 src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24333 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24334 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24335 src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24336 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24337 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24338 src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24339 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24340 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24341 src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24342 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24343 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24344 src/base/Tests/gs_example ) ( cd src/include ; test -e gras || ln -s . gras )
24345 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24346 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24347 src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
24348 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24349 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24350 src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24351 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24352 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24353 src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24354 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24355 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24356 src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24357 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24358 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24359 src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24360 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24361 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24362 src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24363 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24364 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24365 src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24366 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24367 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24368 doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24369 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24370 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24374 cat >>$CONFIG_STATUS <<\_ACEOF
24377 # CONFIG_HEADER section.
24380 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24381 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24383 # ac_d sets the value in "#define NAME VALUE" lines.
24384 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24385 ac_dB='[ ].*$,\1#\2'
24388 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24389 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24390 ac_uB='$,\1#\2define\3'
24394 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24395 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24397 - | *:- | *:-:* ) # input from stdin
24399 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24400 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24401 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24402 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24403 * ) ac_file_in=$ac_file.in ;;
24406 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24407 echo "$as_me: creating $ac_file" >&6;}
24409 # First look for the input files in the build tree, otherwise in the
24411 ac_file_inputs=`IFS=:
24412 for f in $ac_file_in; do
24414 -) echo $tmp/stdin ;;
24416 # Absolute (can't be DOS-style, as IFS=:)
24417 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24418 echo "$as_me: error: cannot find input file: $f" >&2;}
24419 { (exit 1); exit 1; }; }
24420 # Do quote $f, to prevent DOS paths from being IFS'd.
24423 if test -f "$f"; then
24426 elif test -f "$srcdir/$f"; then
24431 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24432 echo "$as_me: error: cannot find input file: $f" >&2;}
24433 { (exit 1); exit 1; }; }
24436 done` || { (exit 1); exit 1; }
24437 # Remove the trailing spaces.
24438 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24442 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24443 # `conftest.undefs', that substitutes the proper values into
24444 # config.h.in to produce config.h. The first handles `#define'
24445 # templates, and the second `#undef' templates.
24446 # And first: Protect against being on the right side of a sed subst in
24447 # config.status. Protect against being in an unquoted here document
24448 # in config.status.
24449 rm -f conftest.defines conftest.undefs
24450 # Using a here document instead of a string reduces the quoting nightmare.
24451 # Putting comments in sed scripts is not portable.
24453 # `end' is used to avoid that the second main sed command (meant for
24454 # 0-ary CPP macros) applies to n-ary macro definitions.
24455 # See the Autoconf documentation for `clear'.
24456 cat >confdef2sed.sed <<\_ACEOF
24461 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24463 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24466 # If some macros were called several times there might be several times
24467 # the same #defines, which is useless. Nevertheless, we may not want to
24468 # sort them, since we want the *last* AC-DEFINE to be honored.
24469 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24470 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24471 rm -f confdef2sed.sed
24473 # This sed command replaces #undef with comments. This is necessary, for
24474 # example, in the case of _POSIX_SOURCE, which is predefined and required
24475 # on some systems where configure will not decide to define it.
24476 cat >>conftest.undefs <<\_ACEOF
24477 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24480 # Break up conftest.defines because some shells have a limit on the size
24481 # of here documents, and old seds have small limits too (100 cmds).
24482 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24483 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24484 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24485 echo ' :' >>$CONFIG_STATUS
24486 rm -f conftest.tail
24487 while grep . conftest.defines >/dev/null
24489 # Write a limited-size here document to $tmp/defines.sed.
24490 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24491 # Speed up: don't consider the non `#define' lines.
24492 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24493 # Work around the forget-to-reset-the-flag bug.
24494 echo 't clr' >>$CONFIG_STATUS
24495 echo ': clr' >>$CONFIG_STATUS
24496 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24498 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24500 mv $tmp/out $tmp/in
24502 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24503 rm -f conftest.defines
24504 mv conftest.tail conftest.defines
24506 rm -f conftest.defines
24507 echo ' fi # grep' >>$CONFIG_STATUS
24508 echo >>$CONFIG_STATUS
24510 # Break up conftest.undefs because some shells have a limit on the size
24511 # of here documents, and old seds have small limits too (100 cmds).
24512 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24513 rm -f conftest.tail
24514 while grep . conftest.undefs >/dev/null
24516 # Write a limited-size here document to $tmp/undefs.sed.
24517 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24518 # Speed up: don't consider the non `#undef'
24519 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24520 # Work around the forget-to-reset-the-flag bug.
24521 echo 't clr' >>$CONFIG_STATUS
24522 echo ': clr' >>$CONFIG_STATUS
24523 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24525 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24527 mv $tmp/out $tmp/in
24529 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24530 rm -f conftest.undefs
24531 mv conftest.tail conftest.undefs
24533 rm -f conftest.undefs
24535 cat >>$CONFIG_STATUS <<\_ACEOF
24536 # Let's still pretend it is `configure' which instantiates (i.e., don't
24537 # use $as_me), people would be surprised to read:
24538 # /* config.h. Generated by config.status. */
24539 if test x"$ac_file" = x-; then
24540 echo "/* Generated by configure. */" >$tmp/config.h
24542 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24544 cat $tmp/in >>$tmp/config.h
24546 if test x"$ac_file" != x-; then
24547 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24548 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24549 echo "$as_me: $ac_file is unchanged" >&6;}
24551 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24552 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24553 X"$ac_file" : 'X\(//\)[^/]' \| \
24554 X"$ac_file" : 'X\(//\)$' \| \
24555 X"$ac_file" : 'X\(/\)' \| \
24556 . : '\(.\)' 2>/dev/null ||
24558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24560 /^X\(\/\/\)$/{ s//\1/; q; }
24561 /^X\(\/\).*/{ s//\1/; q; }
24563 { if $as_mkdir_p; then
24568 while test ! -d "$as_dir"; do
24569 as_dirs="$as_dir $as_dirs"
24570 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24572 X"$as_dir" : 'X\(//\)[^/]' \| \
24573 X"$as_dir" : 'X\(//\)$' \| \
24574 X"$as_dir" : 'X\(/\)' \| \
24575 . : '\(.\)' 2>/dev/null ||
24577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24579 /^X\(\/\/\)$/{ s//\1/; q; }
24580 /^X\(\/\).*/{ s//\1/; q; }
24583 test ! -n "$as_dirs" || mkdir $as_dirs
24584 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24585 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24586 { (exit 1); exit 1; }; }; }
24589 mv $tmp/config.h $ac_file
24593 rm -f $tmp/config.h
24595 # Compute $ac_file's index in $config_headers.
24597 for _am_header in $config_headers :; do
24598 case $_am_header in
24599 $ac_file | $ac_file:* )
24602 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24605 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24606 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24607 X$ac_file : 'X\(//\)[^/]' \| \
24608 X$ac_file : 'X\(//\)$' \| \
24609 X$ac_file : 'X\(/\)' \| \
24610 . : '\(.\)' 2>/dev/null ||
24612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24614 /^X\(\/\/\)$/{ s//\1/; q; }
24615 /^X\(\/\).*/{ s//\1/; q; }
24616 s/.*/./; q'`/stamp-h$_am_stamp_count
24619 cat >>$CONFIG_STATUS <<\_ACEOF
24622 # CONFIG_COMMANDS section.
24624 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24625 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24626 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24627 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24628 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24629 X"$ac_dest" : 'X\(//\)[^/]' \| \
24630 X"$ac_dest" : 'X\(//\)$' \| \
24631 X"$ac_dest" : 'X\(/\)' \| \
24632 . : '\(.\)' 2>/dev/null ||
24634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24636 /^X\(\/\/\)$/{ s//\1/; q; }
24637 /^X\(\/\).*/{ s//\1/; q; }
24639 { if $as_mkdir_p; then
24644 while test ! -d "$as_dir"; do
24645 as_dirs="$as_dir $as_dirs"
24646 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24648 X"$as_dir" : 'X\(//\)[^/]' \| \
24649 X"$as_dir" : 'X\(//\)$' \| \
24650 X"$as_dir" : 'X\(/\)' \| \
24651 . : '\(.\)' 2>/dev/null ||
24653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24655 /^X\(\/\/\)$/{ s//\1/; q; }
24656 /^X\(\/\).*/{ s//\1/; q; }
24659 test ! -n "$as_dirs" || mkdir $as_dirs
24660 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24661 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24662 { (exit 1); exit 1; }; }; }
24666 if test "$ac_dir" != .; then
24667 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24668 # A "../" for each directory in $ac_dir_suffix.
24669 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24671 ac_dir_suffix= ac_top_builddir=
24675 .) # No --srcdir option. We are building in place.
24677 if test -z "$ac_top_builddir"; then
24680 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24682 [\\/]* | ?:[\\/]* ) # Absolute path.
24683 ac_srcdir=$srcdir$ac_dir_suffix;
24684 ac_top_srcdir=$srcdir ;;
24685 *) # Relative path.
24686 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24687 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24690 # Do not use `cd foo && pwd` to compute absolute paths, because
24691 # the directories may not exist.
24693 .) ac_abs_builddir="$ac_dir";;
24696 .) ac_abs_builddir=`pwd`;;
24697 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24698 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24701 case $ac_abs_builddir in
24702 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24704 case ${ac_top_builddir}. in
24705 .) ac_abs_top_builddir=$ac_abs_builddir;;
24706 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24707 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24710 case $ac_abs_builddir in
24711 .) ac_abs_srcdir=$ac_srcdir;;
24714 .) ac_abs_srcdir=$ac_abs_builddir;;
24715 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24716 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24719 case $ac_abs_builddir in
24720 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24722 case $ac_top_srcdir in
24723 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24724 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24725 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24730 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24731 echo "$as_me: executing $ac_dest commands" >&6;}
24733 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24734 # Strip MF so we end up with the name of the file.
24735 mf=`echo "$mf" | sed -e 's/:.*$//'`
24736 # Check whether this is an Automake generated Makefile or not.
24737 # We used to match only the files named `Makefile.in', but
24738 # some people rename them; so instead we look at the file content.
24739 # Grep'ing the first line is not enough: some people post-process
24740 # each Makefile.in and add a new line on top of each file to say so.
24741 # So let's grep whole file.
24742 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24743 dirpart=`(dirname "$mf") 2>/dev/null ||
24744 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24745 X"$mf" : 'X\(//\)[^/]' \| \
24746 X"$mf" : 'X\(//\)$' \| \
24747 X"$mf" : 'X\(/\)' \| \
24748 . : '\(.\)' 2>/dev/null ||
24750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24752 /^X\(\/\/\)$/{ s//\1/; q; }
24753 /^X\(\/\).*/{ s//\1/; q; }
24758 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24759 # Extract the definition of DEP_FILES from the Makefile without
24761 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24762 test -z "$DEPDIR" && continue
24763 # When using ansi2knr, U may be empty or an underscore; expand it
24764 U=`sed -n -e '/^U = / s///p' < "$mf"`
24765 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24766 # We invoke sed twice because it is the simplest approach to
24767 # changing $(DEPDIR) to its actual value in the expansion.
24768 for file in `sed -n -e '
24769 /^DEP_FILES = .*\\\\$/ {
24778 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24779 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24780 # Make sure the directory exists.
24781 test -f "$dirpart/$file" && continue
24782 fdir=`(dirname "$file") 2>/dev/null ||
24783 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24784 X"$file" : 'X\(//\)[^/]' \| \
24785 X"$file" : 'X\(//\)$' \| \
24786 X"$file" : 'X\(/\)' \| \
24787 . : '\(.\)' 2>/dev/null ||
24789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24790 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24791 /^X\(\/\/\)$/{ s//\1/; q; }
24792 /^X\(\/\).*/{ s//\1/; q; }
24794 { if $as_mkdir_p; then
24795 mkdir -p $dirpart/$fdir
24797 as_dir=$dirpart/$fdir
24799 while test ! -d "$as_dir"; do
24800 as_dirs="$as_dir $as_dirs"
24801 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24803 X"$as_dir" : 'X\(//\)[^/]' \| \
24804 X"$as_dir" : 'X\(//\)$' \| \
24805 X"$as_dir" : 'X\(/\)' \| \
24806 . : '\(.\)' 2>/dev/null ||
24808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24810 /^X\(\/\/\)$/{ s//\1/; q; }
24811 /^X\(\/\).*/{ s//\1/; q; }
24814 test ! -n "$as_dirs" || mkdir $as_dirs
24815 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24816 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24817 { (exit 1); exit 1; }; }; }
24819 # echo "creating $dirpart/$file"
24820 echo '# dummy' > "$dirpart/$file"
24828 cat >>$CONFIG_STATUS <<\_ACEOF
24830 { (exit 0); exit 0; }
24832 chmod +x $CONFIG_STATUS
24833 ac_clean_files=$ac_clean_files_save
24836 # configure is writing to config.log, and then calls config.status.
24837 # config.status does its own redirection, appending to config.log.
24838 # Unfortunately, on DOS this fails, as config.log is still kept open
24839 # by configure, so config.status won't be able to write to it; its
24840 # output is simply discarded. So we exec the FD to /dev/null,
24841 # effectively closing config.log, so it can be properly (re)opened and
24842 # appended to by config.status. When coming back to configure, we
24843 # need to make the FD available again.
24844 if test "$no_create" != yes; then
24846 ac_config_status_args=
24847 test "$silent" = yes &&
24848 ac_config_status_args="$ac_config_status_args --quiet"
24850 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24852 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24853 # would make configure fail if this is the last instruction.
24854 $ac_cs_success || { (exit 1); exit 1; }
24860 Configuration of package \`${PACKAGE}':
24865 LDFlags: ${LDFLAGS}