2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec
; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo
; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo
; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 if test "X${CDPATH+set}" = Xset
; then CDPATH
=:; export CDPATH
; fi
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset
; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string
="`eval $cmd`") 2>/dev
/null
&&
289 echo_test_string
="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
309 for dir
in $PATH /usr
/ucb
; do
311 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho
; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL
=/bin
/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
350 SHELL
="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string
=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames
=`echo "$tagnames,CXX" | sed 's/^,//'`
396 tagnames
=`echo "$tagnames,F77" | sed 's/^,//'`
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix
=/usr
/local
409 ac_config_libobj_dir
=.
414 SHELL
=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file
="README"
429 # Factoring default headers for most tests.
430 ac_includes_default
="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 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 MAJOR_VERSION MINOR_VERSION MICRO_VERSION INTERFACE_AGE BINARY_AGE VERSION LT_RELEASE LT_CURRENT LT_REVISION LT_AGE 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 ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG PANGO_CFLAGS PANGO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBOBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version
=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name
=s
,x
,x
,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir
='${exec_prefix}/bin'
495 sbindir
='${exec_prefix}/sbin'
496 libexecdir
='${exec_prefix}/libexec'
497 datadir
='${prefix}/share'
498 sysconfdir
='${prefix}/etc'
499 sharedstatedir
='${prefix}/com'
500 localstatedir
='${prefix}/var'
501 libdir
='${exec_prefix}/lib'
502 includedir
='${prefix}/include'
503 oldincludedir
='/usr/include'
504 infodir
='${prefix}/info'
505 mandir
='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
525 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
528 -build |
--build |
--buil |
--bui |
--bu)
529 ac_prev
=build_alias
;;
530 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
531 build_alias
=$ac_optarg ;;
533 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
534 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
535 ac_prev
=cache_file
;;
536 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
537 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
538 cache_file
=$ac_optarg ;;
541 cache_file
=config.cache
;;
543 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
545 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
547 datadir
=$ac_optarg ;;
549 -disable-* |
--disable-*)
550 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* |
--enable-*)
559 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
572 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
573 |
--exec |
--exe |
--ex)
574 ac_prev
=exec_prefix
;;
575 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
576 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
577 |
--exec=* |
--exe=* |
--ex=*)
578 exec_prefix
=$ac_optarg ;;
580 -gas |
--gas |
--ga |
--g)
581 # Obsolete; use --with-gas.
584 -help |
--help |
--hel |
--he |
-h)
586 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
587 ac_init_help
=recursive
;;
588 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
589 ac_init_help
=short
;;
591 -host |
--host |
--hos |
--ho)
592 ac_prev
=host_alias
;;
593 -host=* |
--host=* |
--hos=* |
--ho=*)
594 host_alias
=$ac_optarg ;;
596 -includedir |
--includedir |
--includedi |
--included |
--include \
597 |
--includ |
--inclu |
--incl |
--inc)
598 ac_prev
=includedir
;;
599 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
600 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
601 includedir
=$ac_optarg ;;
603 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
605 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
606 infodir
=$ac_optarg ;;
608 -libdir |
--libdir |
--libdi |
--libd)
610 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
613 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
614 |
--libexe |
--libex |
--libe)
615 ac_prev
=libexecdir
;;
616 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
617 |
--libexe=* |
--libex=* |
--libe=*)
618 libexecdir
=$ac_optarg ;;
620 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
621 |
--localstate |
--localstat |
--localsta |
--localst \
622 |
--locals |
--local |
--loca |
--loc |
--lo)
623 ac_prev
=localstatedir
;;
624 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
625 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
626 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
627 localstatedir
=$ac_optarg ;;
629 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
631 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
635 # Obsolete; use --without-fp.
638 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
639 |
--no-cr |
--no-c |
-n)
642 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
643 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
646 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
647 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
648 |
--oldin |
--oldi |
--old |
--ol |
--o)
649 ac_prev
=oldincludedir
;;
650 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
651 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
652 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
653 oldincludedir
=$ac_optarg ;;
655 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
657 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
660 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
661 |
--program-pre |
--program-pr |
--program-p)
662 ac_prev
=program_prefix
;;
663 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
664 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
665 program_prefix
=$ac_optarg ;;
667 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
668 |
--program-suf |
--program-su |
--program-s)
669 ac_prev
=program_suffix
;;
670 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
671 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
672 program_suffix
=$ac_optarg ;;
674 -program-transform-name |
--program-transform-name \
675 |
--program-transform-nam |
--program-transform-na \
676 |
--program-transform-n |
--program-transform- \
677 |
--program-transform |
--program-transfor \
678 |
--program-transfo |
--program-transf \
679 |
--program-trans |
--program-tran \
680 |
--progr-tra |
--program-tr |
--program-t)
681 ac_prev
=program_transform_name
;;
682 -program-transform-name=* |
--program-transform-name=* \
683 |
--program-transform-nam=* |
--program-transform-na=* \
684 |
--program-transform-n=* |
--program-transform-=* \
685 |
--program-transform=* |
--program-transfor=* \
686 |
--program-transfo=* |
--program-transf=* \
687 |
--program-trans=* |
--program-tran=* \
688 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
689 program_transform_name
=$ac_optarg ;;
691 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
692 |
-silent |
--silent |
--silen |
--sile |
--sil)
695 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
697 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
699 sbindir
=$ac_optarg ;;
701 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
702 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
703 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
705 ac_prev
=sharedstatedir
;;
706 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
707 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
708 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
710 sharedstatedir
=$ac_optarg ;;
712 -site |
--site |
--sit)
714 -site=* |
--site=* |
--sit=*)
717 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
719 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
722 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
723 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
724 ac_prev
=sysconfdir
;;
725 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
726 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
727 sysconfdir
=$ac_optarg ;;
729 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
730 ac_prev
=target_alias
;;
731 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
732 target_alias
=$ac_optarg ;;
734 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
737 -version |
--version |
--versio |
--versi |
--vers |
-V)
741 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package
=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* |
--without-*)
754 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package
=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
767 |
--x-incl |
--x-inc |
--x-in |
--x-i)
768 ac_prev
=x_includes
;;
769 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
770 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
771 x_includes
=$ac_optarg ;;
773 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
774 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
775 ac_prev
=x_libraries
;;
776 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
777 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
778 x_libraries
=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var
in exec_prefix prefix
815 eval ac_val
=$
`echo $ac_var`
817 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val
=$
`echo $ac_var`
829 [\\/$
]* | ?
:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x
; then
844 if test "x$build_alias" = x
; then
845 cross_compiling
=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
856 test "$silent" = yes && exec 6>/dev
/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted
=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir
=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted
=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set
=${build_alias+set}
896 ac_env_build_alias_value
=$build_alias
897 ac_cv_env_build_alias_set
=${build_alias+set}
898 ac_cv_env_build_alias_value
=$build_alias
899 ac_env_host_alias_set
=${host_alias+set}
900 ac_env_host_alias_value
=$host_alias
901 ac_cv_env_host_alias_set
=${host_alias+set}
902 ac_cv_env_host_alias_value
=$host_alias
903 ac_env_target_alias_set
=${target_alias+set}
904 ac_env_target_alias_value
=$target_alias
905 ac_cv_env_target_alias_set
=${target_alias+set}
906 ac_cv_env_target_alias_value
=$target_alias
907 ac_env_CC_set
=${CC+set}
909 ac_cv_env_CC_set
=${CC+set}
910 ac_cv_env_CC_value
=$CC
911 ac_env_CFLAGS_set
=${CFLAGS+set}
912 ac_env_CFLAGS_value
=$CFLAGS
913 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value
=$CFLAGS
915 ac_env_LDFLAGS_set
=${LDFLAGS+set}
916 ac_env_LDFLAGS_value
=$LDFLAGS
917 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value
=$LDFLAGS
919 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value
=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
923 ac_env_CPP_set
=${CPP+set}
924 ac_env_CPP_value
=$CPP
925 ac_cv_env_CPP_set
=${CPP+set}
926 ac_cv_env_CPP_value
=$CPP
927 ac_env_CXX_set
=${CXX+set}
928 ac_env_CXX_value
=$CXX
929 ac_cv_env_CXX_set
=${CXX+set}
930 ac_cv_env_CXX_value
=$CXX
931 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value
=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
935 ac_env_CXXCPP_set
=${CXXCPP+set}
936 ac_env_CXXCPP_value
=$CXXCPP
937 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value
=$CXXCPP
939 ac_env_F77_set
=${F77+set}
940 ac_env_F77_value
=$F77
941 ac_cv_env_F77_set
=${F77+set}
942 ac_cv_env_F77_value
=$F77
943 ac_env_FFLAGS_set
=${FFLAGS+set}
944 ac_env_FFLAGS_value
=$FFLAGS
945 ac_cv_env_FFLAGS_set
=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value
=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1014 --build=BUILD configure
for building on BUILD
[guessed
]
1015 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1016 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1020 if test -n "$ac_init_help"; then
1025 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1026 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1027 --enable-shared[=PKGS
]
1028 build shared libraries
[default
=yes]
1029 --enable-static[=PKGS
]
1030 build static libraries
[default
=yes]
1031 --enable-fast-install[=PKGS
]
1032 optimize
for fast installation
[default
=yes]
1033 --disable-dependency-tracking speeds up one-time build
1034 --enable-dependency-tracking do not reject slow dependency extractors
1035 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1036 --disable-sdltest Do not try to compile and run a
test SDL program
1039 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1040 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1041 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1042 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1045 include additional configurations
[automatic
]
1046 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1047 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1049 Some influential environment variables
:
1050 CC C compiler
command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1053 nonstandard directory
<lib dir
>
1054 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1055 headers
in a nonstandard directory
<include dir
>
1057 CXX C
++ compiler
command
1058 CXXFLAGS C
++ compiler flags
1059 CXXCPP C
++ preprocessor
1060 F77 Fortran
77 compiler
command
1061 FFLAGS Fortran
77 compiler flags
1063 Use these variables to override the choices made by
`configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1069 if test "$ac_init_help" = "recursive"; then
1070 # If there are subdirs, report their specific --help.
1072 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073 test -d $ac_dir || continue
1076 if test "$ac_dir" != .; then
1077 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1078 # A "../" for each directory in $ac_dir_suffix.
1079 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1081 ac_dir_suffix= ac_top_builddir=
1085 .) # No --srcdir option. We are building in place.
1087 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1092 [\\/]* | ?:[\\/]* ) # Absolute path.
1093 ac_srcdir=$srcdir$ac_dir_suffix;
1094 ac_top_srcdir=$srcdir ;;
1096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1101 # the directories may not exist.
1103 .) ac_abs_builddir="$ac_dir";;
1106 .) ac_abs_builddir=`pwd`;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 case ${ac_top_builddir}. in
1115 .) ac_abs_top_builddir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120 case $ac_abs_builddir in
1121 .) ac_abs_srcdir=$ac_srcdir;;
1124 .) ac_abs_srcdir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 case $ac_top_srcdir in
1133 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140 # Check for guested configure; otherwise get Cygnus style configure.
1141 if test -f $ac_srcdir/configure.gnu; then
1143 $SHELL $ac_srcdir/configure.gnu --help=recursive
1144 elif test -f $ac_srcdir/configure; then
1146 $SHELL $ac_srcdir/configure --help=recursive
1147 elif test -f $ac_srcdir/configure.ac ||
1148 test -f $ac_srcdir/configure.in; then
1150 $ac_configure --help
1152 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1173 It was created by $as_me, which was
1174 generated by GNU Autoconf 2.59. Invocation command line was
1185 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1186 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1187 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1188 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1189 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1191 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1192 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1194 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1195 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1196 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1197 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1198 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1199 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1200 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 test -z "$as_dir" && as_dir=.
1209 echo "PATH: $as_dir"
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_must_keep_next=false
1239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1247 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250 if test $ac_must_keep_next = true; then
1251 ac_must_keep_next=false # Got value, back to normal.
1254 *=* | --config-cache | -C | -disable-* | --disable-* \
1255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257 | -with-* | --with-* | -without-* | --without-* | --x)
1258 case "$ac_configure_args0 " in
1259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262 -* ) ac_must_keep_next=true ;;
1265 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266 # Get rid of the leading space.
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log. We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close
' the trap.
1280 trap 'exit_status
=$?
1281 # Save into config.log some information that might help in debugging.
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1291 # The following way of writing the cache mishandles newlines in values,
1294 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1314 for ac_var
in $ac_subst_vars
1316 eval ac_val
=$
`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1321 if test -n "$ac_subst_files"; then
1328 for ac_var
in $ac_subst_files
1330 eval ac_val
=$
`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -s confdefs.h
; then
1343 sed "/^$/d" confdefs.h |
sort
1346 test "$ac_signal" != 0 &&
1347 echo "$as_me: caught signal $ac_signal"
1348 echo "$as_me: exit $exit_status"
1350 rm -f core
*.core
&&
1351 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1354 for ac_signal in 1 2 13 15; do
1355 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 # Predefined preprocessor variables.
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394 if test "x$prefix" != xNONE; then
1395 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400 for ac_site_file in $CONFIG_SITE; do
1401 if test -r "$ac_site_file"; then
1402 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404 sed 's
/^
/|
/' "$ac_site_file" >&5
1409 if test -r "$cache_file"; then
1410 # Some versions of bash will fail to source /dev/null (special
1411 # files actually), so we avoid doing that.
1412 if test -f "$cache_file"; then
1413 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1416 [\\/]* | ?:[\\/]* ) . $cache_file;;
1417 *) . ./$cache_file;;
1421 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1426 # Check that the precious variables saved in the cache have kept the same
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432 eval ac_new_set=\$ac_env_${ac_var}_set
1433 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434 eval ac_new_val="\$ac_env_${ac_var}_value"
1435 case $ac_old_set,$ac_new_set in
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1439 ac_cache_corrupted=: ;;
1441 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1446 if test "x$ac_old_val" != "x$ac_new_val"; then
1447 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1448 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1449 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1450 echo "$as_me: former value: $ac_old_val" >&2;}
1451 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1452 echo "$as_me: current value: $ac_new_val" >&2;}
1453 ac_cache_corrupted=:
1456 # Pass precious variables to config.status.
1457 if test "$ac_new_set" = set; then
1459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1461 *) ac_arg=$ac_var=$ac_new_val ;;
1463 case " $ac_configure_args " in
1464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1465 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469 if $ac_cache_corrupted; then
1470 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1473 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474 { (exit 1); exit 1; }; }
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1480 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502 # Set various version strings - taken gratefully from the GTk sources
1505 # MICRO_VERSION += 1;
1506 # INTERFACE_AGE += 1;
1508 # if any functions have been added, set INTERFACE_AGE to 0.
1509 # if backwards compatibility has been broken,
1510 # set BINARY_AGE and INTERFACE_AGE to 0.
1517 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
1526 # libtool versioning
1528 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
1529 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
1530 LT_REVISION=$INTERFACE_AGE
1531 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
1538 # Detect the canonical host and target build environment
1541 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1542 if test -f $ac_dir/install-sh; then
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1546 elif test -f $ac_dir/install.sh; then
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1550 elif test -f $ac_dir/shtool; then
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1559 { (exit 1); exit 1; }; }
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1565 # Make sure we can run config.sub.
1566 $ac_config_sub sun4 >/dev/null 2>&1 ||
1567 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1568 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1569 { (exit 1); exit 1; }; }
1571 echo "$as_me:$LINENO: checking build system type" >&5
1572 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1573 if test "${ac_cv_build+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 ac_cv_build_alias=$build_alias
1577 test -z "$ac_cv_build_alias" &&
1578 ac_cv_build_alias=`$ac_config_guess`
1579 test -z "$ac_cv_build_alias" &&
1580 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1581 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1582 { (exit 1); exit 1; }; }
1583 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1585 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1589 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1590 echo "${ECHO_T}$ac_cv_build" >&6
1592 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1593 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1594 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1597 echo "$as_me:$LINENO: checking host system type" >&5
1598 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1599 if test "${ac_cv_host+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 ac_cv_host_alias=$host_alias
1603 test -z "$ac_cv_host_alias" &&
1604 ac_cv_host_alias=$ac_cv_build_alias
1605 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1606 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1607 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1608 { (exit 1); exit 1; }; }
1611 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1612 echo "${ECHO_T}$ac_cv_host" >&6
1614 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1615 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1616 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1619 echo "$as_me:$LINENO: checking target system type" >&5
1620 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1621 if test "${ac_cv_target+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 ac_cv_target_alias=$target_alias
1625 test "x$ac_cv_target_alias" = "x" &&
1626 ac_cv_target_alias=$ac_cv_host_alias
1627 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1634 echo "${ECHO_T}$ac_cv_target" >&6
1635 target=$ac_cv_target
1636 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1637 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1638 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1641 # The aliases save the names the user supplied, while $host etc.
1642 # will get canonicalized.
1643 test -n "$target_alias" &&
1644 test "$program_prefix$program_suffix$program_transform_name" = \
1646 program_prefix=${target_alias}-
1648 # Setup for automake
1650 am__api_version="1.8"
1651 # Find a good install program. We prefer a C program (faster),
1652 # so one script is as good as another. But avoid the broken or
1653 # incompatible versions:
1654 # SysV /etc/install, /usr/sbin/install
1655 # SunOS /usr/etc/install
1656 # IRIX /sbin/install
1658 # AmigaOS /C/install, which installs bootblocks on floppy discs
1659 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1662 # OS/2's system install, which has a completely different semantic
1663 # ./install, which can be erroneously created by make from ./install.sh.
1664 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1666 if test -z "$INSTALL"; then
1667 if test "${ac_cv_path_install+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir
=.
1675 # Account for people who put trailing slashes in PATH elements.
1677 .
/ | .
// |
/cC
/* | \
1678 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1679 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1682 # OSF1 and SCO ODT 3.0 have their own names for install.
1683 # Don't use installbsd from OSF since it installs stuff as root
1685 for ac_prog
in ginstall scoinst
install; do
1686 for ac_exec_ext
in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1688 if test $ac_prog = install &&
1689 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1690 # AIX install. It has an incompatible calling convention.
1692 elif test $ac_prog = install &&
1693 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1694 # program-specific install script used by HP pwplus--don't use.
1697 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1709 if test "${ac_cv_path_install+set}" = set; then
1710 INSTALL
=$ac_cv_path_install
1712 # As a last resort, use the slow shell script. We don't cache a
1713 # path for INSTALL within a source directory, because that will
1714 # break other packages using the cache if that directory is
1715 # removed, or if the path is relative.
1716 INSTALL
=$ac_install_sh
1719 echo "$as_me:$LINENO: result: $INSTALL" >&5
1720 echo "${ECHO_T}$INSTALL" >&6
1722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1723 # It thinks the first close brace ends the variable substitution.
1724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1728 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1730 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1731 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1734 echo timestamp
> conftest.
file
1735 # Do `set' in a subshell so we don't clobber the current shell's
1736 # arguments. Must try -L first in case configure is actually a
1737 # symlink; some systems play weird games with the mod time of symlinks
1738 # (eg FreeBSD returns the mod time of the symlink's containing
1741 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1742 if test "$*" = "X"; then
1744 set X
`ls -t $srcdir/configure conftest.file`
1747 if test "$*" != "X $srcdir/configure conftest.file" \
1748 && test "$*" != "X conftest.file $srcdir/configure"; then
1750 # If neither matched, then we have a broken ls. This can happen
1751 # if, for instance, CONFIG_SHELL is bash and it inherits a
1752 # broken ls alias from the environment. This has actually
1753 # happened. Such a system could not be considered "sane".
1754 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1755 alias in your environment" >&5
1756 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1757 alias in your environment" >&2;}
1758 { (exit 1); exit 1; }; }
1761 test "$2" = conftest.
file
1767 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1768 Check your system clock" >&5
1769 echo "$as_me: error: newly created file is older than distributed files!
1770 Check your system clock" >&2;}
1771 { (exit 1); exit 1; }; }
1773 echo "$as_me:$LINENO: result: yes" >&5
1774 echo "${ECHO_T}yes" >&6
1775 test "$program_prefix" != NONE
&&
1776 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1777 # Use a double $ so make ignores it.
1778 test "$program_suffix" != NONE
&&
1779 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1780 # Double any \ or $. echo might interpret backslashes.
1781 # By default was `s,x,x', remove it if useless.
1782 cat <<\_ACEOF
>conftest.
sed
1783 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1785 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1788 # expand $ac_aux_dir to an absolute path
1789 am_aux_dir
=`cd $ac_aux_dir && pwd`
1791 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1792 # Use eval to expand $SHELL
1793 if eval "$MISSING --run true"; then
1794 am_missing_run
="$MISSING --run "
1797 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1798 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1801 if mkdir
-p -- .
2>/dev
/null
; then
1802 # Keeping the `.' argument allows $(mkdir_p) to be used without
1803 # argument. Indeed, we sometimes output rules like
1804 # $(mkdir_p) $(somedir)
1805 # where $(somedir) is conditionally defined.
1806 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1807 # expensive solution, as it forces Make to start a sub-shell.)
1808 mkdir_p
='mkdir -p -- .'
1810 # On NextStep and OpenStep, the `mkdir' command does not
1811 # recognize any option. It will interpret all options as
1812 # directories to create, and then abort because `.' already
1816 test -d $d && rmdir $d
1818 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1819 if test -f "$ac_aux_dir/mkinstalldirs"; then
1820 mkdir_p
='$(mkinstalldirs)'
1822 mkdir_p
='$(install_sh) -d'
1826 for ac_prog
in gawk mawk nawk
awk
1828 # Extract the first word of "$ac_prog", so it can be a program name with args.
1829 set dummy
$ac_prog; ac_word
=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_AWK+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$AWK"; then
1836 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1842 test -z "$as_dir" && as_dir
=.
1843 for ac_exec_ext
in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_AWK
="$ac_prog"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 if test -n "$AWK"; then
1856 echo "$as_me:$LINENO: result: $AWK" >&5
1857 echo "${ECHO_T}$AWK" >&6
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1863 test -n "$AWK" && break
1866 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1867 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1868 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1869 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 cat >conftest.
make <<\_ACEOF
1874 @
echo 'ac_maketemp="$(MAKE)"'
1876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1877 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1878 if test -n "$ac_maketemp"; then
1879 eval ac_cv_prog_make_
${ac_make}_set
=yes
1881 eval ac_cv_prog_make_
${ac_make}_set
=no
1885 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1886 echo "$as_me:$LINENO: result: yes" >&5
1887 echo "${ECHO_T}yes" >&6
1890 echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1892 SET_MAKE
="MAKE=${MAKE-make}"
1895 rm -rf .tst
2>/dev
/null
1896 mkdir .tst
2>/dev
/null
1897 if test -d .tst
; then
1902 rmdir .tst
2>/dev
/null
1904 # test to see if srcdir already configured
1905 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1906 test -f $srcdir/config.status
; then
1907 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1908 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1909 { (exit 1); exit 1; }; }
1912 # test whether we have cygpath
1913 if test -z "$CYGPATH_W"; then
1914 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1915 CYGPATH_W
='cygpath -w'
1922 # Define the identity of the package.
1927 cat >>confdefs.h
<<_ACEOF
1928 #define PACKAGE "$PACKAGE"
1932 cat >>confdefs.h
<<_ACEOF
1933 #define VERSION "$VERSION"
1936 # Some tools Automake needs.
1938 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1941 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1944 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1947 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1950 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1953 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1955 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1957 # Installed binaries are usually stripped using `strip' when the user
1958 # run `make install-strip'. However `strip' might not be the right
1959 # tool to use in cross-compilation environments, therefore Automake
1960 # will honor the `STRIP' environment variable to overrule this program.
1961 if test "$cross_compiling" != no
; then
1962 if test -n "$ac_tool_prefix"; then
1963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1964 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_STRIP+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$STRIP"; then
1971 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir
=.
1978 for ac_exec_ext
in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 STRIP
=$ac_cv_prog_STRIP
1990 if test -n "$STRIP"; then
1991 echo "$as_me:$LINENO: result: $STRIP" >&5
1992 echo "${ECHO_T}$STRIP" >&6
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1999 if test -z "$ac_cv_prog_STRIP"; then
2001 # Extract the first word of "strip", so it can be a program name with args.
2002 set dummy strip
; ac_word
=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$ac_ct_STRIP"; then
2009 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir
=.
2016 for ac_exec_ext
in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_ac_ct_STRIP
="strip"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
2028 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2029 if test -n "$ac_ct_STRIP"; then
2030 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2031 echo "${ECHO_T}$ac_ct_STRIP" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2039 STRIP
="$ac_cv_prog_STRIP"
2043 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
2045 # We need awk for the "check" target. The system "awk" is bad on
2055 # Check whether --enable-shared or --disable-shared was given.
2056 if test "${enable_shared+set}" = set; then
2057 enableval
="$enable_shared"
2058 p
=${PACKAGE-default}
2060 yes) enable_shared
=yes ;;
2061 no
) enable_shared
=no
;;
2064 # Look at the argument we got. We use all the common list separators.
2065 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
2066 for pkg
in $enableval; do
2068 if test "X$pkg" = "X$p"; then
2079 # Check whether --enable-static or --disable-static was given.
2080 if test "${enable_static+set}" = set; then
2081 enableval
="$enable_static"
2082 p
=${PACKAGE-default}
2084 yes) enable_static
=yes ;;
2085 no
) enable_static
=no
;;
2088 # Look at the argument we got. We use all the common list separators.
2089 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
2090 for pkg
in $enableval; do
2092 if test "X$pkg" = "X$p"; then
2103 # Check whether --enable-fast-install or --disable-fast-install was given.
2104 if test "${enable_fast_install+set}" = set; then
2105 enableval
="$enable_fast_install"
2106 p
=${PACKAGE-default}
2108 yes) enable_fast_install
=yes ;;
2109 no
) enable_fast_install
=no
;;
2111 enable_fast_install
=no
2112 # Look at the argument we got. We use all the common list separators.
2113 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
2114 for pkg
in $enableval; do
2116 if test "X$pkg" = "X$p"; then
2117 enable_fast_install
=yes
2124 enable_fast_install
=yes
2127 DEPDIR
="${am__leading_dot}deps"
2129 ac_config_commands
="$ac_config_commands depfiles"
2132 am_make
=${MAKE-make}
2133 cat > confinc
<< 'END'
2138 # If we don't find an include directive, just comment out the code.
2139 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2140 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2144 # First try GNU make style include.
2145 echo "include confinc" > confmf
2146 # We grep out `Entering directory' and `Leaving directory'
2147 # messages which can occur if `w' ends up in MAKEFLAGS.
2148 # In particular we don't look at `^make:' because GNU make might
2149 # be invoked under some other name (usually "gmake"), in which
2150 # case it prints its new name instead of `make'.
2151 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2156 # Now try BSD make style include.
2157 if test "$am__include" = "#"; then
2158 echo '.include "confinc"' > confmf
2159 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2160 am__include
=.include
2167 echo "$as_me:$LINENO: result: $_am_result" >&5
2168 echo "${ECHO_T}$_am_result" >&6
2169 rm -f confinc confmf
2171 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2172 if test "${enable_dependency_tracking+set}" = set; then
2173 enableval
="$enable_dependency_tracking"
2176 if test "x$enable_dependency_tracking" != xno
; then
2177 am_depcomp
="$ac_aux_dir/depcomp"
2182 if test "x$enable_dependency_tracking" != xno; then
2193 ac_cpp
='$CPP $CPPFLAGS'
2194 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2197 if test -n "$ac_tool_prefix"; then
2198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2199 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC
="$CC" # Let the user override the test.
2208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2212 test -z "$as_dir" && as_dir
=.
2213 for ac_exec_ext
in '' $ac_executable_extensions; do
2214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 if test -n "$CC"; then
2226 echo "$as_me:$LINENO: result: $CC" >&5
2227 echo "${ECHO_T}$CC" >&6
2229 echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2234 if test -z "$ac_cv_prog_CC"; then
2236 # Extract the first word of "gcc", so it can be a program name with args.
2237 set dummy gcc
; ac_word
=$2
2238 echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$ac_ct_CC"; then
2244 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2250 test -z "$as_dir" && as_dir
=.
2251 for ac_exec_ext
in '' $ac_executable_extensions; do
2252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2253 ac_cv_prog_ac_ct_CC
="gcc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2263 if test -n "$ac_ct_CC"; then
2264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2265 echo "${ECHO_T}$ac_ct_CC" >&6
2267 echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2276 if test -z "$CC"; then
2277 if test -n "$ac_tool_prefix"; then
2278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2279 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2280 echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC
="$CC" # Let the user override the test.
2288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir
=.
2293 for ac_exec_ext
in '' $ac_executable_extensions; do
2294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 if test -n "$CC"; then
2306 echo "$as_me:$LINENO: result: $CC" >&5
2307 echo "${ECHO_T}$CC" >&6
2309 echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2314 if test -z "$ac_cv_prog_CC"; then
2316 # Extract the first word of "cc", so it can be a program name with args.
2317 set dummy cc
; ac_word
=$2
2318 echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 if test -n "$ac_ct_CC"; then
2324 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2330 test -z "$as_dir" && as_dir
=.
2331 for ac_exec_ext
in '' $ac_executable_extensions; do
2332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333 ac_cv_prog_ac_ct_CC
="cc"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2343 if test -n "$ac_ct_CC"; then
2344 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2345 echo "${ECHO_T}$ac_ct_CC" >&6
2347 echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2357 if test -z "$CC"; then
2358 # Extract the first word of "cc", so it can be a program name with args.
2359 set dummy cc
; ac_word
=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC
="$CC" # Let the user override the test.
2369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir
=.
2374 for ac_exec_ext
in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2377 ac_prog_rejected
=yes
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 if test $ac_prog_rejected = yes; then
2388 # We found a bogon in the path, so make sure we never use it.
2389 set dummy
$ac_cv_prog_CC
2391 if test $# != 0; then
2392 # We chose a different compiler from the bogus one.
2393 # However, it has the same basename, so the bogon will be chosen
2394 # first if we set CC to just the basename; use the full file name.
2396 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2402 if test -n "$CC"; then
2403 echo "$as_me:$LINENO: result: $CC" >&5
2404 echo "${ECHO_T}$CC" >&6
2406 echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2411 if test -z "$CC"; then
2412 if test -n "$ac_tool_prefix"; then
2415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2416 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2417 echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC
="$CC" # Let the user override the test.
2425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir
=.
2430 for ac_exec_ext
in '' $ac_executable_extensions; do
2431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 if test -n "$CC"; then
2443 echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2450 test -n "$CC" && break
2453 if test -z "$CC"; then
2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy
$ac_prog; ac_word
=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$ac_ct_CC"; then
2465 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir
=.
2472 for ac_exec_ext
in '' $ac_executable_extensions; do
2473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474 ac_cv_prog_ac_ct_CC
="$ac_prog"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2484 if test -n "$ac_ct_CC"; then
2485 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2486 echo "${ECHO_T}$ac_ct_CC" >&6
2488 echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2492 test -n "$ac_ct_CC" && break
2501 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: no acceptable C compiler found in \$PATH
2504 See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2507 # Provide some information about the compiler.
2508 echo "$as_me:$LINENO:" \
2509 "checking for C compiler version" >&5
2510 ac_compiler
=`set X $ac_compile; echo $2`
2511 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2512 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2517 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2522 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2527 cat >conftest.
$ac_ext <<_ACEOF
2530 cat confdefs.h
>>conftest.
$ac_ext
2531 cat >>conftest.
$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2542 ac_clean_files_save
=$ac_clean_files
2543 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2544 # Try to create an executable without -o first, disregard a.out.
2545 # It will help us diagnose broken compilers, and finding out an intuition
2547 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2548 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2549 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2550 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2551 (eval $ac_link_default) 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; then
2555 # Find the output, starting from the most likely. This scheme is
2556 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2559 # Be careful to initialize this variable, since it used to be cached.
2560 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2562 # b.out is created by i960 compilers.
2563 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2565 test -f "$ac_file" ||
continue
2567 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2570 # This is the source file.
2573 # We found the default executable, but exeext='' is most
2577 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578 # FIXME: I believe we export ac_cv_exeext for Libtool,
2579 # but it would be cool to find out if it's true. Does anybody
2580 # maintain Libtool? --akim.
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.
$ac_ext >&5
2591 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: C compiler cannot create executables
2594 See \`config.log' for more details." >&2;}
2595 { (exit 77); exit 77; }; }
2598 ac_exeext
=$ac_cv_exeext
2599 echo "$as_me:$LINENO: result: $ac_file" >&5
2600 echo "${ECHO_T}$ac_file" >&6
2602 # Check the compiler produces executables we can run. If not, either
2603 # the compiler is broken, or we cross compile.
2604 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2605 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2606 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2607 # If not cross compiling, check that we can run a simple program.
2608 if test "$cross_compiling" != yes; then
2609 if { ac_try
='./$ac_file'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2617 if test "$cross_compiling" = maybe
; then
2620 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2621 If you meant to cross compile, use \`--host'.
2622 See \`config.log' for more details." >&5
2623 echo "$as_me: error: cannot run C compiled programs.
2624 If you meant to cross compile, use \`--host'.
2625 See \`config.log' for more details." >&2;}
2626 { (exit 1); exit 1; }; }
2630 echo "$as_me:$LINENO: result: yes" >&5
2631 echo "${ECHO_T}yes" >&6
2633 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2634 ac_clean_files
=$ac_clean_files_save
2635 # Check the compiler produces executables we can run. If not, either
2636 # the compiler is broken, or we cross compile.
2637 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2638 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2639 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2640 echo "${ECHO_T}$cross_compiling" >&6
2642 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2643 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2645 (eval $ac_link) 2>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; then
2649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2651 # work properly (i.e., refer to `conftest.exe'), while it won't with
2653 for ac_file
in conftest.exe conftest conftest.
*; do
2654 test -f "$ac_file" ||
continue
2656 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2657 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2664 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2667 See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }
2671 rm -f conftest
$ac_cv_exeext
2672 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2673 echo "${ECHO_T}$ac_cv_exeext" >&6
2675 rm -f conftest.
$ac_ext
2676 EXEEXT
=$ac_cv_exeext
2678 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2679 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2680 if test "${ac_cv_objext+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 cat >conftest.
$ac_ext <<_ACEOF
2686 cat confdefs.h
>>conftest.
$ac_ext
2687 cat >>conftest.
$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 rm -f conftest.o conftest.obj
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2706 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2707 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.
$ac_ext >&5
2715 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2716 See \`config.log' for more details." >&5
2717 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2718 See \`config.log' for more details." >&2;}
2719 { (exit 1); exit 1; }; }
2722 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2724 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2725 echo "${ECHO_T}$ac_cv_objext" >&6
2726 OBJEXT
=$ac_cv_objext
2728 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2729 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2730 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 cat >conftest.
$ac_ext <<_ACEOF
2736 cat confdefs.h
>>conftest.
$ac_ext
2737 cat >>conftest.
$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2751 rm -f conftest.
$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>conftest.er1
2755 grep -v '^ *+' conftest.er1
>conftest.err
2757 cat conftest.err
>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try
='test -z "$ac_c_werror_flag"
2761 || test ! -s conftest.err'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; } &&
2767 { ac_try
='test -s conftest.$ac_objext'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.
$ac_ext >&5
2780 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2781 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2784 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2785 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2786 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2787 ac_test_CFLAGS
=${CFLAGS+set}
2788 ac_save_CFLAGS
=$CFLAGS
2790 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2791 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2792 if test "${ac_cv_prog_cc_g+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 cat >conftest.
$ac_ext <<_ACEOF
2798 cat confdefs.h
>>conftest.
$ac_ext
2799 cat >>conftest.
$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2810 rm -f conftest.
$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812 (eval $ac_compile) 2>conftest.er1
2814 grep -v '^ *+' conftest.er1
>conftest.err
2816 cat conftest.err
>&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try
='test -z "$ac_c_werror_flag"
2820 || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try
='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.
$ac_ext >&5
2839 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2843 if test "$ac_test_CFLAGS" = set; then
2844 CFLAGS
=$ac_save_CFLAGS
2845 elif test $ac_cv_prog_cc_g = yes; then
2846 if test "$GCC" = yes; then
2852 if test "$GCC" = yes; then
2858 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2859 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2860 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 ac_cv_prog_cc_stdc
=no
2865 cat >conftest.
$ac_ext <<_ACEOF
2868 cat confdefs.h
>>conftest.
$ac_ext
2869 cat >>conftest.
$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2873 #include <sys/types.h>
2874 #include <sys/stat.h>
2875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2876 struct buf { int x; };
2877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2878 static char *e (p, i)
2884 static char *f (char * (*g) (char **, int), char **p, ...)
2889 s = g (p, va_arg (v,int));
2894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2895 function prototypes and stuff, but not '\xHH' hex character constants.
2896 These don't provoke an error unfortunately, instead are silently treated
2897 as 'x'. The following induces an error, until -std1 is added to get
2898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2899 array size at least. It's necessary to write '\x00'==0 to get something
2900 that's true only with -std1. */
2901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2903 int test (int i, double x);
2904 struct s1 {int (*f) (int a);};
2905 struct s2 {int (*f) (double a);};
2906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2912 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2917 # Don't try gcc -ansi; that turns off useful extensions and
2918 # breaks some systems' header files.
2919 # AIX -qlanglvl=ansi
2920 # Ultrix and OSF/1 -std1
2921 # HP-UX 10.20 and later -Ae
2922 # HP-UX older versions -Aa -D_HPUX_SOURCE
2923 # SVR4 -Xc -D__EXTENSIONS__
2924 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2926 CC
="$ac_save_CC $ac_arg"
2927 rm -f conftest.
$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>conftest.er1
2931 grep -v '^ *+' conftest.er1
>conftest.err
2933 cat conftest.err
>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try
='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try
='test -s conftest.$ac_objext'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 ac_cv_prog_cc_stdc
=$ac_arg
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.
$ac_ext >&5
2956 rm -f conftest.err conftest.
$ac_objext
2958 rm -f conftest.
$ac_ext conftest.
$ac_objext
2963 case "x$ac_cv_prog_cc_stdc" in
2965 echo "$as_me:$LINENO: result: none needed" >&5
2966 echo "${ECHO_T}none needed" >&6 ;;
2968 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2969 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2970 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2973 # Some people use a C++ compiler to compile C. Since we use `exit',
2974 # in C++ we need to declare it. In case someone uses the same compiler
2975 # for both compiling C and C++ we need to have the C++ compiler decide
2976 # the declaration of exit, since it's the most demanding environment.
2977 cat >conftest.
$ac_ext <<_ACEOF
2982 rm -f conftest.
$ac_objext
2983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984 (eval $ac_compile) 2>conftest.er1
2986 grep -v '^ *+' conftest.er1
>conftest.err
2988 cat conftest.err
>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } &&
2991 { ac_try
='test -z "$ac_c_werror_flag"
2992 || test ! -s conftest.err'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; } &&
2998 { ac_try
='test -s conftest.$ac_objext'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 for ac_declaration
in \
3006 'extern "C" void std::exit (int) throw (); using std::exit;' \
3007 'extern "C" void std::exit (int); using std::exit;' \
3008 'extern "C" void exit (int) throw ();' \
3009 'extern "C" void exit (int);' \
3012 cat >conftest.
$ac_ext <<_ACEOF
3015 cat confdefs.h
>>conftest.
$ac_ext
3016 cat >>conftest.
$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3028 rm -f conftest.
$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>conftest.er1
3032 grep -v '^ *+' conftest.er1
>conftest.err
3034 cat conftest.err
>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try
='test -z "$ac_c_werror_flag"
3038 || test ! -s conftest.err'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try
='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.
$ac_ext >&5
3057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3058 cat >conftest.
$ac_ext <<_ACEOF
3061 cat confdefs.h
>>conftest.
$ac_ext
3062 cat >>conftest.
$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3073 rm -f conftest.
$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 (eval $ac_compile) 2>conftest.er1
3077 grep -v '^ *+' conftest.er1
>conftest.err
3079 cat conftest.err
>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try
='test -z "$ac_c_werror_flag"
3083 || test ! -s conftest.err'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try
='test -s conftest.$ac_objext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.
$ac_ext >&5
3101 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3104 if test -n "$ac_declaration"; then
3105 echo '#ifdef __cplusplus' >>confdefs.h
3106 echo $ac_declaration >>confdefs.h
3107 echo '#endif' >>confdefs.h
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.
$ac_ext >&5
3115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3117 ac_cpp
='$CPP $CPPFLAGS'
3118 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3122 depcc
="$CC" am_compiler_list
=
3124 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3125 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3126 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3130 # We make a subdir and do the tests there. Otherwise we can end up
3131 # making bogus files that we don't know about and never remove. For
3132 # instance it was reported that on HP-UX the gcc test will end up
3133 # making a dummy file named `D' -- because `-MD' means `put the output
3136 # Copy depcomp to subdir because otherwise we won't find it if we're
3137 # using a relative directory.
3138 cp "$am_depcomp" conftest.dir
3140 # We will build objects and dependencies in a subdirectory because
3141 # it helps to detect inapplicable dependency modes. For instance
3142 # both Tru64's cc and ICC support -MD to output dependencies as a
3143 # side effect of compilation, but ICC will put the dependencies in
3144 # the current directory while Tru64 will put them in the object
3148 am_cv_CC_dependencies_compiler_type
=none
3149 if test "$am_compiler_list" = ""; then
3150 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3152 for depmode
in $am_compiler_list; do
3153 # Setup a source with many dependencies, because some compilers
3154 # like to wrap large dependency lists on column 80 (with \), and
3155 # we should not choose a depcomp mode which is confused by this.
3157 # We need to recreate these files for each test, as the compiler may
3158 # overwrite some of them when testing with obscure command lines.
3159 # This happens at least with the AIX C compiler.
3161 for i
in 1 2 3 4 5 6; do
3162 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3165 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3169 # after this tag, mechanisms are not by side-effect, so they'll
3170 # only be used when explicitly requested
3171 if test "x$enable_dependency_tracking" = xyes
; then
3179 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3180 # mode. It turns out that the SunPro C++ compiler does not properly
3181 # handle `-M -o', and we need to detect this.
3182 if depmode
=$depmode \
3183 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3184 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3185 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3186 >/dev
/null
2>conftest.err
&&
3187 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3188 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3189 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3190 # icc doesn't choke on unknown options, it will just issue warnings
3191 # (even with -Werror). So we grep stderr for any message
3192 # that says an option was ignored.
3193 if grep 'ignoring option' conftest.err
>/dev
/null
2>&1; then :; else
3194 am_cv_CC_dependencies_compiler_type
=$depmode
3203 am_cv_CC_dependencies_compiler_type
=none
3207 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3208 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3209 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3214 test "x$enable_dependency_tracking" != xno \
3215 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3217 am__fastdepCC_FALSE
='#'
3219 am__fastdepCC_TRUE
='#'
3220 am__fastdepCC_FALSE
=
3224 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3225 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3226 if test "${lt_cv_path_SED+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 # Loop through the user's path and test for sed and gsed.
3230 # Then use that list of sed's as ones to test for truncation.
3231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir
=.
3236 for lt_ac_prog
in sed gsed
; do
3237 for ac_exec_ext
in '' $ac_executable_extensions; do
3238 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3239 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3246 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3247 # along with /bin/sed that truncates output.
3248 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3249 test ! -f $lt_ac_sed && break
3250 cat /dev
/null
> conftest.
in
3252 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3253 # Check for GNU sed and select it if it is found.
3254 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3255 lt_cv_path_SED
=$lt_ac_sed
3259 cat conftest.
in conftest.
in >conftest.tmp
3260 mv conftest.tmp conftest.
in
3261 cp conftest.
in conftest.
nl
3263 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3264 cmp -s conftest.out conftest.
nl ||
break
3265 # 10000 chars as input seems more than enough
3266 test $lt_ac_count -gt 10 && break
3267 lt_ac_count
=`expr $lt_ac_count + 1`
3268 if test $lt_ac_count -gt $lt_ac_max; then
3269 lt_ac_max
=$lt_ac_count
3270 lt_cv_path_SED
=$lt_ac_sed
3278 echo "$as_me:$LINENO: result: $SED" >&5
3279 echo "${ECHO_T}$SED" >&6
3281 echo "$as_me:$LINENO: checking for egrep" >&5
3282 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3283 if test "${ac_cv_prog_egrep+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3287 then ac_cv_prog_egrep
='grep -E'
3288 else ac_cv_prog_egrep
='egrep'
3291 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3292 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3293 EGREP
=$ac_cv_prog_egrep
3297 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3298 if test "${with_gnu_ld+set}" = set; then
3299 withval
="$with_gnu_ld"
3300 test "$withval" = no || with_gnu_ld
=yes
3305 if test "$GCC" = yes; then
3306 # Check if gcc -print-prog-name=ld gives a path.
3307 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3308 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3311 # gcc leaves a trailing carriage return which upsets mingw
3312 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3314 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3317 # Accept absolute paths.
3319 re_direlt
='/[^/][^/]*/\.\./'
3320 # Canonicalize the path of ld
3321 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
3322 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3323 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3325 test -z "$LD" && LD
="$ac_prog"
3328 # If it fails, then pretend we aren't using GCC.
3332 # If it is relative, then search for the first ld in PATH.
3336 elif test "$with_gnu_ld" = yes; then
3337 echo "$as_me:$LINENO: checking for GNU ld" >&5
3338 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3340 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3341 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3343 if test "${lt_cv_path_LD+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 if test -z "$LD"; then
3347 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3348 for ac_dir
in $PATH; do
3350 test -z "$ac_dir" && ac_dir
=.
3351 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3352 lt_cv_path_LD
="$ac_dir/$ac_prog"
3353 # Check to see if the program is GNU ld. I'd rather use --version,
3354 # but apparently some GNU ld's only accept -v.
3355 # Break only if it was the GNU/non-GNU ld that we prefer.
3356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3357 *GNU
* |
*'with BFD'*)
3358 test "$with_gnu_ld" != no
&& break
3361 test "$with_gnu_ld" != yes && break
3368 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3373 if test -n "$LD"; then
3374 echo "$as_me:$LINENO: result: $LD" >&5
3375 echo "${ECHO_T}$LD" >&6
3377 echo "$as_me:$LINENO: result: no" >&5
3378 echo "${ECHO_T}no" >&6
3380 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3381 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3382 { (exit 1); exit 1; }; }
3383 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3384 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3385 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3389 case `"$LD" -v 2>&1 </dev/null` in
3390 *GNU
* |
*'with BFD'*)
3391 lt_cv_prog_gnu_ld
=yes
3394 lt_cv_prog_gnu_ld
=no
3398 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3399 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3400 with_gnu_ld
=$lt_cv_prog_gnu_ld
3403 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3404 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3405 if test "${lt_cv_ld_reload_flag+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 lt_cv_ld_reload_flag
='-r'
3410 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3411 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3412 reload_flag
=$lt_cv_ld_reload_flag
3413 case $reload_flag in
3415 *) reload_flag
=" $reload_flag" ;;
3417 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3419 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3420 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3421 if test "${lt_cv_path_NM+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 if test -n "$NM"; then
3425 # Let the user override the test.
3428 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3429 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
3431 test -z "$ac_dir" && ac_dir
=.
3432 tmp_nm
="$ac_dir/${ac_tool_prefix}nm"
3433 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3434 # Check to see if the nm accepts a BSD-compat flag.
3435 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3436 # nm: unknown option "B" ignored
3437 # Tru64's nm complains that /dev/null is an invalid object file
3438 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3439 */dev
/null
* |
*'Invalid file or object type'*)
3440 lt_cv_path_NM
="$tmp_nm -B"
3444 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3446 lt_cv_path_NM
="$tmp_nm -p"
3450 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3451 continue # so that we can try to find one that supports BSD flags
3458 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3461 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3462 echo "${ECHO_T}$lt_cv_path_NM" >&6
3465 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3466 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3468 if test "$LN_S" = "ln -s"; then
3469 echo "$as_me:$LINENO: result: yes" >&5
3470 echo "${ECHO_T}yes" >&6
3472 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3473 echo "${ECHO_T}no, using $LN_S" >&6
3476 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3477 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3478 if test "${lt_cv_deplibs_check_method+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3482 lt_cv_file_magic_test_file
=
3483 lt_cv_deplibs_check_method
='unknown'
3484 # Need to set the preceding variable on all platforms that support
3485 # interlibrary dependencies.
3486 # 'none' -- dependencies not supported.
3487 # `unknown' -- same as none, but documents that we really don't know.
3488 # 'pass_all' -- all dependencies passed with no checks.
3489 # 'test_compile' -- check by making test program.
3490 # 'file_magic [[regex]]' -- check by looking for files in library path
3491 # which responds to the $file_magic_cmd with a given extended regex.
3492 # If you have `file' or equivalent on your system and you're not sure
3493 # whether `pass_all' will *always* work, you probably want this one.
3497 lt_cv_deplibs_check_method
=pass_all
3501 lt_cv_deplibs_check_method
=pass_all
3505 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3506 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3507 lt_cv_file_magic_test_file
=/shlib
/libc.so
3510 cygwin
* | mingw
* | pw32
*)
3511 # win32_libid is a shell function defined in ltmain.sh
3512 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
3513 lt_cv_file_magic_cmd
='win32_libid'
3516 darwin
* | rhapsody
*)
3517 # this will be overwritten by pass_all, but leave it in just in case
3518 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
3519 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3521 rhapsody
* | darwin1.
[012])
3522 lt_cv_file_magic_test_file
=`/System/Library/Frameworks/System.framework/System`
3525 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
3528 lt_cv_deplibs_check_method
=pass_all
3532 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3535 # Not sure whether the presence of OpenBSD here was a mistake.
3536 # Let's accept both of them until this is cleared up.
3537 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3538 lt_cv_file_magic_cmd
=/usr
/bin
/file
3539 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3543 lt_cv_deplibs_check_method
=pass_all
3548 lt_cv_deplibs_check_method
=pass_all
3551 hpux10.20
* | hpux11
*)
3552 lt_cv_file_magic_cmd
=/usr
/bin
/file
3555 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3556 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3559 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]'
3560 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
3563 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3564 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
3569 irix5
* | irix6
* | nonstopux
*)
3571 irix5
* | nonstopux
*)
3572 # this will be overridden with pass_all, but let us keep it just in case
3573 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3577 *-32|
*"-32 ") libmagic
=32-bit;;
3578 *-n32|
*"-n32 ") libmagic
=N32
;;
3579 *-64|
*"-64 ") libmagic
=64-bit;;
3580 *) libmagic
=never-match
;;
3582 # this will be overridden with pass_all, but let us keep it just in case
3583 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3586 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
3587 lt_cv_deplibs_check_method
=pass_all
3590 # This must be Linux ELF.
3593 alpha
* | hppa
* | i
*86 | ia64
* | m68
* | mips | mipsel | powerpc
* | sparc
* | s390
* | sh
*)
3594 lt_cv_deplibs_check_method
=pass_all
;;
3596 # glibc up to 2.1.1 does not perform some relocations on ARM
3597 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3599 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
3603 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3604 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3606 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3611 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3612 lt_cv_file_magic_cmd
=/usr
/bin
/file
3613 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
3617 lt_cv_deplibs_check_method
=unknown
3621 lt_cv_file_magic_cmd
=/usr
/bin
/file
3622 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3624 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3626 lt_cv_deplibs_check_method
='file_magic OpenBSD.* shared library'
3630 osf3
* | osf4
* | osf5
*)
3631 # this will be overridden with pass_all, but let us keep it just in case
3632 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
3633 lt_cv_file_magic_test_file
=/shlib
/libc.so
3634 lt_cv_deplibs_check_method
=pass_all
3638 lt_cv_deplibs_check_method
=pass_all
3642 lt_cv_deplibs_check_method
=pass_all
3643 lt_cv_file_magic_test_file
=/lib
/libc.so
3646 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
3647 case $host_vendor in
3649 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]'
3650 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
3653 lt_cv_deplibs_check_method
=pass_all
3656 lt_cv_file_magic_cmd
='/bin/file'
3657 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3660 lt_cv_file_magic_cmd
='/bin/file'
3661 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3662 lt_cv_file_magic_test_file
=/lib
/libc.so
3665 lt_cv_deplibs_check_method
=pass_all
3670 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
* | sysv4
*uw2
*)
3671 lt_cv_deplibs_check_method
=pass_all
3676 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3677 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3678 file_magic_cmd
=$lt_cv_file_magic_cmd
3679 deplibs_check_method
=$lt_cv_deplibs_check_method
3680 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
3685 # If no C compiler was specified, use CC.
3688 # Allow CC to be a program name with arguments.
3692 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3693 if test "${enable_libtool_lock+set}" = set; then
3694 enableval
="$enable_libtool_lock"
3697 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
3699 # Some flags need to be propagated to the compiler or linker for good
3703 # Find out which ABI we are using.
3704 echo 'int i;' > conftest.
$ac_ext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706 (eval $ac_compile) 2>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; then
3710 case `/usr/bin/file conftest.$ac_objext` in
3722 # Find out which ABI we are using.
3723 echo '#line 3723 "configure"' > conftest.
$ac_ext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; then
3729 if test "$lt_cv_prog_gnu_ld" = yes; then
3730 case `/usr/bin/file conftest.$ac_objext` in
3732 LD
="${LD-ld} -melf32bsmip"
3735 LD
="${LD-ld} -melf32bmipn32"
3738 LD
="${LD-ld} -melf64bmip"
3742 case `/usr/bin/file conftest.$ac_objext` in
3758 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
3759 # Find out which ABI we are using.
3760 echo 'int i;' > conftest.
$ac_ext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; then
3766 case "`/usr/bin/file conftest.o`" in
3770 LD
="${LD-ld} -m elf_i386"
3773 LD
="${LD-ld} -m elf32ppclinux"
3776 LD
="${LD-ld} -m elf_s390"
3779 LD
="${LD-ld} -m elf32_sparc"
3786 LD
="${LD-ld} -m elf_x86_64"
3788 ppc
*-*linux
*|powerpc
*-*linux
*)
3789 LD
="${LD-ld} -m elf64ppc"
3792 LD
="${LD-ld} -m elf64_s390"
3795 LD
="${LD-ld} -m elf64_sparc"
3805 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3806 SAVE_CFLAGS
="$CFLAGS"
3807 CFLAGS
="$CFLAGS -belf"
3808 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3809 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3810 if test "${lt_cv_cc_needs_belf+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 ac_cpp
='$CPP $CPPFLAGS'
3815 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3819 cat >conftest.
$ac_ext <<_ACEOF
3822 cat confdefs.h
>>conftest.
$ac_ext
3823 cat >>conftest.
$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3834 rm -f conftest.
$ac_objext conftest
$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836 (eval $ac_link) 2>conftest.er1
3838 grep -v '^ *+' conftest.er1
>conftest.err
3840 cat conftest.err
>&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } &&
3843 { ac_try
='test -z "$ac_c_werror_flag"
3844 || test ! -s conftest.err'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try
='test -s conftest$ac_exeext'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 lt_cv_cc_needs_belf
=yes
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.
$ac_ext >&5
3861 lt_cv_cc_needs_belf
=no
3863 rm -f conftest.err conftest.
$ac_objext \
3864 conftest
$ac_exeext conftest.
$ac_ext
3866 ac_cpp
='$CPP $CPPFLAGS'
3867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3872 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3873 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3874 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
3875 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3876 CFLAGS
="$SAVE_CFLAGS"
3879 *-*-cygwin* |
*-*-mingw* |
*-*-pw32*)
3880 if test -n "$ac_tool_prefix"; then
3881 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3882 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 if test -n "$DLLTOOL"; then
3889 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir
=.
3896 for ac_exec_ext
in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 DLLTOOL
=$ac_cv_prog_DLLTOOL
3908 if test -n "$DLLTOOL"; then
3909 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3910 echo "${ECHO_T}$DLLTOOL" >&6
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3917 if test -z "$ac_cv_prog_DLLTOOL"; then
3918 ac_ct_DLLTOOL
=$DLLTOOL
3919 # Extract the first word of "dlltool", so it can be a program name with args.
3920 set dummy dlltool
; ac_word
=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if test -n "$ac_ct_DLLTOOL"; then
3927 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
3929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir
=.
3934 for ac_exec_ext
in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL
="false"
3946 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
3947 if test -n "$ac_ct_DLLTOOL"; then
3948 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3949 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3955 DLLTOOL
=$ac_ct_DLLTOOL
3957 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3960 if test -n "$ac_tool_prefix"; then
3961 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3962 set dummy
${ac_tool_prefix}as
; ac_word
=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_AS+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 if test -n "$AS"; then
3969 ac_cv_prog_AS
="$AS" # Let the user override the test.
3971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3975 test -z "$as_dir" && as_dir
=.
3976 for ac_exec_ext
in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_AS
="${ac_tool_prefix}as"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 if test -n "$AS"; then
3989 echo "$as_me:$LINENO: result: $AS" >&5
3990 echo "${ECHO_T}$AS" >&6
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3997 if test -z "$ac_cv_prog_AS"; then
3999 # Extract the first word of "as", so it can be a program name with args.
4000 set dummy as
; ac_word
=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 if test -n "$ac_ct_AS"; then
4007 ac_cv_prog_ac_ct_AS
="$ac_ct_AS" # Let the user override the test.
4009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4013 test -z "$as_dir" && as_dir
=.
4014 for ac_exec_ext
in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_ac_ct_AS
="as"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS
="false"
4026 ac_ct_AS
=$ac_cv_prog_ac_ct_AS
4027 if test -n "$ac_ct_AS"; then
4028 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4029 echo "${ECHO_T}$ac_ct_AS" >&6
4031 echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4040 if test -n "$ac_tool_prefix"; then
4041 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4042 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 if test -n "$OBJDUMP"; then
4049 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
4051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir
=.
4056 for ac_exec_ext
in '' $ac_executable_extensions; do
4057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
4059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 OBJDUMP
=$ac_cv_prog_OBJDUMP
4068 if test -n "$OBJDUMP"; then
4069 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4070 echo "${ECHO_T}$OBJDUMP" >&6
4072 echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4077 if test -z "$ac_cv_prog_OBJDUMP"; then
4078 ac_ct_OBJDUMP
=$OBJDUMP
4079 # Extract the first word of "objdump", so it can be a program name with args.
4080 set dummy objdump
; ac_word
=$2
4081 echo "$as_me:$LINENO: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 if test -n "$ac_ct_OBJDUMP"; then
4087 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
4089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4093 test -z "$as_dir" && as_dir
=.
4094 for ac_exec_ext
in '' $ac_executable_extensions; do
4095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
4097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP
="false"
4106 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
4107 if test -n "$ac_ct_OBJDUMP"; then
4108 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4109 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4111 echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4115 OBJDUMP
=$ac_ct_OBJDUMP
4117 OBJDUMP
="$ac_cv_prog_OBJDUMP"
4124 need_locks
="$enable_libtool_lock"
4128 ac_cpp
='$CPP $CPPFLAGS'
4129 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4132 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4133 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4134 # On Suns, sometimes $CPP names a directory.
4135 if test -n "$CPP" && test -d "$CPP"; then
4138 if test -z "$CPP"; then
4139 if test "${ac_cv_prog_CPP+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 # Double quotes because CPP needs to be expanded
4143 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4146 for ac_c_preproc_warn_flag
in '' yes
4148 # Use a header file that comes with gcc, so configuring glibc
4149 # with a fresh cross-compiler works.
4150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4151 # <limits.h> exists even on freestanding compilers.
4152 # On the NeXT, cc -E runs the code through the compiler's parser,
4153 # not just through cpp. "Syntax error" is here to catch this case.
4154 cat >conftest.
$ac_ext <<_ACEOF
4157 cat confdefs.h
>>conftest.
$ac_ext
4158 cat >>conftest.
$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4161 # include <limits.h>
4163 # include <assert.h>
4167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4168 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4170 grep -v '^ *+' conftest.er1
>conftest.err
4172 cat conftest.err
>&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } >/dev
/null
; then
4175 if test -s conftest.err
; then
4176 ac_cpp_err
=$ac_c_preproc_warn_flag
4177 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4184 if test -z "$ac_cpp_err"; then
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.
$ac_ext >&5
4190 # Broken: fails on valid input.
4193 rm -f conftest.err conftest.
$ac_ext
4195 # OK, works on sane cases. Now check whether non-existent headers
4196 # can be detected and how.
4197 cat >conftest.
$ac_ext <<_ACEOF
4200 cat confdefs.h
>>conftest.
$ac_ext
4201 cat >>conftest.
$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4203 #include <ac_nonexistent.h>
4205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4206 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4208 grep -v '^ *+' conftest.er1
>conftest.err
4210 cat conftest.err
>&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } >/dev
/null
; then
4213 if test -s conftest.err
; then
4214 ac_cpp_err
=$ac_c_preproc_warn_flag
4215 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4222 if test -z "$ac_cpp_err"; then
4223 # Broken: success on invalid input.
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.
$ac_ext >&5
4229 # Passes both tests.
4233 rm -f conftest.err conftest.
$ac_ext
4236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4237 rm -f conftest.err conftest.
$ac_ext
4238 if $ac_preproc_ok; then
4250 echo "$as_me:$LINENO: result: $CPP" >&5
4251 echo "${ECHO_T}$CPP" >&6
4253 for ac_c_preproc_warn_flag
in '' yes
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat >conftest.
$ac_ext <<_ACEOF
4264 cat confdefs.h
>>conftest.
$ac_ext
4265 cat >>conftest.
$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4268 # include <limits.h>
4270 # include <assert.h>
4274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4275 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4277 grep -v '^ *+' conftest.er1
>conftest.err
4279 cat conftest.err
>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } >/dev
/null
; then
4282 if test -s conftest.err
; then
4283 ac_cpp_err
=$ac_c_preproc_warn_flag
4284 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4291 if test -z "$ac_cpp_err"; then
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.
$ac_ext >&5
4297 # Broken: fails on valid input.
4300 rm -f conftest.err conftest.
$ac_ext
4302 # OK, works on sane cases. Now check whether non-existent headers
4303 # can be detected and how.
4304 cat >conftest.
$ac_ext <<_ACEOF
4307 cat confdefs.h
>>conftest.
$ac_ext
4308 cat >>conftest.
$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4310 #include <ac_nonexistent.h>
4312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4313 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4315 grep -v '^ *+' conftest.er1
>conftest.err
4317 cat conftest.err
>&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } >/dev
/null
; then
4320 if test -s conftest.err
; then
4321 ac_cpp_err
=$ac_c_preproc_warn_flag
4322 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4329 if test -z "$ac_cpp_err"; then
4330 # Broken: success on invalid input.
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.
$ac_ext >&5
4336 # Passes both tests.
4340 rm -f conftest.err conftest.
$ac_ext
4343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4344 rm -f conftest.err conftest.
$ac_ext
4345 if $ac_preproc_ok; then
4348 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4349 See \`config.log' for more details." >&5
4350 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4351 See \`config.log' for more details." >&2;}
4352 { (exit 1); exit 1; }; }
4356 ac_cpp
='$CPP $CPPFLAGS'
4357 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4362 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4363 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4364 if test "${ac_cv_header_stdc+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 cat >conftest.
$ac_ext <<_ACEOF
4370 cat confdefs.h
>>conftest.
$ac_ext
4371 cat >>conftest.
$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4386 rm -f conftest.
$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>conftest.er1
4390 grep -v '^ *+' conftest.er1
>conftest.err
4392 cat conftest.err
>&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try
='test -z "$ac_c_werror_flag"
4396 || test ! -s conftest.err'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try
='test -s conftest.$ac_objext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 ac_cv_header_stdc
=yes
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.
$ac_ext >&5
4413 ac_cv_header_stdc
=no
4415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4417 if test $ac_cv_header_stdc = yes; then
4418 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4419 cat >conftest.
$ac_ext <<_ACEOF
4422 cat confdefs.h
>>conftest.
$ac_ext
4423 cat >>conftest.
$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4429 $EGREP "memchr" >/dev
/null
2>&1; then
4432 ac_cv_header_stdc
=no
4438 if test $ac_cv_header_stdc = yes; then
4439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4440 cat >conftest.
$ac_ext <<_ACEOF
4443 cat confdefs.h
>>conftest.
$ac_ext
4444 cat >>conftest.
$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4450 $EGREP "free" >/dev
/null
2>&1; then
4453 ac_cv_header_stdc
=no
4459 if test $ac_cv_header_stdc = yes; then
4460 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4461 if test "$cross_compiling" = yes; then
4464 cat >conftest.
$ac_ext <<_ACEOF
4467 cat confdefs.h
>>conftest.
$ac_ext
4468 cat >>conftest.
$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4471 #if ((' ' & 0x0FF) == 0x020)
4472 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4475 # define ISLOWER(c) \
4476 (('a' <= (c) && (c) <= 'i') \
4477 || ('j' <= (c) && (c) <= 'r') \
4478 || ('s' <= (c) && (c) <= 'z'))
4479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4487 for (i = 0; i < 256; i++)
4488 if (XOR (islower (i), ISLOWER (i))
4489 || toupper (i) != TOUPPER (i))
4494 rm -f conftest
$ac_exeext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4496 (eval $ac_link) 2>&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4507 echo "$as_me: program exited with status $ac_status" >&5
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.
$ac_ext >&5
4512 ac_cv_header_stdc
=no
4514 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4518 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4519 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4520 if test $ac_cv_header_stdc = yes; then
4522 cat >>confdefs.h
<<\_ACEOF
4523 #define STDC_HEADERS 1
4528 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4538 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4539 inttypes.h stdint.h unistd.h
4541 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4542 echo "$as_me:$LINENO: checking for $ac_header" >&5
4543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 cat >conftest.
$ac_ext <<_ACEOF
4550 cat confdefs.h
>>conftest.
$ac_ext
4551 cat >>conftest.
$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 $ac_includes_default
4555 #include <$ac_header>
4557 rm -f conftest.
$ac_objext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>conftest.er1
4561 grep -v '^ *+' conftest.er1
>conftest.err
4563 cat conftest.err
>&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try
='test -z "$ac_c_werror_flag"
4567 || test ! -s conftest.err'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try
='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 eval "$as_ac_Header=yes"
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.
$ac_ext >&5
4584 eval "$as_ac_Header=no"
4586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4591 cat >>confdefs.h
<<_ACEOF
4592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4601 for ac_header
in dlfcn.h
4603 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4605 echo "$as_me:$LINENO: checking for $ac_header" >&5
4606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4613 # Is the header compilable?
4614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4616 cat >conftest.
$ac_ext <<_ACEOF
4619 cat confdefs.h
>>conftest.
$ac_ext
4620 cat >>conftest.
$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 $ac_includes_default
4623 #include <$ac_header>
4625 rm -f conftest.
$ac_objext
4626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627 (eval $ac_compile) 2>conftest.er1
4629 grep -v '^ *+' conftest.er1
>conftest.err
4631 cat conftest.err
>&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try
='test -z "$ac_c_werror_flag"
4635 || test ! -s conftest.err'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; } &&
4641 { ac_try
='test -s conftest.$ac_objext'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 ac_header_compiler
=yes
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.
$ac_ext >&5
4652 ac_header_compiler
=no
4654 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4656 echo "${ECHO_T}$ac_header_compiler" >&6
4658 # Is the header present?
4659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4661 cat >conftest.
$ac_ext <<_ACEOF
4664 cat confdefs.h
>>conftest.
$ac_ext
4665 cat >>conftest.
$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4667 #include <$ac_header>
4669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4670 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4672 grep -v '^ *+' conftest.er1
>conftest.err
4674 cat conftest.err
>&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } >/dev
/null
; then
4677 if test -s conftest.err
; then
4678 ac_cpp_err
=$ac_c_preproc_warn_flag
4679 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4686 if test -z "$ac_cpp_err"; then
4687 ac_header_preproc
=yes
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.
$ac_ext >&5
4692 ac_header_preproc
=no
4694 rm -f conftest.err conftest.
$ac_ext
4695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4696 echo "${ECHO_T}$ac_header_preproc" >&6
4698 # So? What about this header?
4699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4705 ac_header_preproc
=yes
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4722 ## ------------------------------------------ ##
4723 ## Report this to the AC_PACKAGE_NAME lists. ##
4724 ## ------------------------------------------ ##
4727 sed "s/^/$as_me: WARNING: /" >&2
4730 echo "$as_me:$LINENO: checking for $ac_header" >&5
4731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 eval "$as_ac_Header=\$ac_header_preproc"
4737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4742 cat >>confdefs.h
<<_ACEOF
4743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4751 ac_cpp
='$CXXCPP $CPPFLAGS'
4752 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4755 if test -n "$ac_tool_prefix"; then
4756 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4759 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4760 echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4762 if test "${ac_cv_prog_CXX+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 if test -n "$CXX"; then
4766 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir
=.
4773 for ac_exec_ext
in '' $ac_executable_extensions; do
4774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 if test -n "$CXX"; then
4786 echo "$as_me:$LINENO: result: $CXX" >&5
4787 echo "${ECHO_T}$CXX" >&6
4789 echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6
4793 test -n "$CXX" && break
4796 if test -z "$CXX"; then
4798 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4800 # Extract the first word of "$ac_prog", so it can be a program name with args.
4801 set dummy
$ac_prog; ac_word
=$2
4802 echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4804 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 if test -n "$ac_ct_CXX"; then
4808 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4814 test -z "$as_dir" && as_dir
=.
4815 for ac_exec_ext
in '' $ac_executable_extensions; do
4816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4827 if test -n "$ac_ct_CXX"; then
4828 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4829 echo "${ECHO_T}$ac_ct_CXX" >&6
4831 echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6
4835 test -n "$ac_ct_CXX" && break
4837 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
4843 # Provide some information about the compiler.
4844 echo "$as_me:$LINENO:" \
4845 "checking for C++ compiler version" >&5
4846 ac_compiler
=`set X $ac_compile; echo $2`
4847 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4848 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }
4852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4853 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }
4857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4858 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }
4863 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4864 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4865 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 cat >conftest.
$ac_ext <<_ACEOF
4871 cat confdefs.h
>>conftest.
$ac_ext
4872 cat >>conftest.
$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4886 rm -f conftest.
$ac_objext
4887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4888 (eval $ac_compile) 2>conftest.er1
4890 grep -v '^ *+' conftest.er1
>conftest.err
4892 cat conftest.err
>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } &&
4895 { ac_try
='test -z "$ac_cxx_werror_flag"
4896 || test ! -s conftest.err'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; } &&
4902 { ac_try
='test -s conftest.$ac_objext'
4903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }; }; then
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.
$ac_ext >&5
4915 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4916 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4919 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4920 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4921 GXX
=`test $ac_compiler_gnu = yes && echo yes`
4922 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4923 ac_save_CXXFLAGS
=$CXXFLAGS
4925 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4926 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4927 if test "${ac_cv_prog_cxx_g+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 cat >conftest.
$ac_ext <<_ACEOF
4933 cat confdefs.h
>>conftest.
$ac_ext
4934 cat >>conftest.
$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4945 rm -f conftest.
$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4949 grep -v '^ *+' conftest.er1
>conftest.err
4951 cat conftest.err
>&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try
='test -z "$ac_cxx_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try
='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 ac_cv_prog_cxx_g
=yes
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.
$ac_ext >&5
4974 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4976 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4977 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4978 if test "$ac_test_CXXFLAGS" = set; then
4979 CXXFLAGS
=$ac_save_CXXFLAGS
4980 elif test $ac_cv_prog_cxx_g = yes; then
4981 if test "$GXX" = yes; then
4987 if test "$GXX" = yes; then
4993 for ac_declaration
in \
4995 'extern "C" void std::exit (int) throw (); using std::exit;' \
4996 'extern "C" void std::exit (int); using std::exit;' \
4997 'extern "C" void exit (int) throw ();' \
4998 'extern "C" void exit (int);' \
5001 cat >conftest.
$ac_ext <<_ACEOF
5004 cat confdefs.h
>>conftest.
$ac_ext
5005 cat >>conftest.
$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5017 rm -f conftest.
$ac_objext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>conftest.er1
5021 grep -v '^ *+' conftest.er1
>conftest.err
5023 cat conftest.err
>&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try
='test -z "$ac_cxx_werror_flag"
5027 || test ! -s conftest.err'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; } &&
5033 { ac_try
='test -s conftest.$ac_objext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.
$ac_ext >&5
5046 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5047 cat >conftest.
$ac_ext <<_ACEOF
5050 cat confdefs.h
>>conftest.
$ac_ext
5051 cat >>conftest.
$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5062 rm -f conftest.
$ac_objext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064 (eval $ac_compile) 2>conftest.er1
5066 grep -v '^ *+' conftest.er1
>conftest.err
5068 cat conftest.err
>&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try
='test -z "$ac_cxx_werror_flag"
5072 || test ! -s conftest.err'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; } &&
5078 { ac_try
='test -s conftest.$ac_objext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.
$ac_ext >&5
5090 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5093 if test -n "$ac_declaration"; then
5094 echo '#ifdef __cplusplus' >>confdefs.h
5095 echo $ac_declaration >>confdefs.h
5096 echo '#endif' >>confdefs.h
5100 ac_cpp
='$CXXCPP $CPPFLAGS'
5101 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5105 depcc
="$CXX" am_compiler_list
=
5107 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5108 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5109 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5113 # We make a subdir and do the tests there. Otherwise we can end up
5114 # making bogus files that we don't know about and never remove. For
5115 # instance it was reported that on HP-UX the gcc test will end up
5116 # making a dummy file named `D' -- because `-MD' means `put the output
5119 # Copy depcomp to subdir because otherwise we won't find it if we're
5120 # using a relative directory.
5121 cp "$am_depcomp" conftest.dir
5123 # We will build objects and dependencies in a subdirectory because
5124 # it helps to detect inapplicable dependency modes. For instance
5125 # both Tru64's cc and ICC support -MD to output dependencies as a
5126 # side effect of compilation, but ICC will put the dependencies in
5127 # the current directory while Tru64 will put them in the object
5131 am_cv_CXX_dependencies_compiler_type
=none
5132 if test "$am_compiler_list" = ""; then
5133 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5135 for depmode
in $am_compiler_list; do
5136 # Setup a source with many dependencies, because some compilers
5137 # like to wrap large dependency lists on column 80 (with \), and
5138 # we should not choose a depcomp mode which is confused by this.
5140 # We need to recreate these files for each test, as the compiler may
5141 # overwrite some of them when testing with obscure command lines.
5142 # This happens at least with the AIX C compiler.
5144 for i
in 1 2 3 4 5 6; do
5145 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5152 # after this tag, mechanisms are not by side-effect, so they'll
5153 # only be used when explicitly requested
5154 if test "x$enable_dependency_tracking" = xyes
; then
5162 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5163 # mode. It turns out that the SunPro C++ compiler does not properly
5164 # handle `-M -o', and we need to detect this.
5165 if depmode
=$depmode \
5166 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5167 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5168 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5169 >/dev
/null
2>conftest.err
&&
5170 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5171 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5172 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5173 # icc doesn't choke on unknown options, it will just issue warnings
5174 # (even with -Werror). So we grep stderr for any message
5175 # that says an option was ignored.
5176 if grep 'ignoring option' conftest.err
>/dev
/null
2>&1; then :; else
5177 am_cv_CXX_dependencies_compiler_type
=$depmode
5186 am_cv_CXX_dependencies_compiler_type
=none
5190 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5191 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5192 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5197 test "x$enable_dependency_tracking" != xno \
5198 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5199 am__fastdepCXX_TRUE
=
5200 am__fastdepCXX_FALSE
='#'
5202 am__fastdepCXX_TRUE
='#'
5203 am__fastdepCXX_FALSE
=
5208 ac_cpp
='$CXXCPP $CPPFLAGS'
5209 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5212 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5213 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5214 if test -z "$CXXCPP"; then
5215 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 # Double quotes because CXXCPP needs to be expanded
5219 for CXXCPP
in "$CXX -E" "/lib/cpp"
5222 for ac_cxx_preproc_warn_flag
in '' yes
5224 # Use a header file that comes with gcc, so configuring glibc
5225 # with a fresh cross-compiler works.
5226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5227 # <limits.h> exists even on freestanding compilers.
5228 # On the NeXT, cc -E runs the code through the compiler's parser,
5229 # not just through cpp. "Syntax error" is here to catch this case.
5230 cat >conftest.
$ac_ext <<_ACEOF
5233 cat confdefs.h
>>conftest.
$ac_ext
5234 cat >>conftest.
$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5237 # include <limits.h>
5239 # include <assert.h>
5243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5244 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5246 grep -v '^ *+' conftest.er1
>conftest.err
5248 cat conftest.err
>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev
/null
; then
5251 if test -s conftest.err
; then
5252 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5253 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5260 if test -z "$ac_cpp_err"; then
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.
$ac_ext >&5
5266 # Broken: fails on valid input.
5269 rm -f conftest.err conftest.
$ac_ext
5271 # OK, works on sane cases. Now check whether non-existent headers
5272 # can be detected and how.
5273 cat >conftest.
$ac_ext <<_ACEOF
5276 cat confdefs.h
>>conftest.
$ac_ext
5277 cat >>conftest.
$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5279 #include <ac_nonexistent.h>
5281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5282 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5284 grep -v '^ *+' conftest.er1
>conftest.err
5286 cat conftest.err
>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } >/dev
/null
; then
5289 if test -s conftest.err
; then
5290 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5291 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5298 if test -z "$ac_cpp_err"; then
5299 # Broken: success on invalid input.
5302 echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.
$ac_ext >&5
5305 # Passes both tests.
5309 rm -f conftest.err conftest.
$ac_ext
5312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5313 rm -f conftest.err conftest.
$ac_ext
5314 if $ac_preproc_ok; then
5319 ac_cv_prog_CXXCPP
=$CXXCPP
5322 CXXCPP
=$ac_cv_prog_CXXCPP
5324 ac_cv_prog_CXXCPP
=$CXXCPP
5326 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5327 echo "${ECHO_T}$CXXCPP" >&6
5329 for ac_cxx_preproc_warn_flag
in '' yes
5331 # Use a header file that comes with gcc, so configuring glibc
5332 # with a fresh cross-compiler works.
5333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 # <limits.h> exists even on freestanding compilers.
5335 # On the NeXT, cc -E runs the code through the compiler's parser,
5336 # not just through cpp. "Syntax error" is here to catch this case.
5337 cat >conftest.
$ac_ext <<_ACEOF
5340 cat confdefs.h
>>conftest.
$ac_ext
5341 cat >>conftest.
$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5344 # include <limits.h>
5346 # include <assert.h>
5350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5351 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5353 grep -v '^ *+' conftest.er1
>conftest.err
5355 cat conftest.err
>&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } >/dev
/null
; then
5358 if test -s conftest.err
; then
5359 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5360 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5367 if test -z "$ac_cpp_err"; then
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.
$ac_ext >&5
5373 # Broken: fails on valid input.
5376 rm -f conftest.err conftest.
$ac_ext
5378 # OK, works on sane cases. Now check whether non-existent headers
5379 # can be detected and how.
5380 cat >conftest.
$ac_ext <<_ACEOF
5383 cat confdefs.h
>>conftest.
$ac_ext
5384 cat >>conftest.
$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #include <ac_nonexistent.h>
5388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5389 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5391 grep -v '^ *+' conftest.er1
>conftest.err
5393 cat conftest.err
>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } >/dev
/null
; then
5396 if test -s conftest.err
; then
5397 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5398 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5405 if test -z "$ac_cpp_err"; then
5406 # Broken: success on invalid input.
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.
$ac_ext >&5
5412 # Passes both tests.
5416 rm -f conftest.err conftest.
$ac_ext
5419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5420 rm -f conftest.err conftest.
$ac_ext
5421 if $ac_preproc_ok; then
5424 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5425 See \`config.log' for more details." >&5
5426 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5427 See \`config.log' for more details." >&2;}
5428 { (exit 1); exit 1; }; }
5432 ac_cpp
='$CXXCPP $CPPFLAGS'
5433 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5439 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5440 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5442 if test -n "$ac_tool_prefix"; then
5443 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5446 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_prog_F77+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 if test -n "$F77"; then
5453 ac_cv_prog_F77
="$F77" # Let the user override the test.
5455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5459 test -z "$as_dir" && as_dir
=.
5460 for ac_exec_ext
in '' $ac_executable_extensions; do
5461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 if test -n "$F77"; then
5473 echo "$as_me:$LINENO: result: $F77" >&5
5474 echo "${ECHO_T}$F77" >&6
5476 echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6
5480 test -n "$F77" && break
5483 if test -z "$F77"; then
5485 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5487 # Extract the first word of "$ac_prog", so it can be a program name with args.
5488 set dummy
$ac_prog; ac_word
=$2
5489 echo "$as_me:$LINENO: checking for $ac_word" >&5
5490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5491 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 if test -n "$ac_ct_F77"; then
5495 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5501 test -z "$as_dir" && as_dir
=.
5502 for ac_exec_ext
in '' $ac_executable_extensions; do
5503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504 ac_cv_prog_ac_ct_F77
="$ac_prog"
5505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5514 if test -n "$ac_ct_F77"; then
5515 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5516 echo "${ECHO_T}$ac_ct_F77" >&6
5518 echo "$as_me:$LINENO: result: no" >&5
5519 echo "${ECHO_T}no" >&6
5522 test -n "$ac_ct_F77" && break
5529 # Provide some information about the compiler.
5530 echo "$as_me:5530:" \
5531 "checking for Fortran 77 compiler version" >&5
5532 ac_compiler
=`set X $ac_compile; echo $2`
5533 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5534 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }
5538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5539 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }
5543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5544 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }
5550 # If we don't use `.F' as extension, the preprocessor is not run on the
5551 # input file. (Note that this only needs to work for GNU compilers.)
5554 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5555 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5556 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 cat >conftest.
$ac_ext <<_ACEOF
5567 rm -f conftest.
$ac_objext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569 (eval $ac_compile) 2>conftest.er1
5571 grep -v '^ *+' conftest.er1
>conftest.err
5573 cat conftest.err
>&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } &&
5576 { ac_try
='test -z "$ac_f77_werror_flag"
5577 || test ! -s conftest.err'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; } &&
5583 { ac_try
='test -s conftest.$ac_objext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.
$ac_ext >&5
5596 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5597 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
5600 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5601 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5603 ac_test_FFLAGS
=${FFLAGS+set}
5604 ac_save_FFLAGS
=$FFLAGS
5606 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5607 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5608 if test "${ac_cv_prog_f77_g+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 cat >conftest.
$ac_ext <<_ACEOF
5617 rm -f conftest.
$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619 (eval $ac_compile) 2>conftest.er1
5621 grep -v '^ *+' conftest.er1
>conftest.err
5623 cat conftest.err
>&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try
='test -z "$ac_f77_werror_flag"
5627 || test ! -s conftest.err'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; } &&
5633 { ac_try
='test -s conftest.$ac_objext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5639 ac_cv_prog_f77_g
=yes
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.
$ac_ext >&5
5646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5649 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5650 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5651 if test "$ac_test_FFLAGS" = set; then
5652 FFLAGS
=$ac_save_FFLAGS
5653 elif test $ac_cv_prog_f77_g = yes; then
5654 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5660 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5667 G77
=`test $ac_compiler_gnu = yes && echo yes`
5669 ac_cpp
='$CPP $CPPFLAGS'
5670 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5676 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5678 # find the maximum length of command line arguments
5679 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5680 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5681 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 # On DJGPP, this test can blow up pretty badly due to problems in libc
5690 # (any single argument exceeding 2000 bytes causes a buffer overrun
5691 # during glob expansion). Even if it were fixed, the result of this
5692 # check would be larger than it should be.
5693 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5697 # Under GNU Hurd, this test is not required because there is
5698 # no limit to the length of command line arguments.
5699 # Libtool will interpret -1 as no limit whatsoever
5700 lt_cv_sys_max_cmd_len
=-1;
5704 # On Win9x/ME, this test blows up -- it succeeds, but takes
5705 # about 5 minutes as the teststring grows exponentially.
5706 # Worse, since 9x/ME are not pre-emptively multitasking,
5707 # you end up with a "frozen" computer, even though with patience
5708 # the test eventually succeeds (with a max line length of 256k).
5709 # Instead, let's just punt: use the minimum linelength reported by
5710 # all of the supported platforms: 8192 (on NT/2K/XP).
5711 lt_cv_sys_max_cmd_len
=8192;
5715 # If test is not a shell built-in, we'll probably end up computing a
5716 # maximum length that is only half of the actual maximum length, but
5718 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5719 = "XX$testring") >/dev
/null
2>&1 &&
5720 new_result
=`expr "X$testring" : ".*" 2>&1` &&
5721 lt_cv_sys_max_cmd_len
=$new_result &&
5722 test $i != 17 # 1/2 MB should be enough
5725 testring
=$testring$testring
5728 # Add a significant safety factor because C++ compilers can tack on massive
5729 # amounts of additional arguments before passing them to the linker.
5730 # It appears as though 1/2 is a usable value.
5731 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5737 if test -n $lt_cv_sys_max_cmd_len ; then
5738 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5739 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5741 echo "$as_me:$LINENO: result: none" >&5
5742 echo "${ECHO_T}none" >&6
5748 # Check for command to grab the raw symbol name followed by C symbol from nm.
5749 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5750 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5751 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 # These are sane defaults that work on at least a few old systems.
5756 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5758 # Character class describing NM global symbol codes.
5759 symcode
='[BCDEGRST]'
5761 # Regexp to match symbols that can be accessed directly from C.
5762 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5764 # Transform the above into a raw symbol and a C symbol.
5765 symxfrm
='\1 \2\3 \3'
5767 # Transform an extracted symbol line into a proper C declaration
5768 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5770 # Transform an extracted symbol line into symbol name and symbol address
5771 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'"
5773 # Define system-specific variables.
5778 cygwin
* | mingw
* | pw32
*)
5779 symcode
='[ABCDGISTW]'
5781 hpux
*) # Its linker distinguishes data from code symbols
5782 if test "$host_cpu" = ia64
; then
5783 symcode
='[ABCDEGRST]'
5785 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5786 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'"
5789 symcode
='[BCDEGRST]'
5792 symcode
='[BCDEGQRST]'
5802 # Handle CRLF in mingw tool chain
5806 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5810 # If we're using GNU nm, then use its standard symbol codes.
5811 case `$NM -V 2>&1` in
5812 *GNU
* |
*'with BFD'*)
5813 symcode
='[ABCDGISTW]' ;;
5816 # Try without a prefix undercore, then with it.
5817 for ac_symprfx
in "" "_"; do
5819 # Write the raw and C identifiers.
5820 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5822 # Check to see that the pipe works correctly.
5826 cat > conftest.
$ac_ext <<EOF
5831 void nm_test_func(){}
5835 int main(){nm_test_var='a';nm_test_func();return(0);}
5838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839 (eval $ac_compile) 2>&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; then
5843 # Now try to grab the symbols.
5845 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5846 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && test -s "$nlist"; then
5850 # Try sorting and uniquifying the output.
5851 if sort "$nlist" |
uniq > "$nlist"T
; then
5852 mv -f "$nlist"T
"$nlist"
5857 # Make sure that we snagged all the symbols we need.
5858 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
5859 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
5860 cat <<EOF > conftest.$ac_ext
5866 # Now generate the symbol file.
5867 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5869 cat <<EOF >> conftest.$ac_ext
5870 #if defined (__STDC__) && __STDC__
5871 # define lt_ptr_t void *
5873 # define lt_ptr_t char *
5877 /* The mapping between symbol names and symbols. */
5882 lt_preloaded_symbols[] =
5885 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
5886 cat <<\EOF
>> conftest.
$ac_ext
5894 # Now try linking the two files.
5895 mv conftest.
$ac_objext conftstm.
$ac_objext
5896 lt_save_LIBS
="$LIBS"
5897 lt_save_CFLAGS
="$CFLAGS"
5898 LIBS
="conftstm.$ac_objext"
5899 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
5907 LIBS
="$lt_save_LIBS"
5908 CFLAGS
="$lt_save_CFLAGS"
5910 echo "cannot find nm_test_func in $nlist" >&5
5913 echo "cannot find nm_test_var in $nlist" >&5
5916 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5919 echo "$progname: failed program was:" >&5
5920 cat conftest.
$ac_ext >&5
5922 rm -f conftest
* conftst
*
5924 # Do not use the global_symbol_pipe unless it works.
5925 if test "$pipe_works" = yes; then
5928 lt_cv_sys_global_symbol_pipe
=
5934 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5935 lt_cv_sys_global_symbol_to_cdecl
=
5937 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5938 echo "$as_me:$LINENO: result: failed" >&5
5939 echo "${ECHO_T}failed" >&6
5941 echo "$as_me:$LINENO: result: ok" >&5
5942 echo "${ECHO_T}ok" >&6
5945 echo "$as_me:$LINENO: checking for objdir" >&5
5946 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5947 if test "${lt_cv_objdir+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 rm -f .libs
2>/dev
/null
5951 mkdir .libs
2>/dev
/null
5952 if test -d .libs
; then
5955 # MS-DOS does not allow filenames that begin with a dot.
5958 rmdir .libs
2>/dev
/null
5960 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5961 echo "${ECHO_T}$lt_cv_objdir" >&6
5962 objdir
=$lt_cv_objdir
5970 # AIX sometimes has problems with the GCC collect2 program. For some
5971 # reason, if we set the COLLECT_NAMES environment variable, the problems
5972 # vanish in a puff of smoke.
5973 if test "X${COLLECT_NAMES+set}" != Xset
; then
5975 export COLLECT_NAMES
5980 # Sed substitution that helps us do robust quoting. It backslashifies
5981 # metacharacters that are still active within double-quoted strings.
5982 Xsed
='sed -e s/^X//'
5983 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
5985 # Same as above, but do not quote variable references.
5986 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
5988 # Sed substitution to delay expansion of an escaped shell variable in a
5989 # double_quote_subst'ed string.
5990 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5992 # Sed substitution to avoid accidental globbing in evaled expressions
5993 no_glob_subst
='s/\*/\\\*/g'
5999 default_ofile
=libtool
6000 can_build_shared
=yes
6002 # All known linkers require a `.a' archive for static linking (except M$VC,
6003 # which needs '.lib').
6005 ltmain
="$ac_aux_dir/ltmain.sh"
6006 ofile
="$default_ofile"
6007 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6011 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6012 echo "$as_me:$LINENO: checking for $ac_word" >&5
6013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6014 if test "${ac_cv_prog_AR+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 if test -n "$AR"; then
6018 ac_cv_prog_AR
="$AR" # Let the user override the test.
6020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6024 test -z "$as_dir" && as_dir
=.
6025 for ac_exec_ext
in '' $ac_executable_extensions; do
6026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 if test -n "$AR"; then
6038 echo "$as_me:$LINENO: result: $AR" >&5
6039 echo "${ECHO_T}$AR" >&6
6041 echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6
6046 if test -z "$ac_cv_prog_AR"; then
6048 # Extract the first word of "ar", so it can be a program name with args.
6049 set dummy
ar; ac_word
=$2
6050 echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6052 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 if test -n "$ac_ct_AR"; then
6056 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir
=.
6063 for ac_exec_ext
in '' $ac_executable_extensions; do
6064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_ac_ct_AR
="ar"
6066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR
="false"
6075 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6076 if test -n "$ac_ct_AR"; then
6077 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6078 echo "${ECHO_T}$ac_ct_AR" >&6
6080 echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6
6089 if test -n "$ac_tool_prefix"; then
6090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6091 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6092 echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6094 if test "${ac_cv_prog_RANLIB+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 if test -n "$RANLIB"; then
6098 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6104 test -z "$as_dir" && as_dir
=.
6105 for ac_exec_ext
in '' $ac_executable_extensions; do
6106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 RANLIB
=$ac_cv_prog_RANLIB
6117 if test -n "$RANLIB"; then
6118 echo "$as_me:$LINENO: result: $RANLIB" >&5
6119 echo "${ECHO_T}$RANLIB" >&6
6121 echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6
6126 if test -z "$ac_cv_prog_RANLIB"; then
6127 ac_ct_RANLIB
=$RANLIB
6128 # Extract the first word of "ranlib", so it can be a program name with args.
6129 set dummy ranlib
; ac_word
=$2
6130 echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6132 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 if test -n "$ac_ct_RANLIB"; then
6136 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6142 test -z "$as_dir" && as_dir
=.
6143 for ac_exec_ext
in '' $ac_executable_extensions; do
6144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6155 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6156 if test -n "$ac_ct_RANLIB"; then
6157 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6158 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6160 echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6
6164 RANLIB
=$ac_ct_RANLIB
6166 RANLIB
="$ac_cv_prog_RANLIB"
6169 if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6171 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6172 echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6174 if test "${ac_cv_prog_STRIP+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 if test -n "$STRIP"; then
6178 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir
=.
6185 for ac_exec_ext
in '' $ac_executable_extensions; do
6186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 STRIP
=$ac_cv_prog_STRIP
6197 if test -n "$STRIP"; then
6198 echo "$as_me:$LINENO: result: $STRIP" >&5
6199 echo "${ECHO_T}$STRIP" >&6
6201 echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6
6206 if test -z "$ac_cv_prog_STRIP"; then
6208 # Extract the first word of "strip", so it can be a program name with args.
6209 set dummy strip
; ac_word
=$2
6210 echo "$as_me:$LINENO: checking for $ac_word" >&5
6211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6212 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 if test -n "$ac_ct_STRIP"; then
6216 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6222 test -z "$as_dir" && as_dir
=.
6223 for ac_exec_ext
in '' $ac_executable_extensions; do
6224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225 ac_cv_prog_ac_ct_STRIP
="strip"
6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
6235 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6236 if test -n "$ac_ct_STRIP"; then
6237 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6238 echo "${ECHO_T}$ac_ct_STRIP" >&6
6240 echo "$as_me:$LINENO: result: no" >&5
6241 echo "${ECHO_T}no" >&6
6246 STRIP
="$ac_cv_prog_STRIP"
6251 old_CFLAGS
="$CFLAGS"
6253 # Set sane defaults for various variables
6254 test -z "$AR" && AR
=ar
6255 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6256 test -z "$AS" && AS
=as
6257 test -z "$CC" && CC
=cc
6258 test -z "$LTCC" && LTCC
=$CC
6259 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6260 test -z "$LD" && LD
=ld
6261 test -z "$LN_S" && LN_S
="ln -s"
6262 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6263 test -z "$NM" && NM
=nm
6264 test -z "$SED" && SED
=sed
6265 test -z "$OBJDUMP" && OBJDUMP
=objdump
6266 test -z "$RANLIB" && RANLIB
=:
6267 test -z "$STRIP" && STRIP
=:
6268 test -z "$ac_objext" && ac_objext
=o
6270 # Determine commands to create old-style static archives.
6271 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6272 old_postinstall_cmds
='chmod 644 $oldlib'
6273 old_postuninstall_cmds
=
6275 if test -n "$RANLIB"; then
6278 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6281 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
6284 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6287 # Only perform the check for file, if the check method requires it
6288 case $deplibs_check_method in
6290 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6291 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6292 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6301 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6302 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6303 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6304 for ac_dir
in $ac_dummy; do
6306 test -z "$ac_dir" && ac_dir
=.
6307 if test -f $ac_dir/${ac_tool_prefix}file; then
6308 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6309 if test -n "$file_magic_test_file"; then
6310 case $deplibs_check_method in
6312 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6313 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6314 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6315 $EGREP "$file_magic_regex" > /dev
/null
; then
6320 *** Warning: the command libtool uses to detect shared libraries,
6321 *** $file_magic_cmd, produces output that libtool cannot recognize.
6322 *** The result is that libtool may fail to recognize shared libraries
6323 *** as such. This will affect the creation of libtool libraries that
6324 *** depend on shared libraries, but programs linked with such libtool
6325 *** libraries will work regardless of this problem. Nevertheless, you
6326 *** may want to report the problem to your system manager and/or to
6327 *** bug-libtool@gnu.org
6337 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6342 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6343 if test -n "$MAGIC_CMD"; then
6344 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6345 echo "${ECHO_T}$MAGIC_CMD" >&6
6347 echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6
6351 if test -z "$lt_cv_path_MAGIC_CMD"; then
6352 if test -n "$ac_tool_prefix"; then
6353 echo "$as_me:$LINENO: checking for file" >&5
6354 echo $ECHO_N "checking for file... $ECHO_C" >&6
6355 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6363 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6364 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6365 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6366 for ac_dir
in $ac_dummy; do
6368 test -z "$ac_dir" && ac_dir
=.
6369 if test -f $ac_dir/file; then
6370 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6371 if test -n "$file_magic_test_file"; then
6372 case $deplibs_check_method in
6374 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6375 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6376 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6377 $EGREP "$file_magic_regex" > /dev
/null
; then
6382 *** Warning: the command libtool uses to detect shared libraries,
6383 *** $file_magic_cmd, produces output that libtool cannot recognize.
6384 *** The result is that libtool may fail to recognize shared libraries
6385 *** as such. This will affect the creation of libtool libraries that
6386 *** depend on shared libraries, but programs linked with such libtool
6387 *** libraries will work regardless of this problem. Nevertheless, you
6388 *** may want to report the problem to your system manager and/or to
6389 *** bug-libtool@gnu.org
6399 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6404 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6405 if test -n "$MAGIC_CMD"; then
6406 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6407 echo "${ECHO_T}$MAGIC_CMD" >&6
6409 echo "$as_me:$LINENO: result: no" >&5
6410 echo "${ECHO_T}no" >&6
6423 enable_win32_dll
=yes
6425 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6426 if test "${enable_libtool_lock+set}" = set; then
6427 enableval
="$enable_libtool_lock"
6430 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6433 # Check whether --with-pic or --without-pic was given.
6434 if test "${with_pic+set}" = set; then
6440 test -z "$pic_mode" && pic_mode
=default
6442 # Use C for the default configuration in the libtool script
6446 ac_cpp
='$CPP $CPPFLAGS'
6447 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6452 # Source file extension for C test sources.
6455 # Object file extension for compiled C test sources.
6459 # Code to be used in simple compile tests
6460 lt_simple_compile_test_code
="int some_variable = 0;\n"
6462 # Code to be used in simple link tests
6463 lt_simple_link_test_code
='int main(){return(0);}\n'
6466 # If no C compiler was specified, use CC.
6469 # Allow CC to be a program name with arguments.
6474 # Check for any special shared library compilation flags.
6477 if test "$GCC" = no
; then
6480 lt_prog_cc_shlib
='-belf'
6484 if test -n "$lt_prog_cc_shlib"; then
6485 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6486 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6487 if echo "$old_CC $old_CFLAGS " |
grep "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
6489 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6490 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6491 lt_cv_prog_cc_can_build_shared
=no
6497 # Check to make sure the static flag actually works.
6499 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6500 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6501 if test "${lt_prog_compiler_static_works+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 lt_prog_compiler_static_works
=no
6505 save_LDFLAGS
="$LDFLAGS"
6506 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
6507 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
6508 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6509 # The compiler can only warn and ignore the option if not recognized
6510 # So say no if there are warnings
6511 if test -s conftest.err
; then
6512 # Append any errors to the config.log.
6513 cat conftest.err
1>&5
6515 lt_prog_compiler_static_works
=yes
6519 LDFLAGS
="$save_LDFLAGS"
6522 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6523 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6525 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6528 lt_prog_compiler_static
=
6534 lt_prog_compiler_no_builtin_flag
=
6536 if test "$GCC" = yes; then
6537 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
6539 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6540 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6541 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 lt_cv_prog_compiler_rtti_exceptions
=no
6545 ac_outfile
=conftest.
$ac_objext
6546 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6547 lt_compiler_flag
="-fno-rtti -fno-exceptions"
6548 # Insert the option either (1) after the last *FLAGS variable, or
6549 # (2) before a word containing "conftest.", or (3) at the end.
6550 # Note that $ac_compile itself does not contain backslashes and begins
6551 # with a dollar sign (not a hyphen), so the echo should work correctly.
6552 # The option is referenced via a variable to avoid confusing sed.
6553 lt_compile
=`echo "$ac_compile" | $SED \
6554 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6556 -e 's:$: $lt_compiler_flag:'`
6557 (eval echo "\"\$as_me:6557: $lt_compile\"" >&5)
6558 (eval "$lt_compile" 2>conftest.err
)
6560 cat conftest.err
>&5
6561 echo "$as_me:6561: \$? = $ac_status" >&5
6562 if (exit $ac_status) && test -s "$ac_outfile"; then
6563 # The compiler can only warn and ignore the option if not recognized
6564 # So say no if there are warnings
6565 if test ! -s conftest.err
; then
6566 lt_cv_prog_compiler_rtti_exceptions
=yes
6572 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6573 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6575 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
6576 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6583 lt_prog_compiler_wl
=
6584 lt_prog_compiler_pic
=
6585 lt_prog_compiler_static
=
6587 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6588 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6590 if test "$GCC" = yes; then
6591 lt_prog_compiler_wl
='-Wl,'
6592 lt_prog_compiler_static
='-static'
6596 # All AIX code is PIC.
6597 if test "$host_cpu" = ia64
; then
6598 # AIX 5 now supports IA64 processor
6599 lt_prog_compiler_static
='-Bstatic'
6604 # FIXME: we need at least 68020 code to build shared libraries, but
6605 # adding the `-m68020' flag to GCC prevents building anything better,
6607 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6610 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6611 # PIC is the default for these OSes.
6614 mingw
* | pw32
* | os2
*)
6615 # This hack is so that the source file can tell whether it is being
6616 # built for inclusion in a dll (and should export symbols for example).
6617 lt_prog_compiler_pic
='-DDLL_EXPORT'
6620 darwin
* | rhapsody
*)
6621 # PIC is the default on this platform
6622 # Common symbols not allowed in MH_DYLIB files
6623 lt_prog_compiler_pic
='-fno-common'
6627 # Just because we use GCC doesn't mean we suddenly get shared libraries
6628 # on systems that don't support them.
6629 lt_prog_compiler_can_build_shared
=no
6634 if test -d /usr
/nec
; then
6635 lt_prog_compiler_pic
=-Kconform_pic
6640 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6647 lt_prog_compiler_pic
='-fPIC'
6653 lt_prog_compiler_pic
='-fPIC'
6657 # PORTME Check for flag to pass linker flags through the system compiler.
6660 lt_prog_compiler_wl
='-Wl,'
6661 if test "$host_cpu" = ia64
; then
6662 # AIX 5 now supports IA64 processor
6663 lt_prog_compiler_static
='-Bstatic'
6665 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6669 mingw
* | pw32
* | os2
*)
6670 # This hack is so that the source file can tell whether it is being
6671 # built for inclusion in a dll (and should export symbols for example).
6672 lt_prog_compiler_pic
='-DDLL_EXPORT'
6675 hpux9
* | hpux10
* | hpux11
*)
6676 lt_prog_compiler_wl
='-Wl,'
6677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6684 lt_prog_compiler_pic
='+Z'
6687 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6688 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6691 irix5
* | irix6
* | nonstopux
*)
6692 lt_prog_compiler_wl
='-Wl,'
6693 # PIC (with -KPIC) is the default.
6694 lt_prog_compiler_static
='-non_shared'
6698 lt_prog_compiler_pic
='-KPIC'
6699 lt_prog_compiler_static
='-Bstatic'
6705 lt_prog_compiler_wl
='-Wl,'
6706 lt_prog_compiler_pic
='-KPIC'
6707 lt_prog_compiler_static
='-static'
6710 lt_prog_compiler_wl
='-Wl,'
6711 # All Alpha code is PIC.
6712 lt_prog_compiler_static
='-non_shared'
6717 osf3
* | osf4
* | osf5
*)
6718 lt_prog_compiler_wl
='-Wl,'
6719 # All OSF/1 code is PIC.
6720 lt_prog_compiler_static
='-non_shared'
6724 lt_prog_compiler_pic
='-Kpic'
6725 lt_prog_compiler_static
='-dn'
6729 lt_prog_compiler_wl
='-Wl,'
6730 lt_prog_compiler_pic
='-KPIC'
6731 lt_prog_compiler_static
='-Bstatic'
6735 lt_prog_compiler_wl
='-Qoption ld '
6736 lt_prog_compiler_pic
='-PIC'
6737 lt_prog_compiler_static
='-Bstatic'
6740 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
6741 lt_prog_compiler_wl
='-Wl,'
6742 lt_prog_compiler_pic
='-KPIC'
6743 lt_prog_compiler_static
='-Bstatic'
6747 if test -d /usr
/nec
;then
6748 lt_prog_compiler_pic
='-Kconform_pic'
6749 lt_prog_compiler_static
='-Bstatic'
6754 lt_prog_compiler_pic
='-pic'
6755 lt_prog_compiler_static
='-Bstatic'
6759 lt_prog_compiler_can_build_shared
=no
6764 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6765 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6768 # Check to make sure the PIC flag actually works.
6770 if test -n "$lt_prog_compiler_pic"; then
6771 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6772 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6773 if test "${lt_prog_compiler_pic_works+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 lt_prog_compiler_pic_works
=no
6777 ac_outfile
=conftest.
$ac_objext
6778 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6779 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
6780 # Insert the option either (1) after the last *FLAGS variable, or
6781 # (2) before a word containing "conftest.", or (3) at the end.
6782 # Note that $ac_compile itself does not contain backslashes and begins
6783 # with a dollar sign (not a hyphen), so the echo should work correctly.
6784 # The option is referenced via a variable to avoid confusing sed.
6785 lt_compile
=`echo "$ac_compile" | $SED \
6786 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6788 -e 's:$: $lt_compiler_flag:'`
6789 (eval echo "\"\$as_me:6789: $lt_compile\"" >&5)
6790 (eval "$lt_compile" 2>conftest.err
)
6792 cat conftest.err
>&5
6793 echo "$as_me:6793: \$? = $ac_status" >&5
6794 if (exit $ac_status) && test -s "$ac_outfile"; then
6795 # The compiler can only warn and ignore the option if not recognized
6796 # So say no if there are warnings
6797 if test ! -s conftest.err
; then
6798 lt_prog_compiler_pic_works
=yes
6804 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6805 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6807 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
6808 case $lt_prog_compiler_pic in
6810 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
6813 lt_prog_compiler_pic
=
6814 lt_prog_compiler_can_build_shared
=no
6819 # For platforms which do not support PIC, -DPIC is meaningless:
6821 lt_prog_compiler_pic
=
6824 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
6828 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6829 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6830 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 lt_cv_prog_compiler_c_o
=no
6834 $rm -r conftest
2>/dev
/null
6838 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6840 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6841 # that will create temporary files in the current directory regardless of
6842 # the output directory. Thus, making CWD read-only will cause this test
6843 # to fail, enabling locking or at least warning the user not to do parallel
6847 lt_compiler_flag
="-o out/conftest2.$ac_objext"
6848 # Insert the option either (1) after the last *FLAGS variable, or
6849 # (2) before a word containing "conftest.", or (3) at the end.
6850 # Note that $ac_compile itself does not contain backslashes and begins
6851 # with a dollar sign (not a hyphen), so the echo should work correctly.
6852 lt_compile
=`echo "$ac_compile" | $SED \
6853 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6855 -e 's:$: $lt_compiler_flag:'`
6856 (eval echo "\"\$as_me:6856: $lt_compile\"" >&5)
6857 (eval "$lt_compile" 2>out
/conftest.err
)
6859 cat out
/conftest.err
>&5
6860 echo "$as_me:6860: \$? = $ac_status" >&5
6861 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
6863 # The compiler can only warn and ignore the option if not recognized
6864 # So say no if there are warnings
6865 if test ! -s out
/conftest.err
; then
6866 lt_cv_prog_compiler_c_o
=yes
6877 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6878 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6881 hard_links
="nottested"
6882 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
6883 # do not overwrite the value of need_locks provided by the user
6884 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6885 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6888 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6890 ln conftest.a conftest.b
2>&5 || hard_links
=no
6891 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6892 echo "$as_me:$LINENO: result: $hard_links" >&5
6893 echo "${ECHO_T}$hard_links" >&6
6894 if test "$hard_links" = no
; then
6895 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6896 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6903 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6904 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6907 allow_undefined_flag
=
6908 enable_shared_with_static_runtimes
=no
6910 archive_expsym_cmds
=
6911 old_archive_From_new_cmds
=
6912 old_archive_from_expsyms_cmds
=
6913 export_dynamic_flag_spec
=
6914 whole_archive_flag_spec
=
6915 thread_safe_flag_spec
=
6916 hardcode_libdir_flag_spec
=
6917 hardcode_libdir_flag_spec_ld
=
6918 hardcode_libdir_separator
=
6921 hardcode_shlibpath_var
=unsupported
6922 link_all_deplibs
=unknown
6923 hardcode_automatic
=no
6926 always_export_symbols
=no
6927 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6928 # include_expsyms should be a list of space-separated symbols to be *always*
6929 # included in the symbol list
6931 # exclude_expsyms can be an extended regexp of symbols to exclude
6932 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6933 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6934 # as well as any symbol that contains `d'.
6935 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
6936 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6937 # platforms (ab)use it in PIC code, but their linkers get confused if
6938 # the symbol is explicitly referenced. Since portable code cannot
6939 # rely on this symbol name, it's probably fine to never include it in
6940 # preloaded symbol tables.
6941 extract_expsyms_cmds
=
6944 cygwin
* | mingw
* | pw32
*)
6945 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6946 # When not using gcc, we currently assume that we are using
6947 # Microsoft Visual C++.
6948 if test "$GCC" != yes; then
6958 if test "$with_gnu_ld" = yes; then
6959 # If archive_cmds runs LD, not CC, wlarc should be empty
6962 # See if GNU ld supports shared libraries.
6964 aix3
* | aix4
* | aix5
*)
6965 # On AIX/PPC, the GNU linker is very broken
6966 if test "$host_cpu" != ia64
; then
6970 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6971 *** to be unable to reliably create shared libraries on AIX.
6972 *** Therefore, libtool is disabling shared libraries support. If you
6973 *** really care for shared libraries, you may want to modify your PATH
6974 *** so that a non-GNU linker is found, and then restart.
6981 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)'
6982 hardcode_libdir_flag_spec
='-L$libdir'
6983 hardcode_minus_L
=yes
6985 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6986 # that the semantics of dynamic libraries on AmigaOS, at least up
6987 # to version 4, is to share data among multiple programs linked
6988 # with the same dynamic library. Since this doesn't match the
6989 # behavior of shared libraries on other platforms, we can't use
6995 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6996 allow_undefined_flag
=unsupported
6997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6998 # support --undefined. This deserves some investigation. FIXME
6999 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7005 cygwin
* | mingw
* | pw32
*)
7006 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7007 # as there is no search path for DLLs.
7008 hardcode_libdir_flag_spec
='-L$libdir'
7009 allow_undefined_flag
=unsupported
7010 always_export_symbols
=no
7011 enable_shared_with_static_runtimes
=yes
7012 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7014 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7015 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7016 # If the export-symbols file already is a .def file (1st line
7017 # is EXPORTS), use it as is; otherwise, prepend...
7018 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7019 cp $export_symbols $output_objdir/$soname.def;
7021 echo EXPORTS > $output_objdir/$soname.def;
7022 cat $export_symbols >> $output_objdir/$soname.def;
7024 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7031 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7032 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7035 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7036 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7041 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7045 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7046 *** create shared libraries on Solaris systems. Therefore, libtool
7047 *** is disabling shared libraries support. We urge you to upgrade GNU
7048 *** binutils to release 2.9.1 or newer. Another option is to modify
7049 *** your PATH or compiler configuration so that the native linker is
7050 *** used, and then restart.
7053 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7054 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7055 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7062 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7065 hardcode_shlibpath_var
=no
7069 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7070 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7071 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7078 if test "$ld_shlibs" = yes; then
7079 runpath_var
=LD_RUN_PATH
7080 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7081 export_dynamic_flag_spec
='${wl}--export-dynamic'
7082 # ancient GNU ld didn't support --whole-archive et. al.
7083 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7084 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7086 whole_archive_flag_spec
=
7090 # PORTME fill in a description of your system's linker (not GNU ld)
7093 allow_undefined_flag
=unsupported
7094 always_export_symbols
=yes
7095 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'
7096 # Note: this linker hardcodes the directories in LIBPATH if there
7097 # are no directories specified by -L.
7098 hardcode_minus_L
=yes
7099 if test "$GCC" = yes && test -z "$link_static_flag"; then
7100 # Neither direct hardcoding nor static linking is supported with a
7102 hardcode_direct
=unsupported
7107 if test "$host_cpu" = ia64
; then
7108 # On IA64, the linker does run time linking by default, so we don't
7109 # have to do anything special.
7110 aix_use_runtimelinking
=no
7111 exp_sym_flag
='-Bexport'
7114 # If we're using GNU nm, then we don't want the "-C" option.
7115 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7116 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7117 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'
7119 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'
7121 aix_use_runtimelinking
=no
7123 # Test if we are trying to use run time linking or normal
7124 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7125 # need to do runtime linking.
7126 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7127 for ld_flag
in $LDFLAGS; do
7128 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7129 aix_use_runtimelinking
=yes
7135 exp_sym_flag
='-bexport'
7136 no_entry_flag
='-bnoentry'
7139 # When large executables or shared objects are built, AIX ld can
7140 # have problems creating the table of contents. If linking a library
7141 # or program results in "error TOC overflow" add -mminimal-toc to
7142 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7143 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7147 hardcode_libdir_separator
=':'
7148 link_all_deplibs
=yes
7150 if test "$GCC" = yes; then
7151 case $host_os in aix4.012|aix4.012.
*)
7152 # We only want to do this on AIX 4.2 and lower, the check
7153 # below for broken collect2 doesn't work under 4.3+
7154 collect2name
=`${CC} -print-prog-name=collect2`
7155 if test -f "$collect2name" && \
7156 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7158 # We have reworked collect2
7161 # We have old collect2
7162 hardcode_direct
=unsupported
7163 # It fails to find uninstalled libraries when the uninstalled
7164 # path is not listed in the libpath. Setting hardcode_minus_L
7165 # to unsupported forces relinking
7166 hardcode_minus_L
=yes
7167 hardcode_libdir_flag_spec
='-L$libdir'
7168 hardcode_libdir_separator
=
7171 shared_flag
='-shared'
7174 if test "$host_cpu" = ia64
; then
7175 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7176 # chokes on -Wl,-G. The following line is correct:
7179 if test "$aix_use_runtimelinking" = yes; then
7180 shared_flag
='${wl}-G'
7182 shared_flag
='${wl}-bM:SRE'
7187 # It seems that -bexpall does not export symbols beginning with
7188 # underscore (_), so it is better to generate a list of symbols to export.
7189 always_export_symbols
=yes
7190 if test "$aix_use_runtimelinking" = yes; then
7191 # Warning - without using the other runtime loading flags (-brtl),
7192 # -berok will link without error, but may produce a broken library.
7193 allow_undefined_flag
='-berok'
7194 # Determine the default libpath from the value encoded in an empty executable.
7195 cat >conftest.
$ac_ext <<_ACEOF
7198 cat confdefs.h
>>conftest.
$ac_ext
7199 cat >>conftest.
$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7210 rm -f conftest.
$ac_objext conftest
$ac_exeext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212 (eval $ac_link) 2>conftest.er1
7214 grep -v '^ *+' conftest.er1
>conftest.err
7216 cat conftest.err
>&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try
='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try
='test -s conftest$ac_exeext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7233 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7235 # Check for a 64-bit object if we didn't find anything.
7236 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; }
7239 echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.
$ac_ext >&5
7243 rm -f conftest.err conftest.
$ac_objext \
7244 conftest
$ac_exeext conftest.
$ac_ext
7245 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7247 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7248 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"
7250 if test "$host_cpu" = ia64; then
7251 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
7252 allow_undefined_flag="-z nodefs"
7253 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"
7255 # Determine the default libpath from the value encoded in an empty executable.
7256 cat >conftest.$ac_ext <<_ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273 (eval $ac_link) 2>conftest.er1
7275 grep -v '^ *+' conftest.er1 >conftest.err
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -z "$ac_c_werror_flag"
7281 || test ! -s conftest.err'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7286 (exit $ac_status); }; } &&
7287 { ac_try='test -s conftest$ac_exeext'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7292 (exit $ac_status); }; }; then
7294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7296 # Check for a 64-bit object if we didn't find anything.
7297 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; }
7300 echo "$as_me: failed program was
:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7304 rm -f conftest.err conftest.$ac_objext \
7305 conftest$ac_exeext conftest.$ac_ext
7306 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
7308 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7309 # Warning - without using the other run time loading flags,
7310 # -berok will link without error, but may produce a broken library.
7311 no_undefined_flag=' ${wl}-bernotok'
7312 allow_undefined_flag=' ${wl}-berok'
7313 # -bexpall does not export symbols beginning with underscore (_)
7314 always_export_symbols=yes
7315 # Exported symbols can be pulled into shared objects from archives
7316 whole_archive_flag_spec=' '
7317 archive_cmds_need_lc=yes
7318 # This is similar to how AIX traditionally builds it's shared libraries.
7319 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'
7325 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)'
7326 hardcode_libdir_flag_spec
='-L$libdir'
7327 hardcode_minus_L
=yes
7328 # see comment about different semantics on the GNU ld section
7333 export_dynamic_flag_spec
=-rdynamic
7336 cygwin
* | mingw
* | pw32
*)
7337 # When not using gcc, we currently assume that we are using
7338 # Microsoft Visual C++.
7339 # hardcode_libdir_flag_spec is actually meaningless, as there is
7340 # no search path for DLLs.
7341 hardcode_libdir_flag_spec
=' '
7342 allow_undefined_flag
=unsupported
7343 # Tell ltmain to make .lib files, not .a files.
7345 # Tell ltmain to make .dll files, not .so files.
7347 # FIXME: Setting linknames here is a bad hack.
7348 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7349 # The linker will automatically build a .lib file if we build a DLL.
7350 old_archive_From_new_cmds
='true'
7351 # FIXME: Should let the user specify the lib program.
7352 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
7353 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7354 enable_shared_with_static_runtimes
=yes
7357 darwin
* | rhapsody
*)
7358 if $CC -v 2>&1 |
grep 'Apple' >/dev
/null
; then
7359 archive_cmds_need_lc
=no
7361 rhapsody
* | darwin1.
[012])
7362 allow_undefined_flag
='-undefined suppress'
7365 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag
='-flat_namespace -undefined suppress'
7368 # FIXME: Relying on posixy $() will cause problems for
7369 # cross-compilation, but unfortunately the echo tests do not
7370 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7371 # `"' quotes if we put them in here... so don't!
7372 lt_int_apple_cc_single_mod
=no
7373 output_verbose_link_cmd
='echo'
7374 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
7375 lt_int_apple_cc_single_mod
=yes
7377 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
7378 archive_cmds
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7380 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'
7382 module_cmds
='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7383 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7384 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
7385 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}'
7387 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}'
7389 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7391 hardcode_automatic
=yes
7392 hardcode_shlibpath_var
=unsupported
7393 whole_archive_flag_spec
='-all_load $convenience'
7394 link_all_deplibs
=yes
7399 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400 hardcode_libdir_flag_spec
='-L$libdir'
7401 hardcode_shlibpath_var
=no
7408 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7409 # support. Future versions do this automatically, but an explicit c++rt0.o
7410 # does not break anything, and helps significantly (at the cost of a little
7413 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7414 hardcode_libdir_flag_spec
='-R$libdir'
7416 hardcode_shlibpath_var
=no
7419 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7421 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7423 hardcode_minus_L
=yes
7424 hardcode_shlibpath_var
=no
7427 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7429 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7430 hardcode_libdir_flag_spec
='-R$libdir'
7432 hardcode_shlibpath_var
=no
7436 if test "$GCC" = yes; then
7437 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'
7439 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'
7441 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7442 hardcode_libdir_separator
=:
7445 # hardcode_minus_L: Not really in the search PATH,
7446 # but as the default location of the library.
7447 hardcode_minus_L
=yes
7448 export_dynamic_flag_spec
='${wl}-E'
7452 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7455 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7458 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7464 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7467 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7471 if test "$with_gnu_ld" = no
; then
7474 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7475 hardcode_libdir_flag_spec_ld
='+b $libdir'
7476 hardcode_libdir_separator
=:
7478 hardcode_shlibpath_var
=no
7481 hardcode_libdir_flag_spec
='-L$libdir'
7483 hardcode_shlibpath_var
=no
7485 # hardcode_minus_L: Not really in the search PATH,
7486 # but as the default location of the library.
7487 hardcode_minus_L
=yes
7490 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7491 hardcode_libdir_separator
=:
7493 export_dynamic_flag_spec
='${wl}-E'
7495 # hardcode_minus_L: Not really in the search PATH,
7496 # but as the default location of the library.
7497 hardcode_minus_L
=yes
7503 irix5
* | irix6
* | nonstopux
*)
7504 if test "$GCC" = yes; then
7505 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'
7507 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'
7508 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
7510 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7511 hardcode_libdir_separator
=:
7512 link_all_deplibs
=yes
7516 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7517 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7519 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7521 hardcode_libdir_flag_spec
='-R$libdir'
7523 hardcode_shlibpath_var
=no
7527 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7529 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7530 hardcode_libdir_separator
=:
7531 hardcode_shlibpath_var
=no
7536 hardcode_shlibpath_var
=no
7537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7538 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7539 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7540 export_dynamic_flag_spec
='${wl}-E'
7543 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7544 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7545 hardcode_libdir_flag_spec
='-R$libdir'
7548 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7549 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7556 hardcode_libdir_flag_spec
='-L$libdir'
7557 hardcode_minus_L
=yes
7558 allow_undefined_flag
=unsupported
7559 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'
7560 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7564 if test "$GCC" = yes; then
7565 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7566 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'
7568 allow_undefined_flag
=' -expect_unresolved \*'
7569 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'
7571 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7572 hardcode_libdir_separator
=:
7575 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7576 if test "$GCC" = yes; then
7577 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7578 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'
7579 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7581 allow_undefined_flag
=' -expect_unresolved \*'
7582 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'
7583 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7584 $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'
7586 # Both c and cxx compiler support -rpath directly
7587 hardcode_libdir_flag_spec
='-rpath $libdir'
7589 hardcode_libdir_separator
=:
7593 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7594 hardcode_shlibpath_var
=no
7595 export_dynamic_flag_spec
='${wl}-Bexport'
7596 runpath_var
=LD_RUN_PATH
7597 hardcode_runpath_var
=yes
7601 no_undefined_flag
=' -z text'
7602 if test "$GCC" = yes; then
7603 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7604 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7605 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7607 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7608 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7609 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7611 hardcode_libdir_flag_spec
='-R$libdir'
7612 hardcode_shlibpath_var
=no
7614 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7615 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7616 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
7618 link_all_deplibs
=yes
7622 if test "x$host_vendor" = xsequent
; then
7623 # Use $CC to link under sequent, because it throws in some extra .o
7624 # files that make .init and .fini sections work.
7625 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7627 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7629 hardcode_libdir_flag_spec
='-L$libdir'
7631 hardcode_minus_L
=yes
7632 hardcode_shlibpath_var
=no
7636 case $host_vendor in
7638 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7639 hardcode_direct
=yes # is this really true???
7642 ## LD is ld it makes a PLAMLIB
7643 ## CC just makes a GrossModule.
7644 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7645 reload_cmds
='$CC -r -o $output$reload_objs'
7649 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7650 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
7653 runpath_var
='LD_RUN_PATH'
7654 hardcode_shlibpath_var
=no
7658 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7659 hardcode_shlibpath_var
=no
7660 export_dynamic_flag_spec
='-Bexport'
7664 if test -d /usr
/nec
; then
7665 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7666 hardcode_shlibpath_var
=no
7667 runpath_var
=LD_RUN_PATH
7668 hardcode_runpath_var
=yes
7674 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7677 hardcode_shlibpath_var
=no
7678 hardcode_runpath_var
=yes
7679 runpath_var
=LD_RUN_PATH
7682 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
7683 no_undefined_flag
='${wl}-z ${wl}text'
7684 if test "$GCC" = yes; then
7685 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7687 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7689 runpath_var
='LD_RUN_PATH'
7690 hardcode_shlibpath_var
=no
7694 no_undefined_flag
=' -z text'
7695 # $CC -shared without GNU ld will not create a library from C++
7696 # object files and a static libstdc++, better avoid it by now
7697 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7698 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7699 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7700 hardcode_libdir_flag_spec
=
7701 hardcode_shlibpath_var
=no
7702 runpath_var
='LD_RUN_PATH'
7706 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7707 hardcode_libdir_flag_spec
='-L$libdir'
7708 hardcode_shlibpath_var
=no
7717 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7718 echo "${ECHO_T}$ld_shlibs" >&6
7719 test "$ld_shlibs" = no
&& can_build_shared
=no
7721 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
7722 if test "$GCC" = yes; then
7723 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7727 # Do we need to explicitly link libc?
7729 case "x$archive_cmds_need_lc" in
7731 # Assume -lc should be added
7732 archive_cmds_need_lc
=yes
7734 if test "$enable_shared" = yes && test "$GCC" = yes; then
7735 case $archive_cmds in
7737 # FIXME: we may have to deal with multi-command sequences.
7740 # Test whether the compiler implicitly links with -lc since on some
7741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7742 # to ld, don't add -lc before -lgcc.
7743 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7744 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7746 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749 (eval $ac_compile) 2>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } 2>conftest.err
; then
7755 libobjs
=conftest.
$ac_objext
7757 wl
=$lt_prog_compiler_wl
7763 lt_save_allow_undefined_flag
=$allow_undefined_flag
7764 allow_undefined_flag
=
7765 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7766 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }
7771 archive_cmds_need_lc
=no
7773 archive_cmds_need_lc
=yes
7775 allow_undefined_flag
=$lt_save_allow_undefined_flag
7777 cat conftest.err
1>&5
7780 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7781 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7788 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7789 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7791 if test -n "$hardcode_libdir_flag_spec" || \
7792 test -n "$runpath_var " || \
7793 test "X$hardcode_automatic"="Xyes" ; then
7795 # We can hardcode non-existant directories.
7796 if test "$hardcode_direct" != no
&&
7797 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7798 # have to relink, otherwise we might link with an installed library
7799 # when we should be linking with a yet-to-be-installed one
7800 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7801 test "$hardcode_minus_L" != no
; then
7802 # Linking always hardcodes the temporary library directory.
7803 hardcode_action
=relink
7805 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7806 hardcode_action
=immediate
7809 # We cannot hardcode anything, or else we can only hardcode existing
7811 hardcode_action
=unsupported
7813 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7814 echo "${ECHO_T}$hardcode_action" >&6
7816 if test "$hardcode_action" = relink
; then
7817 # Fast installation is not supported
7818 enable_fast_install
=no
7819 elif test "$shlibpath_overrides_runpath" = yes ||
7820 test "$enable_shared" = no
; then
7821 # Fast installation is not necessary
7822 enable_fast_install
=needless
7827 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7828 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7829 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
7830 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
7831 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
7832 echo "$as_me:$LINENO: result: yes" >&5
7833 echo "${ECHO_T}yes" >&6
7835 # FIXME - insert some real tests, host_os isn't really good enough
7838 if test -n "$STRIP" ; then
7839 striplib
="$STRIP -x"
7840 echo "$as_me:$LINENO: result: yes" >&5
7841 echo "${ECHO_T}yes" >&6
7843 echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6
7848 echo "$as_me:$LINENO: result: no" >&5
7849 echo "${ECHO_T}no" >&6
7854 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7855 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7857 libname_spec
='lib$name'
7865 shlibpath_overrides_runpath
=unknown
7867 dynamic_linker
="$host_os ld.so"
7868 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
7869 if test "$GCC" = yes; then
7870 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7871 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
7872 # if the path contains ";" then we assume it to be the separator
7873 # otherwise default to the standard path separator (i.e. ":") - it is
7874 # assumed that no part of a normal pathname contains ";" but that should
7875 # okay in the real world where ";" in dirpaths is itself problematic.
7876 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7878 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7881 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
7883 need_lib_prefix
=unknown
7884 hardcode_into_libs
=no
7886 # when you set need_version to no, make sure it does not cause -set_version
7887 # flags to be left without arguments
7888 need_version
=unknown
7893 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
7894 shlibpath_var
=LIBPATH
7896 # AIX 3 has no versioning support, so we append a major version to the name.
7897 soname_spec
='${libname}${release}${shared_ext}$major'
7904 hardcode_into_libs
=yes
7905 if test "$host_cpu" = ia64
; then
7906 # AIX 5 supports IA64
7907 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7908 shlibpath_var
=LD_LIBRARY_PATH
7910 # With GCC up to 2.95.x, collect2 would create an import file
7911 # for dependence libraries. The import file would start with
7912 # the line `#! .'. This would cause the generated library to
7913 # depend on `.', always an invalid library. This was fixed in
7914 # development snapshots of GCC prior to 3.0.
7916 aix4 | aix4.
[01] | aix4.
[01].
*)
7917 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7919 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
7926 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7927 # soname into executable. Probably we can add versioning support to
7928 # collect2, so additional links can be useful in future.
7929 if test "$aix_use_runtimelinking" = yes; then
7930 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7931 # instead of lib<name>.a to let people know that these are not
7932 # typical AIX shared libraries.
7933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7935 # We preserve .a as extension for shared libraries through AIX4.2
7936 # and later when we are not doing run time linking.
7937 library_names_spec
='${libname}${release}.a $libname.a'
7938 soname_spec
='${libname}${release}${shared_ext}$major'
7940 shlibpath_var
=LIBPATH
7945 library_names_spec
='$libname.ixlibrary $libname.a'
7946 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7947 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'
7951 library_names_spec
='${libname}${shared_ext}'
7952 dynamic_linker
="$host_os ld.so"
7953 shlibpath_var
=LIBRARY_PATH
7959 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7960 soname_spec
='${libname}${release}${shared_ext}$major'
7961 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
7962 shlibpath_var
=LD_LIBRARY_PATH
7963 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7964 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
7965 # the default ld.so.conf also contains /usr/contrib/lib and
7966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7967 # libtool to hard-code these into programs
7970 cygwin
* | mingw
* | pw32
*)
7971 version_type
=windows
7976 case $GCC,$host_os in
7977 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
7978 library_names_spec
='$libname.dll.a'
7979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7980 postinstall_cmds
='base_file=`basename \${file}`~
7981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7982 dldir=$destdir/`dirname \$dlpath`~
7983 test -d \$dldir || mkdir -p \$dldir~
7984 $install_prog $dir/$dlname \$dldir/$dlname'
7985 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7986 dlpath=$dir/\$dldll~
7988 shlibpath_overrides_runpath
=yes
7992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7993 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7994 sys_lib_search_path_spec
="/lib /lib/w32api /usr/lib /usr/local/lib"
7997 # MinGW DLLs use traditional 'lib' prefix
7998 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7999 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8000 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8001 # It is most probably a Windows format PATH printed by
8002 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8003 # path with ; separators, and with drive letters. We can handle the
8004 # drive letters (cygwin fileutils understands them), so leave them,
8005 # especially as we might pass files found there to a mingw objdump,
8006 # which wouldn't understand a cygwinified path. Ahh.
8007 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8009 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8013 # pw32 DLLs use 'pw' prefix rather than 'lib'
8014 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8020 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8023 dynamic_linker
='Win32 ld.exe'
8024 # FIXME: first we should search . and the directory the executable is in
8028 darwin
* | rhapsody
*)
8029 dynamic_linker
="$host_os dyld"
8033 # FIXME: Relying on posixy $() will cause problems for
8034 # cross-compilation, but unfortunately the echo tests do not
8035 # yet detect zsh echo's removal of \ escapes.
8036 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8037 soname_spec
='${libname}${release}${major}$shared_ext'
8038 shlibpath_overrides_runpath
=yes
8039 shlibpath_var
=DYLD_LIBRARY_PATH
8040 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
8041 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8042 if $CC -v 2>&1 |
grep 'Apple' >/dev
/null
; then
8043 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"`
8045 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8053 soname_spec
='${libname}${release}${shared_ext}$major'
8054 shlibpath_var
=LD_LIBRARY_PATH
8062 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8063 version_type
=freebsd-
$objformat
8064 case $version_type in
8066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8071 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8075 shlibpath_var
=LD_LIBRARY_PATH
8078 shlibpath_overrides_runpath
=yes
8080 freebsd3.01
* | freebsdelf3.01
*)
8081 shlibpath_overrides_runpath
=yes
8082 hardcode_into_libs
=yes
8085 shlibpath_overrides_runpath
=no
8086 hardcode_into_libs
=yes
8095 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8096 soname_spec
='${libname}${release}${shared_ext}$major'
8097 shlibpath_var
=LD_LIBRARY_PATH
8098 hardcode_into_libs
=yes
8101 hpux9
* | hpux10
* | hpux11
*)
8102 # Give a soname corresponding to the major version so that dld.sl refuses to
8103 # link against other versions.
8110 hardcode_into_libs
=yes
8111 dynamic_linker
="$host_os dld.so"
8112 shlibpath_var
=LD_LIBRARY_PATH
8113 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8114 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8115 soname_spec
='${libname}${release}${shared_ext}$major'
8116 if test "X$HPUX_IA64_MODE" = X32
; then
8117 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8119 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8121 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8125 hardcode_into_libs
=yes
8126 dynamic_linker
="$host_os dld.sl"
8127 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8128 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8130 soname_spec
='${libname}${release}${shared_ext}$major'
8131 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8132 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8136 dynamic_linker
="$host_os dld.sl"
8137 shlibpath_var
=SHLIB_PATH
8138 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8139 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8140 soname_spec
='${libname}${release}${shared_ext}$major'
8143 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8144 postinstall_cmds
='chmod 555 $lib'
8147 irix5
* | irix6
* | nonstopux
*)
8149 nonstopux
*) version_type
=nonstopux
;;
8151 if test "$lt_cv_prog_gnu_ld" = yes; then
8159 soname_spec
='${libname}${release}${shared_ext}$major'
8160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8162 irix5
* | nonstopux
*)
8166 case $LD in # libtool.m4 will add one of these switches to LD
8167 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8168 libsuff
= shlibsuff
= libmagic
=32-bit;;
8169 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8170 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8171 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8172 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8173 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8177 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8178 shlibpath_overrides_runpath
=no
8179 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8180 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8181 hardcode_into_libs
=yes
8184 # No shared lib support for Linux oldld, aout, or coff.
8185 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8189 # This must be Linux ELF.
8194 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8195 soname_spec
='${libname}${release}${shared_ext}$major'
8196 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8197 shlibpath_var
=LD_LIBRARY_PATH
8198 shlibpath_overrides_runpath
=no
8199 # This implies no fast_install, which is unacceptable.
8200 # Some rework will be needed to allow for fast_install
8201 # before this can be enabled.
8202 hardcode_into_libs
=yes
8204 # We used to test for /lib/ld.so.1 and disable shared libraries on
8205 # powerpc, because MkLinux only supported shared libraries with the
8206 # GNU dynamic linker. Since this was broken with cross compilers,
8207 # most powerpc-linux boxes support dynamic linking these days and
8208 # people can always --disable-shared, the test was removed, and we
8209 # assume the GNU/Linux dynamic linker is in use.
8210 dynamic_linker
='GNU/Linux ld.so'
8217 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8219 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8220 dynamic_linker
='NetBSD (a.out) ld.so'
8222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8223 soname_spec
='${libname}${release}${shared_ext}$major'
8224 dynamic_linker
='NetBSD ld.elf_so'
8226 shlibpath_var
=LD_LIBRARY_PATH
8227 shlibpath_overrides_runpath
=yes
8228 hardcode_into_libs
=yes
8233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8234 shlibpath_var
=LD_LIBRARY_PATH
8235 shlibpath_overrides_runpath
=yes
8242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8243 soname_spec
='${libname}${release}${shared_ext}$major'
8244 shlibpath_var
=LD_LIBRARY_PATH
8245 shlibpath_overrides_runpath
=yes
8252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8253 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8254 shlibpath_var
=LD_LIBRARY_PATH
8255 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8257 openbsd2.
[89] | openbsd2.
[89].
*)
8258 shlibpath_overrides_runpath
=no
8261 shlibpath_overrides_runpath
=yes
8265 shlibpath_overrides_runpath
=yes
8270 libname_spec
='$name'
8273 library_names_spec
='$libname${shared_ext} $libname.a'
8274 dynamic_linker
='OS/2 ld.exe'
8275 shlibpath_var
=LIBPATH
8278 osf3
* | osf4
* | osf5
*)
8282 soname_spec
='${libname}${release}${shared_ext}$major'
8283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8284 shlibpath_var
=LD_LIBRARY_PATH
8285 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8286 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8291 soname_spec
='${libname}${release}${shared_ext}$major'
8292 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8293 shlibpath_var
=LD_LIBRARY_PATH
8300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8301 soname_spec
='${libname}${release}${shared_ext}$major'
8302 shlibpath_var
=LD_LIBRARY_PATH
8303 shlibpath_overrides_runpath
=yes
8304 hardcode_into_libs
=yes
8305 # ldd complains unless libraries are executable
8306 postinstall_cmds
='chmod +x $lib'
8311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8312 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8313 shlibpath_var
=LD_LIBRARY_PATH
8314 shlibpath_overrides_runpath
=yes
8315 if test "$with_gnu_ld" = yes; then
8321 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
8323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8324 soname_spec
='${libname}${release}${shared_ext}$major'
8325 shlibpath_var
=LD_LIBRARY_PATH
8326 case $host_vendor in
8328 shlibpath_overrides_runpath
=no
8330 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8331 runpath_var
=LD_RUN_PATH
8339 shlibpath_overrides_runpath
=no
8340 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8346 if test -d /usr
/nec
;then
8348 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8349 soname_spec
='$libname${shared_ext}.$major'
8350 shlibpath_var
=LD_LIBRARY_PATH
8356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8357 soname_spec
='${libname}${release}${shared_ext}$major'
8358 shlibpath_var
=LD_LIBRARY_PATH
8365 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8366 echo "${ECHO_T}$dynamic_linker" >&6
8367 test "$dynamic_linker" = no
&& can_build_shared
=no
8369 if test "x$enable_dlopen" != xyes
; then
8370 enable_dlopen
=unknown
8371 enable_dlopen_self
=unknown
8372 enable_dlopen_self_static
=unknown
8379 lt_cv_dlopen
="load_add_on"
8381 lt_cv_dlopen_self
=yes
8385 lt_cv_dlopen
="LoadLibrary"
8390 lt_cv_dlopen
="dlopen"
8395 # if libdl is installed we need to link against it
8396 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8397 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8398 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 ac_check_lib_save_LIBS
=$LIBS
8403 cat >conftest.
$ac_ext <<_ACEOF
8406 cat confdefs.h
>>conftest.
$ac_ext
8407 cat >>conftest.
$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8410 /* 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. */
8425 rm -f conftest.
$ac_objext conftest
$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427 (eval $ac_link) 2>conftest.er1
8429 grep -v '^ *+' conftest.er1
>conftest.err
8431 cat conftest.err
>&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try
='test -z "$ac_c_werror_flag"
8435 || test ! -s conftest.err'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; } &&
8441 { ac_try
='test -s conftest$ac_exeext'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
8447 ac_cv_lib_dl_dlopen
=yes
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.
$ac_ext >&5
8452 ac_cv_lib_dl_dlopen
=no
8454 rm -f conftest.err conftest.
$ac_objext \
8455 conftest
$ac_exeext conftest.
$ac_ext
8456 LIBS
=$ac_check_lib_save_LIBS
8458 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8459 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8460 if test $ac_cv_lib_dl_dlopen = yes; then
8461 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8466 lt_cv_dlopen_self
=yes
8473 echo "$as_me:$LINENO: checking for shl_load" >&5
8474 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8475 if test "${ac_cv_func_shl_load+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 cat >conftest.
$ac_ext <<_ACEOF
8481 cat confdefs.h
>>conftest.
$ac_ext
8482 cat >>conftest.
$ac_ext <<_ACEOF
8483 /* end confdefs.h. */
8484 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8486 #define shl_load innocuous_shl_load
8488 /* System header to define __stub macros and hopefully few prototypes,
8489 which can conflict with char shl_load (); below.
8490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8491 <limits.h> exists even on freestanding compilers. */
8494 # include <limits.h>
8496 # include <assert.h>
8501 /* Override any gcc2 internal prototype to avoid an error. */
8506 /* We use char because int might match the return type of a gcc2
8507 builtin and then its argument prototype would still apply. */
8509 /* The GNU C library defines this for functions which it implements
8510 to always fail with ENOSYS. Some functions are actually named
8511 something starting with __ and the normal name is an alias. */
8512 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8515 char (*f) () = shl_load;
8524 return f != shl_load;
8529 rm -f conftest.
$ac_objext conftest
$ac_exeext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8531 (eval $ac_link) 2>conftest.er1
8533 grep -v '^ *+' conftest.er1
>conftest.err
8535 cat conftest.err
>&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
8538 { ac_try
='test -z "$ac_c_werror_flag"
8539 || test ! -s conftest.err'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; } &&
8545 { ac_try
='test -s conftest$ac_exeext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 ac_cv_func_shl_load
=yes
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.
$ac_ext >&5
8556 ac_cv_func_shl_load
=no
8558 rm -f conftest.err conftest.
$ac_objext \
8559 conftest
$ac_exeext conftest.
$ac_ext
8561 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8562 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8563 if test $ac_cv_func_shl_load = yes; then
8564 lt_cv_dlopen
="shl_load"
8566 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8567 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8568 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 ac_check_lib_save_LIBS
=$LIBS
8573 cat >conftest.
$ac_ext <<_ACEOF
8576 cat confdefs.h
>>conftest.
$ac_ext
8577 cat >>conftest.
$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8580 /* Override any gcc2 internal prototype to avoid an error. */
8584 /* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8595 rm -f conftest.
$ac_objext conftest
$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>conftest.er1
8599 grep -v '^ *+' conftest.er1
>conftest.err
8601 cat conftest.err
>&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try
='test -z "$ac_c_werror_flag"
8605 || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try
='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_lib_dld_shl_load
=yes
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.
$ac_ext >&5
8622 ac_cv_lib_dld_shl_load
=no
8624 rm -f conftest.err conftest.
$ac_objext \
8625 conftest
$ac_exeext conftest.
$ac_ext
8626 LIBS
=$ac_check_lib_save_LIBS
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8629 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8630 if test $ac_cv_lib_dld_shl_load = yes; then
8631 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
8633 echo "$as_me:$LINENO: checking for dlopen" >&5
8634 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8635 if test "${ac_cv_func_dlopen+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 cat >conftest.
$ac_ext <<_ACEOF
8641 cat confdefs.h
>>conftest.
$ac_ext
8642 cat >>conftest.
$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8646 #define dlopen innocuous_dlopen
8648 /* System header to define __stub macros and hopefully few prototypes,
8649 which can conflict with char dlopen (); below.
8650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8651 <limits.h> exists even on freestanding compilers. */
8654 # include <limits.h>
8656 # include <assert.h>
8661 /* Override any gcc2 internal prototype to avoid an error. */
8666 /* We use char because int might match the return type of a gcc2
8667 builtin and then its argument prototype would still apply. */
8669 /* The GNU C library defines this for functions which it implements
8670 to always fail with ENOSYS. Some functions are actually named
8671 something starting with __ and the normal name is an alias. */
8672 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8675 char (*f) () = dlopen;
8689 rm -f conftest.
$ac_objext conftest
$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691 (eval $ac_link) 2>conftest.er1
8693 grep -v '^ *+' conftest.er1
>conftest.err
8695 cat conftest.err
>&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try
='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try
='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_func_dlopen
=yes
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.
$ac_ext >&5
8716 ac_cv_func_dlopen
=no
8718 rm -f conftest.err conftest.
$ac_objext \
8719 conftest
$ac_exeext conftest.
$ac_ext
8721 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8722 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8723 if test $ac_cv_func_dlopen = yes; then
8724 lt_cv_dlopen
="dlopen"
8726 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8727 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8728 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 ac_check_lib_save_LIBS
=$LIBS
8733 cat >conftest.
$ac_ext <<_ACEOF
8736 cat confdefs.h
>>conftest.
$ac_ext
8737 cat >>conftest.
$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8740 /* Override any gcc2 internal prototype to avoid an error. */
8744 /* We use char because int might match the return type of a gcc2
8745 builtin and then its argument prototype would still apply. */
8755 rm -f conftest.
$ac_objext conftest
$ac_exeext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757 (eval $ac_link) 2>conftest.er1
8759 grep -v '^ *+' conftest.er1
>conftest.err
8761 cat conftest.err
>&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try
='test -z "$ac_c_werror_flag"
8765 || test ! -s conftest.err'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; } &&
8771 { ac_try
='test -s conftest$ac_exeext'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 ac_cv_lib_dl_dlopen
=yes
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.
$ac_ext >&5
8782 ac_cv_lib_dl_dlopen
=no
8784 rm -f conftest.err conftest.
$ac_objext \
8785 conftest
$ac_exeext conftest.
$ac_ext
8786 LIBS
=$ac_check_lib_save_LIBS
8788 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8789 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8790 if test $ac_cv_lib_dl_dlopen = yes; then
8791 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8793 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8794 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8795 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 ac_check_lib_save_LIBS
=$LIBS
8800 cat >conftest.
$ac_ext <<_ACEOF
8803 cat confdefs.h
>>conftest.
$ac_ext
8804 cat >>conftest.
$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8807 /* Override any gcc2 internal prototype to avoid an error. */
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8822 rm -f conftest.
$ac_objext conftest
$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8826 grep -v '^ *+' conftest.er1
>conftest.err
8828 cat conftest.err
>&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try
='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try
='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_lib_svld_dlopen
=yes
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.
$ac_ext >&5
8849 ac_cv_lib_svld_dlopen
=no
8851 rm -f conftest.err conftest.
$ac_objext \
8852 conftest
$ac_exeext conftest.
$ac_ext
8853 LIBS
=$ac_check_lib_save_LIBS
8855 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8856 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8857 if test $ac_cv_lib_svld_dlopen = yes; then
8858 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
8860 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8861 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8862 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 ac_check_lib_save_LIBS
=$LIBS
8867 cat >conftest.
$ac_ext <<_ACEOF
8870 cat confdefs.h
>>conftest.
$ac_ext
8871 cat >>conftest.
$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8874 /* Override any gcc2 internal prototype to avoid an error. */
8878 /* We use char because int might match the return type of a gcc2
8879 builtin and then its argument prototype would still apply. */
8889 rm -f conftest.
$ac_objext conftest
$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891 (eval $ac_link) 2>conftest.er1
8893 grep -v '^ *+' conftest.er1
>conftest.err
8895 cat conftest.err
>&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } &&
8898 { ac_try
='test -z "$ac_c_werror_flag"
8899 || test ! -s conftest.err'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; } &&
8905 { ac_try
='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 ac_cv_lib_dld_dld_link
=yes
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.
$ac_ext >&5
8916 ac_cv_lib_dld_dld_link
=no
8918 rm -f conftest.err conftest.
$ac_objext \
8919 conftest
$ac_exeext conftest.
$ac_ext
8920 LIBS
=$ac_check_lib_save_LIBS
8922 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8923 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8924 if test $ac_cv_lib_dld_dld_link = yes; then
8925 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
8946 if test "x$lt_cv_dlopen" != xno
; then
8952 case $lt_cv_dlopen in
8954 save_CPPFLAGS
="$CPPFLAGS"
8955 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
8957 save_LDFLAGS
="$LDFLAGS"
8958 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
8961 LIBS
="$lt_cv_dlopen_libs $LIBS"
8963 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8964 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8965 if test "${lt_cv_dlopen_self+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8968 if test "$cross_compiling" = yes; then :
8969 lt_cv_dlopen_self
=cross
8971 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
8972 lt_status
=$lt_dlunknown
8973 cat > conftest.
$ac_ext <<EOF
8974 #line 8974 "configure"
8975 #include "confdefs.h"
8984 # define LT_DLGLOBAL RTLD_GLOBAL
8987 # define LT_DLGLOBAL DL_GLOBAL
8989 # define LT_DLGLOBAL 0
8993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8994 find out it does not work in some platform. */
8995 #ifndef LT_DLLAZY_OR_NOW
8997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9000 # define LT_DLLAZY_OR_NOW DL_LAZY
9003 # define LT_DLLAZY_OR_NOW RTLD_NOW
9006 # define LT_DLLAZY_OR_NOW DL_NOW
9008 # define LT_DLLAZY_OR_NOW 0
9016 extern "C" void exit (int);
9019 void fnord() { int i=42;}
9022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9023 int status = $lt_dlunknown;
9027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9028 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9029 /* dlclose (self); */
9035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036 (eval $ac_link) 2>&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9040 (.
/conftest
; exit; ) 2>/dev
/null
9043 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
9044 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
9045 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
9048 # compilation failed
9049 lt_cv_dlopen_self
=no
9056 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9057 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9059 if test "x$lt_cv_dlopen_self" = xyes
; then
9060 LDFLAGS
="$LDFLAGS $link_static_flag"
9061 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9062 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9063 if test "${lt_cv_dlopen_self_static+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 if test "$cross_compiling" = yes; then :
9067 lt_cv_dlopen_self_static
=cross
9069 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9070 lt_status
=$lt_dlunknown
9071 cat > conftest.
$ac_ext <<EOF
9072 #line 9072 "configure"
9073 #include "confdefs.h"
9082 # define LT_DLGLOBAL RTLD_GLOBAL
9085 # define LT_DLGLOBAL DL_GLOBAL
9087 # define LT_DLGLOBAL 0
9091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9092 find out it does not work in some platform. */
9093 #ifndef LT_DLLAZY_OR_NOW
9095 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9098 # define LT_DLLAZY_OR_NOW DL_LAZY
9101 # define LT_DLLAZY_OR_NOW RTLD_NOW
9104 # define LT_DLLAZY_OR_NOW DL_NOW
9106 # define LT_DLLAZY_OR_NOW 0
9114 extern "C" void exit (int);
9117 void fnord() { int i=42;}
9120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9121 int status = $lt_dlunknown;
9125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9127 /* dlclose (self); */
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9138 (.
/conftest
; exit; ) 2>/dev
/null
9141 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
9142 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
9143 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
9146 # compilation failed
9147 lt_cv_dlopen_self_static
=no
9154 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9155 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9158 CPPFLAGS
="$save_CPPFLAGS"
9159 LDFLAGS
="$save_LDFLAGS"
9164 case $lt_cv_dlopen_self in
9165 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
9166 *) enable_dlopen_self
=unknown
;;
9169 case $lt_cv_dlopen_self_static in
9170 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
9171 *) enable_dlopen_self_static
=unknown
;;
9176 # Report which librarie types wil actually be built
9177 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9178 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9179 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9180 echo "${ECHO_T}$can_build_shared" >&6
9182 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9183 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9184 test "$can_build_shared" = "no" && enable_shared
=no
9186 # On AIX, shared libraries and static libraries use the same namespace, and
9187 # are all built from PIC.
9190 test "$enable_shared" = yes && enable_static
=no
9191 if test -n "$RANLIB"; then
9192 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
9193 postinstall_cmds
='$RANLIB $lib'
9198 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
9199 test "$enable_shared" = yes && enable_static
=no
9202 darwin
* | rhapsody
*)
9203 if $CC -v 2>&1 |
grep 'Apple' >/dev
/null
; then
9204 archive_cmds_need_lc
=no
9206 rhapsody
* | darwin1.
[012])
9207 allow_undefined_flag
='-undefined suppress'
9210 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag
='-flat_namespace -undefined suppress'
9213 # FIXME: Relying on posixy $() will cause problems for
9214 # cross-compilation, but unfortunately the echo tests do not
9215 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
9216 # `"' quotes if we put them in here... so don't!
9217 output_verbose_link_cmd
='echo'
9218 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9219 module_cmds
='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9220 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9221 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}'
9222 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9224 hardcode_automatic
=yes
9225 hardcode_shlibpath_var
=unsupported
9226 whole_archive_flag_spec
='-all_load $convenience'
9227 link_all_deplibs
=yes
9231 echo "$as_me:$LINENO: result: $enable_shared" >&5
9232 echo "${ECHO_T}$enable_shared" >&6
9234 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9235 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9236 # Make sure either enable_shared or enable_static is yes.
9237 test "$enable_shared" = yes || enable_static
=yes
9238 echo "$as_me:$LINENO: result: $enable_static" >&5
9239 echo "${ECHO_T}$enable_static" >&6
9241 # The else clause should only fire when bootstrapping the
9242 # libtool distribution, otherwise you forgot to ship ltmain.sh
9243 # with your package, and you will get complaints that there are
9244 # no rules to generate ltmain.sh.
9245 if test -f "$ltmain"; then
9246 # See if we are running on zsh, and set the options which allow our commands through
9247 # without removal of \ escapes.
9248 if test -n "${ZSH_VERSION+set}" ; then
9249 setopt NO_GLOB_SUBST
9251 # Now quote all the things that may contain metacharacters while being
9252 # careful not to overquote the AC_SUBSTed values. We take copies of the
9253 # variables and quote the copies for generation of the libtool script.
9254 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9255 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9256 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9257 deplibs_check_method reload_flag reload_cmds need_locks \
9258 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9259 lt_cv_sys_global_symbol_to_c_name_address \
9260 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9261 old_postinstall_cmds old_postuninstall_cmds \
9265 lt_prog_compiler_wl \
9266 lt_prog_compiler_pic \
9267 lt_prog_compiler_static \
9268 lt_prog_compiler_no_builtin_flag \
9269 export_dynamic_flag_spec \
9270 thread_safe_flag_spec \
9271 whole_archive_flag_spec \
9272 enable_shared_with_static_runtimes \
9274 old_archive_from_new_cmds \
9279 compiler_lib_search_path \
9281 archive_expsym_cmds \
9283 postuninstall_cmds \
9284 old_archive_from_expsyms_cmds \
9285 allow_undefined_flag \
9287 export_symbols_cmds \
9288 hardcode_libdir_flag_spec \
9289 hardcode_libdir_flag_spec_ld \
9290 hardcode_libdir_separator \
9291 hardcode_automatic \
9293 module_expsym_cmds \
9294 lt_cv_prog_compiler_c_o \
9299 old_archive_cmds | \
9300 old_archive_from_new_cmds | \
9302 archive_expsym_cmds | \
9304 module_expsym_cmds | \
9305 old_archive_from_expsyms_cmds | \
9306 export_symbols_cmds | \
9307 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9308 postinstall_cmds | postuninstall_cmds | \
9309 old_postinstall_cmds | old_postuninstall_cmds | \
9310 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
9311 # Double-quote double-evaled strings.
9312 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9315 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9321 *'\$0 --fallback-echo"')
9322 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9327 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9329 { echo "$as_me:$LINENO: creating $ofile" >&5
9330 echo "$as_me: creating $ofile" >&6;}
9332 cat <<__EOF__ >> "$cfgfile"
9335 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9336 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9337 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9339 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9340 # Free Software Foundation, Inc.
9342 # This file is part of GNU Libtool:
9343 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9345 # This program is free software; you can redistribute it and/or modify
9346 # it under the terms of the GNU General Public License as published by
9347 # the Free Software Foundation; either version 2 of the License, or
9348 # (at your option) any later version.
9350 # This program is distributed in the hope that it will be useful, but
9351 # WITHOUT ANY WARRANTY; without even the implied warranty of
9352 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9353 # General Public License for more details.
9355 # You should have received a copy of the GNU General Public License
9356 # along with this program; if not, write to the Free Software
9357 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9359 # As a special exception to the GNU General Public License, if you
9360 # distribute this file as part of a program that contains a
9361 # configuration script generated by Autoconf, you may include it under
9362 # the same distribution terms that you use for the rest of that program.
9364 # A sed program that does not truncate output.
9367 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9368 Xsed="$SED -e s/^X//"
9370 # The HP-UX ksh and POSIX shell print the target directory to stdout
9372 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9374 # The names of the tagged configurations supported by this script.
9377 # ### BEGIN LIBTOOL CONFIG
9379 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9381 # Shell to use when invoking shell scripts.
9384 # Whether or not to build shared libraries.
9385 build_libtool_libs=$enable_shared
9387 # Whether or not to build static libraries.
9388 build_old_libs=$enable_static
9390 # Whether or not to add -lc for building shared libraries.
9391 build_libtool_need_lc=$archive_cmds_need_lc
9393 # Whether or not to disallow shared libs when runtime libs are static
9394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9396 # Whether or not to optimize for fast installation.
9397 fast_install=$enable_fast_install
9400 host_alias=$host_alias
9403 # An echo program that does not interpret backslashes.
9408 AR_FLAGS=$lt_AR_FLAGS
9413 # A language-specific compiler.
9416 # Is the compiler the GNU C compiler?
9422 # The linker used to build libraries.
9425 # Whether we need hard or soft links.
9428 # A BSD-compatible nm program.
9431 # A symbol stripping program
9434 # Used to examine libraries when file_magic_cmd begins "file"
9435 MAGIC_CMD=$MAGIC_CMD
9437 # Used on cygwin: DLL creation program.
9440 # Used on cygwin: object dumper.
9443 # Used on cygwin: assembler.
9446 # The name of the directory that contains temporary libtool files.
9449 # How to create reloadable object files.
9450 reload_flag=$lt_reload_flag
9451 reload_cmds=$lt_reload_cmds
9453 # How to pass a linker flag through the compiler.
9454 wl=$lt_lt_prog_compiler_wl
9456 # Object file suffix (normally "o").
9459 # Old archive suffix (normally "a").
9462 # Shared library suffix (normally ".so").
9465 # Executable file suffix (normally "").
9468 # Additional compiler flags for building library objects.
9469 pic_flag=$lt_lt_prog_compiler_pic
9472 # What is the maximum length of a command?
9473 max_cmd_len=$lt_cv_sys_max_cmd_len
9475 # Does compiler simultaneously support -c and -o options?
9476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9478 # Must we lock files when doing compilation ?
9479 need_locks=$lt_need_locks
9481 # Do we need the lib prefix for modules?
9482 need_lib_prefix=$need_lib_prefix
9484 # Do we need a version for libraries?
9485 need_version=$need_version
9487 # Whether dlopen is supported.
9488 dlopen_support=$enable_dlopen
9490 # Whether dlopen of programs is supported.
9491 dlopen_self=$enable_dlopen_self
9493 # Whether dlopen of statically linked programs is supported.
9494 dlopen_self_static=$enable_dlopen_self_static
9496 # Compiler flag to prevent dynamic linking.
9497 link_static_flag=$lt_lt_prog_compiler_static
9499 # Compiler flag to turn off builtin functions.
9500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9502 # Compiler flag to allow reflexive dlopens.
9503 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9505 # Compiler flag to generate shared objects directly from archives.
9506 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9508 # Compiler flag to generate thread-safe objects.
9509 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9511 # Library versioning type.
9512 version_type=$version_type
9514 # Format of library name prefix.
9515 libname_spec=$lt_libname_spec
9517 # List of archive names. First name is the real one, the rest are links.
9518 # The last name is the one that the linker finds with -lNAME.
9519 library_names_spec=$lt_library_names_spec
9521 # The coded name of the library, if different from the real name.
9522 soname_spec=$lt_soname_spec
9524 # Commands used to build and install an old-style archive.
9526 old_archive_cmds=$lt_old_archive_cmds
9527 old_postinstall_cmds=$lt_old_postinstall_cmds
9528 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9530 # Create an old-style archive from a shared archive.
9531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9533 # Create a temporary old-style archive to link instead of a shared archive.
9534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9536 # Commands used to build and install a shared archive.
9537 archive_cmds=$lt_archive_cmds
9538 archive_expsym_cmds=$lt_archive_expsym_cmds
9539 postinstall_cmds=$lt_postinstall_cmds
9540 postuninstall_cmds=$lt_postuninstall_cmds
9542 # Commands used to build a loadable module (assumed same as above if empty)
9543 module_cmds=$lt_module_cmds
9544 module_expsym_cmds=$lt_module_expsym_cmds
9546 # Commands to strip libraries.
9547 old_striplib=$lt_old_striplib
9548 striplib=$lt_striplib
9550 # Dependencies to place before the objects being linked to create a
9552 predep_objects=$lt_predep_objects
9554 # Dependencies to place after the objects being linked to create a
9556 postdep_objects=$lt_postdep_objects
9558 # Dependencies to place before the objects being linked to create a
9562 # Dependencies to place after the objects being linked to create a
9564 postdeps=$lt_postdeps
9566 # The library search path used internally by the compiler when linking
9568 compiler_lib_search_path=$lt_compiler_lib_search_path
9570 # Method to check whether dependent libraries are shared objects.
9571 deplibs_check_method=$lt_deplibs_check_method
9573 # Command to use when deplibs_check_method == file_magic.
9574 file_magic_cmd=$lt_file_magic_cmd
9576 # Flag that allows shared libraries with undefined symbols to be built.
9577 allow_undefined_flag=$lt_allow_undefined_flag
9579 # Flag that forces no undefined symbols.
9580 no_undefined_flag=$lt_no_undefined_flag
9582 # Commands used to finish a libtool library installation in a directory.
9583 finish_cmds=$lt_finish_cmds
9585 # Same as above, but a single script fragment to be evaled but not shown.
9586 finish_eval=$lt_finish_eval
9588 # Take the output of nm and produce a listing of raw symbols and C names.
9589 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9591 # Transform the output of nm in a proper C declaration
9592 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9594 # Transform the output of nm in a C name address pair
9595 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9597 # This is the shared library runtime path variable.
9598 runpath_var=$runpath_var
9600 # This is the shared library path variable.
9601 shlibpath_var=$shlibpath_var
9603 # Is shlibpath searched before the hard-coded library search path?
9604 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9606 # How to hardcode a shared library path into an executable.
9607 hardcode_action=$hardcode_action
9609 # Whether we should hardcode library paths into libraries.
9610 hardcode_into_libs=$hardcode_into_libs
9612 # Flag to hardcode \$libdir into a binary during linking.
9613 # This must work even if \$libdir does not exist.
9614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9616 # If ld is used when linking, flag to hardcode \$libdir into
9617 # a binary during linking. This must work even if \$libdir does
9619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9621 # Whether we need a single -rpath flag with a separated argument.
9622 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9624 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9626 hardcode_direct=$hardcode_direct
9628 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9630 hardcode_minus_L=$hardcode_minus_L
9632 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9633 # the resulting binary.
9634 hardcode_shlibpath_var=$hardcode_shlibpath_var
9636 # Set to yes if building a shared library automatically hardcodes DIR into the library
9637 # and all subsequent libraries and executables linked against it.
9638 hardcode_automatic=$hardcode_automatic
9640 # Variables whose values should be saved in libtool wrapper scripts and
9641 # restored at relink time.
9642 variables_saved_for_relink="$variables_saved_for_relink"
9644 # Whether libtool must link a program against all its dependency libraries.
9645 link_all_deplibs=$link_all_deplibs
9647 # Compile-time system search path for libraries
9648 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9650 # Run-time system search path for libraries
9651 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9653 # Fix the shell variable \$srcfile for the compiler.
9654 fix_srcfile_path="$fix_srcfile_path"
9656 # Set to yes if exported symbols are required.
9657 always_export_symbols=$always_export_symbols
9659 # The commands to list exported symbols.
9660 export_symbols_cmds=$lt_export_symbols_cmds
9662 # The commands to extract the exported symbol list from a shared archive.
9663 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9665 # Symbols that should not be listed in the preloaded symbols.
9666 exclude_expsyms=$lt_exclude_expsyms
9668 # Symbols that must always be exported.
9669 include_expsyms=$lt_include_expsyms
9671 # ### END LIBTOOL CONFIG
9678 cat <<\EOF
>> "$cfgfile"
9680 # AIX sometimes has problems with the GCC collect2 program. For some
9681 # reason, if we set the COLLECT_NAMES environment variable, the problems
9682 # vanish in a puff of smoke.
9683 if test "X${COLLECT_NAMES+set}" != Xset
; then
9685 export COLLECT_NAMES
9691 # We use sed instead of cat because bash on DJGPP gets confused if
9692 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9693 # text mode, it properly converts lines to CR/LF. This bash problem
9694 # is reportedly fixed, but why not run on old versions too?
9695 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
9697 mv -f "$cfgfile" "$ofile" || \
9698 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9702 # If there is no Makefile yet, we rely on a make rule to execute
9703 # `config.status --recheck' to rerun these tests and create the
9704 # libtool script then.
9705 test -f Makefile
&& make "$ltmain"
9710 ac_cpp
='$CPP $CPPFLAGS'
9711 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9712 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9713 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9718 # Check whether --with-tags or --without-tags was given.
9719 if test "${with_tags+set}" = set; then
9720 withval
="$with_tags"
9724 if test -f "$ltmain" && test -n "$tagnames"; then
9725 if test ! -f "${ofile}"; then
9726 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9727 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9730 if test -z "$LTCC"; then
9731 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9732 if test -z "$LTCC"; then
9733 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9734 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9736 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9737 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9741 # Extract list of available tagged configurations in $ofile.
9742 # Note that this assumes the entire list is on one line.
9743 available_tags
=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9745 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9746 for tagname
in $tagnames; do
9748 # Check whether tagname contains only valid characters
9749 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9751 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9752 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9753 { (exit 1); exit 1; }; }
9757 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
9759 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9760 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9761 { (exit 1); exit 1; }; }
9764 # Update the list of available tags.
9765 if test -n "$tagname"; then
9766 echo appending configuration tag
\"$tagname\" to
$ofile
9770 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9772 ac_cpp
='$CXXCPP $CPPFLAGS'
9773 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9774 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9775 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9780 archive_cmds_need_lc_CXX
=no
9781 allow_undefined_flag_CXX
=
9782 always_export_symbols_CXX
=no
9783 archive_expsym_cmds_CXX
=
9784 export_dynamic_flag_spec_CXX
=
9785 hardcode_direct_CXX
=no
9786 hardcode_libdir_flag_spec_CXX
=
9787 hardcode_libdir_flag_spec_ld_CXX
=
9788 hardcode_libdir_separator_CXX
=
9789 hardcode_minus_L_CXX
=no
9790 hardcode_automatic_CXX
=no
9792 module_expsym_cmds_CXX
=
9793 link_all_deplibs_CXX
=unknown
9794 old_archive_cmds_CXX
=$old_archive_cmds
9795 no_undefined_flag_CXX
=
9796 whole_archive_flag_spec_CXX
=
9797 enable_shared_with_static_runtimes_CXX
=no
9799 # Dependencies to place before and after the object being linked:
9801 postdep_objects_CXX
=
9804 compiler_lib_search_path_CXX
=
9806 # Source file extension for C++ test sources.
9809 # Object file extension for compiled C++ test sources.
9813 # Code to be used in simple compile tests
9814 lt_simple_compile_test_code
="int some_variable = 0;\n"
9816 # Code to be used in simple link tests
9817 lt_simple_link_test_code
='int main(int, char *) { return(0); }\n'
9819 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9821 # If no C compiler was specified, use CC.
9824 # Allow CC to be a program name with arguments.
9828 # Allow CC to be a program name with arguments.
9833 lt_save_with_gnu_ld
=$with_gnu_ld
9834 lt_save_path_LD
=$lt_cv_path_LD
9835 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9836 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
9838 unset lt_cv_prog_gnu_ld
9840 if test -n "${lt_cv_path_LDCXX+set}"; then
9841 lt_cv_path_LD
=$lt_cv_path_LDCXX
9845 test -z "${LDCXX+set}" || LD
=$LDCXX
9849 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9851 # We don't want -fno-exception wen compiling C++ code, so set the
9852 # no_builtin_flag separately
9853 if test "$GXX" = yes; then
9854 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
9856 lt_prog_compiler_no_builtin_flag_CXX
=
9859 if test "$GXX" = yes; then
9860 # Set up default GNU C++ configuration
9863 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9864 if test "${with_gnu_ld+set}" = set; then
9865 withval
="$with_gnu_ld"
9866 test "$withval" = no || with_gnu_ld
=yes
9871 if test "$GCC" = yes; then
9872 # Check if gcc -print-prog-name=ld gives a path.
9873 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9874 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9877 # gcc leaves a trailing carriage return which upsets mingw
9878 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9880 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9883 # Accept absolute paths.
9885 re_direlt
='/[^/][^/]*/\.\./'
9886 # Canonicalize the path of ld
9887 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
9888 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9889 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9891 test -z "$LD" && LD
="$ac_prog"
9894 # If it fails, then pretend we aren't using GCC.
9898 # If it is relative, then search for the first ld in PATH.
9902 elif test "$with_gnu_ld" = yes; then
9903 echo "$as_me:$LINENO: checking for GNU ld" >&5
9904 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9906 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9907 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9909 if test "${lt_cv_path_LD+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 if test -z "$LD"; then
9913 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9914 for ac_dir
in $PATH; do
9916 test -z "$ac_dir" && ac_dir
=.
9917 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9918 lt_cv_path_LD
="$ac_dir/$ac_prog"
9919 # Check to see if the program is GNU ld. I'd rather use --version,
9920 # but apparently some GNU ld's only accept -v.
9921 # Break only if it was the GNU/non-GNU ld that we prefer.
9922 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9923 *GNU
* |
*'with BFD'*)
9924 test "$with_gnu_ld" != no
&& break
9927 test "$with_gnu_ld" != yes && break
9934 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
9939 if test -n "$LD"; then
9940 echo "$as_me:$LINENO: result: $LD" >&5
9941 echo "${ECHO_T}$LD" >&6
9943 echo "$as_me:$LINENO: result: no" >&5
9944 echo "${ECHO_T}no" >&6
9946 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9947 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9948 { (exit 1); exit 1; }; }
9949 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9950 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9951 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9955 case `"$LD" -v 2>&1 </dev/null` in
9956 *GNU
* |
*'with BFD'*)
9957 lt_cv_prog_gnu_ld
=yes
9960 lt_cv_prog_gnu_ld
=no
9964 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9965 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9966 with_gnu_ld
=$lt_cv_prog_gnu_ld
9970 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9971 # archiving commands below assume that GNU ld is being used.
9972 if test "$with_gnu_ld" = yes; then
9973 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9974 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'
9976 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
9977 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
9979 # If archive_cmds runs LD, not CC, wlarc should be empty
9980 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9981 # investigate it a little bit more. (MM)
9984 # ancient GNU ld didn't support --whole-archive et. al.
9985 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9986 grep 'no-whole-archive' > /dev
/null
; then
9987 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9989 whole_archive_flag_spec_CXX
=
9995 # A generic and very simple default shared library creation
9996 # command for GNU C++ for the case where it uses the native
9997 # linker, instead of GNU ld. If possible, this setting should
9998 # overridden to take advantage of the native linker features on
9999 # the platform it is being used on.
10000 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10003 # Commands to make compiler produce verbose output that lists
10004 # what "hidden" libraries, object files and flags are used when
10005 # linking a shared library.
10006 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10014 # PORTME: fill in a description of your system's C++ link characteristics
10015 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10016 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10020 # FIXME: insert proper C++ library support
10024 if test "$host_cpu" = ia64
; then
10025 # On IA64, the linker does run time linking by default, so we don't
10026 # have to do anything special.
10027 aix_use_runtimelinking
=no
10028 exp_sym_flag
='-Bexport'
10031 aix_use_runtimelinking
=no
10033 # Test if we are trying to use run time linking or normal
10034 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10035 # need to do runtime linking.
10036 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
10037 for ld_flag
in $LDFLAGS; do
10040 aix_use_runtimelinking
=yes
10047 exp_sym_flag
='-bexport'
10048 no_entry_flag
='-bnoentry'
10051 # When large executables or shared objects are built, AIX ld can
10052 # have problems creating the table of contents. If linking a library
10053 # or program results in "error TOC overflow" add -mminimal-toc to
10054 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10055 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10057 archive_cmds_CXX
=''
10058 hardcode_direct_CXX
=yes
10059 hardcode_libdir_separator_CXX
=':'
10060 link_all_deplibs_CXX
=yes
10062 if test "$GXX" = yes; then
10063 case $host_os in aix4.012|aix4.012.
*)
10064 # We only want to do this on AIX 4.2 and lower, the check
10065 # below for broken collect2 doesn't work under 4.3+
10066 collect2name
=`${CC} -print-prog-name=collect2`
10067 if test -f "$collect2name" && \
10068 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
10070 # We have reworked collect2
10071 hardcode_direct_CXX
=yes
10073 # We have old collect2
10074 hardcode_direct_CXX
=unsupported
10075 # It fails to find uninstalled libraries when the uninstalled
10076 # path is not listed in the libpath. Setting hardcode_minus_L
10077 # to unsupported forces relinking
10078 hardcode_minus_L_CXX
=yes
10079 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10080 hardcode_libdir_separator_CXX
=
10083 shared_flag
='-shared'
10086 if test "$host_cpu" = ia64
; then
10087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10088 # chokes on -Wl,-G. The following line is correct:
10091 if test "$aix_use_runtimelinking" = yes; then
10092 shared_flag
='${wl}-G'
10094 shared_flag
='${wl}-bM:SRE'
10099 # It seems that -bexpall does not export symbols beginning with
10100 # underscore (_), so it is better to generate a list of symbols to export.
10101 always_export_symbols_CXX
=yes
10102 if test "$aix_use_runtimelinking" = yes; then
10103 # Warning - without using the other runtime loading flags (-brtl),
10104 # -berok will link without error, but may produce a broken library.
10105 allow_undefined_flag_CXX
='-berok'
10106 # Determine the default libpath from the value encoded in an empty executable.
10107 cat >conftest.
$ac_ext <<_ACEOF
10110 cat confdefs.h
>>conftest.
$ac_ext
10111 cat >>conftest.
$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10122 rm -f conftest.
$ac_objext conftest
$ac_exeext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10124 (eval $ac_link) 2>conftest.er1
10126 grep -v '^ *+' conftest.er1
>conftest.err
10128 cat conftest.err
>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } &&
10131 { ac_try
='test -z "$ac_cxx_werror_flag"
10132 || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try
='test -s conftest$ac_exeext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10145 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10147 # Check for a 64-bit object if we didn't find anything.
10148 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; }
10151 echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.
$ac_ext >&5
10155 rm -f conftest.err conftest.
$ac_objext \
10156 conftest
$ac_exeext conftest.
$ac_ext
10157 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10159 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10161 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"
10163 if test "$host_cpu" = ia64; then
10164 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr
/lib
:/lib
'
10165 allow_undefined_flag_CXX="-z nodefs"
10166 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"
10168 # Determine the default libpath from the value encoded in an empty executable.
10169 cat >conftest.$ac_ext <<_ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10184 rm -f conftest.$ac_objext conftest$ac_exeext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186 (eval $ac_link) 2>conftest.er1
10188 grep -v '^ *+' conftest.er1 >conftest.err
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_cxx_werror_flag"
10194 || test ! -s conftest.err'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10199 (exit $ac_status); }; } &&
10200 { ac_try='test -s conftest$ac_exeext'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10205 (exit $ac_status); }; }; then
10207 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10209 # Check for a 64-bit object if we didn't find anything.
10210 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; }
10213 echo "$as_me: failed program was
:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10217 rm -f conftest.err conftest.$ac_objext \
10218 conftest$ac_exeext conftest.$ac_ext
10219 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
10221 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10222 # Warning - without using the other run time loading flags,
10223 # -berok will link without error, but may produce a broken library.
10224 no_undefined_flag_CXX=' ${wl}-bernotok'
10225 allow_undefined_flag_CXX=' ${wl}-berok'
10226 # -bexpall does not export symbols beginning with underscore (_)
10227 always_export_symbols_CXX=yes
10228 # Exported symbols can be pulled into shared objects from archives
10229 whole_archive_flag_spec_CXX=' '
10230 archive_cmds_need_lc_CXX=yes
10231 # This is similar to how AIX traditionally builds it's shared libraries.
10232 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'
10237 case $cc_basename in
10239 # FIXME: insert proper C++ library support
10245 cygwin* | mingw* | pw32*)
10246 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10247 # as there is no search path for DLLs.
10248 hardcode_libdir_flag_spec_CXX='-L$libdir'
10249 allow_undefined_flag_CXX=unsupported
10250 always_export_symbols_CXX=no
10251 enable_shared_with_static_runtimes_CXX=yes
10253 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10254 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'
10255 # If the export-symbols file already is a .def file (1st line
10256 # is EXPORTS), use it as is; otherwise, prepend...
10257 archive_expsym_cmds_CXX='if test "x
`$SED 1q $export_symbols`" = xEXPORTS; then
10258 cp $export_symbols $output_objdir/$soname.def;
10260 echo EXPORTS > $output_objdir/$soname.def;
10261 cat $export_symbols >> $output_objdir/$soname.def;
10263 $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'
10269 darwin* | rhapsody*)
10270 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10271 archive_cmds_need_lc_CXX=no
10273 rhapsody* | darwin1.[012])
10274 allow_undefined_flag_CXX='-undefined suppress'
10277 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10280 lt_int_apple_cc_single_mod=no
10281 output_verbose_link_cmd='echo'
10282 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10283 lt_int_apple_cc_single_mod=yes
10285 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10286 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10288 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'
10290 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10292 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10293 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10294 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}'
10296 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}'
10298 module_expsym_cmds_CXX
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10299 hardcode_direct_CXX
=no
10300 hardcode_automatic_CXX
=yes
10301 hardcode_shlibpath_var_CXX
=unsupported
10302 whole_archive_flag_spec_CXX
='-all_load $convenience'
10303 link_all_deplibs_CXX
=yes
10308 case $cc_basename in
10310 # FIXME: insert proper C++ library support
10314 # Green Hills C++ Compiler
10315 # FIXME: insert proper C++ library support
10319 # FIXME: insert proper C++ library support
10325 # C++ shared libraries reported to be fairly broken before switch to ELF
10329 archive_cmds_need_lc_CXX
=no
10332 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10339 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10340 hardcode_libdir_separator_CXX
=:
10341 export_dynamic_flag_spec_CXX
='${wl}-E'
10342 hardcode_direct_CXX
=yes
10343 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10344 # but as the default
10345 # location of the library.
10347 case $cc_basename in
10349 # FIXME: insert proper C++ library support
10353 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'
10354 # Commands to make compiler produce verbose output that lists
10355 # what "hidden" libraries, object files and flags are used when
10356 # linking a shared library.
10358 # There doesn't appear to be a way to prevent this compiler from
10359 # explicitly linking system object files so we need to strip them
10360 # from the output so that they don't get included in the library
10362 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'
10365 if test "$GXX" = yes; then
10366 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'
10368 # FIXME: insert proper C++ library support
10375 if test $with_gnu_ld = no
; then
10376 case "$host_cpu" in
10378 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10379 hardcode_libdir_flag_spec_ld_CXX
='+b $libdir'
10380 hardcode_libdir_separator_CXX
=:
10383 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10386 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10387 hardcode_libdir_separator_CXX
=:
10388 export_dynamic_flag_spec_CXX
='${wl}-E'
10392 case "$host_cpu" in
10394 hardcode_direct_CXX
=no
10395 hardcode_shlibpath_var_CXX
=no
10398 hardcode_direct_CXX
=no
10399 hardcode_shlibpath_var_CXX
=no
10400 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10401 # but as the default
10402 # location of the library.
10405 hardcode_direct_CXX
=yes
10406 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10407 # but as the default
10408 # location of the library.
10412 case $cc_basename in
10414 # FIXME: insert proper C++ library support
10418 case "$host_cpu" in
10420 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10423 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10426 # Commands to make compiler produce verbose output that lists
10427 # what "hidden" libraries, object files and flags are used when
10428 # linking a shared library.
10430 # There doesn't appear to be a way to prevent this compiler from
10431 # explicitly linking system object files so we need to strip them
10432 # from the output so that they don't get included in the library
10434 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'
10437 if test "$GXX" = yes; then
10438 if test $with_gnu_ld = no
; then
10439 case "$host_cpu" in
10441 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10444 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'
10449 # FIXME: insert proper C++ library support
10456 case $cc_basename in
10459 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'
10461 # Archives containing C++ object files must be created using
10462 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10463 # necessary to make sure instantiated templates are included
10465 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
10468 if test "$GXX" = yes; then
10469 if test "$with_gnu_ld" = no
; then
10470 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'
10472 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'
10475 link_all_deplibs_CXX
=yes
10478 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10479 hardcode_libdir_separator_CXX
=:
10482 case $cc_basename in
10484 # Kuck and Associates, Inc. (KAI) C++ Compiler
10486 # KCC will only create a shared library if the output file
10487 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10488 # to its proper name (with version) after linking.
10489 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'
10490 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'
10491 # Commands to make compiler produce verbose output that lists
10492 # what "hidden" libraries, object files and flags are used when
10493 # linking a shared library.
10495 # There doesn't appear to be a way to prevent this compiler from
10496 # explicitly linking system object files so we need to strip them
10497 # from the output so that they don't get included in the library
10499 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'
10501 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
10502 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10504 # Archives containing C++ object files must be created using
10505 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10506 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10511 archive_cmds_need_lc_CXX
=no
10512 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10513 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'
10514 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10515 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10516 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10520 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10521 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'
10523 runpath_var
=LD_RUN_PATH
10524 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10525 hardcode_libdir_separator_CXX
=:
10527 # Commands to make compiler produce verbose output that lists
10528 # what "hidden" libraries, object files and flags are used when
10529 # linking a shared library.
10531 # There doesn't appear to be a way to prevent this compiler from
10532 # explicitly linking system object files so we need to strip them
10533 # from the output so that they don't get included in the library
10535 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'
10540 # FIXME: insert proper C++ library support
10544 # FIXME: insert proper C++ library support
10548 case $cc_basename in
10550 # FIXME: insert proper C++ library support
10554 # FIXME: insert proper C++ library support
10560 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10561 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10563 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10564 hardcode_direct_CXX
=yes
10565 hardcode_shlibpath_var_CXX
=no
10567 # Workaround some broken pre-1.5 toolchains
10568 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10571 case $cc_basename in
10573 # Kuck and Associates, Inc. (KAI) C++ Compiler
10575 # KCC will only create a shared library if the output file
10576 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10577 # to its proper name (with version) after linking.
10578 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'
10580 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10581 hardcode_libdir_separator_CXX
=:
10583 # Archives containing C++ object files must be created using
10584 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10585 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10589 # Rational C++ 2.4.1
10590 # FIXME: insert proper C++ library support
10594 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10595 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'
10597 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10598 hardcode_libdir_separator_CXX
=:
10600 # Commands to make compiler produce verbose output that lists
10601 # what "hidden" libraries, object files and flags are used when
10602 # linking a shared library.
10604 # There doesn't appear to be a way to prevent this compiler from
10605 # explicitly linking system object files so we need to strip them
10606 # from the output so that they don't get included in the library
10608 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'
10611 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10612 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10613 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'
10615 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10616 hardcode_libdir_separator_CXX
=:
10618 # Commands to make compiler produce verbose output that lists
10619 # what "hidden" libraries, object files and flags are used when
10620 # linking a shared library.
10621 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10624 # FIXME: insert proper C++ library support
10631 case $cc_basename in
10633 # Kuck and Associates, Inc. (KAI) C++ Compiler
10635 # KCC will only create a shared library if the output file
10636 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10637 # to its proper name (with version) after linking.
10638 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'
10640 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10641 hardcode_libdir_separator_CXX
=:
10643 # Archives containing C++ object files must be created using
10644 # the KAI C++ compiler.
10645 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
10648 # Rational C++ 2.4.1
10649 # FIXME: insert proper C++ library support
10653 allow_undefined_flag_CXX
=' -expect_unresolved \*'
10654 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'
10655 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10656 echo "-hidden">> $lib.exp~
10657 $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~
10660 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10661 hardcode_libdir_separator_CXX
=:
10663 # Commands to make compiler produce verbose output that lists
10664 # what "hidden" libraries, object files and flags are used when
10665 # linking a shared library.
10667 # There doesn't appear to be a way to prevent this compiler from
10668 # explicitly linking system object files so we need to strip them
10669 # from the output so that they don't get included in the library
10671 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'
10674 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10675 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10676 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'
10678 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10679 hardcode_libdir_separator_CXX
=:
10681 # Commands to make compiler produce verbose output that lists
10682 # what "hidden" libraries, object files and flags are used when
10683 # linking a shared library.
10684 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10687 # FIXME: insert proper C++ library support
10694 # FIXME: insert proper C++ library support
10698 archive_cmds_need_lc_CXX
=no
10699 case $cc_basename in
10701 # FIXME: insert proper C++ library support
10705 # FIXME: insert proper C++ library support
10711 case $cc_basename in
10714 # FIXME: insert proper C++ library support
10719 # FIXME: insert proper C++ library support
10723 # FIXME: insert proper C++ library support
10729 case $cc_basename in
10731 # Sun C++ 4.2, 5.x and Centerline C++
10732 no_undefined_flag_CXX
=' -zdefs'
10733 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10734 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10735 $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'
10737 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10738 hardcode_shlibpath_var_CXX
=no
10740 solaris2.0
-5 | solaris2.0
-5.
*) ;;
10742 # The C++ compiler is used as linker so we must use $wl
10743 # flag to pass the commands to the underlying system
10745 # Supported since Solaris 2.6 (maybe 2.5.1?)
10746 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10749 link_all_deplibs_CXX
=yes
10751 # Commands to make compiler produce verbose output that lists
10752 # what "hidden" libraries, object files and flags are used when
10753 # linking a shared library.
10755 # There doesn't appear to be a way to prevent this compiler from
10756 # explicitly linking system object files so we need to strip them
10757 # from the output so that they don't get included in the library
10759 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'
10761 # Archives containing C++ object files must be created using
10762 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10763 # necessary to make sure instantiated templates are included
10765 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
10768 # Green Hills C++ Compiler
10769 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10771 # The C++ compiler must be used to create the archive.
10772 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10775 # GNU C++ compiler with Solaris linker
10776 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10777 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
10778 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
10779 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10780 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10781 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10783 # Commands to make compiler produce verbose output that lists
10784 # what "hidden" libraries, object files and flags are used when
10785 # linking a shared library.
10786 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10788 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10790 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10791 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10792 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10794 # Commands to make compiler produce verbose output that lists
10795 # what "hidden" libraries, object files and flags are used when
10796 # linking a shared library.
10797 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10800 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
10805 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
10806 archive_cmds_need_lc_CXX
=no
10809 case $cc_basename in
10811 # NonStop-UX NCC 3.20
10812 # FIXME: insert proper C++ library support
10816 # FIXME: insert proper C++ library support
10822 # FIXME: insert proper C++ library support
10826 # FIXME: insert proper C++ library support
10830 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10831 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10832 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
10838 cat > conftest.
$ac_ext <<EOF
10842 Foo (void) { a = 0; }
10848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849 (eval $ac_compile) 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; then
10853 # Parse the compiler output and extract the necessary
10854 # objects, libraries and library flags.
10856 # Sentinel used to keep track of whether or not we are before
10857 # the conftest object file.
10858 pre_test_object_deps_done
=no
10860 # The `*' in the case matches for architectures that use `case' in
10861 # $output_verbose_cmd can trigger glob expansion during the loop
10862 # eval without this substitution.
10863 output_verbose_link_cmd
="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10865 for p
in `eval $output_verbose_link_cmd`; do
10869 # Some compilers place space between "-{L,R}" and the path.
10870 # Remove the space.
10871 if test $p = "-L" \
10872 ||
test $p = "-R"; then
10879 if test "$pre_test_object_deps_done" = no
; then
10882 # Internal compiler library paths should come after those
10883 # provided the user. The postdeps already come after the
10884 # user supplied libs so there is no need to process them.
10885 if test -z "$compiler_lib_search_path_CXX"; then
10886 compiler_lib_search_path_CXX
="${prev}${p}"
10888 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
10891 # The "-l" case would never come before the object being
10892 # linked, so don't bother handling this case.
10895 if test -z "$postdeps_CXX"; then
10896 postdeps_CXX
="${prev}${p}"
10898 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
10904 # This assumes that the test object file only shows up
10905 # once in the compiler output.
10906 if test "$p" = "conftest.$objext"; then
10907 pre_test_object_deps_done
=yes
10911 if test "$pre_test_object_deps_done" = no
; then
10912 if test -z "$predep_objects_CXX"; then
10913 predep_objects_CXX
="$p"
10915 predep_objects_CXX
="$predep_objects_CXX $p"
10918 if test -z "$postdep_objects_CXX"; then
10919 postdep_objects_CXX
="$p"
10921 postdep_objects_CXX
="$postdep_objects_CXX $p"
10926 *) ;; # Ignore the rest.
10934 echo "libtool.m4: error: problem compiling CXX test program"
10937 $rm -f confest.
$objext
10939 case " $postdeps_CXX " in
10940 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
10943 lt_prog_compiler_wl_CXX
=
10944 lt_prog_compiler_pic_CXX
=
10945 lt_prog_compiler_static_CXX
=
10947 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10948 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10950 # C++ specific cases for pic, static, wl, etc.
10951 if test "$GXX" = yes; then
10952 lt_prog_compiler_wl_CXX
='-Wl,'
10953 lt_prog_compiler_static_CXX
='-static'
10957 # All AIX code is PIC.
10958 if test "$host_cpu" = ia64
; then
10959 # AIX 5 now supports IA64 processor
10960 lt_prog_compiler_static_CXX
='-Bstatic'
10964 # FIXME: we need at least 68020 code to build shared libraries, but
10965 # adding the `-m68020' flag to GCC prevents building anything better,
10967 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
10969 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
10970 # PIC is the default for these OSes.
10972 mingw
* | os2
* | pw32
*)
10973 # This hack is so that the source file can tell whether it is being
10974 # built for inclusion in a dll (and should export symbols for example).
10975 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
10977 darwin
* | rhapsody
*)
10978 # PIC is the default on this platform
10979 # Common symbols not allowed in MH_DYLIB files
10980 lt_prog_compiler_pic_CXX
='-fno-common'
10983 # DJGPP does not support shared libraries at all
10984 lt_prog_compiler_pic_CXX
=
10987 if test -d /usr
/nec
; then
10988 lt_prog_compiler_pic_CXX
=-Kconform_pic
10992 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10993 # not for PA HP-UX.
10994 case "$host_cpu" in
10998 lt_prog_compiler_pic_CXX
='-fPIC'
11003 lt_prog_compiler_pic_CXX
='-fPIC'
11009 # All AIX code is PIC.
11010 if test "$host_cpu" = ia64
; then
11011 # AIX 5 now supports IA64 processor
11012 lt_prog_compiler_static_CXX
='-Bstatic'
11014 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
11018 case $cc_basename in
11020 # Green Hills C++ Compiler
11021 # _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"
11026 case $cc_basename in
11028 lt_prog_compiler_pic_CXX
='-KPIC'
11031 # Green Hills C++ Compiler
11032 lt_prog_compiler_pic_CXX
='-pic'
11039 # FreeBSD uses GNU C++
11041 hpux9
* | hpux10
* | hpux11
*)
11042 case $cc_basename in
11044 lt_prog_compiler_wl_CXX
='-Wl,'
11045 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11046 if test "$host_cpu" != ia64
; then
11047 lt_prog_compiler_pic_CXX
='+Z'
11051 lt_prog_compiler_wl_CXX
='-Wl,'
11052 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11053 case "$host_cpu" in
11058 lt_prog_compiler_pic_CXX
='+Z'
11066 irix5
* | irix6
* | nonstopux
*)
11067 case $cc_basename in
11069 lt_prog_compiler_wl_CXX
='-Wl,'
11070 lt_prog_compiler_static_CXX
='-non_shared'
11071 # CC pic flag -KPIC is the default.
11078 case $cc_basename in
11081 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11082 lt_prog_compiler_pic_CXX
='-fPIC'
11086 lt_prog_compiler_wl_CXX
='-Wl,'
11087 lt_prog_compiler_pic_CXX
='-KPIC'
11088 lt_prog_compiler_static_CXX
='-static'
11092 # Make sure the PIC flag is empty. It appears that all Alpha
11093 # Linux and Compaq Tru64 Unix objects are PIC.
11094 lt_prog_compiler_pic_CXX
=
11095 lt_prog_compiler_static_CXX
='-non_shared'
11106 case $cc_basename in
11108 lt_prog_compiler_pic_CXX
='-W c,exportall'
11116 osf3
* | osf4
* | osf5
*)
11117 case $cc_basename in
11119 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11122 # Rational C++ 2.4.1
11123 lt_prog_compiler_pic_CXX
='-pic'
11126 # Digital/Compaq C++
11127 lt_prog_compiler_wl_CXX
='-Wl,'
11128 # Make sure the PIC flag is empty. It appears that all Alpha
11129 # Linux and Compaq Tru64 Unix objects are PIC.
11130 lt_prog_compiler_pic_CXX
=
11131 lt_prog_compiler_static_CXX
='-non_shared'
11140 case $cc_basename in
11142 lt_prog_compiler_pic_CXX
='-fPIC'
11149 case $cc_basename in
11151 # Sun C++ 4.2, 5.x and Centerline C++
11152 lt_prog_compiler_pic_CXX
='-KPIC'
11153 lt_prog_compiler_static_CXX
='-Bstatic'
11154 lt_prog_compiler_wl_CXX
='-Qoption ld '
11157 # Green Hills C++ Compiler
11158 lt_prog_compiler_pic_CXX
='-PIC'
11165 case $cc_basename in
11168 lt_prog_compiler_pic_CXX
='-pic'
11169 lt_prog_compiler_static_CXX
='-Bstatic'
11173 lt_prog_compiler_pic_CXX
='-pic'
11180 case $cc_basename in
11182 # NonStop-UX NCC 3.20
11183 lt_prog_compiler_pic_CXX
='-KPIC'
11194 lt_prog_compiler_can_build_shared_CXX
=no
11199 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11200 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11203 # Check to make sure the PIC flag actually works.
11205 if test -n "$lt_prog_compiler_pic_CXX"; then
11206 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11207 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11208 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11211 lt_prog_compiler_pic_works_CXX
=no
11212 ac_outfile
=conftest.
$ac_objext
11213 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11214 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
11215 # Insert the option either (1) after the last *FLAGS variable, or
11216 # (2) before a word containing "conftest.", or (3) at the end.
11217 # Note that $ac_compile itself does not contain backslashes and begins
11218 # with a dollar sign (not a hyphen), so the echo should work correctly.
11219 # The option is referenced via a variable to avoid confusing sed.
11220 lt_compile
=`echo "$ac_compile" | $SED \
11221 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11223 -e 's:$: $lt_compiler_flag:'`
11224 (eval echo "\"\$as_me:11224: $lt_compile\"" >&5)
11225 (eval "$lt_compile" 2>conftest.err
)
11227 cat conftest.err
>&5
11228 echo "$as_me:11228: \$? = $ac_status" >&5
11229 if (exit $ac_status) && test -s "$ac_outfile"; then
11230 # The compiler can only warn and ignore the option if not recognized
11231 # So say no if there are warnings
11232 if test ! -s conftest.err
; then
11233 lt_prog_compiler_pic_works_CXX
=yes
11239 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11240 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11242 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
11243 case $lt_prog_compiler_pic_CXX in
11245 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
11248 lt_prog_compiler_pic_CXX
=
11249 lt_prog_compiler_can_build_shared_CXX
=no
11254 # For platforms which do not support PIC, -DPIC is meaningless:
11256 lt_prog_compiler_pic_CXX
=
11259 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
11263 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11264 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11265 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 lt_cv_prog_compiler_c_o_CXX
=no
11269 $rm -r conftest
2>/dev
/null
11273 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11275 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11276 # that will create temporary files in the current directory regardless of
11277 # the output directory. Thus, making CWD read-only will cause this test
11278 # to fail, enabling locking or at least warning the user not to do parallel
11282 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11283 # Insert the option either (1) after the last *FLAGS variable, or
11284 # (2) before a word containing "conftest.", or (3) at the end.
11285 # Note that $ac_compile itself does not contain backslashes and begins
11286 # with a dollar sign (not a hyphen), so the echo should work correctly.
11287 lt_compile
=`echo "$ac_compile" | $SED \
11288 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11290 -e 's:$: $lt_compiler_flag:'`
11291 (eval echo "\"\$as_me:11291: $lt_compile\"" >&5)
11292 (eval "$lt_compile" 2>out
/conftest.err
)
11294 cat out
/conftest.err
>&5
11295 echo "$as_me:11295: \$? = $ac_status" >&5
11296 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11298 # The compiler can only warn and ignore the option if not recognized
11299 # So say no if there are warnings
11300 if test ! -s out
/conftest.err
; then
11301 lt_cv_prog_compiler_c_o_CXX
=yes
11305 $rm conftest
* out
/*
11312 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11313 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11316 hard_links
="nottested"
11317 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
11318 # do not overwrite the value of need_locks provided by the user
11319 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11320 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11323 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11325 ln conftest.a conftest.b
2>&5 || hard_links
=no
11326 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11327 echo "$as_me:$LINENO: result: $hard_links" >&5
11328 echo "${ECHO_T}$hard_links" >&6
11329 if test "$hard_links" = no
; then
11330 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11331 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11338 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11339 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11341 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11344 # If we're using GNU nm, then we don't want the "-C" option.
11345 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11346 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11347 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'
11349 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'
11353 export_symbols_cmds_CXX
="$ltdll_cmds"
11356 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11359 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11363 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11364 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11365 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11367 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11368 if test "$GCC" = yes; then
11369 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11373 # Do we need to explicitly link libc?
11375 case "x$archive_cmds_need_lc_CXX" in
11377 # Assume -lc should be added
11378 archive_cmds_need_lc_CXX
=yes
11380 if test "$enable_shared" = yes && test "$GCC" = yes; then
11381 case $archive_cmds_CXX in
11383 # FIXME: we may have to deal with multi-command sequences.
11386 # Test whether the compiler implicitly links with -lc since on some
11387 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11388 # to ld, don't add -lc before -lgcc.
11389 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11390 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11392 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395 (eval $ac_compile) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } 2>conftest.err
; then
11401 libobjs
=conftest.
$ac_objext
11403 wl
=$lt_prog_compiler_wl_CXX
11409 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
11410 allow_undefined_flag_CXX
=
11411 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11412 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }
11417 archive_cmds_need_lc_CXX
=no
11419 archive_cmds_need_lc_CXX
=yes
11421 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
11423 cat conftest.err
1>&5
11426 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11427 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11434 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11435 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11436 hardcode_action_CXX
=
11437 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11438 test -n "$runpath_var CXX" || \
11439 test "X$hardcode_automatic_CXX"="Xyes" ; then
11441 # We can hardcode non-existant directories.
11442 if test "$hardcode_direct_CXX" != no
&&
11443 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11444 # have to relink, otherwise we might link with an installed library
11445 # when we should be linking with a yet-to-be-installed one
11446 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11447 test "$hardcode_minus_L_CXX" != no
; then
11448 # Linking always hardcodes the temporary library directory.
11449 hardcode_action_CXX
=relink
11451 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11452 hardcode_action_CXX
=immediate
11455 # We cannot hardcode anything, or else we can only hardcode existing
11457 hardcode_action_CXX
=unsupported
11459 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11460 echo "${ECHO_T}$hardcode_action_CXX" >&6
11462 if test "$hardcode_action_CXX" = relink
; then
11463 # Fast installation is not supported
11464 enable_fast_install
=no
11465 elif test "$shlibpath_overrides_runpath" = yes ||
11466 test "$enable_shared" = no
; then
11467 # Fast installation is not necessary
11468 enable_fast_install
=needless
11473 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11474 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11475 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
11476 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11477 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11478 echo "$as_me:$LINENO: result: yes" >&5
11479 echo "${ECHO_T}yes" >&6
11481 # FIXME - insert some real tests, host_os isn't really good enough
11484 if test -n "$STRIP" ; then
11485 striplib
="$STRIP -x"
11486 echo "$as_me:$LINENO: result: yes" >&5
11487 echo "${ECHO_T}yes" >&6
11489 echo "$as_me:$LINENO: result: no" >&5
11490 echo "${ECHO_T}no" >&6
11494 echo "$as_me:$LINENO: result: no" >&5
11495 echo "${ECHO_T}no" >&6
11500 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11501 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11502 library_names_spec
=
11503 libname_spec
='lib$name'
11507 postuninstall_cmds
=
11511 shlibpath_overrides_runpath
=unknown
11513 dynamic_linker
="$host_os ld.so"
11514 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11515 if test "$GCC" = yes; then
11516 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11517 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
11518 # if the path contains ";" then we assume it to be the separator
11519 # otherwise default to the standard path separator (i.e. ":") - it is
11520 # assumed that no part of a normal pathname contains ";" but that should
11521 # okay in the real world where ";" in dirpaths is itself problematic.
11522 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11524 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11527 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11529 need_lib_prefix
=unknown
11530 hardcode_into_libs
=no
11532 # when you set need_version to no, make sure it does not cause -set_version
11533 # flags to be left without arguments
11534 need_version
=unknown
11539 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11540 shlibpath_var
=LIBPATH
11542 # AIX 3 has no versioning support, so we append a major version to the name.
11543 soname_spec
='${libname}${release}${shared_ext}$major'
11550 hardcode_into_libs
=yes
11551 if test "$host_cpu" = ia64
; then
11552 # AIX 5 supports IA64
11553 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11554 shlibpath_var
=LD_LIBRARY_PATH
11556 # With GCC up to 2.95.x, collect2 would create an import file
11557 # for dependence libraries. The import file would start with
11558 # the line `#! .'. This would cause the generated library to
11559 # depend on `.', always an invalid library. This was fixed in
11560 # development snapshots of GCC prior to 3.0.
11562 aix4 | aix4.
[01] | aix4.
[01].
*)
11563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11565 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
11568 can_build_shared
=no
11572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11573 # soname into executable. Probably we can add versioning support to
11574 # collect2, so additional links can be useful in future.
11575 if test "$aix_use_runtimelinking" = yes; then
11576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11577 # instead of lib<name>.a to let people know that these are not
11578 # typical AIX shared libraries.
11579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 # We preserve .a as extension for shared libraries through AIX4.2
11582 # and later when we are not doing run time linking.
11583 library_names_spec
='${libname}${release}.a $libname.a'
11584 soname_spec
='${libname}${release}${shared_ext}$major'
11586 shlibpath_var
=LIBPATH
11591 library_names_spec
='$libname.ixlibrary $libname.a'
11592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11593 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'
11597 library_names_spec
='${libname}${shared_ext}'
11598 dynamic_linker
="$host_os ld.so"
11599 shlibpath_var
=LIBRARY_PATH
11605 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec
='${libname}${release}${shared_ext}$major'
11607 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11608 shlibpath_var
=LD_LIBRARY_PATH
11609 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11610 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11611 # the default ld.so.conf also contains /usr/contrib/lib and
11612 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11613 # libtool to hard-code these into programs
11616 cygwin
* | mingw
* | pw32
*)
11617 version_type
=windows
11622 case $GCC,$host_os in
11623 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
11624 library_names_spec
='$libname.dll.a'
11625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11626 postinstall_cmds
='base_file=`basename \${file}`~
11627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11628 dldir=$destdir/`dirname \$dlpath`~
11629 test -d \$dldir || mkdir -p \$dldir~
11630 $install_prog $dir/$dlname \$dldir/$dlname'
11631 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11632 dlpath=$dir/\$dldll~
11634 shlibpath_overrides_runpath
=yes
11638 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11639 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11640 sys_lib_search_path_spec
="/lib /lib/w32api /usr/lib /usr/local/lib"
11643 # MinGW DLLs use traditional 'lib' prefix
11644 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11645 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11646 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
11647 # It is most probably a Windows format PATH printed by
11648 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11649 # path with ; separators, and with drive letters. We can handle the
11650 # drive letters (cygwin fileutils understands them), so leave them,
11651 # especially as we might pass files found there to a mingw objdump,
11652 # which wouldn't understand a cygwinified path. Ahh.
11653 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11655 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11659 # pw32 DLLs use 'pw' prefix rather than 'lib'
11660 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11666 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11669 dynamic_linker
='Win32 ld.exe'
11670 # FIXME: first we should search . and the directory the executable is in
11674 darwin
* | rhapsody
*)
11675 dynamic_linker
="$host_os dyld"
11676 version_type
=darwin
11679 # FIXME: Relying on posixy $() will cause problems for
11680 # cross-compilation, but unfortunately the echo tests do not
11681 # yet detect zsh echo's removal of \ escapes.
11682 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11683 soname_spec
='${libname}${release}${major}$shared_ext'
11684 shlibpath_overrides_runpath
=yes
11685 shlibpath_var
=DYLD_LIBRARY_PATH
11686 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
11687 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11688 if $CC -v 2>&1 |
grep 'Apple' >/dev
/null
; then
11689 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"`
11691 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11699 soname_spec
='${libname}${release}${shared_ext}$major'
11700 shlibpath_var
=LD_LIBRARY_PATH
11708 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11709 version_type
=freebsd-
$objformat
11710 case $version_type in
11712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11717 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11721 shlibpath_var
=LD_LIBRARY_PATH
11724 shlibpath_overrides_runpath
=yes
11726 freebsd3.01
* | freebsdelf3.01
*)
11727 shlibpath_overrides_runpath
=yes
11728 hardcode_into_libs
=yes
11731 shlibpath_overrides_runpath
=no
11732 hardcode_into_libs
=yes
11741 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11742 soname_spec
='${libname}${release}${shared_ext}$major'
11743 shlibpath_var
=LD_LIBRARY_PATH
11744 hardcode_into_libs
=yes
11747 hpux9
* | hpux10
* | hpux11
*)
11748 # Give a soname corresponding to the major version so that dld.sl refuses to
11749 # link against other versions.
11753 case "$host_cpu" in
11756 hardcode_into_libs
=yes
11757 dynamic_linker
="$host_os dld.so"
11758 shlibpath_var
=LD_LIBRARY_PATH
11759 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11760 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 soname_spec
='${libname}${release}${shared_ext}$major'
11762 if test "X$HPUX_IA64_MODE" = X32
; then
11763 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11765 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11767 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11771 hardcode_into_libs
=yes
11772 dynamic_linker
="$host_os dld.sl"
11773 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11774 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11775 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11776 soname_spec
='${libname}${release}${shared_ext}$major'
11777 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11778 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11782 dynamic_linker
="$host_os dld.sl"
11783 shlibpath_var
=SHLIB_PATH
11784 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11785 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11786 soname_spec
='${libname}${release}${shared_ext}$major'
11789 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11790 postinstall_cmds
='chmod 555 $lib'
11793 irix5
* | irix6
* | nonstopux
*)
11795 nonstopux
*) version_type
=nonstopux
;;
11797 if test "$lt_cv_prog_gnu_ld" = yes; then
11805 soname_spec
='${libname}${release}${shared_ext}$major'
11806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11808 irix5
* | nonstopux
*)
11809 libsuff
= shlibsuff
=
11812 case $LD in # libtool.m4 will add one of these switches to LD
11813 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11814 libsuff
= shlibsuff
= libmagic
=32-bit;;
11815 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11816 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11817 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11818 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11819 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11823 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11824 shlibpath_overrides_runpath
=no
11825 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11826 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11827 hardcode_into_libs
=yes
11830 # No shared lib support for Linux oldld, aout, or coff.
11831 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11835 # This must be Linux ELF.
11840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841 soname_spec
='${libname}${release}${shared_ext}$major'
11842 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11843 shlibpath_var
=LD_LIBRARY_PATH
11844 shlibpath_overrides_runpath
=no
11845 # This implies no fast_install, which is unacceptable.
11846 # Some rework will be needed to allow for fast_install
11847 # before this can be enabled.
11848 hardcode_into_libs
=yes
11850 # We used to test for /lib/ld.so.1 and disable shared libraries on
11851 # powerpc, because MkLinux only supported shared libraries with the
11852 # GNU dynamic linker. Since this was broken with cross compilers,
11853 # most powerpc-linux boxes support dynamic linking these days and
11854 # people can always --disable-shared, the test was removed, and we
11855 # assume the GNU/Linux dynamic linker is in use.
11856 dynamic_linker
='GNU/Linux ld.so'
11863 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11864 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11865 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11866 dynamic_linker
='NetBSD (a.out) ld.so'
11868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11869 soname_spec
='${libname}${release}${shared_ext}$major'
11870 dynamic_linker
='NetBSD ld.elf_so'
11872 shlibpath_var
=LD_LIBRARY_PATH
11873 shlibpath_overrides_runpath
=yes
11874 hardcode_into_libs
=yes
11879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11880 shlibpath_var
=LD_LIBRARY_PATH
11881 shlibpath_overrides_runpath
=yes
11888 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11889 soname_spec
='${libname}${release}${shared_ext}$major'
11890 shlibpath_var
=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath
=yes
11898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11899 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11900 shlibpath_var
=LD_LIBRARY_PATH
11901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11903 openbsd2.
[89] | openbsd2.
[89].
*)
11904 shlibpath_overrides_runpath
=no
11907 shlibpath_overrides_runpath
=yes
11911 shlibpath_overrides_runpath
=yes
11916 libname_spec
='$name'
11919 library_names_spec
='$libname${shared_ext} $libname.a'
11920 dynamic_linker
='OS/2 ld.exe'
11921 shlibpath_var
=LIBPATH
11924 osf3
* | osf4
* | osf5
*)
11928 soname_spec
='${libname}${release}${shared_ext}$major'
11929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930 shlibpath_var
=LD_LIBRARY_PATH
11931 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11932 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11937 soname_spec
='${libname}${release}${shared_ext}$major'
11938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939 shlibpath_var
=LD_LIBRARY_PATH
11946 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11947 soname_spec
='${libname}${release}${shared_ext}$major'
11948 shlibpath_var
=LD_LIBRARY_PATH
11949 shlibpath_overrides_runpath
=yes
11950 hardcode_into_libs
=yes
11951 # ldd complains unless libraries are executable
11952 postinstall_cmds
='chmod +x $lib'
11957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11958 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11959 shlibpath_var
=LD_LIBRARY_PATH
11960 shlibpath_overrides_runpath
=yes
11961 if test "$with_gnu_ld" = yes; then
11967 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11970 soname_spec
='${libname}${release}${shared_ext}$major'
11971 shlibpath_var
=LD_LIBRARY_PATH
11972 case $host_vendor in
11974 shlibpath_overrides_runpath
=no
11976 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11977 runpath_var
=LD_RUN_PATH
11985 shlibpath_overrides_runpath
=no
11986 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11992 if test -d /usr
/nec
;then
11994 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11995 soname_spec
='$libname${shared_ext}.$major'
11996 shlibpath_var
=LD_LIBRARY_PATH
12002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003 soname_spec
='${libname}${release}${shared_ext}$major'
12004 shlibpath_var
=LD_LIBRARY_PATH
12011 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12012 echo "${ECHO_T}$dynamic_linker" >&6
12013 test "$dynamic_linker" = no
&& can_build_shared
=no
12015 if test "x$enable_dlopen" != xyes
; then
12016 enable_dlopen
=unknown
12017 enable_dlopen_self
=unknown
12018 enable_dlopen_self_static
=unknown
12025 lt_cv_dlopen
="load_add_on"
12027 lt_cv_dlopen_self
=yes
12031 lt_cv_dlopen
="LoadLibrary"
12036 lt_cv_dlopen
="dlopen"
12041 # if libdl is installed we need to link against it
12042 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12043 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12044 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 ac_check_lib_save_LIBS
=$LIBS
12049 cat >conftest.
$ac_ext <<_ACEOF
12052 cat confdefs.h
>>conftest.
$ac_ext
12053 cat >>conftest.
$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12056 /* Override any gcc2 internal prototype to avoid an error. */
12060 /* We use char because int might match the return type of a gcc2
12061 builtin and then its argument prototype would still apply. */
12071 rm -f conftest.
$ac_objext conftest
$ac_exeext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12073 (eval $ac_link) 2>conftest.er1
12075 grep -v '^ *+' conftest.er1
>conftest.err
12077 cat conftest.err
>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try
='test -z "$ac_cxx_werror_flag"
12081 || test ! -s conftest.err'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try
='test -s conftest$ac_exeext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 ac_cv_lib_dl_dlopen
=yes
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.
$ac_ext >&5
12098 ac_cv_lib_dl_dlopen
=no
12100 rm -f conftest.err conftest.
$ac_objext \
12101 conftest
$ac_exeext conftest.
$ac_ext
12102 LIBS
=$ac_check_lib_save_LIBS
12104 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12105 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12106 if test $ac_cv_lib_dl_dlopen = yes; then
12107 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12110 lt_cv_dlopen
="dyld"
12112 lt_cv_dlopen_self
=yes
12119 echo "$as_me:$LINENO: checking for shl_load" >&5
12120 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12121 if test "${ac_cv_func_shl_load+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 cat >conftest.
$ac_ext <<_ACEOF
12127 cat confdefs.h
>>conftest.
$ac_ext
12128 cat >>conftest.
$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12130 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12132 #define shl_load innocuous_shl_load
12134 /* System header to define __stub macros and hopefully few prototypes,
12135 which can conflict with char shl_load (); below.
12136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12137 <limits.h> exists even on freestanding compilers. */
12140 # include <limits.h>
12142 # include <assert.h>
12147 /* Override any gcc2 internal prototype to avoid an error. */
12152 /* We use char because int might match the return type of a gcc2
12153 builtin and then its argument prototype would still apply. */
12155 /* The GNU C library defines this for functions which it implements
12156 to always fail with ENOSYS. Some functions are actually named
12157 something starting with __ and the normal name is an alias. */
12158 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12161 char (*f) () = shl_load;
12170 return f != shl_load;
12175 rm -f conftest.
$ac_objext conftest
$ac_exeext
12176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12177 (eval $ac_link) 2>conftest.er1
12179 grep -v '^ *+' conftest.er1
>conftest.err
12181 cat conftest.err
>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try
='test -z "$ac_cxx_werror_flag"
12185 || test ! -s conftest.err'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; } &&
12191 { ac_try
='test -s conftest$ac_exeext'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 ac_cv_func_shl_load
=yes
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.
$ac_ext >&5
12202 ac_cv_func_shl_load
=no
12204 rm -f conftest.err conftest.
$ac_objext \
12205 conftest
$ac_exeext conftest.
$ac_ext
12207 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12208 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12209 if test $ac_cv_func_shl_load = yes; then
12210 lt_cv_dlopen
="shl_load"
12212 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12213 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12214 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 ac_check_lib_save_LIBS
=$LIBS
12219 cat >conftest.
$ac_ext <<_ACEOF
12222 cat confdefs.h
>>conftest.
$ac_ext
12223 cat >>conftest.
$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12226 /* Override any gcc2 internal prototype to avoid an error. */
12230 /* We use char because int might match the return type of a gcc2
12231 builtin and then its argument prototype would still apply. */
12241 rm -f conftest.
$ac_objext conftest
$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243 (eval $ac_link) 2>conftest.er1
12245 grep -v '^ *+' conftest.er1
>conftest.err
12247 cat conftest.err
>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try
='test -z "$ac_cxx_werror_flag"
12251 || test ! -s conftest.err'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try
='test -s conftest$ac_exeext'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_lib_dld_shl_load
=yes
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.
$ac_ext >&5
12268 ac_cv_lib_dld_shl_load
=no
12270 rm -f conftest.err conftest.
$ac_objext \
12271 conftest
$ac_exeext conftest.
$ac_ext
12272 LIBS
=$ac_check_lib_save_LIBS
12274 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12275 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12276 if test $ac_cv_lib_dld_shl_load = yes; then
12277 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
12279 echo "$as_me:$LINENO: checking for dlopen" >&5
12280 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12281 if test "${ac_cv_func_dlopen+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 cat >conftest.
$ac_ext <<_ACEOF
12287 cat confdefs.h
>>conftest.
$ac_ext
12288 cat >>conftest.
$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12292 #define dlopen innocuous_dlopen
12294 /* System header to define __stub macros and hopefully few prototypes,
12295 which can conflict with char dlopen (); below.
12296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12297 <limits.h> exists even on freestanding compilers. */
12300 # include <limits.h>
12302 # include <assert.h>
12307 /* 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. */
12315 /* The GNU C library defines this for functions which it implements
12316 to always fail with ENOSYS. Some functions are actually named
12317 something starting with __ and the normal name is an alias. */
12318 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12321 char (*f) () = dlopen;
12330 return f != dlopen;
12335 rm -f conftest.
$ac_objext conftest
$ac_exeext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337 (eval $ac_link) 2>conftest.er1
12339 grep -v '^ *+' conftest.er1
>conftest.err
12341 cat conftest.err
>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try
='test -z "$ac_cxx_werror_flag"
12345 || test ! -s conftest.err'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; } &&
12351 { ac_try
='test -s conftest$ac_exeext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 ac_cv_func_dlopen
=yes
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.
$ac_ext >&5
12362 ac_cv_func_dlopen
=no
12364 rm -f conftest.err conftest.
$ac_objext \
12365 conftest
$ac_exeext conftest.
$ac_ext
12367 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12368 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12369 if test $ac_cv_func_dlopen = yes; then
12370 lt_cv_dlopen
="dlopen"
12372 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12373 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12374 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 ac_check_lib_save_LIBS
=$LIBS
12379 cat >conftest.
$ac_ext <<_ACEOF
12382 cat confdefs.h
>>conftest.
$ac_ext
12383 cat >>conftest.
$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12386 /* Override any gcc2 internal prototype to avoid an error. */
12390 /* We use char because int might match the return type of a gcc2
12391 builtin and then its argument prototype would still apply. */
12401 rm -f conftest.
$ac_objext conftest
$ac_exeext
12402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12403 (eval $ac_link) 2>conftest.er1
12405 grep -v '^ *+' conftest.er1
>conftest.err
12407 cat conftest.err
>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } &&
12410 { ac_try
='test -z "$ac_cxx_werror_flag"
12411 || test ! -s conftest.err'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; } &&
12417 { ac_try
='test -s conftest$ac_exeext'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; }; then
12423 ac_cv_lib_dl_dlopen
=yes
12425 echo "$as_me: failed program was:" >&5
12426 sed 's/^/| /' conftest.
$ac_ext >&5
12428 ac_cv_lib_dl_dlopen
=no
12430 rm -f conftest.err conftest.
$ac_objext \
12431 conftest
$ac_exeext conftest.
$ac_ext
12432 LIBS
=$ac_check_lib_save_LIBS
12434 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12435 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12436 if test $ac_cv_lib_dl_dlopen = yes; then
12437 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12439 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12440 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12441 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12444 ac_check_lib_save_LIBS
=$LIBS
12445 LIBS
="-lsvld $LIBS"
12446 cat >conftest.
$ac_ext <<_ACEOF
12449 cat confdefs.h
>>conftest.
$ac_ext
12450 cat >>conftest.
$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12453 /* Override any gcc2 internal prototype to avoid an error. */
12457 /* We use char because int might match the return type of a gcc2
12458 builtin and then its argument prototype would still apply. */
12468 rm -f conftest.
$ac_objext conftest
$ac_exeext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12470 (eval $ac_link) 2>conftest.er1
12472 grep -v '^ *+' conftest.er1
>conftest.err
12474 cat conftest.err
>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try
='test -z "$ac_cxx_werror_flag"
12478 || test ! -s conftest.err'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try
='test -s conftest$ac_exeext'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12490 ac_cv_lib_svld_dlopen
=yes
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.
$ac_ext >&5
12495 ac_cv_lib_svld_dlopen
=no
12497 rm -f conftest.err conftest.
$ac_objext \
12498 conftest
$ac_exeext conftest.
$ac_ext
12499 LIBS
=$ac_check_lib_save_LIBS
12501 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12502 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12503 if test $ac_cv_lib_svld_dlopen = yes; then
12504 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12506 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12507 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12508 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 ac_check_lib_save_LIBS
=$LIBS
12513 cat >conftest.
$ac_ext <<_ACEOF
12516 cat confdefs.h
>>conftest.
$ac_ext
12517 cat >>conftest.
$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12520 /* Override any gcc2 internal prototype to avoid an error. */
12524 /* We use char because int might match the return type of a gcc2
12525 builtin and then its argument prototype would still apply. */
12535 rm -f conftest.
$ac_objext conftest
$ac_exeext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12537 (eval $ac_link) 2>conftest.er1
12539 grep -v '^ *+' conftest.er1
>conftest.err
12541 cat conftest.err
>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try
='test -z "$ac_cxx_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try
='test -s conftest$ac_exeext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_lib_dld_dld_link
=yes
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.
$ac_ext >&5
12562 ac_cv_lib_dld_dld_link
=no
12564 rm -f conftest.err conftest.
$ac_objext \
12565 conftest
$ac_exeext conftest.
$ac_ext
12566 LIBS
=$ac_check_lib_save_LIBS
12568 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12569 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12570 if test $ac_cv_lib_dld_dld_link = yes; then
12571 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
12592 if test "x$lt_cv_dlopen" != xno
; then
12598 case $lt_cv_dlopen in
12600 save_CPPFLAGS
="$CPPFLAGS"
12601 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12603 save_LDFLAGS
="$LDFLAGS"
12604 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12607 LIBS
="$lt_cv_dlopen_libs $LIBS"
12609 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12610 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12611 if test "${lt_cv_dlopen_self+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 if test "$cross_compiling" = yes; then :
12615 lt_cv_dlopen_self
=cross
12617 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12618 lt_status
=$lt_dlunknown
12619 cat > conftest.
$ac_ext <<EOF
12620 #line 12620 "configure"
12621 #include "confdefs.h"
12630 # define LT_DLGLOBAL RTLD_GLOBAL
12633 # define LT_DLGLOBAL DL_GLOBAL
12635 # define LT_DLGLOBAL 0
12639 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12640 find out it does not work in some platform. */
12641 #ifndef LT_DLLAZY_OR_NOW
12643 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12646 # define LT_DLLAZY_OR_NOW DL_LAZY
12649 # define LT_DLLAZY_OR_NOW RTLD_NOW
12652 # define LT_DLLAZY_OR_NOW DL_NOW
12654 # define LT_DLLAZY_OR_NOW 0
12662 extern "C" void exit (int);
12665 void fnord() { int i=42;}
12668 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12669 int status = $lt_dlunknown;
12673 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12674 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12675 /* dlclose (self); */
12681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12682 (eval $ac_link) 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12686 (.
/conftest
; exit; ) 2>/dev
/null
12688 case x
$lt_status in
12689 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12690 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12691 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
12694 # compilation failed
12695 lt_cv_dlopen_self
=no
12702 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12703 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12705 if test "x$lt_cv_dlopen_self" = xyes
; then
12706 LDFLAGS
="$LDFLAGS $link_static_flag"
12707 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12708 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12709 if test "${lt_cv_dlopen_self_static+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 if test "$cross_compiling" = yes; then :
12713 lt_cv_dlopen_self_static
=cross
12715 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12716 lt_status
=$lt_dlunknown
12717 cat > conftest.
$ac_ext <<EOF
12718 #line 12718 "configure"
12719 #include "confdefs.h"
12728 # define LT_DLGLOBAL RTLD_GLOBAL
12731 # define LT_DLGLOBAL DL_GLOBAL
12733 # define LT_DLGLOBAL 0
12737 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12738 find out it does not work in some platform. */
12739 #ifndef LT_DLLAZY_OR_NOW
12741 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12744 # define LT_DLLAZY_OR_NOW DL_LAZY
12747 # define LT_DLLAZY_OR_NOW RTLD_NOW
12750 # define LT_DLLAZY_OR_NOW DL_NOW
12752 # define LT_DLLAZY_OR_NOW 0
12760 extern "C" void exit (int);
12763 void fnord() { int i=42;}
12766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12767 int status = $lt_dlunknown;
12771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12772 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12773 /* dlclose (self); */
12779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12780 (eval $ac_link) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12784 (.
/conftest
; exit; ) 2>/dev
/null
12786 case x
$lt_status in
12787 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12788 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12789 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
12792 # compilation failed
12793 lt_cv_dlopen_self_static
=no
12800 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12801 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12804 CPPFLAGS
="$save_CPPFLAGS"
12805 LDFLAGS
="$save_LDFLAGS"
12810 case $lt_cv_dlopen_self in
12811 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12812 *) enable_dlopen_self
=unknown
;;
12815 case $lt_cv_dlopen_self_static in
12816 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12817 *) enable_dlopen_self_static
=unknown
;;
12822 # The else clause should only fire when bootstrapping the
12823 # libtool distribution, otherwise you forgot to ship ltmain.sh
12824 # with your package, and you will get complaints that there are
12825 # no rules to generate ltmain.sh.
12826 if test -f "$ltmain"; then
12827 # See if we are running on zsh, and set the options which allow our commands through
12828 # without removal of \ escapes.
12829 if test -n "${ZSH_VERSION+set}" ; then
12830 setopt NO_GLOB_SUBST
12832 # Now quote all the things that may contain metacharacters while being
12833 # careful not to overquote the AC_SUBSTed values. We take copies of the
12834 # variables and quote the copies for generation of the libtool script.
12835 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12836 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12837 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12838 deplibs_check_method reload_flag reload_cmds need_locks \
12839 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12840 lt_cv_sys_global_symbol_to_c_name_address \
12841 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12842 old_postinstall_cmds old_postuninstall_cmds \
12846 lt_prog_compiler_wl_CXX \
12847 lt_prog_compiler_pic_CXX \
12848 lt_prog_compiler_static_CXX \
12849 lt_prog_compiler_no_builtin_flag_CXX \
12850 export_dynamic_flag_spec_CXX \
12851 thread_safe_flag_spec_CXX \
12852 whole_archive_flag_spec_CXX \
12853 enable_shared_with_static_runtimes_CXX \
12854 old_archive_cmds_CXX \
12855 old_archive_from_new_cmds_CXX \
12856 predep_objects_CXX \
12857 postdep_objects_CXX \
12860 compiler_lib_search_path_CXX \
12862 archive_expsym_cmds_CXX \
12863 postinstall_cmds_CXX \
12864 postuninstall_cmds_CXX \
12865 old_archive_from_expsyms_cmds_CXX \
12866 allow_undefined_flag_CXX \
12867 no_undefined_flag_CXX \
12868 export_symbols_cmds_CXX \
12869 hardcode_libdir_flag_spec_CXX \
12870 hardcode_libdir_flag_spec_ld_CXX \
12871 hardcode_libdir_separator_CXX \
12872 hardcode_automatic_CXX \
12874 module_expsym_cmds_CXX \
12875 lt_cv_prog_compiler_c_o_CXX \
12876 exclude_expsyms_CXX \
12877 include_expsyms_CXX
; do
12880 old_archive_cmds_CXX | \
12881 old_archive_from_new_cmds_CXX | \
12882 archive_cmds_CXX | \
12883 archive_expsym_cmds_CXX | \
12884 module_cmds_CXX | \
12885 module_expsym_cmds_CXX | \
12886 old_archive_from_expsyms_cmds_CXX | \
12887 export_symbols_cmds_CXX | \
12888 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12889 postinstall_cmds | postuninstall_cmds | \
12890 old_postinstall_cmds | old_postuninstall_cmds | \
12891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
12892 # Double-quote double-evaled strings.
12893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12902 *'\$0 --fallback-echo"')
12903 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12909 cat <<__EOF__ >> "$cfgfile"
12910 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12914 # Shell to use when invoking shell scripts.
12917 # Whether or not to build shared libraries.
12918 build_libtool_libs=$enable_shared
12920 # Whether or not to build static libraries.
12921 build_old_libs=$enable_static
12923 # Whether or not to add -lc for building shared libraries.
12924 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12926 # Whether or not to disallow shared libs when runtime libs are static
12927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12929 # Whether or not to optimize for fast installation.
12930 fast_install=$enable_fast_install
12933 host_alias=$host_alias
12936 # An echo program that does not interpret backslashes.
12941 AR_FLAGS=$lt_AR_FLAGS
12946 # A language-specific compiler.
12947 CC=$lt_compiler_CXX
12949 # Is the compiler the GNU C compiler?
12955 # The linker used to build libraries.
12958 # Whether we need hard or soft links.
12961 # A BSD-compatible nm program.
12964 # A symbol stripping program
12967 # Used to examine libraries when file_magic_cmd begins "file"
12968 MAGIC_CMD=$MAGIC_CMD
12970 # Used on cygwin: DLL creation program.
12973 # Used on cygwin: object dumper.
12976 # Used on cygwin: assembler.
12979 # The name of the directory that contains temporary libtool files.
12982 # How to create reloadable object files.
12983 reload_flag=$lt_reload_flag
12984 reload_cmds=$lt_reload_cmds
12986 # How to pass a linker flag through the compiler.
12987 wl=$lt_lt_prog_compiler_wl_CXX
12989 # Object file suffix (normally "o").
12990 objext="$ac_objext"
12992 # Old archive suffix (normally "a").
12995 # Shared library suffix (normally ".so").
12998 # Executable file suffix (normally "").
13001 # Additional compiler flags for building library objects.
13002 pic_flag=$lt_lt_prog_compiler_pic_CXX
13005 # What is the maximum length of a command?
13006 max_cmd_len=$lt_cv_sys_max_cmd_len
13008 # Does compiler simultaneously support -c and -o options?
13009 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13011 # Must we lock files when doing compilation ?
13012 need_locks=$lt_need_locks
13014 # Do we need the lib prefix for modules?
13015 need_lib_prefix=$need_lib_prefix
13017 # Do we need a version for libraries?
13018 need_version=$need_version
13020 # Whether dlopen is supported.
13021 dlopen_support=$enable_dlopen
13023 # Whether dlopen of programs is supported.
13024 dlopen_self=$enable_dlopen_self
13026 # Whether dlopen of statically linked programs is supported.
13027 dlopen_self_static=$enable_dlopen_self_static
13029 # Compiler flag to prevent dynamic linking.
13030 link_static_flag=$lt_lt_prog_compiler_static_CXX
13032 # Compiler flag to turn off builtin functions.
13033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13035 # Compiler flag to allow reflexive dlopens.
13036 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13038 # Compiler flag to generate shared objects directly from archives.
13039 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13041 # Compiler flag to generate thread-safe objects.
13042 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13044 # Library versioning type.
13045 version_type=$version_type
13047 # Format of library name prefix.
13048 libname_spec=$lt_libname_spec
13050 # List of archive names. First name is the real one, the rest are links.
13051 # The last name is the one that the linker finds with -lNAME.
13052 library_names_spec=$lt_library_names_spec
13054 # The coded name of the library, if different from the real name.
13055 soname_spec=$lt_soname_spec
13057 # Commands used to build and install an old-style archive.
13059 old_archive_cmds=$lt_old_archive_cmds_CXX
13060 old_postinstall_cmds=$lt_old_postinstall_cmds
13061 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13063 # Create an old-style archive from a shared archive.
13064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13066 # Create a temporary old-style archive to link instead of a shared archive.
13067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13069 # Commands used to build and install a shared archive.
13070 archive_cmds=$lt_archive_cmds_CXX
13071 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13072 postinstall_cmds=$lt_postinstall_cmds
13073 postuninstall_cmds=$lt_postuninstall_cmds
13075 # Commands used to build a loadable module (assumed same as above if empty)
13076 module_cmds=$lt_module_cmds_CXX
13077 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13079 # Commands to strip libraries.
13080 old_striplib=$lt_old_striplib
13081 striplib=$lt_striplib
13083 # Dependencies to place before the objects being linked to create a
13085 predep_objects=$lt_predep_objects_CXX
13087 # Dependencies to place after the objects being linked to create a
13089 postdep_objects=$lt_postdep_objects_CXX
13091 # Dependencies to place before the objects being linked to create a
13093 predeps=$lt_predeps_CXX
13095 # Dependencies to place after the objects being linked to create a
13097 postdeps=$lt_postdeps_CXX
13099 # The library search path used internally by the compiler when linking
13100 # a shared library.
13101 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13103 # Method to check whether dependent libraries are shared objects.
13104 deplibs_check_method=$lt_deplibs_check_method
13106 # Command to use when deplibs_check_method == file_magic.
13107 file_magic_cmd=$lt_file_magic_cmd
13109 # Flag that allows shared libraries with undefined symbols to be built.
13110 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13112 # Flag that forces no undefined symbols.
13113 no_undefined_flag=$lt_no_undefined_flag_CXX
13115 # Commands used to finish a libtool library installation in a directory.
13116 finish_cmds=$lt_finish_cmds
13118 # Same as above, but a single script fragment to be evaled but not shown.
13119 finish_eval=$lt_finish_eval
13121 # Take the output of nm and produce a listing of raw symbols and C names.
13122 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13124 # Transform the output of nm in a proper C declaration
13125 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13127 # Transform the output of nm in a C name address pair
13128 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13130 # This is the shared library runtime path variable.
13131 runpath_var=$runpath_var
13133 # This is the shared library path variable.
13134 shlibpath_var=$shlibpath_var
13136 # Is shlibpath searched before the hard-coded library search path?
13137 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13139 # How to hardcode a shared library path into an executable.
13140 hardcode_action=$hardcode_action_CXX
13142 # Whether we should hardcode library paths into libraries.
13143 hardcode_into_libs=$hardcode_into_libs
13145 # Flag to hardcode \$libdir into a binary during linking.
13146 # This must work even if \$libdir does not exist.
13147 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13149 # If ld is used when linking, flag to hardcode \$libdir into
13150 # a binary during linking. This must work even if \$libdir does
13152 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13154 # Whether we need a single -rpath flag with a separated argument.
13155 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13157 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13158 # resulting binary.
13159 hardcode_direct=$hardcode_direct_CXX
13161 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13162 # resulting binary.
13163 hardcode_minus_L=$hardcode_minus_L_CXX
13165 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13166 # the resulting binary.
13167 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13169 # Set to yes if building a shared library automatically hardcodes DIR into the library
13170 # and all subsequent libraries and executables linked against it.
13171 hardcode_automatic=$hardcode_automatic_CXX
13173 # Variables whose values should be saved in libtool wrapper scripts and
13174 # restored at relink time.
13175 variables_saved_for_relink="$variables_saved_for_relink"
13177 # Whether libtool must link a program against all its dependency libraries.
13178 link_all_deplibs=$link_all_deplibs_CXX
13180 # Compile-time system search path for libraries
13181 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13183 # Run-time system search path for libraries
13184 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13186 # Fix the shell variable \$srcfile for the compiler.
13187 fix_srcfile_path="$fix_srcfile_path_CXX"
13189 # Set to yes if exported symbols are required.
13190 always_export_symbols=$always_export_symbols_CXX
13192 # The commands to list exported symbols.
13193 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13195 # The commands to extract the exported symbol list from a shared archive.
13196 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13198 # Symbols that should not be listed in the preloaded symbols.
13199 exclude_expsyms=$lt_exclude_expsyms_CXX
13201 # Symbols that must always be exported.
13202 include_expsyms=$lt_include_expsyms_CXX
13204 # ### END LIBTOOL TAG CONFIG: $tagname
13210 # If there is no Makefile yet, we rely on a make rule to execute
13211 # `config.status --recheck' to rerun these tests and create the
13212 # libtool script then.
13213 test -f Makefile
&& make "$ltmain"
13218 ac_cpp
='$CPP $CPPFLAGS'
13219 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13220 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13221 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13227 with_gnu_ldcxx
=$with_gnu_ld
13228 with_gnu_ld
=$lt_save_with_gnu_ld
13229 lt_cv_path_LDCXX
=$lt_cv_path_LD
13230 lt_cv_path_LD
=$lt_save_path_LD
13231 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13232 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13240 if test -n "$F77" && test "X$F77" != "Xno"; then
13243 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13244 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13245 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13248 archive_cmds_need_lc_F77
=no
13249 allow_undefined_flag_F77
=
13250 always_export_symbols_F77
=no
13251 archive_expsym_cmds_F77
=
13252 export_dynamic_flag_spec_F77
=
13253 hardcode_direct_F77
=no
13254 hardcode_libdir_flag_spec_F77
=
13255 hardcode_libdir_flag_spec_ld_F77
=
13256 hardcode_libdir_separator_F77
=
13257 hardcode_minus_L_F77
=no
13258 hardcode_automatic_F77
=no
13260 module_expsym_cmds_F77
=
13261 link_all_deplibs_F77
=unknown
13262 old_archive_cmds_F77
=$old_archive_cmds
13263 no_undefined_flag_F77
=
13264 whole_archive_flag_spec_F77
=
13265 enable_shared_with_static_runtimes_F77
=no
13267 # Source file extension for f77 test sources.
13270 # Object file extension for compiled f77 test sources.
13274 # Code to be used in simple compile tests
13275 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13277 # Code to be used in simple link tests
13278 lt_simple_link_test_code
=" program t\n end\n"
13280 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13282 # If no C compiler was specified, use CC.
13285 # Allow CC to be a program name with arguments.
13289 # Allow CC to be a program name with arguments.
13294 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13296 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13297 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13298 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13299 echo "${ECHO_T}$can_build_shared" >&6
13301 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13302 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13303 test "$can_build_shared" = "no" && enable_shared
=no
13305 # On AIX, shared libraries and static libraries use the same namespace, and
13306 # are all built from PIC.
13309 test "$enable_shared" = yes && enable_static
=no
13310 if test -n "$RANLIB"; then
13311 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13312 postinstall_cmds
='$RANLIB $lib'
13316 test "$enable_shared" = yes && enable_static
=no
13319 echo "$as_me:$LINENO: result: $enable_shared" >&5
13320 echo "${ECHO_T}$enable_shared" >&6
13322 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13323 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13324 # Make sure either enable_shared or enable_static is yes.
13325 test "$enable_shared" = yes || enable_static
=yes
13326 echo "$as_me:$LINENO: result: $enable_static" >&5
13327 echo "${ECHO_T}$enable_static" >&6
13329 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
13334 lt_prog_compiler_wl_F77
=
13335 lt_prog_compiler_pic_F77
=
13336 lt_prog_compiler_static_F77
=
13338 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13339 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13341 if test "$GCC" = yes; then
13342 lt_prog_compiler_wl_F77
='-Wl,'
13343 lt_prog_compiler_static_F77
='-static'
13347 # All AIX code is PIC.
13348 if test "$host_cpu" = ia64
; then
13349 # AIX 5 now supports IA64 processor
13350 lt_prog_compiler_static_F77
='-Bstatic'
13355 # FIXME: we need at least 68020 code to build shared libraries, but
13356 # adding the `-m68020' flag to GCC prevents building anything better,
13358 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13361 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13362 # PIC is the default for these OSes.
13365 mingw
* | pw32
* | os2
*)
13366 # This hack is so that the source file can tell whether it is being
13367 # built for inclusion in a dll (and should export symbols for example).
13368 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13371 darwin
* | rhapsody
*)
13372 # PIC is the default on this platform
13373 # Common symbols not allowed in MH_DYLIB files
13374 lt_prog_compiler_pic_F77
='-fno-common'
13378 # Just because we use GCC doesn't mean we suddenly get shared libraries
13379 # on systems that don't support them.
13380 lt_prog_compiler_can_build_shared_F77
=no
13385 if test -d /usr
/nec
; then
13386 lt_prog_compiler_pic_F77
=-Kconform_pic
13391 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13392 # not for PA HP-UX.
13393 case "$host_cpu" in
13398 lt_prog_compiler_pic_F77
='-fPIC'
13404 lt_prog_compiler_pic_F77
='-fPIC'
13408 # PORTME Check for flag to pass linker flags through the system compiler.
13411 lt_prog_compiler_wl_F77
='-Wl,'
13412 if test "$host_cpu" = ia64
; then
13413 # AIX 5 now supports IA64 processor
13414 lt_prog_compiler_static_F77
='-Bstatic'
13416 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13420 mingw
* | pw32
* | os2
*)
13421 # This hack is so that the source file can tell whether it is being
13422 # built for inclusion in a dll (and should export symbols for example).
13423 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13426 hpux9
* | hpux10
* | hpux11
*)
13427 lt_prog_compiler_wl_F77
='-Wl,'
13428 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13429 # not for PA HP-UX.
13430 case "$host_cpu" in
13435 lt_prog_compiler_pic_F77
='+Z'
13438 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13439 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13442 irix5
* | irix6
* | nonstopux
*)
13443 lt_prog_compiler_wl_F77
='-Wl,'
13444 # PIC (with -KPIC) is the default.
13445 lt_prog_compiler_static_F77
='-non_shared'
13449 lt_prog_compiler_pic_F77
='-KPIC'
13450 lt_prog_compiler_static_F77
='-Bstatic'
13456 lt_prog_compiler_wl_F77
='-Wl,'
13457 lt_prog_compiler_pic_F77
='-KPIC'
13458 lt_prog_compiler_static_F77
='-static'
13461 lt_prog_compiler_wl_F77
='-Wl,'
13462 # All Alpha code is PIC.
13463 lt_prog_compiler_static_F77
='-non_shared'
13468 osf3
* | osf4
* | osf5
*)
13469 lt_prog_compiler_wl_F77
='-Wl,'
13470 # All OSF/1 code is PIC.
13471 lt_prog_compiler_static_F77
='-non_shared'
13475 lt_prog_compiler_pic_F77
='-Kpic'
13476 lt_prog_compiler_static_F77
='-dn'
13480 lt_prog_compiler_wl_F77
='-Wl,'
13481 lt_prog_compiler_pic_F77
='-KPIC'
13482 lt_prog_compiler_static_F77
='-Bstatic'
13486 lt_prog_compiler_wl_F77
='-Qoption ld '
13487 lt_prog_compiler_pic_F77
='-PIC'
13488 lt_prog_compiler_static_F77
='-Bstatic'
13491 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13492 lt_prog_compiler_wl_F77
='-Wl,'
13493 lt_prog_compiler_pic_F77
='-KPIC'
13494 lt_prog_compiler_static_F77
='-Bstatic'
13498 if test -d /usr
/nec
;then
13499 lt_prog_compiler_pic_F77
='-Kconform_pic'
13500 lt_prog_compiler_static_F77
='-Bstatic'
13505 lt_prog_compiler_pic_F77
='-pic'
13506 lt_prog_compiler_static_F77
='-Bstatic'
13510 lt_prog_compiler_can_build_shared_F77
=no
13515 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13516 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13519 # Check to make sure the PIC flag actually works.
13521 if test -n "$lt_prog_compiler_pic_F77"; then
13522 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13523 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13524 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 lt_prog_compiler_pic_works_F77
=no
13528 ac_outfile
=conftest.
$ac_objext
13529 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13530 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13531 # Insert the option either (1) after the last *FLAGS variable, or
13532 # (2) before a word containing "conftest.", or (3) at the end.
13533 # Note that $ac_compile itself does not contain backslashes and begins
13534 # with a dollar sign (not a hyphen), so the echo should work correctly.
13535 # The option is referenced via a variable to avoid confusing sed.
13536 lt_compile
=`echo "$ac_compile" | $SED \
13537 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13539 -e 's:$: $lt_compiler_flag:'`
13540 (eval echo "\"\$as_me:13540: $lt_compile\"" >&5)
13541 (eval "$lt_compile" 2>conftest.err
)
13543 cat conftest.err
>&5
13544 echo "$as_me:13544: \$? = $ac_status" >&5
13545 if (exit $ac_status) && test -s "$ac_outfile"; then
13546 # The compiler can only warn and ignore the option if not recognized
13547 # So say no if there are warnings
13548 if test ! -s conftest.err
; then
13549 lt_prog_compiler_pic_works_F77
=yes
13555 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13556 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13558 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
13559 case $lt_prog_compiler_pic_F77 in
13561 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13564 lt_prog_compiler_pic_F77
=
13565 lt_prog_compiler_can_build_shared_F77
=no
13570 # For platforms which do not support PIC, -DPIC is meaningless:
13572 lt_prog_compiler_pic_F77
=
13575 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13579 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13580 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13581 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 lt_cv_prog_compiler_c_o_F77
=no
13585 $rm -r conftest
2>/dev
/null
13589 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13591 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13592 # that will create temporary files in the current directory regardless of
13593 # the output directory. Thus, making CWD read-only will cause this test
13594 # to fail, enabling locking or at least warning the user not to do parallel
13598 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13599 # Insert the option either (1) after the last *FLAGS variable, or
13600 # (2) before a word containing "conftest.", or (3) at the end.
13601 # Note that $ac_compile itself does not contain backslashes and begins
13602 # with a dollar sign (not a hyphen), so the echo should work correctly.
13603 lt_compile
=`echo "$ac_compile" | $SED \
13604 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13606 -e 's:$: $lt_compiler_flag:'`
13607 (eval echo "\"\$as_me:13607: $lt_compile\"" >&5)
13608 (eval "$lt_compile" 2>out
/conftest.err
)
13610 cat out
/conftest.err
>&5
13611 echo "$as_me:13611: \$? = $ac_status" >&5
13612 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13614 # The compiler can only warn and ignore the option if not recognized
13615 # So say no if there are warnings
13616 if test ! -s out
/conftest.err
; then
13617 lt_cv_prog_compiler_c_o_F77
=yes
13621 $rm conftest
* out
/*
13628 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13629 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13632 hard_links
="nottested"
13633 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
13634 # do not overwrite the value of need_locks provided by the user
13635 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13636 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13639 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13641 ln conftest.a conftest.b
2>&5 || hard_links
=no
13642 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13643 echo "$as_me:$LINENO: result: $hard_links" >&5
13644 echo "${ECHO_T}$hard_links" >&6
13645 if test "$hard_links" = no
; then
13646 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13647 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13654 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13655 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13658 allow_undefined_flag_F77
=
13659 enable_shared_with_static_runtimes_F77
=no
13661 archive_expsym_cmds_F77
=
13662 old_archive_From_new_cmds_F77
=
13663 old_archive_from_expsyms_cmds_F77
=
13664 export_dynamic_flag_spec_F77
=
13665 whole_archive_flag_spec_F77
=
13666 thread_safe_flag_spec_F77
=
13667 hardcode_libdir_flag_spec_F77
=
13668 hardcode_libdir_flag_spec_ld_F77
=
13669 hardcode_libdir_separator_F77
=
13670 hardcode_direct_F77
=no
13671 hardcode_minus_L_F77
=no
13672 hardcode_shlibpath_var_F77
=unsupported
13673 link_all_deplibs_F77
=unknown
13674 hardcode_automatic_F77
=no
13676 module_expsym_cmds_F77
=
13677 always_export_symbols_F77
=no
13678 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13679 # include_expsyms should be a list of space-separated symbols to be *always*
13680 # included in the symbol list
13681 include_expsyms_F77
=
13682 # exclude_expsyms can be an extended regexp of symbols to exclude
13683 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13684 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13685 # as well as any symbol that contains `d'.
13686 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
13687 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13688 # platforms (ab)use it in PIC code, but their linkers get confused if
13689 # the symbol is explicitly referenced. Since portable code cannot
13690 # rely on this symbol name, it's probably fine to never include it in
13691 # preloaded symbol tables.
13692 extract_expsyms_cmds
=
13695 cygwin
* | mingw
* | pw32
*)
13696 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13697 # When not using gcc, we currently assume that we are using
13698 # Microsoft Visual C++.
13699 if test "$GCC" != yes; then
13709 if test "$with_gnu_ld" = yes; then
13710 # If archive_cmds runs LD, not CC, wlarc should be empty
13713 # See if GNU ld supports shared libraries.
13715 aix3
* | aix4
* | aix5
*)
13716 # On AIX/PPC, the GNU linker is very broken
13717 if test "$host_cpu" != ia64
; then
13721 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13722 *** to be unable to reliably create shared libraries on AIX.
13723 *** Therefore, libtool is disabling shared libraries support. If you
13724 *** really care for shared libraries, you may want to modify your PATH
13725 *** so that a non-GNU linker is found, and then restart.
13732 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)'
13733 hardcode_libdir_flag_spec_F77
='-L$libdir'
13734 hardcode_minus_L_F77
=yes
13736 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13737 # that the semantics of dynamic libraries on AmigaOS, at least up
13738 # to version 4, is to share data among multiple programs linked
13739 # with the same dynamic library. Since this doesn't match the
13740 # behavior of shared libraries on other platforms, we can't use
13746 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13747 allow_undefined_flag_F77
=unsupported
13748 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13749 # support --undefined. This deserves some investigation. FIXME
13750 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13756 cygwin
* | mingw
* | pw32
*)
13757 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13758 # as there is no search path for DLLs.
13759 hardcode_libdir_flag_spec_F77
='-L$libdir'
13760 allow_undefined_flag_F77
=unsupported
13761 always_export_symbols_F77
=no
13762 enable_shared_with_static_runtimes_F77
=yes
13763 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13765 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
13766 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13767 # If the export-symbols file already is a .def file (1st line
13768 # is EXPORTS), use it as is; otherwise, prepend...
13769 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13770 cp $export_symbols $output_objdir/$soname.def;
13772 echo EXPORTS > $output_objdir/$soname.def;
13773 cat $export_symbols >> $output_objdir/$soname.def;
13775 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13782 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13783 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13786 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13787 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13792 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
13796 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13797 *** create shared libraries on Solaris systems. Therefore, libtool
13798 *** is disabling shared libraries support. We urge you to upgrade GNU
13799 *** binutils to release 2.9.1 or newer. Another option is to modify
13800 *** your PATH or compiler configuration so that the native linker is
13801 *** used, and then restart.
13804 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13805 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13806 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13813 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13815 hardcode_direct_F77
=yes
13816 hardcode_shlibpath_var_F77
=no
13820 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13821 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13829 if test "$ld_shlibs_F77" = yes; then
13830 runpath_var
=LD_RUN_PATH
13831 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
13832 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
13833 # ancient GNU ld didn't support --whole-archive et. al.
13834 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
13835 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13837 whole_archive_flag_spec_F77
=
13841 # PORTME fill in a description of your system's linker (not GNU ld)
13844 allow_undefined_flag_F77
=unsupported
13845 always_export_symbols_F77
=yes
13846 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'
13847 # Note: this linker hardcodes the directories in LIBPATH if there
13848 # are no directories specified by -L.
13849 hardcode_minus_L_F77
=yes
13850 if test "$GCC" = yes && test -z "$link_static_flag"; then
13851 # Neither direct hardcoding nor static linking is supported with a
13853 hardcode_direct_F77
=unsupported
13858 if test "$host_cpu" = ia64
; then
13859 # On IA64, the linker does run time linking by default, so we don't
13860 # have to do anything special.
13861 aix_use_runtimelinking
=no
13862 exp_sym_flag
='-Bexport'
13865 # If we're using GNU nm, then we don't want the "-C" option.
13866 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13867 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13868 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'
13870 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'
13872 aix_use_runtimelinking
=no
13874 # Test if we are trying to use run time linking or normal
13875 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13876 # need to do runtime linking.
13877 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
13878 for ld_flag
in $LDFLAGS; do
13879 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13880 aix_use_runtimelinking
=yes
13886 exp_sym_flag
='-bexport'
13887 no_entry_flag
='-bnoentry'
13890 # When large executables or shared objects are built, AIX ld can
13891 # have problems creating the table of contents. If linking a library
13892 # or program results in "error TOC overflow" add -mminimal-toc to
13893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13896 archive_cmds_F77
=''
13897 hardcode_direct_F77
=yes
13898 hardcode_libdir_separator_F77
=':'
13899 link_all_deplibs_F77
=yes
13901 if test "$GCC" = yes; then
13902 case $host_os in aix4.012|aix4.012.
*)
13903 # We only want to do this on AIX 4.2 and lower, the check
13904 # below for broken collect2 doesn't work under 4.3+
13905 collect2name
=`${CC} -print-prog-name=collect2`
13906 if test -f "$collect2name" && \
13907 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
13909 # We have reworked collect2
13910 hardcode_direct_F77
=yes
13912 # We have old collect2
13913 hardcode_direct_F77
=unsupported
13914 # It fails to find uninstalled libraries when the uninstalled
13915 # path is not listed in the libpath. Setting hardcode_minus_L
13916 # to unsupported forces relinking
13917 hardcode_minus_L_F77
=yes
13918 hardcode_libdir_flag_spec_F77
='-L$libdir'
13919 hardcode_libdir_separator_F77
=
13922 shared_flag
='-shared'
13925 if test "$host_cpu" = ia64
; then
13926 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13927 # chokes on -Wl,-G. The following line is correct:
13930 if test "$aix_use_runtimelinking" = yes; then
13931 shared_flag
='${wl}-G'
13933 shared_flag
='${wl}-bM:SRE'
13938 # It seems that -bexpall does not export symbols beginning with
13939 # underscore (_), so it is better to generate a list of symbols to export.
13940 always_export_symbols_F77
=yes
13941 if test "$aix_use_runtimelinking" = yes; then
13942 # Warning - without using the other runtime loading flags (-brtl),
13943 # -berok will link without error, but may produce a broken library.
13944 allow_undefined_flag_F77
='-berok'
13945 # Determine the default libpath from the value encoded in an empty executable.
13946 cat >conftest.
$ac_ext <<_ACEOF
13951 rm -f conftest.
$ac_objext conftest
$ac_exeext
13952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13953 (eval $ac_link) 2>conftest.er1
13955 grep -v '^ *+' conftest.er1
>conftest.err
13957 cat conftest.err
>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } &&
13960 { ac_try
='test -z "$ac_f77_werror_flag"
13961 || test ! -s conftest.err'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; } &&
13967 { ac_try
='test -s conftest$ac_exeext'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; }; then
13974 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13976 # Check for a 64-bit object if we didn't find anything.
13977 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; }
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.
$ac_ext >&5
13984 rm -f conftest.err conftest.
$ac_objext \
13985 conftest
$ac_exeext conftest.
$ac_ext
13986 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13988 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
13989 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"
13991 if test "$host_cpu" = ia64; then
13992 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr
/lib
:/lib
'
13993 allow_undefined_flag_F77="-z nodefs"
13994 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"
13996 # Determine the default libpath from the value encoded in an empty executable.
13997 cat >conftest.$ac_ext <<_ACEOF
14002 rm -f conftest.$ac_objext conftest$ac_exeext
14003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14004 (eval $ac_link) 2>conftest.er1
14006 grep -v '^ *+' conftest.er1 >conftest.err
14008 cat conftest.err >&5
14009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14010 (exit $ac_status); } &&
14011 { ac_try='test -z "$ac_f77_werror_flag"
14012 || test ! -s conftest.err'
14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14017 (exit $ac_status); }; } &&
14018 { ac_try='test -s conftest$ac_exeext'
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14023 (exit $ac_status); }; }; then
14025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14027 # Check for a 64-bit object if we didn't find anything.
14028 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; }
14031 echo "$as_me: failed program was
:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14035 rm -f conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14037 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
14039 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14040 # Warning - without using the other run time loading flags,
14041 # -berok will link without error, but may produce a broken library.
14042 no_undefined_flag_F77=' ${wl}-bernotok'
14043 allow_undefined_flag_F77=' ${wl}-berok'
14044 # -bexpall does not export symbols beginning with underscore (_)
14045 always_export_symbols_F77=yes
14046 # Exported symbols can be pulled into shared objects from archives
14047 whole_archive_flag_spec_F77=' '
14048 archive_cmds_need_lc_F77=yes
14049 # This is similar to how AIX traditionally builds it's shared libraries.
14050 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'
14056 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)'
14057 hardcode_libdir_flag_spec_F77
='-L$libdir'
14058 hardcode_minus_L_F77
=yes
14059 # see comment about different semantics on the GNU ld section
14064 export_dynamic_flag_spec_F77
=-rdynamic
14067 cygwin
* | mingw
* | pw32
*)
14068 # When not using gcc, we currently assume that we are using
14069 # Microsoft Visual C++.
14070 # hardcode_libdir_flag_spec is actually meaningless, as there is
14071 # no search path for DLLs.
14072 hardcode_libdir_flag_spec_F77
=' '
14073 allow_undefined_flag_F77
=unsupported
14074 # Tell ltmain to make .lib files, not .a files.
14076 # Tell ltmain to make .dll files, not .so files.
14078 # FIXME: Setting linknames here is a bad hack.
14079 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14080 # The linker will automatically build a .lib file if we build a DLL.
14081 old_archive_From_new_cmds_F77
='true'
14082 # FIXME: Should let the user specify the lib program.
14083 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14084 fix_srcfile_path
='`cygpath -w "$srcfile"`'
14085 enable_shared_with_static_runtimes_F77
=yes
14088 darwin
* | rhapsody
*)
14089 if $CC -v 2>&1 |
grep 'Apple' >/dev
/null
; then
14090 archive_cmds_need_lc_F77
=no
14092 rhapsody
* | darwin1.
[012])
14093 allow_undefined_flag_F77
='-undefined suppress'
14096 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77
='-flat_namespace -undefined suppress'
14099 # FIXME: Relying on posixy $() will cause problems for
14100 # cross-compilation, but unfortunately the echo tests do not
14101 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
14102 # `"' quotes if we put them in here... so don't!
14103 lt_int_apple_cc_single_mod
=no
14104 output_verbose_link_cmd
='echo'
14105 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
14106 lt_int_apple_cc_single_mod
=yes
14108 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
14109 archive_cmds_F77
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14111 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'
14113 module_cmds_F77
='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14115 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
14116 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}'
14118 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}'
14120 module_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14121 hardcode_direct_F77
=no
14122 hardcode_automatic_F77
=yes
14123 hardcode_shlibpath_var_F77
=unsupported
14124 whole_archive_flag_spec_F77
='-all_load $convenience'
14125 link_all_deplibs_F77
=yes
14130 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14131 hardcode_libdir_flag_spec_F77
='-L$libdir'
14132 hardcode_shlibpath_var_F77
=no
14139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14140 # support. Future versions do this automatically, but an explicit c++rt0.o
14141 # does not break anything, and helps significantly (at the cost of a little
14144 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14145 hardcode_libdir_flag_spec_F77
='-R$libdir'
14146 hardcode_direct_F77
=yes
14147 hardcode_shlibpath_var_F77
=no
14150 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14152 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14153 hardcode_direct_F77
=yes
14154 hardcode_minus_L_F77
=yes
14155 hardcode_shlibpath_var_F77
=no
14158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14160 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14161 hardcode_libdir_flag_spec_F77
='-R$libdir'
14162 hardcode_direct_F77
=yes
14163 hardcode_shlibpath_var_F77
=no
14167 if test "$GCC" = yes; then
14168 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'
14170 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'
14172 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14173 hardcode_libdir_separator_F77
=:
14174 hardcode_direct_F77
=yes
14176 # hardcode_minus_L: Not really in the search PATH,
14177 # but as the default location of the library.
14178 hardcode_minus_L_F77
=yes
14179 export_dynamic_flag_spec_F77
='${wl}-E'
14183 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14184 case "$host_cpu" in
14186 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14189 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14193 case "$host_cpu" in
14195 archive_cmds_F77
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14198 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14202 if test "$with_gnu_ld" = no
; then
14203 case "$host_cpu" in
14205 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14206 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14207 hardcode_libdir_separator_F77
=:
14208 hardcode_direct_F77
=no
14209 hardcode_shlibpath_var_F77
=no
14212 hardcode_libdir_flag_spec_F77
='-L$libdir'
14213 hardcode_direct_F77
=no
14214 hardcode_shlibpath_var_F77
=no
14216 # hardcode_minus_L: Not really in the search PATH,
14217 # but as the default location of the library.
14218 hardcode_minus_L_F77
=yes
14221 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14222 hardcode_libdir_separator_F77
=:
14223 hardcode_direct_F77
=yes
14224 export_dynamic_flag_spec_F77
='${wl}-E'
14226 # hardcode_minus_L: Not really in the search PATH,
14227 # but as the default location of the library.
14228 hardcode_minus_L_F77
=yes
14234 irix5
* | irix6
* | nonstopux
*)
14235 if test "$GCC" = yes; then
14236 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'
14238 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'
14239 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14241 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14242 hardcode_libdir_separator_F77
=:
14243 link_all_deplibs_F77
=yes
14247 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14248 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14250 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14252 hardcode_libdir_flag_spec_F77
='-R$libdir'
14253 hardcode_direct_F77
=yes
14254 hardcode_shlibpath_var_F77
=no
14258 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14259 hardcode_direct_F77
=yes
14260 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14261 hardcode_libdir_separator_F77
=:
14262 hardcode_shlibpath_var_F77
=no
14266 hardcode_direct_F77
=yes
14267 hardcode_shlibpath_var_F77
=no
14268 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14269 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14270 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14271 export_dynamic_flag_spec_F77
='${wl}-E'
14274 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14275 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14276 hardcode_libdir_flag_spec_F77
='-R$libdir'
14279 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14280 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14287 hardcode_libdir_flag_spec_F77
='-L$libdir'
14288 hardcode_minus_L_F77
=yes
14289 allow_undefined_flag_F77
=unsupported
14290 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'
14291 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14295 if test "$GCC" = yes; then
14296 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14297 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'
14299 allow_undefined_flag_F77
=' -expect_unresolved \*'
14300 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'
14302 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14303 hardcode_libdir_separator_F77
=:
14306 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14307 if test "$GCC" = yes; then
14308 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14309 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'
14310 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14312 allow_undefined_flag_F77
=' -expect_unresolved \*'
14313 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'
14314 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~
14315 $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'
14317 # Both c and cxx compiler support -rpath directly
14318 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14320 hardcode_libdir_separator_F77
=:
14324 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14325 hardcode_shlibpath_var_F77
=no
14326 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14327 runpath_var
=LD_RUN_PATH
14328 hardcode_runpath_var
=yes
14332 no_undefined_flag_F77
=' -z text'
14333 if test "$GCC" = yes; then
14334 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14335 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14336 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14338 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14339 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14340 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14342 hardcode_libdir_flag_spec_F77
='-R$libdir'
14343 hardcode_shlibpath_var_F77
=no
14345 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14346 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14347 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
14349 link_all_deplibs_F77
=yes
14353 if test "x$host_vendor" = xsequent
; then
14354 # Use $CC to link under sequent, because it throws in some extra .o
14355 # files that make .init and .fini sections work.
14356 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14358 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14360 hardcode_libdir_flag_spec_F77
='-L$libdir'
14361 hardcode_direct_F77
=yes
14362 hardcode_minus_L_F77
=yes
14363 hardcode_shlibpath_var_F77
=no
14367 case $host_vendor in
14369 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14370 hardcode_direct_F77
=yes # is this really true???
14373 ## LD is ld it makes a PLAMLIB
14374 ## CC just makes a GrossModule.
14375 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14376 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14377 hardcode_direct_F77
=no
14380 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14381 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14384 runpath_var
='LD_RUN_PATH'
14385 hardcode_shlibpath_var_F77
=no
14389 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14390 hardcode_shlibpath_var_F77
=no
14391 export_dynamic_flag_spec_F77
='-Bexport'
14395 if test -d /usr
/nec
; then
14396 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14397 hardcode_shlibpath_var_F77
=no
14398 runpath_var
=LD_RUN_PATH
14399 hardcode_runpath_var
=yes
14405 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14406 hardcode_direct_F77
=yes
14407 hardcode_minus_L_F77
=no
14408 hardcode_shlibpath_var_F77
=no
14409 hardcode_runpath_var
=yes
14410 runpath_var
=LD_RUN_PATH
14413 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
14414 no_undefined_flag_F77
='${wl}-z ${wl}text'
14415 if test "$GCC" = yes; then
14416 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14418 archive_cmds_F77
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14420 runpath_var
='LD_RUN_PATH'
14421 hardcode_shlibpath_var_F77
=no
14425 no_undefined_flag_F77
=' -z text'
14426 # $CC -shared without GNU ld will not create a library from C++
14427 # object files and a static libstdc++, better avoid it by now
14428 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14429 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14430 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14431 hardcode_libdir_flag_spec_F77
=
14432 hardcode_shlibpath_var_F77
=no
14433 runpath_var
='LD_RUN_PATH'
14437 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14438 hardcode_libdir_flag_spec_F77
='-L$libdir'
14439 hardcode_shlibpath_var_F77
=no
14448 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14449 echo "${ECHO_T}$ld_shlibs_F77" >&6
14450 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14452 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14453 if test "$GCC" = yes; then
14454 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14458 # Do we need to explicitly link libc?
14460 case "x$archive_cmds_need_lc_F77" in
14462 # Assume -lc should be added
14463 archive_cmds_need_lc_F77
=yes
14465 if test "$enable_shared" = yes && test "$GCC" = yes; then
14466 case $archive_cmds_F77 in
14468 # FIXME: we may have to deal with multi-command sequences.
14471 # Test whether the compiler implicitly links with -lc since on some
14472 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14473 # to ld, don't add -lc before -lgcc.
14474 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14475 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14477 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14480 (eval $ac_compile) 2>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } 2>conftest.err
; then
14486 libobjs
=conftest.
$ac_objext
14488 wl
=$lt_prog_compiler_wl_F77
14494 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
14495 allow_undefined_flag_F77
=
14496 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14497 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }
14502 archive_cmds_need_lc_F77
=no
14504 archive_cmds_need_lc_F77
=yes
14506 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
14508 cat conftest.err
1>&5
14511 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14512 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14519 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14520 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14521 hardcode_action_F77
=
14522 if test -n "$hardcode_libdir_flag_spec_F77" || \
14523 test -n "$runpath_var F77" || \
14524 test "X$hardcode_automatic_F77"="Xyes" ; then
14526 # We can hardcode non-existant directories.
14527 if test "$hardcode_direct_F77" != no
&&
14528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14529 # have to relink, otherwise we might link with an installed library
14530 # when we should be linking with a yet-to-be-installed one
14531 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14532 test "$hardcode_minus_L_F77" != no
; then
14533 # Linking always hardcodes the temporary library directory.
14534 hardcode_action_F77
=relink
14536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14537 hardcode_action_F77
=immediate
14540 # We cannot hardcode anything, or else we can only hardcode existing
14542 hardcode_action_F77
=unsupported
14544 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14545 echo "${ECHO_T}$hardcode_action_F77" >&6
14547 if test "$hardcode_action_F77" = relink
; then
14548 # Fast installation is not supported
14549 enable_fast_install
=no
14550 elif test "$shlibpath_overrides_runpath" = yes ||
14551 test "$enable_shared" = no
; then
14552 # Fast installation is not necessary
14553 enable_fast_install
=needless
14558 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14559 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14560 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
14561 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
14562 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
14563 echo "$as_me:$LINENO: result: yes" >&5
14564 echo "${ECHO_T}yes" >&6
14566 # FIXME - insert some real tests, host_os isn't really good enough
14569 if test -n "$STRIP" ; then
14570 striplib
="$STRIP -x"
14571 echo "$as_me:$LINENO: result: yes" >&5
14572 echo "${ECHO_T}yes" >&6
14574 echo "$as_me:$LINENO: result: no" >&5
14575 echo "${ECHO_T}no" >&6
14579 echo "$as_me:$LINENO: result: no" >&5
14580 echo "${ECHO_T}no" >&6
14585 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14586 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14587 library_names_spec
=
14588 libname_spec
='lib$name'
14592 postuninstall_cmds
=
14596 shlibpath_overrides_runpath
=unknown
14598 dynamic_linker
="$host_os ld.so"
14599 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14600 if test "$GCC" = yes; then
14601 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14602 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
14603 # if the path contains ";" then we assume it to be the separator
14604 # otherwise default to the standard path separator (i.e. ":") - it is
14605 # assumed that no part of a normal pathname contains ";" but that should
14606 # okay in the real world where ";" in dirpaths is itself problematic.
14607 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14609 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14612 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
14614 need_lib_prefix
=unknown
14615 hardcode_into_libs
=no
14617 # when you set need_version to no, make sure it does not cause -set_version
14618 # flags to be left without arguments
14619 need_version
=unknown
14624 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14625 shlibpath_var
=LIBPATH
14627 # AIX 3 has no versioning support, so we append a major version to the name.
14628 soname_spec
='${libname}${release}${shared_ext}$major'
14635 hardcode_into_libs
=yes
14636 if test "$host_cpu" = ia64
; then
14637 # AIX 5 supports IA64
14638 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14639 shlibpath_var
=LD_LIBRARY_PATH
14641 # With GCC up to 2.95.x, collect2 would create an import file
14642 # for dependence libraries. The import file would start with
14643 # the line `#! .'. This would cause the generated library to
14644 # depend on `.', always an invalid library. This was fixed in
14645 # development snapshots of GCC prior to 3.0.
14647 aix4 | aix4.
[01] | aix4.
[01].
*)
14648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14650 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
14653 can_build_shared
=no
14657 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14658 # soname into executable. Probably we can add versioning support to
14659 # collect2, so additional links can be useful in future.
14660 if test "$aix_use_runtimelinking" = yes; then
14661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14662 # instead of lib<name>.a to let people know that these are not
14663 # typical AIX shared libraries.
14664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666 # We preserve .a as extension for shared libraries through AIX4.2
14667 # and later when we are not doing run time linking.
14668 library_names_spec
='${libname}${release}.a $libname.a'
14669 soname_spec
='${libname}${release}${shared_ext}$major'
14671 shlibpath_var
=LIBPATH
14676 library_names_spec
='$libname.ixlibrary $libname.a'
14677 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14678 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'
14682 library_names_spec
='${libname}${shared_ext}'
14683 dynamic_linker
="$host_os ld.so"
14684 shlibpath_var
=LIBRARY_PATH
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 $libdir'
14693 shlibpath_var
=LD_LIBRARY_PATH
14694 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14695 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14696 # the default ld.so.conf also contains /usr/contrib/lib and
14697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14698 # libtool to hard-code these into programs
14701 cygwin
* | mingw
* | pw32
*)
14702 version_type
=windows
14707 case $GCC,$host_os in
14708 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
14709 library_names_spec
='$libname.dll.a'
14710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14711 postinstall_cmds
='base_file=`basename \${file}`~
14712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14713 dldir=$destdir/`dirname \$dlpath`~
14714 test -d \$dldir || mkdir -p \$dldir~
14715 $install_prog $dir/$dlname \$dldir/$dlname'
14716 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14717 dlpath=$dir/\$dldll~
14719 shlibpath_overrides_runpath
=yes
14723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14724 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14725 sys_lib_search_path_spec
="/lib /lib/w32api /usr/lib /usr/local/lib"
14728 # MinGW DLLs use traditional 'lib' prefix
14729 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14730 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14731 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
14732 # It is most probably a Windows format PATH printed by
14733 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14734 # path with ; separators, and with drive letters. We can handle the
14735 # drive letters (cygwin fileutils understands them), so leave them,
14736 # especially as we might pass files found there to a mingw objdump,
14737 # which wouldn't understand a cygwinified path. Ahh.
14738 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14740 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14744 # pw32 DLLs use 'pw' prefix rather than 'lib'
14745 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14751 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14754 dynamic_linker
='Win32 ld.exe'
14755 # FIXME: first we should search . and the directory the executable is in
14759 darwin
* | rhapsody
*)
14760 dynamic_linker
="$host_os dyld"
14761 version_type
=darwin
14764 # FIXME: Relying on posixy $() will cause problems for
14765 # cross-compilation, but unfortunately the echo tests do not
14766 # yet detect zsh echo's removal of \ escapes.
14767 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14768 soname_spec
='${libname}${release}${major}$shared_ext'
14769 shlibpath_overrides_runpath
=yes
14770 shlibpath_var
=DYLD_LIBRARY_PATH
14771 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
14772 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14773 if $CC -v 2>&1 |
grep 'Apple' >/dev
/null
; then
14774 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"`
14776 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14783 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14784 soname_spec
='${libname}${release}${shared_ext}$major'
14785 shlibpath_var
=LD_LIBRARY_PATH
14793 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14794 version_type
=freebsd-
$objformat
14795 case $version_type in
14797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14802 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14806 shlibpath_var
=LD_LIBRARY_PATH
14809 shlibpath_overrides_runpath
=yes
14811 freebsd3.01
* | freebsdelf3.01
*)
14812 shlibpath_overrides_runpath
=yes
14813 hardcode_into_libs
=yes
14816 shlibpath_overrides_runpath
=no
14817 hardcode_into_libs
=yes
14826 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14827 soname_spec
='${libname}${release}${shared_ext}$major'
14828 shlibpath_var
=LD_LIBRARY_PATH
14829 hardcode_into_libs
=yes
14832 hpux9
* | hpux10
* | hpux11
*)
14833 # Give a soname corresponding to the major version so that dld.sl refuses to
14834 # link against other versions.
14838 case "$host_cpu" in
14841 hardcode_into_libs
=yes
14842 dynamic_linker
="$host_os dld.so"
14843 shlibpath_var
=LD_LIBRARY_PATH
14844 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846 soname_spec
='${libname}${release}${shared_ext}$major'
14847 if test "X$HPUX_IA64_MODE" = X32
; then
14848 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14850 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14852 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14856 hardcode_into_libs
=yes
14857 dynamic_linker
="$host_os dld.sl"
14858 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14859 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14861 soname_spec
='${libname}${release}${shared_ext}$major'
14862 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14863 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14867 dynamic_linker
="$host_os dld.sl"
14868 shlibpath_var
=SHLIB_PATH
14869 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_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'
14874 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14875 postinstall_cmds
='chmod 555 $lib'
14878 irix5
* | irix6
* | nonstopux
*)
14880 nonstopux
*) version_type
=nonstopux
;;
14882 if test "$lt_cv_prog_gnu_ld" = yes; then
14890 soname_spec
='${libname}${release}${shared_ext}$major'
14891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14893 irix5
* | nonstopux
*)
14894 libsuff
= shlibsuff
=
14897 case $LD in # libtool.m4 will add one of these switches to LD
14898 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14899 libsuff
= shlibsuff
= libmagic
=32-bit;;
14900 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14901 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14902 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14903 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14904 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14908 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14909 shlibpath_overrides_runpath
=no
14910 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14911 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14912 hardcode_into_libs
=yes
14915 # No shared lib support for Linux oldld, aout, or coff.
14916 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14920 # This must be Linux ELF.
14925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 soname_spec
='${libname}${release}${shared_ext}$major'
14927 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14928 shlibpath_var
=LD_LIBRARY_PATH
14929 shlibpath_overrides_runpath
=no
14930 # This implies no fast_install, which is unacceptable.
14931 # Some rework will be needed to allow for fast_install
14932 # before this can be enabled.
14933 hardcode_into_libs
=yes
14935 # We used to test for /lib/ld.so.1 and disable shared libraries on
14936 # powerpc, because MkLinux only supported shared libraries with the
14937 # GNU dynamic linker. Since this was broken with cross compilers,
14938 # most powerpc-linux boxes support dynamic linking these days and
14939 # people can always --disable-shared, the test was removed, and we
14940 # assume the GNU/Linux dynamic linker is in use.
14941 dynamic_linker
='GNU/Linux ld.so'
14948 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14950 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14951 dynamic_linker
='NetBSD (a.out) ld.so'
14953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14954 soname_spec
='${libname}${release}${shared_ext}$major'
14955 dynamic_linker
='NetBSD ld.elf_so'
14957 shlibpath_var
=LD_LIBRARY_PATH
14958 shlibpath_overrides_runpath
=yes
14959 hardcode_into_libs
=yes
14964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14965 shlibpath_var
=LD_LIBRARY_PATH
14966 shlibpath_overrides_runpath
=yes
14973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974 soname_spec
='${libname}${release}${shared_ext}$major'
14975 shlibpath_var
=LD_LIBRARY_PATH
14976 shlibpath_overrides_runpath
=yes
14983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14984 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14985 shlibpath_var
=LD_LIBRARY_PATH
14986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14988 openbsd2.
[89] | openbsd2.
[89].
*)
14989 shlibpath_overrides_runpath
=no
14992 shlibpath_overrides_runpath
=yes
14996 shlibpath_overrides_runpath
=yes
15001 libname_spec
='$name'
15004 library_names_spec
='$libname${shared_ext} $libname.a'
15005 dynamic_linker
='OS/2 ld.exe'
15006 shlibpath_var
=LIBPATH
15009 osf3
* | osf4
* | osf5
*)
15013 soname_spec
='${libname}${release}${shared_ext}$major'
15014 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 shlibpath_var
=LD_LIBRARY_PATH
15016 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15017 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15022 soname_spec
='${libname}${release}${shared_ext}$major'
15023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15024 shlibpath_var
=LD_LIBRARY_PATH
15031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 soname_spec
='${libname}${release}${shared_ext}$major'
15033 shlibpath_var
=LD_LIBRARY_PATH
15034 shlibpath_overrides_runpath
=yes
15035 hardcode_into_libs
=yes
15036 # ldd complains unless libraries are executable
15037 postinstall_cmds
='chmod +x $lib'
15042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15043 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15044 shlibpath_var
=LD_LIBRARY_PATH
15045 shlibpath_overrides_runpath
=yes
15046 if test "$with_gnu_ld" = yes; then
15052 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15055 soname_spec
='${libname}${release}${shared_ext}$major'
15056 shlibpath_var
=LD_LIBRARY_PATH
15057 case $host_vendor in
15059 shlibpath_overrides_runpath
=no
15061 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15062 runpath_var
=LD_RUN_PATH
15070 shlibpath_overrides_runpath
=no
15071 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15077 if test -d /usr
/nec
;then
15079 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15080 soname_spec
='$libname${shared_ext}.$major'
15081 shlibpath_var
=LD_LIBRARY_PATH
15087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088 soname_spec
='${libname}${release}${shared_ext}$major'
15089 shlibpath_var
=LD_LIBRARY_PATH
15096 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15097 echo "${ECHO_T}$dynamic_linker" >&6
15098 test "$dynamic_linker" = no
&& can_build_shared
=no
15101 # The else clause should only fire when bootstrapping the
15102 # libtool distribution, otherwise you forgot to ship ltmain.sh
15103 # with your package, and you will get complaints that there are
15104 # no rules to generate ltmain.sh.
15105 if test -f "$ltmain"; then
15106 # See if we are running on zsh, and set the options which allow our commands through
15107 # without removal of \ escapes.
15108 if test -n "${ZSH_VERSION+set}" ; then
15109 setopt NO_GLOB_SUBST
15111 # Now quote all the things that may contain metacharacters while being
15112 # careful not to overquote the AC_SUBSTed values. We take copies of the
15113 # variables and quote the copies for generation of the libtool script.
15114 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15115 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15116 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15117 deplibs_check_method reload_flag reload_cmds need_locks \
15118 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15119 lt_cv_sys_global_symbol_to_c_name_address \
15120 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15121 old_postinstall_cmds old_postuninstall_cmds \
15125 lt_prog_compiler_wl_F77 \
15126 lt_prog_compiler_pic_F77 \
15127 lt_prog_compiler_static_F77 \
15128 lt_prog_compiler_no_builtin_flag_F77 \
15129 export_dynamic_flag_spec_F77 \
15130 thread_safe_flag_spec_F77 \
15131 whole_archive_flag_spec_F77 \
15132 enable_shared_with_static_runtimes_F77 \
15133 old_archive_cmds_F77 \
15134 old_archive_from_new_cmds_F77 \
15135 predep_objects_F77 \
15136 postdep_objects_F77 \
15139 compiler_lib_search_path_F77 \
15141 archive_expsym_cmds_F77 \
15142 postinstall_cmds_F77 \
15143 postuninstall_cmds_F77 \
15144 old_archive_from_expsyms_cmds_F77 \
15145 allow_undefined_flag_F77 \
15146 no_undefined_flag_F77 \
15147 export_symbols_cmds_F77 \
15148 hardcode_libdir_flag_spec_F77 \
15149 hardcode_libdir_flag_spec_ld_F77 \
15150 hardcode_libdir_separator_F77 \
15151 hardcode_automatic_F77 \
15153 module_expsym_cmds_F77 \
15154 lt_cv_prog_compiler_c_o_F77 \
15155 exclude_expsyms_F77 \
15156 include_expsyms_F77
; do
15159 old_archive_cmds_F77 | \
15160 old_archive_from_new_cmds_F77 | \
15161 archive_cmds_F77 | \
15162 archive_expsym_cmds_F77 | \
15163 module_cmds_F77 | \
15164 module_expsym_cmds_F77 | \
15165 old_archive_from_expsyms_cmds_F77 | \
15166 export_symbols_cmds_F77 | \
15167 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15168 postinstall_cmds | postuninstall_cmds | \
15169 old_postinstall_cmds | old_postuninstall_cmds | \
15170 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15171 # Double-quote double-evaled strings.
15172 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15175 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15181 *'\$0 --fallback-echo"')
15182 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15188 cat <<__EOF__ >> "$cfgfile"
15189 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15191 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15193 # Shell to use when invoking shell scripts.
15196 # Whether or not to build shared libraries.
15197 build_libtool_libs=$enable_shared
15199 # Whether or not to build static libraries.
15200 build_old_libs=$enable_static
15202 # Whether or not to add -lc for building shared libraries.
15203 build_libtool_need_lc=$archive_cmds_need_lc_F77
15205 # Whether or not to disallow shared libs when runtime libs are static
15206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15208 # Whether or not to optimize for fast installation.
15209 fast_install=$enable_fast_install
15212 host_alias=$host_alias
15215 # An echo program that does not interpret backslashes.
15220 AR_FLAGS=$lt_AR_FLAGS
15225 # A language-specific compiler.
15226 CC=$lt_compiler_F77
15228 # Is the compiler the GNU C compiler?
15234 # The linker used to build libraries.
15237 # Whether we need hard or soft links.
15240 # A BSD-compatible nm program.
15243 # A symbol stripping program
15246 # Used to examine libraries when file_magic_cmd begins "file"
15247 MAGIC_CMD=$MAGIC_CMD
15249 # Used on cygwin: DLL creation program.
15252 # Used on cygwin: object dumper.
15255 # Used on cygwin: assembler.
15258 # The name of the directory that contains temporary libtool files.
15261 # How to create reloadable object files.
15262 reload_flag=$lt_reload_flag
15263 reload_cmds=$lt_reload_cmds
15265 # How to pass a linker flag through the compiler.
15266 wl=$lt_lt_prog_compiler_wl_F77
15268 # Object file suffix (normally "o").
15269 objext="$ac_objext"
15271 # Old archive suffix (normally "a").
15274 # Shared library suffix (normally ".so").
15277 # Executable file suffix (normally "").
15280 # Additional compiler flags for building library objects.
15281 pic_flag=$lt_lt_prog_compiler_pic_F77
15284 # What is the maximum length of a command?
15285 max_cmd_len=$lt_cv_sys_max_cmd_len
15287 # Does compiler simultaneously support -c and -o options?
15288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15290 # Must we lock files when doing compilation ?
15291 need_locks=$lt_need_locks
15293 # Do we need the lib prefix for modules?
15294 need_lib_prefix=$need_lib_prefix
15296 # Do we need a version for libraries?
15297 need_version=$need_version
15299 # Whether dlopen is supported.
15300 dlopen_support=$enable_dlopen
15302 # Whether dlopen of programs is supported.
15303 dlopen_self=$enable_dlopen_self
15305 # Whether dlopen of statically linked programs is supported.
15306 dlopen_self_static=$enable_dlopen_self_static
15308 # Compiler flag to prevent dynamic linking.
15309 link_static_flag=$lt_lt_prog_compiler_static_F77
15311 # Compiler flag to turn off builtin functions.
15312 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15314 # Compiler flag to allow reflexive dlopens.
15315 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15317 # Compiler flag to generate shared objects directly from archives.
15318 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15320 # Compiler flag to generate thread-safe objects.
15321 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15323 # Library versioning type.
15324 version_type=$version_type
15326 # Format of library name prefix.
15327 libname_spec=$lt_libname_spec
15329 # List of archive names. First name is the real one, the rest are links.
15330 # The last name is the one that the linker finds with -lNAME.
15331 library_names_spec=$lt_library_names_spec
15333 # The coded name of the library, if different from the real name.
15334 soname_spec=$lt_soname_spec
15336 # Commands used to build and install an old-style archive.
15338 old_archive_cmds=$lt_old_archive_cmds_F77
15339 old_postinstall_cmds=$lt_old_postinstall_cmds
15340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15342 # Create an old-style archive from a shared archive.
15343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15345 # Create a temporary old-style archive to link instead of a shared archive.
15346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15348 # Commands used to build and install a shared archive.
15349 archive_cmds=$lt_archive_cmds_F77
15350 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15351 postinstall_cmds=$lt_postinstall_cmds
15352 postuninstall_cmds=$lt_postuninstall_cmds
15354 # Commands used to build a loadable module (assumed same as above if empty)
15355 module_cmds=$lt_module_cmds_F77
15356 module_expsym_cmds=$lt_module_expsym_cmds_F77
15358 # Commands to strip libraries.
15359 old_striplib=$lt_old_striplib
15360 striplib=$lt_striplib
15362 # Dependencies to place before the objects being linked to create a
15364 predep_objects=$lt_predep_objects_F77
15366 # Dependencies to place after the objects being linked to create a
15368 postdep_objects=$lt_postdep_objects_F77
15370 # Dependencies to place before the objects being linked to create a
15372 predeps=$lt_predeps_F77
15374 # Dependencies to place after the objects being linked to create a
15376 postdeps=$lt_postdeps_F77
15378 # The library search path used internally by the compiler when linking
15379 # a shared library.
15380 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15382 # Method to check whether dependent libraries are shared objects.
15383 deplibs_check_method=$lt_deplibs_check_method
15385 # Command to use when deplibs_check_method == file_magic.
15386 file_magic_cmd=$lt_file_magic_cmd
15388 # Flag that allows shared libraries with undefined symbols to be built.
15389 allow_undefined_flag=$lt_allow_undefined_flag_F77
15391 # Flag that forces no undefined symbols.
15392 no_undefined_flag=$lt_no_undefined_flag_F77
15394 # Commands used to finish a libtool library installation in a directory.
15395 finish_cmds=$lt_finish_cmds
15397 # Same as above, but a single script fragment to be evaled but not shown.
15398 finish_eval=$lt_finish_eval
15400 # Take the output of nm and produce a listing of raw symbols and C names.
15401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15403 # Transform the output of nm in a proper C declaration
15404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15406 # Transform the output of nm in a C name address pair
15407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15409 # This is the shared library runtime path variable.
15410 runpath_var=$runpath_var
15412 # This is the shared library path variable.
15413 shlibpath_var=$shlibpath_var
15415 # Is shlibpath searched before the hard-coded library search path?
15416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15418 # How to hardcode a shared library path into an executable.
15419 hardcode_action=$hardcode_action_F77
15421 # Whether we should hardcode library paths into libraries.
15422 hardcode_into_libs=$hardcode_into_libs
15424 # Flag to hardcode \$libdir into a binary during linking.
15425 # This must work even if \$libdir does not exist.
15426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15428 # If ld is used when linking, flag to hardcode \$libdir into
15429 # a binary during linking. This must work even if \$libdir does
15431 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15433 # Whether we need a single -rpath flag with a separated argument.
15434 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15436 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15437 # resulting binary.
15438 hardcode_direct=$hardcode_direct_F77
15440 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15441 # resulting binary.
15442 hardcode_minus_L=$hardcode_minus_L_F77
15444 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15445 # the resulting binary.
15446 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15448 # Set to yes if building a shared library automatically hardcodes DIR into the library
15449 # and all subsequent libraries and executables linked against it.
15450 hardcode_automatic=$hardcode_automatic_F77
15452 # Variables whose values should be saved in libtool wrapper scripts and
15453 # restored at relink time.
15454 variables_saved_for_relink="$variables_saved_for_relink"
15456 # Whether libtool must link a program against all its dependency libraries.
15457 link_all_deplibs=$link_all_deplibs_F77
15459 # Compile-time system search path for libraries
15460 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15462 # Run-time system search path for libraries
15463 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15465 # Fix the shell variable \$srcfile for the compiler.
15466 fix_srcfile_path="$fix_srcfile_path_F77"
15468 # Set to yes if exported symbols are required.
15469 always_export_symbols=$always_export_symbols_F77
15471 # The commands to list exported symbols.
15472 export_symbols_cmds=$lt_export_symbols_cmds_F77
15474 # The commands to extract the exported symbol list from a shared archive.
15475 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15477 # Symbols that should not be listed in the preloaded symbols.
15478 exclude_expsyms=$lt_exclude_expsyms_F77
15480 # Symbols that must always be exported.
15481 include_expsyms=$lt_include_expsyms_F77
15483 # ### END LIBTOOL TAG CONFIG: $tagname
15489 # If there is no Makefile yet, we rely on a make rule to execute
15490 # `config.status --recheck' to rerun these tests and create the
15491 # libtool script then.
15492 test -f Makefile
&& make "$ltmain"
15497 ac_cpp
='$CPP $CPPFLAGS'
15498 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15499 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15500 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15510 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15514 # Source file extension for Java test sources.
15517 # Object file extension for compiled Java test sources.
15521 # Code to be used in simple compile tests
15522 lt_simple_compile_test_code
="class foo {}\n"
15524 # Code to be used in simple link tests
15525 lt_simple_link_test_code
='public class conftest { public static void main(String argv) {}; }\n'
15527 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15529 # If no C compiler was specified, use CC.
15532 # Allow CC to be a program name with arguments.
15536 # Allow CC to be a program name with arguments.
15542 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15543 archive_cmds_need_lc_GCJ
=no
15546 lt_prog_compiler_no_builtin_flag_GCJ
=
15548 if test "$GCC" = yes; then
15549 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
15551 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15552 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15553 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15556 lt_cv_prog_compiler_rtti_exceptions
=no
15557 ac_outfile
=conftest.
$ac_objext
15558 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15559 lt_compiler_flag
="-fno-rtti -fno-exceptions"
15560 # Insert the option either (1) after the last *FLAGS variable, or
15561 # (2) before a word containing "conftest.", or (3) at the end.
15562 # Note that $ac_compile itself does not contain backslashes and begins
15563 # with a dollar sign (not a hyphen), so the echo should work correctly.
15564 # The option is referenced via a variable to avoid confusing sed.
15565 lt_compile
=`echo "$ac_compile" | $SED \
15566 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15568 -e 's:$: $lt_compiler_flag:'`
15569 (eval echo "\"\$as_me:15569: $lt_compile\"" >&5)
15570 (eval "$lt_compile" 2>conftest.err
)
15572 cat conftest.err
>&5
15573 echo "$as_me:15573: \$? = $ac_status" >&5
15574 if (exit $ac_status) && test -s "$ac_outfile"; then
15575 # The compiler can only warn and ignore the option if not recognized
15576 # So say no if there are warnings
15577 if test ! -s conftest.err
; then
15578 lt_cv_prog_compiler_rtti_exceptions
=yes
15584 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15585 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15587 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
15588 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15595 lt_prog_compiler_wl_GCJ
=
15596 lt_prog_compiler_pic_GCJ
=
15597 lt_prog_compiler_static_GCJ
=
15599 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15600 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15602 if test "$GCC" = yes; then
15603 lt_prog_compiler_wl_GCJ
='-Wl,'
15604 lt_prog_compiler_static_GCJ
='-static'
15608 # All AIX code is PIC.
15609 if test "$host_cpu" = ia64
; then
15610 # AIX 5 now supports IA64 processor
15611 lt_prog_compiler_static_GCJ
='-Bstatic'
15616 # FIXME: we need at least 68020 code to build shared libraries, but
15617 # adding the `-m68020' flag to GCC prevents building anything better,
15619 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
15622 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15623 # PIC is the default for these OSes.
15626 mingw
* | pw32
* | os2
*)
15627 # This hack is so that the source file can tell whether it is being
15628 # built for inclusion in a dll (and should export symbols for example).
15629 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15632 darwin
* | rhapsody
*)
15633 # PIC is the default on this platform
15634 # Common symbols not allowed in MH_DYLIB files
15635 lt_prog_compiler_pic_GCJ
='-fno-common'
15639 # Just because we use GCC doesn't mean we suddenly get shared libraries
15640 # on systems that don't support them.
15641 lt_prog_compiler_can_build_shared_GCJ
=no
15646 if test -d /usr
/nec
; then
15647 lt_prog_compiler_pic_GCJ
=-Kconform_pic
15652 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15653 # not for PA HP-UX.
15654 case "$host_cpu" in
15659 lt_prog_compiler_pic_GCJ
='-fPIC'
15665 lt_prog_compiler_pic_GCJ
='-fPIC'
15669 # PORTME Check for flag to pass linker flags through the system compiler.
15672 lt_prog_compiler_wl_GCJ
='-Wl,'
15673 if test "$host_cpu" = ia64
; then
15674 # AIX 5 now supports IA64 processor
15675 lt_prog_compiler_static_GCJ
='-Bstatic'
15677 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
15681 mingw
* | pw32
* | os2
*)
15682 # This hack is so that the source file can tell whether it is being
15683 # built for inclusion in a dll (and should export symbols for example).
15684 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15687 hpux9
* | hpux10
* | hpux11
*)
15688 lt_prog_compiler_wl_GCJ
='-Wl,'
15689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15690 # not for PA HP-UX.
15691 case "$host_cpu" in
15696 lt_prog_compiler_pic_GCJ
='+Z'
15699 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15700 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
15703 irix5
* | irix6
* | nonstopux
*)
15704 lt_prog_compiler_wl_GCJ
='-Wl,'
15705 # PIC (with -KPIC) is the default.
15706 lt_prog_compiler_static_GCJ
='-non_shared'
15710 lt_prog_compiler_pic_GCJ
='-KPIC'
15711 lt_prog_compiler_static_GCJ
='-Bstatic'
15717 lt_prog_compiler_wl_GCJ
='-Wl,'
15718 lt_prog_compiler_pic_GCJ
='-KPIC'
15719 lt_prog_compiler_static_GCJ
='-static'
15722 lt_prog_compiler_wl_GCJ
='-Wl,'
15723 # All Alpha code is PIC.
15724 lt_prog_compiler_static_GCJ
='-non_shared'
15729 osf3
* | osf4
* | osf5
*)
15730 lt_prog_compiler_wl_GCJ
='-Wl,'
15731 # All OSF/1 code is PIC.
15732 lt_prog_compiler_static_GCJ
='-non_shared'
15736 lt_prog_compiler_pic_GCJ
='-Kpic'
15737 lt_prog_compiler_static_GCJ
='-dn'
15741 lt_prog_compiler_wl_GCJ
='-Wl,'
15742 lt_prog_compiler_pic_GCJ
='-KPIC'
15743 lt_prog_compiler_static_GCJ
='-Bstatic'
15747 lt_prog_compiler_wl_GCJ
='-Qoption ld '
15748 lt_prog_compiler_pic_GCJ
='-PIC'
15749 lt_prog_compiler_static_GCJ
='-Bstatic'
15752 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15753 lt_prog_compiler_wl_GCJ
='-Wl,'
15754 lt_prog_compiler_pic_GCJ
='-KPIC'
15755 lt_prog_compiler_static_GCJ
='-Bstatic'
15759 if test -d /usr
/nec
;then
15760 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
15761 lt_prog_compiler_static_GCJ
='-Bstatic'
15766 lt_prog_compiler_pic_GCJ
='-pic'
15767 lt_prog_compiler_static_GCJ
='-Bstatic'
15771 lt_prog_compiler_can_build_shared_GCJ
=no
15776 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15777 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15780 # Check to make sure the PIC flag actually works.
15782 if test -n "$lt_prog_compiler_pic_GCJ"; then
15783 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15784 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15785 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15788 lt_prog_compiler_pic_works_GCJ
=no
15789 ac_outfile
=conftest.
$ac_objext
15790 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15791 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
15792 # Insert the option either (1) after the last *FLAGS variable, or
15793 # (2) before a word containing "conftest.", or (3) at the end.
15794 # Note that $ac_compile itself does not contain backslashes and begins
15795 # with a dollar sign (not a hyphen), so the echo should work correctly.
15796 # The option is referenced via a variable to avoid confusing sed.
15797 lt_compile
=`echo "$ac_compile" | $SED \
15798 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15800 -e 's:$: $lt_compiler_flag:'`
15801 (eval echo "\"\$as_me:15801: $lt_compile\"" >&5)
15802 (eval "$lt_compile" 2>conftest.err
)
15804 cat conftest.err
>&5
15805 echo "$as_me:15805: \$? = $ac_status" >&5
15806 if (exit $ac_status) && test -s "$ac_outfile"; then
15807 # The compiler can only warn and ignore the option if not recognized
15808 # So say no if there are warnings
15809 if test ! -s conftest.err
; then
15810 lt_prog_compiler_pic_works_GCJ
=yes
15816 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15817 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15819 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
15820 case $lt_prog_compiler_pic_GCJ in
15822 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
15825 lt_prog_compiler_pic_GCJ
=
15826 lt_prog_compiler_can_build_shared_GCJ
=no
15831 # For platforms which do not support PIC, -DPIC is meaningless:
15833 lt_prog_compiler_pic_GCJ
=
15836 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
15840 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15841 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15842 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 lt_cv_prog_compiler_c_o_GCJ
=no
15846 $rm -r conftest
2>/dev
/null
15850 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15852 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15853 # that will create temporary files in the current directory regardless of
15854 # the output directory. Thus, making CWD read-only will cause this test
15855 # to fail, enabling locking or at least warning the user not to do parallel
15859 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15860 # Insert the option either (1) after the last *FLAGS variable, or
15861 # (2) before a word containing "conftest.", or (3) at the end.
15862 # Note that $ac_compile itself does not contain backslashes and begins
15863 # with a dollar sign (not a hyphen), so the echo should work correctly.
15864 lt_compile
=`echo "$ac_compile" | $SED \
15865 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15867 -e 's:$: $lt_compiler_flag:'`
15868 (eval echo "\"\$as_me:15868: $lt_compile\"" >&5)
15869 (eval "$lt_compile" 2>out
/conftest.err
)
15871 cat out
/conftest.err
>&5
15872 echo "$as_me:15872: \$? = $ac_status" >&5
15873 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15875 # The compiler can only warn and ignore the option if not recognized
15876 # So say no if there are warnings
15877 if test ! -s out
/conftest.err
; then
15878 lt_cv_prog_compiler_c_o_GCJ
=yes
15882 $rm conftest
* out
/*
15889 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15890 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15893 hard_links
="nottested"
15894 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
15895 # do not overwrite the value of need_locks provided by the user
15896 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15897 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15900 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15902 ln conftest.a conftest.b
2>&5 || hard_links
=no
15903 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15904 echo "$as_me:$LINENO: result: $hard_links" >&5
15905 echo "${ECHO_T}$hard_links" >&6
15906 if test "$hard_links" = no
; then
15907 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15908 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15915 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15916 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15919 allow_undefined_flag_GCJ
=
15920 enable_shared_with_static_runtimes_GCJ
=no
15922 archive_expsym_cmds_GCJ
=
15923 old_archive_From_new_cmds_GCJ
=
15924 old_archive_from_expsyms_cmds_GCJ
=
15925 export_dynamic_flag_spec_GCJ
=
15926 whole_archive_flag_spec_GCJ
=
15927 thread_safe_flag_spec_GCJ
=
15928 hardcode_libdir_flag_spec_GCJ
=
15929 hardcode_libdir_flag_spec_ld_GCJ
=
15930 hardcode_libdir_separator_GCJ
=
15931 hardcode_direct_GCJ
=no
15932 hardcode_minus_L_GCJ
=no
15933 hardcode_shlibpath_var_GCJ
=unsupported
15934 link_all_deplibs_GCJ
=unknown
15935 hardcode_automatic_GCJ
=no
15937 module_expsym_cmds_GCJ
=
15938 always_export_symbols_GCJ
=no
15939 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15940 # include_expsyms should be a list of space-separated symbols to be *always*
15941 # included in the symbol list
15942 include_expsyms_GCJ
=
15943 # exclude_expsyms can be an extended regexp of symbols to exclude
15944 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15945 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15946 # as well as any symbol that contains `d'.
15947 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
15948 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15949 # platforms (ab)use it in PIC code, but their linkers get confused if
15950 # the symbol is explicitly referenced. Since portable code cannot
15951 # rely on this symbol name, it's probably fine to never include it in
15952 # preloaded symbol tables.
15953 extract_expsyms_cmds
=
15956 cygwin
* | mingw
* | pw32
*)
15957 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15958 # When not using gcc, we currently assume that we are using
15959 # Microsoft Visual C++.
15960 if test "$GCC" != yes; then
15970 if test "$with_gnu_ld" = yes; then
15971 # If archive_cmds runs LD, not CC, wlarc should be empty
15974 # See if GNU ld supports shared libraries.
15976 aix3
* | aix4
* | aix5
*)
15977 # On AIX/PPC, the GNU linker is very broken
15978 if test "$host_cpu" != ia64
; then
15982 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15983 *** to be unable to reliably create shared libraries on AIX.
15984 *** Therefore, libtool is disabling shared libraries support. If you
15985 *** really care for shared libraries, you may want to modify your PATH
15986 *** so that a non-GNU linker is found, and then restart.
15993 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)'
15994 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
15995 hardcode_minus_L_GCJ
=yes
15997 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15998 # that the semantics of dynamic libraries on AmigaOS, at least up
15999 # to version 4, is to share data among multiple programs linked
16000 # with the same dynamic library. Since this doesn't match the
16001 # behavior of shared libraries on other platforms, we can't use
16007 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16008 allow_undefined_flag_GCJ
=unsupported
16009 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16010 # support --undefined. This deserves some investigation. FIXME
16011 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017 cygwin
* | mingw
* | pw32
*)
16018 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16019 # as there is no search path for DLLs.
16020 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16021 allow_undefined_flag_GCJ
=unsupported
16022 always_export_symbols_GCJ
=no
16023 enable_shared_with_static_runtimes_GCJ
=yes
16024 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16026 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16027 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16028 # If the export-symbols file already is a .def file (1st line
16029 # is EXPORTS), use it as is; otherwise, prepend...
16030 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16031 cp $export_symbols $output_objdir/$soname.def;
16033 echo EXPORTS > $output_objdir/$soname.def;
16034 cat $export_symbols >> $output_objdir/$soname.def;
16036 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16043 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16044 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16047 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16048 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16053 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16057 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16058 *** create shared libraries on Solaris systems. Therefore, libtool
16059 *** is disabling shared libraries support. We urge you to upgrade GNU
16060 *** binutils to release 2.9.1 or newer. Another option is to modify
16061 *** your PATH or compiler configuration so that the native linker is
16062 *** used, and then restart.
16065 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16066 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16074 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16076 hardcode_direct_GCJ
=yes
16077 hardcode_shlibpath_var_GCJ
=no
16081 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16082 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16083 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16090 if test "$ld_shlibs_GCJ" = yes; then
16091 runpath_var
=LD_RUN_PATH
16092 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16093 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16094 # ancient GNU ld didn't support --whole-archive et. al.
16095 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16096 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16098 whole_archive_flag_spec_GCJ
=
16102 # PORTME fill in a description of your system's linker (not GNU ld)
16105 allow_undefined_flag_GCJ
=unsupported
16106 always_export_symbols_GCJ
=yes
16107 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'
16108 # Note: this linker hardcodes the directories in LIBPATH if there
16109 # are no directories specified by -L.
16110 hardcode_minus_L_GCJ
=yes
16111 if test "$GCC" = yes && test -z "$link_static_flag"; then
16112 # Neither direct hardcoding nor static linking is supported with a
16114 hardcode_direct_GCJ
=unsupported
16119 if test "$host_cpu" = ia64
; then
16120 # On IA64, the linker does run time linking by default, so we don't
16121 # have to do anything special.
16122 aix_use_runtimelinking
=no
16123 exp_sym_flag
='-Bexport'
16126 # If we're using GNU nm, then we don't want the "-C" option.
16127 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16128 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16129 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'
16131 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'
16133 aix_use_runtimelinking
=no
16135 # Test if we are trying to use run time linking or normal
16136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16137 # need to do runtime linking.
16138 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16139 for ld_flag
in $LDFLAGS; do
16140 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16141 aix_use_runtimelinking
=yes
16147 exp_sym_flag
='-bexport'
16148 no_entry_flag
='-bnoentry'
16151 # When large executables or shared objects are built, AIX ld can
16152 # have problems creating the table of contents. If linking a library
16153 # or program results in "error TOC overflow" add -mminimal-toc to
16154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16157 archive_cmds_GCJ
=''
16158 hardcode_direct_GCJ
=yes
16159 hardcode_libdir_separator_GCJ
=':'
16160 link_all_deplibs_GCJ
=yes
16162 if test "$GCC" = yes; then
16163 case $host_os in aix4.012|aix4.012.
*)
16164 # We only want to do this on AIX 4.2 and lower, the check
16165 # below for broken collect2 doesn't work under 4.3+
16166 collect2name
=`${CC} -print-prog-name=collect2`
16167 if test -f "$collect2name" && \
16168 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16170 # We have reworked collect2
16171 hardcode_direct_GCJ
=yes
16173 # We have old collect2
16174 hardcode_direct_GCJ
=unsupported
16175 # It fails to find uninstalled libraries when the uninstalled
16176 # path is not listed in the libpath. Setting hardcode_minus_L
16177 # to unsupported forces relinking
16178 hardcode_minus_L_GCJ
=yes
16179 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16180 hardcode_libdir_separator_GCJ
=
16183 shared_flag
='-shared'
16186 if test "$host_cpu" = ia64
; then
16187 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16188 # chokes on -Wl,-G. The following line is correct:
16191 if test "$aix_use_runtimelinking" = yes; then
16192 shared_flag
='${wl}-G'
16194 shared_flag
='${wl}-bM:SRE'
16199 # It seems that -bexpall does not export symbols beginning with
16200 # underscore (_), so it is better to generate a list of symbols to export.
16201 always_export_symbols_GCJ
=yes
16202 if test "$aix_use_runtimelinking" = yes; then
16203 # Warning - without using the other runtime loading flags (-brtl),
16204 # -berok will link without error, but may produce a broken library.
16205 allow_undefined_flag_GCJ
='-berok'
16206 # Determine the default libpath from the value encoded in an empty executable.
16207 cat >conftest.
$ac_ext <<_ACEOF
16210 cat confdefs.h
>>conftest.
$ac_ext
16211 cat >>conftest.
$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16222 rm -f conftest.
$ac_objext conftest
$ac_exeext
16223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16224 (eval $ac_link) 2>conftest.er1
16226 grep -v '^ *+' conftest.er1
>conftest.err
16228 cat conftest.err
>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
16231 { ac_try
='test -z "$ac_c_werror_flag"
16232 || test ! -s conftest.err'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; } &&
16238 { ac_try
='test -s conftest$ac_exeext'
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }; then
16245 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16247 # Check for a 64-bit object if we didn't find anything.
16248 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; }
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.
$ac_ext >&5
16255 rm -f conftest.err conftest.
$ac_objext \
16256 conftest
$ac_exeext conftest.
$ac_ext
16257 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16259 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
16260 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"
16262 if test "$host_cpu" = ia64; then
16263 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr
/lib
:/lib
'
16264 allow_undefined_flag_GCJ="-z nodefs"
16265 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"
16267 # Determine the default libpath from the value encoded in an empty executable.
16268 cat >conftest.$ac_ext <<_ACEOF
16271 cat confdefs.h >>conftest.$ac_ext
16272 cat >>conftest.$ac_ext <<_ACEOF
16273 /* end confdefs.h. */
16283 rm -f conftest.$ac_objext conftest$ac_exeext
16284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16285 (eval $ac_link) 2>conftest.er1
16287 grep -v '^ *+' conftest.er1 >conftest.err
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -z "$ac_c_werror_flag"
16293 || test ! -s conftest.err'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16298 (exit $ac_status); }; } &&
16299 { ac_try='test -s conftest$ac_exeext'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16304 (exit $ac_status); }; }; then
16306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16308 # Check for a 64-bit object if we didn't find anything.
16309 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; }
16312 echo "$as_me: failed program was
:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16316 rm -f conftest.err conftest.$ac_objext \
16317 conftest$ac_exeext conftest.$ac_ext
16318 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
16320 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16321 # Warning - without using the other run time loading flags,
16322 # -berok will link without error, but may produce a broken library.
16323 no_undefined_flag_GCJ=' ${wl}-bernotok'
16324 allow_undefined_flag_GCJ=' ${wl}-berok'
16325 # -bexpall does not export symbols beginning with underscore (_)
16326 always_export_symbols_GCJ=yes
16327 # Exported symbols can be pulled into shared objects from archives
16328 whole_archive_flag_spec_GCJ=' '
16329 archive_cmds_need_lc_GCJ=yes
16330 # This is similar to how AIX traditionally builds it's shared libraries.
16331 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'
16337 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)'
16338 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16339 hardcode_minus_L_GCJ
=yes
16340 # see comment about different semantics on the GNU ld section
16345 export_dynamic_flag_spec_GCJ
=-rdynamic
16348 cygwin
* | mingw
* | pw32
*)
16349 # When not using gcc, we currently assume that we are using
16350 # Microsoft Visual C++.
16351 # hardcode_libdir_flag_spec is actually meaningless, as there is
16352 # no search path for DLLs.
16353 hardcode_libdir_flag_spec_GCJ
=' '
16354 allow_undefined_flag_GCJ
=unsupported
16355 # Tell ltmain to make .lib files, not .a files.
16357 # Tell ltmain to make .dll files, not .so files.
16359 # FIXME: Setting linknames here is a bad hack.
16360 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16361 # The linker will automatically build a .lib file if we build a DLL.
16362 old_archive_From_new_cmds_GCJ
='true'
16363 # FIXME: Should let the user specify the lib program.
16364 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
16365 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16366 enable_shared_with_static_runtimes_GCJ
=yes
16369 darwin
* | rhapsody
*)
16370 if $CC -v 2>&1 |
grep 'Apple' >/dev
/null
; then
16371 archive_cmds_need_lc_GCJ
=no
16373 rhapsody
* | darwin1.
[012])
16374 allow_undefined_flag_GCJ
='-undefined suppress'
16377 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ
='-flat_namespace -undefined suppress'
16380 # FIXME: Relying on posixy $() will cause problems for
16381 # cross-compilation, but unfortunately the echo tests do not
16382 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16383 # `"' quotes if we put them in here... so don't!
16384 lt_int_apple_cc_single_mod
=no
16385 output_verbose_link_cmd
='echo'
16386 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
16387 lt_int_apple_cc_single_mod
=yes
16389 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
16390 archive_cmds_GCJ
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16392 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'
16394 module_cmds_GCJ
='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16395 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16396 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
16397 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}'
16399 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}'
16401 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16402 hardcode_direct_GCJ
=no
16403 hardcode_automatic_GCJ
=yes
16404 hardcode_shlibpath_var_GCJ
=unsupported
16405 whole_archive_flag_spec_GCJ
='-all_load $convenience'
16406 link_all_deplibs_GCJ
=yes
16411 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16412 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16413 hardcode_shlibpath_var_GCJ
=no
16420 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16421 # support. Future versions do this automatically, but an explicit c++rt0.o
16422 # does not break anything, and helps significantly (at the cost of a little
16425 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16426 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16427 hardcode_direct_GCJ
=yes
16428 hardcode_shlibpath_var_GCJ
=no
16431 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16433 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16434 hardcode_direct_GCJ
=yes
16435 hardcode_minus_L_GCJ
=yes
16436 hardcode_shlibpath_var_GCJ
=no
16439 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16441 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16442 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16443 hardcode_direct_GCJ
=yes
16444 hardcode_shlibpath_var_GCJ
=no
16448 if test "$GCC" = yes; then
16449 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'
16451 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'
16453 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16454 hardcode_libdir_separator_GCJ
=:
16455 hardcode_direct_GCJ
=yes
16457 # hardcode_minus_L: Not really in the search PATH,
16458 # but as the default location of the library.
16459 hardcode_minus_L_GCJ
=yes
16460 export_dynamic_flag_spec_GCJ
='${wl}-E'
16464 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16465 case "$host_cpu" in
16467 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16470 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16474 case "$host_cpu" in
16476 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16479 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16483 if test "$with_gnu_ld" = no
; then
16484 case "$host_cpu" in
16486 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16487 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
16488 hardcode_libdir_separator_GCJ
=:
16489 hardcode_direct_GCJ
=no
16490 hardcode_shlibpath_var_GCJ
=no
16493 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16494 hardcode_direct_GCJ
=no
16495 hardcode_shlibpath_var_GCJ
=no
16497 # hardcode_minus_L: Not really in the search PATH,
16498 # but as the default location of the library.
16499 hardcode_minus_L_GCJ
=yes
16502 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16503 hardcode_libdir_separator_GCJ
=:
16504 hardcode_direct_GCJ
=yes
16505 export_dynamic_flag_spec_GCJ
='${wl}-E'
16507 # hardcode_minus_L: Not really in the search PATH,
16508 # but as the default location of the library.
16509 hardcode_minus_L_GCJ
=yes
16515 irix5
* | irix6
* | nonstopux
*)
16516 if test "$GCC" = yes; then
16517 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'
16519 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'
16520 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
16522 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16523 hardcode_libdir_separator_GCJ
=:
16524 link_all_deplibs_GCJ
=yes
16528 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16529 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16531 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16533 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16534 hardcode_direct_GCJ
=yes
16535 hardcode_shlibpath_var_GCJ
=no
16539 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16540 hardcode_direct_GCJ
=yes
16541 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16542 hardcode_libdir_separator_GCJ
=:
16543 hardcode_shlibpath_var_GCJ
=no
16547 hardcode_direct_GCJ
=yes
16548 hardcode_shlibpath_var_GCJ
=no
16549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16550 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16551 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16552 export_dynamic_flag_spec_GCJ
='${wl}-E'
16555 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16556 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16557 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16560 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16561 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16568 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16569 hardcode_minus_L_GCJ
=yes
16570 allow_undefined_flag_GCJ
=unsupported
16571 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'
16572 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16576 if test "$GCC" = yes; then
16577 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16578 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'
16580 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16581 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'
16583 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16584 hardcode_libdir_separator_GCJ
=:
16587 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16588 if test "$GCC" = yes; then
16589 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16590 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'
16591 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16593 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16594 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'
16595 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~
16596 $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'
16598 # Both c and cxx compiler support -rpath directly
16599 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
16601 hardcode_libdir_separator_GCJ
=:
16605 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606 hardcode_shlibpath_var_GCJ
=no
16607 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
16608 runpath_var
=LD_RUN_PATH
16609 hardcode_runpath_var
=yes
16613 no_undefined_flag_GCJ
=' -z text'
16614 if test "$GCC" = yes; then
16615 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16616 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16617 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16619 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16620 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16621 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16623 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16624 hardcode_shlibpath_var_GCJ
=no
16626 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16627 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16628 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
16630 link_all_deplibs_GCJ
=yes
16634 if test "x$host_vendor" = xsequent
; then
16635 # Use $CC to link under sequent, because it throws in some extra .o
16636 # files that make .init and .fini sections work.
16637 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16639 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16641 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16642 hardcode_direct_GCJ
=yes
16643 hardcode_minus_L_GCJ
=yes
16644 hardcode_shlibpath_var_GCJ
=no
16648 case $host_vendor in
16650 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16651 hardcode_direct_GCJ
=yes # is this really true???
16654 ## LD is ld it makes a PLAMLIB
16655 ## CC just makes a GrossModule.
16656 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16657 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
16658 hardcode_direct_GCJ
=no
16661 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
16665 runpath_var
='LD_RUN_PATH'
16666 hardcode_shlibpath_var_GCJ
=no
16670 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16671 hardcode_shlibpath_var_GCJ
=no
16672 export_dynamic_flag_spec_GCJ
='-Bexport'
16676 if test -d /usr
/nec
; then
16677 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16678 hardcode_shlibpath_var_GCJ
=no
16679 runpath_var
=LD_RUN_PATH
16680 hardcode_runpath_var
=yes
16686 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16687 hardcode_direct_GCJ
=yes
16688 hardcode_minus_L_GCJ
=no
16689 hardcode_shlibpath_var_GCJ
=no
16690 hardcode_runpath_var
=yes
16691 runpath_var
=LD_RUN_PATH
16694 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
16695 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
16696 if test "$GCC" = yes; then
16697 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16699 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16701 runpath_var
='LD_RUN_PATH'
16702 hardcode_shlibpath_var_GCJ
=no
16706 no_undefined_flag_GCJ
=' -z text'
16707 # $CC -shared without GNU ld will not create a library from C++
16708 # object files and a static libstdc++, better avoid it by now
16709 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16711 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16712 hardcode_libdir_flag_spec_GCJ
=
16713 hardcode_shlibpath_var_GCJ
=no
16714 runpath_var
='LD_RUN_PATH'
16718 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16719 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16720 hardcode_shlibpath_var_GCJ
=no
16729 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16730 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16731 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
16733 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16734 if test "$GCC" = yes; then
16735 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16739 # Do we need to explicitly link libc?
16741 case "x$archive_cmds_need_lc_GCJ" in
16743 # Assume -lc should be added
16744 archive_cmds_need_lc_GCJ
=yes
16746 if test "$enable_shared" = yes && test "$GCC" = yes; then
16747 case $archive_cmds_GCJ in
16749 # FIXME: we may have to deal with multi-command sequences.
16752 # Test whether the compiler implicitly links with -lc since on some
16753 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16754 # to ld, don't add -lc before -lgcc.
16755 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16756 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16758 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16761 (eval $ac_compile) 2>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } 2>conftest.err
; then
16767 libobjs
=conftest.
$ac_objext
16769 wl
=$lt_prog_compiler_wl_GCJ
16775 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
16776 allow_undefined_flag_GCJ
=
16777 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16778 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }
16783 archive_cmds_need_lc_GCJ
=no
16785 archive_cmds_need_lc_GCJ
=yes
16787 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
16789 cat conftest.err
1>&5
16792 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16793 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16800 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16801 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16802 hardcode_action_GCJ
=
16803 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16804 test -n "$runpath_var GCJ" || \
16805 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16807 # We can hardcode non-existant directories.
16808 if test "$hardcode_direct_GCJ" != no
&&
16809 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16810 # have to relink, otherwise we might link with an installed library
16811 # when we should be linking with a yet-to-be-installed one
16812 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16813 test "$hardcode_minus_L_GCJ" != no
; then
16814 # Linking always hardcodes the temporary library directory.
16815 hardcode_action_GCJ
=relink
16817 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16818 hardcode_action_GCJ
=immediate
16821 # We cannot hardcode anything, or else we can only hardcode existing
16823 hardcode_action_GCJ
=unsupported
16825 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16826 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16828 if test "$hardcode_action_GCJ" = relink
; then
16829 # Fast installation is not supported
16830 enable_fast_install
=no
16831 elif test "$shlibpath_overrides_runpath" = yes ||
16832 test "$enable_shared" = no
; then
16833 # Fast installation is not necessary
16834 enable_fast_install
=needless
16839 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16840 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16841 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
16842 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
16843 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
16844 echo "$as_me:$LINENO: result: yes" >&5
16845 echo "${ECHO_T}yes" >&6
16847 # FIXME - insert some real tests, host_os isn't really good enough
16850 if test -n "$STRIP" ; then
16851 striplib
="$STRIP -x"
16852 echo "$as_me:$LINENO: result: yes" >&5
16853 echo "${ECHO_T}yes" >&6
16855 echo "$as_me:$LINENO: result: no" >&5
16856 echo "${ECHO_T}no" >&6
16860 echo "$as_me:$LINENO: result: no" >&5
16861 echo "${ECHO_T}no" >&6
16866 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16867 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16868 library_names_spec
=
16869 libname_spec
='lib$name'
16873 postuninstall_cmds
=
16877 shlibpath_overrides_runpath
=unknown
16879 dynamic_linker
="$host_os ld.so"
16880 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16881 if test "$GCC" = yes; then
16882 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16883 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16884 # if the path contains ";" then we assume it to be the separator
16885 # otherwise default to the standard path separator (i.e. ":") - it is
16886 # assumed that no part of a normal pathname contains ";" but that should
16887 # okay in the real world where ";" in dirpaths is itself problematic.
16888 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16890 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16893 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16895 need_lib_prefix
=unknown
16896 hardcode_into_libs
=no
16898 # when you set need_version to no, make sure it does not cause -set_version
16899 # flags to be left without arguments
16900 need_version
=unknown
16905 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16906 shlibpath_var
=LIBPATH
16908 # AIX 3 has no versioning support, so we append a major version to the name.
16909 soname_spec
='${libname}${release}${shared_ext}$major'
16916 hardcode_into_libs
=yes
16917 if test "$host_cpu" = ia64
; then
16918 # AIX 5 supports IA64
16919 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16920 shlibpath_var
=LD_LIBRARY_PATH
16922 # With GCC up to 2.95.x, collect2 would create an import file
16923 # for dependence libraries. The import file would start with
16924 # the line `#! .'. This would cause the generated library to
16925 # depend on `.', always an invalid library. This was fixed in
16926 # development snapshots of GCC prior to 3.0.
16928 aix4 | aix4.
[01] | aix4.
[01].
*)
16929 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16931 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16934 can_build_shared
=no
16938 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16939 # soname into executable. Probably we can add versioning support to
16940 # collect2, so additional links can be useful in future.
16941 if test "$aix_use_runtimelinking" = yes; then
16942 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16943 # instead of lib<name>.a to let people know that these are not
16944 # typical AIX shared libraries.
16945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16947 # We preserve .a as extension for shared libraries through AIX4.2
16948 # and later when we are not doing run time linking.
16949 library_names_spec
='${libname}${release}.a $libname.a'
16950 soname_spec
='${libname}${release}${shared_ext}$major'
16952 shlibpath_var
=LIBPATH
16957 library_names_spec
='$libname.ixlibrary $libname.a'
16958 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16959 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'
16963 library_names_spec
='${libname}${shared_ext}'
16964 dynamic_linker
="$host_os ld.so"
16965 shlibpath_var
=LIBRARY_PATH
16971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16972 soname_spec
='${libname}${release}${shared_ext}$major'
16973 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16974 shlibpath_var
=LD_LIBRARY_PATH
16975 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16976 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16977 # the default ld.so.conf also contains /usr/contrib/lib and
16978 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16979 # libtool to hard-code these into programs
16982 cygwin
* | mingw
* | pw32
*)
16983 version_type
=windows
16988 case $GCC,$host_os in
16989 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
16990 library_names_spec
='$libname.dll.a'
16991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16992 postinstall_cmds
='base_file=`basename \${file}`~
16993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16994 dldir=$destdir/`dirname \$dlpath`~
16995 test -d \$dldir || mkdir -p \$dldir~
16996 $install_prog $dir/$dlname \$dldir/$dlname'
16997 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16998 dlpath=$dir/\$dldll~
17000 shlibpath_overrides_runpath
=yes
17004 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17005 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17006 sys_lib_search_path_spec
="/lib /lib/w32api /usr/lib /usr/local/lib"
17009 # MinGW DLLs use traditional 'lib' prefix
17010 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17011 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17012 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17013 # It is most probably a Windows format PATH printed by
17014 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17015 # path with ; separators, and with drive letters. We can handle the
17016 # drive letters (cygwin fileutils understands them), so leave them,
17017 # especially as we might pass files found there to a mingw objdump,
17018 # which wouldn't understand a cygwinified path. Ahh.
17019 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17021 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17025 # pw32 DLLs use 'pw' prefix rather than 'lib'
17026 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17032 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17035 dynamic_linker
='Win32 ld.exe'
17036 # FIXME: first we should search . and the directory the executable is in
17040 darwin
* | rhapsody
*)
17041 dynamic_linker
="$host_os dyld"
17042 version_type
=darwin
17045 # FIXME: Relying on posixy $() will cause problems for
17046 # cross-compilation, but unfortunately the echo tests do not
17047 # yet detect zsh echo's removal of \ escapes.
17048 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17049 soname_spec
='${libname}${release}${major}$shared_ext'
17050 shlibpath_overrides_runpath
=yes
17051 shlibpath_var
=DYLD_LIBRARY_PATH
17052 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
17053 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17054 if $CC -v 2>&1 |
grep 'Apple' >/dev
/null
; then
17055 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"`
17057 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
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
17074 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17075 version_type
=freebsd-
$objformat
17076 case $version_type in
17078 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17083 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17087 shlibpath_var
=LD_LIBRARY_PATH
17090 shlibpath_overrides_runpath
=yes
17092 freebsd3.01
* | freebsdelf3.01
*)
17093 shlibpath_overrides_runpath
=yes
17094 hardcode_into_libs
=yes
17097 shlibpath_overrides_runpath
=no
17098 hardcode_into_libs
=yes
17107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17108 soname_spec
='${libname}${release}${shared_ext}$major'
17109 shlibpath_var
=LD_LIBRARY_PATH
17110 hardcode_into_libs
=yes
17113 hpux9
* | hpux10
* | hpux11
*)
17114 # Give a soname corresponding to the major version so that dld.sl refuses to
17115 # link against other versions.
17119 case "$host_cpu" in
17122 hardcode_into_libs
=yes
17123 dynamic_linker
="$host_os dld.so"
17124 shlibpath_var
=LD_LIBRARY_PATH
17125 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17127 soname_spec
='${libname}${release}${shared_ext}$major'
17128 if test "X$HPUX_IA64_MODE" = X32
; then
17129 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17131 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17133 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17137 hardcode_into_libs
=yes
17138 dynamic_linker
="$host_os dld.sl"
17139 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17140 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17141 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17142 soname_spec
='${libname}${release}${shared_ext}$major'
17143 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17144 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17148 dynamic_linker
="$host_os dld.sl"
17149 shlibpath_var
=SHLIB_PATH
17150 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17152 soname_spec
='${libname}${release}${shared_ext}$major'
17155 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17156 postinstall_cmds
='chmod 555 $lib'
17159 irix5
* | irix6
* | nonstopux
*)
17161 nonstopux
*) version_type
=nonstopux
;;
17163 if test "$lt_cv_prog_gnu_ld" = yes; then
17171 soname_spec
='${libname}${release}${shared_ext}$major'
17172 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17174 irix5
* | nonstopux
*)
17175 libsuff
= shlibsuff
=
17178 case $LD in # libtool.m4 will add one of these switches to LD
17179 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17180 libsuff
= shlibsuff
= libmagic
=32-bit;;
17181 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17182 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17183 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17184 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17185 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17189 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17190 shlibpath_overrides_runpath
=no
17191 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17192 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17193 hardcode_into_libs
=yes
17196 # No shared lib support for Linux oldld, aout, or coff.
17197 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17201 # This must be Linux ELF.
17206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207 soname_spec
='${libname}${release}${shared_ext}$major'
17208 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17209 shlibpath_var
=LD_LIBRARY_PATH
17210 shlibpath_overrides_runpath
=no
17211 # This implies no fast_install, which is unacceptable.
17212 # Some rework will be needed to allow for fast_install
17213 # before this can be enabled.
17214 hardcode_into_libs
=yes
17216 # We used to test for /lib/ld.so.1 and disable shared libraries on
17217 # powerpc, because MkLinux only supported shared libraries with the
17218 # GNU dynamic linker. Since this was broken with cross compilers,
17219 # most powerpc-linux boxes support dynamic linking these days and
17220 # people can always --disable-shared, the test was removed, and we
17221 # assume the GNU/Linux dynamic linker is in use.
17222 dynamic_linker
='GNU/Linux ld.so'
17229 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17231 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17232 dynamic_linker
='NetBSD (a.out) ld.so'
17234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17235 soname_spec
='${libname}${release}${shared_ext}$major'
17236 dynamic_linker
='NetBSD ld.elf_so'
17238 shlibpath_var
=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath
=yes
17240 hardcode_into_libs
=yes
17245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246 shlibpath_var
=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath
=yes
17254 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 soname_spec
='${libname}${release}${shared_ext}$major'
17256 shlibpath_var
=LD_LIBRARY_PATH
17257 shlibpath_overrides_runpath
=yes
17264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17265 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17266 shlibpath_var
=LD_LIBRARY_PATH
17267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17269 openbsd2.
[89] | openbsd2.
[89].
*)
17270 shlibpath_overrides_runpath
=no
17273 shlibpath_overrides_runpath
=yes
17277 shlibpath_overrides_runpath
=yes
17282 libname_spec
='$name'
17285 library_names_spec
='$libname${shared_ext} $libname.a'
17286 dynamic_linker
='OS/2 ld.exe'
17287 shlibpath_var
=LIBPATH
17290 osf3
* | osf4
* | osf5
*)
17294 soname_spec
='${libname}${release}${shared_ext}$major'
17295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296 shlibpath_var
=LD_LIBRARY_PATH
17297 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17298 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17303 soname_spec
='${libname}${release}${shared_ext}$major'
17304 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 shlibpath_var
=LD_LIBRARY_PATH
17312 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313 soname_spec
='${libname}${release}${shared_ext}$major'
17314 shlibpath_var
=LD_LIBRARY_PATH
17315 shlibpath_overrides_runpath
=yes
17316 hardcode_into_libs
=yes
17317 # ldd complains unless libraries are executable
17318 postinstall_cmds
='chmod +x $lib'
17323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17324 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17325 shlibpath_var
=LD_LIBRARY_PATH
17326 shlibpath_overrides_runpath
=yes
17327 if test "$with_gnu_ld" = yes; then
17333 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336 soname_spec
='${libname}${release}${shared_ext}$major'
17337 shlibpath_var
=LD_LIBRARY_PATH
17338 case $host_vendor in
17340 shlibpath_overrides_runpath
=no
17342 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17343 runpath_var
=LD_RUN_PATH
17351 shlibpath_overrides_runpath
=no
17352 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17358 if test -d /usr
/nec
;then
17360 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17361 soname_spec
='$libname${shared_ext}.$major'
17362 shlibpath_var
=LD_LIBRARY_PATH
17368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 soname_spec
='${libname}${release}${shared_ext}$major'
17370 shlibpath_var
=LD_LIBRARY_PATH
17377 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17378 echo "${ECHO_T}$dynamic_linker" >&6
17379 test "$dynamic_linker" = no
&& can_build_shared
=no
17381 if test "x$enable_dlopen" != xyes
; then
17382 enable_dlopen
=unknown
17383 enable_dlopen_self
=unknown
17384 enable_dlopen_self_static
=unknown
17391 lt_cv_dlopen
="load_add_on"
17393 lt_cv_dlopen_self
=yes
17397 lt_cv_dlopen
="LoadLibrary"
17402 lt_cv_dlopen
="dlopen"
17407 # if libdl is installed we need to link against it
17408 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17409 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17410 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
17413 ac_check_lib_save_LIBS
=$LIBS
17415 cat >conftest.
$ac_ext <<_ACEOF
17418 cat confdefs.h
>>conftest.
$ac_ext
17419 cat >>conftest.
$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17422 /* Override any gcc2 internal prototype to avoid an error. */
17426 /* We use char because int might match the return type of a gcc2
17427 builtin and then its argument prototype would still apply. */
17437 rm -f conftest.
$ac_objext conftest
$ac_exeext
17438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17439 (eval $ac_link) 2>conftest.er1
17441 grep -v '^ *+' conftest.er1
>conftest.err
17443 cat conftest.err
>&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } &&
17446 { ac_try
='test -z "$ac_c_werror_flag"
17447 || test ! -s conftest.err'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; } &&
17453 { ac_try
='test -s conftest$ac_exeext'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
17459 ac_cv_lib_dl_dlopen
=yes
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.
$ac_ext >&5
17464 ac_cv_lib_dl_dlopen
=no
17466 rm -f conftest.err conftest.
$ac_objext \
17467 conftest
$ac_exeext conftest.
$ac_ext
17468 LIBS
=$ac_check_lib_save_LIBS
17470 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17471 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17472 if test $ac_cv_lib_dl_dlopen = yes; then
17473 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17476 lt_cv_dlopen
="dyld"
17478 lt_cv_dlopen_self
=yes
17485 echo "$as_me:$LINENO: checking for shl_load" >&5
17486 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17487 if test "${ac_cv_func_shl_load+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17490 cat >conftest.
$ac_ext <<_ACEOF
17493 cat confdefs.h
>>conftest.
$ac_ext
17494 cat >>conftest.
$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17496 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17498 #define shl_load innocuous_shl_load
17500 /* System header to define __stub macros and hopefully few prototypes,
17501 which can conflict with char shl_load (); below.
17502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17503 <limits.h> exists even on freestanding compilers. */
17506 # include <limits.h>
17508 # include <assert.h>
17513 /* Override any gcc2 internal prototype to avoid an error. */
17518 /* We use char because int might match the return type of a gcc2
17519 builtin and then its argument prototype would still apply. */
17521 /* The GNU C library defines this for functions which it implements
17522 to always fail with ENOSYS. Some functions are actually named
17523 something starting with __ and the normal name is an alias. */
17524 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17527 char (*f) () = shl_load;
17536 return f != shl_load;
17541 rm -f conftest.
$ac_objext conftest
$ac_exeext
17542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17543 (eval $ac_link) 2>conftest.er1
17545 grep -v '^ *+' conftest.er1
>conftest.err
17547 cat conftest.err
>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
17550 { ac_try
='test -z "$ac_c_werror_flag"
17551 || test ! -s conftest.err'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try
='test -s conftest$ac_exeext'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 ac_cv_func_shl_load
=yes
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.
$ac_ext >&5
17568 ac_cv_func_shl_load
=no
17570 rm -f conftest.err conftest.
$ac_objext \
17571 conftest
$ac_exeext conftest.
$ac_ext
17573 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17574 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17575 if test $ac_cv_func_shl_load = yes; then
17576 lt_cv_dlopen
="shl_load"
17578 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17579 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17580 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17583 ac_check_lib_save_LIBS
=$LIBS
17585 cat >conftest.
$ac_ext <<_ACEOF
17588 cat confdefs.h
>>conftest.
$ac_ext
17589 cat >>conftest.
$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17592 /* Override any gcc2 internal prototype to avoid an error. */
17596 /* We use char because int might match the return type of a gcc2
17597 builtin and then its argument prototype would still apply. */
17607 rm -f conftest.
$ac_objext conftest
$ac_exeext
17608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17609 (eval $ac_link) 2>conftest.er1
17611 grep -v '^ *+' conftest.er1
>conftest.err
17613 cat conftest.err
>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try
='test -z "$ac_c_werror_flag"
17617 || test ! -s conftest.err'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } &&
17623 { ac_try
='test -s conftest$ac_exeext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 ac_cv_lib_dld_shl_load
=yes
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.
$ac_ext >&5
17634 ac_cv_lib_dld_shl_load
=no
17636 rm -f conftest.err conftest.
$ac_objext \
17637 conftest
$ac_exeext conftest.
$ac_ext
17638 LIBS
=$ac_check_lib_save_LIBS
17640 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17641 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17642 if test $ac_cv_lib_dld_shl_load = yes; then
17643 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
17645 echo "$as_me:$LINENO: checking for dlopen" >&5
17646 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17647 if test "${ac_cv_func_dlopen+set}" = set; then
17648 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 cat >conftest.
$ac_ext <<_ACEOF
17653 cat confdefs.h
>>conftest.
$ac_ext
17654 cat >>conftest.
$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17656 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17658 #define dlopen innocuous_dlopen
17660 /* System header to define __stub macros and hopefully few prototypes,
17661 which can conflict with char dlopen (); below.
17662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17663 <limits.h> exists even on freestanding compilers. */
17666 # include <limits.h>
17668 # include <assert.h>
17673 /* Override any gcc2 internal prototype to avoid an error. */
17678 /* We use char because int might match the return type of a gcc2
17679 builtin and then its argument prototype would still apply. */
17681 /* The GNU C library defines this for functions which it implements
17682 to always fail with ENOSYS. Some functions are actually named
17683 something starting with __ and the normal name is an alias. */
17684 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17687 char (*f) () = dlopen;
17696 return f != dlopen;
17701 rm -f conftest.
$ac_objext conftest
$ac_exeext
17702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17703 (eval $ac_link) 2>conftest.er1
17705 grep -v '^ *+' conftest.er1
>conftest.err
17707 cat conftest.err
>&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); } &&
17710 { ac_try
='test -z "$ac_c_werror_flag"
17711 || test ! -s conftest.err'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try
='test -s conftest$ac_exeext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_cv_func_dlopen
=yes
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.
$ac_ext >&5
17728 ac_cv_func_dlopen
=no
17730 rm -f conftest.err conftest.
$ac_objext \
17731 conftest
$ac_exeext conftest.
$ac_ext
17733 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17734 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17735 if test $ac_cv_func_dlopen = yes; then
17736 lt_cv_dlopen
="dlopen"
17738 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17739 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17740 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17741 echo $ECHO_N "(cached) $ECHO_C" >&6
17743 ac_check_lib_save_LIBS
=$LIBS
17745 cat >conftest.
$ac_ext <<_ACEOF
17748 cat confdefs.h
>>conftest.
$ac_ext
17749 cat >>conftest.
$ac_ext <<_ACEOF
17750 /* end confdefs.h. */
17752 /* Override any gcc2 internal prototype to avoid an error. */
17756 /* We use char because int might match the return type of a gcc2
17757 builtin and then its argument prototype would still apply. */
17767 rm -f conftest.
$ac_objext conftest
$ac_exeext
17768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17769 (eval $ac_link) 2>conftest.er1
17771 grep -v '^ *+' conftest.er1
>conftest.err
17773 cat conftest.err
>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
17776 { ac_try
='test -z "$ac_c_werror_flag"
17777 || test ! -s conftest.err'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try
='test -s conftest$ac_exeext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ac_cv_lib_dl_dlopen
=yes
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.
$ac_ext >&5
17794 ac_cv_lib_dl_dlopen
=no
17796 rm -f conftest.err conftest.
$ac_objext \
17797 conftest
$ac_exeext conftest.
$ac_ext
17798 LIBS
=$ac_check_lib_save_LIBS
17800 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17801 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17802 if test $ac_cv_lib_dl_dlopen = yes; then
17803 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17805 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17806 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17807 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17808 echo $ECHO_N "(cached) $ECHO_C" >&6
17810 ac_check_lib_save_LIBS
=$LIBS
17811 LIBS
="-lsvld $LIBS"
17812 cat >conftest.
$ac_ext <<_ACEOF
17815 cat confdefs.h
>>conftest.
$ac_ext
17816 cat >>conftest.
$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17819 /* Override any gcc2 internal prototype to avoid an error. */
17823 /* We use char because int might match the return type of a gcc2
17824 builtin and then its argument prototype would still apply. */
17834 rm -f conftest.
$ac_objext conftest
$ac_exeext
17835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17836 (eval $ac_link) 2>conftest.er1
17838 grep -v '^ *+' conftest.er1
>conftest.err
17840 cat conftest.err
>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } &&
17843 { ac_try
='test -z "$ac_c_werror_flag"
17844 || test ! -s conftest.err'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try
='test -s conftest$ac_exeext'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 ac_cv_lib_svld_dlopen
=yes
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.
$ac_ext >&5
17861 ac_cv_lib_svld_dlopen
=no
17863 rm -f conftest.err conftest.
$ac_objext \
17864 conftest
$ac_exeext conftest.
$ac_ext
17865 LIBS
=$ac_check_lib_save_LIBS
17867 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17868 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17869 if test $ac_cv_lib_svld_dlopen = yes; then
17870 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17872 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17873 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17874 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17877 ac_check_lib_save_LIBS
=$LIBS
17879 cat >conftest.
$ac_ext <<_ACEOF
17882 cat confdefs.h
>>conftest.
$ac_ext
17883 cat >>conftest.
$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17886 /* Override any gcc2 internal prototype to avoid an error. */
17890 /* We use char because int might match the return type of a gcc2
17891 builtin and then its argument prototype would still apply. */
17901 rm -f conftest.
$ac_objext conftest
$ac_exeext
17902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17903 (eval $ac_link) 2>conftest.er1
17905 grep -v '^ *+' conftest.er1
>conftest.err
17907 cat conftest.err
>&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } &&
17910 { ac_try
='test -z "$ac_c_werror_flag"
17911 || test ! -s conftest.err'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try
='test -s conftest$ac_exeext'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; }; then
17923 ac_cv_lib_dld_dld_link
=yes
17925 echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.
$ac_ext >&5
17928 ac_cv_lib_dld_dld_link
=no
17930 rm -f conftest.err conftest.
$ac_objext \
17931 conftest
$ac_exeext conftest.
$ac_ext
17932 LIBS
=$ac_check_lib_save_LIBS
17934 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17935 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17936 if test $ac_cv_lib_dld_dld_link = yes; then
17937 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
17958 if test "x$lt_cv_dlopen" != xno
; then
17964 case $lt_cv_dlopen in
17966 save_CPPFLAGS
="$CPPFLAGS"
17967 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17969 save_LDFLAGS
="$LDFLAGS"
17970 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17973 LIBS
="$lt_cv_dlopen_libs $LIBS"
17975 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17976 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17977 if test "${lt_cv_dlopen_self+set}" = set; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 if test "$cross_compiling" = yes; then :
17981 lt_cv_dlopen_self
=cross
17983 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17984 lt_status
=$lt_dlunknown
17985 cat > conftest.
$ac_ext <<EOF
17986 #line 17986 "configure"
17987 #include "confdefs.h"
17996 # define LT_DLGLOBAL RTLD_GLOBAL
17999 # define LT_DLGLOBAL DL_GLOBAL
18001 # define LT_DLGLOBAL 0
18005 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18006 find out it does not work in some platform. */
18007 #ifndef LT_DLLAZY_OR_NOW
18009 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18012 # define LT_DLLAZY_OR_NOW DL_LAZY
18015 # define LT_DLLAZY_OR_NOW RTLD_NOW
18018 # define LT_DLLAZY_OR_NOW DL_NOW
18020 # define LT_DLLAZY_OR_NOW 0
18028 extern "C" void exit (int);
18031 void fnord() { int i=42;}
18034 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18035 int status = $lt_dlunknown;
18039 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18040 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18041 /* dlclose (self); */
18047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18048 (eval $ac_link) 2>&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18052 (.
/conftest
; exit; ) 2>/dev
/null
18054 case x
$lt_status in
18055 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18056 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18057 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
18060 # compilation failed
18061 lt_cv_dlopen_self
=no
18068 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18069 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18071 if test "x$lt_cv_dlopen_self" = xyes
; then
18072 LDFLAGS
="$LDFLAGS $link_static_flag"
18073 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18074 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18075 if test "${lt_cv_dlopen_self_static+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 if test "$cross_compiling" = yes; then :
18079 lt_cv_dlopen_self_static
=cross
18081 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18082 lt_status
=$lt_dlunknown
18083 cat > conftest.
$ac_ext <<EOF
18084 #line 18084 "configure"
18085 #include "confdefs.h"
18094 # define LT_DLGLOBAL RTLD_GLOBAL
18097 # define LT_DLGLOBAL DL_GLOBAL
18099 # define LT_DLGLOBAL 0
18103 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18104 find out it does not work in some platform. */
18105 #ifndef LT_DLLAZY_OR_NOW
18107 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18110 # define LT_DLLAZY_OR_NOW DL_LAZY
18113 # define LT_DLLAZY_OR_NOW RTLD_NOW
18116 # define LT_DLLAZY_OR_NOW DL_NOW
18118 # define LT_DLLAZY_OR_NOW 0
18126 extern "C" void exit (int);
18129 void fnord() { int i=42;}
18132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18133 int status = $lt_dlunknown;
18137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18138 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18139 /* dlclose (self); */
18145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18146 (eval $ac_link) 2>&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18150 (.
/conftest
; exit; ) 2>/dev
/null
18152 case x
$lt_status in
18153 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18154 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18155 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
18158 # compilation failed
18159 lt_cv_dlopen_self_static
=no
18166 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18167 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18170 CPPFLAGS
="$save_CPPFLAGS"
18171 LDFLAGS
="$save_LDFLAGS"
18176 case $lt_cv_dlopen_self in
18177 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18178 *) enable_dlopen_self
=unknown
;;
18181 case $lt_cv_dlopen_self_static in
18182 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18183 *) enable_dlopen_self_static
=unknown
;;
18188 # The else clause should only fire when bootstrapping the
18189 # libtool distribution, otherwise you forgot to ship ltmain.sh
18190 # with your package, and you will get complaints that there are
18191 # no rules to generate ltmain.sh.
18192 if test -f "$ltmain"; then
18193 # See if we are running on zsh, and set the options which allow our commands through
18194 # without removal of \ escapes.
18195 if test -n "${ZSH_VERSION+set}" ; then
18196 setopt NO_GLOB_SUBST
18198 # Now quote all the things that may contain metacharacters while being
18199 # careful not to overquote the AC_SUBSTed values. We take copies of the
18200 # variables and quote the copies for generation of the libtool script.
18201 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18202 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18203 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18204 deplibs_check_method reload_flag reload_cmds need_locks \
18205 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18206 lt_cv_sys_global_symbol_to_c_name_address \
18207 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18208 old_postinstall_cmds old_postuninstall_cmds \
18212 lt_prog_compiler_wl_GCJ \
18213 lt_prog_compiler_pic_GCJ \
18214 lt_prog_compiler_static_GCJ \
18215 lt_prog_compiler_no_builtin_flag_GCJ \
18216 export_dynamic_flag_spec_GCJ \
18217 thread_safe_flag_spec_GCJ \
18218 whole_archive_flag_spec_GCJ \
18219 enable_shared_with_static_runtimes_GCJ \
18220 old_archive_cmds_GCJ \
18221 old_archive_from_new_cmds_GCJ \
18222 predep_objects_GCJ \
18223 postdep_objects_GCJ \
18226 compiler_lib_search_path_GCJ \
18228 archive_expsym_cmds_GCJ \
18229 postinstall_cmds_GCJ \
18230 postuninstall_cmds_GCJ \
18231 old_archive_from_expsyms_cmds_GCJ \
18232 allow_undefined_flag_GCJ \
18233 no_undefined_flag_GCJ \
18234 export_symbols_cmds_GCJ \
18235 hardcode_libdir_flag_spec_GCJ \
18236 hardcode_libdir_flag_spec_ld_GCJ \
18237 hardcode_libdir_separator_GCJ \
18238 hardcode_automatic_GCJ \
18240 module_expsym_cmds_GCJ \
18241 lt_cv_prog_compiler_c_o_GCJ \
18242 exclude_expsyms_GCJ \
18243 include_expsyms_GCJ
; do
18246 old_archive_cmds_GCJ | \
18247 old_archive_from_new_cmds_GCJ | \
18248 archive_cmds_GCJ | \
18249 archive_expsym_cmds_GCJ | \
18250 module_cmds_GCJ | \
18251 module_expsym_cmds_GCJ | \
18252 old_archive_from_expsyms_cmds_GCJ | \
18253 export_symbols_cmds_GCJ | \
18254 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18255 postinstall_cmds | postuninstall_cmds | \
18256 old_postinstall_cmds | old_postuninstall_cmds | \
18257 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18258 # Double-quote double-evaled strings.
18259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18268 *'\$0 --fallback-echo"')
18269 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18275 cat <<__EOF__ >> "$cfgfile"
18276 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18280 # Shell to use when invoking shell scripts.
18283 # Whether or not to build shared libraries.
18284 build_libtool_libs=$enable_shared
18286 # Whether or not to build static libraries.
18287 build_old_libs=$enable_static
18289 # Whether or not to add -lc for building shared libraries.
18290 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18292 # Whether or not to disallow shared libs when runtime libs are static
18293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18295 # Whether or not to optimize for fast installation.
18296 fast_install=$enable_fast_install
18299 host_alias=$host_alias
18302 # An echo program that does not interpret backslashes.
18307 AR_FLAGS=$lt_AR_FLAGS
18312 # A language-specific compiler.
18313 CC=$lt_compiler_GCJ
18315 # Is the compiler the GNU C compiler?
18321 # The linker used to build libraries.
18324 # Whether we need hard or soft links.
18327 # A BSD-compatible nm program.
18330 # A symbol stripping program
18333 # Used to examine libraries when file_magic_cmd begins "file"
18334 MAGIC_CMD=$MAGIC_CMD
18336 # Used on cygwin: DLL creation program.
18339 # Used on cygwin: object dumper.
18342 # Used on cygwin: assembler.
18345 # The name of the directory that contains temporary libtool files.
18348 # How to create reloadable object files.
18349 reload_flag=$lt_reload_flag
18350 reload_cmds=$lt_reload_cmds
18352 # How to pass a linker flag through the compiler.
18353 wl=$lt_lt_prog_compiler_wl_GCJ
18355 # Object file suffix (normally "o").
18356 objext="$ac_objext"
18358 # Old archive suffix (normally "a").
18361 # Shared library suffix (normally ".so").
18364 # Executable file suffix (normally "").
18367 # Additional compiler flags for building library objects.
18368 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18371 # What is the maximum length of a command?
18372 max_cmd_len=$lt_cv_sys_max_cmd_len
18374 # Does compiler simultaneously support -c and -o options?
18375 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18377 # Must we lock files when doing compilation ?
18378 need_locks=$lt_need_locks
18380 # Do we need the lib prefix for modules?
18381 need_lib_prefix=$need_lib_prefix
18383 # Do we need a version for libraries?
18384 need_version=$need_version
18386 # Whether dlopen is supported.
18387 dlopen_support=$enable_dlopen
18389 # Whether dlopen of programs is supported.
18390 dlopen_self=$enable_dlopen_self
18392 # Whether dlopen of statically linked programs is supported.
18393 dlopen_self_static=$enable_dlopen_self_static
18395 # Compiler flag to prevent dynamic linking.
18396 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18398 # Compiler flag to turn off builtin functions.
18399 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18401 # Compiler flag to allow reflexive dlopens.
18402 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18404 # Compiler flag to generate shared objects directly from archives.
18405 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18407 # Compiler flag to generate thread-safe objects.
18408 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18410 # Library versioning type.
18411 version_type=$version_type
18413 # Format of library name prefix.
18414 libname_spec=$lt_libname_spec
18416 # List of archive names. First name is the real one, the rest are links.
18417 # The last name is the one that the linker finds with -lNAME.
18418 library_names_spec=$lt_library_names_spec
18420 # The coded name of the library, if different from the real name.
18421 soname_spec=$lt_soname_spec
18423 # Commands used to build and install an old-style archive.
18425 old_archive_cmds=$lt_old_archive_cmds_GCJ
18426 old_postinstall_cmds=$lt_old_postinstall_cmds
18427 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18429 # Create an old-style archive from a shared archive.
18430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18432 # Create a temporary old-style archive to link instead of a shared archive.
18433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18435 # Commands used to build and install a shared archive.
18436 archive_cmds=$lt_archive_cmds_GCJ
18437 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18438 postinstall_cmds=$lt_postinstall_cmds
18439 postuninstall_cmds=$lt_postuninstall_cmds
18441 # Commands used to build a loadable module (assumed same as above if empty)
18442 module_cmds=$lt_module_cmds_GCJ
18443 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18445 # Commands to strip libraries.
18446 old_striplib=$lt_old_striplib
18447 striplib=$lt_striplib
18449 # Dependencies to place before the objects being linked to create a
18451 predep_objects=$lt_predep_objects_GCJ
18453 # Dependencies to place after the objects being linked to create a
18455 postdep_objects=$lt_postdep_objects_GCJ
18457 # Dependencies to place before the objects being linked to create a
18459 predeps=$lt_predeps_GCJ
18461 # Dependencies to place after the objects being linked to create a
18463 postdeps=$lt_postdeps_GCJ
18465 # The library search path used internally by the compiler when linking
18466 # a shared library.
18467 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18469 # Method to check whether dependent libraries are shared objects.
18470 deplibs_check_method=$lt_deplibs_check_method
18472 # Command to use when deplibs_check_method == file_magic.
18473 file_magic_cmd=$lt_file_magic_cmd
18475 # Flag that allows shared libraries with undefined symbols to be built.
18476 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18478 # Flag that forces no undefined symbols.
18479 no_undefined_flag=$lt_no_undefined_flag_GCJ
18481 # Commands used to finish a libtool library installation in a directory.
18482 finish_cmds=$lt_finish_cmds
18484 # Same as above, but a single script fragment to be evaled but not shown.
18485 finish_eval=$lt_finish_eval
18487 # Take the output of nm and produce a listing of raw symbols and C names.
18488 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18490 # Transform the output of nm in a proper C declaration
18491 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18493 # Transform the output of nm in a C name address pair
18494 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18496 # This is the shared library runtime path variable.
18497 runpath_var=$runpath_var
18499 # This is the shared library path variable.
18500 shlibpath_var=$shlibpath_var
18502 # Is shlibpath searched before the hard-coded library search path?
18503 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18505 # How to hardcode a shared library path into an executable.
18506 hardcode_action=$hardcode_action_GCJ
18508 # Whether we should hardcode library paths into libraries.
18509 hardcode_into_libs=$hardcode_into_libs
18511 # Flag to hardcode \$libdir into a binary during linking.
18512 # This must work even if \$libdir does not exist.
18513 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18515 # If ld is used when linking, flag to hardcode \$libdir into
18516 # a binary during linking. This must work even if \$libdir does
18518 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18520 # Whether we need a single -rpath flag with a separated argument.
18521 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18523 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18524 # resulting binary.
18525 hardcode_direct=$hardcode_direct_GCJ
18527 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18528 # resulting binary.
18529 hardcode_minus_L=$hardcode_minus_L_GCJ
18531 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18532 # the resulting binary.
18533 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18535 # Set to yes if building a shared library automatically hardcodes DIR into the library
18536 # and all subsequent libraries and executables linked against it.
18537 hardcode_automatic=$hardcode_automatic_GCJ
18539 # Variables whose values should be saved in libtool wrapper scripts and
18540 # restored at relink time.
18541 variables_saved_for_relink="$variables_saved_for_relink"
18543 # Whether libtool must link a program against all its dependency libraries.
18544 link_all_deplibs=$link_all_deplibs_GCJ
18546 # Compile-time system search path for libraries
18547 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18549 # Run-time system search path for libraries
18550 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18552 # Fix the shell variable \$srcfile for the compiler.
18553 fix_srcfile_path="$fix_srcfile_path_GCJ"
18555 # Set to yes if exported symbols are required.
18556 always_export_symbols=$always_export_symbols_GCJ
18558 # The commands to list exported symbols.
18559 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18561 # The commands to extract the exported symbol list from a shared archive.
18562 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18564 # Symbols that should not be listed in the preloaded symbols.
18565 exclude_expsyms=$lt_exclude_expsyms_GCJ
18567 # Symbols that must always be exported.
18568 include_expsyms=$lt_include_expsyms_GCJ
18570 # ### END LIBTOOL TAG CONFIG: $tagname
18576 # If there is no Makefile yet, we rely on a make rule to execute
18577 # `config.status --recheck' to rerun these tests and create the
18578 # libtool script then.
18579 test -f Makefile
&& make "$ltmain"
18584 ac_cpp
='$CPP $CPPFLAGS'
18585 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18586 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18587 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18600 # Source file extension for RC test sources.
18603 # Object file extension for compiled RC test sources.
18607 # Code to be used in simple compile tests
18608 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18610 # Code to be used in simple link tests
18611 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18613 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18615 # If no C compiler was specified, use CC.
18618 # Allow CC to be a program name with arguments.
18622 # Allow CC to be a program name with arguments.
18627 lt_cv_prog_compiler_c_o_RC
=yes
18629 # The else clause should only fire when bootstrapping the
18630 # libtool distribution, otherwise you forgot to ship ltmain.sh
18631 # with your package, and you will get complaints that there are
18632 # no rules to generate ltmain.sh.
18633 if test -f "$ltmain"; then
18634 # See if we are running on zsh, and set the options which allow our commands through
18635 # without removal of \ escapes.
18636 if test -n "${ZSH_VERSION+set}" ; then
18637 setopt NO_GLOB_SUBST
18639 # Now quote all the things that may contain metacharacters while being
18640 # careful not to overquote the AC_SUBSTed values. We take copies of the
18641 # variables and quote the copies for generation of the libtool script.
18642 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18645 deplibs_check_method reload_flag reload_cmds need_locks \
18646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18647 lt_cv_sys_global_symbol_to_c_name_address \
18648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18649 old_postinstall_cmds old_postuninstall_cmds \
18653 lt_prog_compiler_wl_RC \
18654 lt_prog_compiler_pic_RC \
18655 lt_prog_compiler_static_RC \
18656 lt_prog_compiler_no_builtin_flag_RC \
18657 export_dynamic_flag_spec_RC \
18658 thread_safe_flag_spec_RC \
18659 whole_archive_flag_spec_RC \
18660 enable_shared_with_static_runtimes_RC \
18661 old_archive_cmds_RC \
18662 old_archive_from_new_cmds_RC \
18663 predep_objects_RC \
18664 postdep_objects_RC \
18667 compiler_lib_search_path_RC \
18669 archive_expsym_cmds_RC \
18670 postinstall_cmds_RC \
18671 postuninstall_cmds_RC \
18672 old_archive_from_expsyms_cmds_RC \
18673 allow_undefined_flag_RC \
18674 no_undefined_flag_RC \
18675 export_symbols_cmds_RC \
18676 hardcode_libdir_flag_spec_RC \
18677 hardcode_libdir_flag_spec_ld_RC \
18678 hardcode_libdir_separator_RC \
18679 hardcode_automatic_RC \
18681 module_expsym_cmds_RC \
18682 lt_cv_prog_compiler_c_o_RC \
18683 exclude_expsyms_RC \
18684 include_expsyms_RC
; do
18687 old_archive_cmds_RC | \
18688 old_archive_from_new_cmds_RC | \
18689 archive_cmds_RC | \
18690 archive_expsym_cmds_RC | \
18692 module_expsym_cmds_RC | \
18693 old_archive_from_expsyms_cmds_RC | \
18694 export_symbols_cmds_RC | \
18695 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18696 postinstall_cmds | postuninstall_cmds | \
18697 old_postinstall_cmds | old_postuninstall_cmds | \
18698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18699 # Double-quote double-evaled strings.
18700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18709 *'\$0 --fallback-echo"')
18710 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18716 cat <<__EOF__ >> "$cfgfile"
18717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18721 # Shell to use when invoking shell scripts.
18724 # Whether or not to build shared libraries.
18725 build_libtool_libs=$enable_shared
18727 # Whether or not to build static libraries.
18728 build_old_libs=$enable_static
18730 # Whether or not to add -lc for building shared libraries.
18731 build_libtool_need_lc=$archive_cmds_need_lc_RC
18733 # Whether or not to disallow shared libs when runtime libs are static
18734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18736 # Whether or not to optimize for fast installation.
18737 fast_install=$enable_fast_install
18740 host_alias=$host_alias
18743 # An echo program that does not interpret backslashes.
18748 AR_FLAGS=$lt_AR_FLAGS
18753 # A language-specific compiler.
18756 # Is the compiler the GNU C compiler?
18762 # The linker used to build libraries.
18765 # Whether we need hard or soft links.
18768 # A BSD-compatible nm program.
18771 # A symbol stripping program
18774 # Used to examine libraries when file_magic_cmd begins "file"
18775 MAGIC_CMD=$MAGIC_CMD
18777 # Used on cygwin: DLL creation program.
18780 # Used on cygwin: object dumper.
18783 # Used on cygwin: assembler.
18786 # The name of the directory that contains temporary libtool files.
18789 # How to create reloadable object files.
18790 reload_flag=$lt_reload_flag
18791 reload_cmds=$lt_reload_cmds
18793 # How to pass a linker flag through the compiler.
18794 wl=$lt_lt_prog_compiler_wl_RC
18796 # Object file suffix (normally "o").
18797 objext="$ac_objext"
18799 # Old archive suffix (normally "a").
18802 # Shared library suffix (normally ".so").
18805 # Executable file suffix (normally "").
18808 # Additional compiler flags for building library objects.
18809 pic_flag=$lt_lt_prog_compiler_pic_RC
18812 # What is the maximum length of a command?
18813 max_cmd_len=$lt_cv_sys_max_cmd_len
18815 # Does compiler simultaneously support -c and -o options?
18816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18818 # Must we lock files when doing compilation ?
18819 need_locks=$lt_need_locks
18821 # Do we need the lib prefix for modules?
18822 need_lib_prefix=$need_lib_prefix
18824 # Do we need a version for libraries?
18825 need_version=$need_version
18827 # Whether dlopen is supported.
18828 dlopen_support=$enable_dlopen
18830 # Whether dlopen of programs is supported.
18831 dlopen_self=$enable_dlopen_self
18833 # Whether dlopen of statically linked programs is supported.
18834 dlopen_self_static=$enable_dlopen_self_static
18836 # Compiler flag to prevent dynamic linking.
18837 link_static_flag=$lt_lt_prog_compiler_static_RC
18839 # Compiler flag to turn off builtin functions.
18840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18842 # Compiler flag to allow reflexive dlopens.
18843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18845 # Compiler flag to generate shared objects directly from archives.
18846 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18848 # Compiler flag to generate thread-safe objects.
18849 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18851 # Library versioning type.
18852 version_type=$version_type
18854 # Format of library name prefix.
18855 libname_spec=$lt_libname_spec
18857 # List of archive names. First name is the real one, the rest are links.
18858 # The last name is the one that the linker finds with -lNAME.
18859 library_names_spec=$lt_library_names_spec
18861 # The coded name of the library, if different from the real name.
18862 soname_spec=$lt_soname_spec
18864 # Commands used to build and install an old-style archive.
18866 old_archive_cmds=$lt_old_archive_cmds_RC
18867 old_postinstall_cmds=$lt_old_postinstall_cmds
18868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18870 # Create an old-style archive from a shared archive.
18871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18873 # Create a temporary old-style archive to link instead of a shared archive.
18874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18876 # Commands used to build and install a shared archive.
18877 archive_cmds=$lt_archive_cmds_RC
18878 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18879 postinstall_cmds=$lt_postinstall_cmds
18880 postuninstall_cmds=$lt_postuninstall_cmds
18882 # Commands used to build a loadable module (assumed same as above if empty)
18883 module_cmds=$lt_module_cmds_RC
18884 module_expsym_cmds=$lt_module_expsym_cmds_RC
18886 # Commands to strip libraries.
18887 old_striplib=$lt_old_striplib
18888 striplib=$lt_striplib
18890 # Dependencies to place before the objects being linked to create a
18892 predep_objects=$lt_predep_objects_RC
18894 # Dependencies to place after the objects being linked to create a
18896 postdep_objects=$lt_postdep_objects_RC
18898 # Dependencies to place before the objects being linked to create a
18900 predeps=$lt_predeps_RC
18902 # Dependencies to place after the objects being linked to create a
18904 postdeps=$lt_postdeps_RC
18906 # The library search path used internally by the compiler when linking
18907 # a shared library.
18908 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18910 # Method to check whether dependent libraries are shared objects.
18911 deplibs_check_method=$lt_deplibs_check_method
18913 # Command to use when deplibs_check_method == file_magic.
18914 file_magic_cmd=$lt_file_magic_cmd
18916 # Flag that allows shared libraries with undefined symbols to be built.
18917 allow_undefined_flag=$lt_allow_undefined_flag_RC
18919 # Flag that forces no undefined symbols.
18920 no_undefined_flag=$lt_no_undefined_flag_RC
18922 # Commands used to finish a libtool library installation in a directory.
18923 finish_cmds=$lt_finish_cmds
18925 # Same as above, but a single script fragment to be evaled but not shown.
18926 finish_eval=$lt_finish_eval
18928 # Take the output of nm and produce a listing of raw symbols and C names.
18929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18931 # Transform the output of nm in a proper C declaration
18932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18934 # Transform the output of nm in a C name address pair
18935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18937 # This is the shared library runtime path variable.
18938 runpath_var=$runpath_var
18940 # This is the shared library path variable.
18941 shlibpath_var=$shlibpath_var
18943 # Is shlibpath searched before the hard-coded library search path?
18944 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18946 # How to hardcode a shared library path into an executable.
18947 hardcode_action=$hardcode_action_RC
18949 # Whether we should hardcode library paths into libraries.
18950 hardcode_into_libs=$hardcode_into_libs
18952 # Flag to hardcode \$libdir into a binary during linking.
18953 # This must work even if \$libdir does not exist.
18954 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18956 # If ld is used when linking, flag to hardcode \$libdir into
18957 # a binary during linking. This must work even if \$libdir does
18959 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18961 # Whether we need a single -rpath flag with a separated argument.
18962 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18964 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18965 # resulting binary.
18966 hardcode_direct=$hardcode_direct_RC
18968 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18969 # resulting binary.
18970 hardcode_minus_L=$hardcode_minus_L_RC
18972 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18973 # the resulting binary.
18974 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18976 # Set to yes if building a shared library automatically hardcodes DIR into the library
18977 # and all subsequent libraries and executables linked against it.
18978 hardcode_automatic=$hardcode_automatic_RC
18980 # Variables whose values should be saved in libtool wrapper scripts and
18981 # restored at relink time.
18982 variables_saved_for_relink="$variables_saved_for_relink"
18984 # Whether libtool must link a program against all its dependency libraries.
18985 link_all_deplibs=$link_all_deplibs_RC
18987 # Compile-time system search path for libraries
18988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18990 # Run-time system search path for libraries
18991 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18993 # Fix the shell variable \$srcfile for the compiler.
18994 fix_srcfile_path="$fix_srcfile_path_RC"
18996 # Set to yes if exported symbols are required.
18997 always_export_symbols=$always_export_symbols_RC
18999 # The commands to list exported symbols.
19000 export_symbols_cmds=$lt_export_symbols_cmds_RC
19002 # The commands to extract the exported symbol list from a shared archive.
19003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19005 # Symbols that should not be listed in the preloaded symbols.
19006 exclude_expsyms=$lt_exclude_expsyms_RC
19008 # Symbols that must always be exported.
19009 include_expsyms=$lt_include_expsyms_RC
19011 # ### END LIBTOOL TAG CONFIG: $tagname
19017 # If there is no Makefile yet, we rely on a make rule to execute
19018 # `config.status --recheck' to rerun these tests and create the
19019 # libtool script then.
19020 test -f Makefile
&& make "$ltmain"
19025 ac_cpp
='$CPP $CPPFLAGS'
19026 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19027 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19028 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19035 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19036 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19037 { (exit 1); exit 1; }; }
19041 # Append the new tag name to the list of available tags.
19042 if test -n "$tagname" ; then
19043 available_tags
="$available_tags $tagname"
19049 # Now substitute the updated list of available tags.
19050 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19051 mv "${ofile}T" "$ofile"
19055 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19056 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19057 { (exit 1); exit 1; }; }
19063 # This can be used to rebuild libtool when needed
19064 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19066 # Always use our own libtool.
19067 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19069 # Prevent multiple expansion
19091 ac_cpp
='$CPP $CPPFLAGS'
19092 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19093 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19094 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19095 if test -n "$ac_tool_prefix"; then
19096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19097 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
19098 echo "$as_me:$LINENO: checking for $ac_word" >&5
19099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19100 if test "${ac_cv_prog_CC+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 if test -n "$CC"; then
19104 ac_cv_prog_CC
="$CC" # Let the user override the test.
19106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19107 for as_dir
in $PATH
19110 test -z "$as_dir" && as_dir
=.
19111 for ac_exec_ext
in '' $ac_executable_extensions; do
19112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19113 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
19114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19123 if test -n "$CC"; then
19124 echo "$as_me:$LINENO: result: $CC" >&5
19125 echo "${ECHO_T}$CC" >&6
19127 echo "$as_me:$LINENO: result: no" >&5
19128 echo "${ECHO_T}no" >&6
19132 if test -z "$ac_cv_prog_CC"; then
19134 # Extract the first word of "gcc", so it can be a program name with args.
19135 set dummy gcc
; ac_word
=$2
19136 echo "$as_me:$LINENO: checking for $ac_word" >&5
19137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19141 if test -n "$ac_ct_CC"; then
19142 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
19144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19145 for as_dir
in $PATH
19148 test -z "$as_dir" && as_dir
=.
19149 for ac_exec_ext
in '' $ac_executable_extensions; do
19150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19151 ac_cv_prog_ac_ct_CC
="gcc"
19152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19160 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
19161 if test -n "$ac_ct_CC"; then
19162 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19163 echo "${ECHO_T}$ac_ct_CC" >&6
19165 echo "$as_me:$LINENO: result: no" >&5
19166 echo "${ECHO_T}no" >&6
19171 CC
="$ac_cv_prog_CC"
19174 if test -z "$CC"; then
19175 if test -n "$ac_tool_prefix"; then
19176 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19177 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
19178 echo "$as_me:$LINENO: checking for $ac_word" >&5
19179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19180 if test "${ac_cv_prog_CC+set}" = set; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
19183 if test -n "$CC"; then
19184 ac_cv_prog_CC
="$CC" # Let the user override the test.
19186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19187 for as_dir
in $PATH
19190 test -z "$as_dir" && as_dir
=.
19191 for ac_exec_ext
in '' $ac_executable_extensions; do
19192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19193 ac_cv_prog_CC
="${ac_tool_prefix}cc"
19194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19203 if test -n "$CC"; then
19204 echo "$as_me:$LINENO: result: $CC" >&5
19205 echo "${ECHO_T}$CC" >&6
19207 echo "$as_me:$LINENO: result: no" >&5
19208 echo "${ECHO_T}no" >&6
19212 if test -z "$ac_cv_prog_CC"; then
19214 # Extract the first word of "cc", so it can be a program name with args.
19215 set dummy cc
; ac_word
=$2
19216 echo "$as_me:$LINENO: checking for $ac_word" >&5
19217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19221 if test -n "$ac_ct_CC"; then
19222 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
19224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19225 for as_dir
in $PATH
19228 test -z "$as_dir" && as_dir
=.
19229 for ac_exec_ext
in '' $ac_executable_extensions; do
19230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19231 ac_cv_prog_ac_ct_CC
="cc"
19232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19240 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
19241 if test -n "$ac_ct_CC"; then
19242 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19243 echo "${ECHO_T}$ac_ct_CC" >&6
19245 echo "$as_me:$LINENO: result: no" >&5
19246 echo "${ECHO_T}no" >&6
19251 CC
="$ac_cv_prog_CC"
19255 if test -z "$CC"; then
19256 # Extract the first word of "cc", so it can be a program name with args.
19257 set dummy cc
; ac_word
=$2
19258 echo "$as_me:$LINENO: checking for $ac_word" >&5
19259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19260 if test "${ac_cv_prog_CC+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19263 if test -n "$CC"; then
19264 ac_cv_prog_CC
="$CC" # Let the user override the test.
19266 ac_prog_rejected
=no
19267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19268 for as_dir
in $PATH
19271 test -z "$as_dir" && as_dir
=.
19272 for ac_exec_ext
in '' $ac_executable_extensions; do
19273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19275 ac_prog_rejected
=yes
19279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19285 if test $ac_prog_rejected = yes; then
19286 # We found a bogon in the path, so make sure we never use it.
19287 set dummy
$ac_cv_prog_CC
19289 if test $# != 0; then
19290 # We chose a different compiler from the bogus one.
19291 # However, it has the same basename, so the bogon will be chosen
19292 # first if we set CC to just the basename; use the full file name.
19294 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
19300 if test -n "$CC"; then
19301 echo "$as_me:$LINENO: result: $CC" >&5
19302 echo "${ECHO_T}$CC" >&6
19304 echo "$as_me:$LINENO: result: no" >&5
19305 echo "${ECHO_T}no" >&6
19309 if test -z "$CC"; then
19310 if test -n "$ac_tool_prefix"; then
19313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19314 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
19315 echo "$as_me:$LINENO: checking for $ac_word" >&5
19316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19317 if test "${ac_cv_prog_CC+set}" = set; then
19318 echo $ECHO_N "(cached) $ECHO_C" >&6
19320 if test -n "$CC"; then
19321 ac_cv_prog_CC
="$CC" # Let the user override the test.
19323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19324 for as_dir
in $PATH
19327 test -z "$as_dir" && as_dir
=.
19328 for ac_exec_ext
in '' $ac_executable_extensions; do
19329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19330 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
19331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19340 if test -n "$CC"; then
19341 echo "$as_me:$LINENO: result: $CC" >&5
19342 echo "${ECHO_T}$CC" >&6
19344 echo "$as_me:$LINENO: result: no" >&5
19345 echo "${ECHO_T}no" >&6
19348 test -n "$CC" && break
19351 if test -z "$CC"; then
19355 # Extract the first word of "$ac_prog", so it can be a program name with args.
19356 set dummy
$ac_prog; ac_word
=$2
19357 echo "$as_me:$LINENO: checking for $ac_word" >&5
19358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 if test -n "$ac_ct_CC"; then
19363 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
19365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19366 for as_dir
in $PATH
19369 test -z "$as_dir" && as_dir
=.
19370 for ac_exec_ext
in '' $ac_executable_extensions; do
19371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19372 ac_cv_prog_ac_ct_CC
="$ac_prog"
19373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19381 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
19382 if test -n "$ac_ct_CC"; then
19383 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19384 echo "${ECHO_T}$ac_ct_CC" >&6
19386 echo "$as_me:$LINENO: result: no" >&5
19387 echo "${ECHO_T}no" >&6
19390 test -n "$ac_ct_CC" && break
19399 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19400 See \`config.log' for more details." >&5
19401 echo "$as_me: error: no acceptable C compiler found in \$PATH
19402 See \`config.log' for more details." >&2;}
19403 { (exit 1); exit 1; }; }
19405 # Provide some information about the compiler.
19406 echo "$as_me:$LINENO:" \
19407 "checking for C compiler version" >&5
19408 ac_compiler
=`set X $ac_compile; echo $2`
19409 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19410 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }
19414 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19415 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }
19419 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19420 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }
19425 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19426 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19427 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19430 cat >conftest.
$ac_ext <<_ACEOF
19433 cat confdefs.h
>>conftest.
$ac_ext
19434 cat >>conftest.
$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19448 rm -f conftest.
$ac_objext
19449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19450 (eval $ac_compile) 2>conftest.er1
19452 grep -v '^ *+' conftest.er1
>conftest.err
19454 cat conftest.err
>&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } &&
19457 { ac_try
='test -z "$ac_c_werror_flag"
19458 || test ! -s conftest.err'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; } &&
19464 { ac_try
='test -s conftest.$ac_objext'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; }; then
19470 ac_compiler_gnu
=yes
19472 echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.
$ac_ext >&5
19477 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19478 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
19481 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19482 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19483 GCC
=`test $ac_compiler_gnu = yes && echo yes`
19484 ac_test_CFLAGS
=${CFLAGS+set}
19485 ac_save_CFLAGS
=$CFLAGS
19487 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19488 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19489 if test "${ac_cv_prog_cc_g+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 cat >conftest.
$ac_ext <<_ACEOF
19495 cat confdefs.h
>>conftest.
$ac_ext
19496 cat >>conftest.
$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19507 rm -f conftest.
$ac_objext
19508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19509 (eval $ac_compile) 2>conftest.er1
19511 grep -v '^ *+' conftest.er1
>conftest.err
19513 cat conftest.err
>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } &&
19516 { ac_try
='test -z "$ac_c_werror_flag"
19517 || test ! -s conftest.err'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; } &&
19523 { ac_try
='test -s conftest.$ac_objext'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; }; then
19529 ac_cv_prog_cc_g
=yes
19531 echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.
$ac_ext >&5
19536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19539 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19540 if test "$ac_test_CFLAGS" = set; then
19541 CFLAGS
=$ac_save_CFLAGS
19542 elif test $ac_cv_prog_cc_g = yes; then
19543 if test "$GCC" = yes; then
19549 if test "$GCC" = yes; then
19555 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19556 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19557 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19558 echo $ECHO_N "(cached) $ECHO_C" >&6
19560 ac_cv_prog_cc_stdc
=no
19562 cat >conftest.
$ac_ext <<_ACEOF
19565 cat confdefs.h
>>conftest.
$ac_ext
19566 cat >>conftest.
$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 #include <stdarg.h>
19570 #include <sys/types.h>
19571 #include <sys/stat.h>
19572 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19573 struct buf { int x; };
19574 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19575 static char *e (p, i)
19581 static char *f (char * (*g) (char **, int), char **p, ...)
19586 s = g (p, va_arg (v,int));
19591 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19592 function prototypes and stuff, but not '\xHH' hex character constants.
19593 These don't provoke an error unfortunately, instead are silently treated
19594 as 'x'. The following induces an error, until -std1 is added to get
19595 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19596 array size at least. It's necessary to write '\x00'==0 to get something
19597 that's true only with -std1. */
19598 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19600 int test (int i, double x);
19601 struct s1 {int (*f) (int a);};
19602 struct s2 {int (*f) (double a);};
19603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19609 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19614 # Don't try gcc -ansi; that turns off useful extensions and
19615 # breaks some systems' header files.
19616 # AIX -qlanglvl=ansi
19617 # Ultrix and OSF/1 -std1
19618 # HP-UX 10.20 and later -Ae
19619 # HP-UX older versions -Aa -D_HPUX_SOURCE
19620 # SVR4 -Xc -D__EXTENSIONS__
19621 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19623 CC
="$ac_save_CC $ac_arg"
19624 rm -f conftest.
$ac_objext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19626 (eval $ac_compile) 2>conftest.er1
19628 grep -v '^ *+' conftest.er1
>conftest.err
19630 cat conftest.err
>&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try
='test -z "$ac_c_werror_flag"
19634 || test ! -s conftest.err'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try
='test -s conftest.$ac_objext'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19646 ac_cv_prog_cc_stdc
=$ac_arg
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.
$ac_ext >&5
19653 rm -f conftest.err conftest.
$ac_objext
19655 rm -f conftest.
$ac_ext conftest.
$ac_objext
19660 case "x$ac_cv_prog_cc_stdc" in
19662 echo "$as_me:$LINENO: result: none needed" >&5
19663 echo "${ECHO_T}none needed" >&6 ;;
19665 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19666 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19667 CC
="$CC $ac_cv_prog_cc_stdc" ;;
19670 # Some people use a C++ compiler to compile C. Since we use `exit',
19671 # in C++ we need to declare it. In case someone uses the same compiler
19672 # for both compiling C and C++ we need to have the C++ compiler decide
19673 # the declaration of exit, since it's the most demanding environment.
19674 cat >conftest.
$ac_ext <<_ACEOF
19675 #ifndef __cplusplus
19679 rm -f conftest.
$ac_objext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19681 (eval $ac_compile) 2>conftest.er1
19683 grep -v '^ *+' conftest.er1
>conftest.err
19685 cat conftest.err
>&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
19688 { ac_try
='test -z "$ac_c_werror_flag"
19689 || test ! -s conftest.err'
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; } &&
19695 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
19701 for ac_declaration
in \
19703 'extern "C" void std::exit (int) throw (); using std::exit;' \
19704 'extern "C" void std::exit (int); using std::exit;' \
19705 'extern "C" void exit (int) throw ();' \
19706 'extern "C" void exit (int);' \
19709 cat >conftest.
$ac_ext <<_ACEOF
19712 cat confdefs.h
>>conftest.
$ac_ext
19713 cat >>conftest.
$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19716 #include <stdlib.h>
19725 rm -f conftest.
$ac_objext
19726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19727 (eval $ac_compile) 2>conftest.er1
19729 grep -v '^ *+' conftest.er1
>conftest.err
19731 cat conftest.err
>&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } &&
19734 { ac_try
='test -z "$ac_c_werror_flag"
19735 || test ! -s conftest.err'
19736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737 (eval $ac_try) 2>&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; } &&
19741 { ac_try
='test -s conftest.$ac_objext'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19749 echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.
$ac_ext >&5
19754 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19755 cat >conftest.
$ac_ext <<_ACEOF
19758 cat confdefs.h
>>conftest.
$ac_ext
19759 cat >>conftest.
$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19770 rm -f conftest.
$ac_objext
19771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772 (eval $ac_compile) 2>conftest.er1
19774 grep -v '^ *+' conftest.er1
>conftest.err
19776 cat conftest.err
>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
19779 { ac_try
='test -z "$ac_c_werror_flag"
19780 || test ! -s conftest.err'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try
='test -s conftest.$ac_objext'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.
$ac_ext >&5
19798 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19801 if test -n "$ac_declaration"; then
19802 echo '#ifdef __cplusplus' >>confdefs.h
19803 echo $ac_declaration >>confdefs.h
19804 echo '#endif' >>confdefs.h
19808 echo "$as_me: failed program was:" >&5
19809 sed 's/^/| /' conftest.
$ac_ext >&5
19812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19814 ac_cpp
='$CPP $CPPFLAGS'
19815 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19816 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19817 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19819 depcc
="$CC" am_compiler_list
=
19821 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19822 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19823 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19827 # We make a subdir and do the tests there. Otherwise we can end up
19828 # making bogus files that we don't know about and never remove. For
19829 # instance it was reported that on HP-UX the gcc test will end up
19830 # making a dummy file named `D' -- because `-MD' means `put the output
19833 # Copy depcomp to subdir because otherwise we won't find it if we're
19834 # using a relative directory.
19835 cp "$am_depcomp" conftest.dir
19837 # We will build objects and dependencies in a subdirectory because
19838 # it helps to detect inapplicable dependency modes. For instance
19839 # both Tru64's cc and ICC support -MD to output dependencies as a
19840 # side effect of compilation, but ICC will put the dependencies in
19841 # the current directory while Tru64 will put them in the object
19845 am_cv_CC_dependencies_compiler_type
=none
19846 if test "$am_compiler_list" = ""; then
19847 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19849 for depmode
in $am_compiler_list; do
19850 # Setup a source with many dependencies, because some compilers
19851 # like to wrap large dependency lists on column 80 (with \), and
19852 # we should not choose a depcomp mode which is confused by this.
19854 # We need to recreate these files for each test, as the compiler may
19855 # overwrite some of them when testing with obscure command lines.
19856 # This happens at least with the AIX C compiler.
19858 for i
in 1 2 3 4 5 6; do
19859 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
19860 : > sub
/conftst
$i.h
19862 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19866 # after this tag, mechanisms are not by side-effect, so they'll
19867 # only be used when explicitly requested
19868 if test "x$enable_dependency_tracking" = xyes
; then
19876 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19877 # mode. It turns out that the SunPro C++ compiler does not properly
19878 # handle `-M -o', and we need to detect this.
19879 if depmode
=$depmode \
19880 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
19881 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
19882 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
19883 >/dev
/null
2>conftest.err
&&
19884 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
19885 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
19886 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
19887 # icc doesn't choke on unknown options, it will just issue warnings
19888 # (even with -Werror). So we grep stderr for any message
19889 # that says an option was ignored.
19890 if grep 'ignoring option' conftest.err
>/dev
/null
2>&1; then :; else
19891 am_cv_CC_dependencies_compiler_type
=$depmode
19898 rm -rf conftest.dir
19900 am_cv_CC_dependencies_compiler_type
=none
19904 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19905 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19906 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
19911 test "x$enable_dependency_tracking" != xno \
19912 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
19913 am__fastdepCC_TRUE
=
19914 am__fastdepCC_FALSE
='#'
19916 am__fastdepCC_TRUE
='#'
19917 am__fastdepCC_FALSE
=
19921 # Find a good install program. We prefer a C program (faster),
19922 # so one script is as good as another. But avoid the broken or
19923 # incompatible versions:
19924 # SysV /etc/install, /usr/sbin/install
19925 # SunOS /usr/etc/install
19926 # IRIX /sbin/install
19928 # AmigaOS /C/install, which installs bootblocks on floppy discs
19929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19932 # OS/2's system install, which has a completely different semantic
19933 # ./install, which can be erroneously created by make from ./install.sh.
19934 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19935 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19936 if test -z "$INSTALL"; then
19937 if test "${ac_cv_path_install+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19941 for as_dir
in $PATH
19944 test -z "$as_dir" && as_dir
=.
19945 # Account for people who put trailing slashes in PATH elements.
19947 .
/ | .
// |
/cC
/* | \
19948 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
19949 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
19952 # OSF1 and SCO ODT 3.0 have their own names for install.
19953 # Don't use installbsd from OSF since it installs stuff as root
19955 for ac_prog
in ginstall scoinst
install; do
19956 for ac_exec_ext
in '' $ac_executable_extensions; do
19957 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19958 if test $ac_prog = install &&
19959 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
19960 # AIX install. It has an incompatible calling convention.
19962 elif test $ac_prog = install &&
19963 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
19964 # program-specific install script used by HP pwplus--don't use.
19967 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
19979 if test "${ac_cv_path_install+set}" = set; then
19980 INSTALL
=$ac_cv_path_install
19982 # As a last resort, use the slow shell script. We don't cache a
19983 # path for INSTALL within a source directory, because that will
19984 # break other packages using the cache if that directory is
19985 # removed, or if the path is relative.
19986 INSTALL
=$ac_install_sh
19989 echo "$as_me:$LINENO: result: $INSTALL" >&5
19990 echo "${ECHO_T}$INSTALL" >&6
19992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19993 # It thinks the first close brace ends the variable substitution.
19994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
19996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
19998 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
20001 # The alpha architecture needs special flags for binary portability
20004 CFLAGS
="$CFLAGS -mcpu=ev4 -Wa,-mall"
20007 ac_default_prefix
=/boot
/develop
/tools
/gnupro
20009 *-*-cygwin* |
*-*-mingw32*)
20010 if test "$build" != "$target"; then # cross-compiling
20011 ac_default_prefix
=/usr
/local
/cross-tools
/i386-mingw32msvc
20021 if test -z "$PKG_CONFIG"; then
20022 # Extract the first word of "pkg-config", so it can be a program name with args.
20023 set dummy pkg-config
; ac_word
=$2
20024 echo "$as_me:$LINENO: checking for $ac_word" >&5
20025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20026 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20027 echo $ECHO_N "(cached) $ECHO_C" >&6
20029 case $PKG_CONFIG in
20031 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
20034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20035 for as_dir
in $PATH
20038 test -z "$as_dir" && as_dir
=.
20039 for ac_exec_ext
in '' $ac_executable_extensions; do
20040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20041 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
20042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20048 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
20052 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
20054 if test -n "$PKG_CONFIG"; then
20055 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20056 echo "${ECHO_T}$PKG_CONFIG" >&6
20058 echo "$as_me:$LINENO: result: no" >&5
20059 echo "${ECHO_T}no" >&6
20064 if test "$PKG_CONFIG" = "no" ; then
20065 echo "*** The pkg-config script could not be found. Make sure it is"
20066 echo "*** in your path, or set the PKG_CONFIG environment variable"
20067 echo "*** to the full path to pkg-config."
20068 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20070 PKG_CONFIG_MIN_VERSION
=0.9.0
20071 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20072 echo "$as_me:$LINENO: checking for pango >= 1.2.0" >&5
20073 echo $ECHO_N "checking for pango >= 1.2.0... $ECHO_C" >&6
20075 if $PKG_CONFIG --exists "pango >= 1.2.0" ; then
20076 echo "$as_me:$LINENO: result: yes" >&5
20077 echo "${ECHO_T}yes" >&6
20080 echo "$as_me:$LINENO: checking PANGO_CFLAGS" >&5
20081 echo $ECHO_N "checking PANGO_CFLAGS... $ECHO_C" >&6
20082 PANGO_CFLAGS
=`$PKG_CONFIG --cflags "pango >= 1.2.0"`
20083 echo "$as_me:$LINENO: result: $PANGO_CFLAGS" >&5
20084 echo "${ECHO_T}$PANGO_CFLAGS" >&6
20086 echo "$as_me:$LINENO: checking PANGO_LIBS" >&5
20087 echo $ECHO_N "checking PANGO_LIBS... $ECHO_C" >&6
20088 PANGO_LIBS
=`$PKG_CONFIG --libs "pango >= 1.2.0"`
20089 echo "$as_me:$LINENO: result: $PANGO_LIBS" >&5
20090 echo "${ECHO_T}$PANGO_LIBS" >&6
20094 ## If we have a custom action on failure, don't print errors, but
20095 ## do set a variable so people can do so.
20096 PANGO_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "pango >= 1.2.0"`
20103 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20104 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20108 if test $succeeded = yes; then
20111 { { echo "$as_me:$LINENO: error: *** pango >= 1.2.0 not found!" >&5
20112 echo "$as_me: error: *** pango >= 1.2.0 not found!" >&2;}
20113 { (exit 1); exit 1; }; }
20116 CFLAGS
="$CFLAGS $PANGO_CFLAGS"
20117 LIBS
="$LIBS $PANGO_LIBS"
20122 if test -z "$PKG_CONFIG"; then
20123 # Extract the first word of "pkg-config", so it can be a program name with args.
20124 set dummy pkg-config
; ac_word
=$2
20125 echo "$as_me:$LINENO: checking for $ac_word" >&5
20126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20127 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 case $PKG_CONFIG in
20132 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
20135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20136 for as_dir
in $PATH
20139 test -z "$as_dir" && as_dir
=.
20140 for ac_exec_ext
in '' $ac_executable_extensions; do
20141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20142 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
20143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20149 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
20153 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
20155 if test -n "$PKG_CONFIG"; then
20156 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20157 echo "${ECHO_T}$PKG_CONFIG" >&6
20159 echo "$as_me:$LINENO: result: no" >&5
20160 echo "${ECHO_T}no" >&6
20165 if test "$PKG_CONFIG" = "no" ; then
20166 echo "*** The pkg-config script could not be found. Make sure it is"
20167 echo "*** in your path, or set the PKG_CONFIG environment variable"
20168 echo "*** to the full path to pkg-config."
20169 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20171 PKG_CONFIG_MIN_VERSION
=0.9.0
20172 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20173 echo "$as_me:$LINENO: checking for pangoft2 >= 1.2.0" >&5
20174 echo $ECHO_N "checking for pangoft2 >= 1.2.0... $ECHO_C" >&6
20176 if $PKG_CONFIG --exists "pangoft2 >= 1.2.0" ; then
20177 echo "$as_me:$LINENO: result: yes" >&5
20178 echo "${ECHO_T}yes" >&6
20181 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20182 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
20183 PANGOFT2_CFLAGS
=`$PKG_CONFIG --cflags "pangoft2 >= 1.2.0"`
20184 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20185 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
20187 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20188 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
20189 PANGOFT2_LIBS
=`$PKG_CONFIG --libs "pangoft2 >= 1.2.0"`
20190 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20191 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
20195 ## If we have a custom action on failure, don't print errors, but
20196 ## do set a variable so people can do so.
20197 PANGOFT2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.2.0"`
20204 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20205 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20209 if test $succeeded = yes; then
20212 { { echo "$as_me:$LINENO: error: *** pangoft2 >= 1.2.0 not found!" >&5
20213 echo "$as_me: error: *** pangoft2 >= 1.2.0 not found!" >&2;}
20214 { (exit 1); exit 1; }; }
20217 CFLAGS
="$CFLAGS $PANGOFT2_CFLAGS"
20218 LIBS
="$LIBS $PANGOFT2_LIBS"
20224 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
20225 if test "${with_sdl_prefix+set}" = set; then
20226 withval
="$with_sdl_prefix"
20227 sdl_prefix
="$withval"
20232 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
20233 if test "${with_sdl_exec_prefix+set}" = set; then
20234 withval
="$with_sdl_exec_prefix"
20235 sdl_exec_prefix
="$withval"
20239 # Check whether --enable-sdltest or --disable-sdltest was given.
20240 if test "${enable_sdltest+set}" = set; then
20241 enableval
="$enable_sdltest"
20247 if test x
$sdl_exec_prefix != x
; then
20248 sdl_args
="$sdl_args --exec-prefix=$sdl_exec_prefix"
20249 if test x
${SDL_CONFIG+set} != xset
; then
20250 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
20253 if test x
$sdl_prefix != x
; then
20254 sdl_args
="$sdl_args --prefix=$sdl_prefix"
20255 if test x
${SDL_CONFIG+set} != xset
; then
20256 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
20261 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
20262 # Extract the first word of "sdl-config", so it can be a program name with args.
20263 set dummy sdl-config
; ac_word
=$2
20264 echo "$as_me:$LINENO: checking for $ac_word" >&5
20265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20266 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 case $SDL_CONFIG in
20271 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
20274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20275 for as_dir
in $PATH
20278 test -z "$as_dir" && as_dir
=.
20279 for ac_exec_ext
in '' $ac_executable_extensions; do
20280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20281 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
20282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20288 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
20292 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
20294 if test -n "$SDL_CONFIG"; then
20295 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
20296 echo "${ECHO_T}$SDL_CONFIG" >&6
20298 echo "$as_me:$LINENO: result: no" >&5
20299 echo "${ECHO_T}no" >&6
20302 min_sdl_version
=$SDL_VERSION
20303 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
20304 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
20306 if test "$SDL_CONFIG" = "no" ; then
20309 SDL_CFLAGS
=`$SDL_CONFIG $sdlconf_args --cflags`
20310 SDL_LIBS
=`$SDL_CONFIG $sdlconf_args --libs`
20312 sdl_major_version
=`$SDL_CONFIG $sdl_args --version | \
20313 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20314 sdl_minor_version
=`$SDL_CONFIG $sdl_args --version | \
20315 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20316 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
20317 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20318 if test "x$enable_sdltest" = "xyes" ; then
20319 ac_save_CFLAGS
="$CFLAGS"
20320 ac_save_LIBS
="$LIBS"
20321 CFLAGS
="$CFLAGS $SDL_CFLAGS"
20322 LIBS
="$LIBS $SDL_LIBS"
20324 if test "$cross_compiling" = yes; then
20325 echo $ac_n "cross compiling; assumed OK... $ac_c"
20327 cat >conftest.
$ac_ext <<_ACEOF
20330 cat confdefs.h
>>conftest.
$ac_ext
20331 cat >>conftest.
$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20335 #include <stdlib.h>
20336 #include <string.h>
20340 my_strdup (char *str)
20346 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
20347 strcpy (new_str, str);
20355 int main (int argc, char *argv[])
20357 int major, minor, micro;
20360 /* This hangs on some systems (?)
20361 system ("touch conf.sdltest");
20363 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
20365 /* HP/UX 9 (%@#!) writes to sscanf strings */
20366 tmp_version = my_strdup("$min_sdl_version");
20367 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
20368 printf("%s, bad version string\n", "$min_sdl_version");
20372 if (($sdl_major_version > major) ||
20373 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
20374 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
20380 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
20381 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
20382 printf("*** best to upgrade to the required version.\n");
20383 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
20384 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
20385 printf("*** config.cache before re-running configure\n");
20392 rm -f conftest
$ac_exeext
20393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20394 (eval $ac_link) 2>&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399 (eval $ac_try) 2>&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; }; then
20405 echo "$as_me: program exited with status $ac_status" >&5
20406 echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.
$ac_ext >&5
20409 ( exit $ac_status )
20412 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20414 CFLAGS
="$ac_save_CFLAGS"
20415 LIBS
="$ac_save_LIBS"
20418 if test "x$no_sdl" = x
; then
20419 echo "$as_me:$LINENO: result: yes" >&5
20420 echo "${ECHO_T}yes" >&6
20423 echo "$as_me:$LINENO: result: no" >&5
20424 echo "${ECHO_T}no" >&6
20425 if test "$SDL_CONFIG" = "no" ; then
20426 echo "*** The sdl-config script installed by SDL could not be found"
20427 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
20428 echo "*** your path, or set the SDL_CONFIG environment variable to the"
20429 echo "*** full path to sdl-config."
20431 if test -f conf.sdltest
; then
20434 echo "*** Could not run SDL test program, checking why..."
20435 CFLAGS
="$CFLAGS $SDL_CFLAGS"
20436 LIBS
="$LIBS $SDL_LIBS"
20437 cat >conftest.
$ac_ext <<_ACEOF
20440 cat confdefs.h
>>conftest.
$ac_ext
20441 cat >>conftest.
$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20447 int main(int argc, char *argv[])
20450 #define main K_and_R_C_main
20460 rm -f conftest.
$ac_objext conftest
$ac_exeext
20461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20462 (eval $ac_link) 2>conftest.er1
20464 grep -v '^ *+' conftest.er1
>conftest.err
20466 cat conftest.err
>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
20469 { ac_try
='test -z "$ac_c_werror_flag"
20470 || test ! -s conftest.err'
20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; } &&
20476 { ac_try
='test -s conftest$ac_exeext'
20477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478 (eval $ac_try) 2>&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; }; then
20482 echo "*** The test program compiled, but did not run. This usually means"
20483 echo "*** that the run-time linker is not finding SDL or finding the wrong"
20484 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
20485 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20486 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20487 echo "*** is required on your system"
20489 echo "*** If you have an old version installed, it is best to remove it, although"
20490 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20492 echo "$as_me: failed program was:" >&5
20493 sed 's/^/| /' conftest.
$ac_ext >&5
20495 echo "*** The test program failed to compile or link. See the file config.log for the"
20496 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
20497 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
20498 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
20500 rm -f conftest.err conftest.
$ac_objext \
20501 conftest
$ac_exeext conftest.
$ac_ext
20502 CFLAGS
="$ac_save_CFLAGS"
20503 LIBS
="$ac_save_LIBS"
20508 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
20509 echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
20510 { (exit 1); exit 1; }; }
20517 CFLAGS
="$CFLAGS $SDL_CFLAGS"
20518 LIBS
="$LIBS $SDL_LIBS"
20520 ac_config_files
="$ac_config_files Makefile src/Makefile SDL_Pango.pc docs/Makefile docs/Doxyfile VisualC2003/Makefile Wix/Makefile Wix/merge_module.xml Wix/dev.xml Wix/testbench.xml"
20523 # Finally create all the generated files
20524 cat >confcache
<<\_ACEOF
20525 # This file is a shell script that caches the results of configure
20526 # tests run on this system so they can be shared between configure
20527 # scripts and configure runs, see configure's option --config-cache.
20528 # It is not useful on other systems. If it contains results you don't
20529 # want to keep, you may remove or edit it.
20531 # config.status only pays attention to the cache file if you give it
20532 # the --recheck option to rerun configure.
20534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20536 # following values.
20540 # The following way of writing the cache mishandles newlines in values,
20541 # but we know of no workaround that is simple, portable, and efficient.
20542 # So, don't put newlines in cache variables' values.
20543 # Ultrix sh set writes to stderr and can't be redirected directly,
20544 # and sets the high bit in the cache file unless we assign to the vars.
20547 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20549 # `set' does not quote correctly, so add quotes (double-quote
20550 # substitution turns \\\\ into \\, and sed turns \\ into \).
20553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20556 # `set' quotes correctly as required by POSIX, so do not add quotes.
20558 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20565 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20567 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20569 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
20570 if test -w $cache_file; then
20571 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20572 cat confcache
>$cache_file
20574 echo "not updating unwritable cache $cache_file"
20579 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20580 # Let make expand exec_prefix.
20581 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20583 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20584 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20585 # trailing colons and then remove the whole line if VPATH becomes empty
20586 # (actually we leave an empty line to preserve line numbers).
20587 if test "x$srcdir" = x.
; then
20588 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
20589 s/:*\$(srcdir):*/:/;
20590 s/:*\${srcdir}:*/:/;
20592 s/^\([^=]*=[ ]*\):*/\1/;
20598 # Transform confdefs.h into DEFS.
20599 # Protect against shell expansion while executing Makefile rules.
20600 # Protect against Makefile macro expansion.
20602 # If the first sed substitution is executed (which looks for macros that
20603 # take arguments), then we branch to the quote section. Otherwise,
20604 # look for a macro that doesn't take arguments.
20605 cat >confdef2opt.
sed <<\_ACEOF
20608 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
20610 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
20614 s
,[ `~#$^&*(){}\\|;'"<>?],\\&,g
20620 # We use echo to avoid assuming a particular line-breaking character.
20621 # The extra dot is to prevent the shell from consuming trailing
20622 # line-breaks from the sub-command output. A line-break within
20623 # single-quotes doesn't work because, if this script is created in a
20624 # platform that uses two characters for line-breaks (e.g., DOS), tr
20626 ac_LF_and_DOT=`echo; echo .
`
20627 DEFS=`sed -n -f confdef2opt.
sed confdefs.h |
tr "$ac_LF_and_DOT" ' .'`
20628 rm -f confdef2opt.sed
20633 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20634 # 1. Remove the extension, and $U if already installed.
20635 ac_i=`echo "$ac_i" |
20636 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20638 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20639 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20641 LIBOBJS=$ac_libobjs
20643 LTLIBOBJS=$ac_ltlibobjs
20646 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20647 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20648 Usually this means the macro was only invoked conditionally." >&5
20649 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20650 Usually this means the macro was only invoked conditionally." >&2;}
20651 { (exit 1); exit 1; }; }
20653 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20654 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20655 Usually this means the macro was only invoked conditionally." >&5
20656 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20657 Usually this means the macro was only invoked conditionally." >&2;}
20658 { (exit 1); exit 1; }; }
20660 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20661 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20662 Usually this means the macro was only invoked conditionally." >&5
20663 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20664 Usually this means the macro was only invoked conditionally." >&2;}
20665 { (exit 1); exit 1; }; }
20667 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20668 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20669 Usually this means the macro was only invoked conditionally." >&5
20670 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20671 Usually this means the macro was only invoked conditionally." >&2;}
20672 { (exit 1); exit 1; }; }
20675 : ${CONFIG_STATUS=./config.status}
20676 ac_clean_files_save=$ac_clean_files
20677 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20678 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20679 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20680 cat >$CONFIG_STATUS <<_ACEOF
20682 # Generated by $as_me.
20683 # Run this file to recreate the current configuration.
20684 # Compiler output produced by configure, useful for debugging
20685 # configure, is in config.log if it exists.
20688 ac_cs_recheck=false
20690 SHELL=\${CONFIG_SHELL-$SHELL}
20693 cat >>$CONFIG_STATUS <<\_ACEOF
20694 ## --------------------- ##
20695 ## M4sh Initialization. ##
20696 ## --------------------- ##
20698 # Be Bourne compatible
20699 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20702 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20703 # is contrary to our usage. Disable this feature.
20704 alias -g '${1+"$@"}'='"$@"'
20705 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20708 DUALCASE=1; export DUALCASE # for MKS sh
20710 # Support unset when possible.
20711 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20718 # Work around bugs in pre-3.0 UWIN ksh.
20719 $as_unset ENV MAIL MAILPATH
20726 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20727 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20728 LC_TELEPHONE LC_TIME
20730 if (set +x; test -z "`(eval $as_var=C
; export $as_var) 2>&1`"); then
20731 eval $as_var=C; export $as_var
20737 # Required to use basename.
20738 if expr a : '\(a\)' >/dev/null 2>&1; then
20744 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20745 as_basename=basename
20751 # Name of the executable.
20752 as_me=`$as_basename "$0" ||
20753 $as_expr X
/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20754 X
"$0" : 'X\(//\)$' \| \
20755 X
"$0" : 'X\(/\)$' \| \
20756 .
: '\(.\)' 2>/dev
/null ||
20758 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20759 /^X\/\(\/\/\)$/{ s//\1/; q; }
20760 /^X\/\(\/\).*/{ s//\1/; q; }
20764 # PATH needs CR, and LINENO needs CR and PATH.
20765 # Avoid depending upon Character Ranges.
20766 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20767 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20768 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20769 as_cr_digits='0123456789'
20770 as_cr_alnum=$as_cr_Letters$as_cr_digits
20772 # The user is always right.
20773 if test "${PATH_SEPARATOR+set}" != set; then
20774 echo "#! /bin/sh" >conf$$.sh
20775 echo "exit 0" >>conf$$.sh
20777 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20786 as_lineno_1=$LINENO
20787 as_lineno_2=$LINENO
20788 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
20789 test "x$as_lineno_1" != "x$as_lineno_2" &&
20790 test "x$as_lineno_3" = "x$as_lineno_2" || {
20791 # Find who we are. Look in the path if we contain no path at all
20794 *[\\/]* ) as_myself=$0 ;;
20795 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20796 for as_dir in $PATH
20799 test -z "$as_dir" && as_dir=.
20800 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20805 # We did not find ourselves, most probably we were run as `sh COMMAND
'
20806 # in which case we are not to be found in the path.
20807 if test "x$as_myself" = x; then
20810 if test ! -f "$as_myself"; then
20811 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20812 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20813 { (exit 1); exit 1; }; }
20815 case $CONFIG_SHELL in
20817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20818 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20821 test -z "$as_dir" && as_dir=.
20822 for as_base in sh bash ksh sh5; do
20825 if ("$as_dir/$as_base" -c '
20826 as_lineno_1
=$LINENO
20827 as_lineno_2
=$LINENO
20828 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
20829 test "x$as_lineno_1" != "x$as_lineno_2" &&
20830 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20831 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20832 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20833 CONFIG_SHELL=$as_dir/$as_base
20834 export CONFIG_SHELL
20835 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20843 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20844 # uniformly replaced by the line number. The first 'sed' inserts a
20845 # line-number line before each line; the second 'sed' does the real
20846 # work. The second script uses 'N
' to pair each line-number line
20847 # with the numbered line, and appends trailing '-' during
20848 # substitution so that $LINENO is not a special case at line end.
20849 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20850 # second 'sed' script. Blame Lee E. McMahon for sed's syntax.
:-)
20851 sed '=' <$as_myself |
20856 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20859 s,^['$as_cr_digits']*\n,,
20860 ' >$as_me.lineno
&&
20861 chmod +x
$as_me.lineno ||
20862 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20863 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20864 { (exit 1); exit 1; }; }
20866 # Don't try to exec as it changes $[0], causing all sort of problems
20867 # (the dirname of $[0] is not the place where we might find the
20868 # original and so on. Autoconf is especially sensible to this).
20870 # Exit status is that of the last command.
20875 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20876 *c
*,-n*) ECHO_N
= ECHO_C
='
20878 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
20879 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
20882 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20888 rm -f conf$$ conf$$.exe conf$$.
file
20890 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20891 # We could just check for DJGPP; but this test a) works b) is more generic
20892 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20893 if test -f conf$$.exe
; then
20894 # Don't use ln at all; we don't have any links
20899 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20904 rm -f conf$$ conf$$.exe conf$$.
file
20906 if mkdir
-p .
2>/dev
/null
; then
20909 test -d .
/-p && rmdir .
/-p
20913 as_executable_p
="test -f"
20915 # Sed expression to map a string onto a valid CPP name.
20916 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20918 # Sed expression to map a string onto a valid variable name.
20919 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20923 # We need space, tab and new line, in precisely that order.
20933 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20934 # report actual input values of CONFIG_FILES etc. instead of their
20935 # values after options handling. Logging --version etc. is OK.
20939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20940 ## Running $as_me. ##
20945 This file was extended by $as_me, which was
20946 generated by GNU Autoconf 2.59. Invocation command line was
20948 CONFIG_FILES = $CONFIG_FILES
20949 CONFIG_HEADERS = $CONFIG_HEADERS
20950 CONFIG_LINKS = $CONFIG_LINKS
20951 CONFIG_COMMANDS = $CONFIG_COMMANDS
20955 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20959 # Files that config.status was made for.
20960 if test -n "$ac_config_files"; then
20961 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20964 if test -n "$ac_config_headers"; then
20965 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20968 if test -n "$ac_config_links"; then
20969 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20972 if test -n "$ac_config_commands"; then
20973 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20976 cat >>$CONFIG_STATUS <<\_ACEOF
20979 \`$as_me' instantiates files from templates according to the
20980 current configuration.
20982 Usage: $0 [OPTIONS] [FILE]...
20984 -h, --help print this help, then exit
20985 -V, --version print version number, then exit
20986 -q, --quiet do not print progress messages
20987 -d, --debug don't remove temporary files
20988 --recheck update $as_me by reconfiguring in the same conditions
20989 --file=FILE[:TEMPLATE]
20990 instantiate the configuration file FILE
20992 Configuration files:
20995 Configuration commands:
20998 Report bugs to <bug-autoconf@gnu.org>."
21001 cat >>$CONFIG_STATUS <<_ACEOF
21004 configured by $0, generated by GNU Autoconf 2.59,
21005 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21007 Copyright (C) 2003 Free Software Foundation, Inc.
21008 This config.status script is free software; the Free Software Foundation
21009 gives unlimited permission to copy, distribute and modify it."
21014 cat >>$CONFIG_STATUS <<\_ACEOF
21015 # If no file are specified by the user, then we need to provide default
21016 # value. By we need to know if files were specified by the user.
21022 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21023 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21031 *) # This is not an option, so the user has probably given explicit
21034 ac_need_defaults
=false
;;
21038 # Handling of the options.
21040 cat >>$CONFIG_STATUS <<\_ACEOF
21041 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21043 --version |
--vers* |
-V )
21044 echo "$ac_cs_version"; exit 0 ;;
21046 # Conflict between --help and --header
21047 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21048 Try \`$0 --help' for more information." >&5
21049 echo "$as_me: error: ambiguous option: $1
21050 Try \`$0 --help' for more information." >&2;}
21051 { (exit 1); exit 1; }; };;
21052 --help |
--hel |
-h )
21053 echo "$ac_cs_usage"; exit 0 ;;
21054 --debug |
--d* |
-d )
21056 --file |
--fil |
--fi |
--f )
21058 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21059 ac_need_defaults
=false
;;
21060 --header |
--heade |
--head |
--hea )
21062 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21063 ac_need_defaults
=false
;;
21064 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21065 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21068 # This is an error.
21069 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21070 Try \`$0 --help' for more information." >&5
21071 echo "$as_me: error: unrecognized option: $1
21072 Try \`$0 --help' for more information." >&2;}
21073 { (exit 1); exit 1; }; } ;;
21075 *) ac_config_targets
="$ac_config_targets $1" ;;
21081 ac_configure_extra_args
=
21083 if $ac_cs_silent; then
21085 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21089 cat >>$CONFIG_STATUS <<_ACEOF
21090 if \$ac_cs_recheck; then
21091 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21092 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21097 cat >>$CONFIG_STATUS <<_ACEOF
21099 # INIT-COMMANDS section.
21102 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21108 cat >>$CONFIG_STATUS <<\_ACEOF
21109 for ac_config_target
in $ac_config_targets
21111 case "$ac_config_target" in
21112 # Handling of arguments.
21113 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21114 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
21115 "SDL_Pango.pc" ) CONFIG_FILES
="$CONFIG_FILES SDL_Pango.pc" ;;
21116 "docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
21117 "docs/Doxyfile" ) CONFIG_FILES
="$CONFIG_FILES docs/Doxyfile" ;;
21118 "VisualC2003/Makefile" ) CONFIG_FILES
="$CONFIG_FILES VisualC2003/Makefile" ;;
21119 "Wix/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Wix/Makefile" ;;
21120 "Wix/merge_module.xml" ) CONFIG_FILES
="$CONFIG_FILES Wix/merge_module.xml" ;;
21121 "Wix/dev.xml" ) CONFIG_FILES
="$CONFIG_FILES Wix/dev.xml" ;;
21122 "Wix/testbench.xml" ) CONFIG_FILES
="$CONFIG_FILES Wix/testbench.xml" ;;
21123 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
21124 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21125 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21126 { (exit 1); exit 1; }; };;
21130 # If the user did not use the arguments to specify the items to instantiate,
21131 # then the envvar interface is used. Set only those that are not.
21132 # We use the long form for the default assignment because of an extremely
21133 # bizarre bug on SunOS 4.1.3.
21134 if $ac_need_defaults; then
21135 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21136 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21139 # Have a temporary directory for convenience. Make it in the build tree
21140 # simply because there is no reason to put it here, and in addition,
21141 # creating and moving files from /tmp can sometimes cause problems.
21142 # Create a temporary directory, and hook for its removal unless debugging.
21145 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21146 trap '{ (exit 1); exit 1; }' 1 2 13 15
21149 # Create a (secure) tmp directory for tmp files.
21152 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21153 test -n "$tmp" && test -d "$tmp"
21156 tmp
=.
/confstat$$
-$RANDOM
21157 (umask 077 && mkdir
$tmp)
21160 echo "$me: cannot create a temporary directory in ." >&2
21161 { (exit 1); exit 1; }
21166 cat >>$CONFIG_STATUS <<_ACEOF
21169 # CONFIG_FILES section.
21172 # No need to generate the scripts if there are no CONFIG_FILES.
21173 # This happens for instance when ./config.status config.h
21174 if test -n "\$CONFIG_FILES"; then
21175 # Protect against being on the right side of a sed subst in config.status.
21176 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21177 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21178 s,@SHELL@,$SHELL,;t t
21179 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21180 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21181 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21182 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21183 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21184 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21185 s,@exec_prefix@,$exec_prefix,;t t
21186 s,@prefix@,$prefix,;t t
21187 s,@program_transform_name@,$program_transform_name,;t t
21188 s,@bindir@,$bindir,;t t
21189 s,@sbindir@,$sbindir,;t t
21190 s,@libexecdir@,$libexecdir,;t t
21191 s,@datadir@,$datadir,;t t
21192 s,@sysconfdir@,$sysconfdir,;t t
21193 s,@sharedstatedir@,$sharedstatedir,;t t
21194 s,@localstatedir@,$localstatedir,;t t
21195 s,@libdir@,$libdir,;t t
21196 s,@includedir@,$includedir,;t t
21197 s,@oldincludedir@,$oldincludedir,;t t
21198 s,@infodir@,$infodir,;t t
21199 s,@mandir@,$mandir,;t t
21200 s,@build_alias@,$build_alias,;t t
21201 s,@host_alias@,$host_alias,;t t
21202 s,@target_alias@,$target_alias,;t t
21203 s,@DEFS@,$DEFS,;t t
21204 s,@ECHO_C@,$ECHO_C,;t t
21205 s,@ECHO_N@,$ECHO_N,;t t
21206 s,@ECHO_T@,$ECHO_T,;t t
21207 s,@LIBS@,$LIBS,;t t
21208 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
21209 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
21210 s,@MICRO_VERSION@,$MICRO_VERSION,;t t
21211 s,@INTERFACE_AGE@,$INTERFACE_AGE,;t t
21212 s,@BINARY_AGE@,$BINARY_AGE,;t t
21213 s,@VERSION@,$VERSION,;t t
21214 s,@LT_RELEASE@,$LT_RELEASE,;t t
21215 s,@LT_CURRENT@,$LT_CURRENT,;t t
21216 s,@LT_REVISION@,$LT_REVISION,;t t
21217 s,@LT_AGE@,$LT_AGE,;t t
21218 s,@build@,$build,;t t
21219 s,@build_cpu@,$build_cpu,;t t
21220 s,@build_vendor@,$build_vendor,;t t
21221 s,@build_os@,$build_os,;t t
21222 s,@host@,$host,;t t
21223 s,@host_cpu@,$host_cpu,;t t
21224 s,@host_vendor@,$host_vendor,;t t
21225 s,@host_os@,$host_os,;t t
21226 s,@target@,$target,;t t
21227 s,@target_cpu@,$target_cpu,;t t
21228 s,@target_vendor@,$target_vendor,;t t
21229 s,@target_os@,$target_os,;t t
21230 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21231 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21232 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21233 s,@CYGPATH_W@,$CYGPATH_W,;t t
21234 s,@PACKAGE@,$PACKAGE,;t t
21235 s,@ACLOCAL@,$ACLOCAL,;t t
21236 s,@AUTOCONF@,$AUTOCONF,;t t
21237 s,@AUTOMAKE@,$AUTOMAKE,;t t
21238 s,@AUTOHEADER@,$AUTOHEADER,;t t
21239 s,@MAKEINFO@,$MAKEINFO,;t t
21240 s,@AMTAR@,$AMTAR,;t t
21241 s,@install_sh@,$install_sh,;t t
21242 s,@STRIP@,$STRIP,;t t
21243 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21244 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21245 s,@mkdir_p@,$mkdir_p,;t t
21247 s,@SET_MAKE@,$SET_MAKE,;t t
21248 s,@am__leading_dot@,$am__leading_dot,;t t
21250 s,@CFLAGS@,$CFLAGS,;t t
21251 s,@LDFLAGS@,$LDFLAGS,;t t
21252 s,@CPPFLAGS@,$CPPFLAGS,;t t
21253 s,@ac_ct_CC@,$ac_ct_CC,;t t
21254 s,@EXEEXT@,$EXEEXT,;t t
21255 s,@OBJEXT@,$OBJEXT,;t t
21256 s,@DEPDIR@,$DEPDIR,;t t
21257 s,@am__include@,$am__include,;t t
21258 s,@am__quote@,$am__quote,;t t
21259 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21260 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21261 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21262 s,@CCDEPMODE@,$CCDEPMODE,;t t
21263 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21264 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21265 s,@EGREP@,$EGREP,;t t
21266 s,@LN_S@,$LN_S,;t t
21267 s,@ECHO@,$ECHO,;t t
21269 s,@ac_ct_AR@,$ac_ct_AR,;t t
21270 s,@RANLIB@,$RANLIB,;t t
21271 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21272 s,@DLLTOOL@,$DLLTOOL,;t t
21273 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21275 s,@ac_ct_AS@,$ac_ct_AS,;t t
21276 s,@OBJDUMP@,$OBJDUMP,;t t
21277 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21280 s,@CXXFLAGS@,$CXXFLAGS,;t t
21281 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21282 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21283 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21284 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21285 s,@CXXCPP@,$CXXCPP,;t t
21287 s,@FFLAGS@,$FFLAGS,;t t
21288 s,@ac_ct_F77@,$ac_ct_F77,;t t
21289 s,@LIBTOOL@,$LIBTOOL,;t t
21290 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21291 s,@PANGO_CFLAGS@,$PANGO_CFLAGS,;t t
21292 s,@PANGO_LIBS@,$PANGO_LIBS,;t t
21293 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
21294 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
21295 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
21296 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
21297 s,@SDL_LIBS@,$SDL_LIBS,;t t
21298 s,@LIBOBJS@,$LIBOBJS,;t t
21299 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21304 cat >>$CONFIG_STATUS <<\_ACEOF
21305 # Split the substitutions into bite-sized pieces for seds with
21306 # small command number limits, like on Digital OSF/1 and HP-UX.
21307 ac_max_sed_lines
=48
21308 ac_sed_frag
=1 # Number of current file.
21309 ac_beg
=1 # First line for current file.
21310 ac_end
=$ac_max_sed_lines # Line after last line for current file.
21313 while $ac_more_lines; do
21314 if test $ac_beg -gt 1; then
21315 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21317 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21319 if test ! -s $tmp/subs.frag
; then
21320 ac_more_lines
=false
21322 # The purpose of the label and of the branching condition is to
21323 # speed up the sed processing (if there are no `@' at all, there
21324 # is no need to browse any of the substitutions).
21325 # These are the two extra sed commands mentioned above.
21327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
21328 if test -z "$ac_sed_cmds"; then
21329 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
21331 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21333 ac_sed_frag
=`expr $ac_sed_frag + 1`
21335 ac_end
=`expr $ac_end + $ac_max_sed_lines`
21338 if test -z "$ac_sed_cmds"; then
21341 fi # test -n "$CONFIG_FILES"
21344 cat >>$CONFIG_STATUS <<\_ACEOF
21345 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
21346 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21348 - |
*:- |
*:-:* ) # input from stdin
21350 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21351 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21352 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21353 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21354 * ) ac_file_in
=$ac_file.
in ;;
21357 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21358 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
21359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21360 X"$ac_file" : 'X\(//\)[^/]' \| \
21361 X"$ac_file" : 'X\(//\)$' \| \
21362 X"$ac_file" : 'X\(/\)' \| \
21363 . : '\(.\)' 2>/dev/null ||
21365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21367 /^X\(\/\/\)$/{ s//\1/; q; }
21368 /^X\(\/\).*/{ s//\1/; q; }
21370 { if $as_mkdir_p; then
21375 while test ! -d "$as_dir"; do
21376 as_dirs
="$as_dir $as_dirs"
21377 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21379 X"$as_dir" : 'X\(//\)[^/]' \| \
21380 X"$as_dir" : 'X\(//\)$' \| \
21381 X"$as_dir" : 'X\(/\)' \| \
21382 . : '\(.\)' 2>/dev/null ||
21384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21386 /^X\(\/\/\)$/{ s//\1/; q; }
21387 /^X\(\/\).*/{ s//\1/; q; }
21390 test ! -n "$as_dirs" || mkdir
$as_dirs
21391 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21392 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21393 { (exit 1); exit 1; }; }; }
21397 if test "$ac_dir" != .
; then
21398 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21399 # A "../" for each directory in $ac_dir_suffix.
21400 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21402 ac_dir_suffix
= ac_top_builddir
=
21406 .
) # No --srcdir option. We are building in place.
21408 if test -z "$ac_top_builddir"; then
21411 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21413 [\\/]* | ?
:[\\/]* ) # Absolute path.
21414 ac_srcdir
=$srcdir$ac_dir_suffix;
21415 ac_top_srcdir
=$srcdir ;;
21416 *) # Relative path.
21417 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21418 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21421 # Do not use `cd foo && pwd` to compute absolute paths, because
21422 # the directories may not exist.
21424 .
) ac_abs_builddir
="$ac_dir";;
21427 .
) ac_abs_builddir
=`pwd`;;
21428 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
21429 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
21432 case $ac_abs_builddir in
21433 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21435 case ${ac_top_builddir}.
in
21436 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
21437 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21438 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
21441 case $ac_abs_builddir in
21442 .
) ac_abs_srcdir
=$ac_srcdir;;
21445 .
) ac_abs_srcdir
=$ac_abs_builddir;;
21446 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
21447 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
21450 case $ac_abs_builddir in
21451 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
21453 case $ac_top_srcdir in
21454 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
21455 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
21456 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
21462 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21463 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
21466 if test x
"$ac_file" != x-
; then
21467 { echo "$as_me:$LINENO: creating $ac_file" >&5
21468 echo "$as_me: creating $ac_file" >&6;}
21471 # Let's still pretend it is `configure' which instantiates (i.e., don't
21472 # use $as_me), people would be surprised to read:
21473 # /* config.h. Generated by config.status. */
21474 if test x
"$ac_file" = x-
; then
21477 configure_input
="$ac_file. "
21479 configure_input
=$configure_input"Generated from `echo $ac_file_in |
21480 sed 's,.*/,,'` by configure."
21482 # First look for the input files in the build tree, otherwise in the
21484 ac_file_inputs
=`IFS=:
21485 for f in $ac_file_in; do
21487 -) echo $tmp/stdin ;;
21489 # Absolute (can't be DOS-style, as IFS=:)
21490 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21491 echo "$as_me: error: cannot find input file: $f" >&2;}
21492 { (exit 1); exit 1; }; }
21495 if test -f "$f"; then
21498 elif test -f "$srcdir/$f"; then
21503 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21504 echo "$as_me: error: cannot find input file: $f" >&2;}
21505 { (exit 1); exit 1; }; }
21508 done` ||
{ (exit 1); exit 1; }
21510 cat >>$CONFIG_STATUS <<_ACEOF
21514 cat >>$CONFIG_STATUS <<\_ACEOF
21516 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21517 s
,@configure_input@
,$configure_input,;t t
21518 s
,@srcdir@
,$ac_srcdir,;t t
21519 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
21520 s
,@top_srcdir@
,$ac_top_srcdir,;t t
21521 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
21522 s
,@builddir@
,$ac_builddir,;t t
21523 s
,@abs_builddir@
,$ac_abs_builddir,;t t
21524 s
,@top_builddir@
,$ac_top_builddir,;t t
21525 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
21526 s
,@INSTALL@
,$ac_INSTALL,;t t
21527 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21529 if test x"$ac_file" != x-; then
21530 mv $tmp/out $ac_file
21538 cat >>$CONFIG_STATUS <<\_ACEOF
21541 # CONFIG_COMMANDS section.
21543 for ac_file in : $CONFIG_COMMANDS; do test "x
$ac_file" = x: && continue
21544 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21545 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21546 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21547 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21548 X"$ac_dest" : 'X\(//\)[^/]' \| \
21549 X"$ac_dest" : 'X\(//\)$' \| \
21550 X"$ac_dest" : 'X\(/\)' \| \
21551 . : '\(.\)' 2>/dev/null ||
21553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21555 /^X\(\/\/\)$/{ s//\1/; q; }
21556 /^X\(\/\).*/{ s//\1/; q; }
21558 { if $as_mkdir_p; then
21563 while test ! -d "$as_dir"; do
21564 as_dirs="$as_dir $as_dirs"
21565 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21566 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21567 X"$as_dir" : 'X\(//\)[^/]' \| \
21568 X"$as_dir" : 'X\(//\)$' \| \
21569 X"$as_dir" : 'X\(/\)' \| \
21570 . : '\(.\)' 2>/dev/null ||
21572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21574 /^X\(\/\/\)$/{ s//\1/; q; }
21575 /^X\(\/\).*/{ s//\1/; q; }
21578 test ! -n "$as_dirs" || mkdir $as_dirs
21579 fi || { { echo "$as_me:$LINENO: error
: cannot create directory
\"$ac_dir\"" >&5
21580 echo "$as_me: error
: cannot create directory
\"$ac_dir\"" >&2;}
21581 { (exit 1); exit 1; }; }; }
21585 if test "$ac_dir" != .; then
21586 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21587 # A "..
/" for each directory in $ac_dir_suffix.
21588 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21590 ac_dir_suffix= ac_top_builddir=
21594 .) # No --srcdir option. We are building in place.
21596 if test -z "$ac_top_builddir"; then
21599 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21601 [\\/]* | ?:[\\/]* ) # Absolute path.
21602 ac_srcdir=$srcdir$ac_dir_suffix;
21603 ac_top_srcdir=$srcdir ;;
21604 *) # Relative path.
21605 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21606 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21609 # Do not use `cd foo && pwd` to compute absolute paths, because
21610 # the directories may not exist.
21612 .) ac_abs_builddir="$ac_dir";;
21615 .) ac_abs_builddir=`pwd`;;
21616 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21617 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21620 case $ac_abs_builddir in
21621 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21623 case ${ac_top_builddir}. in
21624 .) ac_abs_top_builddir=$ac_abs_builddir;;
21625 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21626 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21629 case $ac_abs_builddir in
21630 .) ac_abs_srcdir=$ac_srcdir;;
21633 .) ac_abs_srcdir=$ac_abs_builddir;;
21634 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21635 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21638 case $ac_abs_builddir in
21639 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21641 case $ac_top_srcdir in
21642 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21643 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21644 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21649 { echo "$as_me:$LINENO: executing
$ac_dest commands
" >&5
21650 echo "$as_me: executing
$ac_dest commands
" >&6;}
21652 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21653 # Strip MF so we end up with the name of the file.
21654 mf=`echo "$mf" | sed -e 's/:.*$//'`
21655 # Check whether this is an Automake generated Makefile or not.
21656 # We used to match only the files named `Makefile.in', but
21657 # some people rename them; so instead we look at the file content.
21658 # Grep'ing the first line is not enough: some people post-process
21659 # each Makefile.in and add a new line on top of each file to say so.
21660 # So let's grep whole file.
21661 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21662 dirpart=`(dirname "$mf") 2>/dev/null ||
21663 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21664 X"$mf" : 'X\(//\)[^/]' \| \
21665 X"$mf" : 'X\(//\)$' \| \
21666 X"$mf" : 'X\(/\)' \| \
21667 . : '\(.\)' 2>/dev/null ||
21669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21670 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21671 /^X\(\/\/\)$/{ s//\1/; q; }
21672 /^X\(\/\).*/{ s//\1/; q; }
21677 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21678 # Extract the definition of DEP_FILES from the Makefile without
21680 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21681 test -z "$DEPDIR" && continue
21682 # When using ansi2knr, U may be empty or an underscore; expand it
21683 U=`sed -n -e '/^U = / s///p' < "$mf"`
21684 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21685 # We invoke sed twice because it is the simplest approach to
21686 # changing $(DEPDIR) to its actual value in the expansion.
21687 for file in `sed -n -e '
21688 /^DEP_FILES = .*\\\\$/ {
21697 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21698 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21699 # Make sure the directory exists.
21700 test -f "$dirpart/$file" && continue
21701 fdir=`(dirname "$file") 2>/dev/null ||
21702 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21703 X"$file" : 'X\(//\)[^/]' \| \
21704 X"$file" : 'X\(//\)$' \| \
21705 X"$file" : 'X\(/\)' \| \
21706 . : '\(.\)' 2>/dev/null ||
21708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21710 /^X\(\/\/\)$/{ s//\1/; q; }
21711 /^X\(\/\).*/{ s//\1/; q; }
21713 { if $as_mkdir_p; then
21714 mkdir -p $dirpart/$fdir
21716 as_dir=$dirpart/$fdir
21718 while test ! -d "$as_dir"; do
21719 as_dirs="$as_dir $as_dirs"
21720 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21722 X"$as_dir" : 'X\(//\)[^/]' \| \
21723 X"$as_dir" : 'X\(//\)$' \| \
21724 X"$as_dir" : 'X\(/\)' \| \
21725 . : '\(.\)' 2>/dev/null ||
21727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21729 /^X\(\/\/\)$/{ s//\1/; q; }
21730 /^X\(\/\).*/{ s//\1/; q; }
21733 test ! -n "$as_dirs" || mkdir $as_dirs
21734 fi || { { echo "$as_me:$LINENO: error
: cannot create directory
$dirpart/$fdir" >&5
21735 echo "$as_me: error
: cannot create directory
$dirpart/$fdir" >&2;}
21736 { (exit 1); exit 1; }; }; }
21738 # echo "creating
$dirpart/$file"
21739 echo '# dummy' > "$dirpart/$file"
21747 cat >>$CONFIG_STATUS <<\_ACEOF
21749 { (exit 0); exit 0; }
21751 chmod +x $CONFIG_STATUS
21752 ac_clean_files=$ac_clean_files_save
21755 # configure is writing to config.log, and then calls config.status.
21756 # config.status does its own redirection, appending to config.log.
21757 # Unfortunately, on DOS this fails, as config.log is still kept open
21758 # by configure, so config.status won't be able to write to it; its
21759 # output is simply discarded. So we exec the FD to /dev/null,
21760 # effectively closing config.log, so it can be properly (re)opened and
21761 # appended to by config.status. When coming back to configure, we
21762 # need to make the FD available again.
21763 if test "$no_create" != yes; then
21765 ac_config_status_args=
21766 test "$silent" = yes &&
21767 ac_config_status_args="$ac_config_status_args --quiet"
21769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21772 # would make configure fail if this is the last instruction.
21773 $ac_cs_success || { (exit 1); exit 1; }