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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
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="glib/glibmmconfig.h.in"
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 GLIBMM_MAJOR_VERSION GLIBMM_MINOR_VERSION GLIBMM_MICRO_VERSION GLIBMM_VERSION GLIBMM_RELEASE LIBGLIBMM_SO_VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os PLATFORM_WIN32_TRUE PLATFORM_WIN32_FALSE OS_WIN32_TRUE OS_WIN32_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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL M4 PERL_PATH PKG_CONFIG ac_pt_PKG_CONFIG GLIBMM_CFLAGS GLIBMM_LIBS GTHREAD_CFLAGS GTHREAD_LIBS GTKMM_DOXYGEN_INPUT GTKMMPROC_MERGECDOCS DISABLE_DEPRECATED_CFLAGS DISABLE_DEPRECATED_API_CFLAGS GTKMM_FALSE_TRUE GTKMM_FALSE_FALSE 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
947 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
948 ac_env_PKG_CONFIG_value=$PKG_CONFIG
949 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
951 ac_env_GLIBMM_CFLAGS_set=${GLIBMM_CFLAGS+set}
952 ac_env_GLIBMM_CFLAGS_value=$GLIBMM_CFLAGS
953 ac_cv_env_GLIBMM_CFLAGS_set=${GLIBMM_CFLAGS+set}
954 ac_cv_env_GLIBMM_CFLAGS_value=$GLIBMM_CFLAGS
955 ac_env_GLIBMM_LIBS_set=${GLIBMM_LIBS+set}
956 ac_env_GLIBMM_LIBS_value=$GLIBMM_LIBS
957 ac_cv_env_GLIBMM_LIBS_set=${GLIBMM_LIBS+set}
958 ac_cv_env_GLIBMM_LIBS_value=$GLIBMM_LIBS
959 ac_env_GTHREAD_CFLAGS_set=${GTHREAD_CFLAGS+set}
960 ac_env_GTHREAD_CFLAGS_value=$GTHREAD_CFLAGS
961 ac_cv_env_GTHREAD_CFLAGS_set=${GTHREAD_CFLAGS+set}
962 ac_cv_env_GTHREAD_CFLAGS_value=$GTHREAD_CFLAGS
963 ac_env_GTHREAD_LIBS_set=${GTHREAD_LIBS+set}
964 ac_env_GTHREAD_LIBS_value=$GTHREAD_LIBS
965 ac_cv_env_GTHREAD_LIBS_set=${GTHREAD_LIBS+set}
966 ac_cv_env_GTHREAD_LIBS_value=$GTHREAD_LIBS
969 # Report the --help message.
971 if test "$ac_init_help" = "long"; then
972 # Omit some internal or obsolete options to make the list less imposing.
973 # This message is too long to be a string in the A/UX 3.1 sh.
975 \`configure' configures this package to adapt to many kinds of systems.
977 Usage: $0 [OPTION]... [VAR=VALUE]...
979 To assign environment variables (e.g., CC, CFLAGS...), specify them as
980 VAR=VALUE. See below for descriptions of some of the useful variables.
982 Defaults for the options are specified in brackets.
985 -h, --help display this help and exit
986 --help=short display options specific to this package
987 --help=recursive display the short help of all the included packages
988 -V, --version display version information and exit
989 -q, --quiet, --silent do not print \`checking...' messages
990 --cache-file=FILE cache test results in FILE [disabled]
991 -C, --config-cache alias for \`--cache-file=config.cache'
992 -n, --no-create do not create output files
993 --srcdir=DIR find the sources in DIR [configure dir or \`..']
998 Installation directories:
999 --prefix=PREFIX install architecture-independent files in PREFIX
1000 [$ac_default_prefix]
1001 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1004 By default, \`make install' will install all the files in
1005 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1006 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1007 for instance \`--prefix=\$HOME'.
1009 For better control, use the options below.
1011 Fine tuning of the installation directories:
1012 --bindir=DIR user executables [EPREFIX/bin]
1013 --sbindir=DIR system admin executables [EPREFIX/sbin]
1014 --libexecdir=DIR program executables [EPREFIX/libexec]
1015 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1016 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1017 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1018 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1019 --libdir=DIR object code libraries [EPREFIX/lib]
1020 --includedir=DIR C header files [PREFIX/include]
1021 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1022 --infodir=DIR info documentation [PREFIX/info]
1023 --mandir=DIR man documentation [PREFIX/man]
1029 --program-prefix=PREFIX prepend PREFIX to installed program names
1030 --program-suffix=SUFFIX append SUFFIX to installed program names
1031 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1034 --build=BUILD configure for building on BUILD [guessed]
1035 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1039 if test -n "$ac_init_help"; then
1044 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1045 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1046 --enable-maintainer-mode enable make rules and dependencies not useful
1047 (and sometimes confusing) to the casual installer
1048 --disable-dependency-tracking speeds up one-time build
1049 --enable-dependency-tracking do not reject slow dependency extractors
1050 --enable-static[=PKGS]
1051 build static libraries [default=no]
1052 --enable-shared[=PKGS]
1053 build shared libraries [default=yes]
1054 --enable-fast-install[=PKGS]
1055 optimize for fast installation [default=yes]
1056 --disable-libtool-lock avoid locking (might break parallel builds)
1057 --enable-fulldocs Generate fully-documented reference docs, takes
1058 longer to build. [default=enabled for CVS builds]
1059 --enable-debug-refcounting Print a debug message on every ref/unref.
1061 --enable-warnings=[none|minimum|maximum|hardcore]
1062 Control compiler pickyness. [default=minimum]
1063 --enable-use-deprecations
1064 warn about deprecated usages [default=no]
1065 --enable-deprecated-api Include (build) deprecated API in the libraries.
1067 --enable-api-exceptions Build exceptions API.
1069 --enable-api-properties Build properties API.
1071 --enable-api-vfuncs Build vfuncs API.
1073 --enable-api-default-signal-handlers Build default signal handlers API.
1077 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1078 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1079 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1080 --with-pic try to use only PIC/non-PIC objects [default=use
1083 include additional configurations [automatic]
1085 Some influential environment variables:
1086 CC C compiler command
1087 CFLAGS C compiler flags
1088 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1089 nonstandard directory <lib dir>
1090 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1091 headers in a nonstandard directory <include dir>
1093 CXX C++ compiler command
1094 CXXFLAGS C++ compiler flags
1095 CXXCPP C++ preprocessor
1096 F77 Fortran 77 compiler command
1097 FFLAGS Fortran 77 compiler flags
1098 PKG_CONFIG path to pkg-config utility
1100 C compiler flags for GLIBMM, overriding pkg-config
1101 GLIBMM_LIBS linker flags for GLIBMM, overriding pkg-config
1103 C compiler flags for GTHREAD, overriding pkg-config
1105 linker flags for GTHREAD, overriding pkg-config
1107 Use these variables to override the choices made by `configure' or to help
1108 it to find libraries and programs with nonstandard names/locations.
1113 if test "$ac_init_help" = "recursive"; then
1114 # If there are subdirs, report their specific --help.
1116 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117 test -d $ac_dir || continue
1120 if test "$ac_dir" != .; then
1121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122 # A "../" for each directory in $ac_dir_suffix.
1123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125 ac_dir_suffix= ac_top_builddir=
1129 .) # No --srcdir option. We are building in place.
1131 if test -z "$ac_top_builddir"; then
1134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136 [\\/]* | ?:[\\/]* ) # Absolute path.
1137 ac_srcdir=$srcdir$ac_dir_suffix;
1138 ac_top_srcdir=$srcdir ;;
1140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 # Do not use `cd foo && pwd` to compute absolute paths, because
1145 # the directories may not exist.
1147 .) ac_abs_builddir="$ac_dir";;
1150 .) ac_abs_builddir=`pwd`;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 case ${ac_top_builddir}. in
1159 .) ac_abs_top_builddir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1168 .) ac_abs_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 case $ac_top_srcdir in
1177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1184 # Check for guested configure; otherwise get Cygnus style configure.
1185 if test -f $ac_srcdir/configure.gnu; then
1187 $SHELL $ac_srcdir/configure.gnu --help=recursive
1188 elif test -f $ac_srcdir/configure; then
1190 $SHELL $ac_srcdir/configure --help=recursive
1191 elif test -f $ac_srcdir/configure.ac ||
1192 test -f $ac_srcdir/configure.in; then
1194 $ac_configure --help
1196 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1206 Copyright (C) 2003 Free Software Foundation, Inc.
1207 This configure script is free software; the Free Software Foundation
1208 gives unlimited permission to copy, distribute and modify it.
1214 This file contains any messages produced by compilers while
1215 running configure, to aid debugging if configure makes a mistake.
1217 It was created by $as_me, which was
1218 generated by GNU Autoconf 2.59. Invocation command line was
1229 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1230 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1231 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1232 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1233 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1235 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1236 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1238 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1239 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1240 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1241 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1242 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1243 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1244 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1252 test -z "$as_dir" && as_dir=.
1253 echo "PATH: $as_dir"
1268 # Keep a trace of the command line.
1269 # Strip out --no-create and --no-recursion so they do not pile up.
1270 # Strip out --silent because we don't want to record it for future runs.
1271 # Also quote any args containing shell meta-characters.
1272 # Make two passes to allow for proper duplicate-argument suppression.
1277 ac_must_keep_next=false
1283 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285 | -silent | --silent | --silen | --sile | --sil)
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1293 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1294 if test $ac_must_keep_next = true; then
1295 ac_must_keep_next=false # Got value, back to normal.
1298 *=* | --config-cache | -C | -disable-* | --disable-* \
1299 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1300 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1301 | -with-* | --with-* | -without-* | --without-* | --x)
1302 case "$ac_configure_args0 " in
1303 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1306 -* ) ac_must_keep_next=true ;;
1309 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1310 # Get rid of the leading space.
1316 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1317 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1319 # When interrupted or exit'd, cleanup temporary files, and complete
1320 # config.log. We remove comments because anyway the quotes in there
1321 # would cause problems or look ugly.
1322 # WARNING: Be sure not to use single quotes in there, as some shells,
1323 # such as our DU 5.0 friend, will then `close' the trap.
1324 trap 'exit_status=$?
1325 # Save into config.log some information that might help in debugging.
1330 ## ---------------- ##
1331 ## Cache variables. ##
1332 ## ---------------- ##
1335 # The following way of writing the cache mishandles newlines in values,
1338 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1341 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1346 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1353 ## ----------------- ##
1354 ## Output variables. ##
1355 ## ----------------- ##
1358 for ac_var in $ac_subst_vars
1360 eval ac_val=$`echo $ac_var`
1361 echo "$ac_var='"'"'$ac_val'"'"'"
1365 if test -n "$ac_subst_files"; then
1372 for ac_var in $ac_subst_files
1374 eval ac_val=$`echo $ac_var`
1375 echo "$ac_var='"'"'$ac_val'"'"'"
1380 if test -s confdefs.h; then
1387 sed "/^$/d" confdefs.h | sort
1390 test "$ac_signal" != 0 &&
1391 echo "$as_me: caught signal $ac_signal"
1392 echo "$as_me: exit $exit_status"
1394 rm -f core *.core &&
1395 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1398 for ac_signal in 1 2 13 15; do
1399 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1404 rm -rf conftest* confdefs.h
1405 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1408 # Predefined preprocessor variables.
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_NAME "$PACKAGE_NAME"
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_STRING "$PACKAGE_STRING"
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1435 # Let the site file select an alternate cache file if it wants to.
1436 # Prefer explicitly selected file to automatically selected ones.
1437 if test -z "$CONFIG_SITE"; then
1438 if test "x$prefix" != xNONE; then
1439 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1441 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1444 for ac_site_file in $CONFIG_SITE; do
1445 if test -r "$ac_site_file"; then
1446 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1447 echo "$as_me: loading site script $ac_site_file" >&6;}
1448 sed 's/^/| /' "$ac_site_file" >&5
1453 if test -r "$cache_file"; then
1454 # Some versions of bash will fail to source /dev/null (special
1455 # files actually), so we avoid doing that.
1456 if test -f "$cache_file"; then
1457 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1458 echo "$as_me: loading cache $cache_file" >&6;}
1460 [\\/]* | ?:[\\/]* ) . $cache_file;;
1461 *) . ./$cache_file;;
1465 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1466 echo "$as_me: creating cache $cache_file" >&6;}
1470 # Check that the precious variables saved in the cache have kept the same
1472 ac_cache_corrupted=false
1473 for ac_var in `(set) 2>&1 |
1474 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1475 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1476 eval ac_new_set=\$ac_env_${ac_var}_set
1477 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1478 eval ac_new_val="\$ac_env_${ac_var}_value"
1479 case $ac_old_set,$ac_new_set in
1481 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1482 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1483 ac_cache_corrupted=: ;;
1485 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1486 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1487 ac_cache_corrupted=: ;;
1490 if test "x$ac_old_val" != "x$ac_new_val"; then
1491 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1492 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1493 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1494 echo "$as_me: former value: $ac_old_val" >&2;}
1495 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1496 echo "$as_me: current value: $ac_new_val" >&2;}
1497 ac_cache_corrupted=:
1500 # Pass precious variables to config.status.
1501 if test "$ac_new_set" = set; then
1503 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1504 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1505 *) ac_arg=$ac_var=$ac_new_val ;;
1507 case " $ac_configure_args " in
1508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1509 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1513 if $ac_cache_corrupted; then
1514 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1515 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1516 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1517 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1518 { (exit 1); exit 1; }; }
1522 ac_cpp='$CPP $CPPFLAGS'
1523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1547 #########################################################################
1548 # Version and initialization
1549 #########################################################################
1550 GLIBMM_MAJOR_VERSION=2
1551 GLIBMM_MINOR_VERSION=13
1552 GLIBMM_MICRO_VERSION=3
1553 GLIBMM_VERSION=$GLIBMM_MAJOR_VERSION.$GLIBMM_MINOR_VERSION.$GLIBMM_MICRO_VERSION
1554 GLIBMM_RELEASE=$GLIBMM_MAJOR_VERSION.$GLIBMM_MINOR_VERSION
1556 cat >>confdefs.h <<_ACEOF
1557 #define GLIBMM_MAJOR_VERSION $GLIBMM_MAJOR_VERSION
1561 cat >>confdefs.h <<_ACEOF
1562 #define GLIBMM_MINOR_VERSION $GLIBMM_MINOR_VERSION
1566 cat >>confdefs.h <<_ACEOF
1567 #define GLIBMM_MICRO_VERSION $GLIBMM_MICRO_VERSION
1577 # +1 : ? : +1 == new interface that does not break old one
1578 # +1 : ? : 0 == new interface that breaks old one
1579 # ? : ? : 0 == no new interfaces, but breaks apps
1580 # ? :+1 : ? == just some internal changes, nothing breaks but might work
1582 # CURRENT : REVISION : AGE
1583 LIBGLIBMM_SO_VERSION=1:24:0
1587 for ac_dir in scripts $srcdir/scripts; do
1588 if test -f $ac_dir/install-sh; then
1590 ac_install_sh="$ac_aux_dir/install-sh -c"
1592 elif test -f $ac_dir/install.sh; then
1594 ac_install_sh="$ac_aux_dir/install.sh -c"
1596 elif test -f $ac_dir/shtool; then
1598 ac_install_sh="$ac_aux_dir/shtool install -c"
1602 if test -z "$ac_aux_dir"; then
1603 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1604 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1605 { (exit 1); exit 1; }; }
1607 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1608 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1609 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1612 VERSION=$GLIBMM_VERSION
1615 am__api_version="1.9"
1616 # Find a good install program. We prefer a C program (faster),
1617 # so one script is as good as another. But avoid the broken or
1618 # incompatible versions:
1619 # SysV /etc/install, /usr/sbin/install
1620 # SunOS /usr/etc/install
1621 # IRIX /sbin/install
1623 # AmigaOS /C/install, which installs bootblocks on floppy discs
1624 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1625 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1626 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1627 # OS/2's system install, which has a completely different semantic
1628 # ./install, which can be erroneously created by make from ./install.sh.
1629 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1630 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1631 if test -z "$INSTALL"; then
1632 if test "${ac_cv_path_install+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 # Account for people who put trailing slashes in PATH elements.
1642 ./ | .// | /cC/* | \
1643 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1644 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1647 # OSF1 and SCO ODT 3.0 have their own names for install.
1648 # Don't use installbsd from OSF since it installs stuff as root
1650 for ac_prog in ginstall scoinst install; do
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1653 if test $ac_prog = install &&
1654 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1655 # AIX install. It has an incompatible calling convention.
1657 elif test $ac_prog = install &&
1658 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1659 # program-specific install script used by HP pwplus--don't use.
1662 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1674 if test "${ac_cv_path_install+set}" = set; then
1675 INSTALL=$ac_cv_path_install
1677 # As a last resort, use the slow shell script. We don't cache a
1678 # path for INSTALL within a source directory, because that will
1679 # break other packages using the cache if that directory is
1680 # removed, or if the path is relative.
1681 INSTALL=$ac_install_sh
1684 echo "$as_me:$LINENO: result: $INSTALL" >&5
1685 echo "${ECHO_T}$INSTALL" >&6
1687 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1688 # It thinks the first close brace ends the variable substitution.
1689 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1691 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1693 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1695 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1696 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1699 echo timestamp > conftest.file
1700 # Do `set' in a subshell so we don't clobber the current shell's
1701 # arguments. Must try -L first in case configure is actually a
1702 # symlink; some systems play weird games with the mod time of symlinks
1703 # (eg FreeBSD returns the mod time of the symlink's containing
1706 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1707 if test "$*" = "X"; then
1709 set X `ls -t $srcdir/configure conftest.file`
1712 if test "$*" != "X $srcdir/configure conftest.file" \
1713 && test "$*" != "X conftest.file $srcdir/configure"; then
1715 # If neither matched, then we have a broken ls. This can happen
1716 # if, for instance, CONFIG_SHELL is bash and it inherits a
1717 # broken ls alias from the environment. This has actually
1718 # happened. Such a system could not be considered "sane".
1719 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1720 alias in your environment" >&5
1721 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1722 alias in your environment" >&2;}
1723 { (exit 1); exit 1; }; }
1726 test "$2" = conftest.file
1732 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1733 Check your system clock" >&5
1734 echo "$as_me: error: newly created file is older than distributed files!
1735 Check your system clock" >&2;}
1736 { (exit 1); exit 1; }; }
1738 echo "$as_me:$LINENO: result: yes" >&5
1739 echo "${ECHO_T}yes" >&6
1740 test "$program_prefix" != NONE &&
1741 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1742 # Use a double $ so make ignores it.
1743 test "$program_suffix" != NONE &&
1744 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1745 # Double any \ or $. echo might interpret backslashes.
1746 # By default was `s,x,x', remove it if useless.
1747 cat <<\_ACEOF >conftest.sed
1748 s/[\\$]/&&/g;s/;s,x,x,$//
1750 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1753 # expand $ac_aux_dir to an absolute path
1754 am_aux_dir=`cd $ac_aux_dir && pwd`
1756 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1757 # Use eval to expand $SHELL
1758 if eval "$MISSING --run true"; then
1759 am_missing_run="$MISSING --run "
1762 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1763 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1766 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1767 # We used to keeping the `.' as first argument, in order to
1768 # allow $(mkdir_p) to be used without argument. As in
1769 # $(mkdir_p) $(somedir)
1770 # where $(somedir) is conditionally defined. However this is wrong
1772 # 1. if the package is installed by a user who cannot write `.'
1773 # make install will fail,
1774 # 2. the above comment should most certainly read
1775 # $(mkdir_p) $(DESTDIR)$(somedir)
1776 # so it does not work when $(somedir) is undefined and
1777 # $(DESTDIR) is not.
1778 # To support the latter case, we have to write
1779 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1780 # so the `.' trick is pointless.
1781 mkdir_p='mkdir -p --'
1783 # On NextStep and OpenStep, the `mkdir' command does not
1784 # recognize any option. It will interpret all options as
1785 # directories to create, and then abort because `.' already
1787 for d in ./-p ./--version;
1789 test -d $d && rmdir $d
1791 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1792 if test -f "$ac_aux_dir/mkinstalldirs"; then
1793 mkdir_p='$(mkinstalldirs)'
1795 mkdir_p='$(install_sh) -d'
1799 for ac_prog in gawk mawk nawk awk
1801 # Extract the first word of "$ac_prog", so it can be a program name with args.
1802 set dummy $ac_prog; ac_word=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_AWK+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 if test -n "$AWK"; then
1809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_AWK="$ac_prog"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 if test -n "$AWK"; then
1829 echo "$as_me:$LINENO: result: $AWK" >&5
1830 echo "${ECHO_T}$AWK" >&6
1832 echo "$as_me:$LINENO: result: no" >&5
1833 echo "${ECHO_T}no" >&6
1836 test -n "$AWK" && break
1839 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1840 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1841 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1842 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 cat >conftest.make <<\_ACEOF
1847 @echo 'ac_maketemp="$(MAKE)"'
1849 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1850 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1851 if test -n "$ac_maketemp"; then
1852 eval ac_cv_prog_make_${ac_make}_set=yes
1854 eval ac_cv_prog_make_${ac_make}_set=no
1858 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1859 echo "$as_me:$LINENO: result: yes" >&5
1860 echo "${ECHO_T}yes" >&6
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 SET_MAKE="MAKE=${MAKE-make}"
1868 rm -rf .tst 2>/dev/null
1869 mkdir .tst 2>/dev/null
1870 if test -d .tst; then
1875 rmdir .tst 2>/dev/null
1877 # test to see if srcdir already configured
1878 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1879 test -f $srcdir/config.status; then
1880 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1881 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1882 { (exit 1); exit 1; }; }
1885 # test whether we have cygpath
1886 if test -z "$CYGPATH_W"; then
1887 if (cygpath --version) >/dev/null 2>/dev/null; then
1888 CYGPATH_W='cygpath -w'
1895 # Define the identity of the package.
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE "$PACKAGE"
1905 cat >>confdefs.h <<_ACEOF
1906 #define VERSION "$VERSION"
1909 # Some tools Automake needs.
1911 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1914 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1917 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1920 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1923 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1925 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1927 # Installed binaries are usually stripped using `strip' when the user
1928 # run `make install-strip'. However `strip' might not be the right
1929 # tool to use in cross-compilation environments, therefore Automake
1930 # will honor the `STRIP' environment variable to overrule this program.
1931 if test "$cross_compiling" != no; then
1932 if test -n "$ac_tool_prefix"; then
1933 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1934 set dummy ${ac_tool_prefix}strip; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_STRIP+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 if test -n "$STRIP"; then
1941 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 STRIP=$ac_cv_prog_STRIP
1960 if test -n "$STRIP"; then
1961 echo "$as_me:$LINENO: result: $STRIP" >&5
1962 echo "${ECHO_T}$STRIP" >&6
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1969 if test -z "$ac_cv_prog_STRIP"; then
1971 # Extract the first word of "strip", so it can be a program name with args.
1972 set dummy strip; ac_word=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test -n "$ac_ct_STRIP"; then
1979 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 ac_cv_prog_ac_ct_STRIP="strip"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1998 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1999 if test -n "$ac_ct_STRIP"; then
2000 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2001 echo "${ECHO_T}$ac_ct_STRIP" >&6
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2009 STRIP="$ac_cv_prog_STRIP"
2013 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2015 # We need awk for the "check" target. The system "awk" is bad on
2017 # Always define AMTAR for backward compatibility.
2019 AMTAR=${AMTAR-"${am_missing_run}tar"}
2021 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2028 ac_config_headers="$ac_config_headers config.h glib/glibmmconfig.h"
2030 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2031 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2032 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2033 if test "${enable_maintainer_mode+set}" = set; then
2034 enableval="$enable_maintainer_mode"
2035 USE_MAINTAINER_MODE=$enableval
2037 USE_MAINTAINER_MODE=no
2039 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2040 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2043 if test $USE_MAINTAINER_MODE = yes; then
2044 MAINTAINER_MODE_TRUE=
2045 MAINTAINER_MODE_FALSE='#'
2047 MAINTAINER_MODE_TRUE='#'
2048 MAINTAINER_MODE_FALSE=
2051 MAINT=$MAINTAINER_MODE_TRUE
2055 test "x$ACLOCAL_FLAGS" = "x" || ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2058 ACLOCAL="$ACLOCAL -I $srcdir/$dir"
2063 #########################################################################
2064 # Configure arguments
2065 #########################################################################
2067 #########################################################################
2068 # Environment Checks
2069 #########################################################################
2071 ac_cpp='$CPP $CPPFLAGS'
2072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2075 if test -n "$ac_tool_prefix"; then
2076 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2077 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 if test -n "$CC"; then
2084 ac_cv_prog_CC="$CC" # Let the user override the test.
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 if test -n "$CC"; then
2104 echo "$as_me:$LINENO: result: $CC" >&5
2105 echo "${ECHO_T}$CC" >&6
2107 echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2112 if test -z "$ac_cv_prog_CC"; then
2114 # Extract the first word of "gcc", so it can be a program name with args.
2115 set dummy gcc; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 if test -n "$ac_ct_CC"; then
2122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_ac_ct_CC="gcc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2141 if test -n "$ac_ct_CC"; then
2142 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2143 echo "${ECHO_T}$ac_ct_CC" >&6
2145 echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2154 if test -z "$CC"; then
2155 if test -n "$ac_tool_prefix"; then
2156 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2157 set dummy ${ac_tool_prefix}cc; ac_word=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 if test -n "$CC"; then
2164 ac_cv_prog_CC="$CC" # Let the user override the test.
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173 ac_cv_prog_CC="${ac_tool_prefix}cc"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 if test -n "$CC"; then
2184 echo "$as_me:$LINENO: result: $CC" >&5
2185 echo "${ECHO_T}$CC" >&6
2187 echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6
2192 if test -z "$ac_cv_prog_CC"; then
2194 # Extract the first word of "cc", so it can be a program name with args.
2195 set dummy cc; ac_word=$2
2196 echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 if test -n "$ac_ct_CC"; then
2202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211 ac_cv_prog_ac_ct_CC="cc"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2221 if test -n "$ac_ct_CC"; then
2222 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2223 echo "${ECHO_T}$ac_ct_CC" >&6
2225 echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2235 if test -z "$CC"; then
2236 # Extract the first word of "cc", so it can be a program name with args.
2237 set dummy cc; 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_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2255 ac_prog_rejected=yes
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 if test $ac_prog_rejected = yes; then
2266 # We found a bogon in the path, so make sure we never use it.
2267 set dummy $ac_cv_prog_CC
2269 if test $# != 0; then
2270 # We chose a different compiler from the bogus one.
2271 # However, it has the same basename, so the bogon will be chosen
2272 # first if we set CC to just the basename; use the full file name.
2274 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2280 if test -n "$CC"; then
2281 echo "$as_me:$LINENO: result: $CC" >&5
2282 echo "${ECHO_T}$CC" >&6
2284 echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2289 if test -z "$CC"; then
2290 if test -n "$ac_tool_prefix"; then
2293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC="$CC" # Let the user override the test.
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 if test -n "$CC"; then
2321 echo "$as_me:$LINENO: result: $CC" >&5
2322 echo "${ECHO_T}$CC" >&6
2324 echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2328 test -n "$CC" && break
2331 if test -z "$CC"; then
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 if test -n "$ac_ct_CC"; then
2343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2352 ac_cv_prog_ac_ct_CC="$ac_prog"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2362 if test -n "$ac_ct_CC"; then
2363 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2364 echo "${ECHO_T}$ac_ct_CC" >&6
2366 echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6
2370 test -n "$ac_ct_CC" && break
2379 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: no acceptable C compiler found in \$PATH
2382 See \`config.log' for more details." >&2;}
2383 { (exit 1); exit 1; }; }
2385 # Provide some information about the compiler.
2386 echo "$as_me:$LINENO:" \
2387 "checking for C compiler version" >&5
2388 ac_compiler=`set X $ac_compile; echo $2`
2389 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2390 (eval $ac_compiler --version </dev/null >&5) 2>&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }
2394 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2395 (eval $ac_compiler -v </dev/null >&5) 2>&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }
2399 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2400 (eval $ac_compiler -V </dev/null >&5) 2>&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }
2405 cat >conftest.$ac_ext <<_ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h. */
2420 ac_clean_files_save=$ac_clean_files
2421 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2422 # Try to create an executable without -o first, disregard a.out.
2423 # It will help us diagnose broken compilers, and finding out an intuition
2425 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2426 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2427 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2428 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2429 (eval $ac_link_default) 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; then
2433 # Find the output, starting from the most likely. This scheme is
2434 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2437 # Be careful to initialize this variable, since it used to be cached.
2438 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2440 # b.out is created by i960 compilers.
2441 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2443 test -f "$ac_file" || continue
2445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2448 # This is the source file.
2451 # We found the default executable, but exeext='' is most
2455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456 # FIXME: I believe we export ac_cv_exeext for Libtool,
2457 # but it would be cool to find out if it's true. Does anybody
2458 # maintain Libtool? --akim.
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2469 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: C compiler cannot create executables
2472 See \`config.log' for more details." >&2;}
2473 { (exit 77); exit 77; }; }
2476 ac_exeext=$ac_cv_exeext
2477 echo "$as_me:$LINENO: result: $ac_file" >&5
2478 echo "${ECHO_T}$ac_file" >&6
2480 # Check the compiler produces executables we can run. If not, either
2481 # the compiler is broken, or we cross compile.
2482 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2483 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2484 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2485 # If not cross compiling, check that we can run a simple program.
2486 if test "$cross_compiling" != yes; then
2487 if { ac_try='./$ac_file'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; }; then
2495 if test "$cross_compiling" = maybe; then
2498 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2499 If you meant to cross compile, use \`--host'.
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2508 echo "$as_me:$LINENO: result: yes" >&5
2509 echo "${ECHO_T}yes" >&6
2511 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2512 ac_clean_files=$ac_clean_files_save
2513 # Check the compiler produces executables we can run. If not, either
2514 # the compiler is broken, or we cross compile.
2515 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2516 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2517 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2518 echo "${ECHO_T}$cross_compiling" >&6
2520 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2521 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2523 (eval $ac_link) 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; then
2527 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2528 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2529 # work properly (i.e., refer to `conftest.exe'), while it won't with
2531 for ac_file in conftest.exe conftest conftest.*; do
2532 test -f "$ac_file" || continue
2534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2535 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2542 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2545 See \`config.log' for more details." >&2;}
2546 { (exit 1); exit 1; }; }
2549 rm -f conftest$ac_cv_exeext
2550 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2551 echo "${ECHO_T}$ac_cv_exeext" >&6
2553 rm -f conftest.$ac_ext
2554 EXEEXT=$ac_cv_exeext
2556 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2557 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2558 if test "${ac_cv_objext+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 cat >conftest.$ac_ext <<_ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h. */
2576 rm -f conftest.o conftest.obj
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; then
2582 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2585 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2590 echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2593 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2594 See \`config.log' for more details." >&5
2595 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2596 See \`config.log' for more details." >&2;}
2597 { (exit 1); exit 1; }; }
2600 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2602 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2603 echo "${ECHO_T}$ac_cv_objext" >&6
2604 OBJEXT=$ac_cv_objext
2606 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2607 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2608 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 cat >conftest.$ac_ext <<_ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>conftest.er1
2633 grep -v '^ *+' conftest.er1 >conftest.err
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -z "$ac_c_werror_flag"
2639 || test ! -s conftest.err'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; } &&
2645 { ac_try='test -s conftest.$ac_objext'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2659 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2662 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2663 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2664 GCC=`test $ac_compiler_gnu = yes && echo yes`
2665 ac_test_CFLAGS=${CFLAGS+set}
2666 ac_save_CFLAGS=$CFLAGS
2668 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2669 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2670 if test "${ac_cv_prog_cc_g+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>conftest.er1
2692 grep -v '^ *+' conftest.er1 >conftest.err
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 { ac_try='test -z "$ac_c_werror_flag"
2698 || test ! -s conftest.err'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; } &&
2704 { ac_try='test -s conftest.$ac_objext'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2720 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2721 if test "$ac_test_CFLAGS" = set; then
2722 CFLAGS=$ac_save_CFLAGS
2723 elif test $ac_cv_prog_cc_g = yes; then
2724 if test "$GCC" = yes; then
2730 if test "$GCC" = yes; then
2736 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2737 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2738 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 ac_cv_prog_cc_stdc=no
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2751 #include <sys/types.h>
2752 #include <sys/stat.h>
2753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2754 struct buf { int x; };
2755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2756 static char *e (p, i)
2762 static char *f (char * (*g) (char **, int), char **p, ...)
2767 s = g (p, va_arg (v,int));
2772 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2773 function prototypes and stuff, but not '\xHH' hex character constants.
2774 These don't provoke an error unfortunately, instead are silently treated
2775 as 'x'. The following induces an error, until -std1 is added to get
2776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2777 array size at least. It's necessary to write '\x00'==0 to get something
2778 that's true only with -std1. */
2779 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2781 int test (int i, double x);
2782 struct s1 {int (*f) (int a);};
2783 struct s2 {int (*f) (double a);};
2784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2790 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2795 # Don't try gcc -ansi; that turns off useful extensions and
2796 # breaks some systems' header files.
2797 # AIX -qlanglvl=ansi
2798 # Ultrix and OSF/1 -std1
2799 # HP-UX 10.20 and later -Ae
2800 # HP-UX older versions -Aa -D_HPUX_SOURCE
2801 # SVR4 -Xc -D__EXTENSIONS__
2802 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2804 CC="$ac_save_CC $ac_arg"
2805 rm -f conftest.$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807 (eval $ac_compile) 2>conftest.er1
2809 grep -v '^ *+' conftest.er1 >conftest.err
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try='test -z "$ac_c_werror_flag"
2815 || test ! -s conftest.err'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_prog_cc_stdc=$ac_arg
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2834 rm -f conftest.err conftest.$ac_objext
2836 rm -f conftest.$ac_ext conftest.$ac_objext
2841 case "x$ac_cv_prog_cc_stdc" in
2843 echo "$as_me:$LINENO: result: none needed" >&5
2844 echo "${ECHO_T}none needed" >&6 ;;
2846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2847 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2848 CC="$CC $ac_cv_prog_cc_stdc" ;;
2851 # Some people use a C++ compiler to compile C. Since we use `exit',
2852 # in C++ we need to declare it. In case someone uses the same compiler
2853 # for both compiling C and C++ we need to have the C++ compiler decide
2854 # the declaration of exit, since it's the most demanding environment.
2855 cat >conftest.$ac_ext <<_ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>conftest.er1
2864 grep -v '^ *+' conftest.er1 >conftest.err
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_c_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 for ac_declaration in \
2884 'extern "C" void std::exit (int) throw (); using std::exit;' \
2885 'extern "C" void std::exit (int); using std::exit;' \
2886 'extern "C" void exit (int) throw ();' \
2887 'extern "C" void exit (int);' \
2890 cat >conftest.$ac_ext <<_ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1 >conftest.err
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_c_werror_flag"
2916 || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest.$ac_objext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2936 cat >conftest.$ac_ext <<_ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953 (eval $ac_compile) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_c_werror_flag"
2961 || test ! -s conftest.err'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest.$ac_objext'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2982 if test -n "$ac_declaration"; then
2983 echo '#ifdef __cplusplus' >>confdefs.h
2984 echo $ac_declaration >>confdefs.h
2985 echo '#endif' >>confdefs.h
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 DEPDIR="${am__leading_dot}deps"
3001 ac_config_commands="$ac_config_commands depfiles"
3004 am_make=${MAKE-make}
3005 cat > confinc << 'END'
3010 # If we don't find an include directive, just comment out the code.
3011 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3012 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3016 # First try GNU make style include.
3017 echo "include confinc" > confmf
3018 # We grep out `Entering directory' and `Leaving directory'
3019 # messages which can occur if `w' ends up in MAKEFLAGS.
3020 # In particular we don't look at `^make:' because GNU make might
3021 # be invoked under some other name (usually "gmake"), in which
3022 # case it prints its new name instead of `make'.
3023 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3028 # Now try BSD make style include.
3029 if test "$am__include" = "#"; then
3030 echo '.include "confinc"' > confmf
3031 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3032 am__include=.include
3039 echo "$as_me:$LINENO: result: $_am_result" >&5
3040 echo "${ECHO_T}$_am_result" >&6
3041 rm -f confinc confmf
3043 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3044 if test "${enable_dependency_tracking+set}" = set; then
3045 enableval="$enable_dependency_tracking"
3048 if test "x$enable_dependency_tracking" != xno; then
3049 am_depcomp="$ac_aux_dir/depcomp"
3054 if test "x$enable_dependency_tracking" != xno; then
3065 depcc="$CC" am_compiler_list=
3067 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3068 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3069 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3073 # We make a subdir and do the tests there. Otherwise we can end up
3074 # making bogus files that we don't know about and never remove. For
3075 # instance it was reported that on HP-UX the gcc test will end up
3076 # making a dummy file named `D' -- because `-MD' means `put the output
3079 # Copy depcomp to subdir because otherwise we won't find it if we're
3080 # using a relative directory.
3081 cp "$am_depcomp" conftest.dir
3083 # We will build objects and dependencies in a subdirectory because
3084 # it helps to detect inapplicable dependency modes. For instance
3085 # both Tru64's cc and ICC support -MD to output dependencies as a
3086 # side effect of compilation, but ICC will put the dependencies in
3087 # the current directory while Tru64 will put them in the object
3091 am_cv_CC_dependencies_compiler_type=none
3092 if test "$am_compiler_list" = ""; then
3093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3095 for depmode in $am_compiler_list; do
3096 # Setup a source with many dependencies, because some compilers
3097 # like to wrap large dependency lists on column 80 (with \), and
3098 # we should not choose a depcomp mode which is confused by this.
3100 # We need to recreate these files for each test, as the compiler may
3101 # overwrite some of them when testing with obscure command lines.
3102 # This happens at least with the AIX C compiler.
3104 for i in 1 2 3 4 5 6; do
3105 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3106 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3107 # Solaris 8's {/usr,}/bin/sh.
3108 touch sub/conftst$i.h
3110 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3114 # after this tag, mechanisms are not by side-effect, so they'll
3115 # only be used when explicitly requested
3116 if test "x$enable_dependency_tracking" = xyes; then
3124 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3125 # mode. It turns out that the SunPro C++ compiler does not properly
3126 # handle `-M -o', and we need to detect this.
3127 if depmode=$depmode \
3128 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3129 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3130 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3131 >/dev/null 2>conftest.err &&
3132 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3133 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3134 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3135 # icc doesn't choke on unknown options, it will just issue warnings
3136 # or remarks (even with -Werror). So we grep stderr for any message
3137 # that says an option was ignored or not supported.
3138 # When given -MP, icc 7.0 and 7.1 complain thusly:
3139 # icc: Command line warning: ignoring option '-M'; no argument required
3140 # The diagnosis changed in icc 8.0:
3141 # icc: Command line remark: option '-MP' not supported
3142 if (grep 'ignoring option' conftest.err ||
3143 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3144 am_cv_CC_dependencies_compiler_type=$depmode
3153 am_cv_CC_dependencies_compiler_type=none
3157 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3158 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3159 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3164 test "x$enable_dependency_tracking" != xno \
3165 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3167 am__fastdepCC_FALSE='#'
3169 am__fastdepCC_TRUE='#'
3170 am__fastdepCC_FALSE=
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3180 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3181 # On Suns, sometimes $CPP names a directory.
3182 if test -n "$CPP" && test -d "$CPP"; then
3185 if test -z "$CPP"; then
3186 if test "${ac_cv_prog_CPP+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 # Double quotes because CPP needs to be expanded
3190 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3193 for ac_c_preproc_warn_flag in '' yes
3195 # Use a header file that comes with gcc, so configuring glibc
3196 # with a fresh cross-compiler works.
3197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3198 # <limits.h> exists even on freestanding compilers.
3199 # On the NeXT, cc -E runs the code through the compiler's parser,
3200 # not just through cpp. "Syntax error" is here to catch this case.
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3208 # include <limits.h>
3210 # include <assert.h>
3214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3217 grep -v '^ *+' conftest.er1 >conftest.err
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } >/dev/null; then
3222 if test -s conftest.err; then
3223 ac_cpp_err=$ac_c_preproc_warn_flag
3224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3231 if test -z "$ac_cpp_err"; then
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 # Broken: fails on valid input.
3240 rm -f conftest.err conftest.$ac_ext
3242 # OK, works on sane cases. Now check whether non-existent headers
3243 # can be detected and how.
3244 cat >conftest.$ac_ext <<_ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3250 #include <ac_nonexistent.h>
3252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255 grep -v '^ *+' conftest.er1 >conftest.err
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_c_preproc_warn_flag
3262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3269 if test -z "$ac_cpp_err"; then
3270 # Broken: success on invalid input.
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 # Passes both tests.
3280 rm -f conftest.err conftest.$ac_ext
3283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3284 rm -f conftest.err conftest.$ac_ext
3285 if $ac_preproc_ok; then
3297 echo "$as_me:$LINENO: result: $CPP" >&5
3298 echo "${ECHO_T}$CPP" >&6
3300 for ac_c_preproc_warn_flag in '' yes
3302 # Use a header file that comes with gcc, so configuring glibc
3303 # with a fresh cross-compiler works.
3304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3305 # <limits.h> exists even on freestanding compilers.
3306 # On the NeXT, cc -E runs the code through the compiler's parser,
3307 # not just through cpp. "Syntax error" is here to catch this case.
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3315 # include <limits.h>
3317 # include <assert.h>
3321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } >/dev/null; then
3329 if test -s conftest.err; then
3330 ac_cpp_err=$ac_c_preproc_warn_flag
3331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3338 if test -z "$ac_cpp_err"; then
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 # Broken: fails on valid input.
3347 rm -f conftest.err conftest.$ac_ext
3349 # OK, works on sane cases. Now check whether non-existent headers
3350 # can be detected and how.
3351 cat >conftest.$ac_ext <<_ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3357 #include <ac_nonexistent.h>
3359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } >/dev/null; then
3367 if test -s conftest.err; then
3368 ac_cpp_err=$ac_c_preproc_warn_flag
3369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3376 if test -z "$ac_cpp_err"; then
3377 # Broken: success on invalid input.
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 # Passes both tests.
3387 rm -f conftest.err conftest.$ac_ext
3390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3391 rm -f conftest.err conftest.$ac_ext
3392 if $ac_preproc_ok; then
3395 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3396 See \`config.log' for more details." >&5
3397 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3398 See \`config.log' for more details." >&2;}
3399 { (exit 1); exit 1; }; }
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3409 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3410 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3411 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 cat >conftest.make <<\_ACEOF
3416 @echo 'ac_maketemp="$(MAKE)"'
3418 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3419 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3420 if test -n "$ac_maketemp"; then
3421 eval ac_cv_prog_make_${ac_make}_set=yes
3423 eval ac_cv_prog_make_${ac_make}_set=no
3427 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3428 echo "$as_me:$LINENO: result: yes" >&5
3429 echo "${ECHO_T}yes" >&6
3432 echo "$as_me:$LINENO: result: no" >&5
3433 echo "${ECHO_T}no" >&6
3434 SET_MAKE="MAKE=${MAKE-make}"
3437 # Make sure we can run config.sub.
3438 $ac_config_sub sun4 >/dev/null 2>&1 ||
3439 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3440 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3441 { (exit 1); exit 1; }; }
3443 echo "$as_me:$LINENO: checking build system type" >&5
3444 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3445 if test "${ac_cv_build+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 ac_cv_build_alias=$build_alias
3449 test -z "$ac_cv_build_alias" &&
3450 ac_cv_build_alias=`$ac_config_guess`
3451 test -z "$ac_cv_build_alias" &&
3452 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3453 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3454 { (exit 1); exit 1; }; }
3455 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3457 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3458 { (exit 1); exit 1; }; }
3461 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3462 echo "${ECHO_T}$ac_cv_build" >&6
3464 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3465 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3466 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3469 echo "$as_me:$LINENO: checking host system type" >&5
3470 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3471 if test "${ac_cv_host+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 ac_cv_host_alias=$host_alias
3475 test -z "$ac_cv_host_alias" &&
3476 ac_cv_host_alias=$ac_cv_build_alias
3477 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3478 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3479 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3480 { (exit 1); exit 1; }; }
3483 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3484 echo "${ECHO_T}$ac_cv_host" >&6
3486 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3487 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3488 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3492 echo "$as_me:$LINENO: checking for some Win32 platform" >&5
3493 echo $ECHO_N "checking for some Win32 platform... $ECHO_C" >&6
3495 *-*-mingw*|*-*-cygwin*)
3502 echo "$as_me:$LINENO: result: $platform_win32" >&5
3503 echo "${ECHO_T}$platform_win32" >&6
3506 if test "$platform_win32" = "yes"; then
3507 PLATFORM_WIN32_TRUE=
3508 PLATFORM_WIN32_FALSE='#'
3510 PLATFORM_WIN32_TRUE='#'
3511 PLATFORM_WIN32_FALSE=
3515 echo "$as_me:$LINENO: checking for native Win32" >&5
3516 echo $ECHO_N "checking for native Win32... $ECHO_C" >&6
3525 echo "$as_me:$LINENO: result: $os_win32" >&5
3526 echo "${ECHO_T}$os_win32" >&6
3529 if test "$os_win32" = "yes"; then
3538 # Check whether --enable-static or --disable-static was given.
3539 if test "${enable_static+set}" = set; then
3540 enableval="$enable_static"
3541 p=${PACKAGE-default}
3543 yes) enable_static=yes ;;
3544 no) enable_static=no ;;
3547 # Look at the argument we got. We use all the common list separators.
3548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3549 for pkg in $enableval; do
3551 if test "X$pkg" = "X$p"; then
3565 # Check whether --enable-shared or --disable-shared was given.
3566 if test "${enable_shared+set}" = set; then
3567 enableval="$enable_shared"
3568 p=${PACKAGE-default}
3570 yes) enable_shared=yes ;;
3571 no) enable_shared=no ;;
3574 # Look at the argument we got. We use all the common list separators.
3575 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3576 for pkg in $enableval; do
3578 if test "X$pkg" = "X$p"; then
3589 # Check whether --enable-fast-install or --disable-fast-install was given.
3590 if test "${enable_fast_install+set}" = set; then
3591 enableval="$enable_fast_install"
3592 p=${PACKAGE-default}
3594 yes) enable_fast_install=yes ;;
3595 no) enable_fast_install=no ;;
3597 enable_fast_install=no
3598 # Look at the argument we got. We use all the common list separators.
3599 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3600 for pkg in $enableval; do
3602 if test "X$pkg" = "X$p"; then
3603 enable_fast_install=yes
3610 enable_fast_install=yes
3613 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3614 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3615 if test "${lt_cv_path_SED+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 # Loop through the user's path and test for sed and gsed.
3619 # Then use that list of sed's as ones to test for truncation.
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 test -z "$as_dir" && as_dir=.
3625 for lt_ac_prog in sed gsed; do
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3628 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3635 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3636 # along with /bin/sed that truncates output.
3637 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3638 test ! -f $lt_ac_sed && continue
3639 cat /dev/null > conftest.in
3641 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3642 # Check for GNU sed and select it if it is found.
3643 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3644 lt_cv_path_SED=$lt_ac_sed
3648 cat conftest.in conftest.in >conftest.tmp
3649 mv conftest.tmp conftest.in
3650 cp conftest.in conftest.nl
3652 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3653 cmp -s conftest.out conftest.nl || break
3654 # 10000 chars as input seems more than enough
3655 test $lt_ac_count -gt 10 && break
3656 lt_ac_count=`expr $lt_ac_count + 1`
3657 if test $lt_ac_count -gt $lt_ac_max; then
3658 lt_ac_max=$lt_ac_count
3659 lt_cv_path_SED=$lt_ac_sed
3667 echo "$as_me:$LINENO: result: $SED" >&5
3668 echo "${ECHO_T}$SED" >&6
3670 echo "$as_me:$LINENO: checking for egrep" >&5
3671 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3672 if test "${ac_cv_prog_egrep+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3676 then ac_cv_prog_egrep='grep -E'
3677 else ac_cv_prog_egrep='egrep'
3680 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3681 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3682 EGREP=$ac_cv_prog_egrep
3686 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3687 if test "${with_gnu_ld+set}" = set; then
3688 withval="$with_gnu_ld"
3689 test "$withval" = no || with_gnu_ld=yes
3694 if test "$GCC" = yes; then
3695 # Check if gcc -print-prog-name=ld gives a path.
3696 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3697 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3700 # gcc leaves a trailing carriage return which upsets mingw
3701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3706 # Accept absolute paths.
3708 re_direlt='/[^/][^/]*/\.\./'
3709 # Canonicalize the pathname of ld
3710 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3711 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3712 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3714 test -z "$LD" && LD="$ac_prog"
3717 # If it fails, then pretend we aren't using GCC.
3721 # If it is relative, then search for the first ld in PATH.
3725 elif test "$with_gnu_ld" = yes; then
3726 echo "$as_me:$LINENO: checking for GNU ld" >&5
3727 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3729 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3730 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3732 if test "${lt_cv_path_LD+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 if test -z "$LD"; then
3736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3737 for ac_dir in $PATH; do
3739 test -z "$ac_dir" && ac_dir=.
3740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3741 lt_cv_path_LD="$ac_dir/$ac_prog"
3742 # Check to see if the program is GNU ld. I'd rather use --version,
3743 # but apparently some variants of GNU ld only accept -v.
3744 # Break only if it was the GNU/non-GNU ld that we prefer.
3745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3746 *GNU* | *'with BFD'*)
3747 test "$with_gnu_ld" != no && break
3750 test "$with_gnu_ld" != yes && break
3757 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3762 if test -n "$LD"; then
3763 echo "$as_me:$LINENO: result: $LD" >&5
3764 echo "${ECHO_T}$LD" >&6
3766 echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3769 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3770 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3771 { (exit 1); exit 1; }; }
3772 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3773 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3774 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3778 case `$LD -v 2>&1 </dev/null` in
3779 *GNU* | *'with BFD'*)
3780 lt_cv_prog_gnu_ld=yes
3783 lt_cv_prog_gnu_ld=no
3787 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3788 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3789 with_gnu_ld=$lt_cv_prog_gnu_ld
3792 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3793 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3794 if test "${lt_cv_ld_reload_flag+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 lt_cv_ld_reload_flag='-r'
3799 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3800 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3801 reload_flag=$lt_cv_ld_reload_flag
3802 case $reload_flag in
3804 *) reload_flag=" $reload_flag" ;;
3806 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3809 if test "$GCC" = yes; then
3810 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3812 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3817 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3818 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3819 if test "${lt_cv_path_NM+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 if test -n "$NM"; then
3823 # Let the user override the test.
3826 lt_nm_to_check="${ac_tool_prefix}nm"
3827 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3828 lt_nm_to_check="$lt_nm_to_check nm"
3830 for lt_tmp_nm in $lt_nm_to_check; do
3831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3832 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3834 test -z "$ac_dir" && ac_dir=.
3835 tmp_nm="$ac_dir/$lt_tmp_nm"
3836 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3837 # Check to see if the nm accepts a BSD-compat flag.
3838 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3839 # nm: unknown option "B" ignored
3840 # Tru64's nm complains that /dev/null is an invalid object file
3841 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3842 */dev/null* | *'Invalid file or object type'*)
3843 lt_cv_path_NM="$tmp_nm -B"
3847 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3849 lt_cv_path_NM="$tmp_nm -p"
3853 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3854 continue # so that we can try to find one that supports BSD flags
3863 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3866 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3867 echo "${ECHO_T}$lt_cv_path_NM" >&6
3870 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3871 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3873 if test "$LN_S" = "ln -s"; then
3874 echo "$as_me:$LINENO: result: yes" >&5
3875 echo "${ECHO_T}yes" >&6
3877 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3878 echo "${ECHO_T}no, using $LN_S" >&6
3881 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3882 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3883 if test "${lt_cv_deplibs_check_method+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 lt_cv_file_magic_cmd='$MAGIC_CMD'
3887 lt_cv_file_magic_test_file=
3888 lt_cv_deplibs_check_method='unknown'
3889 # Need to set the preceding variable on all platforms that support
3890 # interlibrary dependencies.
3891 # 'none' -- dependencies not supported.
3892 # `unknown' -- same as none, but documents that we really don't know.
3893 # 'pass_all' -- all dependencies passed with no checks.
3894 # 'test_compile' -- check by making test program.
3895 # 'file_magic [[regex]]' -- check by looking for files in library path
3896 # which responds to the $file_magic_cmd with a given extended regex.
3897 # If you have `file' or equivalent on your system and you're not sure
3898 # whether `pass_all' will *always* work, you probably want this one.
3902 lt_cv_deplibs_check_method=pass_all
3906 lt_cv_deplibs_check_method=pass_all
3910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3911 lt_cv_file_magic_cmd='/usr/bin/file -L'
3912 lt_cv_file_magic_test_file=/shlib/libc.so
3916 # func_win32_libid is a shell function defined in ltmain.sh
3917 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3918 lt_cv_file_magic_cmd='func_win32_libid'
3922 # Base MSYS/MinGW do not provide the 'file' command needed by
3923 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3924 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3925 lt_cv_file_magic_cmd='$OBJDUMP -f'
3928 darwin* | rhapsody*)
3929 lt_cv_deplibs_check_method=pass_all
3932 freebsd* | kfreebsd*-gnu | dragonfly*)
3933 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3936 # Not sure whether the presence of OpenBSD here was a mistake.
3937 # Let's accept both of them until this is cleared up.
3938 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3939 lt_cv_file_magic_cmd=/usr/bin/file
3940 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3944 lt_cv_deplibs_check_method=pass_all
3949 lt_cv_deplibs_check_method=pass_all
3952 hpux10.20* | hpux11*)
3953 lt_cv_file_magic_cmd=/usr/bin/file
3956 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3957 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3960 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]'
3961 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3964 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3965 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3971 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3975 irix5* | irix6* | nonstopux*)
3977 *-32|*"-32 ") libmagic=32-bit;;
3978 *-n32|*"-n32 ") libmagic=N32;;
3979 *-64|*"-64 ") libmagic=64-bit;;
3980 *) libmagic=never-match;;
3982 lt_cv_deplibs_check_method=pass_all
3985 # This must be Linux ELF.
3987 lt_cv_deplibs_check_method=pass_all
3991 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4000 lt_cv_file_magic_cmd=/usr/bin/file
4001 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4005 lt_cv_deplibs_check_method=unknown
4009 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4016 osf3* | osf4* | osf5*)
4017 lt_cv_deplibs_check_method=pass_all
4021 lt_cv_deplibs_check_method=pass_all
4025 case $host_vendor in
4027 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]'
4028 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4031 lt_cv_deplibs_check_method=pass_all
4034 lt_cv_file_magic_cmd='/bin/file'
4035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4038 lt_cv_file_magic_cmd='/bin/file'
4039 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4040 lt_cv_file_magic_test_file=/lib/libc.so
4043 lt_cv_deplibs_check_method=pass_all
4046 lt_cv_deplibs_check_method=pass_all
4051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4052 lt_cv_deplibs_check_method=pass_all
4057 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4058 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4059 file_magic_cmd=$lt_cv_file_magic_cmd
4060 deplibs_check_method=$lt_cv_deplibs_check_method
4061 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4066 # If no C compiler was specified, use CC.
4069 # If no C compiler flags were specified, use CFLAGS.
4070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4072 # Allow CC to be a program name with arguments.
4076 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4077 if test "${enable_libtool_lock+set}" = set; then
4078 enableval="$enable_libtool_lock"
4081 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4083 # Some flags need to be propagated to the compiler or linker for good
4087 # Find out which ABI we are using.
4088 echo 'int i;' > conftest.$ac_ext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; then
4094 case `/usr/bin/file conftest.$ac_objext` in
4106 # Find out which ABI we are using.
4107 echo '#line 4107 "configure"' > conftest.$ac_ext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; then
4113 if test "$lt_cv_prog_gnu_ld" = yes; then
4114 case `/usr/bin/file conftest.$ac_objext` in
4116 LD="${LD-ld} -melf32bsmip"
4119 LD="${LD-ld} -melf32bmipn32"
4122 LD="${LD-ld} -melf64bmip"
4126 case `/usr/bin/file conftest.$ac_objext` in
4142 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4143 # Find out which ABI we are using.
4144 echo 'int i;' > conftest.$ac_ext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; then
4150 case `/usr/bin/file conftest.o` in
4154 LD="${LD-ld} -m elf_i386"
4156 ppc64-*linux*|powerpc64-*linux*)
4157 LD="${LD-ld} -m elf32ppclinux"
4160 LD="${LD-ld} -m elf_s390"
4163 LD="${LD-ld} -m elf32_sparc"
4170 LD="${LD-ld} -m elf_x86_64"
4172 ppc*-*linux*|powerpc*-*linux*)
4173 LD="${LD-ld} -m elf64ppc"
4176 LD="${LD-ld} -m elf64_s390"
4179 LD="${LD-ld} -m elf64_sparc"
4189 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4190 SAVE_CFLAGS="$CFLAGS"
4191 CFLAGS="$CFLAGS -belf"
4192 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4193 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4194 if test "${lt_cv_cc_needs_belf+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203 cat >conftest.$ac_ext <<_ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4218 rm -f conftest.$ac_objext conftest$ac_exeext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4220 (eval $ac_link) 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag"
4228 || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest$ac_exeext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 lt_cv_cc_needs_belf=yes
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 lt_cv_cc_needs_belf=no
4247 rm -f conftest.err conftest.$ac_objext \
4248 conftest$ac_exeext conftest.$ac_ext
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4257 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4258 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4259 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4260 CFLAGS="$SAVE_CFLAGS"
4264 # Find out which ABI we are using.
4265 echo 'int i;' > conftest.$ac_ext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267 (eval $ac_compile) 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; then
4271 case `/usr/bin/file conftest.o` in
4273 case $lt_cv_prog_gnu_ld in
4274 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4275 *) LD="${LD-ld} -64" ;;
4283 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4284 if test -n "$ac_tool_prefix"; then
4285 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4286 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4287 echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4289 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 if test -n "$DLLTOOL"; then
4293 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 DLLTOOL=$ac_cv_prog_DLLTOOL
4312 if test -n "$DLLTOOL"; then
4313 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4314 echo "${ECHO_T}$DLLTOOL" >&6
4316 echo "$as_me:$LINENO: result: no" >&5
4317 echo "${ECHO_T}no" >&6
4321 if test -z "$ac_cv_prog_DLLTOOL"; then
4322 ac_ct_DLLTOOL=$DLLTOOL
4323 # Extract the first word of "dlltool", so it can be a program name with args.
4324 set dummy dlltool; ac_word=$2
4325 echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4327 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 if test -n "$ac_ct_DLLTOOL"; then
4331 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4350 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4351 if test -n "$ac_ct_DLLTOOL"; then
4352 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4353 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4355 echo "$as_me:$LINENO: result: no" >&5
4356 echo "${ECHO_T}no" >&6
4359 DLLTOOL=$ac_ct_DLLTOOL
4361 DLLTOOL="$ac_cv_prog_DLLTOOL"
4364 if test -n "$ac_tool_prefix"; then
4365 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4366 set dummy ${ac_tool_prefix}as; ac_word=$2
4367 echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4369 if test "${ac_cv_prog_AS+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 if test -n "$AS"; then
4373 ac_cv_prog_AS="$AS" # Let the user override the test.
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382 ac_cv_prog_AS="${ac_tool_prefix}as"
4383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 if test -n "$AS"; then
4393 echo "$as_me:$LINENO: result: $AS" >&5
4394 echo "${ECHO_T}$AS" >&6
4396 echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6
4401 if test -z "$ac_cv_prog_AS"; then
4403 # Extract the first word of "as", so it can be a program name with args.
4404 set dummy as; ac_word=$2
4405 echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4407 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 if test -n "$ac_ct_AS"; then
4411 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_ac_ct_AS="as"
4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4430 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4431 if test -n "$ac_ct_AS"; then
4432 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4433 echo "${ECHO_T}$ac_ct_AS" >&6
4435 echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6
4444 if test -n "$ac_tool_prefix"; then
4445 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4446 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4447 echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4449 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 if test -n "$OBJDUMP"; then
4453 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4462 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 OBJDUMP=$ac_cv_prog_OBJDUMP
4472 if test -n "$OBJDUMP"; then
4473 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4474 echo "${ECHO_T}$OBJDUMP" >&6
4476 echo "$as_me:$LINENO: result: no" >&5
4477 echo "${ECHO_T}no" >&6
4481 if test -z "$ac_cv_prog_OBJDUMP"; then
4482 ac_ct_OBJDUMP=$OBJDUMP
4483 # Extract the first word of "objdump", so it can be a program name with args.
4484 set dummy objdump; ac_word=$2
4485 echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4487 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 if test -n "$ac_ct_OBJDUMP"; then
4491 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4510 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4511 if test -n "$ac_ct_OBJDUMP"; then
4512 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4513 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4515 echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6
4519 OBJDUMP=$ac_ct_OBJDUMP
4521 OBJDUMP="$ac_cv_prog_OBJDUMP"
4528 need_locks="$enable_libtool_lock"
4532 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4533 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4534 if test "${ac_cv_header_stdc+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 cat >conftest.$ac_ext <<_ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4556 rm -f conftest.$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558 (eval $ac_compile) 2>conftest.er1
4560 grep -v '^ *+' conftest.er1 >conftest.err
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -z "$ac_c_werror_flag"
4566 || test ! -s conftest.err'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 ac_cv_header_stdc=yes
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4583 ac_cv_header_stdc=no
4585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4587 if test $ac_cv_header_stdc = yes; then
4588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4589 cat >conftest.$ac_ext <<_ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 $EGREP "memchr" >/dev/null 2>&1; then
4602 ac_cv_header_stdc=no
4608 if test $ac_cv_header_stdc = yes; then
4609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4610 cat >conftest.$ac_ext <<_ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4620 $EGREP "free" >/dev/null 2>&1; then
4623 ac_cv_header_stdc=no
4629 if test $ac_cv_header_stdc = yes; then
4630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4631 if test "$cross_compiling" = yes; then
4634 cat >conftest.$ac_ext <<_ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4641 #if ((' ' & 0x0FF) == 0x020)
4642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4645 # define ISLOWER(c) \
4646 (('a' <= (c) && (c) <= 'i') \
4647 || ('j' <= (c) && (c) <= 'r') \
4648 || ('s' <= (c) && (c) <= 'z'))
4649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4657 for (i = 0; i < 256; i++)
4658 if (XOR (islower (i), ISLOWER (i))
4659 || toupper (i) != TOUPPER (i))
4664 rm -f conftest$ac_exeext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666 (eval $ac_link) 2>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4677 echo "$as_me: program exited with status $ac_status" >&5
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4682 ac_cv_header_stdc=no
4684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4688 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4689 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4690 if test $ac_cv_header_stdc = yes; then
4692 cat >>confdefs.h <<\_ACEOF
4693 #define STDC_HEADERS 1
4698 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4708 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4709 inttypes.h stdint.h unistd.h
4711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4712 echo "$as_me:$LINENO: checking for $ac_header" >&5
4713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 cat >conftest.$ac_ext <<_ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4723 $ac_includes_default
4725 #include <$ac_header>
4727 rm -f conftest.$ac_objext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729 (eval $ac_compile) 2>conftest.er1
4731 grep -v '^ *+' conftest.er1 >conftest.err
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } &&
4736 { ac_try='test -z "$ac_c_werror_flag"
4737 || test ! -s conftest.err'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; } &&
4743 { ac_try='test -s conftest.$ac_objext'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; }; then
4749 eval "$as_ac_Header=yes"
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 eval "$as_ac_Header=no"
4756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4761 cat >>confdefs.h <<_ACEOF
4762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771 for ac_header in dlfcn.h
4773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4775 echo "$as_me:$LINENO: checking for $ac_header" >&5
4776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4783 # Is the header compilable?
4784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4786 cat >conftest.$ac_ext <<_ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4793 #include <$ac_header>
4795 rm -f conftest.$ac_objext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>conftest.er1
4799 grep -v '^ *+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -z "$ac_c_werror_flag"
4805 || test ! -s conftest.err'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; } &&
4811 { ac_try='test -s conftest.$ac_objext'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 ac_header_compiler=yes
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4822 ac_header_compiler=no
4824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4826 echo "${ECHO_T}$ac_header_compiler" >&6
4828 # Is the header present?
4829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <$ac_header>
4839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4842 grep -v '^ *+' conftest.er1 >conftest.err
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null; then
4847 if test -s conftest.err; then
4848 ac_cpp_err=$ac_c_preproc_warn_flag
4849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4856 if test -z "$ac_cpp_err"; then
4857 ac_header_preproc=yes
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4862 ac_header_preproc=no
4864 rm -f conftest.err conftest.$ac_ext
4865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4866 echo "${ECHO_T}$ac_header_preproc" >&6
4868 # So? What about this header?
4869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4875 ac_header_preproc=yes
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4892 ## ------------------------------------------ ##
4893 ## Report this to the AC_PACKAGE_NAME lists. ##
4894 ## ------------------------------------------ ##
4897 sed "s/^/$as_me: WARNING: /" >&2
4900 echo "$as_me:$LINENO: checking for $ac_header" >&5
4901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 eval "$as_ac_Header=\$ac_header_preproc"
4907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4912 cat >>confdefs.h <<_ACEOF
4913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4921 ac_cpp='$CXXCPP $CPPFLAGS'
4922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4925 if test -n "$ac_tool_prefix"; then
4926 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4930 echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4932 if test "${ac_cv_prog_CXX+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 if test -n "$CXX"; then
4936 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4945 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 if test -n "$CXX"; then
4956 echo "$as_me:$LINENO: result: $CXX" >&5
4957 echo "${ECHO_T}$CXX" >&6
4959 echo "$as_me:$LINENO: result: no" >&5
4960 echo "${ECHO_T}no" >&6
4963 test -n "$CXX" && break
4966 if test -z "$CXX"; then
4968 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4970 # Extract the first word of "$ac_prog", so it can be a program name with args.
4971 set dummy $ac_prog; ac_word=$2
4972 echo "$as_me:$LINENO: checking for $ac_word" >&5
4973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4974 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 if test -n "$ac_ct_CXX"; then
4978 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_ac_ct_CXX="$ac_prog"
4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4997 if test -n "$ac_ct_CXX"; then
4998 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4999 echo "${ECHO_T}$ac_ct_CXX" >&6
5001 echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6
5005 test -n "$ac_ct_CXX" && break
5007 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5013 # Provide some information about the compiler.
5014 echo "$as_me:$LINENO:" \
5015 "checking for C++ compiler version" >&5
5016 ac_compiler=`set X $ac_compile; echo $2`
5017 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5018 (eval $ac_compiler --version </dev/null >&5) 2>&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }
5022 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5023 (eval $ac_compiler -v </dev/null >&5) 2>&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }
5027 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5028 (eval $ac_compiler -V </dev/null >&5) 2>&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }
5033 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5034 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5035 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 cat >conftest.$ac_ext <<_ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5056 rm -f conftest.$ac_objext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058 (eval $ac_compile) 2>conftest.er1
5060 grep -v '^ *+' conftest.er1 >conftest.err
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try='test -z "$ac_cxx_werror_flag"
5066 || test ! -s conftest.err'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; } &&
5072 { ac_try='test -s conftest.$ac_objext'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5086 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5089 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5090 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5091 GXX=`test $ac_compiler_gnu = yes && echo yes`
5092 ac_test_CXXFLAGS=${CXXFLAGS+set}
5093 ac_save_CXXFLAGS=$CXXFLAGS
5095 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5096 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5097 if test "${ac_cv_prog_cxx_g+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 cat >conftest.$ac_ext <<_ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5115 rm -f conftest.$ac_objext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117 (eval $ac_compile) 2>conftest.er1
5119 grep -v '^ *+' conftest.er1 >conftest.err
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } &&
5124 { ac_try='test -z "$ac_cxx_werror_flag"
5125 || test ! -s conftest.err'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; } &&
5131 { ac_try='test -s conftest.$ac_objext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 ac_cv_prog_cxx_g=yes
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5146 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5147 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5148 if test "$ac_test_CXXFLAGS" = set; then
5149 CXXFLAGS=$ac_save_CXXFLAGS
5150 elif test $ac_cv_prog_cxx_g = yes; then
5151 if test "$GXX" = yes; then
5157 if test "$GXX" = yes; then
5163 for ac_declaration in \
5165 'extern "C" void std::exit (int) throw (); using std::exit;' \
5166 'extern "C" void std::exit (int); using std::exit;' \
5167 'extern "C" void exit (int) throw ();' \
5168 'extern "C" void exit (int);' \
5171 cat >conftest.$ac_ext <<_ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5187 rm -f conftest.$ac_objext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5189 (eval $ac_compile) 2>conftest.er1
5191 grep -v '^ *+' conftest.er1 >conftest.err
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -z "$ac_cxx_werror_flag"
5197 || test ! -s conftest.err'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; } &&
5203 { ac_try='test -s conftest.$ac_objext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5217 cat >conftest.$ac_ext <<_ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5232 rm -f conftest.$ac_objext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5234 (eval $ac_compile) 2>conftest.er1
5236 grep -v '^ *+' conftest.er1 >conftest.err
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_cxx_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest.$ac_objext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5263 if test -n "$ac_declaration"; then
5264 echo '#ifdef __cplusplus' >>confdefs.h
5265 echo $ac_declaration >>confdefs.h
5266 echo '#endif' >>confdefs.h
5270 ac_cpp='$CXXCPP $CPPFLAGS'
5271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5275 depcc="$CXX" am_compiler_list=
5277 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5278 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5279 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5283 # We make a subdir and do the tests there. Otherwise we can end up
5284 # making bogus files that we don't know about and never remove. For
5285 # instance it was reported that on HP-UX the gcc test will end up
5286 # making a dummy file named `D' -- because `-MD' means `put the output
5289 # Copy depcomp to subdir because otherwise we won't find it if we're
5290 # using a relative directory.
5291 cp "$am_depcomp" conftest.dir
5293 # We will build objects and dependencies in a subdirectory because
5294 # it helps to detect inapplicable dependency modes. For instance
5295 # both Tru64's cc and ICC support -MD to output dependencies as a
5296 # side effect of compilation, but ICC will put the dependencies in
5297 # the current directory while Tru64 will put them in the object
5301 am_cv_CXX_dependencies_compiler_type=none
5302 if test "$am_compiler_list" = ""; then
5303 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5305 for depmode in $am_compiler_list; do
5306 # Setup a source with many dependencies, because some compilers
5307 # like to wrap large dependency lists on column 80 (with \), and
5308 # we should not choose a depcomp mode which is confused by this.
5310 # We need to recreate these files for each test, as the compiler may
5311 # overwrite some of them when testing with obscure command lines.
5312 # This happens at least with the AIX C compiler.
5314 for i in 1 2 3 4 5 6; do
5315 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5316 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5317 # Solaris 8's {/usr,}/bin/sh.
5318 touch sub/conftst$i.h
5320 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5324 # after this tag, mechanisms are not by side-effect, so they'll
5325 # only be used when explicitly requested
5326 if test "x$enable_dependency_tracking" = xyes; then
5334 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5335 # mode. It turns out that the SunPro C++ compiler does not properly
5336 # handle `-M -o', and we need to detect this.
5337 if depmode=$depmode \
5338 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5339 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5340 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5341 >/dev/null 2>conftest.err &&
5342 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5343 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5344 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5345 # icc doesn't choke on unknown options, it will just issue warnings
5346 # or remarks (even with -Werror). So we grep stderr for any message
5347 # that says an option was ignored or not supported.
5348 # When given -MP, icc 7.0 and 7.1 complain thusly:
5349 # icc: Command line warning: ignoring option '-M'; no argument required
5350 # The diagnosis changed in icc 8.0:
5351 # icc: Command line remark: option '-MP' not supported
5352 if (grep 'ignoring option' conftest.err ||
5353 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5354 am_cv_CXX_dependencies_compiler_type=$depmode
5363 am_cv_CXX_dependencies_compiler_type=none
5367 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5368 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5369 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5374 test "x$enable_dependency_tracking" != xno \
5375 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5376 am__fastdepCXX_TRUE=
5377 am__fastdepCXX_FALSE='#'
5379 am__fastdepCXX_TRUE='#'
5380 am__fastdepCXX_FALSE=
5386 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5387 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5388 (test "X$CXX" != "Xg++"))) ; then
5390 ac_cpp='$CXXCPP $CPPFLAGS'
5391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5394 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5395 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5396 if test -z "$CXXCPP"; then
5397 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 # Double quotes because CXXCPP needs to be expanded
5401 for CXXCPP in "$CXX -E" "/lib/cpp"
5404 for ac_cxx_preproc_warn_flag in '' yes
5406 # Use a header file that comes with gcc, so configuring glibc
5407 # with a fresh cross-compiler works.
5408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5409 # <limits.h> exists even on freestanding compilers.
5410 # On the NeXT, cc -E runs the code through the compiler's parser,
5411 # not just through cpp. "Syntax error" is here to catch this case.
5412 cat >conftest.$ac_ext <<_ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5419 # include <limits.h>
5421 # include <assert.h>
5425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5428 grep -v '^ *+' conftest.er1 >conftest.err
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } >/dev/null; then
5433 if test -s conftest.err; then
5434 ac_cpp_err=$ac_cxx_preproc_warn_flag
5435 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5442 if test -z "$ac_cpp_err"; then
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 # Broken: fails on valid input.
5451 rm -f conftest.err conftest.$ac_ext
5453 # OK, works on sane cases. Now check whether non-existent headers
5454 # can be detected and how.
5455 cat >conftest.$ac_ext <<_ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 #include <ac_nonexistent.h>
5463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5466 grep -v '^ *+' conftest.er1 >conftest.err
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } >/dev/null; then
5471 if test -s conftest.err; then
5472 ac_cpp_err=$ac_cxx_preproc_warn_flag
5473 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5480 if test -z "$ac_cpp_err"; then
5481 # Broken: success on invalid input.
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5487 # Passes both tests.
5491 rm -f conftest.err conftest.$ac_ext
5494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5495 rm -f conftest.err conftest.$ac_ext
5496 if $ac_preproc_ok; then
5501 ac_cv_prog_CXXCPP=$CXXCPP
5504 CXXCPP=$ac_cv_prog_CXXCPP
5506 ac_cv_prog_CXXCPP=$CXXCPP
5508 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5509 echo "${ECHO_T}$CXXCPP" >&6
5511 for ac_cxx_preproc_warn_flag in '' yes
5513 # Use a header file that comes with gcc, so configuring glibc
5514 # with a fresh cross-compiler works.
5515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516 # <limits.h> exists even on freestanding compilers.
5517 # On the NeXT, cc -E runs the code through the compiler's parser,
5518 # not just through cpp. "Syntax error" is here to catch this case.
5519 cat >conftest.$ac_ext <<_ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5526 # include <limits.h>
5528 # include <assert.h>
5532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5535 grep -v '^ *+' conftest.er1 >conftest.err
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } >/dev/null; then
5540 if test -s conftest.err; then
5541 ac_cpp_err=$ac_cxx_preproc_warn_flag
5542 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5549 if test -z "$ac_cpp_err"; then
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5555 # Broken: fails on valid input.
5558 rm -f conftest.err conftest.$ac_ext
5560 # OK, works on sane cases. Now check whether non-existent headers
5561 # can be detected and how.
5562 cat >conftest.$ac_ext <<_ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 #include <ac_nonexistent.h>
5570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5573 grep -v '^ *+' conftest.er1 >conftest.err
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } >/dev/null; then
5578 if test -s conftest.err; then
5579 ac_cpp_err=$ac_cxx_preproc_warn_flag
5580 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5587 if test -z "$ac_cpp_err"; then
5588 # Broken: success on invalid input.
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5594 # Passes both tests.
5598 rm -f conftest.err conftest.$ac_ext
5601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5602 rm -f conftest.err conftest.$ac_ext
5603 if $ac_preproc_ok; then
5606 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5607 See \`config.log' for more details." >&5
5608 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5609 See \`config.log' for more details." >&2;}
5610 { (exit 1); exit 1; }; }
5614 ac_cpp='$CXXCPP $CPPFLAGS'
5615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5623 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5624 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5626 if test -n "$ac_tool_prefix"; then
5627 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5631 echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633 if test "${ac_cv_prog_F77+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 if test -n "$F77"; then
5637 ac_cv_prog_F77="$F77" # Let the user override the test.
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 if test -n "$F77"; then
5657 echo "$as_me:$LINENO: result: $F77" >&5
5658 echo "${ECHO_T}$F77" >&6
5660 echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6
5664 test -n "$F77" && break
5667 if test -z "$F77"; then
5669 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5671 # Extract the first word of "$ac_prog", so it can be a program name with args.
5672 set dummy $ac_prog; ac_word=$2
5673 echo "$as_me:$LINENO: checking for $ac_word" >&5
5674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5675 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 if test -n "$ac_ct_F77"; then
5679 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_prog_ac_ct_F77="$ac_prog"
5689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5698 if test -n "$ac_ct_F77"; then
5699 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5700 echo "${ECHO_T}$ac_ct_F77" >&6
5702 echo "$as_me:$LINENO: result: no" >&5
5703 echo "${ECHO_T}no" >&6
5706 test -n "$ac_ct_F77" && break
5713 # Provide some information about the compiler.
5714 echo "$as_me:5714:" \
5715 "checking for Fortran 77 compiler version" >&5
5716 ac_compiler=`set X $ac_compile; echo $2`
5717 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5718 (eval $ac_compiler --version </dev/null >&5) 2>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }
5722 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5723 (eval $ac_compiler -v </dev/null >&5) 2>&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }
5727 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5728 (eval $ac_compiler -V </dev/null >&5) 2>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }
5734 # If we don't use `.F' as extension, the preprocessor is not run on the
5735 # input file. (Note that this only needs to work for GNU compilers.)
5738 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5739 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5740 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 cat >conftest.$ac_ext <<_ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>conftest.er1
5755 grep -v '^ *+' conftest.er1 >conftest.err
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -z "$ac_f77_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5784 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5785 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5787 ac_test_FFLAGS=${FFLAGS+set}
5788 ac_save_FFLAGS=$FFLAGS
5790 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5791 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5792 if test "${ac_cv_prog_f77_g+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 cat >conftest.$ac_ext <<_ACEOF
5801 rm -f conftest.$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803 (eval $ac_compile) 2>conftest.er1
5805 grep -v '^ *+' conftest.er1 >conftest.err
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } &&
5810 { ac_try='test -z "$ac_f77_werror_flag"
5811 || test ! -s conftest.err'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; } &&
5817 { ac_try='test -s conftest.$ac_objext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_cv_prog_f77_g=yes
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5833 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5834 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5835 if test "$ac_test_FFLAGS" = set; then
5836 FFLAGS=$ac_save_FFLAGS
5837 elif test $ac_cv_prog_f77_g = yes; then
5838 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5844 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5851 G77=`test $ac_compiler_gnu = yes && echo yes`
5853 ac_cpp='$CPP $CPPFLAGS'
5854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5860 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5862 # find the maximum length of command line arguments
5863 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5864 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5865 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 # On DJGPP, this test can blow up pretty badly due to problems in libc
5874 # (any single argument exceeding 2000 bytes causes a buffer overrun
5875 # during glob expansion). Even if it were fixed, the result of this
5876 # check would be larger than it should be.
5877 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5881 # Under GNU Hurd, this test is not required because there is
5882 # no limit to the length of command line arguments.
5883 # Libtool will interpret -1 as no limit whatsoever
5884 lt_cv_sys_max_cmd_len=-1;
5888 # On Win9x/ME, this test blows up -- it succeeds, but takes
5889 # about 5 minutes as the teststring grows exponentially.
5890 # Worse, since 9x/ME are not pre-emptively multitasking,
5891 # you end up with a "frozen" computer, even though with patience
5892 # the test eventually succeeds (with a max line length of 256k).
5893 # Instead, let's just punt: use the minimum linelength reported by
5894 # all of the supported platforms: 8192 (on NT/2K/XP).
5895 lt_cv_sys_max_cmd_len=8192;
5899 # On AmigaOS with pdksh, this test takes hours, literally.
5900 # So we just punt and use a minimum line length of 8192.
5901 lt_cv_sys_max_cmd_len=8192;
5904 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5905 # This has been around since 386BSD, at least. Likely further.
5906 if test -x /sbin/sysctl; then
5907 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5908 elif test -x /usr/sbin/sysctl; then
5909 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5911 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5913 # And add a safety zone
5914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5919 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5920 lt_cv_sys_max_cmd_len=196608
5924 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5925 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5926 # nice to cause kernel panics so lets avoid the loop below.
5927 # First set a reasonable default.
5928 lt_cv_sys_max_cmd_len=16384
5930 if test -x /sbin/sysconfig; then
5931 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5932 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5937 lt_cv_sys_max_cmd_len=102400
5939 sysv5* | sco5v6* | sysv4.2uw2*)
5940 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5941 if test -n "$kargmax"; then
5942 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5944 lt_cv_sys_max_cmd_len=32768
5948 # If test is not a shell built-in, we'll probably end up computing a
5949 # maximum length that is only half of the actual maximum length, but
5951 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5952 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5953 = "XX$teststring") >/dev/null 2>&1 &&
5954 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5955 lt_cv_sys_max_cmd_len=$new_result &&
5956 test $i != 17 # 1/2 MB should be enough
5959 teststring=$teststring$teststring
5962 # Add a significant safety factor because C++ compilers can tack on massive
5963 # amounts of additional arguments before passing them to the linker.
5964 # It appears as though 1/2 is a usable value.
5965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5971 if test -n $lt_cv_sys_max_cmd_len ; then
5972 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5973 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5975 echo "$as_me:$LINENO: result: none" >&5
5976 echo "${ECHO_T}none" >&6
5982 # Check for command to grab the raw symbol name followed by C symbol from nm.
5983 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5984 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5985 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 # These are sane defaults that work on at least a few old systems.
5990 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5992 # Character class describing NM global symbol codes.
5993 symcode='[BCDEGRST]'
5995 # Regexp to match symbols that can be accessed directly from C.
5996 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5998 # Transform an extracted symbol line into a proper C declaration
5999 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6001 # Transform an extracted symbol line into symbol name and symbol address
6002 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'"
6004 # Define system-specific variables.
6009 cygwin* | mingw* | pw32*)
6010 symcode='[ABCDGISTW]'
6012 hpux*) # Its linker distinguishes data from code symbols
6013 if test "$host_cpu" = ia64; then
6014 symcode='[ABCDEGRST]'
6016 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6017 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'"
6020 if test "$host_cpu" = ia64; then
6021 symcode='[ABCDGIRSTW]'
6022 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6023 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'"
6027 symcode='[BCDEGRST]'
6030 symcode='[BCDEGQRST]'
6041 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6049 # Handle CRLF in mingw tool chain
6053 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6057 # If we're using GNU nm, then use its standard symbol codes.
6058 case `$NM -V 2>&1` in
6059 *GNU* | *'with BFD'*)
6060 symcode='[ABCDGIRSTW]' ;;
6063 # Try without a prefix undercore, then with it.
6064 for ac_symprfx in "" "_"; do
6066 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6067 symxfrm="\\1 $ac_symprfx\\2 \\2"
6069 # Write the raw and C identifiers.
6070 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6072 # Check to see that the pipe works correctly.
6076 cat > conftest.$ac_ext <<EOF
6081 void nm_test_func(){}
6085 int main(){nm_test_var='a';nm_test_func();return(0);}
6088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6089 (eval $ac_compile) 2>&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; then
6093 # Now try to grab the symbols.
6095 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6096 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && test -s "$nlist"; then
6100 # Try sorting and uniquifying the output.
6101 if sort "$nlist" | uniq > "$nlist"T; then
6102 mv -f "$nlist"T "$nlist"
6107 # Make sure that we snagged all the symbols we need.
6108 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6109 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6110 cat <<EOF > conftest.$ac_ext
6116 # Now generate the symbol file.
6117 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6119 cat <<EOF >> conftest.$ac_ext
6120 #if defined (__STDC__) && __STDC__
6121 # define lt_ptr_t void *
6123 # define lt_ptr_t char *
6127 /* The mapping between symbol names and symbols. */
6132 lt_preloaded_symbols[] =
6135 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6136 cat <<\EOF >> conftest.$ac_ext
6144 # Now try linking the two files.
6145 mv conftest.$ac_objext conftstm.$ac_objext
6146 lt_save_LIBS="$LIBS"
6147 lt_save_CFLAGS="$CFLAGS"
6148 LIBS="conftstm.$ac_objext"
6149 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6151 (eval $ac_link) 2>&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6157 LIBS="$lt_save_LIBS"
6158 CFLAGS="$lt_save_CFLAGS"
6160 echo "cannot find nm_test_func in $nlist" >&5
6163 echo "cannot find nm_test_var in $nlist" >&5
6166 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6169 echo "$progname: failed program was:" >&5
6170 cat conftest.$ac_ext >&5
6172 rm -f conftest* conftst*
6174 # Do not use the global_symbol_pipe unless it works.
6175 if test "$pipe_works" = yes; then
6178 lt_cv_sys_global_symbol_pipe=
6184 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6185 lt_cv_sys_global_symbol_to_cdecl=
6187 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6188 echo "$as_me:$LINENO: result: failed" >&5
6189 echo "${ECHO_T}failed" >&6
6191 echo "$as_me:$LINENO: result: ok" >&5
6192 echo "${ECHO_T}ok" >&6
6195 echo "$as_me:$LINENO: checking for objdir" >&5
6196 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6197 if test "${lt_cv_objdir+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 rm -f .libs 2>/dev/null
6201 mkdir .libs 2>/dev/null
6202 if test -d .libs; then
6205 # MS-DOS does not allow filenames that begin with a dot.
6208 rmdir .libs 2>/dev/null
6210 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6211 echo "${ECHO_T}$lt_cv_objdir" >&6
6212 objdir=$lt_cv_objdir
6220 # AIX sometimes has problems with the GCC collect2 program. For some
6221 # reason, if we set the COLLECT_NAMES environment variable, the problems
6222 # vanish in a puff of smoke.
6223 if test "X${COLLECT_NAMES+set}" != Xset; then
6225 export COLLECT_NAMES
6230 # Sed substitution that helps us do robust quoting. It backslashifies
6231 # metacharacters that are still active within double-quoted strings.
6232 Xsed='sed -e 1s/^X//'
6233 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6235 # Same as above, but do not quote variable references.
6236 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6238 # Sed substitution to delay expansion of an escaped shell variable in a
6239 # double_quote_subst'ed string.
6240 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6242 # Sed substitution to avoid accidental globbing in evaled expressions
6243 no_glob_subst='s/\*/\\\*/g'
6249 default_ofile=libtool
6250 can_build_shared=yes
6252 # All known linkers require a `.a' archive for static linking (except MSVC,
6253 # which needs '.lib').
6255 ltmain="$ac_aux_dir/ltmain.sh"
6256 ofile="$default_ofile"
6257 with_gnu_ld="$lt_cv_prog_gnu_ld"
6259 if test -n "$ac_tool_prefix"; then
6260 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6261 set dummy ${ac_tool_prefix}ar; ac_word=$2
6262 echo "$as_me:$LINENO: checking for $ac_word" >&5
6263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6264 if test "${ac_cv_prog_AR+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 if test -n "$AR"; then
6268 ac_cv_prog_AR="$AR" # Let the user override the test.
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277 ac_cv_prog_AR="${ac_tool_prefix}ar"
6278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 if test -n "$AR"; then
6288 echo "$as_me:$LINENO: result: $AR" >&5
6289 echo "${ECHO_T}$AR" >&6
6291 echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6
6296 if test -z "$ac_cv_prog_AR"; then
6298 # Extract the first word of "ar", so it can be a program name with args.
6299 set dummy ar; ac_word=$2
6300 echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6302 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 if test -n "$ac_ct_AR"; then
6306 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315 ac_cv_prog_ac_ct_AR="ar"
6316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6325 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6326 if test -n "$ac_ct_AR"; then
6327 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6328 echo "${ECHO_T}$ac_ct_AR" >&6
6330 echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6
6339 if test -n "$ac_tool_prefix"; then
6340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6342 echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6344 if test "${ac_cv_prog_RANLIB+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 if test -n "$RANLIB"; then
6348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 RANLIB=$ac_cv_prog_RANLIB
6367 if test -n "$RANLIB"; then
6368 echo "$as_me:$LINENO: result: $RANLIB" >&5
6369 echo "${ECHO_T}$RANLIB" >&6
6371 echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6
6376 if test -z "$ac_cv_prog_RANLIB"; then
6377 ac_ct_RANLIB=$RANLIB
6378 # Extract the first word of "ranlib", so it can be a program name with args.
6379 set dummy ranlib; ac_word=$2
6380 echo "$as_me:$LINENO: checking for $ac_word" >&5
6381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6382 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 if test -n "$ac_ct_RANLIB"; then
6386 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_ac_ct_RANLIB="ranlib"
6396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6406 if test -n "$ac_ct_RANLIB"; then
6407 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6408 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6410 echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6
6414 RANLIB=$ac_ct_RANLIB
6416 RANLIB="$ac_cv_prog_RANLIB"
6419 if test -n "$ac_tool_prefix"; then
6420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6421 set dummy ${ac_tool_prefix}strip; ac_word=$2
6422 echo "$as_me:$LINENO: checking for $ac_word" >&5
6423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6424 if test "${ac_cv_prog_STRIP+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 if test -n "$STRIP"; then
6428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 STRIP=$ac_cv_prog_STRIP
6447 if test -n "$STRIP"; then
6448 echo "$as_me:$LINENO: result: $STRIP" >&5
6449 echo "${ECHO_T}$STRIP" >&6
6451 echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6
6456 if test -z "$ac_cv_prog_STRIP"; then
6458 # Extract the first word of "strip", so it can be a program name with args.
6459 set dummy strip; ac_word=$2
6460 echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6462 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 if test -n "$ac_ct_STRIP"; then
6466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475 ac_cv_prog_ac_ct_STRIP="strip"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6485 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6486 if test -n "$ac_ct_STRIP"; then
6487 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6488 echo "${ECHO_T}$ac_ct_STRIP" >&6
6490 echo "$as_me:$LINENO: result: no" >&5
6491 echo "${ECHO_T}no" >&6
6496 STRIP="$ac_cv_prog_STRIP"
6501 old_CFLAGS="$CFLAGS"
6503 # Set sane defaults for various variables
6504 test -z "$AR" && AR=ar
6505 test -z "$AR_FLAGS" && AR_FLAGS=cru
6506 test -z "$AS" && AS=as
6507 test -z "$CC" && CC=cc
6508 test -z "$LTCC" && LTCC=$CC
6509 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6510 test -z "$DLLTOOL" && DLLTOOL=dlltool
6511 test -z "$LD" && LD=ld
6512 test -z "$LN_S" && LN_S="ln -s"
6513 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6514 test -z "$NM" && NM=nm
6515 test -z "$SED" && SED=sed
6516 test -z "$OBJDUMP" && OBJDUMP=objdump
6517 test -z "$RANLIB" && RANLIB=:
6518 test -z "$STRIP" && STRIP=:
6519 test -z "$ac_objext" && ac_objext=o
6521 # Determine commands to create old-style static archives.
6522 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6523 old_postinstall_cmds='chmod 644 $oldlib'
6524 old_postuninstall_cmds=
6526 if test -n "$RANLIB"; then
6529 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6532 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6535 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6538 for cc_temp in $compiler""; do
6540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6546 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6549 # Only perform the check for file, if the check method requires it
6550 case $deplibs_check_method in
6552 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6553 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6554 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6555 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6563 lt_save_MAGIC_CMD="$MAGIC_CMD"
6564 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6565 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6566 for ac_dir in $ac_dummy; do
6568 test -z "$ac_dir" && ac_dir=.
6569 if test -f $ac_dir/${ac_tool_prefix}file; then
6570 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6571 if test -n "$file_magic_test_file"; then
6572 case $deplibs_check_method in
6574 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6576 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6577 $EGREP "$file_magic_regex" > /dev/null; then
6582 *** Warning: the command libtool uses to detect shared libraries,
6583 *** $file_magic_cmd, produces output that libtool cannot recognize.
6584 *** The result is that libtool may fail to recognize shared libraries
6585 *** as such. This will affect the creation of libtool libraries that
6586 *** depend on shared libraries, but programs linked with such libtool
6587 *** libraries will work regardless of this problem. Nevertheless, you
6588 *** may want to report the problem to your system manager and/or to
6589 *** bug-libtool@gnu.org
6599 MAGIC_CMD="$lt_save_MAGIC_CMD"
6604 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6605 if test -n "$MAGIC_CMD"; then
6606 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6607 echo "${ECHO_T}$MAGIC_CMD" >&6
6609 echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6
6613 if test -z "$lt_cv_path_MAGIC_CMD"; then
6614 if test -n "$ac_tool_prefix"; then
6615 echo "$as_me:$LINENO: checking for file" >&5
6616 echo $ECHO_N "checking for file... $ECHO_C" >&6
6617 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6625 lt_save_MAGIC_CMD="$MAGIC_CMD"
6626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6627 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6628 for ac_dir in $ac_dummy; do
6630 test -z "$ac_dir" && ac_dir=.
6631 if test -f $ac_dir/file; then
6632 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6633 if test -n "$file_magic_test_file"; then
6634 case $deplibs_check_method in
6636 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6638 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6639 $EGREP "$file_magic_regex" > /dev/null; then
6644 *** Warning: the command libtool uses to detect shared libraries,
6645 *** $file_magic_cmd, produces output that libtool cannot recognize.
6646 *** The result is that libtool may fail to recognize shared libraries
6647 *** as such. This will affect the creation of libtool libraries that
6648 *** depend on shared libraries, but programs linked with such libtool
6649 *** libraries will work regardless of this problem. Nevertheless, you
6650 *** may want to report the problem to your system manager and/or to
6651 *** bug-libtool@gnu.org
6661 MAGIC_CMD="$lt_save_MAGIC_CMD"
6666 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6667 if test -n "$MAGIC_CMD"; then
6668 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6669 echo "${ECHO_T}$MAGIC_CMD" >&6
6671 echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6
6685 enable_win32_dll=yes
6687 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6688 if test "${enable_libtool_lock+set}" = set; then
6689 enableval="$enable_libtool_lock"
6692 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6695 # Check whether --with-pic or --without-pic was given.
6696 if test "${with_pic+set}" = set; then
6702 test -z "$pic_mode" && pic_mode=default
6704 # Use C for the default configuration in the libtool script
6708 ac_cpp='$CPP $CPPFLAGS'
6709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6714 # Source file extension for C test sources.
6717 # Object file extension for compiled C test sources.
6721 # Code to be used in simple compile tests
6722 lt_simple_compile_test_code="int some_variable = 0;\n"
6724 # Code to be used in simple link tests
6725 lt_simple_link_test_code='int main(){return(0);}\n'
6728 # If no C compiler was specified, use CC.
6731 # If no C compiler flags were specified, use CFLAGS.
6732 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6734 # Allow CC to be a program name with arguments.
6738 # save warnings/boilerplate of simple test code
6739 ac_outfile=conftest.$ac_objext
6740 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6741 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6742 _lt_compiler_boilerplate=`cat conftest.err`
6745 ac_outfile=conftest.$ac_objext
6746 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6747 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6748 _lt_linker_boilerplate=`cat conftest.err`
6753 lt_prog_compiler_no_builtin_flag=
6755 if test "$GCC" = yes; then
6756 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6759 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6760 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6761 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 lt_cv_prog_compiler_rtti_exceptions=no
6765 ac_outfile=conftest.$ac_objext
6766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6767 lt_compiler_flag="-fno-rtti -fno-exceptions"
6768 # Insert the option either (1) after the last *FLAGS variable, or
6769 # (2) before a word containing "conftest.", or (3) at the end.
6770 # Note that $ac_compile itself does not contain backslashes and begins
6771 # with a dollar sign (not a hyphen), so the echo should work correctly.
6772 # The option is referenced via a variable to avoid confusing sed.
6773 lt_compile=`echo "$ac_compile" | $SED \
6774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6776 -e 's:$: $lt_compiler_flag:'`
6777 (eval echo "\"\$as_me:6777: $lt_compile\"" >&5)
6778 (eval "$lt_compile" 2>conftest.err)
6780 cat conftest.err >&5
6781 echo "$as_me:6781: \$? = $ac_status" >&5
6782 if (exit $ac_status) && test -s "$ac_outfile"; then
6783 # The compiler can only warn and ignore the option if not recognized
6784 # So say no if there are warnings other than the usual output.
6785 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6787 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6788 lt_cv_prog_compiler_rtti_exceptions=yes
6794 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6795 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6797 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6798 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6805 lt_prog_compiler_wl=
6806 lt_prog_compiler_pic=
6807 lt_prog_compiler_static=
6809 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6810 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6812 if test "$GCC" = yes; then
6813 lt_prog_compiler_wl='-Wl,'
6814 lt_prog_compiler_static='-static'
6818 # All AIX code is PIC.
6819 if test "$host_cpu" = ia64; then
6820 # AIX 5 now supports IA64 processor
6821 lt_prog_compiler_static='-Bstatic'
6826 # FIXME: we need at least 68020 code to build shared libraries, but
6827 # adding the `-m68020' flag to GCC prevents building anything better,
6829 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6832 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6833 # PIC is the default for these OSes.
6836 mingw* | pw32* | os2*)
6837 # This hack is so that the source file can tell whether it is being
6838 # built for inclusion in a dll (and should export symbols for example).
6839 lt_prog_compiler_pic='-DDLL_EXPORT'
6842 darwin* | rhapsody*)
6843 # PIC is the default on this platform
6844 # Common symbols not allowed in MH_DYLIB files
6845 lt_prog_compiler_pic='-fno-common'
6849 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6850 # Instead, we relocate shared libraries at runtime.
6854 # Just because we use GCC doesn't mean we suddenly get shared libraries
6855 # on systems that don't support them.
6856 lt_prog_compiler_can_build_shared=no
6861 if test -d /usr/nec; then
6862 lt_prog_compiler_pic=-Kconform_pic
6867 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6874 lt_prog_compiler_pic='-fPIC'
6880 lt_prog_compiler_pic='-fPIC'
6884 # PORTME Check for flag to pass linker flags through the system compiler.
6887 lt_prog_compiler_wl='-Wl,'
6888 if test "$host_cpu" = ia64; then
6889 # AIX 5 now supports IA64 processor
6890 lt_prog_compiler_static='-Bstatic'
6892 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6896 # PIC is the default on this platform
6897 # Common symbols not allowed in MH_DYLIB files
6898 case $cc_basename in
6900 lt_prog_compiler_pic='-qnocommon'
6901 lt_prog_compiler_wl='-Wl,'
6906 mingw* | pw32* | os2*)
6907 # This hack is so that the source file can tell whether it is being
6908 # built for inclusion in a dll (and should export symbols for example).
6909 lt_prog_compiler_pic='-DDLL_EXPORT'
6912 hpux9* | hpux10* | hpux11*)
6913 lt_prog_compiler_wl='-Wl,'
6914 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6921 lt_prog_compiler_pic='+Z'
6924 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6925 lt_prog_compiler_static='${wl}-a ${wl}archive'
6928 irix5* | irix6* | nonstopux*)
6929 lt_prog_compiler_wl='-Wl,'
6930 # PIC (with -KPIC) is the default.
6931 lt_prog_compiler_static='-non_shared'
6935 lt_prog_compiler_pic='-KPIC'
6936 lt_prog_compiler_static='-Bstatic'
6940 case $cc_basename in
6942 lt_prog_compiler_wl='-Wl,'
6943 lt_prog_compiler_pic='-KPIC'
6944 lt_prog_compiler_static='-static'
6946 pgcc* | pgf77* | pgf90* | pgf95*)
6947 # Portland Group compilers (*not* the Pentium gcc compiler,
6948 # which looks to be a dead project)
6949 lt_prog_compiler_wl='-Wl,'
6950 lt_prog_compiler_pic='-fpic'
6951 lt_prog_compiler_static='-Bstatic'
6954 lt_prog_compiler_wl='-Wl,'
6955 # All Alpha code is PIC.
6956 lt_prog_compiler_static='-non_shared'
6961 osf3* | osf4* | osf5*)
6962 lt_prog_compiler_wl='-Wl,'
6963 # All OSF/1 code is PIC.
6964 lt_prog_compiler_static='-non_shared'
6968 lt_prog_compiler_pic='-KPIC'
6969 lt_prog_compiler_static='-Bstatic'
6970 case $cc_basename in
6972 lt_prog_compiler_wl='-Qoption ld ';;
6974 lt_prog_compiler_wl='-Wl,';;
6979 lt_prog_compiler_wl='-Qoption ld '
6980 lt_prog_compiler_pic='-PIC'
6981 lt_prog_compiler_static='-Bstatic'
6984 sysv4 | sysv4.2uw2* | sysv4.3*)
6985 lt_prog_compiler_wl='-Wl,'
6986 lt_prog_compiler_pic='-KPIC'
6987 lt_prog_compiler_static='-Bstatic'
6991 if test -d /usr/nec ;then
6992 lt_prog_compiler_pic='-Kconform_pic'
6993 lt_prog_compiler_static='-Bstatic'
6997 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6998 lt_prog_compiler_wl='-Wl,'
6999 lt_prog_compiler_pic='-KPIC'
7000 lt_prog_compiler_static='-Bstatic'
7004 lt_prog_compiler_wl='-Wl,'
7005 lt_prog_compiler_can_build_shared=no
7009 lt_prog_compiler_pic='-pic'
7010 lt_prog_compiler_static='-Bstatic'
7014 lt_prog_compiler_can_build_shared=no
7019 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7020 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7023 # Check to make sure the PIC flag actually works.
7025 if test -n "$lt_prog_compiler_pic"; then
7027 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7028 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7029 if test "${lt_prog_compiler_pic_works+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 lt_prog_compiler_pic_works=no
7033 ac_outfile=conftest.$ac_objext
7034 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7035 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7036 # Insert the option either (1) after the last *FLAGS variable, or
7037 # (2) before a word containing "conftest.", or (3) at the end.
7038 # Note that $ac_compile itself does not contain backslashes and begins
7039 # with a dollar sign (not a hyphen), so the echo should work correctly.
7040 # The option is referenced via a variable to avoid confusing sed.
7041 lt_compile=`echo "$ac_compile" | $SED \
7042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7044 -e 's:$: $lt_compiler_flag:'`
7045 (eval echo "\"\$as_me:7045: $lt_compile\"" >&5)
7046 (eval "$lt_compile" 2>conftest.err)
7048 cat conftest.err >&5
7049 echo "$as_me:7049: \$? = $ac_status" >&5
7050 if (exit $ac_status) && test -s "$ac_outfile"; then
7051 # The compiler can only warn and ignore the option if not recognized
7052 # So say no if there are warnings other than the usual output.
7053 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7055 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7056 lt_prog_compiler_pic_works=yes
7062 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7063 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7065 if test x"$lt_prog_compiler_pic_works" = xyes; then
7066 case $lt_prog_compiler_pic in
7068 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7071 lt_prog_compiler_pic=
7072 lt_prog_compiler_can_build_shared=no
7077 # For platforms which do not support PIC, -DPIC is meaningless:
7079 lt_prog_compiler_pic=
7082 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7087 # Check to make sure the static flag actually works.
7089 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7090 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7091 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7092 if test "${lt_prog_compiler_static_works+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 lt_prog_compiler_static_works=no
7096 save_LDFLAGS="$LDFLAGS"
7097 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7098 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7099 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7100 # The linker can only warn and ignore the option if not recognized
7101 # So say no if there are warnings
7102 if test -s conftest.err; then
7103 # Append any errors to the config.log.
7104 cat conftest.err 1>&5
7105 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7106 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7107 if diff conftest.exp conftest.er2 >/dev/null; then
7108 lt_prog_compiler_static_works=yes
7111 lt_prog_compiler_static_works=yes
7115 LDFLAGS="$save_LDFLAGS"
7118 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7119 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7121 if test x"$lt_prog_compiler_static_works" = xyes; then
7124 lt_prog_compiler_static=
7128 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7129 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7130 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 lt_cv_prog_compiler_c_o=no
7134 $rm -r conftest 2>/dev/null
7138 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7140 lt_compiler_flag="-o out/conftest2.$ac_objext"
7141 # Insert the option either (1) after the last *FLAGS variable, or
7142 # (2) before a word containing "conftest.", or (3) at the end.
7143 # Note that $ac_compile itself does not contain backslashes and begins
7144 # with a dollar sign (not a hyphen), so the echo should work correctly.
7145 lt_compile=`echo "$ac_compile" | $SED \
7146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7148 -e 's:$: $lt_compiler_flag:'`
7149 (eval echo "\"\$as_me:7149: $lt_compile\"" >&5)
7150 (eval "$lt_compile" 2>out/conftest.err)
7152 cat out/conftest.err >&5
7153 echo "$as_me:7153: \$? = $ac_status" >&5
7154 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7156 # The compiler can only warn and ignore the option if not recognized
7157 # So say no if there are warnings
7158 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7159 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7160 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7161 lt_cv_prog_compiler_c_o=yes
7166 # SGI C++ compiler will create directory out/ii_files/ for
7167 # template instantiation
7168 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7169 $rm out/* && rmdir out
7175 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7176 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7179 hard_links="nottested"
7180 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7181 # do not overwrite the value of need_locks provided by the user
7182 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7183 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7186 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7188 ln conftest.a conftest.b 2>&5 || hard_links=no
7189 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7190 echo "$as_me:$LINENO: result: $hard_links" >&5
7191 echo "${ECHO_T}$hard_links" >&6
7192 if test "$hard_links" = no; then
7193 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7194 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7201 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7202 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7205 allow_undefined_flag=
7206 enable_shared_with_static_runtimes=no
7208 archive_expsym_cmds=
7209 old_archive_From_new_cmds=
7210 old_archive_from_expsyms_cmds=
7211 export_dynamic_flag_spec=
7212 whole_archive_flag_spec=
7213 thread_safe_flag_spec=
7214 hardcode_libdir_flag_spec=
7215 hardcode_libdir_flag_spec_ld=
7216 hardcode_libdir_separator=
7219 hardcode_shlibpath_var=unsupported
7220 link_all_deplibs=unknown
7221 hardcode_automatic=no
7224 always_export_symbols=no
7225 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7226 # include_expsyms should be a list of space-separated symbols to be *always*
7227 # included in the symbol list
7229 # exclude_expsyms can be an extended regexp of symbols to exclude
7230 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7231 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7232 # as well as any symbol that contains `d'.
7233 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7234 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7235 # platforms (ab)use it in PIC code, but their linkers get confused if
7236 # the symbol is explicitly referenced. Since portable code cannot
7237 # rely on this symbol name, it's probably fine to never include it in
7238 # preloaded symbol tables.
7239 extract_expsyms_cmds=
7240 # Just being paranoid about ensuring that cc_basename is set.
7241 for cc_temp in $compiler""; do
7243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7249 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7252 cygwin* | mingw* | pw32*)
7253 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7254 # When not using gcc, we currently assume that we are using
7255 # Microsoft Visual C++.
7256 if test "$GCC" != yes; then
7261 # we just hope/assume this is gcc and not c89 (= MSVC++)
7270 if test "$with_gnu_ld" = yes; then
7271 # If archive_cmds runs LD, not CC, wlarc should be empty
7274 # Set some defaults for GNU ld with shared library support. These
7275 # are reset later if shared libraries are not supported. Putting them
7276 # here allows them to be overridden if necessary.
7277 runpath_var=LD_RUN_PATH
7278 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7279 export_dynamic_flag_spec='${wl}--export-dynamic'
7280 # ancient GNU ld didn't support --whole-archive et. al.
7281 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7282 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7284 whole_archive_flag_spec=
7286 supports_anon_versioning=no
7287 case `$LD -v 2>/dev/null` in
7288 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7289 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7290 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7291 *\ 2.11.*) ;; # other 2.11 versions
7292 *) supports_anon_versioning=yes ;;
7295 # See if GNU ld supports shared libraries.
7297 aix3* | aix4* | aix5*)
7298 # On AIX/PPC, the GNU linker is very broken
7299 if test "$host_cpu" != ia64; then
7303 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7304 *** to be unable to reliably create shared libraries on AIX.
7305 *** Therefore, libtool is disabling shared libraries support. If you
7306 *** really care for shared libraries, you may want to modify your PATH
7307 *** so that a non-GNU linker is found, and then restart.
7314 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)'
7315 hardcode_libdir_flag_spec='-L$libdir'
7316 hardcode_minus_L=yes
7318 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7319 # that the semantics of dynamic libraries on AmigaOS, at least up
7320 # to version 4, is to share data among multiple programs linked
7321 # with the same dynamic library. Since this doesn't match the
7322 # behavior of shared libraries on other platforms, we can't use
7328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7329 allow_undefined_flag=unsupported
7330 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7331 # support --undefined. This deserves some investigation. FIXME
7332 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7338 cygwin* | mingw* | pw32*)
7339 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7340 # as there is no search path for DLLs.
7341 hardcode_libdir_flag_spec='-L$libdir'
7342 allow_undefined_flag=unsupported
7343 always_export_symbols=no
7344 enable_shared_with_static_runtimes=yes
7345 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7347 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7349 # If the export-symbols file already is a .def file (1st line
7350 # is EXPORTS), use it as is; otherwise, prepend...
7351 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7352 cp $export_symbols $output_objdir/$soname.def;
7354 echo EXPORTS > $output_objdir/$soname.def;
7355 cat $export_symbols >> $output_objdir/$soname.def;
7357 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7365 hardcode_shlibpath_var=no
7366 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7367 export_dynamic_flag_spec='${wl}-E'
7368 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7369 # Instead, shared libraries are loaded at an image base (0x10000000 by
7370 # default) and relocated if they conflict, which is a slow very memory
7371 # consuming and fragmenting process. To avoid this, we pick a random,
7372 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7373 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7374 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7375 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7379 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7381 case $cc_basename,$host_cpu in
7382 pgcc*) # Portland Group C compiler
7383 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7384 tmp_addflag=' $pic_flag'
7386 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7387 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7388 tmp_addflag=' $pic_flag -Mnomain' ;;
7389 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7390 tmp_addflag=' -i_dynamic' ;;
7391 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7392 tmp_addflag=' -i_dynamic -nofor_main' ;;
7393 ifc* | ifort*) # Intel Fortran compiler
7394 tmp_addflag=' -nofor_main' ;;
7396 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7398 if test $supports_anon_versioning = yes; then
7399 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7400 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7401 $echo "local: *; };" >> $output_objdir/$libname.ver~
7402 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7410 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7411 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7415 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7420 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7424 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7425 *** create shared libraries on Solaris systems. Therefore, libtool
7426 *** is disabling shared libraries support. We urge you to upgrade GNU
7427 *** binutils to release 2.9.1 or newer. Another option is to modify
7428 *** your PATH or compiler configuration so that the native linker is
7429 *** used, and then restart.
7432 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7434 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7441 case `$LD -v 2>&1` in
7442 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7446 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7447 *** reliably create shared libraries on SCO systems. Therefore, libtool
7448 *** is disabling shared libraries support. We urge you to upgrade GNU
7449 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7450 *** your PATH or compiler configuration so that the native linker is
7451 *** used, and then restart.
7456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7457 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7459 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7468 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7471 hardcode_shlibpath_var=no
7475 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7477 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7484 if test "$ld_shlibs" = no; then
7486 hardcode_libdir_flag_spec=
7487 export_dynamic_flag_spec=
7488 whole_archive_flag_spec=
7491 # PORTME fill in a description of your system's linker (not GNU ld)
7494 allow_undefined_flag=unsupported
7495 always_export_symbols=yes
7496 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'
7497 # Note: this linker hardcodes the directories in LIBPATH if there
7498 # are no directories specified by -L.
7499 hardcode_minus_L=yes
7500 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7501 # Neither direct hardcoding nor static linking is supported with a
7503 hardcode_direct=unsupported
7508 if test "$host_cpu" = ia64; then
7509 # On IA64, the linker does run time linking by default, so we don't
7510 # have to do anything special.
7511 aix_use_runtimelinking=no
7512 exp_sym_flag='-Bexport'
7515 # If we're using GNU nm, then we don't want the "-C" option.
7516 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7517 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7518 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'
7520 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'
7522 aix_use_runtimelinking=no
7524 # Test if we are trying to use run time linking or normal
7525 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7526 # need to do runtime linking.
7527 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7528 for ld_flag in $LDFLAGS; do
7529 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7530 aix_use_runtimelinking=yes
7537 exp_sym_flag='-bexport'
7538 no_entry_flag='-bnoentry'
7541 # When large executables or shared objects are built, AIX ld can
7542 # have problems creating the table of contents. If linking a library
7543 # or program results in "error TOC overflow" add -mminimal-toc to
7544 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7545 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7549 hardcode_libdir_separator=':'
7550 link_all_deplibs=yes
7552 if test "$GCC" = yes; then
7553 case $host_os in aix4.[012]|aix4.[012].*)
7554 # We only want to do this on AIX 4.2 and lower, the check
7555 # below for broken collect2 doesn't work under 4.3+
7556 collect2name=`${CC} -print-prog-name=collect2`
7557 if test -f "$collect2name" && \
7558 strings "$collect2name" | grep resolve_lib_name >/dev/null
7560 # We have reworked collect2
7563 # We have old collect2
7564 hardcode_direct=unsupported
7565 # It fails to find uninstalled libraries when the uninstalled
7566 # path is not listed in the libpath. Setting hardcode_minus_L
7567 # to unsupported forces relinking
7568 hardcode_minus_L=yes
7569 hardcode_libdir_flag_spec='-L$libdir'
7570 hardcode_libdir_separator=
7574 shared_flag='-shared'
7575 if test "$aix_use_runtimelinking" = yes; then
7576 shared_flag="$shared_flag "'${wl}-G'
7580 if test "$host_cpu" = ia64; then
7581 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7582 # chokes on -Wl,-G. The following line is correct:
7585 if test "$aix_use_runtimelinking" = yes; then
7586 shared_flag='${wl}-G'
7588 shared_flag='${wl}-bM:SRE'
7593 # It seems that -bexpall does not export symbols beginning with
7594 # underscore (_), so it is better to generate a list of symbols to export.
7595 always_export_symbols=yes
7596 if test "$aix_use_runtimelinking" = yes; then
7597 # Warning - without using the other runtime loading flags (-brtl),
7598 # -berok will link without error, but may produce a broken library.
7599 allow_undefined_flag='-berok'
7600 # Determine the default libpath from the value encoded in an empty executable.
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>conftest.er1
7620 grep -v '^ *+' conftest.er1 >conftest.err
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
7625 { ac_try='test -z "$ac_c_werror_flag"
7626 || test ! -s conftest.err'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; } &&
7632 { ac_try='test -s conftest$ac_exeext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7639 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7641 # Check for a 64-bit object if we didn't find anything.
7642 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; }
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7649 rm -f conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7653 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7654 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7656 if test "$host_cpu" = ia64; then
7657 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7658 allow_undefined_flag="-z nodefs"
7659 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7661 # Determine the default libpath from the value encoded in an empty executable.
7662 cat >conftest.$ac_ext <<_ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679 (eval $ac_link) 2>conftest.er1
7681 grep -v '^ *+' conftest.er1 >conftest.err
7683 cat conftest.err >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try='test -z "$ac_c_werror_flag"
7687 || test ! -s conftest.err'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; } &&
7693 { ac_try='test -s conftest$ac_exeext'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7702 # Check for a 64-bit object if we didn't find anything.
7703 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; }
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7710 rm -f conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7714 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7715 # Warning - without using the other run time loading flags,
7716 # -berok will link without error, but may produce a broken library.
7717 no_undefined_flag=' ${wl}-bernotok'
7718 allow_undefined_flag=' ${wl}-berok'
7719 # Exported symbols can be pulled into shared objects from archives
7720 whole_archive_flag_spec='$convenience'
7721 archive_cmds_need_lc=yes
7722 # This is similar to how AIX traditionally builds its shared libraries.
7723 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7729 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)'
7730 hardcode_libdir_flag_spec='-L$libdir'
7731 hardcode_minus_L=yes
7732 # see comment about different semantics on the GNU ld section
7737 export_dynamic_flag_spec=-rdynamic
7740 cygwin* | mingw* | pw32*)
7741 # When not using gcc, we currently assume that we are using
7742 # Microsoft Visual C++.
7743 # hardcode_libdir_flag_spec is actually meaningless, as there is
7744 # no search path for DLLs.
7745 hardcode_libdir_flag_spec=' '
7746 allow_undefined_flag=unsupported
7747 # Tell ltmain to make .lib files, not .a files.
7749 # Tell ltmain to make .dll files, not .so files.
7751 # FIXME: Setting linknames here is a bad hack.
7752 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7753 # The linker will automatically build a .lib file if we build a DLL.
7754 old_archive_From_new_cmds='true'
7755 # FIXME: Should let the user specify the lib program.
7756 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7757 fix_srcfile_path='`cygpath -w "$srcfile"`'
7758 enable_shared_with_static_runtimes=yes
7761 darwin* | rhapsody*)
7763 rhapsody* | darwin1.[012])
7764 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7767 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7768 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7770 case ${MACOSX_DEPLOYMENT_TARGET} in
7772 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7775 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7781 archive_cmds_need_lc=no
7783 hardcode_automatic=yes
7784 hardcode_shlibpath_var=unsupported
7785 whole_archive_flag_spec=''
7786 link_all_deplibs=yes
7787 if test "$GCC" = yes ; then
7788 output_verbose_link_cmd='echo'
7789 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7790 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7791 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7792 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}'
7793 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7795 case $cc_basename in
7797 output_verbose_link_cmd='echo'
7798 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7799 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7800 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7801 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7802 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7813 hardcode_libdir_flag_spec='-L$libdir'
7814 hardcode_shlibpath_var=no
7821 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7822 # support. Future versions do this automatically, but an explicit c++rt0.o
7823 # does not break anything, and helps significantly (at the cost of a little
7826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7827 hardcode_libdir_flag_spec='-R$libdir'
7829 hardcode_shlibpath_var=no
7832 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7836 hardcode_minus_L=yes
7837 hardcode_shlibpath_var=no
7840 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7841 freebsd* | kfreebsd*-gnu | dragonfly*)
7842 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7843 hardcode_libdir_flag_spec='-R$libdir'
7845 hardcode_shlibpath_var=no
7849 if test "$GCC" = yes; then
7850 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'
7852 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'
7854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7855 hardcode_libdir_separator=:
7858 # hardcode_minus_L: Not really in the search PATH,
7859 # but as the default location of the library.
7860 hardcode_minus_L=yes
7861 export_dynamic_flag_spec='${wl}-E'
7865 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7866 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7868 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7870 if test "$with_gnu_ld" = no; then
7871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7872 hardcode_libdir_separator=:
7875 export_dynamic_flag_spec='${wl}-E'
7877 # hardcode_minus_L: Not really in the search PATH,
7878 # but as the default location of the library.
7879 hardcode_minus_L=yes
7884 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7887 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7890 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7893 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7899 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7902 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7905 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7909 if test "$with_gnu_ld" = no; then
7910 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7911 hardcode_libdir_separator=:
7915 hardcode_libdir_flag_spec_ld='+b $libdir'
7917 hardcode_shlibpath_var=no
7921 export_dynamic_flag_spec='${wl}-E'
7923 # hardcode_minus_L: Not really in the search PATH,
7924 # but as the default location of the library.
7925 hardcode_minus_L=yes
7931 irix5* | irix6* | nonstopux*)
7932 if test "$GCC" = yes; then
7933 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'
7935 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'
7936 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7939 hardcode_libdir_separator=:
7940 link_all_deplibs=yes
7944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7945 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7947 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7949 hardcode_libdir_flag_spec='-R$libdir'
7951 hardcode_shlibpath_var=no
7955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7958 hardcode_libdir_separator=:
7959 hardcode_shlibpath_var=no
7964 hardcode_shlibpath_var=no
7965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7966 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7967 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7968 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7969 export_dynamic_flag_spec='${wl}-E'
7972 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7973 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7974 hardcode_libdir_flag_spec='-R$libdir'
7977 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7978 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7985 hardcode_libdir_flag_spec='-L$libdir'
7986 hardcode_minus_L=yes
7987 allow_undefined_flag=unsupported
7988 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'
7989 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7993 if test "$GCC" = yes; then
7994 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7995 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'
7997 allow_undefined_flag=' -expect_unresolved \*'
7998 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'
8000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8001 hardcode_libdir_separator=:
8004 osf4* | osf5*) # as osf3* with the addition of -msym flag
8005 if test "$GCC" = yes; then
8006 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8007 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'
8008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8010 allow_undefined_flag=' -expect_unresolved \*'
8011 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'
8012 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8013 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8015 # Both c and cxx compiler support -rpath directly
8016 hardcode_libdir_flag_spec='-rpath $libdir'
8018 hardcode_libdir_separator=:
8022 no_undefined_flag=' -z text'
8023 if test "$GCC" = yes; then
8025 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8026 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8027 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8030 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8031 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8032 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8034 hardcode_libdir_flag_spec='-R$libdir'
8035 hardcode_shlibpath_var=no
8037 solaris2.[0-5] | solaris2.[0-5].*) ;;
8039 # The compiler driver will combine linker options so we
8040 # cannot just pass the convience library names through
8041 # without $wl, iff we do not link with $LD.
8042 # Luckily, gcc supports the same syntax we need for Sun Studio.
8043 # Supported since Solaris 2.6 (maybe 2.5.1?)
8046 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8048 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8051 link_all_deplibs=yes
8055 if test "x$host_vendor" = xsequent; then
8056 # Use $CC to link under sequent, because it throws in some extra .o
8057 # files that make .init and .fini sections work.
8058 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8060 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8062 hardcode_libdir_flag_spec='-L$libdir'
8064 hardcode_minus_L=yes
8065 hardcode_shlibpath_var=no
8069 case $host_vendor in
8071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8072 hardcode_direct=yes # is this really true???
8075 ## LD is ld it makes a PLAMLIB
8076 ## CC just makes a GrossModule.
8077 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8078 reload_cmds='$CC -r -o $output$reload_objs'
8082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8083 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8086 runpath_var='LD_RUN_PATH'
8087 hardcode_shlibpath_var=no
8091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8092 hardcode_shlibpath_var=no
8093 export_dynamic_flag_spec='-Bexport'
8097 if test -d /usr/nec; then
8098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8099 hardcode_shlibpath_var=no
8100 runpath_var=LD_RUN_PATH
8101 hardcode_runpath_var=yes
8106 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8107 no_undefined_flag='${wl}-z,text'
8108 archive_cmds_need_lc=no
8109 hardcode_shlibpath_var=no
8110 runpath_var='LD_RUN_PATH'
8112 if test "$GCC" = yes; then
8113 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8114 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8116 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8117 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8121 sysv5* | sco3.2v5* | sco5v6*)
8122 # Note: We can NOT use -z defs as we might desire, because we do not
8123 # link with -lc, and that would cause any symbols used from libc to
8124 # always be unresolved, which means just about no library would
8125 # ever link correctly. If we're not using GNU ld we use -z text
8126 # though, which does catch some bad symbols but isn't as heavy-handed
8128 no_undefined_flag='${wl}-z,text'
8129 allow_undefined_flag='${wl}-z,nodefs'
8130 archive_cmds_need_lc=no
8131 hardcode_shlibpath_var=no
8132 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8133 hardcode_libdir_separator=':'
8134 link_all_deplibs=yes
8135 export_dynamic_flag_spec='${wl}-Bexport'
8136 runpath_var='LD_RUN_PATH'
8138 if test "$GCC" = yes; then
8139 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8140 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8142 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8143 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8149 hardcode_libdir_flag_spec='-L$libdir'
8150 hardcode_shlibpath_var=no
8159 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8160 echo "${ECHO_T}$ld_shlibs" >&6
8161 test "$ld_shlibs" = no && can_build_shared=no
8164 # Do we need to explicitly link libc?
8166 case "x$archive_cmds_need_lc" in
8168 # Assume -lc should be added
8169 archive_cmds_need_lc=yes
8171 if test "$enable_shared" = yes && test "$GCC" = yes; then
8172 case $archive_cmds in
8174 # FIXME: we may have to deal with multi-command sequences.
8177 # Test whether the compiler implicitly links with -lc since on some
8178 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8179 # to ld, don't add -lc before -lgcc.
8180 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8181 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8183 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186 (eval $ac_compile) 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } 2>conftest.err; then
8192 libobjs=conftest.$ac_objext
8194 wl=$lt_prog_compiler_wl
8195 pic_flag=$lt_prog_compiler_pic
8201 lt_save_allow_undefined_flag=$allow_undefined_flag
8202 allow_undefined_flag=
8203 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8204 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }
8209 archive_cmds_need_lc=no
8211 archive_cmds_need_lc=yes
8213 allow_undefined_flag=$lt_save_allow_undefined_flag
8215 cat conftest.err 1>&5
8218 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8219 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8226 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8227 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8229 libname_spec='lib$name'
8237 shlibpath_overrides_runpath=unknown
8239 dynamic_linker="$host_os ld.so"
8240 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8241 if test "$GCC" = yes; then
8242 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8243 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8244 # if the path contains ";" then we assume it to be the separator
8245 # otherwise default to the standard path separator (i.e. ":") - it is
8246 # assumed that no part of a normal pathname contains ";" but that should
8247 # okay in the real world where ";" in dirpaths is itself problematic.
8248 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8253 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8255 need_lib_prefix=unknown
8256 hardcode_into_libs=no
8258 # when you set need_version to no, make sure it does not cause -set_version
8259 # flags to be left without arguments
8260 need_version=unknown
8265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8266 shlibpath_var=LIBPATH
8268 # AIX 3 has no versioning support, so we append a major version to the name.
8269 soname_spec='${libname}${release}${shared_ext}$major'
8276 hardcode_into_libs=yes
8277 if test "$host_cpu" = ia64; then
8278 # AIX 5 supports IA64
8279 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8280 shlibpath_var=LD_LIBRARY_PATH
8282 # With GCC up to 2.95.x, collect2 would create an import file
8283 # for dependence libraries. The import file would start with
8284 # the line `#! .'. This would cause the generated library to
8285 # depend on `.', always an invalid library. This was fixed in
8286 # development snapshots of GCC prior to 3.0.
8288 aix4 | aix4.[01] | aix4.[01].*)
8289 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8291 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8298 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8299 # soname into executable. Probably we can add versioning support to
8300 # collect2, so additional links can be useful in future.
8301 if test "$aix_use_runtimelinking" = yes; then
8302 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8303 # instead of lib<name>.a to let people know that these are not
8304 # typical AIX shared libraries.
8305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307 # We preserve .a as extension for shared libraries through AIX4.2
8308 # and later when we are not doing run time linking.
8309 library_names_spec='${libname}${release}.a $libname.a'
8310 soname_spec='${libname}${release}${shared_ext}$major'
8312 shlibpath_var=LIBPATH
8317 library_names_spec='$libname.ixlibrary $libname.a'
8318 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8319 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'
8323 library_names_spec='${libname}${shared_ext}'
8324 dynamic_linker="$host_os ld.so"
8325 shlibpath_var=LIBRARY_PATH
8331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8332 soname_spec='${libname}${release}${shared_ext}$major'
8333 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8334 shlibpath_var=LD_LIBRARY_PATH
8335 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8336 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8337 # the default ld.so.conf also contains /usr/contrib/lib and
8338 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8339 # libtool to hard-code these into programs
8342 cygwin* | mingw* | pw32*)
8343 version_type=windows
8348 case $GCC,$host_os in
8349 yes,cygwin* | yes,mingw* | yes,pw32*)
8350 library_names_spec='$libname.dll.a'
8351 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8352 postinstall_cmds='base_file=`basename \${file}`~
8353 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8354 dldir=$destdir/`dirname \$dlpath`~
8355 test -d \$dldir || mkdir -p \$dldir~
8356 $install_prog $dir/$dlname \$dldir/$dlname~
8357 chmod a+x \$dldir/$dlname'
8358 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8359 dlpath=$dir/\$dldll~
8361 shlibpath_overrides_runpath=yes
8365 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8366 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8367 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8370 # MinGW DLLs use traditional 'lib' prefix
8371 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8372 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8373 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8374 # It is most probably a Windows format PATH printed by
8375 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8376 # path with ; separators, and with drive letters. We can handle the
8377 # drive letters (cygwin fileutils understands them), so leave them,
8378 # especially as we might pass files found there to a mingw objdump,
8379 # which wouldn't understand a cygwinified path. Ahh.
8380 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8382 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8386 # pw32 DLLs use 'pw' prefix rather than 'lib'
8387 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8393 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8396 dynamic_linker='Win32 ld.exe'
8397 # FIXME: first we should search . and the directory the executable is in
8401 darwin* | rhapsody*)
8402 dynamic_linker="$host_os dyld"
8406 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8407 soname_spec='${libname}${release}${major}$shared_ext'
8408 shlibpath_overrides_runpath=yes
8409 shlibpath_var=DYLD_LIBRARY_PATH
8410 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8411 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8412 if test "$GCC" = yes; then
8413 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"`
8415 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8417 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8425 soname_spec='${libname}${release}${shared_ext}$major'
8426 shlibpath_var=LD_LIBRARY_PATH
8437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8438 soname_spec='${libname}${release}${shared_ext}$major'
8439 shlibpath_var=LD_LIBRARY_PATH
8440 shlibpath_overrides_runpath=no
8441 hardcode_into_libs=yes
8442 dynamic_linker='GNU ld.so'
8445 freebsd* | dragonfly*)
8446 # DragonFly does not have aout. When/if they implement a new
8447 # versioning mechanism, adjust this.
8448 if test -x /usr/bin/objformat; then
8449 objformat=`/usr/bin/objformat`
8452 freebsd[123]*) objformat=aout ;;
8456 version_type=freebsd-$objformat
8457 case $version_type in
8459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8468 shlibpath_var=LD_LIBRARY_PATH
8471 shlibpath_overrides_runpath=yes
8473 freebsd3.[01]* | freebsdelf3.[01]*)
8474 shlibpath_overrides_runpath=yes
8475 hardcode_into_libs=yes
8477 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8478 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8479 shlibpath_overrides_runpath=no
8480 hardcode_into_libs=yes
8482 freebsd*) # from 4.6 on
8483 shlibpath_overrides_runpath=yes
8484 hardcode_into_libs=yes
8493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8494 soname_spec='${libname}${release}${shared_ext}$major'
8495 shlibpath_var=LD_LIBRARY_PATH
8496 hardcode_into_libs=yes
8499 hpux9* | hpux10* | hpux11*)
8500 # Give a soname corresponding to the major version so that dld.sl refuses to
8501 # link against other versions.
8508 hardcode_into_libs=yes
8509 dynamic_linker="$host_os dld.so"
8510 shlibpath_var=LD_LIBRARY_PATH
8511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8513 soname_spec='${libname}${release}${shared_ext}$major'
8514 if test "X$HPUX_IA64_MODE" = X32; then
8515 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8517 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8523 hardcode_into_libs=yes
8524 dynamic_linker="$host_os dld.sl"
8525 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8526 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8528 soname_spec='${libname}${release}${shared_ext}$major'
8529 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8534 dynamic_linker="$host_os dld.sl"
8535 shlibpath_var=SHLIB_PATH
8536 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8538 soname_spec='${libname}${release}${shared_ext}$major'
8541 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8542 postinstall_cmds='chmod 555 $lib'
8549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8550 soname_spec='${libname}${release}${shared_ext}$major'
8551 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8552 shlibpath_var=LD_LIBRARY_PATH
8553 shlibpath_overrides_runpath=no
8554 hardcode_into_libs=yes
8557 irix5* | irix6* | nonstopux*)
8559 nonstopux*) version_type=nonstopux ;;
8561 if test "$lt_cv_prog_gnu_ld" = yes; then
8569 soname_spec='${libname}${release}${shared_ext}$major'
8570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8572 irix5* | nonstopux*)
8576 case $LD in # libtool.m4 will add one of these switches to LD
8577 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8578 libsuff= shlibsuff= libmagic=32-bit;;
8579 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8580 libsuff=32 shlibsuff=N32 libmagic=N32;;
8581 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8582 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8583 *) libsuff= shlibsuff= libmagic=never-match;;
8587 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8588 shlibpath_overrides_runpath=no
8589 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8590 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8591 hardcode_into_libs=yes
8594 # No shared lib support for Linux oldld, aout, or coff.
8595 linux*oldld* | linux*aout* | linux*coff*)
8599 # This must be Linux ELF.
8604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8605 soname_spec='${libname}${release}${shared_ext}$major'
8606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8607 shlibpath_var=LD_LIBRARY_PATH
8608 shlibpath_overrides_runpath=no
8609 # This implies no fast_install, which is unacceptable.
8610 # Some rework will be needed to allow for fast_install
8611 # before this can be enabled.
8612 hardcode_into_libs=yes
8614 # Append ld.so.conf contents to the search path
8615 if test -f /etc/ld.so.conf; then
8616 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8617 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8620 # We used to test for /lib/ld.so.1 and disable shared libraries on
8621 # powerpc, because MkLinux only supported shared libraries with the
8622 # GNU dynamic linker. Since this was broken with cross compilers,
8623 # most powerpc-linux boxes support dynamic linking these days and
8624 # people can always --disable-shared, the test was removed, and we
8625 # assume the GNU/Linux dynamic linker is in use.
8626 dynamic_linker='GNU/Linux ld.so'
8633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8634 soname_spec='${libname}${release}${shared_ext}$major'
8635 shlibpath_var=LD_LIBRARY_PATH
8636 shlibpath_overrides_runpath=no
8637 hardcode_into_libs=yes
8638 dynamic_linker='GNU ld.so'
8645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8648 dynamic_linker='NetBSD (a.out) ld.so'
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8651 soname_spec='${libname}${release}${shared_ext}$major'
8652 dynamic_linker='NetBSD ld.elf_so'
8654 shlibpath_var=LD_LIBRARY_PATH
8655 shlibpath_overrides_runpath=yes
8656 hardcode_into_libs=yes
8661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8662 shlibpath_var=LD_LIBRARY_PATH
8663 shlibpath_overrides_runpath=yes
8670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8671 soname_spec='${libname}${release}${shared_ext}$major'
8672 shlibpath_var=LD_LIBRARY_PATH
8673 shlibpath_overrides_runpath=yes
8678 sys_lib_dlsearch_path_spec="/usr/lib"
8680 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8682 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8683 *) need_version=no ;;
8685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8687 shlibpath_var=LD_LIBRARY_PATH
8688 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8690 openbsd2.[89] | openbsd2.[89].*)
8691 shlibpath_overrides_runpath=no
8694 shlibpath_overrides_runpath=yes
8698 shlibpath_overrides_runpath=yes
8703 libname_spec='$name'
8706 library_names_spec='$libname${shared_ext} $libname.a'
8707 dynamic_linker='OS/2 ld.exe'
8708 shlibpath_var=LIBPATH
8711 osf3* | osf4* | osf5*)
8715 soname_spec='${libname}${release}${shared_ext}$major'
8716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717 shlibpath_var=LD_LIBRARY_PATH
8718 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8719 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8727 soname_spec='${libname}${release}${shared_ext}$major'
8728 shlibpath_var=LD_LIBRARY_PATH
8729 shlibpath_overrides_runpath=yes
8730 hardcode_into_libs=yes
8731 # ldd complains unless libraries are executable
8732 postinstall_cmds='chmod +x $lib'
8737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8738 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8739 shlibpath_var=LD_LIBRARY_PATH
8740 shlibpath_overrides_runpath=yes
8741 if test "$with_gnu_ld" = yes; then
8749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8750 soname_spec='${libname}${release}${shared_ext}$major'
8751 shlibpath_var=LD_LIBRARY_PATH
8752 case $host_vendor in
8754 shlibpath_overrides_runpath=no
8756 export_dynamic_flag_spec='${wl}-Blargedynsym'
8757 runpath_var=LD_RUN_PATH
8765 shlibpath_overrides_runpath=no
8766 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8772 if test -d /usr/nec ;then
8774 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8775 soname_spec='$libname${shared_ext}.$major'
8776 shlibpath_var=LD_LIBRARY_PATH
8780 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8781 version_type=freebsd-elf
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8785 soname_spec='${libname}${release}${shared_ext}$major'
8786 shlibpath_var=LD_LIBRARY_PATH
8787 hardcode_into_libs=yes
8788 if test "$with_gnu_ld" = yes; then
8789 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8790 shlibpath_overrides_runpath=no
8792 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8793 shlibpath_overrides_runpath=yes
8796 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8800 sys_lib_dlsearch_path_spec='/usr/lib'
8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8806 soname_spec='${libname}${release}${shared_ext}$major'
8807 shlibpath_var=LD_LIBRARY_PATH
8814 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8815 echo "${ECHO_T}$dynamic_linker" >&6
8816 test "$dynamic_linker" = no && can_build_shared=no
8818 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8819 if test "$GCC" = yes; then
8820 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8823 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8824 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8826 if test -n "$hardcode_libdir_flag_spec" || \
8827 test -n "$runpath_var" || \
8828 test "X$hardcode_automatic" = "Xyes" ; then
8830 # We can hardcode non-existant directories.
8831 if test "$hardcode_direct" != no &&
8832 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8833 # have to relink, otherwise we might link with an installed library
8834 # when we should be linking with a yet-to-be-installed one
8835 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8836 test "$hardcode_minus_L" != no; then
8837 # Linking always hardcodes the temporary library directory.
8838 hardcode_action=relink
8840 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8841 hardcode_action=immediate
8844 # We cannot hardcode anything, or else we can only hardcode existing
8846 hardcode_action=unsupported
8848 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8849 echo "${ECHO_T}$hardcode_action" >&6
8851 if test "$hardcode_action" = relink; then
8852 # Fast installation is not supported
8853 enable_fast_install=no
8854 elif test "$shlibpath_overrides_runpath" = yes ||
8855 test "$enable_shared" = no; then
8856 # Fast installation is not necessary
8857 enable_fast_install=needless
8862 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8863 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8864 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8865 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8866 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8867 echo "$as_me:$LINENO: result: yes" >&5
8868 echo "${ECHO_T}yes" >&6
8870 # FIXME - insert some real tests, host_os isn't really good enough
8873 if test -n "$STRIP" ; then
8874 striplib="$STRIP -x"
8875 echo "$as_me:$LINENO: result: yes" >&5
8876 echo "${ECHO_T}yes" >&6
8878 echo "$as_me:$LINENO: result: no" >&5
8879 echo "${ECHO_T}no" >&6
8883 echo "$as_me:$LINENO: result: no" >&5
8884 echo "${ECHO_T}no" >&6
8889 if test "x$enable_dlopen" != xyes; then
8890 enable_dlopen=unknown
8891 enable_dlopen_self=unknown
8892 enable_dlopen_self_static=unknown
8899 lt_cv_dlopen="load_add_on"
8901 lt_cv_dlopen_self=yes
8905 lt_cv_dlopen="LoadLibrary"
8910 lt_cv_dlopen="dlopen"
8915 # if libdl is installed we need to link against it
8916 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8917 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8918 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 ac_check_lib_save_LIBS=$LIBS
8923 cat >conftest.$ac_ext <<_ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8930 /* Override any gcc2 internal prototype to avoid an error. */
8934 /* We use char because int might match the return type of a gcc2
8935 builtin and then its argument prototype would still apply. */
8945 rm -f conftest.$ac_objext conftest$ac_exeext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8947 (eval $ac_link) 2>conftest.er1
8949 grep -v '^ *+' conftest.er1 >conftest.err
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try='test -z "$ac_c_werror_flag"
8955 || test ! -s conftest.err'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest$ac_exeext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_cv_lib_dl_dlopen=yes
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 ac_cv_lib_dl_dlopen=no
8974 rm -f conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976 LIBS=$ac_check_lib_save_LIBS
8978 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8979 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8980 if test $ac_cv_lib_dl_dlopen = yes; then
8981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8986 lt_cv_dlopen_self=yes
8993 echo "$as_me:$LINENO: checking for shl_load" >&5
8994 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8995 if test "${ac_cv_func_shl_load+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 cat >conftest.$ac_ext <<_ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9004 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9006 #define shl_load innocuous_shl_load
9008 /* System header to define __stub macros and hopefully few prototypes,
9009 which can conflict with char shl_load (); below.
9010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9011 <limits.h> exists even on freestanding compilers. */
9014 # include <limits.h>
9016 # include <assert.h>
9021 /* Override any gcc2 internal prototype to avoid an error. */
9026 /* We use char because int might match the return type of a gcc2
9027 builtin and then its argument prototype would still apply. */
9029 /* The GNU C library defines this for functions which it implements
9030 to always fail with ENOSYS. Some functions are actually named
9031 something starting with __ and the normal name is an alias. */
9032 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9035 char (*f) () = shl_load;
9044 return f != shl_load;
9049 rm -f conftest.$ac_objext conftest$ac_exeext
9050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9051 (eval $ac_link) 2>conftest.er1
9053 grep -v '^ *+' conftest.er1 >conftest.err
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
9058 { ac_try='test -z "$ac_c_werror_flag"
9059 || test ! -s conftest.err'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; } &&
9065 { ac_try='test -s conftest$ac_exeext'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; }; then
9071 ac_cv_func_shl_load=yes
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9076 ac_cv_func_shl_load=no
9078 rm -f conftest.err conftest.$ac_objext \
9079 conftest$ac_exeext conftest.$ac_ext
9081 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9082 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9083 if test $ac_cv_func_shl_load = yes; then
9084 lt_cv_dlopen="shl_load"
9086 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9087 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9088 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 ac_check_lib_save_LIBS=$LIBS
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9100 /* Override any gcc2 internal prototype to avoid an error. */
9104 /* We use char because int might match the return type of a gcc2
9105 builtin and then its argument prototype would still apply. */
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag"
9125 || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_lib_dld_shl_load=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9142 ac_cv_lib_dld_shl_load=no
9144 rm -f conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext
9146 LIBS=$ac_check_lib_save_LIBS
9148 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9149 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9150 if test $ac_cv_lib_dld_shl_load = yes; then
9151 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9153 echo "$as_me:$LINENO: checking for dlopen" >&5
9154 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9155 if test "${ac_cv_func_dlopen+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 cat >conftest.$ac_ext <<_ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9166 #define dlopen innocuous_dlopen
9168 /* System header to define __stub macros and hopefully few prototypes,
9169 which can conflict with char dlopen (); below.
9170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9171 <limits.h> exists even on freestanding compilers. */
9174 # include <limits.h>
9176 # include <assert.h>
9181 /* Override any gcc2 internal prototype to avoid an error. */
9186 /* We use char because int might match the return type of a gcc2
9187 builtin and then its argument prototype would still apply. */
9189 /* The GNU C library defines this for functions which it implements
9190 to always fail with ENOSYS. Some functions are actually named
9191 something starting with __ and the normal name is an alias. */
9192 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9195 char (*f) () = dlopen;
9209 rm -f conftest.$ac_objext conftest$ac_exeext
9210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9211 (eval $ac_link) 2>conftest.er1
9213 grep -v '^ *+' conftest.er1 >conftest.err
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
9218 { ac_try='test -z "$ac_c_werror_flag"
9219 || test ! -s conftest.err'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; } &&
9225 { ac_try='test -s conftest$ac_exeext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_cv_func_dlopen=yes
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 ac_cv_func_dlopen=no
9238 rm -f conftest.err conftest.$ac_objext \
9239 conftest$ac_exeext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9242 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9243 if test $ac_cv_func_dlopen = yes; then
9244 lt_cv_dlopen="dlopen"
9246 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9247 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9248 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 ac_check_lib_save_LIBS=$LIBS
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9260 /* Override any gcc2 internal prototype to avoid an error. */
9264 /* We use char because int might match the return type of a gcc2
9265 builtin and then its argument prototype would still apply. */
9275 rm -f conftest.$ac_objext conftest$ac_exeext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277 (eval $ac_link) 2>conftest.er1
9279 grep -v '^ *+' conftest.er1 >conftest.err
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag"
9285 || test ! -s conftest.err'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try='test -s conftest$ac_exeext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 ac_cv_lib_dl_dlopen=yes
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9302 ac_cv_lib_dl_dlopen=no
9304 rm -f conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9308 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9309 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9310 if test $ac_cv_lib_dl_dlopen = yes; then
9311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9313 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9314 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9315 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 ac_check_lib_save_LIBS=$LIBS
9320 cat >conftest.$ac_ext <<_ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9327 /* Override any gcc2 internal prototype to avoid an error. */
9331 /* We use char because int might match the return type of a gcc2
9332 builtin and then its argument prototype would still apply. */
9342 rm -f conftest.$ac_objext conftest$ac_exeext
9343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9344 (eval $ac_link) 2>conftest.er1
9346 grep -v '^ *+' conftest.er1 >conftest.err
9348 cat conftest.err >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -z "$ac_c_werror_flag"
9352 || test ! -s conftest.err'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; } &&
9358 { ac_try='test -s conftest$ac_exeext'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; }; then
9364 ac_cv_lib_svld_dlopen=yes
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9369 ac_cv_lib_svld_dlopen=no
9371 rm -f conftest.err conftest.$ac_objext \
9372 conftest$ac_exeext conftest.$ac_ext
9373 LIBS=$ac_check_lib_save_LIBS
9375 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9376 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9377 if test $ac_cv_lib_svld_dlopen = yes; then
9378 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9380 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9381 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9382 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 ac_check_lib_save_LIBS=$LIBS
9387 cat >conftest.$ac_ext <<_ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9394 /* Override any gcc2 internal prototype to avoid an error. */
9398 /* We use char because int might match the return type of a gcc2
9399 builtin and then its argument prototype would still apply. */
9409 rm -f conftest.$ac_objext conftest$ac_exeext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9411 (eval $ac_link) 2>conftest.er1
9413 grep -v '^ *+' conftest.er1 >conftest.err
9415 cat conftest.err >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try='test -z "$ac_c_werror_flag"
9419 || test ! -s conftest.err'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try='test -s conftest$ac_exeext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9431 ac_cv_lib_dld_dld_link=yes
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9436 ac_cv_lib_dld_dld_link=no
9438 rm -f conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
9440 LIBS=$ac_check_lib_save_LIBS
9442 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9443 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9444 if test $ac_cv_lib_dld_dld_link = yes; then
9445 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9466 if test "x$lt_cv_dlopen" != xno; then
9472 case $lt_cv_dlopen in
9474 save_CPPFLAGS="$CPPFLAGS"
9475 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9477 save_LDFLAGS="$LDFLAGS"
9478 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9481 LIBS="$lt_cv_dlopen_libs $LIBS"
9483 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9484 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9485 if test "${lt_cv_dlopen_self+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 if test "$cross_compiling" = yes; then :
9489 lt_cv_dlopen_self=cross
9491 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9492 lt_status=$lt_dlunknown
9493 cat > conftest.$ac_ext <<EOF
9494 #line 9494 "configure"
9495 #include "confdefs.h"
9504 # define LT_DLGLOBAL RTLD_GLOBAL
9507 # define LT_DLGLOBAL DL_GLOBAL
9509 # define LT_DLGLOBAL 0
9513 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9514 find out it does not work in some platform. */
9515 #ifndef LT_DLLAZY_OR_NOW
9517 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9520 # define LT_DLLAZY_OR_NOW DL_LAZY
9523 # define LT_DLLAZY_OR_NOW RTLD_NOW
9526 # define LT_DLLAZY_OR_NOW DL_NOW
9528 # define LT_DLLAZY_OR_NOW 0
9536 extern "C" void exit (int);
9539 void fnord() { int i=42;}
9542 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9543 int status = $lt_dlunknown;
9547 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9548 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9549 /* dlclose (self); */
9557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558 (eval $ac_link) 2>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9562 (./conftest; exit; ) >&5 2>/dev/null
9565 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9566 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9567 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9570 # compilation failed
9571 lt_cv_dlopen_self=no
9578 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9579 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9581 if test "x$lt_cv_dlopen_self" = xyes; then
9582 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9583 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9584 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9585 if test "${lt_cv_dlopen_self_static+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 if test "$cross_compiling" = yes; then :
9589 lt_cv_dlopen_self_static=cross
9591 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9592 lt_status=$lt_dlunknown
9593 cat > conftest.$ac_ext <<EOF
9594 #line 9594 "configure"
9595 #include "confdefs.h"
9604 # define LT_DLGLOBAL RTLD_GLOBAL
9607 # define LT_DLGLOBAL DL_GLOBAL
9609 # define LT_DLGLOBAL 0
9613 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9614 find out it does not work in some platform. */
9615 #ifndef LT_DLLAZY_OR_NOW
9617 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9620 # define LT_DLLAZY_OR_NOW DL_LAZY
9623 # define LT_DLLAZY_OR_NOW RTLD_NOW
9626 # define LT_DLLAZY_OR_NOW DL_NOW
9628 # define LT_DLLAZY_OR_NOW 0
9636 extern "C" void exit (int);
9639 void fnord() { int i=42;}
9642 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9643 int status = $lt_dlunknown;
9647 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9648 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9649 /* dlclose (self); */
9657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658 (eval $ac_link) 2>&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9662 (./conftest; exit; ) >&5 2>/dev/null
9665 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9666 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9667 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9670 # compilation failed
9671 lt_cv_dlopen_self_static=no
9678 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9679 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9682 CPPFLAGS="$save_CPPFLAGS"
9683 LDFLAGS="$save_LDFLAGS"
9688 case $lt_cv_dlopen_self in
9689 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9690 *) enable_dlopen_self=unknown ;;
9693 case $lt_cv_dlopen_self_static in
9694 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9695 *) enable_dlopen_self_static=unknown ;;
9700 # Report which library types will actually be built
9701 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9702 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9703 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9704 echo "${ECHO_T}$can_build_shared" >&6
9706 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9707 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9708 test "$can_build_shared" = "no" && enable_shared=no
9710 # On AIX, shared libraries and static libraries use the same namespace, and
9711 # are all built from PIC.
9714 test "$enable_shared" = yes && enable_static=no
9715 if test -n "$RANLIB"; then
9716 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9717 postinstall_cmds='$RANLIB $lib'
9722 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9723 test "$enable_shared" = yes && enable_static=no
9727 echo "$as_me:$LINENO: result: $enable_shared" >&5
9728 echo "${ECHO_T}$enable_shared" >&6
9730 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9731 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9732 # Make sure either enable_shared or enable_static is yes.
9733 test "$enable_shared" = yes || enable_static=yes
9734 echo "$as_me:$LINENO: result: $enable_static" >&5
9735 echo "${ECHO_T}$enable_static" >&6
9737 # The else clause should only fire when bootstrapping the
9738 # libtool distribution, otherwise you forgot to ship ltmain.sh
9739 # with your package, and you will get complaints that there are
9740 # no rules to generate ltmain.sh.
9741 if test -f "$ltmain"; then
9742 # See if we are running on zsh, and set the options which allow our commands through
9743 # without removal of \ escapes.
9744 if test -n "${ZSH_VERSION+set}" ; then
9745 setopt NO_GLOB_SUBST
9747 # Now quote all the things that may contain metacharacters while being
9748 # careful not to overquote the AC_SUBSTed values. We take copies of the
9749 # variables and quote the copies for generation of the libtool script.
9750 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9752 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9753 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9754 deplibs_check_method reload_flag reload_cmds need_locks \
9755 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9756 lt_cv_sys_global_symbol_to_c_name_address \
9757 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9758 old_postinstall_cmds old_postuninstall_cmds \
9762 lt_prog_compiler_wl \
9763 lt_prog_compiler_pic \
9764 lt_prog_compiler_static \
9765 lt_prog_compiler_no_builtin_flag \
9766 export_dynamic_flag_spec \
9767 thread_safe_flag_spec \
9768 whole_archive_flag_spec \
9769 enable_shared_with_static_runtimes \
9771 old_archive_from_new_cmds \
9776 compiler_lib_search_path \
9778 archive_expsym_cmds \
9780 postuninstall_cmds \
9781 old_archive_from_expsyms_cmds \
9782 allow_undefined_flag \
9784 export_symbols_cmds \
9785 hardcode_libdir_flag_spec \
9786 hardcode_libdir_flag_spec_ld \
9787 hardcode_libdir_separator \
9788 hardcode_automatic \
9790 module_expsym_cmds \
9791 lt_cv_prog_compiler_c_o \
9796 old_archive_cmds | \
9797 old_archive_from_new_cmds | \
9799 archive_expsym_cmds | \
9801 module_expsym_cmds | \
9802 old_archive_from_expsyms_cmds | \
9803 export_symbols_cmds | \
9804 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9805 postinstall_cmds | postuninstall_cmds | \
9806 old_postinstall_cmds | old_postuninstall_cmds | \
9807 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9808 # Double-quote double-evaled strings.
9809 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9812 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9818 *'\$0 --fallback-echo"')
9819 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9824 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9826 { echo "$as_me:$LINENO: creating $ofile" >&5
9827 echo "$as_me: creating $ofile" >&6;}
9829 cat <<__EOF__ >> "$cfgfile"
9832 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9833 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9834 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9836 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9837 # Free Software Foundation, Inc.
9839 # This file is part of GNU Libtool:
9840 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9842 # This program is free software; you can redistribute it and/or modify
9843 # it under the terms of the GNU General Public License as published by
9844 # the Free Software Foundation; either version 2 of the License, or
9845 # (at your option) any later version.
9847 # This program is distributed in the hope that it will be useful, but
9848 # WITHOUT ANY WARRANTY; without even the implied warranty of
9849 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9850 # General Public License for more details.
9852 # You should have received a copy of the GNU General Public License
9853 # along with this program; if not, write to the Free Software
9854 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9856 # As a special exception to the GNU General Public License, if you
9857 # distribute this file as part of a program that contains a
9858 # configuration script generated by Autoconf, you may include it under
9859 # the same distribution terms that you use for the rest of that program.
9861 # A sed program that does not truncate output.
9864 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9865 Xsed="$SED -e 1s/^X//"
9867 # The HP-UX ksh and POSIX shell print the target directory to stdout
9869 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9871 # The names of the tagged configurations supported by this script.
9874 # ### BEGIN LIBTOOL CONFIG
9876 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9878 # Shell to use when invoking shell scripts.
9881 # Whether or not to build shared libraries.
9882 build_libtool_libs=$enable_shared
9884 # Whether or not to build static libraries.
9885 build_old_libs=$enable_static
9887 # Whether or not to add -lc for building shared libraries.
9888 build_libtool_need_lc=$archive_cmds_need_lc
9890 # Whether or not to disallow shared libs when runtime libs are static
9891 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9893 # Whether or not to optimize for fast installation.
9894 fast_install=$enable_fast_install
9897 host_alias=$host_alias
9902 build_alias=$build_alias
9906 # An echo program that does not interpret backslashes.
9911 AR_FLAGS=$lt_AR_FLAGS
9916 # LTCC compiler flags.
9917 LTCFLAGS=$lt_LTCFLAGS
9919 # A language-specific compiler.
9922 # Is the compiler the GNU C compiler?
9928 # The linker used to build libraries.
9931 # Whether we need hard or soft links.
9934 # A BSD-compatible nm program.
9937 # A symbol stripping program
9940 # Used to examine libraries when file_magic_cmd begins "file"
9941 MAGIC_CMD=$MAGIC_CMD
9943 # Used on cygwin: DLL creation program.
9946 # Used on cygwin: object dumper.
9949 # Used on cygwin: assembler.
9952 # The name of the directory that contains temporary libtool files.
9955 # How to create reloadable object files.
9956 reload_flag=$lt_reload_flag
9957 reload_cmds=$lt_reload_cmds
9959 # How to pass a linker flag through the compiler.
9960 wl=$lt_lt_prog_compiler_wl
9962 # Object file suffix (normally "o").
9965 # Old archive suffix (normally "a").
9968 # Shared library suffix (normally ".so").
9969 shrext_cmds='$shrext_cmds'
9971 # Executable file suffix (normally "").
9974 # Additional compiler flags for building library objects.
9975 pic_flag=$lt_lt_prog_compiler_pic
9978 # What is the maximum length of a command?
9979 max_cmd_len=$lt_cv_sys_max_cmd_len
9981 # Does compiler simultaneously support -c and -o options?
9982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9984 # Must we lock files when doing compilation?
9985 need_locks=$lt_need_locks
9987 # Do we need the lib prefix for modules?
9988 need_lib_prefix=$need_lib_prefix
9990 # Do we need a version for libraries?
9991 need_version=$need_version
9993 # Whether dlopen is supported.
9994 dlopen_support=$enable_dlopen
9996 # Whether dlopen of programs is supported.
9997 dlopen_self=$enable_dlopen_self
9999 # Whether dlopen of statically linked programs is supported.
10000 dlopen_self_static=$enable_dlopen_self_static
10002 # Compiler flag to prevent dynamic linking.
10003 link_static_flag=$lt_lt_prog_compiler_static
10005 # Compiler flag to turn off builtin functions.
10006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10008 # Compiler flag to allow reflexive dlopens.
10009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10011 # Compiler flag to generate shared objects directly from archives.
10012 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10014 # Compiler flag to generate thread-safe objects.
10015 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10017 # Library versioning type.
10018 version_type=$version_type
10020 # Format of library name prefix.
10021 libname_spec=$lt_libname_spec
10023 # List of archive names. First name is the real one, the rest are links.
10024 # The last name is the one that the linker finds with -lNAME.
10025 library_names_spec=$lt_library_names_spec
10027 # The coded name of the library, if different from the real name.
10028 soname_spec=$lt_soname_spec
10030 # Commands used to build and install an old-style archive.
10032 old_archive_cmds=$lt_old_archive_cmds
10033 old_postinstall_cmds=$lt_old_postinstall_cmds
10034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10036 # Create an old-style archive from a shared archive.
10037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10039 # Create a temporary old-style archive to link instead of a shared archive.
10040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10042 # Commands used to build and install a shared archive.
10043 archive_cmds=$lt_archive_cmds
10044 archive_expsym_cmds=$lt_archive_expsym_cmds
10045 postinstall_cmds=$lt_postinstall_cmds
10046 postuninstall_cmds=$lt_postuninstall_cmds
10048 # Commands used to build a loadable module (assumed same as above if empty)
10049 module_cmds=$lt_module_cmds
10050 module_expsym_cmds=$lt_module_expsym_cmds
10052 # Commands to strip libraries.
10053 old_striplib=$lt_old_striplib
10054 striplib=$lt_striplib
10056 # Dependencies to place before the objects being linked to create a
10058 predep_objects=$lt_predep_objects
10060 # Dependencies to place after the objects being linked to create a
10062 postdep_objects=$lt_postdep_objects
10064 # Dependencies to place before the objects being linked to create a
10066 predeps=$lt_predeps
10068 # Dependencies to place after the objects being linked to create a
10070 postdeps=$lt_postdeps
10072 # The library search path used internally by the compiler when linking
10073 # a shared library.
10074 compiler_lib_search_path=$lt_compiler_lib_search_path
10076 # Method to check whether dependent libraries are shared objects.
10077 deplibs_check_method=$lt_deplibs_check_method
10079 # Command to use when deplibs_check_method == file_magic.
10080 file_magic_cmd=$lt_file_magic_cmd
10082 # Flag that allows shared libraries with undefined symbols to be built.
10083 allow_undefined_flag=$lt_allow_undefined_flag
10085 # Flag that forces no undefined symbols.
10086 no_undefined_flag=$lt_no_undefined_flag
10088 # Commands used to finish a libtool library installation in a directory.
10089 finish_cmds=$lt_finish_cmds
10091 # Same as above, but a single script fragment to be evaled but not shown.
10092 finish_eval=$lt_finish_eval
10094 # Take the output of nm and produce a listing of raw symbols and C names.
10095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10097 # Transform the output of nm in a proper C declaration
10098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10100 # Transform the output of nm in a C name address pair
10101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10103 # This is the shared library runtime path variable.
10104 runpath_var=$runpath_var
10106 # This is the shared library path variable.
10107 shlibpath_var=$shlibpath_var
10109 # Is shlibpath searched before the hard-coded library search path?
10110 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10112 # How to hardcode a shared library path into an executable.
10113 hardcode_action=$hardcode_action
10115 # Whether we should hardcode library paths into libraries.
10116 hardcode_into_libs=$hardcode_into_libs
10118 # Flag to hardcode \$libdir into a binary during linking.
10119 # This must work even if \$libdir does not exist.
10120 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10122 # If ld is used when linking, flag to hardcode \$libdir into
10123 # a binary during linking. This must work even if \$libdir does
10125 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10127 # Whether we need a single -rpath flag with a separated argument.
10128 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10130 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10131 # resulting binary.
10132 hardcode_direct=$hardcode_direct
10134 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10135 # resulting binary.
10136 hardcode_minus_L=$hardcode_minus_L
10138 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10139 # the resulting binary.
10140 hardcode_shlibpath_var=$hardcode_shlibpath_var
10142 # Set to yes if building a shared library automatically hardcodes DIR into the library
10143 # and all subsequent libraries and executables linked against it.
10144 hardcode_automatic=$hardcode_automatic
10146 # Variables whose values should be saved in libtool wrapper scripts and
10147 # restored at relink time.
10148 variables_saved_for_relink="$variables_saved_for_relink"
10150 # Whether libtool must link a program against all its dependency libraries.
10151 link_all_deplibs=$link_all_deplibs
10153 # Compile-time system search path for libraries
10154 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10156 # Run-time system search path for libraries
10157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10159 # Fix the shell variable \$srcfile for the compiler.
10160 fix_srcfile_path="$fix_srcfile_path"
10162 # Set to yes if exported symbols are required.
10163 always_export_symbols=$always_export_symbols
10165 # The commands to list exported symbols.
10166 export_symbols_cmds=$lt_export_symbols_cmds
10168 # The commands to extract the exported symbol list from a shared archive.
10169 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10171 # Symbols that should not be listed in the preloaded symbols.
10172 exclude_expsyms=$lt_exclude_expsyms
10174 # Symbols that must always be exported.
10175 include_expsyms=$lt_include_expsyms
10177 # ### END LIBTOOL CONFIG
10184 cat <<\EOF >> "$cfgfile"
10186 # AIX sometimes has problems with the GCC collect2 program. For some
10187 # reason, if we set the COLLECT_NAMES environment variable, the problems
10188 # vanish in a puff of smoke.
10189 if test "X${COLLECT_NAMES+set}" != Xset; then
10191 export COLLECT_NAMES
10197 # We use sed instead of cat because bash on DJGPP gets confused if
10198 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10199 # text mode, it properly converts lines to CR/LF. This bash problem
10200 # is reportedly fixed, but why not run on old versions too?
10201 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10203 mv -f "$cfgfile" "$ofile" || \
10204 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10208 # If there is no Makefile yet, we rely on a make rule to execute
10209 # `config.status --recheck' to rerun these tests and create the
10210 # libtool script then.
10211 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10212 if test -f "$ltmain_in"; then
10213 test -f Makefile && make "$ltmain"
10219 ac_cpp='$CPP $CPPFLAGS'
10220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10227 # Check whether --with-tags or --without-tags was given.
10228 if test "${with_tags+set}" = set; then
10229 withval="$with_tags"
10230 tagnames="$withval"
10233 if test -f "$ltmain" && test -n "$tagnames"; then
10234 if test ! -f "${ofile}"; then
10235 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10236 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10239 if test -z "$LTCC"; then
10240 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10241 if test -z "$LTCC"; then
10242 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10243 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10245 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10246 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10249 if test -z "$LTCFLAGS"; then
10250 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10253 # Extract list of available tagged configurations in $ofile.
10254 # Note that this assumes the entire list is on one line.
10255 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10257 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10258 for tagname in $tagnames; do
10260 # Check whether tagname contains only valid characters
10261 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10263 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10264 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10265 { (exit 1); exit 1; }; }
10269 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10271 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10272 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10273 { (exit 1); exit 1; }; }
10276 # Update the list of available tags.
10277 if test -n "$tagname"; then
10278 echo appending configuration tag \"$tagname\" to $ofile
10282 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10283 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10284 (test "X$CXX" != "Xg++"))) ; then
10286 ac_cpp='$CXXCPP $CPPFLAGS'
10287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10294 archive_cmds_need_lc_CXX=no
10295 allow_undefined_flag_CXX=
10296 always_export_symbols_CXX=no
10297 archive_expsym_cmds_CXX=
10298 export_dynamic_flag_spec_CXX=
10299 hardcode_direct_CXX=no
10300 hardcode_libdir_flag_spec_CXX=
10301 hardcode_libdir_flag_spec_ld_CXX=
10302 hardcode_libdir_separator_CXX=
10303 hardcode_minus_L_CXX=no
10304 hardcode_shlibpath_var_CXX=unsupported
10305 hardcode_automatic_CXX=no
10307 module_expsym_cmds_CXX=
10308 link_all_deplibs_CXX=unknown
10309 old_archive_cmds_CXX=$old_archive_cmds
10310 no_undefined_flag_CXX=
10311 whole_archive_flag_spec_CXX=
10312 enable_shared_with_static_runtimes_CXX=no
10314 # Dependencies to place before and after the object being linked:
10315 predep_objects_CXX=
10316 postdep_objects_CXX=
10319 compiler_lib_search_path_CXX=
10321 # Source file extension for C++ test sources.
10324 # Object file extension for compiled C++ test sources.
10328 # Code to be used in simple compile tests
10329 lt_simple_compile_test_code="int some_variable = 0;\n"
10331 # Code to be used in simple link tests
10332 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10336 # If no C compiler was specified, use CC.
10339 # If no C compiler flags were specified, use CFLAGS.
10340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10342 # Allow CC to be a program name with arguments.
10346 # save warnings/boilerplate of simple test code
10347 ac_outfile=conftest.$ac_objext
10348 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10350 _lt_compiler_boilerplate=`cat conftest.err`
10353 ac_outfile=conftest.$ac_objext
10354 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10356 _lt_linker_boilerplate=`cat conftest.err`
10360 # Allow CC to be a program name with arguments.
10365 lt_save_with_gnu_ld=$with_gnu_ld
10366 lt_save_path_LD=$lt_cv_path_LD
10367 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10368 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10370 $as_unset lt_cv_prog_gnu_ld
10372 if test -n "${lt_cv_path_LDCXX+set}"; then
10373 lt_cv_path_LD=$lt_cv_path_LDCXX
10375 $as_unset lt_cv_path_LD
10377 test -z "${LDCXX+set}" || LD=$LDCXX
10381 for cc_temp in $compiler""; do
10383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10392 # We don't want -fno-exception wen compiling C++ code, so set the
10393 # no_builtin_flag separately
10394 if test "$GXX" = yes; then
10395 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10397 lt_prog_compiler_no_builtin_flag_CXX=
10400 if test "$GXX" = yes; then
10401 # Set up default GNU C++ configuration
10404 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10405 if test "${with_gnu_ld+set}" = set; then
10406 withval="$with_gnu_ld"
10407 test "$withval" = no || with_gnu_ld=yes
10412 if test "$GCC" = yes; then
10413 # Check if gcc -print-prog-name=ld gives a path.
10414 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10415 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10418 # gcc leaves a trailing carriage return which upsets mingw
10419 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10421 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10424 # Accept absolute paths.
10426 re_direlt='/[^/][^/]*/\.\./'
10427 # Canonicalize the pathname of ld
10428 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10429 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10430 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10432 test -z "$LD" && LD="$ac_prog"
10435 # If it fails, then pretend we aren't using GCC.
10439 # If it is relative, then search for the first ld in PATH.
10440 with_gnu_ld=unknown
10443 elif test "$with_gnu_ld" = yes; then
10444 echo "$as_me:$LINENO: checking for GNU ld" >&5
10445 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10447 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10448 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10450 if test "${lt_cv_path_LD+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 if test -z "$LD"; then
10454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10455 for ac_dir in $PATH; do
10457 test -z "$ac_dir" && ac_dir=.
10458 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10459 lt_cv_path_LD="$ac_dir/$ac_prog"
10460 # Check to see if the program is GNU ld. I'd rather use --version,
10461 # but apparently some variants of GNU ld only accept -v.
10462 # Break only if it was the GNU/non-GNU ld that we prefer.
10463 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10464 *GNU* | *'with BFD'*)
10465 test "$with_gnu_ld" != no && break
10468 test "$with_gnu_ld" != yes && break
10475 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10479 LD="$lt_cv_path_LD"
10480 if test -n "$LD"; then
10481 echo "$as_me:$LINENO: result: $LD" >&5
10482 echo "${ECHO_T}$LD" >&6
10484 echo "$as_me:$LINENO: result: no" >&5
10485 echo "${ECHO_T}no" >&6
10487 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10488 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10489 { (exit 1); exit 1; }; }
10490 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10491 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10492 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10496 case `$LD -v 2>&1 </dev/null` in
10497 *GNU* | *'with BFD'*)
10498 lt_cv_prog_gnu_ld=yes
10501 lt_cv_prog_gnu_ld=no
10505 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10506 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10507 with_gnu_ld=$lt_cv_prog_gnu_ld
10511 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10512 # archiving commands below assume that GNU ld is being used.
10513 if test "$with_gnu_ld" = yes; then
10514 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10515 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'
10517 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10518 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10520 # If archive_cmds runs LD, not CC, wlarc should be empty
10521 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10522 # investigate it a little bit more. (MM)
10525 # ancient GNU ld didn't support --whole-archive et. al.
10526 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10527 grep 'no-whole-archive' > /dev/null; then
10528 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10530 whole_archive_flag_spec_CXX=
10536 # A generic and very simple default shared library creation
10537 # command for GNU C++ for the case where it uses the native
10538 # linker, instead of GNU ld. If possible, this setting should
10539 # overridden to take advantage of the native linker features on
10540 # the platform it is being used on.
10541 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10544 # Commands to make compiler produce verbose output that lists
10545 # what "hidden" libraries, object files and flags are used when
10546 # linking a shared library.
10547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10555 # PORTME: fill in a description of your system's C++ link characteristics
10556 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10557 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10561 # FIXME: insert proper C++ library support
10565 if test "$host_cpu" = ia64; then
10566 # On IA64, the linker does run time linking by default, so we don't
10567 # have to do anything special.
10568 aix_use_runtimelinking=no
10569 exp_sym_flag='-Bexport'
10572 aix_use_runtimelinking=no
10574 # Test if we are trying to use run time linking or normal
10575 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10576 # need to do runtime linking.
10577 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10578 for ld_flag in $LDFLAGS; do
10581 aix_use_runtimelinking=yes
10589 exp_sym_flag='-bexport'
10590 no_entry_flag='-bnoentry'
10593 # When large executables or shared objects are built, AIX ld can
10594 # have problems creating the table of contents. If linking a library
10595 # or program results in "error TOC overflow" add -mminimal-toc to
10596 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10597 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10599 archive_cmds_CXX=''
10600 hardcode_direct_CXX=yes
10601 hardcode_libdir_separator_CXX=':'
10602 link_all_deplibs_CXX=yes
10604 if test "$GXX" = yes; then
10605 case $host_os in aix4.[012]|aix4.[012].*)
10606 # We only want to do this on AIX 4.2 and lower, the check
10607 # below for broken collect2 doesn't work under 4.3+
10608 collect2name=`${CC} -print-prog-name=collect2`
10609 if test -f "$collect2name" && \
10610 strings "$collect2name" | grep resolve_lib_name >/dev/null
10612 # We have reworked collect2
10613 hardcode_direct_CXX=yes
10615 # We have old collect2
10616 hardcode_direct_CXX=unsupported
10617 # It fails to find uninstalled libraries when the uninstalled
10618 # path is not listed in the libpath. Setting hardcode_minus_L
10619 # to unsupported forces relinking
10620 hardcode_minus_L_CXX=yes
10621 hardcode_libdir_flag_spec_CXX='-L$libdir'
10622 hardcode_libdir_separator_CXX=
10626 shared_flag='-shared'
10627 if test "$aix_use_runtimelinking" = yes; then
10628 shared_flag="$shared_flag "'${wl}-G'
10632 if test "$host_cpu" = ia64; then
10633 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10634 # chokes on -Wl,-G. The following line is correct:
10637 if test "$aix_use_runtimelinking" = yes; then
10638 shared_flag='${wl}-G'
10640 shared_flag='${wl}-bM:SRE'
10645 # It seems that -bexpall does not export symbols beginning with
10646 # underscore (_), so it is better to generate a list of symbols to export.
10647 always_export_symbols_CXX=yes
10648 if test "$aix_use_runtimelinking" = yes; then
10649 # Warning - without using the other runtime loading flags (-brtl),
10650 # -berok will link without error, but may produce a broken library.
10651 allow_undefined_flag_CXX='-berok'
10652 # Determine the default libpath from the value encoded in an empty executable.
10653 cat >conftest.$ac_ext <<_ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10668 rm -f conftest.$ac_objext conftest$ac_exeext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670 (eval $ac_link) 2>conftest.er1
10672 grep -v '^ *+' conftest.er1 >conftest.err
10674 cat conftest.err >&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } &&
10677 { ac_try='test -z "$ac_cxx_werror_flag"
10678 || test ! -s conftest.err'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; } &&
10684 { ac_try='test -s conftest$ac_exeext'
10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686 (eval $ac_try) 2>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; }; then
10691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10693 # Check for a 64-bit object if we didn't find anything.
10694 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; }
10697 echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10701 rm -f conftest.err conftest.$ac_objext \
10702 conftest$ac_exeext conftest.$ac_ext
10703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10705 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10707 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10709 if test "$host_cpu" = ia64; then
10710 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10711 allow_undefined_flag_CXX="-z nodefs"
10712 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10714 # Determine the default libpath from the value encoded in an empty executable.
10715 cat >conftest.$ac_ext <<_ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10732 (eval $ac_link) 2>conftest.er1
10734 grep -v '^ *+' conftest.er1 >conftest.err
10736 cat conftest.err >&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } &&
10739 { ac_try='test -z "$ac_cxx_werror_flag"
10740 || test ! -s conftest.err'
10741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742 (eval $ac_try) 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; } &&
10746 { ac_try='test -s conftest$ac_exeext'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; }; then
10753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10755 # Check for a 64-bit object if we didn't find anything.
10756 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; }
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10763 rm -f conftest.err conftest.$ac_objext \
10764 conftest$ac_exeext conftest.$ac_ext
10765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10767 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10768 # Warning - without using the other run time loading flags,
10769 # -berok will link without error, but may produce a broken library.
10770 no_undefined_flag_CXX=' ${wl}-bernotok'
10771 allow_undefined_flag_CXX=' ${wl}-berok'
10772 # Exported symbols can be pulled into shared objects from archives
10773 whole_archive_flag_spec_CXX='$convenience'
10774 archive_cmds_need_lc_CXX=yes
10775 # This is similar to how AIX traditionally builds its shared libraries.
10776 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10783 allow_undefined_flag_CXX=unsupported
10784 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10785 # support --undefined. This deserves some investigation. FIXME
10786 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10793 case $cc_basename in
10795 # FIXME: insert proper C++ library support
10801 cygwin* | mingw* | pw32*)
10802 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10803 # as there is no search path for DLLs.
10804 hardcode_libdir_flag_spec_CXX='-L$libdir'
10805 allow_undefined_flag_CXX=unsupported
10806 always_export_symbols_CXX=no
10807 enable_shared_with_static_runtimes_CXX=yes
10809 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10810 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10811 # If the export-symbols file already is a .def file (1st line
10812 # is EXPORTS), use it as is; otherwise, prepend...
10813 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10814 cp $export_symbols $output_objdir/$soname.def;
10816 echo EXPORTS > $output_objdir/$soname.def;
10817 cat $export_symbols >> $output_objdir/$soname.def;
10819 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10824 darwin* | rhapsody*)
10826 rhapsody* | darwin1.[012])
10827 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10830 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10831 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10833 case ${MACOSX_DEPLOYMENT_TARGET} in
10835 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10838 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10844 archive_cmds_need_lc_CXX=no
10845 hardcode_direct_CXX=no
10846 hardcode_automatic_CXX=yes
10847 hardcode_shlibpath_var_CXX=unsupported
10848 whole_archive_flag_spec_CXX=''
10849 link_all_deplibs_CXX=yes
10851 if test "$GXX" = yes ; then
10852 lt_int_apple_cc_single_mod=no
10853 output_verbose_link_cmd='echo'
10854 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10855 lt_int_apple_cc_single_mod=yes
10857 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10858 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10860 archive_cmds_CXX='$CC -r -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'
10862 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10863 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10864 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10865 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}'
10867 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10869 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10871 case $cc_basename in
10873 output_verbose_link_cmd='echo'
10874 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10875 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10876 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10877 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10878 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10888 case $cc_basename in
10890 # FIXME: insert proper C++ library support
10894 # Green Hills C++ Compiler
10895 # FIXME: insert proper C++ library support
10899 # FIXME: insert proper C++ library support
10905 # C++ shared libraries reported to be fairly broken before switch to ELF
10909 archive_cmds_need_lc_CXX=no
10911 freebsd* | kfreebsd*-gnu | dragonfly*)
10912 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10919 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10920 hardcode_libdir_separator_CXX=:
10921 export_dynamic_flag_spec_CXX='${wl}-E'
10922 hardcode_direct_CXX=yes
10923 hardcode_minus_L_CXX=yes # Not in the search PATH,
10924 # but as the default
10925 # location of the library.
10927 case $cc_basename in
10929 # FIXME: insert proper C++ library support
10933 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'
10934 # Commands to make compiler produce verbose output that lists
10935 # what "hidden" libraries, object files and flags are used when
10936 # linking a shared library.
10938 # There doesn't appear to be a way to prevent this compiler from
10939 # explicitly linking system object files so we need to strip them
10940 # from the output so that they don't get included in the library
10942 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'
10945 if test "$GXX" = yes; then
10946 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'
10948 # FIXME: insert proper C++ library support
10955 if test $with_gnu_ld = no; then
10956 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10957 hardcode_libdir_separator_CXX=:
10961 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10964 export_dynamic_flag_spec_CXX='${wl}-E'
10970 hardcode_direct_CXX=no
10971 hardcode_shlibpath_var_CXX=no
10974 hardcode_direct_CXX=yes
10975 hardcode_minus_L_CXX=yes # Not in the search PATH,
10976 # but as the default
10977 # location of the library.
10981 case $cc_basename in
10983 # FIXME: insert proper C++ library support
10989 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10992 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10995 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10998 # Commands to make compiler produce verbose output that lists
10999 # what "hidden" libraries, object files and flags are used when
11000 # linking a shared library.
11002 # There doesn't appear to be a way to prevent this compiler from
11003 # explicitly linking system object files so we need to strip them
11004 # from the output so that they don't get included in the library
11006 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'
11009 if test "$GXX" = yes; then
11010 if test $with_gnu_ld = no; then
11013 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11016 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11019 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'
11024 # FIXME: insert proper C++ library support
11031 hardcode_direct_CXX=no
11032 hardcode_shlibpath_var_CXX=no
11033 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11034 export_dynamic_flag_spec_CXX='${wl}-E'
11035 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11036 # Instead, shared libraries are loaded at an image base (0x10000000 by
11037 # default) and relocated if they conflict, which is a slow very memory
11038 # consuming and fragmenting process. To avoid this, we pick a random,
11039 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11040 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11041 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11042 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11045 case $cc_basename in
11048 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 ${output_objdir}/so_locations -o $lib'
11050 # Archives containing C++ object files must be created using
11051 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11052 # necessary to make sure instantiated templates are included
11054 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11057 if test "$GXX" = yes; then
11058 if test "$with_gnu_ld" = no; then
11059 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}${output_objdir}/so_locations -o $lib'
11061 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'
11064 link_all_deplibs_CXX=yes
11067 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11068 hardcode_libdir_separator_CXX=:
11071 case $cc_basename in
11073 # Kuck and Associates, Inc. (KAI) C++ Compiler
11075 # KCC will only create a shared library if the output file
11076 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11077 # to its proper name (with version) after linking.
11078 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'
11079 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'
11080 # Commands to make compiler produce verbose output that lists
11081 # what "hidden" libraries, object files and flags are used when
11082 # linking a shared library.
11084 # There doesn't appear to be a way to prevent this compiler from
11085 # explicitly linking system object files so we need to strip them
11086 # from the output so that they don't get included in the library
11088 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'
11090 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11093 # Archives containing C++ object files must be created using
11094 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11095 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11100 # version 8.0 and above of icpc choke on multiply defined symbols
11101 # if we add $predep_objects and $postdep_objects, however 7.1 and
11102 # earlier do not add the objects themselves.
11103 case `$CC -V 2>&1` in
11105 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11106 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'
11108 *) # Version 8.0 or newer
11111 ia64*) tmp_idyn=' -i_dynamic';;
11113 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11114 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11117 archive_cmds_need_lc_CXX=no
11118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11119 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11120 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11123 # Portland Group C++ compiler
11124 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11125 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11127 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11128 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11129 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11133 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11134 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'
11136 runpath_var=LD_RUN_PATH
11137 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11138 hardcode_libdir_separator_CXX=:
11140 # Commands to make compiler produce verbose output that lists
11141 # what "hidden" libraries, object files and flags are used when
11142 # linking a shared library.
11144 # There doesn't appear to be a way to prevent this compiler from
11145 # explicitly linking system object files so we need to strip them
11146 # from the output so that they don't get included in the library
11148 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'
11153 # FIXME: insert proper C++ library support
11157 # FIXME: insert proper C++ library support
11161 case $cc_basename in
11163 # FIXME: insert proper C++ library support
11167 # FIXME: insert proper C++ library support
11173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11174 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11176 hardcode_libdir_flag_spec_CXX='-R$libdir'
11177 hardcode_direct_CXX=yes
11178 hardcode_shlibpath_var_CXX=no
11180 # Workaround some broken pre-1.5 toolchains
11181 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11184 # C++ shared libraries are fairly broken
11188 hardcode_direct_CXX=yes
11189 hardcode_shlibpath_var_CXX=no
11190 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11191 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11193 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11194 export_dynamic_flag_spec_CXX='${wl}-E'
11195 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11197 output_verbose_link_cmd='echo'
11200 case $cc_basename in
11202 # Kuck and Associates, Inc. (KAI) C++ Compiler
11204 # KCC will only create a shared library if the output file
11205 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11206 # to its proper name (with version) after linking.
11207 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'
11209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11210 hardcode_libdir_separator_CXX=:
11212 # Archives containing C++ object files must be created using
11213 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11214 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11218 # Rational C++ 2.4.1
11219 # FIXME: insert proper C++ library support
11223 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11224 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 ${output_objdir}/so_locations -o $lib'
11226 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11227 hardcode_libdir_separator_CXX=:
11229 # Commands to make compiler produce verbose output that lists
11230 # what "hidden" libraries, object files and flags are used when
11231 # linking a shared library.
11233 # There doesn't appear to be a way to prevent this compiler from
11234 # explicitly linking system object files so we need to strip them
11235 # from the output so that they don't get included in the library
11237 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'
11240 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11241 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11242 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}${output_objdir}/so_locations -o $lib'
11244 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11245 hardcode_libdir_separator_CXX=:
11247 # Commands to make compiler produce verbose output that lists
11248 # what "hidden" libraries, object files and flags are used when
11249 # linking a shared library.
11250 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11253 # FIXME: insert proper C++ library support
11260 case $cc_basename in
11262 # Kuck and Associates, Inc. (KAI) C++ Compiler
11264 # KCC will only create a shared library if the output file
11265 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11266 # to its proper name (with version) after linking.
11267 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'
11269 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11270 hardcode_libdir_separator_CXX=:
11272 # Archives containing C++ object files must be created using
11273 # the KAI C++ compiler.
11274 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11277 # Rational C++ 2.4.1
11278 # FIXME: insert proper C++ library support
11282 allow_undefined_flag_CXX=' -expect_unresolved \*'
11283 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 ${output_objdir}/so_locations -o $lib'
11284 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11285 echo "-hidden">> $lib.exp~
11286 $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 ${output_objdir}/so_locations -o $lib~
11289 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11290 hardcode_libdir_separator_CXX=:
11292 # Commands to make compiler produce verbose output that lists
11293 # what "hidden" libraries, object files and flags are used when
11294 # linking a shared library.
11296 # There doesn't appear to be a way to prevent this compiler from
11297 # explicitly linking system object files so we need to strip them
11298 # from the output so that they don't get included in the library
11300 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'
11303 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11304 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11305 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}${output_objdir}/so_locations -o $lib'
11307 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11308 hardcode_libdir_separator_CXX=:
11310 # Commands to make compiler produce verbose output that lists
11311 # what "hidden" libraries, object files and flags are used when
11312 # linking a shared library.
11313 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11316 # FIXME: insert proper C++ library support
11323 # FIXME: insert proper C++ library support
11327 case $cc_basename in
11330 # FIXME: insert proper C++ library support
11335 # FIXME: insert proper C++ library support
11339 # FIXME: insert proper C++ library support
11345 case $cc_basename in
11347 # Sun C++ 4.2, 5.x and Centerline C++
11348 archive_cmds_need_lc_CXX=yes
11349 no_undefined_flag_CXX=' -zdefs'
11350 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11351 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11352 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11354 hardcode_libdir_flag_spec_CXX='-R$libdir'
11355 hardcode_shlibpath_var_CXX=no
11357 solaris2.[0-5] | solaris2.[0-5].*) ;;
11359 # The C++ compiler is used as linker so we must use $wl
11360 # flag to pass the commands to the underlying system
11361 # linker. We must also pass each convience library through
11362 # to the system linker between allextract/defaultextract.
11363 # The C++ compiler will combine linker options so we
11364 # cannot just pass the convience library names through
11366 # Supported since Solaris 2.6 (maybe 2.5.1?)
11367 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11370 link_all_deplibs_CXX=yes
11372 output_verbose_link_cmd='echo'
11374 # Archives containing C++ object files must be created using
11375 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11376 # necessary to make sure instantiated templates are included
11378 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11381 # Green Hills C++ Compiler
11382 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11384 # The C++ compiler must be used to create the archive.
11385 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11388 # GNU C++ compiler with Solaris linker
11389 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11390 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11391 if $CC --version | grep -v '^2\.7' > /dev/null; then
11392 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11393 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11394 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11396 # Commands to make compiler produce verbose output that lists
11397 # what "hidden" libraries, object files and flags are used when
11398 # linking a shared library.
11399 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11401 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11403 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11404 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11405 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11407 # Commands to make compiler produce verbose output that lists
11408 # what "hidden" libraries, object files and flags are used when
11409 # linking a shared library.
11410 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11413 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11418 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11419 no_undefined_flag_CXX='${wl}-z,text'
11420 archive_cmds_need_lc_CXX=no
11421 hardcode_shlibpath_var_CXX=no
11422 runpath_var='LD_RUN_PATH'
11424 case $cc_basename in
11426 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11427 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11430 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11431 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11435 sysv5* | sco3.2v5* | sco5v6*)
11436 # Note: We can NOT use -z defs as we might desire, because we do not
11437 # link with -lc, and that would cause any symbols used from libc to
11438 # always be unresolved, which means just about no library would
11439 # ever link correctly. If we're not using GNU ld we use -z text
11440 # though, which does catch some bad symbols but isn't as heavy-handed
11442 # For security reasons, it is highly recommended that you always
11443 # use absolute paths for naming shared libraries, and exclude the
11444 # DT_RUNPATH tag from executables and libraries. But doing so
11445 # requires that you compile everything twice, which is a pain.
11446 # So that behaviour is only enabled if SCOABSPATH is set to a
11447 # non-empty value in the environment. Most likely only useful for
11448 # creating official distributions of packages.
11449 # This is a hack until libtool officially supports absolute path
11450 # names for shared libraries.
11451 no_undefined_flag_CXX='${wl}-z,text'
11452 allow_undefined_flag_CXX='${wl}-z,nodefs'
11453 archive_cmds_need_lc_CXX=no
11454 hardcode_shlibpath_var_CXX=no
11455 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11456 hardcode_libdir_separator_CXX=':'
11457 link_all_deplibs_CXX=yes
11458 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11459 runpath_var='LD_RUN_PATH'
11461 case $cc_basename in
11463 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11464 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11467 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11468 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11473 case $cc_basename in
11475 # NonStop-UX NCC 3.20
11476 # FIXME: insert proper C++ library support
11480 # FIXME: insert proper C++ library support
11486 # FIXME: insert proper C++ library support
11490 # FIXME: insert proper C++ library support
11494 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11495 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11496 test "$ld_shlibs_CXX" = no && can_build_shared=no
11502 cat > conftest.$ac_ext <<EOF
11506 Foo (void) { a = 0; }
11512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513 (eval $ac_compile) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; then
11517 # Parse the compiler output and extract the necessary
11518 # objects, libraries and library flags.
11520 # Sentinel used to keep track of whether or not we are before
11521 # the conftest object file.
11522 pre_test_object_deps_done=no
11524 # The `*' in the case matches for architectures that use `case' in
11525 # $output_verbose_cmd can trigger glob expansion during the loop
11526 # eval without this substitution.
11527 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11529 for p in `eval $output_verbose_link_cmd`; do
11533 # Some compilers place space between "-{L,R}" and the path.
11534 # Remove the space.
11535 if test $p = "-L" \
11536 || test $p = "-R"; then
11543 if test "$pre_test_object_deps_done" = no; then
11546 # Internal compiler library paths should come after those
11547 # provided the user. The postdeps already come after the
11548 # user supplied libs so there is no need to process them.
11549 if test -z "$compiler_lib_search_path_CXX"; then
11550 compiler_lib_search_path_CXX="${prev}${p}"
11552 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11555 # The "-l" case would never come before the object being
11556 # linked, so don't bother handling this case.
11559 if test -z "$postdeps_CXX"; then
11560 postdeps_CXX="${prev}${p}"
11562 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11568 # This assumes that the test object file only shows up
11569 # once in the compiler output.
11570 if test "$p" = "conftest.$objext"; then
11571 pre_test_object_deps_done=yes
11575 if test "$pre_test_object_deps_done" = no; then
11576 if test -z "$predep_objects_CXX"; then
11577 predep_objects_CXX="$p"
11579 predep_objects_CXX="$predep_objects_CXX $p"
11582 if test -z "$postdep_objects_CXX"; then
11583 postdep_objects_CXX="$p"
11585 postdep_objects_CXX="$postdep_objects_CXX $p"
11590 *) ;; # Ignore the rest.
11598 echo "libtool.m4: error: problem compiling CXX test program"
11601 $rm -f confest.$objext
11603 # PORTME: override above test on systems where it is broken
11606 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11607 # hack all around it, let's just trust "g++" to DTRT.
11608 predep_objects_CXX=
11609 postdep_objects_CXX=
11614 case $cc_basename in
11616 # Adding this requires a known-good setup of shared libraries for
11617 # Sun compiler versions before 5.6, else PIC objects from an old
11618 # archive will be linked into the output, leading to subtle bugs.
11619 postdeps_CXX='-lCstd -lCrun'
11626 case " $postdeps_CXX " in
11627 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11630 lt_prog_compiler_wl_CXX=
11631 lt_prog_compiler_pic_CXX=
11632 lt_prog_compiler_static_CXX=
11634 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11635 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11637 # C++ specific cases for pic, static, wl, etc.
11638 if test "$GXX" = yes; then
11639 lt_prog_compiler_wl_CXX='-Wl,'
11640 lt_prog_compiler_static_CXX='-static'
11644 # All AIX code is PIC.
11645 if test "$host_cpu" = ia64; then
11646 # AIX 5 now supports IA64 processor
11647 lt_prog_compiler_static_CXX='-Bstatic'
11651 # FIXME: we need at least 68020 code to build shared libraries, but
11652 # adding the `-m68020' flag to GCC prevents building anything better,
11654 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11656 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11657 # PIC is the default for these OSes.
11659 mingw* | os2* | pw32*)
11660 # This hack is so that the source file can tell whether it is being
11661 # built for inclusion in a dll (and should export symbols for example).
11662 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11664 darwin* | rhapsody*)
11665 # PIC is the default on this platform
11666 # Common symbols not allowed in MH_DYLIB files
11667 lt_prog_compiler_pic_CXX='-fno-common'
11670 # DJGPP does not support shared libraries at all
11671 lt_prog_compiler_pic_CXX=
11674 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11675 # Instead, we relocate shared libraries at runtime.
11678 if test -d /usr/nec; then
11679 lt_prog_compiler_pic_CXX=-Kconform_pic
11683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11684 # not for PA HP-UX.
11689 lt_prog_compiler_pic_CXX='-fPIC'
11694 lt_prog_compiler_pic_CXX='-fPIC'
11700 # All AIX code is PIC.
11701 if test "$host_cpu" = ia64; then
11702 # AIX 5 now supports IA64 processor
11703 lt_prog_compiler_static_CXX='-Bstatic'
11705 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11709 case $cc_basename in
11711 # Green Hills C++ Compiler
11712 # _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"
11717 # PIC is the default on this platform
11718 # Common symbols not allowed in MH_DYLIB files
11719 case $cc_basename in
11721 lt_prog_compiler_pic_CXX='-qnocommon'
11722 lt_prog_compiler_wl_CXX='-Wl,'
11727 case $cc_basename in
11729 lt_prog_compiler_pic_CXX='-KPIC'
11732 # Green Hills C++ Compiler
11733 lt_prog_compiler_pic_CXX='-pic'
11739 freebsd* | kfreebsd*-gnu | dragonfly*)
11740 # FreeBSD uses GNU C++
11742 hpux9* | hpux10* | hpux11*)
11743 case $cc_basename in
11745 lt_prog_compiler_wl_CXX='-Wl,'
11746 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11747 if test "$host_cpu" != ia64; then
11748 lt_prog_compiler_pic_CXX='+Z'
11752 lt_prog_compiler_wl_CXX='-Wl,'
11753 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11759 lt_prog_compiler_pic_CXX='+Z'
11768 # This is c89, which is MS Visual C++ (no shared libs)
11769 # Anyone wants to do a port?
11771 irix5* | irix6* | nonstopux*)
11772 case $cc_basename in
11774 lt_prog_compiler_wl_CXX='-Wl,'
11775 lt_prog_compiler_static_CXX='-non_shared'
11776 # CC pic flag -KPIC is the default.
11783 case $cc_basename in
11786 lt_prog_compiler_wl_CXX='--backend -Wl,'
11787 lt_prog_compiler_pic_CXX='-fPIC'
11791 lt_prog_compiler_wl_CXX='-Wl,'
11792 lt_prog_compiler_pic_CXX='-KPIC'
11793 lt_prog_compiler_static_CXX='-static'
11796 # Portland Group C++ compiler.
11797 lt_prog_compiler_wl_CXX='-Wl,'
11798 lt_prog_compiler_pic_CXX='-fpic'
11799 lt_prog_compiler_static_CXX='-Bstatic'
11803 # Make sure the PIC flag is empty. It appears that all Alpha
11804 # Linux and Compaq Tru64 Unix objects are PIC.
11805 lt_prog_compiler_pic_CXX=
11806 lt_prog_compiler_static_CXX='-non_shared'
11817 case $cc_basename in
11819 lt_prog_compiler_pic_CXX='-W c,exportall'
11827 osf3* | osf4* | osf5*)
11828 case $cc_basename in
11830 lt_prog_compiler_wl_CXX='--backend -Wl,'
11833 # Rational C++ 2.4.1
11834 lt_prog_compiler_pic_CXX='-pic'
11837 # Digital/Compaq C++
11838 lt_prog_compiler_wl_CXX='-Wl,'
11839 # Make sure the PIC flag is empty. It appears that all Alpha
11840 # Linux and Compaq Tru64 Unix objects are PIC.
11841 lt_prog_compiler_pic_CXX=
11842 lt_prog_compiler_static_CXX='-non_shared'
11851 case $cc_basename in
11853 # Sun C++ 4.2, 5.x and Centerline C++
11854 lt_prog_compiler_pic_CXX='-KPIC'
11855 lt_prog_compiler_static_CXX='-Bstatic'
11856 lt_prog_compiler_wl_CXX='-Qoption ld '
11859 # Green Hills C++ Compiler
11860 lt_prog_compiler_pic_CXX='-PIC'
11867 case $cc_basename in
11870 lt_prog_compiler_pic_CXX='-pic'
11871 lt_prog_compiler_static_CXX='-Bstatic'
11875 lt_prog_compiler_pic_CXX='-pic'
11882 case $cc_basename in
11884 # NonStop-UX NCC 3.20
11885 lt_prog_compiler_pic_CXX='-KPIC'
11891 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11892 case $cc_basename in
11894 lt_prog_compiler_wl_CXX='-Wl,'
11895 lt_prog_compiler_pic_CXX='-KPIC'
11896 lt_prog_compiler_static_CXX='-Bstatic'
11903 lt_prog_compiler_can_build_shared_CXX=no
11908 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11909 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11912 # Check to make sure the PIC flag actually works.
11914 if test -n "$lt_prog_compiler_pic_CXX"; then
11916 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11917 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11918 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 lt_prog_compiler_pic_works_CXX=no
11922 ac_outfile=conftest.$ac_objext
11923 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11924 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11925 # Insert the option either (1) after the last *FLAGS variable, or
11926 # (2) before a word containing "conftest.", or (3) at the end.
11927 # Note that $ac_compile itself does not contain backslashes and begins
11928 # with a dollar sign (not a hyphen), so the echo should work correctly.
11929 # The option is referenced via a variable to avoid confusing sed.
11930 lt_compile=`echo "$ac_compile" | $SED \
11931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11933 -e 's:$: $lt_compiler_flag:'`
11934 (eval echo "\"\$as_me:11934: $lt_compile\"" >&5)
11935 (eval "$lt_compile" 2>conftest.err)
11937 cat conftest.err >&5
11938 echo "$as_me:11938: \$? = $ac_status" >&5
11939 if (exit $ac_status) && test -s "$ac_outfile"; then
11940 # The compiler can only warn and ignore the option if not recognized
11941 # So say no if there are warnings other than the usual output.
11942 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11944 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11945 lt_prog_compiler_pic_works_CXX=yes
11951 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11952 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11954 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11955 case $lt_prog_compiler_pic_CXX in
11957 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11960 lt_prog_compiler_pic_CXX=
11961 lt_prog_compiler_can_build_shared_CXX=no
11966 # For platforms which do not support PIC, -DPIC is meaningless:
11968 lt_prog_compiler_pic_CXX=
11971 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11976 # Check to make sure the static flag actually works.
11978 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11979 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11980 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11981 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 lt_prog_compiler_static_works_CXX=no
11985 save_LDFLAGS="$LDFLAGS"
11986 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11987 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11988 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11989 # The linker can only warn and ignore the option if not recognized
11990 # So say no if there are warnings
11991 if test -s conftest.err; then
11992 # Append any errors to the config.log.
11993 cat conftest.err 1>&5
11994 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11996 if diff conftest.exp conftest.er2 >/dev/null; then
11997 lt_prog_compiler_static_works_CXX=yes
12000 lt_prog_compiler_static_works_CXX=yes
12004 LDFLAGS="$save_LDFLAGS"
12007 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12008 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12010 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12013 lt_prog_compiler_static_CXX=
12017 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12018 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12019 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 lt_cv_prog_compiler_c_o_CXX=no
12023 $rm -r conftest 2>/dev/null
12027 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12029 lt_compiler_flag="-o out/conftest2.$ac_objext"
12030 # Insert the option either (1) after the last *FLAGS variable, or
12031 # (2) before a word containing "conftest.", or (3) at the end.
12032 # Note that $ac_compile itself does not contain backslashes and begins
12033 # with a dollar sign (not a hyphen), so the echo should work correctly.
12034 lt_compile=`echo "$ac_compile" | $SED \
12035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12037 -e 's:$: $lt_compiler_flag:'`
12038 (eval echo "\"\$as_me:12038: $lt_compile\"" >&5)
12039 (eval "$lt_compile" 2>out/conftest.err)
12041 cat out/conftest.err >&5
12042 echo "$as_me:12042: \$? = $ac_status" >&5
12043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12045 # The compiler can only warn and ignore the option if not recognized
12046 # So say no if there are warnings
12047 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12050 lt_cv_prog_compiler_c_o_CXX=yes
12055 # SGI C++ compiler will create directory out/ii_files/ for
12056 # template instantiation
12057 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12058 $rm out/* && rmdir out
12064 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12065 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12068 hard_links="nottested"
12069 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12070 # do not overwrite the value of need_locks provided by the user
12071 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12072 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12077 ln conftest.a conftest.b 2>&5 || hard_links=no
12078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12079 echo "$as_me:$LINENO: result: $hard_links" >&5
12080 echo "${ECHO_T}$hard_links" >&6
12081 if test "$hard_links" = no; then
12082 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12083 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12090 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12091 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12093 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12096 # If we're using GNU nm, then we don't want the "-C" option.
12097 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12098 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12099 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'
12101 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'
12105 export_symbols_cmds_CXX="$ltdll_cmds"
12108 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12111 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12115 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12116 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12117 test "$ld_shlibs_CXX" = no && can_build_shared=no
12120 # Do we need to explicitly link libc?
12122 case "x$archive_cmds_need_lc_CXX" in
12124 # Assume -lc should be added
12125 archive_cmds_need_lc_CXX=yes
12127 if test "$enable_shared" = yes && test "$GCC" = yes; then
12128 case $archive_cmds_CXX in
12130 # FIXME: we may have to deal with multi-command sequences.
12133 # Test whether the compiler implicitly links with -lc since on some
12134 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12135 # to ld, don't add -lc before -lgcc.
12136 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12137 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12139 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12142 (eval $ac_compile) 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } 2>conftest.err; then
12148 libobjs=conftest.$ac_objext
12150 wl=$lt_prog_compiler_wl_CXX
12151 pic_flag=$lt_prog_compiler_pic_CXX
12157 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12158 allow_undefined_flag_CXX=
12159 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12160 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }
12165 archive_cmds_need_lc_CXX=no
12167 archive_cmds_need_lc_CXX=yes
12169 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12171 cat conftest.err 1>&5
12174 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12175 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12182 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12183 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12184 library_names_spec=
12185 libname_spec='lib$name'
12189 postuninstall_cmds=
12193 shlibpath_overrides_runpath=unknown
12195 dynamic_linker="$host_os ld.so"
12196 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12197 if test "$GCC" = yes; then
12198 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12199 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12200 # if the path contains ";" then we assume it to be the separator
12201 # otherwise default to the standard path separator (i.e. ":") - it is
12202 # assumed that no part of a normal pathname contains ";" but that should
12203 # okay in the real world where ";" in dirpaths is itself problematic.
12204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12209 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12211 need_lib_prefix=unknown
12212 hardcode_into_libs=no
12214 # when you set need_version to no, make sure it does not cause -set_version
12215 # flags to be left without arguments
12216 need_version=unknown
12221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12222 shlibpath_var=LIBPATH
12224 # AIX 3 has no versioning support, so we append a major version to the name.
12225 soname_spec='${libname}${release}${shared_ext}$major'
12232 hardcode_into_libs=yes
12233 if test "$host_cpu" = ia64; then
12234 # AIX 5 supports IA64
12235 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12236 shlibpath_var=LD_LIBRARY_PATH
12238 # With GCC up to 2.95.x, collect2 would create an import file
12239 # for dependence libraries. The import file would start with
12240 # the line `#! .'. This would cause the generated library to
12241 # depend on `.', always an invalid library. This was fixed in
12242 # development snapshots of GCC prior to 3.0.
12244 aix4 | aix4.[01] | aix4.[01].*)
12245 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12247 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12250 can_build_shared=no
12254 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12255 # soname into executable. Probably we can add versioning support to
12256 # collect2, so additional links can be useful in future.
12257 if test "$aix_use_runtimelinking" = yes; then
12258 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12259 # instead of lib<name>.a to let people know that these are not
12260 # typical AIX shared libraries.
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12263 # We preserve .a as extension for shared libraries through AIX4.2
12264 # and later when we are not doing run time linking.
12265 library_names_spec='${libname}${release}.a $libname.a'
12266 soname_spec='${libname}${release}${shared_ext}$major'
12268 shlibpath_var=LIBPATH
12273 library_names_spec='$libname.ixlibrary $libname.a'
12274 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12275 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'
12279 library_names_spec='${libname}${shared_ext}'
12280 dynamic_linker="$host_os ld.so"
12281 shlibpath_var=LIBRARY_PATH
12287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12288 soname_spec='${libname}${release}${shared_ext}$major'
12289 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12290 shlibpath_var=LD_LIBRARY_PATH
12291 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12292 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12293 # the default ld.so.conf also contains /usr/contrib/lib and
12294 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12295 # libtool to hard-code these into programs
12298 cygwin* | mingw* | pw32*)
12299 version_type=windows
12304 case $GCC,$host_os in
12305 yes,cygwin* | yes,mingw* | yes,pw32*)
12306 library_names_spec='$libname.dll.a'
12307 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12308 postinstall_cmds='base_file=`basename \${file}`~
12309 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12310 dldir=$destdir/`dirname \$dlpath`~
12311 test -d \$dldir || mkdir -p \$dldir~
12312 $install_prog $dir/$dlname \$dldir/$dlname~
12313 chmod a+x \$dldir/$dlname'
12314 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12315 dlpath=$dir/\$dldll~
12317 shlibpath_overrides_runpath=yes
12321 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12322 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12323 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12326 # MinGW DLLs use traditional 'lib' prefix
12327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12329 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12330 # It is most probably a Windows format PATH printed by
12331 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12332 # path with ; separators, and with drive letters. We can handle the
12333 # drive letters (cygwin fileutils understands them), so leave them,
12334 # especially as we might pass files found there to a mingw objdump,
12335 # which wouldn't understand a cygwinified path. Ahh.
12336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12342 # pw32 DLLs use 'pw' prefix rather than 'lib'
12343 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12352 dynamic_linker='Win32 ld.exe'
12353 # FIXME: first we should search . and the directory the executable is in
12357 darwin* | rhapsody*)
12358 dynamic_linker="$host_os dyld"
12359 version_type=darwin
12362 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12363 soname_spec='${libname}${release}${major}$shared_ext'
12364 shlibpath_overrides_runpath=yes
12365 shlibpath_var=DYLD_LIBRARY_PATH
12366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12367 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12368 if test "$GCC" = yes; then
12369 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"`
12371 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12381 soname_spec='${libname}${release}${shared_ext}$major'
12382 shlibpath_var=LD_LIBRARY_PATH
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12394 soname_spec='${libname}${release}${shared_ext}$major'
12395 shlibpath_var=LD_LIBRARY_PATH
12396 shlibpath_overrides_runpath=no
12397 hardcode_into_libs=yes
12398 dynamic_linker='GNU ld.so'
12401 freebsd* | dragonfly*)
12402 # DragonFly does not have aout. When/if they implement a new
12403 # versioning mechanism, adjust this.
12404 if test -x /usr/bin/objformat; then
12405 objformat=`/usr/bin/objformat`
12408 freebsd[123]*) objformat=aout ;;
12409 *) objformat=elf ;;
12412 version_type=freebsd-$objformat
12413 case $version_type in
12415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12424 shlibpath_var=LD_LIBRARY_PATH
12427 shlibpath_overrides_runpath=yes
12429 freebsd3.[01]* | freebsdelf3.[01]*)
12430 shlibpath_overrides_runpath=yes
12431 hardcode_into_libs=yes
12433 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12434 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12435 shlibpath_overrides_runpath=no
12436 hardcode_into_libs=yes
12438 freebsd*) # from 4.6 on
12439 shlibpath_overrides_runpath=yes
12440 hardcode_into_libs=yes
12449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12450 soname_spec='${libname}${release}${shared_ext}$major'
12451 shlibpath_var=LD_LIBRARY_PATH
12452 hardcode_into_libs=yes
12455 hpux9* | hpux10* | hpux11*)
12456 # Give a soname corresponding to the major version so that dld.sl refuses to
12457 # link against other versions.
12464 hardcode_into_libs=yes
12465 dynamic_linker="$host_os dld.so"
12466 shlibpath_var=LD_LIBRARY_PATH
12467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12469 soname_spec='${libname}${release}${shared_ext}$major'
12470 if test "X$HPUX_IA64_MODE" = X32; then
12471 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12479 hardcode_into_libs=yes
12480 dynamic_linker="$host_os dld.sl"
12481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484 soname_spec='${libname}${release}${shared_ext}$major'
12485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12490 dynamic_linker="$host_os dld.sl"
12491 shlibpath_var=SHLIB_PATH
12492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12494 soname_spec='${libname}${release}${shared_ext}$major'
12497 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12498 postinstall_cmds='chmod 555 $lib'
12505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12506 soname_spec='${libname}${release}${shared_ext}$major'
12507 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12508 shlibpath_var=LD_LIBRARY_PATH
12509 shlibpath_overrides_runpath=no
12510 hardcode_into_libs=yes
12513 irix5* | irix6* | nonstopux*)
12515 nonstopux*) version_type=nonstopux ;;
12517 if test "$lt_cv_prog_gnu_ld" = yes; then
12525 soname_spec='${libname}${release}${shared_ext}$major'
12526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12528 irix5* | nonstopux*)
12529 libsuff= shlibsuff=
12532 case $LD in # libtool.m4 will add one of these switches to LD
12533 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12534 libsuff= shlibsuff= libmagic=32-bit;;
12535 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12536 libsuff=32 shlibsuff=N32 libmagic=N32;;
12537 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12538 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12539 *) libsuff= shlibsuff= libmagic=never-match;;
12543 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12544 shlibpath_overrides_runpath=no
12545 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12546 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12547 hardcode_into_libs=yes
12550 # No shared lib support for Linux oldld, aout, or coff.
12551 linux*oldld* | linux*aout* | linux*coff*)
12555 # This must be Linux ELF.
12560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12561 soname_spec='${libname}${release}${shared_ext}$major'
12562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12563 shlibpath_var=LD_LIBRARY_PATH
12564 shlibpath_overrides_runpath=no
12565 # This implies no fast_install, which is unacceptable.
12566 # Some rework will be needed to allow for fast_install
12567 # before this can be enabled.
12568 hardcode_into_libs=yes
12570 # Append ld.so.conf contents to the search path
12571 if test -f /etc/ld.so.conf; then
12572 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12573 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12576 # We used to test for /lib/ld.so.1 and disable shared libraries on
12577 # powerpc, because MkLinux only supported shared libraries with the
12578 # GNU dynamic linker. Since this was broken with cross compilers,
12579 # most powerpc-linux boxes support dynamic linking these days and
12580 # people can always --disable-shared, the test was removed, and we
12581 # assume the GNU/Linux dynamic linker is in use.
12582 dynamic_linker='GNU/Linux ld.so'
12589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12590 soname_spec='${libname}${release}${shared_ext}$major'
12591 shlibpath_var=LD_LIBRARY_PATH
12592 shlibpath_overrides_runpath=no
12593 hardcode_into_libs=yes
12594 dynamic_linker='GNU ld.so'
12601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12604 dynamic_linker='NetBSD (a.out) ld.so'
12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12607 soname_spec='${libname}${release}${shared_ext}$major'
12608 dynamic_linker='NetBSD ld.elf_so'
12610 shlibpath_var=LD_LIBRARY_PATH
12611 shlibpath_overrides_runpath=yes
12612 hardcode_into_libs=yes
12617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12618 shlibpath_var=LD_LIBRARY_PATH
12619 shlibpath_overrides_runpath=yes
12626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627 soname_spec='${libname}${release}${shared_ext}$major'
12628 shlibpath_var=LD_LIBRARY_PATH
12629 shlibpath_overrides_runpath=yes
12634 sys_lib_dlsearch_path_spec="/usr/lib"
12636 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12638 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12639 *) need_version=no ;;
12641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12643 shlibpath_var=LD_LIBRARY_PATH
12644 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12646 openbsd2.[89] | openbsd2.[89].*)
12647 shlibpath_overrides_runpath=no
12650 shlibpath_overrides_runpath=yes
12654 shlibpath_overrides_runpath=yes
12659 libname_spec='$name'
12662 library_names_spec='$libname${shared_ext} $libname.a'
12663 dynamic_linker='OS/2 ld.exe'
12664 shlibpath_var=LIBPATH
12667 osf3* | osf4* | osf5*)
12671 soname_spec='${libname}${release}${shared_ext}$major'
12672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12673 shlibpath_var=LD_LIBRARY_PATH
12674 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12675 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12683 soname_spec='${libname}${release}${shared_ext}$major'
12684 shlibpath_var=LD_LIBRARY_PATH
12685 shlibpath_overrides_runpath=yes
12686 hardcode_into_libs=yes
12687 # ldd complains unless libraries are executable
12688 postinstall_cmds='chmod +x $lib'
12693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12694 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12695 shlibpath_var=LD_LIBRARY_PATH
12696 shlibpath_overrides_runpath=yes
12697 if test "$with_gnu_ld" = yes; then
12705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12706 soname_spec='${libname}${release}${shared_ext}$major'
12707 shlibpath_var=LD_LIBRARY_PATH
12708 case $host_vendor in
12710 shlibpath_overrides_runpath=no
12712 export_dynamic_flag_spec='${wl}-Blargedynsym'
12713 runpath_var=LD_RUN_PATH
12721 shlibpath_overrides_runpath=no
12722 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12728 if test -d /usr/nec ;then
12730 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12731 soname_spec='$libname${shared_ext}.$major'
12732 shlibpath_var=LD_LIBRARY_PATH
12736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12737 version_type=freebsd-elf
12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12741 soname_spec='${libname}${release}${shared_ext}$major'
12742 shlibpath_var=LD_LIBRARY_PATH
12743 hardcode_into_libs=yes
12744 if test "$with_gnu_ld" = yes; then
12745 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12746 shlibpath_overrides_runpath=no
12748 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12749 shlibpath_overrides_runpath=yes
12752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12756 sys_lib_dlsearch_path_spec='/usr/lib'
12761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12762 soname_spec='${libname}${release}${shared_ext}$major'
12763 shlibpath_var=LD_LIBRARY_PATH
12770 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12771 echo "${ECHO_T}$dynamic_linker" >&6
12772 test "$dynamic_linker" = no && can_build_shared=no
12774 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12775 if test "$GCC" = yes; then
12776 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12779 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12780 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12781 hardcode_action_CXX=
12782 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12783 test -n "$runpath_var_CXX" || \
12784 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12786 # We can hardcode non-existant directories.
12787 if test "$hardcode_direct_CXX" != no &&
12788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12789 # have to relink, otherwise we might link with an installed library
12790 # when we should be linking with a yet-to-be-installed one
12791 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12792 test "$hardcode_minus_L_CXX" != no; then
12793 # Linking always hardcodes the temporary library directory.
12794 hardcode_action_CXX=relink
12796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12797 hardcode_action_CXX=immediate
12800 # We cannot hardcode anything, or else we can only hardcode existing
12802 hardcode_action_CXX=unsupported
12804 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12805 echo "${ECHO_T}$hardcode_action_CXX" >&6
12807 if test "$hardcode_action_CXX" = relink; then
12808 # Fast installation is not supported
12809 enable_fast_install=no
12810 elif test "$shlibpath_overrides_runpath" = yes ||
12811 test "$enable_shared" = no; then
12812 # Fast installation is not necessary
12813 enable_fast_install=needless
12817 # The else clause should only fire when bootstrapping the
12818 # libtool distribution, otherwise you forgot to ship ltmain.sh
12819 # with your package, and you will get complaints that there are
12820 # no rules to generate ltmain.sh.
12821 if test -f "$ltmain"; then
12822 # See if we are running on zsh, and set the options which allow our commands through
12823 # without removal of \ escapes.
12824 if test -n "${ZSH_VERSION+set}" ; then
12825 setopt NO_GLOB_SUBST
12827 # Now quote all the things that may contain metacharacters while being
12828 # careful not to overquote the AC_SUBSTed values. We take copies of the
12829 # variables and quote the copies for generation of the libtool script.
12830 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12832 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12833 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12834 deplibs_check_method reload_flag reload_cmds need_locks \
12835 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12836 lt_cv_sys_global_symbol_to_c_name_address \
12837 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12838 old_postinstall_cmds old_postuninstall_cmds \
12842 lt_prog_compiler_wl_CXX \
12843 lt_prog_compiler_pic_CXX \
12844 lt_prog_compiler_static_CXX \
12845 lt_prog_compiler_no_builtin_flag_CXX \
12846 export_dynamic_flag_spec_CXX \
12847 thread_safe_flag_spec_CXX \
12848 whole_archive_flag_spec_CXX \
12849 enable_shared_with_static_runtimes_CXX \
12850 old_archive_cmds_CXX \
12851 old_archive_from_new_cmds_CXX \
12852 predep_objects_CXX \
12853 postdep_objects_CXX \
12856 compiler_lib_search_path_CXX \
12858 archive_expsym_cmds_CXX \
12859 postinstall_cmds_CXX \
12860 postuninstall_cmds_CXX \
12861 old_archive_from_expsyms_cmds_CXX \
12862 allow_undefined_flag_CXX \
12863 no_undefined_flag_CXX \
12864 export_symbols_cmds_CXX \
12865 hardcode_libdir_flag_spec_CXX \
12866 hardcode_libdir_flag_spec_ld_CXX \
12867 hardcode_libdir_separator_CXX \
12868 hardcode_automatic_CXX \
12870 module_expsym_cmds_CXX \
12871 lt_cv_prog_compiler_c_o_CXX \
12872 exclude_expsyms_CXX \
12873 include_expsyms_CXX; do
12876 old_archive_cmds_CXX | \
12877 old_archive_from_new_cmds_CXX | \
12878 archive_cmds_CXX | \
12879 archive_expsym_cmds_CXX | \
12880 module_cmds_CXX | \
12881 module_expsym_cmds_CXX | \
12882 old_archive_from_expsyms_cmds_CXX | \
12883 export_symbols_cmds_CXX | \
12884 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12885 postinstall_cmds | postuninstall_cmds | \
12886 old_postinstall_cmds | old_postuninstall_cmds | \
12887 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12888 # Double-quote double-evaled strings.
12889 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12892 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12898 *'\$0 --fallback-echo"')
12899 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12905 cat <<__EOF__ >> "$cfgfile"
12906 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12908 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12910 # Shell to use when invoking shell scripts.
12913 # Whether or not to build shared libraries.
12914 build_libtool_libs=$enable_shared
12916 # Whether or not to build static libraries.
12917 build_old_libs=$enable_static
12919 # Whether or not to add -lc for building shared libraries.
12920 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12922 # Whether or not to disallow shared libs when runtime libs are static
12923 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12925 # Whether or not to optimize for fast installation.
12926 fast_install=$enable_fast_install
12929 host_alias=$host_alias
12933 # The build system.
12934 build_alias=$build_alias
12938 # An echo program that does not interpret backslashes.
12943 AR_FLAGS=$lt_AR_FLAGS
12948 # LTCC compiler flags.
12949 LTCFLAGS=$lt_LTCFLAGS
12951 # A language-specific compiler.
12952 CC=$lt_compiler_CXX
12954 # Is the compiler the GNU C compiler?
12960 # The linker used to build libraries.
12963 # Whether we need hard or soft links.
12966 # A BSD-compatible nm program.
12969 # A symbol stripping program
12972 # Used to examine libraries when file_magic_cmd begins "file"
12973 MAGIC_CMD=$MAGIC_CMD
12975 # Used on cygwin: DLL creation program.
12978 # Used on cygwin: object dumper.
12981 # Used on cygwin: assembler.
12984 # The name of the directory that contains temporary libtool files.
12987 # How to create reloadable object files.
12988 reload_flag=$lt_reload_flag
12989 reload_cmds=$lt_reload_cmds
12991 # How to pass a linker flag through the compiler.
12992 wl=$lt_lt_prog_compiler_wl_CXX
12994 # Object file suffix (normally "o").
12995 objext="$ac_objext"
12997 # Old archive suffix (normally "a").
13000 # Shared library suffix (normally ".so").
13001 shrext_cmds='$shrext_cmds'
13003 # Executable file suffix (normally "").
13006 # Additional compiler flags for building library objects.
13007 pic_flag=$lt_lt_prog_compiler_pic_CXX
13010 # What is the maximum length of a command?
13011 max_cmd_len=$lt_cv_sys_max_cmd_len
13013 # Does compiler simultaneously support -c and -o options?
13014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13016 # Must we lock files when doing compilation?
13017 need_locks=$lt_need_locks
13019 # Do we need the lib prefix for modules?
13020 need_lib_prefix=$need_lib_prefix
13022 # Do we need a version for libraries?
13023 need_version=$need_version
13025 # Whether dlopen is supported.
13026 dlopen_support=$enable_dlopen
13028 # Whether dlopen of programs is supported.
13029 dlopen_self=$enable_dlopen_self
13031 # Whether dlopen of statically linked programs is supported.
13032 dlopen_self_static=$enable_dlopen_self_static
13034 # Compiler flag to prevent dynamic linking.
13035 link_static_flag=$lt_lt_prog_compiler_static_CXX
13037 # Compiler flag to turn off builtin functions.
13038 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13040 # Compiler flag to allow reflexive dlopens.
13041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13043 # Compiler flag to generate shared objects directly from archives.
13044 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13046 # Compiler flag to generate thread-safe objects.
13047 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13049 # Library versioning type.
13050 version_type=$version_type
13052 # Format of library name prefix.
13053 libname_spec=$lt_libname_spec
13055 # List of archive names. First name is the real one, the rest are links.
13056 # The last name is the one that the linker finds with -lNAME.
13057 library_names_spec=$lt_library_names_spec
13059 # The coded name of the library, if different from the real name.
13060 soname_spec=$lt_soname_spec
13062 # Commands used to build and install an old-style archive.
13064 old_archive_cmds=$lt_old_archive_cmds_CXX
13065 old_postinstall_cmds=$lt_old_postinstall_cmds
13066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13068 # Create an old-style archive from a shared archive.
13069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13071 # Create a temporary old-style archive to link instead of a shared archive.
13072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13074 # Commands used to build and install a shared archive.
13075 archive_cmds=$lt_archive_cmds_CXX
13076 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13077 postinstall_cmds=$lt_postinstall_cmds
13078 postuninstall_cmds=$lt_postuninstall_cmds
13080 # Commands used to build a loadable module (assumed same as above if empty)
13081 module_cmds=$lt_module_cmds_CXX
13082 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13084 # Commands to strip libraries.
13085 old_striplib=$lt_old_striplib
13086 striplib=$lt_striplib
13088 # Dependencies to place before the objects being linked to create a
13090 predep_objects=$lt_predep_objects_CXX
13092 # Dependencies to place after the objects being linked to create a
13094 postdep_objects=$lt_postdep_objects_CXX
13096 # Dependencies to place before the objects being linked to create a
13098 predeps=$lt_predeps_CXX
13100 # Dependencies to place after the objects being linked to create a
13102 postdeps=$lt_postdeps_CXX
13104 # The library search path used internally by the compiler when linking
13105 # a shared library.
13106 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13108 # Method to check whether dependent libraries are shared objects.
13109 deplibs_check_method=$lt_deplibs_check_method
13111 # Command to use when deplibs_check_method == file_magic.
13112 file_magic_cmd=$lt_file_magic_cmd
13114 # Flag that allows shared libraries with undefined symbols to be built.
13115 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13117 # Flag that forces no undefined symbols.
13118 no_undefined_flag=$lt_no_undefined_flag_CXX
13120 # Commands used to finish a libtool library installation in a directory.
13121 finish_cmds=$lt_finish_cmds
13123 # Same as above, but a single script fragment to be evaled but not shown.
13124 finish_eval=$lt_finish_eval
13126 # Take the output of nm and produce a listing of raw symbols and C names.
13127 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13129 # Transform the output of nm in a proper C declaration
13130 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13132 # Transform the output of nm in a C name address pair
13133 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13135 # This is the shared library runtime path variable.
13136 runpath_var=$runpath_var
13138 # This is the shared library path variable.
13139 shlibpath_var=$shlibpath_var
13141 # Is shlibpath searched before the hard-coded library search path?
13142 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13144 # How to hardcode a shared library path into an executable.
13145 hardcode_action=$hardcode_action_CXX
13147 # Whether we should hardcode library paths into libraries.
13148 hardcode_into_libs=$hardcode_into_libs
13150 # Flag to hardcode \$libdir into a binary during linking.
13151 # This must work even if \$libdir does not exist.
13152 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13154 # If ld is used when linking, flag to hardcode \$libdir into
13155 # a binary during linking. This must work even if \$libdir does
13157 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13159 # Whether we need a single -rpath flag with a separated argument.
13160 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13162 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13163 # resulting binary.
13164 hardcode_direct=$hardcode_direct_CXX
13166 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13167 # resulting binary.
13168 hardcode_minus_L=$hardcode_minus_L_CXX
13170 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13171 # the resulting binary.
13172 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13174 # Set to yes if building a shared library automatically hardcodes DIR into the library
13175 # and all subsequent libraries and executables linked against it.
13176 hardcode_automatic=$hardcode_automatic_CXX
13178 # Variables whose values should be saved in libtool wrapper scripts and
13179 # restored at relink time.
13180 variables_saved_for_relink="$variables_saved_for_relink"
13182 # Whether libtool must link a program against all its dependency libraries.
13183 link_all_deplibs=$link_all_deplibs_CXX
13185 # Compile-time system search path for libraries
13186 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13188 # Run-time system search path for libraries
13189 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13191 # Fix the shell variable \$srcfile for the compiler.
13192 fix_srcfile_path="$fix_srcfile_path_CXX"
13194 # Set to yes if exported symbols are required.
13195 always_export_symbols=$always_export_symbols_CXX
13197 # The commands to list exported symbols.
13198 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13200 # The commands to extract the exported symbol list from a shared archive.
13201 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13203 # Symbols that should not be listed in the preloaded symbols.
13204 exclude_expsyms=$lt_exclude_expsyms_CXX
13206 # Symbols that must always be exported.
13207 include_expsyms=$lt_include_expsyms_CXX
13209 # ### END LIBTOOL TAG CONFIG: $tagname
13215 # If there is no Makefile yet, we rely on a make rule to execute
13216 # `config.status --recheck' to rerun these tests and create the
13217 # libtool script then.
13218 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13219 if test -f "$ltmain_in"; then
13220 test -f Makefile && make "$ltmain"
13226 ac_cpp='$CPP $CPPFLAGS'
13227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13235 with_gnu_ldcxx=$with_gnu_ld
13236 with_gnu_ld=$lt_save_with_gnu_ld
13237 lt_cv_path_LDCXX=$lt_cv_path_LD
13238 lt_cv_path_LD=$lt_save_path_LD
13239 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13240 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13248 if test -n "$F77" && test "X$F77" != "Xno"; then
13251 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13252 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13256 archive_cmds_need_lc_F77=no
13257 allow_undefined_flag_F77=
13258 always_export_symbols_F77=no
13259 archive_expsym_cmds_F77=
13260 export_dynamic_flag_spec_F77=
13261 hardcode_direct_F77=no
13262 hardcode_libdir_flag_spec_F77=
13263 hardcode_libdir_flag_spec_ld_F77=
13264 hardcode_libdir_separator_F77=
13265 hardcode_minus_L_F77=no
13266 hardcode_automatic_F77=no
13268 module_expsym_cmds_F77=
13269 link_all_deplibs_F77=unknown
13270 old_archive_cmds_F77=$old_archive_cmds
13271 no_undefined_flag_F77=
13272 whole_archive_flag_spec_F77=
13273 enable_shared_with_static_runtimes_F77=no
13275 # Source file extension for f77 test sources.
13278 # Object file extension for compiled f77 test sources.
13282 # Code to be used in simple compile tests
13283 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13285 # Code to be used in simple link tests
13286 lt_simple_link_test_code=" program t\n end\n"
13288 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13290 # If no C compiler was specified, use CC.
13293 # If no C compiler flags were specified, use CFLAGS.
13294 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13296 # Allow CC to be a program name with arguments.
13300 # save warnings/boilerplate of simple test code
13301 ac_outfile=conftest.$ac_objext
13302 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13303 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13304 _lt_compiler_boilerplate=`cat conftest.err`
13307 ac_outfile=conftest.$ac_objext
13308 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13309 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13310 _lt_linker_boilerplate=`cat conftest.err`
13314 # Allow CC to be a program name with arguments.
13319 for cc_temp in $compiler""; do
13321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13327 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13330 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13331 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13332 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13333 echo "${ECHO_T}$can_build_shared" >&6
13335 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13336 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13337 test "$can_build_shared" = "no" && enable_shared=no
13339 # On AIX, shared libraries and static libraries use the same namespace, and
13340 # are all built from PIC.
13343 test "$enable_shared" = yes && enable_static=no
13344 if test -n "$RANLIB"; then
13345 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13346 postinstall_cmds='$RANLIB $lib'
13350 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13351 test "$enable_shared" = yes && enable_static=no
13355 echo "$as_me:$LINENO: result: $enable_shared" >&5
13356 echo "${ECHO_T}$enable_shared" >&6
13358 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13359 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13360 # Make sure either enable_shared or enable_static is yes.
13361 test "$enable_shared" = yes || enable_static=yes
13362 echo "$as_me:$LINENO: result: $enable_static" >&5
13363 echo "${ECHO_T}$enable_static" >&6
13368 lt_prog_compiler_wl_F77=
13369 lt_prog_compiler_pic_F77=
13370 lt_prog_compiler_static_F77=
13372 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13373 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13375 if test "$GCC" = yes; then
13376 lt_prog_compiler_wl_F77='-Wl,'
13377 lt_prog_compiler_static_F77='-static'
13381 # All AIX code is PIC.
13382 if test "$host_cpu" = ia64; then
13383 # AIX 5 now supports IA64 processor
13384 lt_prog_compiler_static_F77='-Bstatic'
13389 # FIXME: we need at least 68020 code to build shared libraries, but
13390 # adding the `-m68020' flag to GCC prevents building anything better,
13392 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13395 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13396 # PIC is the default for these OSes.
13399 mingw* | pw32* | os2*)
13400 # This hack is so that the source file can tell whether it is being
13401 # built for inclusion in a dll (and should export symbols for example).
13402 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13405 darwin* | rhapsody*)
13406 # PIC is the default on this platform
13407 # Common symbols not allowed in MH_DYLIB files
13408 lt_prog_compiler_pic_F77='-fno-common'
13412 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13413 # Instead, we relocate shared libraries at runtime.
13417 # Just because we use GCC doesn't mean we suddenly get shared libraries
13418 # on systems that don't support them.
13419 lt_prog_compiler_can_build_shared_F77=no
13424 if test -d /usr/nec; then
13425 lt_prog_compiler_pic_F77=-Kconform_pic
13430 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13431 # not for PA HP-UX.
13437 lt_prog_compiler_pic_F77='-fPIC'
13443 lt_prog_compiler_pic_F77='-fPIC'
13447 # PORTME Check for flag to pass linker flags through the system compiler.
13450 lt_prog_compiler_wl_F77='-Wl,'
13451 if test "$host_cpu" = ia64; then
13452 # AIX 5 now supports IA64 processor
13453 lt_prog_compiler_static_F77='-Bstatic'
13455 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13459 # PIC is the default on this platform
13460 # Common symbols not allowed in MH_DYLIB files
13461 case $cc_basename in
13463 lt_prog_compiler_pic_F77='-qnocommon'
13464 lt_prog_compiler_wl_F77='-Wl,'
13469 mingw* | pw32* | os2*)
13470 # This hack is so that the source file can tell whether it is being
13471 # built for inclusion in a dll (and should export symbols for example).
13472 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13475 hpux9* | hpux10* | hpux11*)
13476 lt_prog_compiler_wl_F77='-Wl,'
13477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13478 # not for PA HP-UX.
13484 lt_prog_compiler_pic_F77='+Z'
13487 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13488 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13491 irix5* | irix6* | nonstopux*)
13492 lt_prog_compiler_wl_F77='-Wl,'
13493 # PIC (with -KPIC) is the default.
13494 lt_prog_compiler_static_F77='-non_shared'
13498 lt_prog_compiler_pic_F77='-KPIC'
13499 lt_prog_compiler_static_F77='-Bstatic'
13503 case $cc_basename in
13505 lt_prog_compiler_wl_F77='-Wl,'
13506 lt_prog_compiler_pic_F77='-KPIC'
13507 lt_prog_compiler_static_F77='-static'
13509 pgcc* | pgf77* | pgf90* | pgf95*)
13510 # Portland Group compilers (*not* the Pentium gcc compiler,
13511 # which looks to be a dead project)
13512 lt_prog_compiler_wl_F77='-Wl,'
13513 lt_prog_compiler_pic_F77='-fpic'
13514 lt_prog_compiler_static_F77='-Bstatic'
13517 lt_prog_compiler_wl_F77='-Wl,'
13518 # All Alpha code is PIC.
13519 lt_prog_compiler_static_F77='-non_shared'
13524 osf3* | osf4* | osf5*)
13525 lt_prog_compiler_wl_F77='-Wl,'
13526 # All OSF/1 code is PIC.
13527 lt_prog_compiler_static_F77='-non_shared'
13531 lt_prog_compiler_pic_F77='-KPIC'
13532 lt_prog_compiler_static_F77='-Bstatic'
13533 case $cc_basename in
13534 f77* | f90* | f95*)
13535 lt_prog_compiler_wl_F77='-Qoption ld ';;
13537 lt_prog_compiler_wl_F77='-Wl,';;
13542 lt_prog_compiler_wl_F77='-Qoption ld '
13543 lt_prog_compiler_pic_F77='-PIC'
13544 lt_prog_compiler_static_F77='-Bstatic'
13547 sysv4 | sysv4.2uw2* | sysv4.3*)
13548 lt_prog_compiler_wl_F77='-Wl,'
13549 lt_prog_compiler_pic_F77='-KPIC'
13550 lt_prog_compiler_static_F77='-Bstatic'
13554 if test -d /usr/nec ;then
13555 lt_prog_compiler_pic_F77='-Kconform_pic'
13556 lt_prog_compiler_static_F77='-Bstatic'
13560 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13561 lt_prog_compiler_wl_F77='-Wl,'
13562 lt_prog_compiler_pic_F77='-KPIC'
13563 lt_prog_compiler_static_F77='-Bstatic'
13567 lt_prog_compiler_wl_F77='-Wl,'
13568 lt_prog_compiler_can_build_shared_F77=no
13572 lt_prog_compiler_pic_F77='-pic'
13573 lt_prog_compiler_static_F77='-Bstatic'
13577 lt_prog_compiler_can_build_shared_F77=no
13582 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13583 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13586 # Check to make sure the PIC flag actually works.
13588 if test -n "$lt_prog_compiler_pic_F77"; then
13590 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13591 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13592 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 lt_prog_compiler_pic_works_F77=no
13596 ac_outfile=conftest.$ac_objext
13597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13598 lt_compiler_flag="$lt_prog_compiler_pic_F77"
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 # The option is referenced via a variable to avoid confusing sed.
13604 lt_compile=`echo "$ac_compile" | $SED \
13605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13607 -e 's:$: $lt_compiler_flag:'`
13608 (eval echo "\"\$as_me:13608: $lt_compile\"" >&5)
13609 (eval "$lt_compile" 2>conftest.err)
13611 cat conftest.err >&5
13612 echo "$as_me:13612: \$? = $ac_status" >&5
13613 if (exit $ac_status) && test -s "$ac_outfile"; then
13614 # The compiler can only warn and ignore the option if not recognized
13615 # So say no if there are warnings other than the usual output.
13616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13619 lt_prog_compiler_pic_works_F77=yes
13625 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13626 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13628 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13629 case $lt_prog_compiler_pic_F77 in
13631 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13634 lt_prog_compiler_pic_F77=
13635 lt_prog_compiler_can_build_shared_F77=no
13640 # For platforms which do not support PIC, -DPIC is meaningless:
13642 lt_prog_compiler_pic_F77=
13645 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13650 # Check to make sure the static flag actually works.
13652 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13653 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13654 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13655 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 lt_prog_compiler_static_works_F77=no
13659 save_LDFLAGS="$LDFLAGS"
13660 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13661 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13663 # The linker can only warn and ignore the option if not recognized
13664 # So say no if there are warnings
13665 if test -s conftest.err; then
13666 # Append any errors to the config.log.
13667 cat conftest.err 1>&5
13668 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13670 if diff conftest.exp conftest.er2 >/dev/null; then
13671 lt_prog_compiler_static_works_F77=yes
13674 lt_prog_compiler_static_works_F77=yes
13678 LDFLAGS="$save_LDFLAGS"
13681 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13682 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13684 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13687 lt_prog_compiler_static_F77=
13691 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13692 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13693 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 lt_cv_prog_compiler_c_o_F77=no
13697 $rm -r conftest 2>/dev/null
13701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13703 lt_compiler_flag="-o out/conftest2.$ac_objext"
13704 # Insert the option either (1) after the last *FLAGS variable, or
13705 # (2) before a word containing "conftest.", or (3) at the end.
13706 # Note that $ac_compile itself does not contain backslashes and begins
13707 # with a dollar sign (not a hyphen), so the echo should work correctly.
13708 lt_compile=`echo "$ac_compile" | $SED \
13709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13711 -e 's:$: $lt_compiler_flag:'`
13712 (eval echo "\"\$as_me:13712: $lt_compile\"" >&5)
13713 (eval "$lt_compile" 2>out/conftest.err)
13715 cat out/conftest.err >&5
13716 echo "$as_me:13716: \$? = $ac_status" >&5
13717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13719 # The compiler can only warn and ignore the option if not recognized
13720 # So say no if there are warnings
13721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13724 lt_cv_prog_compiler_c_o_F77=yes
13729 # SGI C++ compiler will create directory out/ii_files/ for
13730 # template instantiation
13731 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13732 $rm out/* && rmdir out
13738 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13739 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13742 hard_links="nottested"
13743 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13744 # do not overwrite the value of need_locks provided by the user
13745 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13746 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13751 ln conftest.a conftest.b 2>&5 || hard_links=no
13752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13753 echo "$as_me:$LINENO: result: $hard_links" >&5
13754 echo "${ECHO_T}$hard_links" >&6
13755 if test "$hard_links" = no; then
13756 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13757 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13764 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13765 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13768 allow_undefined_flag_F77=
13769 enable_shared_with_static_runtimes_F77=no
13771 archive_expsym_cmds_F77=
13772 old_archive_From_new_cmds_F77=
13773 old_archive_from_expsyms_cmds_F77=
13774 export_dynamic_flag_spec_F77=
13775 whole_archive_flag_spec_F77=
13776 thread_safe_flag_spec_F77=
13777 hardcode_libdir_flag_spec_F77=
13778 hardcode_libdir_flag_spec_ld_F77=
13779 hardcode_libdir_separator_F77=
13780 hardcode_direct_F77=no
13781 hardcode_minus_L_F77=no
13782 hardcode_shlibpath_var_F77=unsupported
13783 link_all_deplibs_F77=unknown
13784 hardcode_automatic_F77=no
13786 module_expsym_cmds_F77=
13787 always_export_symbols_F77=no
13788 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13789 # include_expsyms should be a list of space-separated symbols to be *always*
13790 # included in the symbol list
13791 include_expsyms_F77=
13792 # exclude_expsyms can be an extended regexp of symbols to exclude
13793 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13794 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13795 # as well as any symbol that contains `d'.
13796 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13797 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13798 # platforms (ab)use it in PIC code, but their linkers get confused if
13799 # the symbol is explicitly referenced. Since portable code cannot
13800 # rely on this symbol name, it's probably fine to never include it in
13801 # preloaded symbol tables.
13802 extract_expsyms_cmds=
13803 # Just being paranoid about ensuring that cc_basename is set.
13804 for cc_temp in $compiler""; do
13806 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13807 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13812 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13815 cygwin* | mingw* | pw32*)
13816 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13817 # When not using gcc, we currently assume that we are using
13818 # Microsoft Visual C++.
13819 if test "$GCC" != yes; then
13824 # we just hope/assume this is gcc and not c89 (= MSVC++)
13833 if test "$with_gnu_ld" = yes; then
13834 # If archive_cmds runs LD, not CC, wlarc should be empty
13837 # Set some defaults for GNU ld with shared library support. These
13838 # are reset later if shared libraries are not supported. Putting them
13839 # here allows them to be overridden if necessary.
13840 runpath_var=LD_RUN_PATH
13841 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13842 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13843 # ancient GNU ld didn't support --whole-archive et. al.
13844 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13845 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13847 whole_archive_flag_spec_F77=
13849 supports_anon_versioning=no
13850 case `$LD -v 2>/dev/null` in
13851 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13852 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13853 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13854 *\ 2.11.*) ;; # other 2.11 versions
13855 *) supports_anon_versioning=yes ;;
13858 # See if GNU ld supports shared libraries.
13860 aix3* | aix4* | aix5*)
13861 # On AIX/PPC, the GNU linker is very broken
13862 if test "$host_cpu" != ia64; then
13866 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13867 *** to be unable to reliably create shared libraries on AIX.
13868 *** Therefore, libtool is disabling shared libraries support. If you
13869 *** really care for shared libraries, you may want to modify your PATH
13870 *** so that a non-GNU linker is found, and then restart.
13877 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)'
13878 hardcode_libdir_flag_spec_F77='-L$libdir'
13879 hardcode_minus_L_F77=yes
13881 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13882 # that the semantics of dynamic libraries on AmigaOS, at least up
13883 # to version 4, is to share data among multiple programs linked
13884 # with the same dynamic library. Since this doesn't match the
13885 # behavior of shared libraries on other platforms, we can't use
13891 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13892 allow_undefined_flag_F77=unsupported
13893 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13894 # support --undefined. This deserves some investigation. FIXME
13895 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13901 cygwin* | mingw* | pw32*)
13902 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13903 # as there is no search path for DLLs.
13904 hardcode_libdir_flag_spec_F77='-L$libdir'
13905 allow_undefined_flag_F77=unsupported
13906 always_export_symbols_F77=no
13907 enable_shared_with_static_runtimes_F77=yes
13908 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13910 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13911 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13912 # If the export-symbols file already is a .def file (1st line
13913 # is EXPORTS), use it as is; otherwise, prepend...
13914 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13915 cp $export_symbols $output_objdir/$soname.def;
13917 echo EXPORTS > $output_objdir/$soname.def;
13918 cat $export_symbols >> $output_objdir/$soname.def;
13920 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13927 hardcode_direct_F77=no
13928 hardcode_shlibpath_var_F77=no
13929 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13930 export_dynamic_flag_spec_F77='${wl}-E'
13931 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13932 # Instead, shared libraries are loaded at an image base (0x10000000 by
13933 # default) and relocated if they conflict, which is a slow very memory
13934 # consuming and fragmenting process. To avoid this, we pick a random,
13935 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13936 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13937 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13938 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13944 case $cc_basename,$host_cpu in
13945 pgcc*) # Portland Group C compiler
13946 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13947 tmp_addflag=' $pic_flag'
13949 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13950 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13951 tmp_addflag=' $pic_flag -Mnomain' ;;
13952 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13953 tmp_addflag=' -i_dynamic' ;;
13954 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13955 tmp_addflag=' -i_dynamic -nofor_main' ;;
13956 ifc* | ifort*) # Intel Fortran compiler
13957 tmp_addflag=' -nofor_main' ;;
13959 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13961 if test $supports_anon_versioning = yes; then
13962 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13963 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13964 $echo "local: *; };" >> $output_objdir/$libname.ver~
13965 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13974 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13977 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13978 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13983 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13988 *** create shared libraries on Solaris systems. Therefore, libtool
13989 *** is disabling shared libraries support. We urge you to upgrade GNU
13990 *** binutils to release 2.9.1 or newer. Another option is to modify
13991 *** your PATH or compiler configuration so that the native linker is
13992 *** used, and then restart.
13995 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13996 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13997 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14004 case `$LD -v 2>&1` in
14005 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14009 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14010 *** reliably create shared libraries on SCO systems. Therefore, libtool
14011 *** is disabling shared libraries support. We urge you to upgrade GNU
14012 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14013 *** your PATH or compiler configuration so that the native linker is
14014 *** used, and then restart.
14019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14020 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14021 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14022 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14031 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14033 hardcode_direct_F77=yes
14034 hardcode_shlibpath_var_F77=no
14038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14039 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14040 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14047 if test "$ld_shlibs_F77" = no; then
14049 hardcode_libdir_flag_spec_F77=
14050 export_dynamic_flag_spec_F77=
14051 whole_archive_flag_spec_F77=
14054 # PORTME fill in a description of your system's linker (not GNU ld)
14057 allow_undefined_flag_F77=unsupported
14058 always_export_symbols_F77=yes
14059 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'
14060 # Note: this linker hardcodes the directories in LIBPATH if there
14061 # are no directories specified by -L.
14062 hardcode_minus_L_F77=yes
14063 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14064 # Neither direct hardcoding nor static linking is supported with a
14066 hardcode_direct_F77=unsupported
14071 if test "$host_cpu" = ia64; then
14072 # On IA64, the linker does run time linking by default, so we don't
14073 # have to do anything special.
14074 aix_use_runtimelinking=no
14075 exp_sym_flag='-Bexport'
14078 # If we're using GNU nm, then we don't want the "-C" option.
14079 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14080 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14081 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'
14083 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'
14085 aix_use_runtimelinking=no
14087 # Test if we are trying to use run time linking or normal
14088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14089 # need to do runtime linking.
14090 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14091 for ld_flag in $LDFLAGS; do
14092 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14093 aix_use_runtimelinking=yes
14100 exp_sym_flag='-bexport'
14101 no_entry_flag='-bnoentry'
14104 # When large executables or shared objects are built, AIX ld can
14105 # have problems creating the table of contents. If linking a library
14106 # or program results in "error TOC overflow" add -mminimal-toc to
14107 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14108 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14110 archive_cmds_F77=''
14111 hardcode_direct_F77=yes
14112 hardcode_libdir_separator_F77=':'
14113 link_all_deplibs_F77=yes
14115 if test "$GCC" = yes; then
14116 case $host_os in aix4.[012]|aix4.[012].*)
14117 # We only want to do this on AIX 4.2 and lower, the check
14118 # below for broken collect2 doesn't work under 4.3+
14119 collect2name=`${CC} -print-prog-name=collect2`
14120 if test -f "$collect2name" && \
14121 strings "$collect2name" | grep resolve_lib_name >/dev/null
14123 # We have reworked collect2
14124 hardcode_direct_F77=yes
14126 # We have old collect2
14127 hardcode_direct_F77=unsupported
14128 # It fails to find uninstalled libraries when the uninstalled
14129 # path is not listed in the libpath. Setting hardcode_minus_L
14130 # to unsupported forces relinking
14131 hardcode_minus_L_F77=yes
14132 hardcode_libdir_flag_spec_F77='-L$libdir'
14133 hardcode_libdir_separator_F77=
14137 shared_flag='-shared'
14138 if test "$aix_use_runtimelinking" = yes; then
14139 shared_flag="$shared_flag "'${wl}-G'
14143 if test "$host_cpu" = ia64; then
14144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14145 # chokes on -Wl,-G. The following line is correct:
14148 if test "$aix_use_runtimelinking" = yes; then
14149 shared_flag='${wl}-G'
14151 shared_flag='${wl}-bM:SRE'
14156 # It seems that -bexpall does not export symbols beginning with
14157 # underscore (_), so it is better to generate a list of symbols to export.
14158 always_export_symbols_F77=yes
14159 if test "$aix_use_runtimelinking" = yes; then
14160 # Warning - without using the other runtime loading flags (-brtl),
14161 # -berok will link without error, but may produce a broken library.
14162 allow_undefined_flag_F77='-berok'
14163 # Determine the default libpath from the value encoded in an empty executable.
14164 cat >conftest.$ac_ext <<_ACEOF
14169 rm -f conftest.$ac_objext conftest$ac_exeext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14171 (eval $ac_link) 2>conftest.er1
14173 grep -v '^ *+' conftest.er1 >conftest.err
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
14178 { ac_try='test -z "$ac_f77_werror_flag"
14179 || test ! -s conftest.err'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest$ac_exeext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14194 # Check for a 64-bit object if we didn't find anything.
14195 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; }
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14202 rm -f conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14206 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14207 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14209 if test "$host_cpu" = ia64; then
14210 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14211 allow_undefined_flag_F77="-z nodefs"
14212 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14214 # Determine the default libpath from the value encoded in an empty executable.
14215 cat >conftest.$ac_ext <<_ACEOF
14220 rm -f conftest.$ac_objext conftest$ac_exeext
14221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14222 (eval $ac_link) 2>conftest.er1
14224 grep -v '^ *+' conftest.er1 >conftest.err
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
14229 { ac_try='test -z "$ac_f77_werror_flag"
14230 || test ! -s conftest.err'
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest$ac_exeext'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14243 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14245 # Check for a 64-bit object if we didn't find anything.
14246 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; }
14249 echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14253 rm -f conftest.err conftest.$ac_objext \
14254 conftest$ac_exeext conftest.$ac_ext
14255 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14257 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14258 # Warning - without using the other run time loading flags,
14259 # -berok will link without error, but may produce a broken library.
14260 no_undefined_flag_F77=' ${wl}-bernotok'
14261 allow_undefined_flag_F77=' ${wl}-berok'
14262 # Exported symbols can be pulled into shared objects from archives
14263 whole_archive_flag_spec_F77='$convenience'
14264 archive_cmds_need_lc_F77=yes
14265 # This is similar to how AIX traditionally builds its shared libraries.
14266 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14272 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)'
14273 hardcode_libdir_flag_spec_F77='-L$libdir'
14274 hardcode_minus_L_F77=yes
14275 # see comment about different semantics on the GNU ld section
14280 export_dynamic_flag_spec_F77=-rdynamic
14283 cygwin* | mingw* | pw32*)
14284 # When not using gcc, we currently assume that we are using
14285 # Microsoft Visual C++.
14286 # hardcode_libdir_flag_spec is actually meaningless, as there is
14287 # no search path for DLLs.
14288 hardcode_libdir_flag_spec_F77=' '
14289 allow_undefined_flag_F77=unsupported
14290 # Tell ltmain to make .lib files, not .a files.
14292 # Tell ltmain to make .dll files, not .so files.
14294 # FIXME: Setting linknames here is a bad hack.
14295 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14296 # The linker will automatically build a .lib file if we build a DLL.
14297 old_archive_From_new_cmds_F77='true'
14298 # FIXME: Should let the user specify the lib program.
14299 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14300 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14301 enable_shared_with_static_runtimes_F77=yes
14304 darwin* | rhapsody*)
14306 rhapsody* | darwin1.[012])
14307 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14310 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14311 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14313 case ${MACOSX_DEPLOYMENT_TARGET} in
14315 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14318 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14324 archive_cmds_need_lc_F77=no
14325 hardcode_direct_F77=no
14326 hardcode_automatic_F77=yes
14327 hardcode_shlibpath_var_F77=unsupported
14328 whole_archive_flag_spec_F77=''
14329 link_all_deplibs_F77=yes
14330 if test "$GCC" = yes ; then
14331 output_verbose_link_cmd='echo'
14332 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14333 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14334 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14335 archive_expsym_cmds_F77='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}'
14336 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14338 case $cc_basename in
14340 output_verbose_link_cmd='echo'
14341 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14342 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14343 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14344 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14345 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14355 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14356 hardcode_libdir_flag_spec_F77='-L$libdir'
14357 hardcode_shlibpath_var_F77=no
14364 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14365 # support. Future versions do this automatically, but an explicit c++rt0.o
14366 # does not break anything, and helps significantly (at the cost of a little
14369 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14370 hardcode_libdir_flag_spec_F77='-R$libdir'
14371 hardcode_direct_F77=yes
14372 hardcode_shlibpath_var_F77=no
14375 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14377 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14378 hardcode_direct_F77=yes
14379 hardcode_minus_L_F77=yes
14380 hardcode_shlibpath_var_F77=no
14383 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14384 freebsd* | kfreebsd*-gnu | dragonfly*)
14385 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14386 hardcode_libdir_flag_spec_F77='-R$libdir'
14387 hardcode_direct_F77=yes
14388 hardcode_shlibpath_var_F77=no
14392 if test "$GCC" = yes; then
14393 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'
14395 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'
14397 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14398 hardcode_libdir_separator_F77=:
14399 hardcode_direct_F77=yes
14401 # hardcode_minus_L: Not really in the search PATH,
14402 # but as the default location of the library.
14403 hardcode_minus_L_F77=yes
14404 export_dynamic_flag_spec_F77='${wl}-E'
14408 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14409 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14411 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14413 if test "$with_gnu_ld" = no; then
14414 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14415 hardcode_libdir_separator_F77=:
14417 hardcode_direct_F77=yes
14418 export_dynamic_flag_spec_F77='${wl}-E'
14420 # hardcode_minus_L: Not really in the search PATH,
14421 # but as the default location of the library.
14422 hardcode_minus_L_F77=yes
14427 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14430 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14433 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14436 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14442 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14445 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14448 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14452 if test "$with_gnu_ld" = no; then
14453 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14454 hardcode_libdir_separator_F77=:
14458 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14459 hardcode_direct_F77=no
14460 hardcode_shlibpath_var_F77=no
14463 hardcode_direct_F77=yes
14464 export_dynamic_flag_spec_F77='${wl}-E'
14466 # hardcode_minus_L: Not really in the search PATH,
14467 # but as the default location of the library.
14468 hardcode_minus_L_F77=yes
14474 irix5* | irix6* | nonstopux*)
14475 if test "$GCC" = yes; then
14476 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'
14478 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'
14479 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14481 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14482 hardcode_libdir_separator_F77=:
14483 link_all_deplibs_F77=yes
14487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14488 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14490 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14492 hardcode_libdir_flag_spec_F77='-R$libdir'
14493 hardcode_direct_F77=yes
14494 hardcode_shlibpath_var_F77=no
14498 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14499 hardcode_direct_F77=yes
14500 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14501 hardcode_libdir_separator_F77=:
14502 hardcode_shlibpath_var_F77=no
14506 hardcode_direct_F77=yes
14507 hardcode_shlibpath_var_F77=no
14508 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14509 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14510 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14511 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14512 export_dynamic_flag_spec_F77='${wl}-E'
14515 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14516 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14517 hardcode_libdir_flag_spec_F77='-R$libdir'
14520 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14521 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14528 hardcode_libdir_flag_spec_F77='-L$libdir'
14529 hardcode_minus_L_F77=yes
14530 allow_undefined_flag_F77=unsupported
14531 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'
14532 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14536 if test "$GCC" = yes; then
14537 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14538 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'
14540 allow_undefined_flag_F77=' -expect_unresolved \*'
14541 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'
14543 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14544 hardcode_libdir_separator_F77=:
14547 osf4* | osf5*) # as osf3* with the addition of -msym flag
14548 if test "$GCC" = yes; then
14549 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14550 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'
14551 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14553 allow_undefined_flag_F77=' -expect_unresolved \*'
14554 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'
14555 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~
14556 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14558 # Both c and cxx compiler support -rpath directly
14559 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14561 hardcode_libdir_separator_F77=:
14565 no_undefined_flag_F77=' -z text'
14566 if test "$GCC" = yes; then
14568 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14569 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14570 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14573 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14574 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14577 hardcode_libdir_flag_spec_F77='-R$libdir'
14578 hardcode_shlibpath_var_F77=no
14580 solaris2.[0-5] | solaris2.[0-5].*) ;;
14582 # The compiler driver will combine linker options so we
14583 # cannot just pass the convience library names through
14584 # without $wl, iff we do not link with $LD.
14585 # Luckily, gcc supports the same syntax we need for Sun Studio.
14586 # Supported since Solaris 2.6 (maybe 2.5.1?)
14589 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14591 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14594 link_all_deplibs_F77=yes
14598 if test "x$host_vendor" = xsequent; then
14599 # Use $CC to link under sequent, because it throws in some extra .o
14600 # files that make .init and .fini sections work.
14601 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14603 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14605 hardcode_libdir_flag_spec_F77='-L$libdir'
14606 hardcode_direct_F77=yes
14607 hardcode_minus_L_F77=yes
14608 hardcode_shlibpath_var_F77=no
14612 case $host_vendor in
14614 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14615 hardcode_direct_F77=yes # is this really true???
14618 ## LD is ld it makes a PLAMLIB
14619 ## CC just makes a GrossModule.
14620 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14621 reload_cmds_F77='$CC -r -o $output$reload_objs'
14622 hardcode_direct_F77=no
14625 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14626 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14629 runpath_var='LD_RUN_PATH'
14630 hardcode_shlibpath_var_F77=no
14634 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14635 hardcode_shlibpath_var_F77=no
14636 export_dynamic_flag_spec_F77='-Bexport'
14640 if test -d /usr/nec; then
14641 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14642 hardcode_shlibpath_var_F77=no
14643 runpath_var=LD_RUN_PATH
14644 hardcode_runpath_var=yes
14649 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14650 no_undefined_flag_F77='${wl}-z,text'
14651 archive_cmds_need_lc_F77=no
14652 hardcode_shlibpath_var_F77=no
14653 runpath_var='LD_RUN_PATH'
14655 if test "$GCC" = yes; then
14656 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14657 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14659 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14660 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14664 sysv5* | sco3.2v5* | sco5v6*)
14665 # Note: We can NOT use -z defs as we might desire, because we do not
14666 # link with -lc, and that would cause any symbols used from libc to
14667 # always be unresolved, which means just about no library would
14668 # ever link correctly. If we're not using GNU ld we use -z text
14669 # though, which does catch some bad symbols but isn't as heavy-handed
14671 no_undefined_flag_F77='${wl}-z,text'
14672 allow_undefined_flag_F77='${wl}-z,nodefs'
14673 archive_cmds_need_lc_F77=no
14674 hardcode_shlibpath_var_F77=no
14675 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14676 hardcode_libdir_separator_F77=':'
14677 link_all_deplibs_F77=yes
14678 export_dynamic_flag_spec_F77='${wl}-Bexport'
14679 runpath_var='LD_RUN_PATH'
14681 if test "$GCC" = yes; then
14682 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14683 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14685 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14686 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14691 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14692 hardcode_libdir_flag_spec_F77='-L$libdir'
14693 hardcode_shlibpath_var_F77=no
14702 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14703 echo "${ECHO_T}$ld_shlibs_F77" >&6
14704 test "$ld_shlibs_F77" = no && can_build_shared=no
14707 # Do we need to explicitly link libc?
14709 case "x$archive_cmds_need_lc_F77" in
14711 # Assume -lc should be added
14712 archive_cmds_need_lc_F77=yes
14714 if test "$enable_shared" = yes && test "$GCC" = yes; then
14715 case $archive_cmds_F77 in
14717 # FIXME: we may have to deal with multi-command sequences.
14720 # Test whether the compiler implicitly links with -lc since on some
14721 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14722 # to ld, don't add -lc before -lgcc.
14723 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14724 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14729 (eval $ac_compile) 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } 2>conftest.err; then
14735 libobjs=conftest.$ac_objext
14737 wl=$lt_prog_compiler_wl_F77
14738 pic_flag=$lt_prog_compiler_pic_F77
14744 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14745 allow_undefined_flag_F77=
14746 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14747 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }
14752 archive_cmds_need_lc_F77=no
14754 archive_cmds_need_lc_F77=yes
14756 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14758 cat conftest.err 1>&5
14761 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14762 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14769 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14770 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14771 library_names_spec=
14772 libname_spec='lib$name'
14776 postuninstall_cmds=
14780 shlibpath_overrides_runpath=unknown
14782 dynamic_linker="$host_os ld.so"
14783 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14784 if test "$GCC" = yes; then
14785 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14786 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14787 # if the path contains ";" then we assume it to be the separator
14788 # otherwise default to the standard path separator (i.e. ":") - it is
14789 # assumed that no part of a normal pathname contains ";" but that should
14790 # okay in the real world where ";" in dirpaths is itself problematic.
14791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14796 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14798 need_lib_prefix=unknown
14799 hardcode_into_libs=no
14801 # when you set need_version to no, make sure it does not cause -set_version
14802 # flags to be left without arguments
14803 need_version=unknown
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14809 shlibpath_var=LIBPATH
14811 # AIX 3 has no versioning support, so we append a major version to the name.
14812 soname_spec='${libname}${release}${shared_ext}$major'
14819 hardcode_into_libs=yes
14820 if test "$host_cpu" = ia64; then
14821 # AIX 5 supports IA64
14822 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14823 shlibpath_var=LD_LIBRARY_PATH
14825 # With GCC up to 2.95.x, collect2 would create an import file
14826 # for dependence libraries. The import file would start with
14827 # the line `#! .'. This would cause the generated library to
14828 # depend on `.', always an invalid library. This was fixed in
14829 # development snapshots of GCC prior to 3.0.
14831 aix4 | aix4.[01] | aix4.[01].*)
14832 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14834 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14837 can_build_shared=no
14841 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14842 # soname into executable. Probably we can add versioning support to
14843 # collect2, so additional links can be useful in future.
14844 if test "$aix_use_runtimelinking" = yes; then
14845 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14846 # instead of lib<name>.a to let people know that these are not
14847 # typical AIX shared libraries.
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850 # We preserve .a as extension for shared libraries through AIX4.2
14851 # and later when we are not doing run time linking.
14852 library_names_spec='${libname}${release}.a $libname.a'
14853 soname_spec='${libname}${release}${shared_ext}$major'
14855 shlibpath_var=LIBPATH
14860 library_names_spec='$libname.ixlibrary $libname.a'
14861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14862 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'
14866 library_names_spec='${libname}${shared_ext}'
14867 dynamic_linker="$host_os ld.so"
14868 shlibpath_var=LIBRARY_PATH
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14875 soname_spec='${libname}${release}${shared_ext}$major'
14876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14880 # the default ld.so.conf also contains /usr/contrib/lib and
14881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14882 # libtool to hard-code these into programs
14885 cygwin* | mingw* | pw32*)
14886 version_type=windows
14891 case $GCC,$host_os in
14892 yes,cygwin* | yes,mingw* | yes,pw32*)
14893 library_names_spec='$libname.dll.a'
14894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14895 postinstall_cmds='base_file=`basename \${file}`~
14896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14897 dldir=$destdir/`dirname \$dlpath`~
14898 test -d \$dldir || mkdir -p \$dldir~
14899 $install_prog $dir/$dlname \$dldir/$dlname~
14900 chmod a+x \$dldir/$dlname'
14901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14902 dlpath=$dir/\$dldll~
14904 shlibpath_overrides_runpath=yes
14908 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14909 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14910 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14913 # MinGW DLLs use traditional 'lib' prefix
14914 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14915 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14916 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14917 # It is most probably a Windows format PATH printed by
14918 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14919 # path with ; separators, and with drive letters. We can handle the
14920 # drive letters (cygwin fileutils understands them), so leave them,
14921 # especially as we might pass files found there to a mingw objdump,
14922 # which wouldn't understand a cygwinified path. Ahh.
14923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14929 # pw32 DLLs use 'pw' prefix rather than 'lib'
14930 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14936 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14939 dynamic_linker='Win32 ld.exe'
14940 # FIXME: first we should search . and the directory the executable is in
14944 darwin* | rhapsody*)
14945 dynamic_linker="$host_os dyld"
14946 version_type=darwin
14949 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14950 soname_spec='${libname}${release}${major}$shared_ext'
14951 shlibpath_overrides_runpath=yes
14952 shlibpath_var=DYLD_LIBRARY_PATH
14953 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14954 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14955 if test "$GCC" = yes; then
14956 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"`
14958 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14960 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14968 soname_spec='${libname}${release}${shared_ext}$major'
14969 shlibpath_var=LD_LIBRARY_PATH
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14981 soname_spec='${libname}${release}${shared_ext}$major'
14982 shlibpath_var=LD_LIBRARY_PATH
14983 shlibpath_overrides_runpath=no
14984 hardcode_into_libs=yes
14985 dynamic_linker='GNU ld.so'
14988 freebsd* | dragonfly*)
14989 # DragonFly does not have aout. When/if they implement a new
14990 # versioning mechanism, adjust this.
14991 if test -x /usr/bin/objformat; then
14992 objformat=`/usr/bin/objformat`
14995 freebsd[123]*) objformat=aout ;;
14996 *) objformat=elf ;;
14999 version_type=freebsd-$objformat
15000 case $version_type in
15002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15007 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15011 shlibpath_var=LD_LIBRARY_PATH
15014 shlibpath_overrides_runpath=yes
15016 freebsd3.[01]* | freebsdelf3.[01]*)
15017 shlibpath_overrides_runpath=yes
15018 hardcode_into_libs=yes
15020 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15021 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15022 shlibpath_overrides_runpath=no
15023 hardcode_into_libs=yes
15025 freebsd*) # from 4.6 on
15026 shlibpath_overrides_runpath=yes
15027 hardcode_into_libs=yes
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 hardcode_into_libs=yes
15042 hpux9* | hpux10* | hpux11*)
15043 # Give a soname corresponding to the major version so that dld.sl refuses to
15044 # link against other versions.
15051 hardcode_into_libs=yes
15052 dynamic_linker="$host_os dld.so"
15053 shlibpath_var=LD_LIBRARY_PATH
15054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15056 soname_spec='${libname}${release}${shared_ext}$major'
15057 if test "X$HPUX_IA64_MODE" = X32; then
15058 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15060 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15066 hardcode_into_libs=yes
15067 dynamic_linker="$host_os dld.sl"
15068 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15072 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15077 dynamic_linker="$host_os dld.sl"
15078 shlibpath_var=SHLIB_PATH
15079 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15081 soname_spec='${libname}${release}${shared_ext}$major'
15084 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15085 postinstall_cmds='chmod 555 $lib'
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15093 soname_spec='${libname}${release}${shared_ext}$major'
15094 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15095 shlibpath_var=LD_LIBRARY_PATH
15096 shlibpath_overrides_runpath=no
15097 hardcode_into_libs=yes
15100 irix5* | irix6* | nonstopux*)
15102 nonstopux*) version_type=nonstopux ;;
15104 if test "$lt_cv_prog_gnu_ld" = yes; then
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15115 irix5* | nonstopux*)
15116 libsuff= shlibsuff=
15119 case $LD in # libtool.m4 will add one of these switches to LD
15120 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15121 libsuff= shlibsuff= libmagic=32-bit;;
15122 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15123 libsuff=32 shlibsuff=N32 libmagic=N32;;
15124 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15125 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15126 *) libsuff= shlibsuff= libmagic=never-match;;
15130 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15131 shlibpath_overrides_runpath=no
15132 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15133 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15134 hardcode_into_libs=yes
15137 # No shared lib support for Linux oldld, aout, or coff.
15138 linux*oldld* | linux*aout* | linux*coff*)
15142 # This must be Linux ELF.
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148 soname_spec='${libname}${release}${shared_ext}$major'
15149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 shlibpath_overrides_runpath=no
15152 # This implies no fast_install, which is unacceptable.
15153 # Some rework will be needed to allow for fast_install
15154 # before this can be enabled.
15155 hardcode_into_libs=yes
15157 # Append ld.so.conf contents to the search path
15158 if test -f /etc/ld.so.conf; then
15159 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15160 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15163 # We used to test for /lib/ld.so.1 and disable shared libraries on
15164 # powerpc, because MkLinux only supported shared libraries with the
15165 # GNU dynamic linker. Since this was broken with cross compilers,
15166 # most powerpc-linux boxes support dynamic linking these days and
15167 # people can always --disable-shared, the test was removed, and we
15168 # assume the GNU/Linux dynamic linker is in use.
15169 dynamic_linker='GNU/Linux ld.so'
15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15177 soname_spec='${libname}${release}${shared_ext}$major'
15178 shlibpath_var=LD_LIBRARY_PATH
15179 shlibpath_overrides_runpath=no
15180 hardcode_into_libs=yes
15181 dynamic_linker='GNU ld.so'
15188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15191 dynamic_linker='NetBSD (a.out) ld.so'
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15194 soname_spec='${libname}${release}${shared_ext}$major'
15195 dynamic_linker='NetBSD ld.elf_so'
15197 shlibpath_var=LD_LIBRARY_PATH
15198 shlibpath_overrides_runpath=yes
15199 hardcode_into_libs=yes
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 shlibpath_overrides_runpath=yes
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 shlibpath_overrides_runpath=yes
15221 sys_lib_dlsearch_path_spec="/usr/lib"
15223 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15225 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15226 *) need_version=no ;;
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15230 shlibpath_var=LD_LIBRARY_PATH
15231 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15233 openbsd2.[89] | openbsd2.[89].*)
15234 shlibpath_overrides_runpath=no
15237 shlibpath_overrides_runpath=yes
15241 shlibpath_overrides_runpath=yes
15246 libname_spec='$name'
15249 library_names_spec='$libname${shared_ext} $libname.a'
15250 dynamic_linker='OS/2 ld.exe'
15251 shlibpath_var=LIBPATH
15254 osf3* | osf4* | osf5*)
15258 soname_spec='${libname}${release}${shared_ext}$major'
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15262 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 soname_spec='${libname}${release}${shared_ext}$major'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=yes
15273 hardcode_into_libs=yes
15274 # ldd complains unless libraries are executable
15275 postinstall_cmds='chmod +x $lib'
15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15282 shlibpath_var=LD_LIBRARY_PATH
15283 shlibpath_overrides_runpath=yes
15284 if test "$with_gnu_ld" = yes; then
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 case $host_vendor in
15297 shlibpath_overrides_runpath=no
15299 export_dynamic_flag_spec='${wl}-Blargedynsym'
15300 runpath_var=LD_RUN_PATH
15308 shlibpath_overrides_runpath=no
15309 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15315 if test -d /usr/nec ;then
15317 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15318 soname_spec='$libname${shared_ext}.$major'
15319 shlibpath_var=LD_LIBRARY_PATH
15323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15324 version_type=freebsd-elf
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15328 soname_spec='${libname}${release}${shared_ext}$major'
15329 shlibpath_var=LD_LIBRARY_PATH
15330 hardcode_into_libs=yes
15331 if test "$with_gnu_ld" = yes; then
15332 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15333 shlibpath_overrides_runpath=no
15335 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15336 shlibpath_overrides_runpath=yes
15339 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15343 sys_lib_dlsearch_path_spec='/usr/lib'
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349 soname_spec='${libname}${release}${shared_ext}$major'
15350 shlibpath_var=LD_LIBRARY_PATH
15357 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15358 echo "${ECHO_T}$dynamic_linker" >&6
15359 test "$dynamic_linker" = no && can_build_shared=no
15361 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15362 if test "$GCC" = yes; then
15363 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15366 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15368 hardcode_action_F77=
15369 if test -n "$hardcode_libdir_flag_spec_F77" || \
15370 test -n "$runpath_var_F77" || \
15371 test "X$hardcode_automatic_F77" = "Xyes" ; then
15373 # We can hardcode non-existant directories.
15374 if test "$hardcode_direct_F77" != no &&
15375 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15376 # have to relink, otherwise we might link with an installed library
15377 # when we should be linking with a yet-to-be-installed one
15378 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15379 test "$hardcode_minus_L_F77" != no; then
15380 # Linking always hardcodes the temporary library directory.
15381 hardcode_action_F77=relink
15383 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15384 hardcode_action_F77=immediate
15387 # We cannot hardcode anything, or else we can only hardcode existing
15389 hardcode_action_F77=unsupported
15391 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15392 echo "${ECHO_T}$hardcode_action_F77" >&6
15394 if test "$hardcode_action_F77" = relink; then
15395 # Fast installation is not supported
15396 enable_fast_install=no
15397 elif test "$shlibpath_overrides_runpath" = yes ||
15398 test "$enable_shared" = no; then
15399 # Fast installation is not necessary
15400 enable_fast_install=needless
15404 # The else clause should only fire when bootstrapping the
15405 # libtool distribution, otherwise you forgot to ship ltmain.sh
15406 # with your package, and you will get complaints that there are
15407 # no rules to generate ltmain.sh.
15408 if test -f "$ltmain"; then
15409 # See if we are running on zsh, and set the options which allow our commands through
15410 # without removal of \ escapes.
15411 if test -n "${ZSH_VERSION+set}" ; then
15412 setopt NO_GLOB_SUBST
15414 # Now quote all the things that may contain metacharacters while being
15415 # careful not to overquote the AC_SUBSTed values. We take copies of the
15416 # variables and quote the copies for generation of the libtool script.
15417 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15419 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15420 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15421 deplibs_check_method reload_flag reload_cmds need_locks \
15422 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15423 lt_cv_sys_global_symbol_to_c_name_address \
15424 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15425 old_postinstall_cmds old_postuninstall_cmds \
15429 lt_prog_compiler_wl_F77 \
15430 lt_prog_compiler_pic_F77 \
15431 lt_prog_compiler_static_F77 \
15432 lt_prog_compiler_no_builtin_flag_F77 \
15433 export_dynamic_flag_spec_F77 \
15434 thread_safe_flag_spec_F77 \
15435 whole_archive_flag_spec_F77 \
15436 enable_shared_with_static_runtimes_F77 \
15437 old_archive_cmds_F77 \
15438 old_archive_from_new_cmds_F77 \
15439 predep_objects_F77 \
15440 postdep_objects_F77 \
15443 compiler_lib_search_path_F77 \
15445 archive_expsym_cmds_F77 \
15446 postinstall_cmds_F77 \
15447 postuninstall_cmds_F77 \
15448 old_archive_from_expsyms_cmds_F77 \
15449 allow_undefined_flag_F77 \
15450 no_undefined_flag_F77 \
15451 export_symbols_cmds_F77 \
15452 hardcode_libdir_flag_spec_F77 \
15453 hardcode_libdir_flag_spec_ld_F77 \
15454 hardcode_libdir_separator_F77 \
15455 hardcode_automatic_F77 \
15457 module_expsym_cmds_F77 \
15458 lt_cv_prog_compiler_c_o_F77 \
15459 exclude_expsyms_F77 \
15460 include_expsyms_F77; do
15463 old_archive_cmds_F77 | \
15464 old_archive_from_new_cmds_F77 | \
15465 archive_cmds_F77 | \
15466 archive_expsym_cmds_F77 | \
15467 module_cmds_F77 | \
15468 module_expsym_cmds_F77 | \
15469 old_archive_from_expsyms_cmds_F77 | \
15470 export_symbols_cmds_F77 | \
15471 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15472 postinstall_cmds | postuninstall_cmds | \
15473 old_postinstall_cmds | old_postuninstall_cmds | \
15474 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15475 # Double-quote double-evaled strings.
15476 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15479 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15485 *'\$0 --fallback-echo"')
15486 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15492 cat <<__EOF__ >> "$cfgfile"
15493 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15495 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15497 # Shell to use when invoking shell scripts.
15500 # Whether or not to build shared libraries.
15501 build_libtool_libs=$enable_shared
15503 # Whether or not to build static libraries.
15504 build_old_libs=$enable_static
15506 # Whether or not to add -lc for building shared libraries.
15507 build_libtool_need_lc=$archive_cmds_need_lc_F77
15509 # Whether or not to disallow shared libs when runtime libs are static
15510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15512 # Whether or not to optimize for fast installation.
15513 fast_install=$enable_fast_install
15516 host_alias=$host_alias
15520 # The build system.
15521 build_alias=$build_alias
15525 # An echo program that does not interpret backslashes.
15530 AR_FLAGS=$lt_AR_FLAGS
15535 # LTCC compiler flags.
15536 LTCFLAGS=$lt_LTCFLAGS
15538 # A language-specific compiler.
15539 CC=$lt_compiler_F77
15541 # Is the compiler the GNU C compiler?
15547 # The linker used to build libraries.
15550 # Whether we need hard or soft links.
15553 # A BSD-compatible nm program.
15556 # A symbol stripping program
15559 # Used to examine libraries when file_magic_cmd begins "file"
15560 MAGIC_CMD=$MAGIC_CMD
15562 # Used on cygwin: DLL creation program.
15565 # Used on cygwin: object dumper.
15568 # Used on cygwin: assembler.
15571 # The name of the directory that contains temporary libtool files.
15574 # How to create reloadable object files.
15575 reload_flag=$lt_reload_flag
15576 reload_cmds=$lt_reload_cmds
15578 # How to pass a linker flag through the compiler.
15579 wl=$lt_lt_prog_compiler_wl_F77
15581 # Object file suffix (normally "o").
15582 objext="$ac_objext"
15584 # Old archive suffix (normally "a").
15587 # Shared library suffix (normally ".so").
15588 shrext_cmds='$shrext_cmds'
15590 # Executable file suffix (normally "").
15593 # Additional compiler flags for building library objects.
15594 pic_flag=$lt_lt_prog_compiler_pic_F77
15597 # What is the maximum length of a command?
15598 max_cmd_len=$lt_cv_sys_max_cmd_len
15600 # Does compiler simultaneously support -c and -o options?
15601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15603 # Must we lock files when doing compilation?
15604 need_locks=$lt_need_locks
15606 # Do we need the lib prefix for modules?
15607 need_lib_prefix=$need_lib_prefix
15609 # Do we need a version for libraries?
15610 need_version=$need_version
15612 # Whether dlopen is supported.
15613 dlopen_support=$enable_dlopen
15615 # Whether dlopen of programs is supported.
15616 dlopen_self=$enable_dlopen_self
15618 # Whether dlopen of statically linked programs is supported.
15619 dlopen_self_static=$enable_dlopen_self_static
15621 # Compiler flag to prevent dynamic linking.
15622 link_static_flag=$lt_lt_prog_compiler_static_F77
15624 # Compiler flag to turn off builtin functions.
15625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15627 # Compiler flag to allow reflexive dlopens.
15628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15630 # Compiler flag to generate shared objects directly from archives.
15631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15633 # Compiler flag to generate thread-safe objects.
15634 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15636 # Library versioning type.
15637 version_type=$version_type
15639 # Format of library name prefix.
15640 libname_spec=$lt_libname_spec
15642 # List of archive names. First name is the real one, the rest are links.
15643 # The last name is the one that the linker finds with -lNAME.
15644 library_names_spec=$lt_library_names_spec
15646 # The coded name of the library, if different from the real name.
15647 soname_spec=$lt_soname_spec
15649 # Commands used to build and install an old-style archive.
15651 old_archive_cmds=$lt_old_archive_cmds_F77
15652 old_postinstall_cmds=$lt_old_postinstall_cmds
15653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15655 # Create an old-style archive from a shared archive.
15656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15658 # Create a temporary old-style archive to link instead of a shared archive.
15659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15661 # Commands used to build and install a shared archive.
15662 archive_cmds=$lt_archive_cmds_F77
15663 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15664 postinstall_cmds=$lt_postinstall_cmds
15665 postuninstall_cmds=$lt_postuninstall_cmds
15667 # Commands used to build a loadable module (assumed same as above if empty)
15668 module_cmds=$lt_module_cmds_F77
15669 module_expsym_cmds=$lt_module_expsym_cmds_F77
15671 # Commands to strip libraries.
15672 old_striplib=$lt_old_striplib
15673 striplib=$lt_striplib
15675 # Dependencies to place before the objects being linked to create a
15677 predep_objects=$lt_predep_objects_F77
15679 # Dependencies to place after the objects being linked to create a
15681 postdep_objects=$lt_postdep_objects_F77
15683 # Dependencies to place before the objects being linked to create a
15685 predeps=$lt_predeps_F77
15687 # Dependencies to place after the objects being linked to create a
15689 postdeps=$lt_postdeps_F77
15691 # The library search path used internally by the compiler when linking
15692 # a shared library.
15693 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15695 # Method to check whether dependent libraries are shared objects.
15696 deplibs_check_method=$lt_deplibs_check_method
15698 # Command to use when deplibs_check_method == file_magic.
15699 file_magic_cmd=$lt_file_magic_cmd
15701 # Flag that allows shared libraries with undefined symbols to be built.
15702 allow_undefined_flag=$lt_allow_undefined_flag_F77
15704 # Flag that forces no undefined symbols.
15705 no_undefined_flag=$lt_no_undefined_flag_F77
15707 # Commands used to finish a libtool library installation in a directory.
15708 finish_cmds=$lt_finish_cmds
15710 # Same as above, but a single script fragment to be evaled but not shown.
15711 finish_eval=$lt_finish_eval
15713 # Take the output of nm and produce a listing of raw symbols and C names.
15714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15716 # Transform the output of nm in a proper C declaration
15717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15719 # Transform the output of nm in a C name address pair
15720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15722 # This is the shared library runtime path variable.
15723 runpath_var=$runpath_var
15725 # This is the shared library path variable.
15726 shlibpath_var=$shlibpath_var
15728 # Is shlibpath searched before the hard-coded library search path?
15729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15731 # How to hardcode a shared library path into an executable.
15732 hardcode_action=$hardcode_action_F77
15734 # Whether we should hardcode library paths into libraries.
15735 hardcode_into_libs=$hardcode_into_libs
15737 # Flag to hardcode \$libdir into a binary during linking.
15738 # This must work even if \$libdir does not exist.
15739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15741 # If ld is used when linking, flag to hardcode \$libdir into
15742 # a binary during linking. This must work even if \$libdir does
15744 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15746 # Whether we need a single -rpath flag with a separated argument.
15747 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15749 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15750 # resulting binary.
15751 hardcode_direct=$hardcode_direct_F77
15753 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15754 # resulting binary.
15755 hardcode_minus_L=$hardcode_minus_L_F77
15757 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15758 # the resulting binary.
15759 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15761 # Set to yes if building a shared library automatically hardcodes DIR into the library
15762 # and all subsequent libraries and executables linked against it.
15763 hardcode_automatic=$hardcode_automatic_F77
15765 # Variables whose values should be saved in libtool wrapper scripts and
15766 # restored at relink time.
15767 variables_saved_for_relink="$variables_saved_for_relink"
15769 # Whether libtool must link a program against all its dependency libraries.
15770 link_all_deplibs=$link_all_deplibs_F77
15772 # Compile-time system search path for libraries
15773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15775 # Run-time system search path for libraries
15776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15778 # Fix the shell variable \$srcfile for the compiler.
15779 fix_srcfile_path="$fix_srcfile_path_F77"
15781 # Set to yes if exported symbols are required.
15782 always_export_symbols=$always_export_symbols_F77
15784 # The commands to list exported symbols.
15785 export_symbols_cmds=$lt_export_symbols_cmds_F77
15787 # The commands to extract the exported symbol list from a shared archive.
15788 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15790 # Symbols that should not be listed in the preloaded symbols.
15791 exclude_expsyms=$lt_exclude_expsyms_F77
15793 # Symbols that must always be exported.
15794 include_expsyms=$lt_include_expsyms_F77
15796 # ### END LIBTOOL TAG CONFIG: $tagname
15802 # If there is no Makefile yet, we rely on a make rule to execute
15803 # `config.status --recheck' to rerun these tests and create the
15804 # libtool script then.
15805 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15806 if test -f "$ltmain_in"; then
15807 test -f Makefile && make "$ltmain"
15813 ac_cpp='$CPP $CPPFLAGS'
15814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15826 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15830 # Source file extension for Java test sources.
15833 # Object file extension for compiled Java test sources.
15837 # Code to be used in simple compile tests
15838 lt_simple_compile_test_code="class foo {}\n"
15840 # Code to be used in simple link tests
15841 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15843 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15845 # If no C compiler was specified, use CC.
15848 # If no C compiler flags were specified, use CFLAGS.
15849 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15851 # Allow CC to be a program name with arguments.
15855 # save warnings/boilerplate of simple test code
15856 ac_outfile=conftest.$ac_objext
15857 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15858 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15859 _lt_compiler_boilerplate=`cat conftest.err`
15862 ac_outfile=conftest.$ac_objext
15863 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15864 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15865 _lt_linker_boilerplate=`cat conftest.err`
15869 # Allow CC to be a program name with arguments.
15874 for cc_temp in $compiler""; do
15876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15882 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15885 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15886 archive_cmds_need_lc_GCJ=no
15888 old_archive_cmds_GCJ=$old_archive_cmds
15891 lt_prog_compiler_no_builtin_flag_GCJ=
15893 if test "$GCC" = yes; then
15894 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15897 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15898 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15899 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15902 lt_cv_prog_compiler_rtti_exceptions=no
15903 ac_outfile=conftest.$ac_objext
15904 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15905 lt_compiler_flag="-fno-rtti -fno-exceptions"
15906 # Insert the option either (1) after the last *FLAGS variable, or
15907 # (2) before a word containing "conftest.", or (3) at the end.
15908 # Note that $ac_compile itself does not contain backslashes and begins
15909 # with a dollar sign (not a hyphen), so the echo should work correctly.
15910 # The option is referenced via a variable to avoid confusing sed.
15911 lt_compile=`echo "$ac_compile" | $SED \
15912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15914 -e 's:$: $lt_compiler_flag:'`
15915 (eval echo "\"\$as_me:15915: $lt_compile\"" >&5)
15916 (eval "$lt_compile" 2>conftest.err)
15918 cat conftest.err >&5
15919 echo "$as_me:15919: \$? = $ac_status" >&5
15920 if (exit $ac_status) && test -s "$ac_outfile"; then
15921 # The compiler can only warn and ignore the option if not recognized
15922 # So say no if there are warnings other than the usual output.
15923 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15925 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15926 lt_cv_prog_compiler_rtti_exceptions=yes
15932 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15933 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15935 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15936 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15943 lt_prog_compiler_wl_GCJ=
15944 lt_prog_compiler_pic_GCJ=
15945 lt_prog_compiler_static_GCJ=
15947 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15948 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15950 if test "$GCC" = yes; then
15951 lt_prog_compiler_wl_GCJ='-Wl,'
15952 lt_prog_compiler_static_GCJ='-static'
15956 # All AIX code is PIC.
15957 if test "$host_cpu" = ia64; then
15958 # AIX 5 now supports IA64 processor
15959 lt_prog_compiler_static_GCJ='-Bstatic'
15964 # FIXME: we need at least 68020 code to build shared libraries, but
15965 # adding the `-m68020' flag to GCC prevents building anything better,
15967 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15970 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15971 # PIC is the default for these OSes.
15974 mingw* | pw32* | os2*)
15975 # This hack is so that the source file can tell whether it is being
15976 # built for inclusion in a dll (and should export symbols for example).
15977 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15980 darwin* | rhapsody*)
15981 # PIC is the default on this platform
15982 # Common symbols not allowed in MH_DYLIB files
15983 lt_prog_compiler_pic_GCJ='-fno-common'
15987 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15988 # Instead, we relocate shared libraries at runtime.
15992 # Just because we use GCC doesn't mean we suddenly get shared libraries
15993 # on systems that don't support them.
15994 lt_prog_compiler_can_build_shared_GCJ=no
15999 if test -d /usr/nec; then
16000 lt_prog_compiler_pic_GCJ=-Kconform_pic
16005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16006 # not for PA HP-UX.
16012 lt_prog_compiler_pic_GCJ='-fPIC'
16018 lt_prog_compiler_pic_GCJ='-fPIC'
16022 # PORTME Check for flag to pass linker flags through the system compiler.
16025 lt_prog_compiler_wl_GCJ='-Wl,'
16026 if test "$host_cpu" = ia64; then
16027 # AIX 5 now supports IA64 processor
16028 lt_prog_compiler_static_GCJ='-Bstatic'
16030 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16034 # PIC is the default on this platform
16035 # Common symbols not allowed in MH_DYLIB files
16036 case $cc_basename in
16038 lt_prog_compiler_pic_GCJ='-qnocommon'
16039 lt_prog_compiler_wl_GCJ='-Wl,'
16044 mingw* | pw32* | os2*)
16045 # This hack is so that the source file can tell whether it is being
16046 # built for inclusion in a dll (and should export symbols for example).
16047 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16050 hpux9* | hpux10* | hpux11*)
16051 lt_prog_compiler_wl_GCJ='-Wl,'
16052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16053 # not for PA HP-UX.
16059 lt_prog_compiler_pic_GCJ='+Z'
16062 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16063 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16066 irix5* | irix6* | nonstopux*)
16067 lt_prog_compiler_wl_GCJ='-Wl,'
16068 # PIC (with -KPIC) is the default.
16069 lt_prog_compiler_static_GCJ='-non_shared'
16073 lt_prog_compiler_pic_GCJ='-KPIC'
16074 lt_prog_compiler_static_GCJ='-Bstatic'
16078 case $cc_basename in
16080 lt_prog_compiler_wl_GCJ='-Wl,'
16081 lt_prog_compiler_pic_GCJ='-KPIC'
16082 lt_prog_compiler_static_GCJ='-static'
16084 pgcc* | pgf77* | pgf90* | pgf95*)
16085 # Portland Group compilers (*not* the Pentium gcc compiler,
16086 # which looks to be a dead project)
16087 lt_prog_compiler_wl_GCJ='-Wl,'
16088 lt_prog_compiler_pic_GCJ='-fpic'
16089 lt_prog_compiler_static_GCJ='-Bstatic'
16092 lt_prog_compiler_wl_GCJ='-Wl,'
16093 # All Alpha code is PIC.
16094 lt_prog_compiler_static_GCJ='-non_shared'
16099 osf3* | osf4* | osf5*)
16100 lt_prog_compiler_wl_GCJ='-Wl,'
16101 # All OSF/1 code is PIC.
16102 lt_prog_compiler_static_GCJ='-non_shared'
16106 lt_prog_compiler_pic_GCJ='-KPIC'
16107 lt_prog_compiler_static_GCJ='-Bstatic'
16108 case $cc_basename in
16109 f77* | f90* | f95*)
16110 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16112 lt_prog_compiler_wl_GCJ='-Wl,';;
16117 lt_prog_compiler_wl_GCJ='-Qoption ld '
16118 lt_prog_compiler_pic_GCJ='-PIC'
16119 lt_prog_compiler_static_GCJ='-Bstatic'
16122 sysv4 | sysv4.2uw2* | sysv4.3*)
16123 lt_prog_compiler_wl_GCJ='-Wl,'
16124 lt_prog_compiler_pic_GCJ='-KPIC'
16125 lt_prog_compiler_static_GCJ='-Bstatic'
16129 if test -d /usr/nec ;then
16130 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16131 lt_prog_compiler_static_GCJ='-Bstatic'
16135 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16136 lt_prog_compiler_wl_GCJ='-Wl,'
16137 lt_prog_compiler_pic_GCJ='-KPIC'
16138 lt_prog_compiler_static_GCJ='-Bstatic'
16142 lt_prog_compiler_wl_GCJ='-Wl,'
16143 lt_prog_compiler_can_build_shared_GCJ=no
16147 lt_prog_compiler_pic_GCJ='-pic'
16148 lt_prog_compiler_static_GCJ='-Bstatic'
16152 lt_prog_compiler_can_build_shared_GCJ=no
16157 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16158 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16161 # Check to make sure the PIC flag actually works.
16163 if test -n "$lt_prog_compiler_pic_GCJ"; then
16165 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16166 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16167 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 lt_prog_compiler_pic_works_GCJ=no
16171 ac_outfile=conftest.$ac_objext
16172 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16173 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16174 # Insert the option either (1) after the last *FLAGS variable, or
16175 # (2) before a word containing "conftest.", or (3) at the end.
16176 # Note that $ac_compile itself does not contain backslashes and begins
16177 # with a dollar sign (not a hyphen), so the echo should work correctly.
16178 # The option is referenced via a variable to avoid confusing sed.
16179 lt_compile=`echo "$ac_compile" | $SED \
16180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16182 -e 's:$: $lt_compiler_flag:'`
16183 (eval echo "\"\$as_me:16183: $lt_compile\"" >&5)
16184 (eval "$lt_compile" 2>conftest.err)
16186 cat conftest.err >&5
16187 echo "$as_me:16187: \$? = $ac_status" >&5
16188 if (exit $ac_status) && test -s "$ac_outfile"; then
16189 # The compiler can only warn and ignore the option if not recognized
16190 # So say no if there are warnings other than the usual output.
16191 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16193 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16194 lt_prog_compiler_pic_works_GCJ=yes
16200 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16201 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16203 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16204 case $lt_prog_compiler_pic_GCJ in
16206 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16209 lt_prog_compiler_pic_GCJ=
16210 lt_prog_compiler_can_build_shared_GCJ=no
16215 # For platforms which do not support PIC, -DPIC is meaningless:
16217 lt_prog_compiler_pic_GCJ=
16220 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16225 # Check to make sure the static flag actually works.
16227 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16228 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16229 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16230 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 lt_prog_compiler_static_works_GCJ=no
16234 save_LDFLAGS="$LDFLAGS"
16235 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16236 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16238 # The linker can only warn and ignore the option if not recognized
16239 # So say no if there are warnings
16240 if test -s conftest.err; then
16241 # Append any errors to the config.log.
16242 cat conftest.err 1>&5
16243 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16245 if diff conftest.exp conftest.er2 >/dev/null; then
16246 lt_prog_compiler_static_works_GCJ=yes
16249 lt_prog_compiler_static_works_GCJ=yes
16253 LDFLAGS="$save_LDFLAGS"
16256 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16257 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16259 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16262 lt_prog_compiler_static_GCJ=
16266 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16267 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16268 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16271 lt_cv_prog_compiler_c_o_GCJ=no
16272 $rm -r conftest 2>/dev/null
16276 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16278 lt_compiler_flag="-o out/conftest2.$ac_objext"
16279 # Insert the option either (1) after the last *FLAGS variable, or
16280 # (2) before a word containing "conftest.", or (3) at the end.
16281 # Note that $ac_compile itself does not contain backslashes and begins
16282 # with a dollar sign (not a hyphen), so the echo should work correctly.
16283 lt_compile=`echo "$ac_compile" | $SED \
16284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16286 -e 's:$: $lt_compiler_flag:'`
16287 (eval echo "\"\$as_me:16287: $lt_compile\"" >&5)
16288 (eval "$lt_compile" 2>out/conftest.err)
16290 cat out/conftest.err >&5
16291 echo "$as_me:16291: \$? = $ac_status" >&5
16292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16294 # The compiler can only warn and ignore the option if not recognized
16295 # So say no if there are warnings
16296 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16299 lt_cv_prog_compiler_c_o_GCJ=yes
16304 # SGI C++ compiler will create directory out/ii_files/ for
16305 # template instantiation
16306 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16307 $rm out/* && rmdir out
16313 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16314 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16317 hard_links="nottested"
16318 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16319 # do not overwrite the value of need_locks provided by the user
16320 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16321 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16324 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16326 ln conftest.a conftest.b 2>&5 || hard_links=no
16327 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16328 echo "$as_me:$LINENO: result: $hard_links" >&5
16329 echo "${ECHO_T}$hard_links" >&6
16330 if test "$hard_links" = no; then
16331 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16332 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16339 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16340 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16343 allow_undefined_flag_GCJ=
16344 enable_shared_with_static_runtimes_GCJ=no
16346 archive_expsym_cmds_GCJ=
16347 old_archive_From_new_cmds_GCJ=
16348 old_archive_from_expsyms_cmds_GCJ=
16349 export_dynamic_flag_spec_GCJ=
16350 whole_archive_flag_spec_GCJ=
16351 thread_safe_flag_spec_GCJ=
16352 hardcode_libdir_flag_spec_GCJ=
16353 hardcode_libdir_flag_spec_ld_GCJ=
16354 hardcode_libdir_separator_GCJ=
16355 hardcode_direct_GCJ=no
16356 hardcode_minus_L_GCJ=no
16357 hardcode_shlibpath_var_GCJ=unsupported
16358 link_all_deplibs_GCJ=unknown
16359 hardcode_automatic_GCJ=no
16361 module_expsym_cmds_GCJ=
16362 always_export_symbols_GCJ=no
16363 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16364 # include_expsyms should be a list of space-separated symbols to be *always*
16365 # included in the symbol list
16366 include_expsyms_GCJ=
16367 # exclude_expsyms can be an extended regexp of symbols to exclude
16368 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16369 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16370 # as well as any symbol that contains `d'.
16371 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16372 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16373 # platforms (ab)use it in PIC code, but their linkers get confused if
16374 # the symbol is explicitly referenced. Since portable code cannot
16375 # rely on this symbol name, it's probably fine to never include it in
16376 # preloaded symbol tables.
16377 extract_expsyms_cmds=
16378 # Just being paranoid about ensuring that cc_basename is set.
16379 for cc_temp in $compiler""; do
16381 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16382 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16387 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16390 cygwin* | mingw* | pw32*)
16391 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16392 # When not using gcc, we currently assume that we are using
16393 # Microsoft Visual C++.
16394 if test "$GCC" != yes; then
16399 # we just hope/assume this is gcc and not c89 (= MSVC++)
16408 if test "$with_gnu_ld" = yes; then
16409 # If archive_cmds runs LD, not CC, wlarc should be empty
16412 # Set some defaults for GNU ld with shared library support. These
16413 # are reset later if shared libraries are not supported. Putting them
16414 # here allows them to be overridden if necessary.
16415 runpath_var=LD_RUN_PATH
16416 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16417 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16418 # ancient GNU ld didn't support --whole-archive et. al.
16419 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16420 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16422 whole_archive_flag_spec_GCJ=
16424 supports_anon_versioning=no
16425 case `$LD -v 2>/dev/null` in
16426 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16427 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16428 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16429 *\ 2.11.*) ;; # other 2.11 versions
16430 *) supports_anon_versioning=yes ;;
16433 # See if GNU ld supports shared libraries.
16435 aix3* | aix4* | aix5*)
16436 # On AIX/PPC, the GNU linker is very broken
16437 if test "$host_cpu" != ia64; then
16441 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16442 *** to be unable to reliably create shared libraries on AIX.
16443 *** Therefore, libtool is disabling shared libraries support. If you
16444 *** really care for shared libraries, you may want to modify your PATH
16445 *** so that a non-GNU linker is found, and then restart.
16452 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)'
16453 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16454 hardcode_minus_L_GCJ=yes
16456 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16457 # that the semantics of dynamic libraries on AmigaOS, at least up
16458 # to version 4, is to share data among multiple programs linked
16459 # with the same dynamic library. Since this doesn't match the
16460 # behavior of shared libraries on other platforms, we can't use
16466 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16467 allow_undefined_flag_GCJ=unsupported
16468 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16469 # support --undefined. This deserves some investigation. FIXME
16470 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16476 cygwin* | mingw* | pw32*)
16477 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16478 # as there is no search path for DLLs.
16479 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16480 allow_undefined_flag_GCJ=unsupported
16481 always_export_symbols_GCJ=no
16482 enable_shared_with_static_runtimes_GCJ=yes
16483 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16485 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16486 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16487 # If the export-symbols file already is a .def file (1st line
16488 # is EXPORTS), use it as is; otherwise, prepend...
16489 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16490 cp $export_symbols $output_objdir/$soname.def;
16492 echo EXPORTS > $output_objdir/$soname.def;
16493 cat $export_symbols >> $output_objdir/$soname.def;
16495 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16502 hardcode_direct_GCJ=no
16503 hardcode_shlibpath_var_GCJ=no
16504 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16505 export_dynamic_flag_spec_GCJ='${wl}-E'
16506 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16507 # Instead, shared libraries are loaded at an image base (0x10000000 by
16508 # default) and relocated if they conflict, which is a slow very memory
16509 # consuming and fragmenting process. To avoid this, we pick a random,
16510 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16511 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16512 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16513 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16517 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16519 case $cc_basename,$host_cpu in
16520 pgcc*) # Portland Group C compiler
16521 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16522 tmp_addflag=' $pic_flag'
16524 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16525 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16526 tmp_addflag=' $pic_flag -Mnomain' ;;
16527 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16528 tmp_addflag=' -i_dynamic' ;;
16529 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16530 tmp_addflag=' -i_dynamic -nofor_main' ;;
16531 ifc* | ifort*) # Intel Fortran compiler
16532 tmp_addflag=' -nofor_main' ;;
16534 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16536 if test $supports_anon_versioning = yes; then
16537 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16538 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16539 $echo "local: *; };" >> $output_objdir/$libname.ver~
16540 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16549 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16552 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16553 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16558 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16562 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16563 *** create shared libraries on Solaris systems. Therefore, libtool
16564 *** is disabling shared libraries support. We urge you to upgrade GNU
16565 *** binutils to release 2.9.1 or newer. Another option is to modify
16566 *** your PATH or compiler configuration so that the native linker is
16567 *** used, and then restart.
16570 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16571 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16572 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16579 case `$LD -v 2>&1` in
16580 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16584 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16585 *** reliably create shared libraries on SCO systems. Therefore, libtool
16586 *** is disabling shared libraries support. We urge you to upgrade GNU
16587 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16588 *** your PATH or compiler configuration so that the native linker is
16589 *** used, and then restart.
16594 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16595 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16596 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16597 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16606 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16608 hardcode_direct_GCJ=yes
16609 hardcode_shlibpath_var_GCJ=no
16613 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16614 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16615 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16622 if test "$ld_shlibs_GCJ" = no; then
16624 hardcode_libdir_flag_spec_GCJ=
16625 export_dynamic_flag_spec_GCJ=
16626 whole_archive_flag_spec_GCJ=
16629 # PORTME fill in a description of your system's linker (not GNU ld)
16632 allow_undefined_flag_GCJ=unsupported
16633 always_export_symbols_GCJ=yes
16634 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'
16635 # Note: this linker hardcodes the directories in LIBPATH if there
16636 # are no directories specified by -L.
16637 hardcode_minus_L_GCJ=yes
16638 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16639 # Neither direct hardcoding nor static linking is supported with a
16641 hardcode_direct_GCJ=unsupported
16646 if test "$host_cpu" = ia64; then
16647 # On IA64, the linker does run time linking by default, so we don't
16648 # have to do anything special.
16649 aix_use_runtimelinking=no
16650 exp_sym_flag='-Bexport'
16653 # If we're using GNU nm, then we don't want the "-C" option.
16654 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16655 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16656 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'
16658 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'
16660 aix_use_runtimelinking=no
16662 # Test if we are trying to use run time linking or normal
16663 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16664 # need to do runtime linking.
16665 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16666 for ld_flag in $LDFLAGS; do
16667 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16668 aix_use_runtimelinking=yes
16675 exp_sym_flag='-bexport'
16676 no_entry_flag='-bnoentry'
16679 # When large executables or shared objects are built, AIX ld can
16680 # have problems creating the table of contents. If linking a library
16681 # or program results in "error TOC overflow" add -mminimal-toc to
16682 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16683 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16685 archive_cmds_GCJ=''
16686 hardcode_direct_GCJ=yes
16687 hardcode_libdir_separator_GCJ=':'
16688 link_all_deplibs_GCJ=yes
16690 if test "$GCC" = yes; then
16691 case $host_os in aix4.[012]|aix4.[012].*)
16692 # We only want to do this on AIX 4.2 and lower, the check
16693 # below for broken collect2 doesn't work under 4.3+
16694 collect2name=`${CC} -print-prog-name=collect2`
16695 if test -f "$collect2name" && \
16696 strings "$collect2name" | grep resolve_lib_name >/dev/null
16698 # We have reworked collect2
16699 hardcode_direct_GCJ=yes
16701 # We have old collect2
16702 hardcode_direct_GCJ=unsupported
16703 # It fails to find uninstalled libraries when the uninstalled
16704 # path is not listed in the libpath. Setting hardcode_minus_L
16705 # to unsupported forces relinking
16706 hardcode_minus_L_GCJ=yes
16707 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16708 hardcode_libdir_separator_GCJ=
16712 shared_flag='-shared'
16713 if test "$aix_use_runtimelinking" = yes; then
16714 shared_flag="$shared_flag "'${wl}-G'
16718 if test "$host_cpu" = ia64; then
16719 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16720 # chokes on -Wl,-G. The following line is correct:
16723 if test "$aix_use_runtimelinking" = yes; then
16724 shared_flag='${wl}-G'
16726 shared_flag='${wl}-bM:SRE'
16731 # It seems that -bexpall does not export symbols beginning with
16732 # underscore (_), so it is better to generate a list of symbols to export.
16733 always_export_symbols_GCJ=yes
16734 if test "$aix_use_runtimelinking" = yes; then
16735 # Warning - without using the other runtime loading flags (-brtl),
16736 # -berok will link without error, but may produce a broken library.
16737 allow_undefined_flag_GCJ='-berok'
16738 # Determine the default libpath from the value encoded in an empty executable.
16739 cat >conftest.$ac_ext <<_ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16754 rm -f conftest.$ac_objext conftest$ac_exeext
16755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16756 (eval $ac_link) 2>conftest.er1
16758 grep -v '^ *+' conftest.er1 >conftest.err
16760 cat conftest.err >&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } &&
16763 { ac_try='test -z "$ac_c_werror_flag"
16764 || test ! -s conftest.err'
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest$ac_exeext'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
16777 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16779 # Check for a 64-bit object if we didn't find anything.
16780 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; }
16783 echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16787 rm -f conftest.err conftest.$ac_objext \
16788 conftest$ac_exeext conftest.$ac_ext
16789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16791 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16792 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16794 if test "$host_cpu" = ia64; then
16795 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16796 allow_undefined_flag_GCJ="-z nodefs"
16797 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16799 # Determine the default libpath from the value encoded in an empty executable.
16800 cat >conftest.$ac_ext <<_ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16815 rm -f conftest.$ac_objext conftest$ac_exeext
16816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16817 (eval $ac_link) 2>conftest.er1
16819 grep -v '^ *+' conftest.er1 >conftest.err
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_c_werror_flag"
16825 || test ! -s conftest.err'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest$ac_exeext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16838 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16840 # Check for a 64-bit object if we didn't find anything.
16841 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; }
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16848 rm -f conftest.err conftest.$ac_objext \
16849 conftest$ac_exeext conftest.$ac_ext
16850 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16852 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16853 # Warning - without using the other run time loading flags,
16854 # -berok will link without error, but may produce a broken library.
16855 no_undefined_flag_GCJ=' ${wl}-bernotok'
16856 allow_undefined_flag_GCJ=' ${wl}-berok'
16857 # Exported symbols can be pulled into shared objects from archives
16858 whole_archive_flag_spec_GCJ='$convenience'
16859 archive_cmds_need_lc_GCJ=yes
16860 # This is similar to how AIX traditionally builds its shared libraries.
16861 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16867 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)'
16868 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16869 hardcode_minus_L_GCJ=yes
16870 # see comment about different semantics on the GNU ld section
16875 export_dynamic_flag_spec_GCJ=-rdynamic
16878 cygwin* | mingw* | pw32*)
16879 # When not using gcc, we currently assume that we are using
16880 # Microsoft Visual C++.
16881 # hardcode_libdir_flag_spec is actually meaningless, as there is
16882 # no search path for DLLs.
16883 hardcode_libdir_flag_spec_GCJ=' '
16884 allow_undefined_flag_GCJ=unsupported
16885 # Tell ltmain to make .lib files, not .a files.
16887 # Tell ltmain to make .dll files, not .so files.
16889 # FIXME: Setting linknames here is a bad hack.
16890 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16891 # The linker will automatically build a .lib file if we build a DLL.
16892 old_archive_From_new_cmds_GCJ='true'
16893 # FIXME: Should let the user specify the lib program.
16894 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16895 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16896 enable_shared_with_static_runtimes_GCJ=yes
16899 darwin* | rhapsody*)
16901 rhapsody* | darwin1.[012])
16902 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16905 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16906 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16908 case ${MACOSX_DEPLOYMENT_TARGET} in
16910 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16913 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16919 archive_cmds_need_lc_GCJ=no
16920 hardcode_direct_GCJ=no
16921 hardcode_automatic_GCJ=yes
16922 hardcode_shlibpath_var_GCJ=unsupported
16923 whole_archive_flag_spec_GCJ=''
16924 link_all_deplibs_GCJ=yes
16925 if test "$GCC" = yes ; then
16926 output_verbose_link_cmd='echo'
16927 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16928 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16929 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16930 archive_expsym_cmds_GCJ='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}'
16931 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16933 case $cc_basename in
16935 output_verbose_link_cmd='echo'
16936 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16937 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16938 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16939 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16940 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16950 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16952 hardcode_shlibpath_var_GCJ=no
16959 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16960 # support. Future versions do this automatically, but an explicit c++rt0.o
16961 # does not break anything, and helps significantly (at the cost of a little
16964 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16965 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16966 hardcode_direct_GCJ=yes
16967 hardcode_shlibpath_var_GCJ=no
16970 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16972 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16973 hardcode_direct_GCJ=yes
16974 hardcode_minus_L_GCJ=yes
16975 hardcode_shlibpath_var_GCJ=no
16978 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16979 freebsd* | kfreebsd*-gnu | dragonfly*)
16980 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16981 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16982 hardcode_direct_GCJ=yes
16983 hardcode_shlibpath_var_GCJ=no
16987 if test "$GCC" = yes; then
16988 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'
16990 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'
16992 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16993 hardcode_libdir_separator_GCJ=:
16994 hardcode_direct_GCJ=yes
16996 # hardcode_minus_L: Not really in the search PATH,
16997 # but as the default location of the library.
16998 hardcode_minus_L_GCJ=yes
16999 export_dynamic_flag_spec_GCJ='${wl}-E'
17003 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17004 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17006 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17008 if test "$with_gnu_ld" = no; then
17009 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17010 hardcode_libdir_separator_GCJ=:
17012 hardcode_direct_GCJ=yes
17013 export_dynamic_flag_spec_GCJ='${wl}-E'
17015 # hardcode_minus_L: Not really in the search PATH,
17016 # but as the default location of the library.
17017 hardcode_minus_L_GCJ=yes
17022 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17025 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17028 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17031 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17037 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17040 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17047 if test "$with_gnu_ld" = no; then
17048 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17049 hardcode_libdir_separator_GCJ=:
17053 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17054 hardcode_direct_GCJ=no
17055 hardcode_shlibpath_var_GCJ=no
17058 hardcode_direct_GCJ=yes
17059 export_dynamic_flag_spec_GCJ='${wl}-E'
17061 # hardcode_minus_L: Not really in the search PATH,
17062 # but as the default location of the library.
17063 hardcode_minus_L_GCJ=yes
17069 irix5* | irix6* | nonstopux*)
17070 if test "$GCC" = yes; then
17071 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'
17073 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'
17074 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17076 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17077 hardcode_libdir_separator_GCJ=:
17078 link_all_deplibs_GCJ=yes
17082 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17083 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17085 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17087 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17088 hardcode_direct_GCJ=yes
17089 hardcode_shlibpath_var_GCJ=no
17093 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17094 hardcode_direct_GCJ=yes
17095 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17096 hardcode_libdir_separator_GCJ=:
17097 hardcode_shlibpath_var_GCJ=no
17101 hardcode_direct_GCJ=yes
17102 hardcode_shlibpath_var_GCJ=no
17103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17104 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17105 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17106 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17107 export_dynamic_flag_spec_GCJ='${wl}-E'
17110 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17111 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17112 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17115 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17116 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17124 hardcode_minus_L_GCJ=yes
17125 allow_undefined_flag_GCJ=unsupported
17126 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'
17127 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17131 if test "$GCC" = yes; then
17132 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17133 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'
17135 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17136 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'
17138 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17139 hardcode_libdir_separator_GCJ=:
17142 osf4* | osf5*) # as osf3* with the addition of -msym flag
17143 if test "$GCC" = yes; then
17144 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17145 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'
17146 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17148 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17149 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'
17150 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~
17151 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17153 # Both c and cxx compiler support -rpath directly
17154 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17156 hardcode_libdir_separator_GCJ=:
17160 no_undefined_flag_GCJ=' -z text'
17161 if test "$GCC" = yes; then
17163 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17164 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17165 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17168 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17170 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17172 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17173 hardcode_shlibpath_var_GCJ=no
17175 solaris2.[0-5] | solaris2.[0-5].*) ;;
17177 # The compiler driver will combine linker options so we
17178 # cannot just pass the convience library names through
17179 # without $wl, iff we do not link with $LD.
17180 # Luckily, gcc supports the same syntax we need for Sun Studio.
17181 # Supported since Solaris 2.6 (maybe 2.5.1?)
17184 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17186 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17189 link_all_deplibs_GCJ=yes
17193 if test "x$host_vendor" = xsequent; then
17194 # Use $CC to link under sequent, because it throws in some extra .o
17195 # files that make .init and .fini sections work.
17196 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17198 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17200 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17201 hardcode_direct_GCJ=yes
17202 hardcode_minus_L_GCJ=yes
17203 hardcode_shlibpath_var_GCJ=no
17207 case $host_vendor in
17209 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17210 hardcode_direct_GCJ=yes # is this really true???
17213 ## LD is ld it makes a PLAMLIB
17214 ## CC just makes a GrossModule.
17215 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17216 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17217 hardcode_direct_GCJ=no
17220 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17221 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17224 runpath_var='LD_RUN_PATH'
17225 hardcode_shlibpath_var_GCJ=no
17229 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17230 hardcode_shlibpath_var_GCJ=no
17231 export_dynamic_flag_spec_GCJ='-Bexport'
17235 if test -d /usr/nec; then
17236 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17237 hardcode_shlibpath_var_GCJ=no
17238 runpath_var=LD_RUN_PATH
17239 hardcode_runpath_var=yes
17244 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17245 no_undefined_flag_GCJ='${wl}-z,text'
17246 archive_cmds_need_lc_GCJ=no
17247 hardcode_shlibpath_var_GCJ=no
17248 runpath_var='LD_RUN_PATH'
17250 if test "$GCC" = yes; then
17251 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17252 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17254 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17255 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17259 sysv5* | sco3.2v5* | sco5v6*)
17260 # Note: We can NOT use -z defs as we might desire, because we do not
17261 # link with -lc, and that would cause any symbols used from libc to
17262 # always be unresolved, which means just about no library would
17263 # ever link correctly. If we're not using GNU ld we use -z text
17264 # though, which does catch some bad symbols but isn't as heavy-handed
17266 no_undefined_flag_GCJ='${wl}-z,text'
17267 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17268 archive_cmds_need_lc_GCJ=no
17269 hardcode_shlibpath_var_GCJ=no
17270 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17271 hardcode_libdir_separator_GCJ=':'
17272 link_all_deplibs_GCJ=yes
17273 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17274 runpath_var='LD_RUN_PATH'
17276 if test "$GCC" = yes; then
17277 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17278 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17280 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17281 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17286 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17287 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17288 hardcode_shlibpath_var_GCJ=no
17297 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17298 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17299 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17302 # Do we need to explicitly link libc?
17304 case "x$archive_cmds_need_lc_GCJ" in
17306 # Assume -lc should be added
17307 archive_cmds_need_lc_GCJ=yes
17309 if test "$enable_shared" = yes && test "$GCC" = yes; then
17310 case $archive_cmds_GCJ in
17312 # FIXME: we may have to deal with multi-command sequences.
17315 # Test whether the compiler implicitly links with -lc since on some
17316 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17317 # to ld, don't add -lc before -lgcc.
17318 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17319 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17321 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17324 (eval $ac_compile) 2>&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } 2>conftest.err; then
17330 libobjs=conftest.$ac_objext
17332 wl=$lt_prog_compiler_wl_GCJ
17333 pic_flag=$lt_prog_compiler_pic_GCJ
17339 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17340 allow_undefined_flag_GCJ=
17341 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17342 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }
17347 archive_cmds_need_lc_GCJ=no
17349 archive_cmds_need_lc_GCJ=yes
17351 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17353 cat conftest.err 1>&5
17356 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17357 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17364 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17365 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17366 library_names_spec=
17367 libname_spec='lib$name'
17371 postuninstall_cmds=
17375 shlibpath_overrides_runpath=unknown
17377 dynamic_linker="$host_os ld.so"
17378 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17379 if test "$GCC" = yes; then
17380 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17381 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17382 # if the path contains ";" then we assume it to be the separator
17383 # otherwise default to the standard path separator (i.e. ":") - it is
17384 # assumed that no part of a normal pathname contains ";" but that should
17385 # okay in the real world where ";" in dirpaths is itself problematic.
17386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17393 need_lib_prefix=unknown
17394 hardcode_into_libs=no
17396 # when you set need_version to no, make sure it does not cause -set_version
17397 # flags to be left without arguments
17398 need_version=unknown
17403 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17404 shlibpath_var=LIBPATH
17406 # AIX 3 has no versioning support, so we append a major version to the name.
17407 soname_spec='${libname}${release}${shared_ext}$major'
17414 hardcode_into_libs=yes
17415 if test "$host_cpu" = ia64; then
17416 # AIX 5 supports IA64
17417 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17418 shlibpath_var=LD_LIBRARY_PATH
17420 # With GCC up to 2.95.x, collect2 would create an import file
17421 # for dependence libraries. The import file would start with
17422 # the line `#! .'. This would cause the generated library to
17423 # depend on `.', always an invalid library. This was fixed in
17424 # development snapshots of GCC prior to 3.0.
17426 aix4 | aix4.[01] | aix4.[01].*)
17427 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17429 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17432 can_build_shared=no
17436 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17437 # soname into executable. Probably we can add versioning support to
17438 # collect2, so additional links can be useful in future.
17439 if test "$aix_use_runtimelinking" = yes; then
17440 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17441 # instead of lib<name>.a to let people know that these are not
17442 # typical AIX shared libraries.
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445 # We preserve .a as extension for shared libraries through AIX4.2
17446 # and later when we are not doing run time linking.
17447 library_names_spec='${libname}${release}.a $libname.a'
17448 soname_spec='${libname}${release}${shared_ext}$major'
17450 shlibpath_var=LIBPATH
17455 library_names_spec='$libname.ixlibrary $libname.a'
17456 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17457 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'
17461 library_names_spec='${libname}${shared_ext}'
17462 dynamic_linker="$host_os ld.so"
17463 shlibpath_var=LIBRARY_PATH
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17470 soname_spec='${libname}${release}${shared_ext}$major'
17471 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17472 shlibpath_var=LD_LIBRARY_PATH
17473 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17474 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17475 # the default ld.so.conf also contains /usr/contrib/lib and
17476 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17477 # libtool to hard-code these into programs
17480 cygwin* | mingw* | pw32*)
17481 version_type=windows
17486 case $GCC,$host_os in
17487 yes,cygwin* | yes,mingw* | yes,pw32*)
17488 library_names_spec='$libname.dll.a'
17489 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17490 postinstall_cmds='base_file=`basename \${file}`~
17491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17492 dldir=$destdir/`dirname \$dlpath`~
17493 test -d \$dldir || mkdir -p \$dldir~
17494 $install_prog $dir/$dlname \$dldir/$dlname~
17495 chmod a+x \$dldir/$dlname'
17496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17497 dlpath=$dir/\$dldll~
17499 shlibpath_overrides_runpath=yes
17503 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17504 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17505 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17508 # MinGW DLLs use traditional 'lib' prefix
17509 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17510 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17511 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17512 # It is most probably a Windows format PATH printed by
17513 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17514 # path with ; separators, and with drive letters. We can handle the
17515 # drive letters (cygwin fileutils understands them), so leave them,
17516 # especially as we might pass files found there to a mingw objdump,
17517 # which wouldn't understand a cygwinified path. Ahh.
17518 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17520 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17524 # pw32 DLLs use 'pw' prefix rather than 'lib'
17525 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17531 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17534 dynamic_linker='Win32 ld.exe'
17535 # FIXME: first we should search . and the directory the executable is in
17539 darwin* | rhapsody*)
17540 dynamic_linker="$host_os dyld"
17541 version_type=darwin
17544 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17545 soname_spec='${libname}${release}${major}$shared_ext'
17546 shlibpath_overrides_runpath=yes
17547 shlibpath_var=DYLD_LIBRARY_PATH
17548 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17549 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17550 if test "$GCC" = yes; then
17551 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"`
17553 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17555 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17563 soname_spec='${libname}${release}${shared_ext}$major'
17564 shlibpath_var=LD_LIBRARY_PATH
17575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17576 soname_spec='${libname}${release}${shared_ext}$major'
17577 shlibpath_var=LD_LIBRARY_PATH
17578 shlibpath_overrides_runpath=no
17579 hardcode_into_libs=yes
17580 dynamic_linker='GNU ld.so'
17583 freebsd* | dragonfly*)
17584 # DragonFly does not have aout. When/if they implement a new
17585 # versioning mechanism, adjust this.
17586 if test -x /usr/bin/objformat; then
17587 objformat=`/usr/bin/objformat`
17590 freebsd[123]*) objformat=aout ;;
17591 *) objformat=elf ;;
17594 version_type=freebsd-$objformat
17595 case $version_type in
17597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17606 shlibpath_var=LD_LIBRARY_PATH
17609 shlibpath_overrides_runpath=yes
17611 freebsd3.[01]* | freebsdelf3.[01]*)
17612 shlibpath_overrides_runpath=yes
17613 hardcode_into_libs=yes
17615 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17616 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17617 shlibpath_overrides_runpath=no
17618 hardcode_into_libs=yes
17620 freebsd*) # from 4.6 on
17621 shlibpath_overrides_runpath=yes
17622 hardcode_into_libs=yes
17631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17632 soname_spec='${libname}${release}${shared_ext}$major'
17633 shlibpath_var=LD_LIBRARY_PATH
17634 hardcode_into_libs=yes
17637 hpux9* | hpux10* | hpux11*)
17638 # Give a soname corresponding to the major version so that dld.sl refuses to
17639 # link against other versions.
17646 hardcode_into_libs=yes
17647 dynamic_linker="$host_os dld.so"
17648 shlibpath_var=LD_LIBRARY_PATH
17649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17651 soname_spec='${libname}${release}${shared_ext}$major'
17652 if test "X$HPUX_IA64_MODE" = X32; then
17653 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17655 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17661 hardcode_into_libs=yes
17662 dynamic_linker="$host_os dld.sl"
17663 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17664 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17666 soname_spec='${libname}${release}${shared_ext}$major'
17667 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17672 dynamic_linker="$host_os dld.sl"
17673 shlibpath_var=SHLIB_PATH
17674 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17676 soname_spec='${libname}${release}${shared_ext}$major'
17679 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17680 postinstall_cmds='chmod 555 $lib'
17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17688 soname_spec='${libname}${release}${shared_ext}$major'
17689 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17690 shlibpath_var=LD_LIBRARY_PATH
17691 shlibpath_overrides_runpath=no
17692 hardcode_into_libs=yes
17695 irix5* | irix6* | nonstopux*)
17697 nonstopux*) version_type=nonstopux ;;
17699 if test "$lt_cv_prog_gnu_ld" = yes; then
17707 soname_spec='${libname}${release}${shared_ext}$major'
17708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17710 irix5* | nonstopux*)
17711 libsuff= shlibsuff=
17714 case $LD in # libtool.m4 will add one of these switches to LD
17715 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17716 libsuff= shlibsuff= libmagic=32-bit;;
17717 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17718 libsuff=32 shlibsuff=N32 libmagic=N32;;
17719 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17720 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17721 *) libsuff= shlibsuff= libmagic=never-match;;
17725 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17726 shlibpath_overrides_runpath=no
17727 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17728 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17729 hardcode_into_libs=yes
17732 # No shared lib support for Linux oldld, aout, or coff.
17733 linux*oldld* | linux*aout* | linux*coff*)
17737 # This must be Linux ELF.
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17743 soname_spec='${libname}${release}${shared_ext}$major'
17744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17745 shlibpath_var=LD_LIBRARY_PATH
17746 shlibpath_overrides_runpath=no
17747 # This implies no fast_install, which is unacceptable.
17748 # Some rework will be needed to allow for fast_install
17749 # before this can be enabled.
17750 hardcode_into_libs=yes
17752 # Append ld.so.conf contents to the search path
17753 if test -f /etc/ld.so.conf; then
17754 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17755 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17758 # We used to test for /lib/ld.so.1 and disable shared libraries on
17759 # powerpc, because MkLinux only supported shared libraries with the
17760 # GNU dynamic linker. Since this was broken with cross compilers,
17761 # most powerpc-linux boxes support dynamic linking these days and
17762 # people can always --disable-shared, the test was removed, and we
17763 # assume the GNU/Linux dynamic linker is in use.
17764 dynamic_linker='GNU/Linux ld.so'
17771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17772 soname_spec='${libname}${release}${shared_ext}$major'
17773 shlibpath_var=LD_LIBRARY_PATH
17774 shlibpath_overrides_runpath=no
17775 hardcode_into_libs=yes
17776 dynamic_linker='GNU ld.so'
17783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17786 dynamic_linker='NetBSD (a.out) ld.so'
17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17789 soname_spec='${libname}${release}${shared_ext}$major'
17790 dynamic_linker='NetBSD ld.elf_so'
17792 shlibpath_var=LD_LIBRARY_PATH
17793 shlibpath_overrides_runpath=yes
17794 hardcode_into_libs=yes
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800 shlibpath_var=LD_LIBRARY_PATH
17801 shlibpath_overrides_runpath=yes
17808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17809 soname_spec='${libname}${release}${shared_ext}$major'
17810 shlibpath_var=LD_LIBRARY_PATH
17811 shlibpath_overrides_runpath=yes
17816 sys_lib_dlsearch_path_spec="/usr/lib"
17818 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17820 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17821 *) need_version=no ;;
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17825 shlibpath_var=LD_LIBRARY_PATH
17826 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17828 openbsd2.[89] | openbsd2.[89].*)
17829 shlibpath_overrides_runpath=no
17832 shlibpath_overrides_runpath=yes
17836 shlibpath_overrides_runpath=yes
17841 libname_spec='$name'
17844 library_names_spec='$libname${shared_ext} $libname.a'
17845 dynamic_linker='OS/2 ld.exe'
17846 shlibpath_var=LIBPATH
17849 osf3* | osf4* | osf5*)
17853 soname_spec='${libname}${release}${shared_ext}$major'
17854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17855 shlibpath_var=LD_LIBRARY_PATH
17856 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17857 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17865 soname_spec='${libname}${release}${shared_ext}$major'
17866 shlibpath_var=LD_LIBRARY_PATH
17867 shlibpath_overrides_runpath=yes
17868 hardcode_into_libs=yes
17869 # ldd complains unless libraries are executable
17870 postinstall_cmds='chmod +x $lib'
17875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17876 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17877 shlibpath_var=LD_LIBRARY_PATH
17878 shlibpath_overrides_runpath=yes
17879 if test "$with_gnu_ld" = yes; then
17887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17888 soname_spec='${libname}${release}${shared_ext}$major'
17889 shlibpath_var=LD_LIBRARY_PATH
17890 case $host_vendor in
17892 shlibpath_overrides_runpath=no
17894 export_dynamic_flag_spec='${wl}-Blargedynsym'
17895 runpath_var=LD_RUN_PATH
17903 shlibpath_overrides_runpath=no
17904 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17910 if test -d /usr/nec ;then
17912 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17913 soname_spec='$libname${shared_ext}.$major'
17914 shlibpath_var=LD_LIBRARY_PATH
17918 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17919 version_type=freebsd-elf
17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17923 soname_spec='${libname}${release}${shared_ext}$major'
17924 shlibpath_var=LD_LIBRARY_PATH
17925 hardcode_into_libs=yes
17926 if test "$with_gnu_ld" = yes; then
17927 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17928 shlibpath_overrides_runpath=no
17930 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17931 shlibpath_overrides_runpath=yes
17934 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17938 sys_lib_dlsearch_path_spec='/usr/lib'
17943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17944 soname_spec='${libname}${release}${shared_ext}$major'
17945 shlibpath_var=LD_LIBRARY_PATH
17952 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17953 echo "${ECHO_T}$dynamic_linker" >&6
17954 test "$dynamic_linker" = no && can_build_shared=no
17956 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17957 if test "$GCC" = yes; then
17958 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17961 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17962 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17963 hardcode_action_GCJ=
17964 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17965 test -n "$runpath_var_GCJ" || \
17966 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17968 # We can hardcode non-existant directories.
17969 if test "$hardcode_direct_GCJ" != no &&
17970 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17971 # have to relink, otherwise we might link with an installed library
17972 # when we should be linking with a yet-to-be-installed one
17973 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17974 test "$hardcode_minus_L_GCJ" != no; then
17975 # Linking always hardcodes the temporary library directory.
17976 hardcode_action_GCJ=relink
17978 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17979 hardcode_action_GCJ=immediate
17982 # We cannot hardcode anything, or else we can only hardcode existing
17984 hardcode_action_GCJ=unsupported
17986 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17987 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17989 if test "$hardcode_action_GCJ" = relink; then
17990 # Fast installation is not supported
17991 enable_fast_install=no
17992 elif test "$shlibpath_overrides_runpath" = yes ||
17993 test "$enable_shared" = no; then
17994 # Fast installation is not necessary
17995 enable_fast_install=needless
17999 # The else clause should only fire when bootstrapping the
18000 # libtool distribution, otherwise you forgot to ship ltmain.sh
18001 # with your package, and you will get complaints that there are
18002 # no rules to generate ltmain.sh.
18003 if test -f "$ltmain"; then
18004 # See if we are running on zsh, and set the options which allow our commands through
18005 # without removal of \ escapes.
18006 if test -n "${ZSH_VERSION+set}" ; then
18007 setopt NO_GLOB_SUBST
18009 # Now quote all the things that may contain metacharacters while being
18010 # careful not to overquote the AC_SUBSTed values. We take copies of the
18011 # variables and quote the copies for generation of the libtool script.
18012 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18014 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18015 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18016 deplibs_check_method reload_flag reload_cmds need_locks \
18017 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18018 lt_cv_sys_global_symbol_to_c_name_address \
18019 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18020 old_postinstall_cmds old_postuninstall_cmds \
18024 lt_prog_compiler_wl_GCJ \
18025 lt_prog_compiler_pic_GCJ \
18026 lt_prog_compiler_static_GCJ \
18027 lt_prog_compiler_no_builtin_flag_GCJ \
18028 export_dynamic_flag_spec_GCJ \
18029 thread_safe_flag_spec_GCJ \
18030 whole_archive_flag_spec_GCJ \
18031 enable_shared_with_static_runtimes_GCJ \
18032 old_archive_cmds_GCJ \
18033 old_archive_from_new_cmds_GCJ \
18034 predep_objects_GCJ \
18035 postdep_objects_GCJ \
18038 compiler_lib_search_path_GCJ \
18040 archive_expsym_cmds_GCJ \
18041 postinstall_cmds_GCJ \
18042 postuninstall_cmds_GCJ \
18043 old_archive_from_expsyms_cmds_GCJ \
18044 allow_undefined_flag_GCJ \
18045 no_undefined_flag_GCJ \
18046 export_symbols_cmds_GCJ \
18047 hardcode_libdir_flag_spec_GCJ \
18048 hardcode_libdir_flag_spec_ld_GCJ \
18049 hardcode_libdir_separator_GCJ \
18050 hardcode_automatic_GCJ \
18052 module_expsym_cmds_GCJ \
18053 lt_cv_prog_compiler_c_o_GCJ \
18054 exclude_expsyms_GCJ \
18055 include_expsyms_GCJ; do
18058 old_archive_cmds_GCJ | \
18059 old_archive_from_new_cmds_GCJ | \
18060 archive_cmds_GCJ | \
18061 archive_expsym_cmds_GCJ | \
18062 module_cmds_GCJ | \
18063 module_expsym_cmds_GCJ | \
18064 old_archive_from_expsyms_cmds_GCJ | \
18065 export_symbols_cmds_GCJ | \
18066 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18067 postinstall_cmds | postuninstall_cmds | \
18068 old_postinstall_cmds | old_postuninstall_cmds | \
18069 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18070 # Double-quote double-evaled strings.
18071 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18080 *'\$0 --fallback-echo"')
18081 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18087 cat <<__EOF__ >> "$cfgfile"
18088 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18092 # Shell to use when invoking shell scripts.
18095 # Whether or not to build shared libraries.
18096 build_libtool_libs=$enable_shared
18098 # Whether or not to build static libraries.
18099 build_old_libs=$enable_static
18101 # Whether or not to add -lc for building shared libraries.
18102 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18104 # Whether or not to disallow shared libs when runtime libs are static
18105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18107 # Whether or not to optimize for fast installation.
18108 fast_install=$enable_fast_install
18111 host_alias=$host_alias
18115 # The build system.
18116 build_alias=$build_alias
18120 # An echo program that does not interpret backslashes.
18125 AR_FLAGS=$lt_AR_FLAGS
18130 # LTCC compiler flags.
18131 LTCFLAGS=$lt_LTCFLAGS
18133 # A language-specific compiler.
18134 CC=$lt_compiler_GCJ
18136 # Is the compiler the GNU C compiler?
18142 # The linker used to build libraries.
18145 # Whether we need hard or soft links.
18148 # A BSD-compatible nm program.
18151 # A symbol stripping program
18154 # Used to examine libraries when file_magic_cmd begins "file"
18155 MAGIC_CMD=$MAGIC_CMD
18157 # Used on cygwin: DLL creation program.
18160 # Used on cygwin: object dumper.
18163 # Used on cygwin: assembler.
18166 # The name of the directory that contains temporary libtool files.
18169 # How to create reloadable object files.
18170 reload_flag=$lt_reload_flag
18171 reload_cmds=$lt_reload_cmds
18173 # How to pass a linker flag through the compiler.
18174 wl=$lt_lt_prog_compiler_wl_GCJ
18176 # Object file suffix (normally "o").
18177 objext="$ac_objext"
18179 # Old archive suffix (normally "a").
18182 # Shared library suffix (normally ".so").
18183 shrext_cmds='$shrext_cmds'
18185 # Executable file suffix (normally "").
18188 # Additional compiler flags for building library objects.
18189 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18192 # What is the maximum length of a command?
18193 max_cmd_len=$lt_cv_sys_max_cmd_len
18195 # Does compiler simultaneously support -c and -o options?
18196 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18198 # Must we lock files when doing compilation?
18199 need_locks=$lt_need_locks
18201 # Do we need the lib prefix for modules?
18202 need_lib_prefix=$need_lib_prefix
18204 # Do we need a version for libraries?
18205 need_version=$need_version
18207 # Whether dlopen is supported.
18208 dlopen_support=$enable_dlopen
18210 # Whether dlopen of programs is supported.
18211 dlopen_self=$enable_dlopen_self
18213 # Whether dlopen of statically linked programs is supported.
18214 dlopen_self_static=$enable_dlopen_self_static
18216 # Compiler flag to prevent dynamic linking.
18217 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18219 # Compiler flag to turn off builtin functions.
18220 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18222 # Compiler flag to allow reflexive dlopens.
18223 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18225 # Compiler flag to generate shared objects directly from archives.
18226 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18228 # Compiler flag to generate thread-safe objects.
18229 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18231 # Library versioning type.
18232 version_type=$version_type
18234 # Format of library name prefix.
18235 libname_spec=$lt_libname_spec
18237 # List of archive names. First name is the real one, the rest are links.
18238 # The last name is the one that the linker finds with -lNAME.
18239 library_names_spec=$lt_library_names_spec
18241 # The coded name of the library, if different from the real name.
18242 soname_spec=$lt_soname_spec
18244 # Commands used to build and install an old-style archive.
18246 old_archive_cmds=$lt_old_archive_cmds_GCJ
18247 old_postinstall_cmds=$lt_old_postinstall_cmds
18248 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18250 # Create an old-style archive from a shared archive.
18251 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18253 # Create a temporary old-style archive to link instead of a shared archive.
18254 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18256 # Commands used to build and install a shared archive.
18257 archive_cmds=$lt_archive_cmds_GCJ
18258 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18259 postinstall_cmds=$lt_postinstall_cmds
18260 postuninstall_cmds=$lt_postuninstall_cmds
18262 # Commands used to build a loadable module (assumed same as above if empty)
18263 module_cmds=$lt_module_cmds_GCJ
18264 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18266 # Commands to strip libraries.
18267 old_striplib=$lt_old_striplib
18268 striplib=$lt_striplib
18270 # Dependencies to place before the objects being linked to create a
18272 predep_objects=$lt_predep_objects_GCJ
18274 # Dependencies to place after the objects being linked to create a
18276 postdep_objects=$lt_postdep_objects_GCJ
18278 # Dependencies to place before the objects being linked to create a
18280 predeps=$lt_predeps_GCJ
18282 # Dependencies to place after the objects being linked to create a
18284 postdeps=$lt_postdeps_GCJ
18286 # The library search path used internally by the compiler when linking
18287 # a shared library.
18288 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18290 # Method to check whether dependent libraries are shared objects.
18291 deplibs_check_method=$lt_deplibs_check_method
18293 # Command to use when deplibs_check_method == file_magic.
18294 file_magic_cmd=$lt_file_magic_cmd
18296 # Flag that allows shared libraries with undefined symbols to be built.
18297 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18299 # Flag that forces no undefined symbols.
18300 no_undefined_flag=$lt_no_undefined_flag_GCJ
18302 # Commands used to finish a libtool library installation in a directory.
18303 finish_cmds=$lt_finish_cmds
18305 # Same as above, but a single script fragment to be evaled but not shown.
18306 finish_eval=$lt_finish_eval
18308 # Take the output of nm and produce a listing of raw symbols and C names.
18309 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18311 # Transform the output of nm in a proper C declaration
18312 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18314 # Transform the output of nm in a C name address pair
18315 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18317 # This is the shared library runtime path variable.
18318 runpath_var=$runpath_var
18320 # This is the shared library path variable.
18321 shlibpath_var=$shlibpath_var
18323 # Is shlibpath searched before the hard-coded library search path?
18324 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18326 # How to hardcode a shared library path into an executable.
18327 hardcode_action=$hardcode_action_GCJ
18329 # Whether we should hardcode library paths into libraries.
18330 hardcode_into_libs=$hardcode_into_libs
18332 # Flag to hardcode \$libdir into a binary during linking.
18333 # This must work even if \$libdir does not exist.
18334 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18336 # If ld is used when linking, flag to hardcode \$libdir into
18337 # a binary during linking. This must work even if \$libdir does
18339 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18341 # Whether we need a single -rpath flag with a separated argument.
18342 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18344 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18345 # resulting binary.
18346 hardcode_direct=$hardcode_direct_GCJ
18348 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18349 # resulting binary.
18350 hardcode_minus_L=$hardcode_minus_L_GCJ
18352 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18353 # the resulting binary.
18354 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18356 # Set to yes if building a shared library automatically hardcodes DIR into the library
18357 # and all subsequent libraries and executables linked against it.
18358 hardcode_automatic=$hardcode_automatic_GCJ
18360 # Variables whose values should be saved in libtool wrapper scripts and
18361 # restored at relink time.
18362 variables_saved_for_relink="$variables_saved_for_relink"
18364 # Whether libtool must link a program against all its dependency libraries.
18365 link_all_deplibs=$link_all_deplibs_GCJ
18367 # Compile-time system search path for libraries
18368 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18370 # Run-time system search path for libraries
18371 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18373 # Fix the shell variable \$srcfile for the compiler.
18374 fix_srcfile_path="$fix_srcfile_path_GCJ"
18376 # Set to yes if exported symbols are required.
18377 always_export_symbols=$always_export_symbols_GCJ
18379 # The commands to list exported symbols.
18380 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18382 # The commands to extract the exported symbol list from a shared archive.
18383 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18385 # Symbols that should not be listed in the preloaded symbols.
18386 exclude_expsyms=$lt_exclude_expsyms_GCJ
18388 # Symbols that must always be exported.
18389 include_expsyms=$lt_include_expsyms_GCJ
18391 # ### END LIBTOOL TAG CONFIG: $tagname
18397 # If there is no Makefile yet, we rely on a make rule to execute
18398 # `config.status --recheck' to rerun these tests and create the
18399 # libtool script then.
18400 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18401 if test -f "$ltmain_in"; then
18402 test -f Makefile && make "$ltmain"
18408 ac_cpp='$CPP $CPPFLAGS'
18409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18424 # Source file extension for RC test sources.
18427 # Object file extension for compiled RC test sources.
18431 # Code to be used in simple compile tests
18432 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18434 # Code to be used in simple link tests
18435 lt_simple_link_test_code="$lt_simple_compile_test_code"
18437 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18439 # If no C compiler was specified, use CC.
18442 # If no C compiler flags were specified, use CFLAGS.
18443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18445 # Allow CC to be a program name with arguments.
18449 # save warnings/boilerplate of simple test code
18450 ac_outfile=conftest.$ac_objext
18451 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18452 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18453 _lt_compiler_boilerplate=`cat conftest.err`
18456 ac_outfile=conftest.$ac_objext
18457 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18458 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18459 _lt_linker_boilerplate=`cat conftest.err`
18463 # Allow CC to be a program name with arguments.
18468 for cc_temp in $compiler""; do
18470 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18471 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18476 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18478 lt_cv_prog_compiler_c_o_RC=yes
18480 # The else clause should only fire when bootstrapping the
18481 # libtool distribution, otherwise you forgot to ship ltmain.sh
18482 # with your package, and you will get complaints that there are
18483 # no rules to generate ltmain.sh.
18484 if test -f "$ltmain"; then
18485 # See if we are running on zsh, and set the options which allow our commands through
18486 # without removal of \ escapes.
18487 if test -n "${ZSH_VERSION+set}" ; then
18488 setopt NO_GLOB_SUBST
18490 # Now quote all the things that may contain metacharacters while being
18491 # careful not to overquote the AC_SUBSTed values. We take copies of the
18492 # variables and quote the copies for generation of the libtool script.
18493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18497 deplibs_check_method reload_flag reload_cmds need_locks \
18498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18499 lt_cv_sys_global_symbol_to_c_name_address \
18500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18501 old_postinstall_cmds old_postuninstall_cmds \
18505 lt_prog_compiler_wl_RC \
18506 lt_prog_compiler_pic_RC \
18507 lt_prog_compiler_static_RC \
18508 lt_prog_compiler_no_builtin_flag_RC \
18509 export_dynamic_flag_spec_RC \
18510 thread_safe_flag_spec_RC \
18511 whole_archive_flag_spec_RC \
18512 enable_shared_with_static_runtimes_RC \
18513 old_archive_cmds_RC \
18514 old_archive_from_new_cmds_RC \
18515 predep_objects_RC \
18516 postdep_objects_RC \
18519 compiler_lib_search_path_RC \
18521 archive_expsym_cmds_RC \
18522 postinstall_cmds_RC \
18523 postuninstall_cmds_RC \
18524 old_archive_from_expsyms_cmds_RC \
18525 allow_undefined_flag_RC \
18526 no_undefined_flag_RC \
18527 export_symbols_cmds_RC \
18528 hardcode_libdir_flag_spec_RC \
18529 hardcode_libdir_flag_spec_ld_RC \
18530 hardcode_libdir_separator_RC \
18531 hardcode_automatic_RC \
18533 module_expsym_cmds_RC \
18534 lt_cv_prog_compiler_c_o_RC \
18535 exclude_expsyms_RC \
18536 include_expsyms_RC; do
18539 old_archive_cmds_RC | \
18540 old_archive_from_new_cmds_RC | \
18541 archive_cmds_RC | \
18542 archive_expsym_cmds_RC | \
18544 module_expsym_cmds_RC | \
18545 old_archive_from_expsyms_cmds_RC | \
18546 export_symbols_cmds_RC | \
18547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18548 postinstall_cmds | postuninstall_cmds | \
18549 old_postinstall_cmds | old_postuninstall_cmds | \
18550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18551 # Double-quote double-evaled strings.
18552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18561 *'\$0 --fallback-echo"')
18562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18568 cat <<__EOF__ >> "$cfgfile"
18569 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18573 # Shell to use when invoking shell scripts.
18576 # Whether or not to build shared libraries.
18577 build_libtool_libs=$enable_shared
18579 # Whether or not to build static libraries.
18580 build_old_libs=$enable_static
18582 # Whether or not to add -lc for building shared libraries.
18583 build_libtool_need_lc=$archive_cmds_need_lc_RC
18585 # Whether or not to disallow shared libs when runtime libs are static
18586 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18588 # Whether or not to optimize for fast installation.
18589 fast_install=$enable_fast_install
18592 host_alias=$host_alias
18596 # The build system.
18597 build_alias=$build_alias
18601 # An echo program that does not interpret backslashes.
18606 AR_FLAGS=$lt_AR_FLAGS
18611 # LTCC compiler flags.
18612 LTCFLAGS=$lt_LTCFLAGS
18614 # A language-specific compiler.
18617 # Is the compiler the GNU C compiler?
18623 # The linker used to build libraries.
18626 # Whether we need hard or soft links.
18629 # A BSD-compatible nm program.
18632 # A symbol stripping program
18635 # Used to examine libraries when file_magic_cmd begins "file"
18636 MAGIC_CMD=$MAGIC_CMD
18638 # Used on cygwin: DLL creation program.
18641 # Used on cygwin: object dumper.
18644 # Used on cygwin: assembler.
18647 # The name of the directory that contains temporary libtool files.
18650 # How to create reloadable object files.
18651 reload_flag=$lt_reload_flag
18652 reload_cmds=$lt_reload_cmds
18654 # How to pass a linker flag through the compiler.
18655 wl=$lt_lt_prog_compiler_wl_RC
18657 # Object file suffix (normally "o").
18658 objext="$ac_objext"
18660 # Old archive suffix (normally "a").
18663 # Shared library suffix (normally ".so").
18664 shrext_cmds='$shrext_cmds'
18666 # Executable file suffix (normally "").
18669 # Additional compiler flags for building library objects.
18670 pic_flag=$lt_lt_prog_compiler_pic_RC
18673 # What is the maximum length of a command?
18674 max_cmd_len=$lt_cv_sys_max_cmd_len
18676 # Does compiler simultaneously support -c and -o options?
18677 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18679 # Must we lock files when doing compilation?
18680 need_locks=$lt_need_locks
18682 # Do we need the lib prefix for modules?
18683 need_lib_prefix=$need_lib_prefix
18685 # Do we need a version for libraries?
18686 need_version=$need_version
18688 # Whether dlopen is supported.
18689 dlopen_support=$enable_dlopen
18691 # Whether dlopen of programs is supported.
18692 dlopen_self=$enable_dlopen_self
18694 # Whether dlopen of statically linked programs is supported.
18695 dlopen_self_static=$enable_dlopen_self_static
18697 # Compiler flag to prevent dynamic linking.
18698 link_static_flag=$lt_lt_prog_compiler_static_RC
18700 # Compiler flag to turn off builtin functions.
18701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18703 # Compiler flag to allow reflexive dlopens.
18704 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18706 # Compiler flag to generate shared objects directly from archives.
18707 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18709 # Compiler flag to generate thread-safe objects.
18710 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18712 # Library versioning type.
18713 version_type=$version_type
18715 # Format of library name prefix.
18716 libname_spec=$lt_libname_spec
18718 # List of archive names. First name is the real one, the rest are links.
18719 # The last name is the one that the linker finds with -lNAME.
18720 library_names_spec=$lt_library_names_spec
18722 # The coded name of the library, if different from the real name.
18723 soname_spec=$lt_soname_spec
18725 # Commands used to build and install an old-style archive.
18727 old_archive_cmds=$lt_old_archive_cmds_RC
18728 old_postinstall_cmds=$lt_old_postinstall_cmds
18729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18731 # Create an old-style archive from a shared archive.
18732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18734 # Create a temporary old-style archive to link instead of a shared archive.
18735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18737 # Commands used to build and install a shared archive.
18738 archive_cmds=$lt_archive_cmds_RC
18739 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18740 postinstall_cmds=$lt_postinstall_cmds
18741 postuninstall_cmds=$lt_postuninstall_cmds
18743 # Commands used to build a loadable module (assumed same as above if empty)
18744 module_cmds=$lt_module_cmds_RC
18745 module_expsym_cmds=$lt_module_expsym_cmds_RC
18747 # Commands to strip libraries.
18748 old_striplib=$lt_old_striplib
18749 striplib=$lt_striplib
18751 # Dependencies to place before the objects being linked to create a
18753 predep_objects=$lt_predep_objects_RC
18755 # Dependencies to place after the objects being linked to create a
18757 postdep_objects=$lt_postdep_objects_RC
18759 # Dependencies to place before the objects being linked to create a
18761 predeps=$lt_predeps_RC
18763 # Dependencies to place after the objects being linked to create a
18765 postdeps=$lt_postdeps_RC
18767 # The library search path used internally by the compiler when linking
18768 # a shared library.
18769 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18771 # Method to check whether dependent libraries are shared objects.
18772 deplibs_check_method=$lt_deplibs_check_method
18774 # Command to use when deplibs_check_method == file_magic.
18775 file_magic_cmd=$lt_file_magic_cmd
18777 # Flag that allows shared libraries with undefined symbols to be built.
18778 allow_undefined_flag=$lt_allow_undefined_flag_RC
18780 # Flag that forces no undefined symbols.
18781 no_undefined_flag=$lt_no_undefined_flag_RC
18783 # Commands used to finish a libtool library installation in a directory.
18784 finish_cmds=$lt_finish_cmds
18786 # Same as above, but a single script fragment to be evaled but not shown.
18787 finish_eval=$lt_finish_eval
18789 # Take the output of nm and produce a listing of raw symbols and C names.
18790 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18792 # Transform the output of nm in a proper C declaration
18793 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18795 # Transform the output of nm in a C name address pair
18796 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18798 # This is the shared library runtime path variable.
18799 runpath_var=$runpath_var
18801 # This is the shared library path variable.
18802 shlibpath_var=$shlibpath_var
18804 # Is shlibpath searched before the hard-coded library search path?
18805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18807 # How to hardcode a shared library path into an executable.
18808 hardcode_action=$hardcode_action_RC
18810 # Whether we should hardcode library paths into libraries.
18811 hardcode_into_libs=$hardcode_into_libs
18813 # Flag to hardcode \$libdir into a binary during linking.
18814 # This must work even if \$libdir does not exist.
18815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18817 # If ld is used when linking, flag to hardcode \$libdir into
18818 # a binary during linking. This must work even if \$libdir does
18820 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18822 # Whether we need a single -rpath flag with a separated argument.
18823 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18825 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18826 # resulting binary.
18827 hardcode_direct=$hardcode_direct_RC
18829 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18830 # resulting binary.
18831 hardcode_minus_L=$hardcode_minus_L_RC
18833 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18834 # the resulting binary.
18835 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18837 # Set to yes if building a shared library automatically hardcodes DIR into the library
18838 # and all subsequent libraries and executables linked against it.
18839 hardcode_automatic=$hardcode_automatic_RC
18841 # Variables whose values should be saved in libtool wrapper scripts and
18842 # restored at relink time.
18843 variables_saved_for_relink="$variables_saved_for_relink"
18845 # Whether libtool must link a program against all its dependency libraries.
18846 link_all_deplibs=$link_all_deplibs_RC
18848 # Compile-time system search path for libraries
18849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18851 # Run-time system search path for libraries
18852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18854 # Fix the shell variable \$srcfile for the compiler.
18855 fix_srcfile_path="$fix_srcfile_path_RC"
18857 # Set to yes if exported symbols are required.
18858 always_export_symbols=$always_export_symbols_RC
18860 # The commands to list exported symbols.
18861 export_symbols_cmds=$lt_export_symbols_cmds_RC
18863 # The commands to extract the exported symbol list from a shared archive.
18864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18866 # Symbols that should not be listed in the preloaded symbols.
18867 exclude_expsyms=$lt_exclude_expsyms_RC
18869 # Symbols that must always be exported.
18870 include_expsyms=$lt_include_expsyms_RC
18872 # ### END LIBTOOL TAG CONFIG: $tagname
18878 # If there is no Makefile yet, we rely on a make rule to execute
18879 # `config.status --recheck' to rerun these tests and create the
18880 # libtool script then.
18881 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18882 if test -f "$ltmain_in"; then
18883 test -f Makefile && make "$ltmain"
18889 ac_cpp='$CPP $CPPFLAGS'
18890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18899 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18900 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18901 { (exit 1); exit 1; }; }
18905 # Append the new tag name to the list of available tags.
18906 if test -n "$tagname" ; then
18907 available_tags="$available_tags $tagname"
18913 # Now substitute the updated list of available tags.
18914 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18915 mv "${ofile}T" "$ofile"
18919 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18920 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18921 { (exit 1); exit 1; }; }
18927 # This can be used to rebuild libtool when needed
18928 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18930 # Always use our own libtool.
18931 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18933 # Prevent multiple expansion
18956 for ac_prog in gm4 m4
18958 # Extract the first word of "$ac_prog", so it can be a program name with args.
18959 set dummy $ac_prog; ac_word=$2
18960 echo "$as_me:$LINENO: checking for $ac_word" >&5
18961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18962 if test "${ac_cv_prog_M4+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18965 if test -n "$M4"; then
18966 ac_cv_prog_M4="$M4" # Let the user override the test.
18968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18969 for as_dir in $PATH
18972 test -z "$as_dir" && as_dir=.
18973 for ac_exec_ext in '' $ac_executable_extensions; do
18974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18975 ac_cv_prog_M4="$ac_prog"
18976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18985 if test -n "$M4"; then
18986 echo "$as_me:$LINENO: result: $M4" >&5
18987 echo "${ECHO_T}$M4" >&6
18989 echo "$as_me:$LINENO: result: no" >&5
18990 echo "${ECHO_T}no" >&6
18993 test -n "$M4" && break
18995 test -n "$M4" || M4="m4"
18998 if test "$M4" = "m4"; then
18999 echo "$as_me:$LINENO: checking whether m4 is GNU m4" >&5
19000 echo $ECHO_N "checking whether m4 is GNU m4... $ECHO_C" >&6
19001 if $M4 --version </dev/null 2>/dev/null | grep '^GNU m4 ' >/dev/null ; then
19002 echo "$as_me:$LINENO: result: yes" >&5
19003 echo "${ECHO_T}yes" >&6
19005 echo "$as_me:$LINENO: result: no" >&5
19006 echo "${ECHO_T}no" >&6
19007 if test "$host_vendor" = "sun"; then
19008 { { echo "$as_me:$LINENO: error: SUN m4 does not work for building gtkmm.
19009 Please install GNU m4." >&5
19010 echo "$as_me: error: SUN m4 does not work for building gtkmm.
19011 Please install GNU m4." >&2;}
19012 { (exit 1); exit 1; }; }
19019 echo "$as_me:$LINENO: checking whether make is GNU Make" >&5
19020 echo $ECHO_N "checking whether make is GNU Make... $ECHO_C" >&6
19021 if ${MAKE-make} --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
19022 echo "$as_me:$LINENO: result: yes" >&5
19023 echo "${ECHO_T}yes" >&6
19025 echo "$as_me:$LINENO: result: no" >&5
19026 echo "${ECHO_T}no" >&6
19027 if test "$host_vendor" = "sun" ; then
19028 { { echo "$as_me:$LINENO: error: SUN make does not work for building gtkmm.
19029 Please install GNU make." >&5
19030 echo "$as_me: error: SUN make does not work for building gtkmm.
19031 Please install GNU make." >&2;}
19032 { (exit 1); exit 1; }; }
19038 glibmm_perl_result=no
19040 for ac_prog in perl perl5
19042 # Extract the first word of "$ac_prog", so it can be a program name with args.
19043 set dummy $ac_prog; ac_word=$2
19044 echo "$as_me:$LINENO: checking for $ac_word" >&5
19045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19046 if test "${ac_cv_path_PERL_PATH+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path.
19054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19055 for as_dir in $PATH
19058 test -z "$as_dir" && as_dir=.
19059 for ac_exec_ext in '' $ac_executable_extensions; do
19060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19061 ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext"
19062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19071 PERL_PATH=$ac_cv_path_PERL_PATH
19073 if test -n "$PERL_PATH"; then
19074 echo "$as_me:$LINENO: result: $PERL_PATH" >&5
19075 echo "${ECHO_T}$PERL_PATH" >&6
19077 echo "$as_me:$LINENO: result: no" >&5
19078 echo "${ECHO_T}no" >&6
19081 test -n "$PERL_PATH" && break
19083 test -n "$PERL_PATH" || PERL_PATH="not found"
19086 if test "x$PERL_PATH" != "xnot found"; then
19088 echo "$as_me:$LINENO: checking whether Perl is new enough" >&5
19089 echo $ECHO_N "checking whether Perl is new enough... $ECHO_C" >&6
19090 if test "${glibmm_cv_perl_version_5_6_0+set}" = set; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 glibmm_cv_perl_version_5_6_0=no
19095 "$PERL_PATH" -e "require v5.6.0; exit 0;" >/dev/null 2>&1 && glibmm_cv_perl_version_5_6_0=yes
19098 echo "$as_me:$LINENO: result: $glibmm_cv_perl_version_5_6_0" >&5
19099 echo "${ECHO_T}$glibmm_cv_perl_version_5_6_0" >&6
19100 test "x${glibmm_cv_perl_version_5_6_0}" = xyes && glibmm_perl_result=yes
19104 # Make sure we have something sensible, even if it doesn't work.
19109 if test "x$glibmm_perl_result" = xno && test "x$USE_MAINTAINER_MODE" = xyes; then
19111 { { echo "$as_me:$LINENO: error:
19112 *** Perl >= 5.6.0 is required for building $PACKAGE in maintainer-mode.
19114 echo "$as_me: error:
19115 *** Perl >= 5.6.0 is required for building $PACKAGE in maintainer-mode.
19117 { (exit 1); exit 1; }; }
19124 #########################################################################
19126 #########################################################################
19128 # functions used in demos/gtk-demo. Undefined in config.h !
19133 for ac_func in flockfile funlockfile getc_unlocked mkfifo
19135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19136 echo "$as_me:$LINENO: checking for $ac_func" >&5
19137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19138 if eval "test \"\${$as_ac_var+set}\" = set"; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19141 cat >conftest.$ac_ext <<_ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19149 #define $ac_func innocuous_$ac_func
19151 /* System header to define __stub macros and hopefully few prototypes,
19152 which can conflict with char $ac_func (); below.
19153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19154 <limits.h> exists even on freestanding compilers. */
19157 # include <limits.h>
19159 # include <assert.h>
19164 /* Override any gcc2 internal prototype to avoid an error. */
19169 /* We use char because int might match the return type of a gcc2
19170 builtin and then its argument prototype would still apply. */
19172 /* The GNU C library defines this for functions which it implements
19173 to always fail with ENOSYS. Some functions are actually named
19174 something starting with __ and the normal name is an alias. */
19175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19178 char (*f) () = $ac_func;
19187 return f != $ac_func;
19192 rm -f conftest.$ac_objext conftest$ac_exeext
19193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19194 (eval $ac_link) 2>conftest.er1
19196 grep -v '^ *+' conftest.er1 >conftest.err
19198 cat conftest.err >&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); } &&
19201 { ac_try='test -z "$ac_c_werror_flag"
19202 || test ! -s conftest.err'
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; } &&
19208 { ac_try='test -s conftest$ac_exeext'
19209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210 (eval $ac_try) 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
19214 eval "$as_ac_var=yes"
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19219 eval "$as_ac_var=no"
19221 rm -f conftest.err conftest.$ac_objext \
19222 conftest$ac_exeext conftest.$ac_ext
19224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19226 if test `eval echo '${'$as_ac_var'}'` = yes; then
19227 cat >>confdefs.h <<_ACEOF
19228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19235 #########################################################################
19236 # Dependancy checks
19237 #########################################################################
19238 gtkmm_min_sigc_version=2.0.0
19239 gtkmm_min_glib_version=2.9.0
19243 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19244 if test -n "$ac_tool_prefix"; then
19245 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19246 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19247 echo "$as_me:$LINENO: checking for $ac_word" >&5
19248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19249 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 case $PKG_CONFIG in
19254 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19258 for as_dir in $PATH
19261 test -z "$as_dir" && as_dir=.
19262 for ac_exec_ext in '' $ac_executable_extensions; do
19263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19264 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19274 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19276 if test -n "$PKG_CONFIG"; then
19277 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19278 echo "${ECHO_T}$PKG_CONFIG" >&6
19280 echo "$as_me:$LINENO: result: no" >&5
19281 echo "${ECHO_T}no" >&6
19285 if test -z "$ac_cv_path_PKG_CONFIG"; then
19286 ac_pt_PKG_CONFIG=$PKG_CONFIG
19287 # Extract the first word of "pkg-config", so it can be a program name with args.
19288 set dummy pkg-config; ac_word=$2
19289 echo "$as_me:$LINENO: checking for $ac_word" >&5
19290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19291 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19294 case $ac_pt_PKG_CONFIG in
19296 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19300 for as_dir in $PATH
19303 test -z "$as_dir" && as_dir=.
19304 for ac_exec_ext in '' $ac_executable_extensions; do
19305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19306 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19316 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19318 if test -n "$ac_pt_PKG_CONFIG"; then
19319 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19320 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19322 echo "$as_me:$LINENO: result: no" >&5
19323 echo "${ECHO_T}no" >&6
19326 PKG_CONFIG=$ac_pt_PKG_CONFIG
19328 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19332 if test -n "$PKG_CONFIG"; then
19333 _pkg_min_version=0.9.0
19334 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19335 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19336 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19337 echo "$as_me:$LINENO: result: yes" >&5
19338 echo "${ECHO_T}yes" >&6
19340 echo "$as_me:$LINENO: result: no" >&5
19341 echo "${ECHO_T}no" >&6
19348 echo "$as_me:$LINENO: checking for GLIBMM" >&5
19349 echo $ECHO_N "checking for GLIBMM... $ECHO_C" >&6
19351 if test -n "$PKG_CONFIG"; then
19352 if test -n "$GLIBMM_CFLAGS"; then
19353 pkg_cv_GLIBMM_CFLAGS="$GLIBMM_CFLAGS"
19355 if test -n "$PKG_CONFIG" && \
19356 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= \${gtkmm_min_sigc_version} glib-2.0 >= \${gtkmm_min_glib_version} gobject-2.0 >= \${gtkmm_min_glib_version} gmodule-2.0 >= \${gtkmm_min_glib_version}\"") >&5
19357 ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}") 2>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; then
19361 pkg_cv_GLIBMM_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}" 2>/dev/null`
19369 if test -n "$PKG_CONFIG"; then
19370 if test -n "$GLIBMM_LIBS"; then
19371 pkg_cv_GLIBMM_LIBS="$GLIBMM_LIBS"
19373 if test -n "$PKG_CONFIG" && \
19374 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= \${gtkmm_min_sigc_version} glib-2.0 >= \${gtkmm_min_glib_version} gobject-2.0 >= \${gtkmm_min_glib_version} gmodule-2.0 >= \${gtkmm_min_glib_version}\"") >&5
19375 ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}") 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; then
19379 pkg_cv_GLIBMM_LIBS=`$PKG_CONFIG --libs "sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}" 2>/dev/null`
19390 if test $pkg_failed = yes; then
19392 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19393 _pkg_short_errors_supported=yes
19395 _pkg_short_errors_supported=no
19397 if test $_pkg_short_errors_supported = yes; then
19398 GLIBMM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}"`
19400 GLIBMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}"`
19402 # Put the nasty error message in config.log where it belongs
19403 echo "$GLIBMM_PKG_ERRORS" >&5
19405 { { echo "$as_me:$LINENO: error: Package requirements (sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}) were not met:
19409 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19410 installed software in a non-standard prefix.
19412 Alternatively, you may set the environment variables GLIBMM_CFLAGS
19413 and GLIBMM_LIBS to avoid the need to call pkg-config.
19414 See the pkg-config man page for more details.
19416 echo "$as_me: error: Package requirements (sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}) were not met:
19420 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19421 installed software in a non-standard prefix.
19423 Alternatively, you may set the environment variables GLIBMM_CFLAGS
19424 and GLIBMM_LIBS to avoid the need to call pkg-config.
19425 See the pkg-config man page for more details.
19427 { (exit 1); exit 1; }; }
19428 elif test $pkg_failed = untried; then
19429 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19430 is in your PATH or set the PKG_CONFIG environment variable to the full
19431 path to pkg-config.
19433 Alternatively, you may set the environment variables GLIBMM_CFLAGS
19434 and GLIBMM_LIBS to avoid the need to call pkg-config.
19435 See the pkg-config man page for more details.
19437 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19438 See \`config.log' for more details." >&5
19439 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19440 is in your PATH or set the PKG_CONFIG environment variable to the full
19441 path to pkg-config.
19443 Alternatively, you may set the environment variables GLIBMM_CFLAGS
19444 and GLIBMM_LIBS to avoid the need to call pkg-config.
19445 See the pkg-config man page for more details.
19447 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19448 See \`config.log' for more details." >&2;}
19449 { (exit 1); exit 1; }; }
19451 GLIBMM_CFLAGS=$pkg_cv_GLIBMM_CFLAGS
19452 GLIBMM_LIBS=$pkg_cv_GLIBMM_LIBS
19453 echo "$as_me:$LINENO: result: yes" >&5
19454 echo "${ECHO_T}yes" >&6
19460 # gthread isn't a requirement, but we should use its CFLAGS if available.
19463 echo "$as_me:$LINENO: checking for GTHREAD" >&5
19464 echo $ECHO_N "checking for GTHREAD... $ECHO_C" >&6
19466 if test -n "$PKG_CONFIG"; then
19467 if test -n "$GTHREAD_CFLAGS"; then
19468 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
19470 if test -n "$PKG_CONFIG" && \
19471 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= \${gtkmm_min_glib_version}\"") >&5
19472 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= ${gtkmm_min_glib_version}") 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; then
19476 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= ${gtkmm_min_glib_version}" 2>/dev/null`
19484 if test -n "$PKG_CONFIG"; then
19485 if test -n "$GTHREAD_LIBS"; then
19486 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
19488 if test -n "$PKG_CONFIG" && \
19489 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= \${gtkmm_min_glib_version}\"") >&5
19490 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= ${gtkmm_min_glib_version}") 2>&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; then
19494 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= ${gtkmm_min_glib_version}" 2>/dev/null`
19505 if test $pkg_failed = yes; then
19507 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19508 _pkg_short_errors_supported=yes
19510 _pkg_short_errors_supported=no
19512 if test $_pkg_short_errors_supported = yes; then
19513 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gthread-2.0 >= ${gtkmm_min_glib_version}"`
19515 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gthread-2.0 >= ${gtkmm_min_glib_version}"`
19517 # Put the nasty error message in config.log where it belongs
19518 echo "$GTHREAD_PKG_ERRORS" >&5
19520 GTHREAD_CFLAGS=''; GTHREAD_LIBS=''
19521 elif test $pkg_failed = untried; then
19522 GTHREAD_CFLAGS=''; GTHREAD_LIBS=''
19524 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
19525 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
19526 echo "$as_me:$LINENO: result: yes" >&5
19527 echo "${ECHO_T}yes" >&6
19534 #########################################################################
19536 #########################################################################
19538 ac_cpp='$CXXCPP $CPPFLAGS'
19539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19542 if test -n "$ac_tool_prefix"; then
19543 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19547 echo "$as_me:$LINENO: checking for $ac_word" >&5
19548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19549 if test "${ac_cv_prog_CXX+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 if test -n "$CXX"; then
19553 ac_cv_prog_CXX="$CXX" # Let the user override the test.
19555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19556 for as_dir in $PATH
19559 test -z "$as_dir" && as_dir=.
19560 for ac_exec_ext in '' $ac_executable_extensions; do
19561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19562 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19571 CXX=$ac_cv_prog_CXX
19572 if test -n "$CXX"; then
19573 echo "$as_me:$LINENO: result: $CXX" >&5
19574 echo "${ECHO_T}$CXX" >&6
19576 echo "$as_me:$LINENO: result: no" >&5
19577 echo "${ECHO_T}no" >&6
19580 test -n "$CXX" && break
19583 if test -z "$CXX"; then
19585 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19587 # Extract the first word of "$ac_prog", so it can be a program name with args.
19588 set dummy $ac_prog; ac_word=$2
19589 echo "$as_me:$LINENO: checking for $ac_word" >&5
19590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19591 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 if test -n "$ac_ct_CXX"; then
19595 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19598 for as_dir in $PATH
19601 test -z "$as_dir" && as_dir=.
19602 for ac_exec_ext in '' $ac_executable_extensions; do
19603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19604 ac_cv_prog_ac_ct_CXX="$ac_prog"
19605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19613 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19614 if test -n "$ac_ct_CXX"; then
19615 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19616 echo "${ECHO_T}$ac_ct_CXX" >&6
19618 echo "$as_me:$LINENO: result: no" >&5
19619 echo "${ECHO_T}no" >&6
19622 test -n "$ac_ct_CXX" && break
19624 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
19630 # Provide some information about the compiler.
19631 echo "$as_me:$LINENO:" \
19632 "checking for C++ compiler version" >&5
19633 ac_compiler=`set X $ac_compile; echo $2`
19634 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19635 (eval $ac_compiler --version </dev/null >&5) 2>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }
19639 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19640 (eval $ac_compiler -v </dev/null >&5) 2>&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }
19644 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19645 (eval $ac_compiler -V </dev/null >&5) 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }
19650 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19651 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
19652 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 cat >conftest.$ac_ext <<_ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19673 rm -f conftest.$ac_objext
19674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19675 (eval $ac_compile) 2>conftest.er1
19677 grep -v '^ *+' conftest.er1 >conftest.err
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } &&
19682 { ac_try='test -z "$ac_cxx_werror_flag"
19683 || test ! -s conftest.err'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19695 ac_compiler_gnu=yes
19697 echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19703 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19706 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19707 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
19708 GXX=`test $ac_compiler_gnu = yes && echo yes`
19709 ac_test_CXXFLAGS=${CXXFLAGS+set}
19710 ac_save_CXXFLAGS=$CXXFLAGS
19712 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19713 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
19714 if test "${ac_cv_prog_cxx_g+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 cat >conftest.$ac_ext <<_ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19732 rm -f conftest.$ac_objext
19733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19734 (eval $ac_compile) 2>conftest.er1
19736 grep -v '^ *+' conftest.er1 >conftest.err
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } &&
19741 { ac_try='test -z "$ac_cxx_werror_flag"
19742 || test ! -s conftest.err'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; } &&
19748 { ac_try='test -s conftest.$ac_objext'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_cv_prog_cxx_g=yes
19756 echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19759 ac_cv_prog_cxx_g=no
19761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19763 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
19764 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
19765 if test "$ac_test_CXXFLAGS" = set; then
19766 CXXFLAGS=$ac_save_CXXFLAGS
19767 elif test $ac_cv_prog_cxx_g = yes; then
19768 if test "$GXX" = yes; then
19774 if test "$GXX" = yes; then
19780 for ac_declaration in \
19782 'extern "C" void std::exit (int) throw (); using std::exit;' \
19783 'extern "C" void std::exit (int); using std::exit;' \
19784 'extern "C" void exit (int) throw ();' \
19785 'extern "C" void exit (int);' \
19788 cat >conftest.$ac_ext <<_ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19795 #include <stdlib.h>
19804 rm -f conftest.$ac_objext
19805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19806 (eval $ac_compile) 2>conftest.er1
19808 grep -v '^ *+' conftest.er1 >conftest.err
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try='test -z "$ac_cxx_werror_flag"
19814 || test ! -s conftest.err'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; } &&
19820 { ac_try='test -s conftest.$ac_objext'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19849 rm -f conftest.$ac_objext
19850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19851 (eval $ac_compile) 2>conftest.er1
19853 grep -v '^ *+' conftest.er1 >conftest.err
19855 cat conftest.err >&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); } &&
19858 { ac_try='test -z "$ac_cxx_werror_flag"
19859 || test ! -s conftest.err'
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; } &&
19865 { ac_try='test -s conftest.$ac_objext'
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; }; then
19873 echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19880 if test -n "$ac_declaration"; then
19881 echo '#ifdef __cplusplus' >>confdefs.h
19882 echo $ac_declaration >>confdefs.h
19883 echo '#endif' >>confdefs.h
19887 ac_cpp='$CPP $CPPFLAGS'
19888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19892 depcc="$CXX" am_compiler_list=
19894 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19895 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19896 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19900 # We make a subdir and do the tests there. Otherwise we can end up
19901 # making bogus files that we don't know about and never remove. For
19902 # instance it was reported that on HP-UX the gcc test will end up
19903 # making a dummy file named `D' -- because `-MD' means `put the output
19906 # Copy depcomp to subdir because otherwise we won't find it if we're
19907 # using a relative directory.
19908 cp "$am_depcomp" conftest.dir
19910 # We will build objects and dependencies in a subdirectory because
19911 # it helps to detect inapplicable dependency modes. For instance
19912 # both Tru64's cc and ICC support -MD to output dependencies as a
19913 # side effect of compilation, but ICC will put the dependencies in
19914 # the current directory while Tru64 will put them in the object
19918 am_cv_CXX_dependencies_compiler_type=none
19919 if test "$am_compiler_list" = ""; then
19920 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19922 for depmode in $am_compiler_list; do
19923 # Setup a source with many dependencies, because some compilers
19924 # like to wrap large dependency lists on column 80 (with \), and
19925 # we should not choose a depcomp mode which is confused by this.
19927 # We need to recreate these files for each test, as the compiler may
19928 # overwrite some of them when testing with obscure command lines.
19929 # This happens at least with the AIX C compiler.
19931 for i in 1 2 3 4 5 6; do
19932 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19933 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19934 # Solaris 8's {/usr,}/bin/sh.
19935 touch sub/conftst$i.h
19937 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19941 # after this tag, mechanisms are not by side-effect, so they'll
19942 # only be used when explicitly requested
19943 if test "x$enable_dependency_tracking" = xyes; then
19951 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19952 # mode. It turns out that the SunPro C++ compiler does not properly
19953 # handle `-M -o', and we need to detect this.
19954 if depmode=$depmode \
19955 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19956 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19957 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19958 >/dev/null 2>conftest.err &&
19959 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19960 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19961 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19962 # icc doesn't choke on unknown options, it will just issue warnings
19963 # or remarks (even with -Werror). So we grep stderr for any message
19964 # that says an option was ignored or not supported.
19965 # When given -MP, icc 7.0 and 7.1 complain thusly:
19966 # icc: Command line warning: ignoring option '-M'; no argument required
19967 # The diagnosis changed in icc 8.0:
19968 # icc: Command line remark: option '-MP' not supported
19969 if (grep 'ignoring option' conftest.err ||
19970 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19971 am_cv_CXX_dependencies_compiler_type=$depmode
19978 rm -rf conftest.dir
19980 am_cv_CXX_dependencies_compiler_type=none
19984 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19985 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19986 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19991 test "x$enable_dependency_tracking" != xno \
19992 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19993 am__fastdepCXX_TRUE=
19994 am__fastdepCXX_FALSE='#'
19996 am__fastdepCXX_TRUE='#'
19997 am__fastdepCXX_FALSE=
20002 # Check for the SUN Forte compiler, and define GLIBMM_COMPILER_SUN_FORTE in the header.
20003 echo "$as_me:$LINENO: checking whether we are using SUN CC compiler" >&5
20004 echo $ECHO_N "checking whether we are using SUN CC compiler... $ECHO_C" >&6
20005 if test "${ac_cv_prog_sun_cxx+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 if { ac_try='${CXX-g++} -V 2>&1'
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } | egrep "Sun WorkShop" >/dev/null 2>&1; then
20014 ac_cv_prog_sun_cxx=yes
20016 ac_cv_prog_sun_cxx=no
20020 echo "$as_me:$LINENO: result: $ac_cv_prog_sun_cxx" >&5
20021 echo "${ECHO_T}$ac_cv_prog_sun_cxx" >&6
20023 if test "x${ac_cv_prog_sun_cxx}" = "xyes"; then
20026 cat >>confdefs.h <<\_ACEOF
20027 #define GLIBMM_COMPILER_SUN_FORTE 1
20034 # Ensure MSVC-compatible struct packing convention is used when
20035 # compiling for Win32 with gcc.
20036 # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
20037 # gcc2 uses "-fnative-struct".
20038 if test x"$os_win32" = xyes; then
20039 if test x"$GCC" = xyes -a x"$GXX" = xyes; then
20041 echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
20042 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
20043 if test -z "$ac_cv_prog_CC"; then
20046 our_gcc="$ac_cv_prog_CC"
20048 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
20050 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
20051 msnative_struct='-fnative-struct'
20055 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
20056 msnative_struct='-mms-bitfields'
20060 if test x"$msnative_struct" = x ; then
20061 echo "$as_me:$LINENO: result: no way" >&5
20062 echo "${ECHO_T}no way" >&6
20063 { echo "$as_me:$LINENO: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
20064 echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
20066 CXXFLAGS="$CXXFLAGS $msnative_struct"
20067 echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
20068 echo "${ECHO_T}${msnative_struct}" >&6
20074 ac_cpp='$CXXCPP $CPPFLAGS'
20075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20081 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20082 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20083 cat >conftest.$ac_ext <<_ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20104 rm -f conftest.$ac_objext
20105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20106 (eval $ac_compile) 2>conftest.er1
20108 grep -v '^ *+' conftest.er1 >conftest.err
20110 cat conftest.err >&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } &&
20113 { ac_try='test -z "$ac_cxx_werror_flag"
20114 || test ! -s conftest.err'
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; } &&
20120 { ac_try='test -s conftest.$ac_objext'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; }; then
20128 echo "$as_me:$LINENO: result: $ac_cxx_bool" >&5
20129 echo "${ECHO_T}$ac_cxx_bool" >&6
20133 echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20138 echo "$as_me:$LINENO: result: $ac_cxx_bool" >&5
20139 echo "${ECHO_T}$ac_cxx_bool" >&6
20143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20146 echo "$as_me:$LINENO: checking if C++ compiler supports namespaces" >&5
20147 echo $ECHO_N "checking if C++ compiler supports namespaces... $ECHO_C" >&6
20148 cat >conftest.$ac_ext <<_ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h. */
20155 namespace Foo { struct A {}; }
20156 using namespace Foo;
20169 rm -f conftest.$ac_objext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20171 (eval $ac_compile) 2>conftest.er1
20173 grep -v '^ *+' conftest.er1 >conftest.err
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } &&
20178 { ac_try='test -z "$ac_cxx_werror_flag"
20179 || test ! -s conftest.err'
20180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181 (eval $ac_try) 2>&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; } &&
20185 { ac_try='test -s conftest.$ac_objext'
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
20192 ac_cxx_namespaces=yes
20193 echo "$as_me:$LINENO: result: $ac_cxx_namespaces" >&5
20194 echo "${ECHO_T}$ac_cxx_namespaces" >&6
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20202 ac_cxx_namespaces=no
20203 echo "$as_me:$LINENO: result: $ac_cxx_namespaces" >&5
20204 echo "${ECHO_T}$ac_cxx_namespaces" >&6
20208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20211 echo "$as_me:$LINENO: checking if C++ compiler supports mutable" >&5
20212 echo $ECHO_N "checking if C++ compiler supports mutable... $ECHO_C" >&6
20213 cat >conftest.$ac_ext <<_ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20223 void foo() const { c=0; }
20235 rm -f conftest.$ac_objext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20237 (eval $ac_compile) 2>conftest.er1
20239 grep -v '^ *+' conftest.er1 >conftest.err
20241 cat conftest.err >&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } &&
20244 { ac_try='test -z "$ac_cxx_werror_flag"
20245 || test ! -s conftest.err'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; } &&
20251 { ac_try='test -s conftest.$ac_objext'
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; }; then
20259 echo "$as_me:$LINENO: result: $ac_cxx_mutable" >&5
20260 echo "${ECHO_T}$ac_cxx_mutable" >&6
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20269 echo "$as_me:$LINENO: result: $ac_cxx_mutable" >&5
20270 echo "${ECHO_T}$ac_cxx_mutable" >&6
20274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20277 echo "$as_me:$LINENO: checking if C++ environment provides all required features" >&5
20278 echo $ECHO_N "checking if C++ environment provides all required features... $ECHO_C" >&6
20279 if test "x$config_error" = xyes ; then
20280 echo "$as_me:$LINENO: result: no" >&5
20281 echo "${ECHO_T}no" >&6
20282 { { echo "$as_me:$LINENO: error: Your compiler is not powerful enough to compile gtkmm. If it should be, see config.log for more information of why it failed." >&5
20283 echo "$as_me: error: Your compiler is not powerful enough to compile gtkmm. If it should be, see config.log for more information of why it failed." >&2;}
20284 { (exit 1); exit 1; }; }
20286 echo "$as_me:$LINENO: result: yes" >&5
20287 echo "${ECHO_T}yes" >&6
20290 echo "$as_me:$LINENO: checking whether C++ library symbols are declared in namespace std" >&5
20291 echo $ECHO_N "checking whether C++ library symbols are declared in namespace std... $ECHO_C" >&6
20292 if test "${gtkmm_cv_cxx_has_namespace_std+set}" = set; then
20293 echo $ECHO_N "(cached) $ECHO_C" >&6
20296 cat >conftest.$ac_ext <<_ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20303 #include <algorithm>
20304 #include <iterator>
20305 #include <iostream>
20315 using std::bidirectional_iterator_tag;
20317 using std::istream;
20324 rm -f conftest.$ac_objext
20325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20326 (eval $ac_compile) 2>conftest.er1
20328 grep -v '^ *+' conftest.er1 >conftest.err
20330 cat conftest.err >&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } &&
20333 { ac_try='test -z "$ac_cxx_werror_flag"
20334 || test ! -s conftest.err'
20335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336 (eval $ac_try) 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; } &&
20340 { ac_try='test -s conftest.$ac_objext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 gtkmm_cv_cxx_has_namespace_std="yes"
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 gtkmm_cv_cxx_has_namespace_std="no"
20354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20357 echo "$as_me:$LINENO: result: $gtkmm_cv_cxx_has_namespace_std" >&5
20358 echo "${ECHO_T}$gtkmm_cv_cxx_has_namespace_std" >&6
20360 if test "x${gtkmm_cv_cxx_has_namespace_std}" = "xyes"; then
20363 cat >>confdefs.h <<\_ACEOF
20364 #define GLIBMM_HAVE_NAMESPACE_STD 1
20373 echo "$as_me:$LINENO: checking whether the C++ library supports std::iterator_traits" >&5
20374 echo $ECHO_N "checking whether the C++ library supports std::iterator_traits... $ECHO_C" >&6
20375 if test "${gtkmm_cv_cxx_has_std_iterator_traits+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20379 cat >conftest.$ac_ext <<_ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20386 #include <iterator>
20387 #ifdef GLIBMM_HAVE_NAMESPACE_STD
20388 using namespace std;
20395 typedef iterator_traits<char*>::value_type ValueType;
20401 rm -f conftest.$ac_objext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403 (eval $ac_compile) 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_cxx_werror_flag"
20411 || test ! -s conftest.err'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; } &&
20417 { ac_try='test -s conftest.$ac_objext'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
20423 gtkmm_cv_cxx_has_std_iterator_traits="yes"
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 gtkmm_cv_cxx_has_std_iterator_traits="no"
20431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20434 echo "$as_me:$LINENO: result: $gtkmm_cv_cxx_has_std_iterator_traits" >&5
20435 echo "${ECHO_T}$gtkmm_cv_cxx_has_std_iterator_traits" >&6
20437 if test "x${gtkmm_cv_cxx_has_std_iterator_traits}" = "xyes"; then
20440 cat >>confdefs.h <<\_ACEOF
20441 #define GLIBMM_HAVE_STD_ITERATOR_TRAITS 1
20450 echo "$as_me:$LINENO: checking for non-standard Sun libCstd reverse_iterator" >&5
20451 echo $ECHO_N "checking for non-standard Sun libCstd reverse_iterator... $ECHO_C" >&6
20452 if test "${gtkmm_cv_cxx_has_sun_reverse_iterator+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20456 cat >conftest.$ac_ext <<_ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h. */
20463 #include <iterator>
20464 #ifdef GLIBMM_HAVE_NAMESPACE_STD
20465 using namespace std;
20472 typedef reverse_iterator<char*,random_access_iterator_tag,char,char&,char*,int> ReverseIter;
20478 rm -f conftest.$ac_objext
20479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20480 (eval $ac_compile) 2>conftest.er1
20482 grep -v '^ *+' conftest.er1 >conftest.err
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } &&
20487 { ac_try='test -z "$ac_cxx_werror_flag"
20488 || test ! -s conftest.err'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; } &&
20494 { ac_try='test -s conftest.$ac_objext'
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; }; then
20500 gtkmm_cv_cxx_has_sun_reverse_iterator="yes"
20502 echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20505 gtkmm_cv_cxx_has_sun_reverse_iterator="no"
20508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20511 echo "$as_me:$LINENO: result: $gtkmm_cv_cxx_has_sun_reverse_iterator" >&5
20512 echo "${ECHO_T}$gtkmm_cv_cxx_has_sun_reverse_iterator" >&6
20514 if test "x${gtkmm_cv_cxx_has_sun_reverse_iterator}" = "xyes"; then
20517 cat >>confdefs.h <<\_ACEOF
20518 #define GLIBMM_HAVE_SUN_REVERSE_ITERATOR 1
20527 echo "$as_me:$LINENO: checking whether STL containers have templated sequence constructors" >&5
20528 echo $ECHO_N "checking whether STL containers have templated sequence constructors... $ECHO_C" >&6
20529 if test "${gtkmm_cv_cxx_has_template_sequence_ctors+set}" = set; then
20530 echo $ECHO_N "(cached) $ECHO_C" >&6
20533 cat >conftest.$ac_ext <<_ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20543 #ifdef GLIBMM_HAVE_NAMESPACE_STD
20544 using namespace std;
20551 const int array[8] = { 0, };
20552 vector<int> test_vector (&array[0], &array[8]);
20553 deque<short> test_deque (test_vector.begin(), test_vector.end());
20554 list<long> test_list (test_deque.begin(), test_deque.end());
20555 test_vector.assign(test_list.begin(), test_list.end());
20561 rm -f conftest.$ac_objext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563 (eval $ac_compile) 2>conftest.er1
20565 grep -v '^ *+' conftest.er1 >conftest.err
20567 cat conftest.err >&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } &&
20570 { ac_try='test -z "$ac_cxx_werror_flag"
20571 || test ! -s conftest.err'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; } &&
20577 { ac_try='test -s conftest.$ac_objext'
20578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579 (eval $ac_try) 2>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20583 gtkmm_cv_cxx_has_template_sequence_ctors="yes"
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 gtkmm_cv_cxx_has_template_sequence_ctors="no"
20591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20594 echo "$as_me:$LINENO: result: $gtkmm_cv_cxx_has_template_sequence_ctors" >&5
20595 echo "${ECHO_T}$gtkmm_cv_cxx_has_template_sequence_ctors" >&6
20597 if test "x${gtkmm_cv_cxx_has_template_sequence_ctors}" = "xyes"; then
20600 cat >>confdefs.h <<\_ACEOF
20601 #define GLIBMM_HAVE_TEMPLATE_SEQUENCE_CTORS 1
20608 echo "$as_me:$LINENO: checking if C++ compiler allows member functions to refer to member templates" >&5
20609 echo $ECHO_N "checking if C++ compiler allows member functions to refer to member templates... $ECHO_C" >&6
20610 cat >conftest.$ac_ext <<_ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20618 template <class C> inline
20623 template <class C> inline
20628 void neitherabug();
20632 void (foo::*func)();
20633 func = &foo::doit<int>;
20637 void bar::neitherabug() {
20638 void (foo::*func)();
20639 func = &foo::doit<int>;
20643 void foo::thebug() {
20644 void (foo::*func)();
20645 func = &foo::doit<int>; //Compiler bugs usually show here.
20657 rm -f conftest.$ac_objext
20658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20659 (eval $ac_compile) 2>conftest.er1
20661 grep -v '^ *+' conftest.er1 >conftest.err
20663 cat conftest.err >&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); } &&
20666 { ac_try='test -z "$ac_cxx_werror_flag"
20667 || test ! -s conftest.err'
20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669 (eval $ac_try) 2>&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; } &&
20673 { ac_try='test -s conftest.$ac_objext'
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675 (eval $ac_try) 2>&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; }; then
20680 glibmm_cxx_member_functions_member_templates=yes
20682 cat >>confdefs.h <<\_ACEOF
20683 #define GLIBMM_MEMBER_FUNCTIONS_MEMBER_TEMPLATES 1
20686 echo "$as_me:$LINENO: result: $glibmm_cxx_member_functions_member_templates" >&5
20687 echo "${ECHO_T}$glibmm_cxx_member_functions_member_templates" >&6
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20694 glibmm_cxx_member_functions_member_templates=no
20695 cat >>confdefs.h <<\_ACEOF
20696 #define GLIBMM_MEMBER_FUNCTIONS_MEMBER_TEMPLATES 0
20699 echo "$as_me:$LINENO: result: $glibmm_cxx_member_functions_member_templates" >&5
20700 echo "${ECHO_T}$glibmm_cxx_member_functions_member_templates" >&6
20703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20708 echo "$as_me:$LINENO: checking whether the compiler finds it ambiguous to have both const and non-const template specializations" >&5
20709 echo $ECHO_N "checking whether the compiler finds it ambiguous to have both const and non-const template specializations... $ECHO_C" >&6
20710 if test "${glibmm_cv_cxx_can_disambiguate_const_template_specializations+set}" = set; then
20711 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20721 #include <iostream>
20723 template <class T> class Foo {};
20725 template <typename T> class Traits {
20727 const char* whoami() {
20728 return "generic template";
20732 template <typename T> class Traits<Foo<T> > {
20734 const char* whoami() {
20735 return "partial specialization for Foo<T>";
20739 template <typename T> class Traits<Foo<const T> > {
20741 const char* whoami() {
20742 return "partial specialization for Foo<const T>";
20752 Traits<Foo<int> > fit;
20753 Traits<Foo<const int> > cfit;
20755 std::cout << "Traits<int> --> "
20756 << it.whoami() << std::endl;
20757 std::cout << "Traits<Foo<int>> --> "
20758 << fit.whoami() << std::endl;
20759 std::cout << "Traits<Foo<const int >> --> "
20760 << cfit.whoami() << std::endl;
20766 rm -f conftest.$ac_objext
20767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20768 (eval $ac_compile) 2>conftest.er1
20770 grep -v '^ *+' conftest.er1 >conftest.err
20772 cat conftest.err >&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } &&
20775 { ac_try='test -z "$ac_cxx_werror_flag"
20776 || test ! -s conftest.err'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; } &&
20782 { ac_try='test -s conftest.$ac_objext'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20788 glibmm_cv_cxx_can_disambiguate_const_template_specializations="yes"
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20793 glibmm_cv_cxx_can_disambiguate_const_template_specializations="no"
20796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20799 echo "$as_me:$LINENO: result: $glibmm_cv_cxx_can_disambiguate_const_template_specializations" >&5
20800 echo "${ECHO_T}$glibmm_cv_cxx_can_disambiguate_const_template_specializations" >&6
20802 if test "x${glibmm_cv_cxx_can_disambiguate_const_template_specializations}" = "xyes"; then
20805 cat >>confdefs.h <<\_ACEOF
20806 #define GLIBMM_HAVE_DISAMBIGUOUS_CONST_TEMPLATE_SPECIALIZATIONS 1
20813 echo "$as_me:$LINENO: checking whether the compiler allows us to define a template that uses dynamic_cast<> with an object whose type is not yet defined" >&5
20814 echo $ECHO_N "checking whether the compiler allows us to define a template that uses dynamic_cast<> with an object whose type is not yet defined... $ECHO_C" >&6
20815 if test "${glibmm_cv_cxx_can_use_dynamic_cast_in_unused_template_without_definition+set}" = set; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 cat >conftest.$ac_ext <<_ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20828 SomeClass* some_function();
20833 static bool do_something()
20835 //This does not compile, with the MipsPro (IRIX) compiler
20836 //even if we don't use this template at all.
20837 //(We would use it later, after we have defined the type).
20838 return dynamic_cast<T*>(some_function());
20853 rm -f conftest.$ac_objext
20854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20855 (eval $ac_compile) 2>conftest.er1
20857 grep -v '^ *+' conftest.er1 >conftest.err
20859 cat conftest.err >&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } &&
20862 { ac_try='test -z "$ac_cxx_werror_flag"
20863 || test ! -s conftest.err'
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 (eval $ac_try) 2>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; } &&
20869 { ac_try='test -s conftest.$ac_objext'
20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871 (eval $ac_try) 2>&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; }; then
20875 glibmm_cv_cxx_can_use_dynamic_cast_in_unused_template_without_definition="yes"
20877 echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20880 glibmm_cv_cxx_can_use_dynamic_cast_in_unused_template_without_definition="no"
20883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20886 echo "$as_me:$LINENO: result: $glibmm_cv_cxx_can_use_dynamic_cast_in_unused_template_without_definition" >&5
20887 echo "${ECHO_T}$glibmm_cv_cxx_can_use_dynamic_cast_in_unused_template_without_definition" >&6
20889 if test "x${glibmm_cv_cxx_can_use_dynamic_cast_in_unused_template_without_definition}" = "xyes"; then
20892 cat >>confdefs.h <<\_ACEOF
20893 #define GLIBMM_CAN_USE_DYNAMIC_CAST_IN_UNUSED_TEMPLATE_WITHOUT_DEFINITION 1
20900 echo "$as_me:$LINENO: checking whether the the compilerallows us to use a non-extern \"C\" function for an extern \"C\" function pointer." >&5
20901 echo $ECHO_N "checking whether the the compilerallows us to use a non-extern \"C\" function for an extern \"C\" function pointer.... $ECHO_C" >&6
20902 if test "${glibmm_cv_cxx_can_assign_non_extern_c_functions_to_extern_c_callbacks+set}" = set; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20906 cat >conftest.$ac_ext <<_ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20917 void (*callback) (int);
20922 void somefunction(int)
20931 somestruct something;
20932 something.callback = &somefunction;
20938 rm -f conftest.$ac_objext
20939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20940 (eval $ac_compile) 2>conftest.er1
20942 grep -v '^ *+' conftest.er1 >conftest.err
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } &&
20947 { ac_try='test -z "$ac_cxx_werror_flag"
20948 || test ! -s conftest.err'
20949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950 (eval $ac_try) 2>&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; } &&
20954 { ac_try='test -s conftest.$ac_objext'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; }; then
20960 glibmm_cv_cxx_can_assign_non_extern_c_functions_to_extern_c_callbacks="yes"
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20965 glibmm_cv_cxx_can_assign_non_extern_c_functions_to_extern_c_callbacks="no"
20968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20971 echo "$as_me:$LINENO: result: $glibmm_cv_cxx_can_assign_non_extern_c_functions_to_extern_c_callbacks" >&5
20972 echo "${ECHO_T}$glibmm_cv_cxx_can_assign_non_extern_c_functions_to_extern_c_callbacks" >&6
20974 if test "x${glibmm_cv_cxx_can_assign_non_extern_c_functions_to_extern_c_callbacks}" = "xyes"; then
20977 cat >>confdefs.h <<\_ACEOF
20978 #define GLIBMM_CAN_ASSIGN_NON_EXTERN_C_FUNCTIONS_TO_EXTERN_C_CALLBACKS 1
20985 echo "$as_me:$LINENO: checking whether the compiler uses namespace declarations inside extern \"C\" blocks." >&5
20986 echo $ECHO_N "checking whether the compiler uses namespace declarations inside extern \"C\" blocks.... $ECHO_C" >&6
20987 if test "${glibmm_cv_cxx_can_use_namespaces_inside_externc+set}" = set; then
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
20991 cat >conftest.$ac_ext <<_ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
21004 void do_something();
21014 friend void do_something();
21017 void do_something()
21019 Something something;
21037 rm -f conftest.$ac_objext
21038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21039 (eval $ac_compile) 2>conftest.er1
21041 grep -v '^ *+' conftest.er1 >conftest.err
21043 cat conftest.err >&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } &&
21046 { ac_try='test -z "$ac_cxx_werror_flag"
21047 || test ! -s conftest.err'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; } &&
21053 { ac_try='test -s conftest.$ac_objext'
21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; }; then
21059 glibmm_cv_cxx_can_use_namespaces_inside_externc="yes"
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21064 glibmm_cv_cxx_can_use_namespaces_inside_externc="no"
21067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21070 echo "$as_me:$LINENO: result: $glibmm_cv_cxx_can_use_namespaces_inside_externc" >&5
21071 echo "${ECHO_T}$glibmm_cv_cxx_can_use_namespaces_inside_externc" >&6
21073 if test "x${glibmm_cv_cxx_can_use_namespaces_inside_externc}" = "xyes"; then
21076 cat >>confdefs.h <<\_ACEOF
21077 #define GLIBMM_CAN_USE_NAMESPACES_INSIDE_EXTERNC 1
21086 echo "$as_me:$LINENO: checking whether the compiler allows a static member variable to be initialized inline to std::string::npos" >&5
21087 echo $ECHO_N "checking whether the compiler allows a static member variable to be initialized inline to std::string::npos... $ECHO_C" >&6
21088 if test "${gtkmm_cv_cxx_has_allows_static_inline_npos+set}" = set; then
21089 echo $ECHO_N "(cached) $ECHO_C" >&6
21092 cat >conftest.$ac_ext <<_ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21100 #include <iostream>
21105 //The MipsPro compiler (IRIX) says "The indicated constant value is not known",
21106 //so we need to initalize the static member data elsewhere.
21107 static const std::string::size_type ustringnpos = std::string::npos;
21114 std::cout << "npos=" << ustringtest::ustringnpos << std::endl;
21120 rm -f conftest.$ac_objext
21121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21122 (eval $ac_compile) 2>conftest.er1
21124 grep -v '^ *+' conftest.er1 >conftest.err
21126 cat conftest.err >&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } &&
21129 { ac_try='test -z "$ac_cxx_werror_flag"
21130 || test ! -s conftest.err'
21131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21132 (eval $ac_try) 2>&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; } &&
21136 { ac_try='test -s conftest.$ac_objext'
21137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21138 (eval $ac_try) 2>&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); }; }; then
21142 gtkmm_cv_cxx_has_allows_static_inline_npos="yes"
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 gtkmm_cv_cxx_has_allows_static_inline_npos="no"
21150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21153 echo "$as_me:$LINENO: result: $gtkmm_cv_cxx_has_allows_static_inline_npos" >&5
21154 echo "${ECHO_T}$gtkmm_cv_cxx_has_allows_static_inline_npos" >&6
21156 if test "x${gtkmm_cv_cxx_has_allows_static_inline_npos}" = "xyes"; then
21159 cat >>confdefs.h <<\_ACEOF
21160 #define GLIBMM_HAVE_ALLOWS_STATIC_INLINE_NPOS 1
21168 # Create a list of input directories for Doxygen.
21170 GTKMM_DOXYGEN_INPUT=
21171 gtkmm_srcdir=`cd "$srcdir" >/dev/null && pwd`
21174 for gtkmm_sublib in $gtkmm_list
21176 GTKMM_DOXYGEN_INPUT="$GTKMM_DOXYGEN_INPUT ${gtkmm_srcdir}/${gtkmm_sublib}/${gtkmm_sublib}mm/"
21182 # Check whether to build the full docs into the generated source.
21183 # This will be much slower.
21187 echo "$as_me:$LINENO: checking whether to merge C reference docs into generated headers" >&5
21188 echo $ECHO_N "checking whether to merge C reference docs into generated headers... $ECHO_C" >&6
21190 # Check whether --enable-fulldocs or --disable-fulldocs was given.
21191 if test "${enable_fulldocs+set}" = set; then
21192 enableval="$enable_fulldocs"
21193 gtkmm_enable_fulldocs=$enableval
21195 gtkmm_enable_fulldocs=$USE_MAINTAINER_MODE
21198 echo "$as_me:$LINENO: result: ${gtkmm_enable_fulldocs}" >&5
21199 echo "${ECHO_T}${gtkmm_enable_fulldocs}" >&6
21201 GTKMMPROC_MERGECDOCS=
21203 if test "x$gtkmm_enable_fulldocs" = xyes; then
21205 GTKMMPROC_MERGECDOCS='--mergecdocs'
21207 if test "x$USE_MAINTAINER_MODE" != xyes; then
21209 { echo "$as_me:$LINENO: WARNING:
21210 *** --enable-fulldocs only works if --enable-maintainer-mode is also set.
21211 *** gtkmm source tarballs should be packaged with --enable-fulldocs, so
21212 *** usually you don't need this option unless you got gtkmm from CVS.
21214 echo "$as_me: WARNING:
21215 *** --enable-fulldocs only works if --enable-maintainer-mode is also set.
21216 *** gtkmm source tarballs should be packaged with --enable-fulldocs, so
21217 *** usually you don't need this option unless you got gtkmm from CVS.
21222 echo "$as_me:$LINENO: checking whether the XML::Parser module is available" >&5
21223 echo $ECHO_N "checking whether the XML::Parser module is available... $ECHO_C" >&6
21224 if test "${gtkmm_cv_have_xml_parser+set}" = set; then
21225 echo $ECHO_N "(cached) $ECHO_C" >&6
21228 gtkmm_cv_have_xml_parser=no
21229 "$PERL_PATH" -e 'use strict; use XML::Parser; exit 0;' >&5 2>&5 && gtkmm_cv_have_xml_parser=yes
21232 echo "$as_me:$LINENO: result: $gtkmm_cv_have_xml_parser" >&5
21233 echo "${ECHO_T}$gtkmm_cv_have_xml_parser" >&6
21235 if test "x$gtkmm_cv_have_xml_parser" = xno; then
21237 { { echo "$as_me:$LINENO: error:
21238 *** The Perl module XML::Parser is required to build $PACKAGE from CVS.
21240 echo "$as_me: error:
21241 *** The Perl module XML::Parser is required to build $PACKAGE from CVS.
21243 { (exit 1); exit 1; }; }
21252 # Check whether --enable-debug-refcounting was given.
21254 # Check whether --enable-debug-refcounting or --disable-debug-refcounting was given.
21255 if test "${enable_debug_refcounting+set}" = set; then
21256 enableval="$enable_debug_refcounting"
21257 glibmm_debug_refcounting="$enableval"
21259 glibmm_debug_refcounting='no'
21262 if test "x$glibmm_debug_refcounting" = "xyes"; then
21265 cat >>confdefs.h <<\_ACEOF
21266 #define GLIBMM_DEBUG_REFCOUNTING 1
21273 # Evaluate the --enable-warnings=level option.
21275 # Check whether --enable-warnings or --disable-warnings was given.
21276 if test "${enable_warnings+set}" = set; then
21277 enableval="$enable_warnings"
21278 gtkmm_enable_warnings="$enableval"
21280 gtkmm_enable_warnings='minimum'
21283 echo "$as_me:$LINENO: checking for compiler warning flags to use" >&5
21284 echo $ECHO_N "checking for compiler warning flags to use... $ECHO_C" >&6
21286 gtkmm_warning_flags=''
21288 case "$gtkmm_enable_warnings" in
21289 minimum|yes) gtkmm_warning_flags='-Wall -Wno-long-long';;
21290 maximum) gtkmm_warning_flags='-pedantic -W -Wall -Wno-long-long';;
21291 hardcore) gtkmm_warning_flags='-pedantic -W -Wall -Wno-long-long -Werror';;
21296 if test "x$gtkmm_warning_flags" != "x"
21298 echo 'int foo() { return 0; }' > conftest.cc
21300 for flag in $gtkmm_warning_flags
21302 # Test whether the compiler accepts the flag. GCC doesn't bail
21303 # out when given an unsupported flag but prints a warning, so
21304 # check the compiler output instead.
21305 gtkmm_cxx_out="`$CXX $flag -c conftest.cc 2>&1`"
21306 rm -f conftest.$OBJEXT
21307 test "x${gtkmm_cxx_out}" = "x" && \
21308 gtkmm_use_flags="${gtkmm_use_flags:+$gtkmm_use_flags }$flag"
21315 if test "x$gtkmm_use_flags" != "x"
21317 for flag in $gtkmm_use_flags
21319 case " $CXXFLAGS " in
21320 *" $flag "*) ;; # don't add flags twice
21321 *) CXXFLAGS="${CXXFLAGS:+$CXXFLAGS }$flag";;
21325 gtkmm_use_flags='none'
21328 echo "$as_me:$LINENO: result: $gtkmm_use_flags" >&5
21329 echo "${ECHO_T}$gtkmm_use_flags" >&6
21332 # Add an --enable-use-deprecations configure option:
21333 # Check whether --enable-deprecations or --disable-deprecations was given.
21334 if test "${enable_deprecations+set}" = set; then
21335 enableval="$enable_deprecations"
21338 enable_deprecations=no
21341 if test "x$enable_use_deprecations" = "xyes"; then
21342 DISABLE_DEPRECATED_CFLAGS="-DG_DISABLE_DEPRECATED"
21346 #Offer the ability to omit some API from the library,
21347 #to reduce the code size:
21349 # Check whether --enable-deprecated-api or --disable-deprecated-api was given.
21350 if test "${enable_deprecated_api+set}" = set; then
21351 enableval="$enable_deprecated_api"
21352 glibmm_enable_api_deprecated="$enableval"
21354 glibmm_enable_api_deprecated='yes'
21357 if test "x$glibmm_enable_api_deprecated" = "xyes"; then
21359 { echo "$as_me:$LINENO: WARNING: Deprecated API will be built, for backwards-compatibility." >&5
21360 echo "$as_me: WARNING: Deprecated API will be built, for backwards-compatibility." >&2;}
21364 { echo "$as_me:$LINENO: WARNING: Deprecated API will not be built, breaking backwards-compatibility. Do not use this build for distribution packages." >&5
21365 echo "$as_me: WARNING: Deprecated API will not be built, breaking backwards-compatibility. Do not use this build for distribution packages." >&2;}
21366 DISABLE_DEPRECATED_API_CFLAGS="-DGLIBMM_DISABLE_DEPRECATED"
21372 # Check whether --enable-api-exceptions or --disable-api-exceptions was given.
21373 if test "${enable_api_exceptions+set}" = set; then
21374 enableval="$enable_api_exceptions"
21375 glibmm_enable_api_exceptions="$enableval"
21377 glibmm_enable_api_exceptions='yes'
21380 if test "x$glibmm_enable_api_exceptions" = "xyes"; then
21383 cat >>confdefs.h <<\_ACEOF
21384 #define GLIBMM_EXCEPTIONS_ENABLED 1
21391 # Check whether --enable-api-properties or --disable-api-properties was given.
21392 if test "${enable_api_properties+set}" = set; then
21393 enableval="$enable_api_properties"
21394 glibmm_enable_api_properties="$enableval"
21396 glibmm_enable_api_properties='yes'
21399 if test "x$glibmm_enable_api_properties" = "xyes"; then
21402 cat >>confdefs.h <<\_ACEOF
21403 #define GLIBMM_PROPERTIES_ENABLED 1
21410 # Check whether --enable-api-vfuncs or --disable-api-vfuncs was given.
21411 if test "${enable_api_vfuncs+set}" = set; then
21412 enableval="$enable_api_vfuncs"
21413 glibmm_enable_api_vfuncs="$enableval"
21415 glibmm_enable_api_vfuncs='yes'
21418 if test "x$glibmm_enable_api_vfuncs" = "xyes"; then
21421 cat >>confdefs.h <<\_ACEOF
21422 #define GLIBMM_VFUNCS_ENABLED 1
21429 # Offer the ability to omit some API from the library,
21430 # to reduce the code size:
21432 # Check whether --enable-api-default-signal-handlers or --disable-api-default-signal-handlers was given.
21433 if test "${enable_api_default_signal_handlers+set}" = set; then
21434 enableval="$enable_api_default_signal_handlers"
21435 glibmm_enable_api_default_signal_handlers="$enableval"
21437 glibmm_enable_api_default_signal_handlers='yes'
21440 if test "x$glibmm_enable_api_default_signal_handlers" = "xyes"; then
21443 cat >>confdefs.h <<\_ACEOF
21444 #define GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 1
21451 # Dummy conditional just to make automake-1.4 happy.
21452 # We need an always-false condition in docs/Makefile.am.
21457 GTKMM_FALSE_FALSE='#'
21459 GTKMM_FALSE_TRUE='#'
21464 # HACK: Assign a dummy in order to prevent execution of autoheader by the
21465 # maintainer-mode rules. That would fail since we aren't using autoheader.
21469 ac_config_files="$ac_config_files Makefile glib/Makefile glib/glibmm-2.4.pc glib/src/Makefile glib/glibmm/Makefile glib/glibmm/private/Makefile tools/Makefile tools/gmmproc tools/generate_wrap_init.pl tools/m4/Makefile tools/pm/Makefile tools/extra_defs_gen/Makefile"
21472 ac_config_files="$ac_config_files tests/Makefile tests/glibmm_value/Makefile examples/Makefile examples/markup/Makefile examples/options/Makefile examples/thread/Makefile examples/iochannel_stream/Makefile examples/child_watch/Makefile scripts/Makefile docs/Makefile docs/images/Makefile docs/reference/Makefile docs/reference/Doxyfile docs/reference/beautify_docs.pl docs/internal/Makefile"
21475 ac_config_files="$ac_config_files MSVC_Net2003/Makefile MSVC_Net2003/gendef/Makefile MSVC_Net2003/glibmm/Makefile MSVC_Net2003/glibmm/glibmm.rc MSVC_Net2003/examples/Makefile MSVC_Net2003/examples/dispatcher/Makefile MSVC_Net2003/examples/dispatcher2/Makefile MSVC_Net2003/examples/markup/Makefile MSVC_Net2003/examples/options/Makefile MSVC_Net2003/examples/thread/Makefile MSVC_Net2003/examples/thread_pool/Makefile MSVC_Net2003/tests/Makefile MSVC_Net2003/tests/glibmm_value/Makefile"
21478 cat >confcache <<\_ACEOF
21479 # This file is a shell script that caches the results of configure
21480 # tests run on this system so they can be shared between configure
21481 # scripts and configure runs, see configure's option --config-cache.
21482 # It is not useful on other systems. If it contains results you don't
21483 # want to keep, you may remove or edit it.
21485 # config.status only pays attention to the cache file if you give it
21486 # the --recheck option to rerun configure.
21488 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21489 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21490 # following values.
21494 # The following way of writing the cache mishandles newlines in values,
21495 # but we know of no workaround that is simple, portable, and efficient.
21496 # So, don't put newlines in cache variables' values.
21497 # Ultrix sh set writes to stderr and can't be redirected directly,
21498 # and sets the high bit in the cache file unless we assign to the vars.
21501 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21503 # `set' does not quote correctly, so add quotes (double-quote
21504 # substitution turns \\\\ into \\, and sed turns \\ into \).
21507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21510 # `set' quotes correctly as required by POSIX, so do not add quotes.
21512 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21519 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21521 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21523 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21524 if test -w $cache_file; then
21525 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21526 cat confcache >$cache_file
21528 echo "not updating unwritable cache $cache_file"
21533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21534 # Let make expand exec_prefix.
21535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21537 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21538 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21539 # trailing colons and then remove the whole line if VPATH becomes empty
21540 # (actually we leave an empty line to preserve line numbers).
21541 if test "x$srcdir" = x.; then
21542 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21543 s/:*\$(srcdir):*/:/;
21544 s/:*\${srcdir}:*/:/;
21546 s/^\([^=]*=[ ]*\):*/\1/;
21552 DEFS=-DHAVE_CONFIG_H
21556 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21557 # 1. Remove the extension, and $U if already installed.
21558 ac_i=`echo "$ac_i" |
21559 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21561 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21562 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21564 LIBOBJS=$ac_libobjs
21566 LTLIBOBJS=$ac_ltlibobjs
21569 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21570 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21571 Usually this means the macro was only invoked conditionally." >&5
21572 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21573 Usually this means the macro was only invoked conditionally." >&2;}
21574 { (exit 1); exit 1; }; }
21576 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21577 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21578 Usually this means the macro was only invoked conditionally." >&5
21579 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21580 Usually this means the macro was only invoked conditionally." >&2;}
21581 { (exit 1); exit 1; }; }
21583 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21584 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21585 Usually this means the macro was only invoked conditionally." >&5
21586 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21587 Usually this means the macro was only invoked conditionally." >&2;}
21588 { (exit 1); exit 1; }; }
21590 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
21591 { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
21592 Usually this means the macro was only invoked conditionally." >&5
21593 echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
21594 Usually this means the macro was only invoked conditionally." >&2;}
21595 { (exit 1); exit 1; }; }
21597 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21598 { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
21599 Usually this means the macro was only invoked conditionally." >&5
21600 echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
21601 Usually this means the macro was only invoked conditionally." >&2;}
21602 { (exit 1); exit 1; }; }
21604 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21605 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21606 Usually this means the macro was only invoked conditionally." >&5
21607 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21608 Usually this means the macro was only invoked conditionally." >&2;}
21609 { (exit 1); exit 1; }; }
21611 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21612 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21613 Usually this means the macro was only invoked conditionally." >&5
21614 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21615 Usually this means the macro was only invoked conditionally." >&2;}
21616 { (exit 1); exit 1; }; }
21618 if test -z "${GTKMM_FALSE_TRUE}" && test -z "${GTKMM_FALSE_FALSE}"; then
21619 { { echo "$as_me:$LINENO: error: conditional \"GTKMM_FALSE\" was never defined.
21620 Usually this means the macro was only invoked conditionally." >&5
21621 echo "$as_me: error: conditional \"GTKMM_FALSE\" was never defined.
21622 Usually this means the macro was only invoked conditionally." >&2;}
21623 { (exit 1); exit 1; }; }
21626 : ${CONFIG_STATUS=./config.status}
21627 ac_clean_files_save=$ac_clean_files
21628 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21629 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21630 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21631 cat >$CONFIG_STATUS <<_ACEOF
21633 # Generated by $as_me.
21634 # Run this file to recreate the current configuration.
21635 # Compiler output produced by configure, useful for debugging
21636 # configure, is in config.log if it exists.
21639 ac_cs_recheck=false
21641 SHELL=\${CONFIG_SHELL-$SHELL}
21644 cat >>$CONFIG_STATUS <<\_ACEOF
21645 ## --------------------- ##
21646 ## M4sh Initialization. ##
21647 ## --------------------- ##
21649 # Be Bourne compatible
21650 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21653 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21654 # is contrary to our usage. Disable this feature.
21655 alias -g '${1+"$@"}'='"$@"'
21656 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21659 DUALCASE=1; export DUALCASE # for MKS sh
21661 # Support unset when possible.
21662 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21669 # Work around bugs in pre-3.0 UWIN ksh.
21670 $as_unset ENV MAIL MAILPATH
21677 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21678 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21679 LC_TELEPHONE LC_TIME
21681 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21682 eval $as_var=C; export $as_var
21688 # Required to use basename.
21689 if expr a : '\(a\)' >/dev/null 2>&1; then
21695 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21696 as_basename=basename
21702 # Name of the executable.
21703 as_me=`$as_basename "$0" ||
21704 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21705 X"$0" : 'X\(//\)$' \| \
21706 X"$0" : 'X\(/\)$' \| \
21707 . : '\(.\)' 2>/dev/null ||
21709 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21710 /^X\/\(\/\/\)$/{ s//\1/; q; }
21711 /^X\/\(\/\).*/{ s//\1/; q; }
21715 # PATH needs CR, and LINENO needs CR and PATH.
21716 # Avoid depending upon Character Ranges.
21717 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21718 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21719 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21720 as_cr_digits='0123456789'
21721 as_cr_alnum=$as_cr_Letters$as_cr_digits
21723 # The user is always right.
21724 if test "${PATH_SEPARATOR+set}" != set; then
21725 echo "#! /bin/sh" >conf$$.sh
21726 echo "exit 0" >>conf$$.sh
21728 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21737 as_lineno_1=$LINENO
21738 as_lineno_2=$LINENO
21739 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21740 test "x$as_lineno_1" != "x$as_lineno_2" &&
21741 test "x$as_lineno_3" = "x$as_lineno_2" || {
21742 # Find who we are. Look in the path if we contain no path at all
21745 *[\\/]* ) as_myself=$0 ;;
21746 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21747 for as_dir in $PATH
21750 test -z "$as_dir" && as_dir=.
21751 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21756 # We did not find ourselves, most probably we were run as `sh COMMAND'
21757 # in which case we are not to be found in the path.
21758 if test "x$as_myself" = x; then
21761 if test ! -f "$as_myself"; then
21762 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21763 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21764 { (exit 1); exit 1; }; }
21766 case $CONFIG_SHELL in
21768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21769 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21772 test -z "$as_dir" && as_dir=.
21773 for as_base in sh bash ksh sh5; do
21776 if ("$as_dir/$as_base" -c '
21777 as_lineno_1=$LINENO
21778 as_lineno_2=$LINENO
21779 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21780 test "x$as_lineno_1" != "x$as_lineno_2" &&
21781 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21782 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21783 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21784 CONFIG_SHELL=$as_dir/$as_base
21785 export CONFIG_SHELL
21786 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21794 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21795 # uniformly replaced by the line number. The first 'sed' inserts a
21796 # line-number line before each line; the second 'sed' does the real
21797 # work. The second script uses 'N' to pair each line-number line
21798 # with the numbered line, and appends trailing '-' during
21799 # substitution so that $LINENO is not a special case at line end.
21800 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21801 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21802 sed '=' <$as_myself |
21807 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21810 s,^['$as_cr_digits']*\n,,
21811 ' >$as_me.lineno &&
21812 chmod +x $as_me.lineno ||
21813 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21814 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21815 { (exit 1); exit 1; }; }
21817 # Don't try to exec as it changes $[0], causing all sort of problems
21818 # (the dirname of $[0] is not the place where we might find the
21819 # original and so on. Autoconf is especially sensible to this).
21821 # Exit status is that of the last command.
21826 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21827 *c*,-n*) ECHO_N= ECHO_C='
21829 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21830 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21833 if expr a : '\(a\)' >/dev/null 2>&1; then
21839 rm -f conf$$ conf$$.exe conf$$.file
21841 if ln -s conf$$.file conf$$ 2>/dev/null; then
21842 # We could just check for DJGPP; but this test a) works b) is more generic
21843 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21844 if test -f conf$$.exe; then
21845 # Don't use ln at all; we don't have any links
21850 elif ln conf$$.file conf$$ 2>/dev/null; then
21855 rm -f conf$$ conf$$.exe conf$$.file
21857 if mkdir -p . 2>/dev/null; then
21860 test -d ./-p && rmdir ./-p
21864 as_executable_p="test -f"
21866 # Sed expression to map a string onto a valid CPP name.
21867 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21869 # Sed expression to map a string onto a valid variable name.
21870 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21874 # We need space, tab and new line, in precisely that order.
21884 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21885 # report actual input values of CONFIG_FILES etc. instead of their
21886 # values after options handling. Logging --version etc. is OK.
21890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21891 ## Running $as_me. ##
21896 This file was extended by $as_me, which was
21897 generated by GNU Autoconf 2.59. Invocation command line was
21899 CONFIG_FILES = $CONFIG_FILES
21900 CONFIG_HEADERS = $CONFIG_HEADERS
21901 CONFIG_LINKS = $CONFIG_LINKS
21902 CONFIG_COMMANDS = $CONFIG_COMMANDS
21906 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21910 # Files that config.status was made for.
21911 if test -n "$ac_config_files"; then
21912 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21915 if test -n "$ac_config_headers"; then
21916 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21919 if test -n "$ac_config_links"; then
21920 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21923 if test -n "$ac_config_commands"; then
21924 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21927 cat >>$CONFIG_STATUS <<\_ACEOF
21930 \`$as_me' instantiates files from templates according to the
21931 current configuration.
21933 Usage: $0 [OPTIONS] [FILE]...
21935 -h, --help print this help, then exit
21936 -V, --version print version number, then exit
21937 -q, --quiet do not print progress messages
21938 -d, --debug don't remove temporary files
21939 --recheck update $as_me by reconfiguring in the same conditions
21940 --file=FILE[:TEMPLATE]
21941 instantiate the configuration file FILE
21942 --header=FILE[:TEMPLATE]
21943 instantiate the configuration header FILE
21945 Configuration files:
21948 Configuration headers:
21951 Configuration commands:
21954 Report bugs to <bug-autoconf@gnu.org>."
21957 cat >>$CONFIG_STATUS <<_ACEOF
21960 configured by $0, generated by GNU Autoconf 2.59,
21961 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21963 Copyright (C) 2003 Free Software Foundation, Inc.
21964 This config.status script is free software; the Free Software Foundation
21965 gives unlimited permission to copy, distribute and modify it."
21970 cat >>$CONFIG_STATUS <<\_ACEOF
21971 # If no file are specified by the user, then we need to provide default
21972 # value. By we need to know if files were specified by the user.
21978 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21979 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21987 *) # This is not an option, so the user has probably given explicit
21990 ac_need_defaults=false;;
21994 # Handling of the options.
21996 cat >>$CONFIG_STATUS <<\_ACEOF
21997 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21999 --version | --vers* | -V )
22000 echo "$ac_cs_version"; exit 0 ;;
22002 # Conflict between --help and --header
22003 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22004 Try \`$0 --help' for more information." >&5
22005 echo "$as_me: error: ambiguous option: $1
22006 Try \`$0 --help' for more information." >&2;}
22007 { (exit 1); exit 1; }; };;
22008 --help | --hel | -h )
22009 echo "$ac_cs_usage"; exit 0 ;;
22010 --debug | --d* | -d )
22012 --file | --fil | --fi | --f )
22014 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22015 ac_need_defaults=false;;
22016 --header | --heade | --head | --hea )
22018 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22019 ac_need_defaults=false;;
22020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22021 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22024 # This is an error.
22025 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22026 Try \`$0 --help' for more information." >&5
22027 echo "$as_me: error: unrecognized option: $1
22028 Try \`$0 --help' for more information." >&2;}
22029 { (exit 1); exit 1; }; } ;;
22031 *) ac_config_targets="$ac_config_targets $1" ;;
22037 ac_configure_extra_args=
22039 if $ac_cs_silent; then
22041 ac_configure_extra_args="$ac_configure_extra_args --silent"
22045 cat >>$CONFIG_STATUS <<_ACEOF
22046 if \$ac_cs_recheck; then
22047 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22048 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22053 cat >>$CONFIG_STATUS <<_ACEOF
22055 # INIT-COMMANDS section.
22058 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22064 cat >>$CONFIG_STATUS <<\_ACEOF
22065 for ac_config_target in $ac_config_targets
22067 case "$ac_config_target" in
22068 # Handling of arguments.
22069 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22070 "glib/Makefile" ) CONFIG_FILES="$CONFIG_FILES glib/Makefile" ;;
22071 "glib/glibmm-2.4.pc" ) CONFIG_FILES="$CONFIG_FILES glib/glibmm-2.4.pc" ;;
22072 "glib/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES glib/src/Makefile" ;;
22073 "glib/glibmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES glib/glibmm/Makefile" ;;
22074 "glib/glibmm/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES glib/glibmm/private/Makefile" ;;
22075 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22076 "tools/gmmproc" ) CONFIG_FILES="$CONFIG_FILES tools/gmmproc" ;;
22077 "tools/generate_wrap_init.pl" ) CONFIG_FILES="$CONFIG_FILES tools/generate_wrap_init.pl" ;;
22078 "tools/m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/m4/Makefile" ;;
22079 "tools/pm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/pm/Makefile" ;;
22080 "tools/extra_defs_gen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/extra_defs_gen/Makefile" ;;
22081 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22082 "tests/glibmm_value/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/glibmm_value/Makefile" ;;
22083 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22084 "examples/markup/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/markup/Makefile" ;;
22085 "examples/options/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/options/Makefile" ;;
22086 "examples/thread/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/thread/Makefile" ;;
22087 "examples/iochannel_stream/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/iochannel_stream/Makefile" ;;
22088 "examples/child_watch/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/child_watch/Makefile" ;;
22089 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22090 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22091 "docs/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/images/Makefile" ;;
22092 "docs/reference/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
22093 "docs/reference/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES docs/reference/Doxyfile" ;;
22094 "docs/reference/beautify_docs.pl" ) CONFIG_FILES="$CONFIG_FILES docs/reference/beautify_docs.pl" ;;
22095 "docs/internal/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/internal/Makefile" ;;
22096 "MSVC_Net2003/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/Makefile" ;;
22097 "MSVC_Net2003/gendef/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/gendef/Makefile" ;;
22098 "MSVC_Net2003/glibmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/glibmm/Makefile" ;;
22099 "MSVC_Net2003/glibmm/glibmm.rc" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/glibmm/glibmm.rc" ;;
22100 "MSVC_Net2003/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/Makefile" ;;
22101 "MSVC_Net2003/examples/dispatcher/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/dispatcher/Makefile" ;;
22102 "MSVC_Net2003/examples/dispatcher2/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/dispatcher2/Makefile" ;;
22103 "MSVC_Net2003/examples/markup/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/markup/Makefile" ;;
22104 "MSVC_Net2003/examples/options/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/options/Makefile" ;;
22105 "MSVC_Net2003/examples/thread/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/thread/Makefile" ;;
22106 "MSVC_Net2003/examples/thread_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/thread_pool/Makefile" ;;
22107 "MSVC_Net2003/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/tests/Makefile" ;;
22108 "MSVC_Net2003/tests/glibmm_value/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/tests/glibmm_value/Makefile" ;;
22109 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22110 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22111 "glib/glibmmconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS glib/glibmmconfig.h" ;;
22112 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22113 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22114 { (exit 1); exit 1; }; };;
22118 # If the user did not use the arguments to specify the items to instantiate,
22119 # then the envvar interface is used. Set only those that are not.
22120 # We use the long form for the default assignment because of an extremely
22121 # bizarre bug on SunOS 4.1.3.
22122 if $ac_need_defaults; then
22123 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22124 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22125 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22128 # Have a temporary directory for convenience. Make it in the build tree
22129 # simply because there is no reason to put it here, and in addition,
22130 # creating and moving files from /tmp can sometimes cause problems.
22131 # Create a temporary directory, and hook for its removal unless debugging.
22134 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22135 trap '{ (exit 1); exit 1; }' 1 2 13 15
22138 # Create a (secure) tmp directory for tmp files.
22141 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22142 test -n "$tmp" && test -d "$tmp"
22145 tmp=./confstat$$-$RANDOM
22146 (umask 077 && mkdir $tmp)
22149 echo "$me: cannot create a temporary directory in ." >&2
22150 { (exit 1); exit 1; }
22155 cat >>$CONFIG_STATUS <<_ACEOF
22158 # CONFIG_FILES section.
22161 # No need to generate the scripts if there are no CONFIG_FILES.
22162 # This happens for instance when ./config.status config.h
22163 if test -n "\$CONFIG_FILES"; then
22164 # Protect against being on the right side of a sed subst in config.status.
22165 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22166 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22167 s,@SHELL@,$SHELL,;t t
22168 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22169 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22170 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22171 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22172 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22173 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22174 s,@exec_prefix@,$exec_prefix,;t t
22175 s,@prefix@,$prefix,;t t
22176 s,@program_transform_name@,$program_transform_name,;t t
22177 s,@bindir@,$bindir,;t t
22178 s,@sbindir@,$sbindir,;t t
22179 s,@libexecdir@,$libexecdir,;t t
22180 s,@datadir@,$datadir,;t t
22181 s,@sysconfdir@,$sysconfdir,;t t
22182 s,@sharedstatedir@,$sharedstatedir,;t t
22183 s,@localstatedir@,$localstatedir,;t t
22184 s,@libdir@,$libdir,;t t
22185 s,@includedir@,$includedir,;t t
22186 s,@oldincludedir@,$oldincludedir,;t t
22187 s,@infodir@,$infodir,;t t
22188 s,@mandir@,$mandir,;t t
22189 s,@build_alias@,$build_alias,;t t
22190 s,@host_alias@,$host_alias,;t t
22191 s,@target_alias@,$target_alias,;t t
22192 s,@DEFS@,$DEFS,;t t
22193 s,@ECHO_C@,$ECHO_C,;t t
22194 s,@ECHO_N@,$ECHO_N,;t t
22195 s,@ECHO_T@,$ECHO_T,;t t
22196 s,@LIBS@,$LIBS,;t t
22197 s,@GLIBMM_MAJOR_VERSION@,$GLIBMM_MAJOR_VERSION,;t t
22198 s,@GLIBMM_MINOR_VERSION@,$GLIBMM_MINOR_VERSION,;t t
22199 s,@GLIBMM_MICRO_VERSION@,$GLIBMM_MICRO_VERSION,;t t
22200 s,@GLIBMM_VERSION@,$GLIBMM_VERSION,;t t
22201 s,@GLIBMM_RELEASE@,$GLIBMM_RELEASE,;t t
22202 s,@LIBGLIBMM_SO_VERSION@,$LIBGLIBMM_SO_VERSION,;t t
22203 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22204 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22205 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22206 s,@CYGPATH_W@,$CYGPATH_W,;t t
22207 s,@PACKAGE@,$PACKAGE,;t t
22208 s,@VERSION@,$VERSION,;t t
22209 s,@ACLOCAL@,$ACLOCAL,;t t
22210 s,@AUTOCONF@,$AUTOCONF,;t t
22211 s,@AUTOMAKE@,$AUTOMAKE,;t t
22212 s,@AUTOHEADER@,$AUTOHEADER,;t t
22213 s,@MAKEINFO@,$MAKEINFO,;t t
22214 s,@install_sh@,$install_sh,;t t
22215 s,@STRIP@,$STRIP,;t t
22216 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22217 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22218 s,@mkdir_p@,$mkdir_p,;t t
22220 s,@SET_MAKE@,$SET_MAKE,;t t
22221 s,@am__leading_dot@,$am__leading_dot,;t t
22222 s,@AMTAR@,$AMTAR,;t t
22223 s,@am__tar@,$am__tar,;t t
22224 s,@am__untar@,$am__untar,;t t
22225 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22226 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22227 s,@MAINT@,$MAINT,;t t
22229 s,@CFLAGS@,$CFLAGS,;t t
22230 s,@LDFLAGS@,$LDFLAGS,;t t
22231 s,@CPPFLAGS@,$CPPFLAGS,;t t
22232 s,@ac_ct_CC@,$ac_ct_CC,;t t
22233 s,@EXEEXT@,$EXEEXT,;t t
22234 s,@OBJEXT@,$OBJEXT,;t t
22235 s,@DEPDIR@,$DEPDIR,;t t
22236 s,@am__include@,$am__include,;t t
22237 s,@am__quote@,$am__quote,;t t
22238 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22239 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22240 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22241 s,@CCDEPMODE@,$CCDEPMODE,;t t
22242 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22243 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22245 s,@build@,$build,;t t
22246 s,@build_cpu@,$build_cpu,;t t
22247 s,@build_vendor@,$build_vendor,;t t
22248 s,@build_os@,$build_os,;t t
22249 s,@host@,$host,;t t
22250 s,@host_cpu@,$host_cpu,;t t
22251 s,@host_vendor@,$host_vendor,;t t
22252 s,@host_os@,$host_os,;t t
22253 s,@PLATFORM_WIN32_TRUE@,$PLATFORM_WIN32_TRUE,;t t
22254 s,@PLATFORM_WIN32_FALSE@,$PLATFORM_WIN32_FALSE,;t t
22255 s,@OS_WIN32_TRUE@,$OS_WIN32_TRUE,;t t
22256 s,@OS_WIN32_FALSE@,$OS_WIN32_FALSE,;t t
22257 s,@EGREP@,$EGREP,;t t
22258 s,@LN_S@,$LN_S,;t t
22259 s,@ECHO@,$ECHO,;t t
22261 s,@ac_ct_AR@,$ac_ct_AR,;t t
22262 s,@RANLIB@,$RANLIB,;t t
22263 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22264 s,@DLLTOOL@,$DLLTOOL,;t t
22265 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22267 s,@ac_ct_AS@,$ac_ct_AS,;t t
22268 s,@OBJDUMP@,$OBJDUMP,;t t
22269 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22271 s,@CXXFLAGS@,$CXXFLAGS,;t t
22272 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22273 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22274 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22275 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22276 s,@CXXCPP@,$CXXCPP,;t t
22278 s,@FFLAGS@,$FFLAGS,;t t
22279 s,@ac_ct_F77@,$ac_ct_F77,;t t
22280 s,@LIBTOOL@,$LIBTOOL,;t t
22282 s,@PERL_PATH@,$PERL_PATH,;t t
22283 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22284 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
22285 s,@GLIBMM_CFLAGS@,$GLIBMM_CFLAGS,;t t
22286 s,@GLIBMM_LIBS@,$GLIBMM_LIBS,;t t
22287 s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t
22288 s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t
22289 s,@GTKMM_DOXYGEN_INPUT@,$GTKMM_DOXYGEN_INPUT,;t t
22290 s,@GTKMMPROC_MERGECDOCS@,$GTKMMPROC_MERGECDOCS,;t t
22291 s,@DISABLE_DEPRECATED_CFLAGS@,$DISABLE_DEPRECATED_CFLAGS,;t t
22292 s,@DISABLE_DEPRECATED_API_CFLAGS@,$DISABLE_DEPRECATED_API_CFLAGS,;t t
22293 s,@GTKMM_FALSE_TRUE@,$GTKMM_FALSE_TRUE,;t t
22294 s,@GTKMM_FALSE_FALSE@,$GTKMM_FALSE_FALSE,;t t
22295 s,@LIBOBJS@,$LIBOBJS,;t t
22296 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22301 cat >>$CONFIG_STATUS <<\_ACEOF
22302 # Split the substitutions into bite-sized pieces for seds with
22303 # small command number limits, like on Digital OSF/1 and HP-UX.
22304 ac_max_sed_lines=48
22305 ac_sed_frag=1 # Number of current file.
22306 ac_beg=1 # First line for current file.
22307 ac_end=$ac_max_sed_lines # Line after last line for current file.
22310 while $ac_more_lines; do
22311 if test $ac_beg -gt 1; then
22312 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22314 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22316 if test ! -s $tmp/subs.frag; then
22317 ac_more_lines=false
22319 # The purpose of the label and of the branching condition is to
22320 # speed up the sed processing (if there are no `@' at all, there
22321 # is no need to browse any of the substitutions).
22322 # These are the two extra sed commands mentioned above.
22324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22325 if test -z "$ac_sed_cmds"; then
22326 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22328 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22330 ac_sed_frag=`expr $ac_sed_frag + 1`
22332 ac_end=`expr $ac_end + $ac_max_sed_lines`
22335 if test -z "$ac_sed_cmds"; then
22338 fi # test -n "$CONFIG_FILES"
22341 cat >>$CONFIG_STATUS <<\_ACEOF
22342 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22343 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22345 - | *:- | *:-:* ) # input from stdin
22347 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22348 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22349 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22350 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22351 * ) ac_file_in=$ac_file.in ;;
22354 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22355 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22356 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22357 X"$ac_file" : 'X\(//\)[^/]' \| \
22358 X"$ac_file" : 'X\(//\)$' \| \
22359 X"$ac_file" : 'X\(/\)' \| \
22360 . : '\(.\)' 2>/dev/null ||
22362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22364 /^X\(\/\/\)$/{ s//\1/; q; }
22365 /^X\(\/\).*/{ s//\1/; q; }
22367 { if $as_mkdir_p; then
22372 while test ! -d "$as_dir"; do
22373 as_dirs="$as_dir $as_dirs"
22374 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22376 X"$as_dir" : 'X\(//\)[^/]' \| \
22377 X"$as_dir" : 'X\(//\)$' \| \
22378 X"$as_dir" : 'X\(/\)' \| \
22379 . : '\(.\)' 2>/dev/null ||
22381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22383 /^X\(\/\/\)$/{ s//\1/; q; }
22384 /^X\(\/\).*/{ s//\1/; q; }
22387 test ! -n "$as_dirs" || mkdir $as_dirs
22388 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22389 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22390 { (exit 1); exit 1; }; }; }
22394 if test "$ac_dir" != .; then
22395 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22396 # A "../" for each directory in $ac_dir_suffix.
22397 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22399 ac_dir_suffix= ac_top_builddir=
22403 .) # No --srcdir option. We are building in place.
22405 if test -z "$ac_top_builddir"; then
22408 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22410 [\\/]* | ?:[\\/]* ) # Absolute path.
22411 ac_srcdir=$srcdir$ac_dir_suffix;
22412 ac_top_srcdir=$srcdir ;;
22413 *) # Relative path.
22414 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22415 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22418 # Do not use `cd foo && pwd` to compute absolute paths, because
22419 # the directories may not exist.
22421 .) ac_abs_builddir="$ac_dir";;
22424 .) ac_abs_builddir=`pwd`;;
22425 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22426 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22429 case $ac_abs_builddir in
22430 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22432 case ${ac_top_builddir}. in
22433 .) ac_abs_top_builddir=$ac_abs_builddir;;
22434 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22435 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22438 case $ac_abs_builddir in
22439 .) ac_abs_srcdir=$ac_srcdir;;
22442 .) ac_abs_srcdir=$ac_abs_builddir;;
22443 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22444 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22447 case $ac_abs_builddir in
22448 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22450 case $ac_top_srcdir in
22451 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22452 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22453 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22459 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22460 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22463 if test x"$ac_file" != x-; then
22464 { echo "$as_me:$LINENO: creating $ac_file" >&5
22465 echo "$as_me: creating $ac_file" >&6;}
22468 # Let's still pretend it is `configure' which instantiates (i.e., don't
22469 # use $as_me), people would be surprised to read:
22470 # /* config.h. Generated by config.status. */
22471 if test x"$ac_file" = x-; then
22474 configure_input="$ac_file. "
22476 configure_input=$configure_input"Generated from `echo $ac_file_in |
22477 sed 's,.*/,,'` by configure."
22479 # First look for the input files in the build tree, otherwise in the
22481 ac_file_inputs=`IFS=:
22482 for f in $ac_file_in; do
22484 -) echo $tmp/stdin ;;
22486 # Absolute (can't be DOS-style, as IFS=:)
22487 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22488 echo "$as_me: error: cannot find input file: $f" >&2;}
22489 { (exit 1); exit 1; }; }
22492 if test -f "$f"; then
22495 elif test -f "$srcdir/$f"; then
22500 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22501 echo "$as_me: error: cannot find input file: $f" >&2;}
22502 { (exit 1); exit 1; }; }
22505 done` || { (exit 1); exit 1; }
22507 cat >>$CONFIG_STATUS <<_ACEOF
22511 cat >>$CONFIG_STATUS <<\_ACEOF
22513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22514 s,@configure_input@,$configure_input,;t t
22515 s,@srcdir@,$ac_srcdir,;t t
22516 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22517 s,@top_srcdir@,$ac_top_srcdir,;t t
22518 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22519 s,@builddir@,$ac_builddir,;t t
22520 s,@abs_builddir@,$ac_abs_builddir,;t t
22521 s,@top_builddir@,$ac_top_builddir,;t t
22522 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22523 s,@INSTALL@,$ac_INSTALL,;t t
22524 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22526 if test x"$ac_file" != x-; then
22527 mv $tmp/out $ac_file
22535 cat >>$CONFIG_STATUS <<\_ACEOF
22538 # CONFIG_HEADER section.
22541 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22542 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22544 # ac_d sets the value in "#define NAME VALUE" lines.
22545 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22546 ac_dB='[ ].*$,\1#\2'
22549 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22550 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22551 ac_uB='$,\1#\2define\3'
22555 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22556 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22558 - | *:- | *:-:* ) # input from stdin
22560 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22561 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22562 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22563 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22564 * ) ac_file_in=$ac_file.in ;;
22567 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22568 echo "$as_me: creating $ac_file" >&6;}
22570 # First look for the input files in the build tree, otherwise in the
22572 ac_file_inputs=`IFS=:
22573 for f in $ac_file_in; do
22575 -) echo $tmp/stdin ;;
22577 # Absolute (can't be DOS-style, as IFS=:)
22578 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22579 echo "$as_me: error: cannot find input file: $f" >&2;}
22580 { (exit 1); exit 1; }; }
22581 # Do quote $f, to prevent DOS paths from being IFS'd.
22584 if test -f "$f"; then
22587 elif test -f "$srcdir/$f"; then
22592 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22593 echo "$as_me: error: cannot find input file: $f" >&2;}
22594 { (exit 1); exit 1; }; }
22597 done` || { (exit 1); exit 1; }
22598 # Remove the trailing spaces.
22599 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22603 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22604 # `conftest.undefs', that substitutes the proper values into
22605 # config.h.in to produce config.h. The first handles `#define'
22606 # templates, and the second `#undef' templates.
22607 # And first: Protect against being on the right side of a sed subst in
22608 # config.status. Protect against being in an unquoted here document
22609 # in config.status.
22610 rm -f conftest.defines conftest.undefs
22611 # Using a here document instead of a string reduces the quoting nightmare.
22612 # Putting comments in sed scripts is not portable.
22614 # `end' is used to avoid that the second main sed command (meant for
22615 # 0-ary CPP macros) applies to n-ary macro definitions.
22616 # See the Autoconf documentation for `clear'.
22617 cat >confdef2sed.sed <<\_ACEOF
22622 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22624 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22627 # If some macros were called several times there might be several times
22628 # the same #defines, which is useless. Nevertheless, we may not want to
22629 # sort them, since we want the *last* AC-DEFINE to be honored.
22630 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22631 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22632 rm -f confdef2sed.sed
22634 # This sed command replaces #undef with comments. This is necessary, for
22635 # example, in the case of _POSIX_SOURCE, which is predefined and required
22636 # on some systems where configure will not decide to define it.
22637 cat >>conftest.undefs <<\_ACEOF
22638 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22641 # Break up conftest.defines because some shells have a limit on the size
22642 # of here documents, and old seds have small limits too (100 cmds).
22643 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22644 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22645 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22646 echo ' :' >>$CONFIG_STATUS
22647 rm -f conftest.tail
22648 while grep . conftest.defines >/dev/null
22650 # Write a limited-size here document to $tmp/defines.sed.
22651 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22652 # Speed up: don't consider the non `#define' lines.
22653 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22654 # Work around the forget-to-reset-the-flag bug.
22655 echo 't clr' >>$CONFIG_STATUS
22656 echo ': clr' >>$CONFIG_STATUS
22657 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22659 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22661 mv $tmp/out $tmp/in
22663 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22664 rm -f conftest.defines
22665 mv conftest.tail conftest.defines
22667 rm -f conftest.defines
22668 echo ' fi # grep' >>$CONFIG_STATUS
22669 echo >>$CONFIG_STATUS
22671 # Break up conftest.undefs because some shells have a limit on the size
22672 # of here documents, and old seds have small limits too (100 cmds).
22673 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22674 rm -f conftest.tail
22675 while grep . conftest.undefs >/dev/null
22677 # Write a limited-size here document to $tmp/undefs.sed.
22678 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22679 # Speed up: don't consider the non `#undef'
22680 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22681 # Work around the forget-to-reset-the-flag bug.
22682 echo 't clr' >>$CONFIG_STATUS
22683 echo ': clr' >>$CONFIG_STATUS
22684 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22686 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22688 mv $tmp/out $tmp/in
22690 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22691 rm -f conftest.undefs
22692 mv conftest.tail conftest.undefs
22694 rm -f conftest.undefs
22696 cat >>$CONFIG_STATUS <<\_ACEOF
22697 # Let's still pretend it is `configure' which instantiates (i.e., don't
22698 # use $as_me), people would be surprised to read:
22699 # /* config.h. Generated by config.status. */
22700 if test x"$ac_file" = x-; then
22701 echo "/* Generated by configure. */" >$tmp/config.h
22703 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22705 cat $tmp/in >>$tmp/config.h
22707 if test x"$ac_file" != x-; then
22708 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22709 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22710 echo "$as_me: $ac_file is unchanged" >&6;}
22712 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22713 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22714 X"$ac_file" : 'X\(//\)[^/]' \| \
22715 X"$ac_file" : 'X\(//\)$' \| \
22716 X"$ac_file" : 'X\(/\)' \| \
22717 . : '\(.\)' 2>/dev/null ||
22719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22721 /^X\(\/\/\)$/{ s//\1/; q; }
22722 /^X\(\/\).*/{ s//\1/; q; }
22724 { if $as_mkdir_p; then
22729 while test ! -d "$as_dir"; do
22730 as_dirs="$as_dir $as_dirs"
22731 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22733 X"$as_dir" : 'X\(//\)[^/]' \| \
22734 X"$as_dir" : 'X\(//\)$' \| \
22735 X"$as_dir" : 'X\(/\)' \| \
22736 . : '\(.\)' 2>/dev/null ||
22738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22740 /^X\(\/\/\)$/{ s//\1/; q; }
22741 /^X\(\/\).*/{ s//\1/; q; }
22744 test ! -n "$as_dirs" || mkdir $as_dirs
22745 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22746 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22747 { (exit 1); exit 1; }; }; }
22750 mv $tmp/config.h $ac_file
22754 rm -f $tmp/config.h
22756 # Compute $ac_file's index in $config_headers.
22758 for _am_header in $config_headers :; do
22759 case $_am_header in
22760 $ac_file | $ac_file:* )
22763 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22766 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22767 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22768 X$ac_file : 'X\(//\)[^/]' \| \
22769 X$ac_file : 'X\(//\)$' \| \
22770 X$ac_file : 'X\(/\)' \| \
22771 . : '\(.\)' 2>/dev/null ||
22773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22775 /^X\(\/\/\)$/{ s//\1/; q; }
22776 /^X\(\/\).*/{ s//\1/; q; }
22777 s/.*/./; q'`/stamp-h$_am_stamp_count
22780 cat >>$CONFIG_STATUS <<\_ACEOF
22783 # CONFIG_COMMANDS section.
22785 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22786 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22787 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22788 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22789 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22790 X"$ac_dest" : 'X\(//\)[^/]' \| \
22791 X"$ac_dest" : 'X\(//\)$' \| \
22792 X"$ac_dest" : 'X\(/\)' \| \
22793 . : '\(.\)' 2>/dev/null ||
22795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22797 /^X\(\/\/\)$/{ s//\1/; q; }
22798 /^X\(\/\).*/{ s//\1/; q; }
22800 { if $as_mkdir_p; then
22805 while test ! -d "$as_dir"; do
22806 as_dirs="$as_dir $as_dirs"
22807 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22809 X"$as_dir" : 'X\(//\)[^/]' \| \
22810 X"$as_dir" : 'X\(//\)$' \| \
22811 X"$as_dir" : 'X\(/\)' \| \
22812 . : '\(.\)' 2>/dev/null ||
22814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22816 /^X\(\/\/\)$/{ s//\1/; q; }
22817 /^X\(\/\).*/{ s//\1/; q; }
22820 test ! -n "$as_dirs" || mkdir $as_dirs
22821 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22822 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22823 { (exit 1); exit 1; }; }; }
22827 if test "$ac_dir" != .; then
22828 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22829 # A "../" for each directory in $ac_dir_suffix.
22830 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22832 ac_dir_suffix= ac_top_builddir=
22836 .) # No --srcdir option. We are building in place.
22838 if test -z "$ac_top_builddir"; then
22841 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22843 [\\/]* | ?:[\\/]* ) # Absolute path.
22844 ac_srcdir=$srcdir$ac_dir_suffix;
22845 ac_top_srcdir=$srcdir ;;
22846 *) # Relative path.
22847 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22848 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22851 # Do not use `cd foo && pwd` to compute absolute paths, because
22852 # the directories may not exist.
22854 .) ac_abs_builddir="$ac_dir";;
22857 .) ac_abs_builddir=`pwd`;;
22858 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22859 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22862 case $ac_abs_builddir in
22863 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22865 case ${ac_top_builddir}. in
22866 .) ac_abs_top_builddir=$ac_abs_builddir;;
22867 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22868 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22871 case $ac_abs_builddir in
22872 .) ac_abs_srcdir=$ac_srcdir;;
22875 .) ac_abs_srcdir=$ac_abs_builddir;;
22876 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22877 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22880 case $ac_abs_builddir in
22881 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22883 case $ac_top_srcdir in
22884 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22885 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22886 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22891 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22892 echo "$as_me: executing $ac_dest commands" >&6;}
22894 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22895 # Strip MF so we end up with the name of the file.
22896 mf=`echo "$mf" | sed -e 's/:.*$//'`
22897 # Check whether this is an Automake generated Makefile or not.
22898 # We used to match only the files named `Makefile.in', but
22899 # some people rename them; so instead we look at the file content.
22900 # Grep'ing the first line is not enough: some people post-process
22901 # each Makefile.in and add a new line on top of each file to say so.
22902 # So let's grep whole file.
22903 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22904 dirpart=`(dirname "$mf") 2>/dev/null ||
22905 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22906 X"$mf" : 'X\(//\)[^/]' \| \
22907 X"$mf" : 'X\(//\)$' \| \
22908 X"$mf" : 'X\(/\)' \| \
22909 . : '\(.\)' 2>/dev/null ||
22911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22913 /^X\(\/\/\)$/{ s//\1/; q; }
22914 /^X\(\/\).*/{ s//\1/; q; }
22919 # Extract the definition of DEPDIR, am__include, and am__quote
22920 # from the Makefile without running `make'.
22921 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22922 test -z "$DEPDIR" && continue
22923 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22924 test -z "am__include" && continue
22925 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22926 # When using ansi2knr, U may be empty or an underscore; expand it
22927 U=`sed -n 's/^U = //p' < "$mf"`
22928 # Find all dependency output files, they are included files with
22929 # $(DEPDIR) in their names. We invoke sed twice because it is the
22930 # simplest approach to changing $(DEPDIR) to its actual value in the
22932 for file in `sed -n "
22933 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22934 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22935 # Make sure the directory exists.
22936 test -f "$dirpart/$file" && continue
22937 fdir=`(dirname "$file") 2>/dev/null ||
22938 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22939 X"$file" : 'X\(//\)[^/]' \| \
22940 X"$file" : 'X\(//\)$' \| \
22941 X"$file" : 'X\(/\)' \| \
22942 . : '\(.\)' 2>/dev/null ||
22944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22945 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22946 /^X\(\/\/\)$/{ s//\1/; q; }
22947 /^X\(\/\).*/{ s//\1/; q; }
22949 { if $as_mkdir_p; then
22950 mkdir -p $dirpart/$fdir
22952 as_dir=$dirpart/$fdir
22954 while test ! -d "$as_dir"; do
22955 as_dirs="$as_dir $as_dirs"
22956 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22957 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22958 X"$as_dir" : 'X\(//\)[^/]' \| \
22959 X"$as_dir" : 'X\(//\)$' \| \
22960 X"$as_dir" : 'X\(/\)' \| \
22961 . : '\(.\)' 2>/dev/null ||
22963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22965 /^X\(\/\/\)$/{ s//\1/; q; }
22966 /^X\(\/\).*/{ s//\1/; q; }
22969 test ! -n "$as_dirs" || mkdir $as_dirs
22970 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22971 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22972 { (exit 1); exit 1; }; }; }
22974 # echo "creating $dirpart/$file"
22975 echo '# dummy' > "$dirpart/$file"
22983 cat >>$CONFIG_STATUS <<\_ACEOF
22985 { (exit 0); exit 0; }
22987 chmod +x $CONFIG_STATUS
22988 ac_clean_files=$ac_clean_files_save
22991 # configure is writing to config.log, and then calls config.status.
22992 # config.status does its own redirection, appending to config.log.
22993 # Unfortunately, on DOS this fails, as config.log is still kept open
22994 # by configure, so config.status won't be able to write to it; its
22995 # output is simply discarded. So we exec the FD to /dev/null,
22996 # effectively closing config.log, so it can be properly (re)opened and
22997 # appended to by config.status. When coming back to configure, we
22998 # need to make the FD available again.
22999 if test "$no_create" != yes; then
23001 ac_config_status_args=
23002 test "$silent" = yes &&
23003 ac_config_status_args="$ac_config_status_args --quiet"
23005 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23007 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23008 # would make configure fail if this is the last instruction.
23009 $ac_cs_success || { (exit 1); exit 1; }