2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${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="Makefile.am"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG OUTO_CFLAGS OUTO_LIBS GTK_CFLAGS GTK_LIBS GTK_VERSION ESD_CFLAGS ESD_LIBS GNOME_VFS_CFLAGS GNOME_VFS_LIBS GCONF_CFLAGS GCONF_LIBS LIBMB_CFLAGS LIBMB_LIBS ALL_LINGUAS USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS HTML_DIR ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE DOXYGEN_FOUND HAVE_DOXYGEN_TRUE HAVE_DOXYGEN_FALSE localedir outomoduledir PERL REBUILD LIBOBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 if test -n "$ac_init_help"; then
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking Speeds up one-time builds
1027 --enable-dependency-tracking Do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --enable-gtk-doc use gtk-doc to build documentation default=no
1036 --disable-rebuilds disable all source autogeneration rules
1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1041 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1042 --with-pic try to use only PIC/non-PIC objects [default=use
1045 include additional configurations [automatic]
1046 --with-html-dir=PATH path to installed docs
1048 Some influential environment variables:
1049 CC C compiler command
1050 CFLAGS C compiler flags
1051 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1052 nonstandard directory <lib dir>
1053 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1054 headers in a nonstandard directory <include dir>
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 CXXCPP C++ preprocessor
1059 F77 Fortran 77 compiler command
1060 FFLAGS Fortran 77 compiler flags
1062 Use these variables to override the choices made by `configure' or to help
1063 it to find libraries and programs with nonstandard names/locations.
1068 if test "$ac_init_help" = "recursive"; then
1069 # If there are subdirs, report their specific --help.
1071 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072 test -d $ac_dir || continue
1075 if test "$ac_dir" != .; then
1076 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077 # A "../" for each directory in $ac_dir_suffix.
1078 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080 ac_dir_suffix= ac_top_builddir=
1084 .) # No --srcdir option. We are building in place.
1086 if test -z "$ac_top_builddir"; then
1089 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091 [\\/]* | ?:[\\/]* ) # Absolute path.
1092 ac_srcdir=$srcdir$ac_dir_suffix;
1093 ac_top_srcdir=$srcdir ;;
1095 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099 # Do not use `cd foo && pwd` to compute absolute paths, because
1100 # the directories may not exist.
1102 .) ac_abs_builddir="$ac_dir";;
1105 .) ac_abs_builddir=`pwd`;;
1106 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1107 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110 case $ac_abs_builddir in
1111 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 case ${ac_top_builddir}. in
1114 .) ac_abs_top_builddir=$ac_abs_builddir;;
1115 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119 case $ac_abs_builddir in
1120 .) ac_abs_srcdir=$ac_srcdir;;
1123 .) ac_abs_srcdir=$ac_abs_builddir;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1125 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 case $ac_top_srcdir in
1132 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139 # Check for guested configure; otherwise get Cygnus style configure.
1140 if test -f $ac_srcdir/configure.gnu; then
1142 $SHELL $ac_srcdir/configure.gnu --help=recursive
1143 elif test -f $ac_srcdir/configure; then
1145 $SHELL $ac_srcdir/configure --help=recursive
1146 elif test -f $ac_srcdir/configure.ac ||
1147 test -f $ac_srcdir/configure.in; then
1149 $ac_configure --help
1151 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157 test -n "$ac_init_help" && exit 0
1158 if $ac_init_version; then
1161 Copyright (C) 2003 Free Software Foundation, Inc.
1162 This configure script is free software; the Free Software Foundation
1163 gives unlimited permission to copy, distribute and modify it.
1169 This file contains any messages produced by compilers while
1170 running configure, to aid debugging if configure makes a mistake.
1172 It was created by $as_me, which was
1173 generated by GNU Autoconf 2.59. Invocation command line was
1184 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1185 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1186 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1187 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1188 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1190 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1191 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1193 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1194 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1195 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1196 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1197 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1198 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1199 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207 test -z "$as_dir" && as_dir=.
1208 echo "PATH: $as_dir"
1223 # Keep a trace of the command line.
1224 # Strip out --no-create and --no-recursion so they do not pile up.
1225 # Strip out --silent because we don't want to record it for future runs.
1226 # Also quote any args containing shell meta-characters.
1227 # Make two passes to allow for proper duplicate-argument suppression.
1232 ac_must_keep_next=false
1238 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1242 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1243 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1246 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1248 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1249 if test $ac_must_keep_next = true; then
1250 ac_must_keep_next=false # Got value, back to normal.
1253 *=* | --config-cache | -C | -disable-* | --disable-* \
1254 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1255 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1256 | -with-* | --with-* | -without-* | --without-* | --x)
1257 case "$ac_configure_args0 " in
1258 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1261 -* ) ac_must_keep_next=true ;;
1264 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1265 # Get rid of the leading space.
1271 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1272 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1274 # When interrupted or exit'd, cleanup temporary files, and complete
1275 # config.log. We remove comments because anyway the quotes in there
1276 # would cause problems or look ugly.
1277 # WARNING: Be sure not to use single quotes in there, as some shells,
1278 # such as our DU 5.0 friend, will then `close' the trap.
1279 trap 'exit_status=$?
1280 # Save into config.log some information that might help in debugging.
1285 ## ---------------- ##
1286 ## Cache variables. ##
1287 ## ---------------- ##
1290 # The following way of writing the cache mishandles newlines in values,
1293 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1296 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308 ## ----------------- ##
1309 ## Output variables. ##
1310 ## ----------------- ##
1313 for ac_var in $ac_subst_vars
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1320 if test -n "$ac_subst_files"; then
1327 for ac_var in $ac_subst_files
1329 eval ac_val=$`echo $ac_var`
1330 echo "$ac_var='"'"'$ac_val'"'"'"
1335 if test -s confdefs.h; then
1342 sed "/^$/d" confdefs.h | sort
1345 test "$ac_signal" != 0 &&
1346 echo "$as_me: caught signal $ac_signal"
1347 echo "$as_me: exit $exit_status"
1349 rm -f core *.core &&
1350 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1353 for ac_signal in 1 2 13 15; do
1354 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1359 rm -rf conftest* confdefs.h
1360 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1363 # Predefined preprocessor variables.
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_NAME "$PACKAGE_NAME"
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_STRING "$PACKAGE_STRING"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390 # Let the site file select an alternate cache file if it wants to.
1391 # Prefer explicitly selected file to automatically selected ones.
1392 if test -z "$CONFIG_SITE"; then
1393 if test "x$prefix" != xNONE; then
1394 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1399 for ac_site_file in $CONFIG_SITE; do
1400 if test -r "$ac_site_file"; then
1401 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1402 echo "$as_me: loading site script $ac_site_file" >&6;}
1403 sed 's/^/| /' "$ac_site_file" >&5
1408 if test -r "$cache_file"; then
1409 # Some versions of bash will fail to source /dev/null (special
1410 # files actually), so we avoid doing that.
1411 if test -f "$cache_file"; then
1412 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1413 echo "$as_me: loading cache $cache_file" >&6;}
1415 [\\/]* | ?:[\\/]* ) . $cache_file;;
1416 *) . ./$cache_file;;
1420 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1421 echo "$as_me: creating cache $cache_file" >&6;}
1425 # Check that the precious variables saved in the cache have kept the same
1427 ac_cache_corrupted=false
1428 for ac_var in `(set) 2>&1 |
1429 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1430 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1431 eval ac_new_set=\$ac_env_${ac_var}_set
1432 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1433 eval ac_new_val="\$ac_env_${ac_var}_value"
1434 case $ac_old_set,$ac_new_set in
1436 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1437 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1438 ac_cache_corrupted=: ;;
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1442 ac_cache_corrupted=: ;;
1445 if test "x$ac_old_val" != "x$ac_new_val"; then
1446 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1447 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1448 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1449 echo "$as_me: former value: $ac_old_val" >&2;}
1450 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1451 echo "$as_me: current value: $ac_new_val" >&2;}
1452 ac_cache_corrupted=:
1455 # Pass precious variables to config.status.
1456 if test "$ac_new_set" = set; then
1458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1459 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1460 *) ac_arg=$ac_var=$ac_new_val ;;
1462 case " $ac_configure_args " in
1463 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1464 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468 if $ac_cache_corrupted; then
1469 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1470 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1471 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1472 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1473 { (exit 1); exit 1; }; }
1477 ac_cpp='$CPP $CPPFLAGS'
1478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500 am__api_version="1.7"
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 elif test -f $ac_dir/install.sh; then
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 elif test -f $ac_dir/shtool; then
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1517 if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526 # Find a good install program. We prefer a C program (faster),
1527 # so one script is as good as another. But avoid the broken or
1528 # incompatible versions:
1529 # SysV /etc/install, /usr/sbin/install
1530 # SunOS /usr/etc/install
1531 # IRIX /sbin/install
1533 # AmigaOS /C/install, which installs bootblocks on floppy discs
1534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1537 # OS/2's system install, which has a completely different semantic
1538 # ./install, which can be erroneously created by make from ./install.sh.
1539 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1540 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1541 if test -z "$INSTALL"; then
1542 if test "${ac_cv_path_install+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 test -z "$as_dir" && as_dir=.
1550 # Account for people who put trailing slashes in PATH elements.
1552 ./ | .// | /cC/* | \
1553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1554 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1557 # OSF1 and SCO ODT 3.0 have their own names for install.
1558 # Don't use installbsd from OSF since it installs stuff as root
1560 for ac_prog in ginstall scoinst install; do
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1563 if test $ac_prog = install &&
1564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1565 # AIX install. It has an incompatible calling convention.
1567 elif test $ac_prog = install &&
1568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569 # program-specific install script used by HP pwplus--don't use.
1572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1584 if test "${ac_cv_path_install+set}" = set; then
1585 INSTALL=$ac_cv_path_install
1587 # As a last resort, use the slow shell script. We don't cache a
1588 # path for INSTALL within a source directory, because that will
1589 # break other packages using the cache if that directory is
1590 # removed, or if the path is relative.
1591 INSTALL=$ac_install_sh
1594 echo "$as_me:$LINENO: result: $INSTALL" >&5
1595 echo "${ECHO_T}$INSTALL" >&6
1597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1598 # It thinks the first close brace ends the variable substitution.
1599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1605 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1606 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1609 echo timestamp > conftest.file
1610 # Do `set' in a subshell so we don't clobber the current shell's
1611 # arguments. Must try -L first in case configure is actually a
1612 # symlink; some systems play weird games with the mod time of symlinks
1613 # (eg FreeBSD returns the mod time of the symlink's containing
1616 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1617 if test "$*" = "X"; then
1619 set X `ls -t $srcdir/configure conftest.file`
1622 if test "$*" != "X $srcdir/configure conftest.file" \
1623 && test "$*" != "X conftest.file $srcdir/configure"; then
1625 # If neither matched, then we have a broken ls. This can happen
1626 # if, for instance, CONFIG_SHELL is bash and it inherits a
1627 # broken ls alias from the environment. This has actually
1628 # happened. Such a system could not be considered "sane".
1629 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1630 alias in your environment" >&5
1631 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1632 alias in your environment" >&2;}
1633 { (exit 1); exit 1; }; }
1636 test "$2" = conftest.file
1642 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1643 Check your system clock" >&5
1644 echo "$as_me: error: newly created file is older than distributed files!
1645 Check your system clock" >&2;}
1646 { (exit 1); exit 1; }; }
1648 echo "$as_me:$LINENO: result: yes" >&5
1649 echo "${ECHO_T}yes" >&6
1650 test "$program_prefix" != NONE &&
1651 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1652 # Use a double $ so make ignores it.
1653 test "$program_suffix" != NONE &&
1654 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1655 # Double any \ or $. echo might interpret backslashes.
1656 # By default was `s,x,x', remove it if useless.
1657 cat <<\_ACEOF >conftest.sed
1658 s/[\\$]/&&/g;s/;s,x,x,$//
1660 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1664 # expand $ac_aux_dir to an absolute path
1665 am_aux_dir=`cd $ac_aux_dir && pwd`
1667 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1668 # Use eval to expand $SHELL
1669 if eval "$MISSING --run true"; then
1670 am_missing_run="$MISSING --run "
1673 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1674 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1677 for ac_prog in gawk mawk nawk awk
1679 # Extract the first word of "$ac_prog", so it can be a program name with args.
1680 set dummy $ac_prog; ac_word=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_AWK+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 if test -n "$AWK"; then
1687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_AWK="$ac_prog"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 if test -n "$AWK"; then
1707 echo "$as_me:$LINENO: result: $AWK" >&5
1708 echo "${ECHO_T}$AWK" >&6
1710 echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1714 test -n "$AWK" && break
1717 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1718 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1719 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1720 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 cat >conftest.make <<\_ACEOF
1725 @echo 'ac_maketemp="$(MAKE)"'
1727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1728 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1729 if test -n "$ac_maketemp"; then
1730 eval ac_cv_prog_make_${ac_make}_set=yes
1732 eval ac_cv_prog_make_${ac_make}_set=no
1736 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1737 echo "$as_me:$LINENO: result: yes" >&5
1738 echo "${ECHO_T}yes" >&6
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1743 SET_MAKE="MAKE=${MAKE-make}"
1746 rm -rf .tst 2>/dev/null
1747 mkdir .tst 2>/dev/null
1748 if test -d .tst; then
1753 rmdir .tst 2>/dev/null
1755 # test to see if srcdir already configured
1756 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1757 test -f $srcdir/config.status; then
1758 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1759 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1760 { (exit 1); exit 1; }; }
1763 # test whether we have cygpath
1764 if test -z "$CYGPATH_W"; then
1765 if (cygpath --version) >/dev/null 2>/dev/null; then
1766 CYGPATH_W='cygpath -w'
1773 # Define the identity of the package.
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE "$PACKAGE"
1783 cat >>confdefs.h <<_ACEOF
1784 #define VERSION "$VERSION"
1787 # Some tools Automake needs.
1789 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1792 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1795 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1798 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1801 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1804 AMTAR=${AMTAR-"${am_missing_run}tar"}
1806 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1808 # Installed binaries are usually stripped using `strip' when the user
1809 # run `make install-strip'. However `strip' might not be the right
1810 # tool to use in cross-compilation environments, therefore Automake
1811 # will honor the `STRIP' environment variable to overrule this program.
1812 if test "$cross_compiling" != no; then
1813 if test -n "$ac_tool_prefix"; then
1814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1815 set dummy ${ac_tool_prefix}strip; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_STRIP+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 if test -n "$STRIP"; then
1822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 test -z "$as_dir" && as_dir=.
1829 for ac_exec_ext in '' $ac_executable_extensions; do
1830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 STRIP=$ac_cv_prog_STRIP
1841 if test -n "$STRIP"; then
1842 echo "$as_me:$LINENO: result: $STRIP" >&5
1843 echo "${ECHO_T}$STRIP" >&6
1845 echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1850 if test -z "$ac_cv_prog_STRIP"; then
1852 # Extract the first word of "strip", so it can be a program name with args.
1853 set dummy strip; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test -n "$ac_ct_STRIP"; then
1860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_ac_ct_STRIP="strip"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1879 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1880 if test -n "$ac_ct_STRIP"; then
1881 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1882 echo "${ECHO_T}$ac_ct_STRIP" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1890 STRIP="$ac_cv_prog_STRIP"
1894 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1896 # We need awk for the "check" target. The system "awk" is bad on
1901 ac_config_headers="$ac_config_headers config.h"
1904 # Make sure we can run config.sub.
1905 $ac_config_sub sun4 >/dev/null 2>&1 ||
1906 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1907 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1908 { (exit 1); exit 1; }; }
1910 echo "$as_me:$LINENO: checking build system type" >&5
1911 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1912 if test "${ac_cv_build+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 ac_cv_build_alias=$build_alias
1916 test -z "$ac_cv_build_alias" &&
1917 ac_cv_build_alias=`$ac_config_guess`
1918 test -z "$ac_cv_build_alias" &&
1919 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1920 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1921 { (exit 1); exit 1; }; }
1922 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1923 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1924 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1925 { (exit 1); exit 1; }; }
1928 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1929 echo "${ECHO_T}$ac_cv_build" >&6
1931 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1932 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1933 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1936 echo "$as_me:$LINENO: checking host system type" >&5
1937 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1938 if test "${ac_cv_host+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 ac_cv_host_alias=$host_alias
1942 test -z "$ac_cv_host_alias" &&
1943 ac_cv_host_alias=$ac_cv_build_alias
1944 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1945 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1946 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1947 { (exit 1); exit 1; }; }
1950 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1951 echo "${ECHO_T}$ac_cv_host" >&6
1953 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1954 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1955 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC="$CC" # Let the user override the test.
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 if test -n "$CC"; then
1993 echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2001 if test -z "$ac_cv_prog_CC"; then
2003 # Extract the first word of "gcc", so it can be a program name with args.
2004 set dummy gcc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 ac_cv_prog_ac_ct_CC="gcc"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030 if test -n "$ac_ct_CC"; then
2031 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032 echo "${ECHO_T}$ac_ct_CC" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2043 if test -z "$CC"; then
2044 if test -n "$ac_tool_prefix"; then
2045 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2046 set dummy ${ac_tool_prefix}cc; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC="$CC" # Let the user override the test.
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 ac_cv_prog_CC="${ac_tool_prefix}cc"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 if test -n "$CC"; then
2073 echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2081 if test -z "$ac_cv_prog_CC"; then
2083 # Extract the first word of "cc", so it can be a program name with args.
2084 set dummy cc; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 if test -n "$ac_ct_CC"; then
2091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100 ac_cv_prog_ac_ct_CC="cc"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2110 if test -n "$ac_ct_CC"; then
2111 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2112 echo "${ECHO_T}$ac_ct_CC" >&6
2114 echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2124 if test -z "$CC"; then
2125 # Extract the first word of "cc", so it can be a program name with args.
2126 set dummy cc; ac_word=$2
2127 echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 if test -n "$CC"; then
2133 ac_cv_prog_CC="$CC" # Let the user override the test.
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2144 ac_prog_rejected=yes
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 if test $ac_prog_rejected = yes; then
2155 # We found a bogon in the path, so make sure we never use it.
2156 set dummy $ac_cv_prog_CC
2158 if test $# != 0; then
2159 # We chose a different compiler from the bogus one.
2160 # However, it has the same basename, so the bogon will be chosen
2161 # first if we set CC to just the basename; use the full file name.
2163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2169 if test -n "$CC"; then
2170 echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6
2173 echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2178 if test -z "$CC"; then
2179 if test -n "$ac_tool_prefix"; then
2182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 if test -n "$CC"; then
2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209 if test -n "$CC"; then
2210 echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2213 echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2217 test -n "$CC" && break
2220 if test -z "$CC"; then
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test -n "$ac_ct_CC"; then
2232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241 ac_cv_prog_ac_ct_CC="$ac_prog"
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6
2255 echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2259 test -n "$ac_ct_CC" && break
2268 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2274 # Provide some information about the compiler.
2275 echo "$as_me:$LINENO:" \
2276 "checking for C compiler version" >&5
2277 ac_compiler=`set X $ac_compile; echo $2`
2278 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2279 (eval $ac_compiler --version </dev/null >&5) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }
2283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2284 (eval $ac_compiler -v </dev/null >&5) 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }
2288 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2289 (eval $ac_compiler -V </dev/null >&5) 2>&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }
2294 cat >conftest.$ac_ext <<_ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2309 ac_clean_files_save=$ac_clean_files
2310 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2311 # Try to create an executable without -o first, disregard a.out.
2312 # It will help us diagnose broken compilers, and finding out an intuition
2314 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2315 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2316 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2317 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2318 (eval $ac_link_default) 2>&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; then
2322 # Find the output, starting from the most likely. This scheme is
2323 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2326 # Be careful to initialize this variable, since it used to be cached.
2327 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2329 # b.out is created by i960 compilers.
2330 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2332 test -f "$ac_file" || continue
2334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2337 # This is the source file.
2340 # We found the default executable, but exeext='' is most
2344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2345 # FIXME: I believe we export ac_cv_exeext for Libtool,
2346 # but it would be cool to find out if it's true. Does anybody
2347 # maintain Libtool? --akim.
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2358 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2359 See \`config.log' for more details." >&5
2360 echo "$as_me: error: C compiler cannot create executables
2361 See \`config.log' for more details." >&2;}
2362 { (exit 77); exit 77; }; }
2365 ac_exeext=$ac_cv_exeext
2366 echo "$as_me:$LINENO: result: $ac_file" >&5
2367 echo "${ECHO_T}$ac_file" >&6
2369 # Check the compiler produces executables we can run. If not, either
2370 # the compiler is broken, or we cross compile.
2371 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2372 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2373 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2374 # If not cross compiling, check that we can run a simple program.
2375 if test "$cross_compiling" != yes; then
2376 if { ac_try='./$ac_file'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2384 if test "$cross_compiling" = maybe; then
2387 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2388 If you meant to cross compile, use \`--host'.
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: cannot run C compiled programs.
2391 If you meant to cross compile, use \`--host'.
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2397 echo "$as_me:$LINENO: result: yes" >&5
2398 echo "${ECHO_T}yes" >&6
2400 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2401 ac_clean_files=$ac_clean_files_save
2402 # Check the compiler produces executables we can run. If not, either
2403 # the compiler is broken, or we cross compile.
2404 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2405 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2406 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2407 echo "${ECHO_T}$cross_compiling" >&6
2409 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2410 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2412 (eval $ac_link) 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; then
2416 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2417 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2418 # work properly (i.e., refer to `conftest.exe'), while it won't with
2420 for ac_file in conftest.exe conftest conftest.*; do
2421 test -f "$ac_file" || continue
2423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2424 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2431 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2432 See \`config.log' for more details." >&5
2433 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2434 See \`config.log' for more details." >&2;}
2435 { (exit 1); exit 1; }; }
2438 rm -f conftest$ac_cv_exeext
2439 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2440 echo "${ECHO_T}$ac_cv_exeext" >&6
2442 rm -f conftest.$ac_ext
2443 EXEEXT=$ac_cv_exeext
2445 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2446 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2447 if test "${ac_cv_objext+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 cat >conftest.$ac_ext <<_ACEOF
2453 cat confdefs.h >>conftest.$ac_ext
2454 cat >>conftest.$ac_ext <<_ACEOF
2455 /* end confdefs.h. */
2465 rm -f conftest.o conftest.obj
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; then
2471 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2479 echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2482 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2483 See \`config.log' for more details." >&5
2484 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&2;}
2486 { (exit 1); exit 1; }; }
2489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2491 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2492 echo "${ECHO_T}$ac_cv_objext" >&6
2493 OBJEXT=$ac_cv_objext
2495 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2496 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2497 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 cat >conftest.$ac_ext <<_ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>conftest.er1
2522 grep -v '^ *+' conftest.er1 >conftest.err
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2547 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2550 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2551 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2552 GCC=`test $ac_compiler_gnu = yes && echo yes`
2553 ac_test_CFLAGS=${CFLAGS+set}
2554 ac_save_CFLAGS=$CFLAGS
2556 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2557 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2558 if test "${ac_cv_prog_cc_g+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.$ac_objext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>conftest.er1
2580 grep -v '^ *+' conftest.er1 >conftest.err
2582 cat conftest.err >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; }; then
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2606 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2608 if test "$ac_test_CFLAGS" = set; then
2609 CFLAGS=$ac_save_CFLAGS
2610 elif test $ac_cv_prog_cc_g = yes; then
2611 if test "$GCC" = yes; then
2617 if test "$GCC" = yes; then
2623 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2624 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2625 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 ac_cv_prog_cc_stdc=no
2630 cat >conftest.$ac_ext <<_ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2638 #include <sys/types.h>
2639 #include <sys/stat.h>
2640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2641 struct buf { int x; };
2642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2643 static char *e (p, i)
2649 static char *f (char * (*g) (char **, int), char **p, ...)
2654 s = g (p, va_arg (v,int));
2659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2660 function prototypes and stuff, but not '\xHH' hex character constants.
2661 These don't provoke an error unfortunately, instead are silently treated
2662 as 'x'. The following induces an error, until -std1 is added to get
2663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2664 array size at least. It's necessary to write '\x00'==0 to get something
2665 that's true only with -std1. */
2666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2668 int test (int i, double x);
2669 struct s1 {int (*f) (int a);};
2670 struct s2 {int (*f) (double a);};
2671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2677 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2682 # Don't try gcc -ansi; that turns off useful extensions and
2683 # breaks some systems' header files.
2684 # AIX -qlanglvl=ansi
2685 # Ultrix and OSF/1 -std1
2686 # HP-UX 10.20 and later -Ae
2687 # HP-UX older versions -Aa -D_HPUX_SOURCE
2688 # SVR4 -Xc -D__EXTENSIONS__
2689 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2691 CC="$ac_save_CC $ac_arg"
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2696 grep -v '^ *+' conftest.er1 >conftest.err
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest.$ac_objext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 ac_cv_prog_cc_stdc=$ac_arg
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f conftest.err conftest.$ac_objext
2722 rm -f conftest.$ac_ext conftest.$ac_objext
2727 case "x$ac_cv_prog_cc_stdc" in
2729 echo "$as_me:$LINENO: result: none needed" >&5
2730 echo "${ECHO_T}none needed" >&6 ;;
2732 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2733 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2734 CC="$CC $ac_cv_prog_cc_stdc" ;;
2737 # Some people use a C++ compiler to compile C. Since we use `exit',
2738 # in C++ we need to declare it. In case someone uses the same compiler
2739 # for both compiling C and C++ we need to have the C++ compiler decide
2740 # the declaration of exit, since it's the most demanding environment.
2741 cat >conftest.$ac_ext <<_ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748 (eval $ac_compile) 2>conftest.er1
2750 grep -v '^ *+' conftest.er1 >conftest.err
2752 cat conftest.err >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; } &&
2761 { ac_try='test -s conftest.$ac_objext'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; }; then
2767 for ac_declaration in \
2769 'extern "C" void std::exit (int) throw (); using std::exit;' \
2770 'extern "C" void std::exit (int); using std::exit;' \
2771 'extern "C" void exit (int) throw ();' \
2772 'extern "C" void exit (int);' \
2775 cat >conftest.$ac_ext <<_ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2791 rm -f conftest.$ac_objext
2792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793 (eval $ac_compile) 2>conftest.er1
2795 grep -v '^ *+' conftest.er1 >conftest.err
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
2800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; } &&
2806 { ac_try='test -s conftest.$ac_objext'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; } &&
2850 { ac_try='test -s conftest.$ac_objext'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865 if test -n "$ac_declaration"; then
2866 echo '#ifdef __cplusplus' >>confdefs.h
2867 echo $ac_declaration >>confdefs.h
2868 echo '#endif' >>confdefs.h
2872 echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 DEPDIR="${am__leading_dot}deps"
2884 ac_config_commands="$ac_config_commands depfiles"
2887 am_make=${MAKE-make}
2888 cat > confinc << 'END'
2893 # If we don't find an include directive, just comment out the code.
2894 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2895 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2899 # First try GNU make style include.
2900 echo "include confinc" > confmf
2901 # We grep out `Entering directory' and `Leaving directory'
2902 # messages which can occur if `w' ends up in MAKEFLAGS.
2903 # In particular we don't look at `^make:' because GNU make might
2904 # be invoked under some other name (usually "gmake"), in which
2905 # case it prints its new name instead of `make'.
2906 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2911 # Now try BSD make style include.
2912 if test "$am__include" = "#"; then
2913 echo '.include "confinc"' > confmf
2914 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2915 am__include=.include
2922 echo "$as_me:$LINENO: result: $_am_result" >&5
2923 echo "${ECHO_T}$_am_result" >&6
2924 rm -f confinc confmf
2926 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2927 if test "${enable_dependency_tracking+set}" = set; then
2928 enableval="$enable_dependency_tracking"
2931 if test "x$enable_dependency_tracking" != xno; then
2932 am_depcomp="$ac_aux_dir/depcomp"
2937 if test "x$enable_dependency_tracking" != xno; then
2948 depcc="$CC" am_compiler_list=
2950 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2951 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2952 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2956 # We make a subdir and do the tests there. Otherwise we can end up
2957 # making bogus files that we don't know about and never remove. For
2958 # instance it was reported that on HP-UX the gcc test will end up
2959 # making a dummy file named `D' -- because `-MD' means `put the output
2962 # Copy depcomp to subdir because otherwise we won't find it if we're
2963 # using a relative directory.
2964 cp "$am_depcomp" conftest.dir
2966 # We will build objects and dependencies in a subdirectory because
2967 # it helps to detect inapplicable dependency modes. For instance
2968 # both Tru64's cc and ICC support -MD to output dependencies as a
2969 # side effect of compilation, but ICC will put the dependencies in
2970 # the current directory while Tru64 will put them in the object
2974 am_cv_CC_dependencies_compiler_type=none
2975 if test "$am_compiler_list" = ""; then
2976 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2978 for depmode in $am_compiler_list; do
2979 # Setup a source with many dependencies, because some compilers
2980 # like to wrap large dependency lists on column 80 (with \), and
2981 # we should not choose a depcomp mode which is confused by this.
2983 # We need to recreate these files for each test, as the compiler may
2984 # overwrite some of them when testing with obscure command lines.
2985 # This happens at least with the AIX C compiler.
2987 for i in 1 2 3 4 5 6; do
2988 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2995 # after this tag, mechanisms are not by side-effect, so they'll
2996 # only be used when explicitly requested
2997 if test "x$enable_dependency_tracking" = xyes; then
3005 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3006 # mode. It turns out that the SunPro C++ compiler does not properly
3007 # handle `-M -o', and we need to detect this.
3008 if depmode=$depmode \
3009 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3011 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3012 >/dev/null 2>conftest.err &&
3013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3014 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3016 # icc doesn't choke on unknown options, it will just issue warnings
3017 # (even with -Werror). So we grep stderr for any message
3018 # that says an option was ignored.
3019 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3020 am_cv_CC_dependencies_compiler_type=$depmode
3029 am_cv_CC_dependencies_compiler_type=none
3033 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3034 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3035 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3040 test "x$enable_dependency_tracking" != xno \
3041 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3043 am__fastdepCC_FALSE='#'
3045 am__fastdepCC_TRUE='#'
3046 am__fastdepCC_FALSE=
3051 ac_cpp='$CPP $CPPFLAGS'
3052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3056 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3057 # On Suns, sometimes $CPP names a directory.
3058 if test -n "$CPP" && test -d "$CPP"; then
3061 if test -z "$CPP"; then
3062 if test "${ac_cv_prog_CPP+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 # Double quotes because CPP needs to be expanded
3066 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3069 for ac_c_preproc_warn_flag in '' yes
3071 # Use a header file that comes with gcc, so configuring glibc
3072 # with a fresh cross-compiler works.
3073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074 # <limits.h> exists even on freestanding compilers.
3075 # On the NeXT, cc -E runs the code through the compiler's parser,
3076 # not just through cpp. "Syntax error" is here to catch this case.
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3084 # include <limits.h>
3086 # include <assert.h>
3090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3093 grep -v '^ *+' conftest.er1 >conftest.err
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } >/dev/null; then
3098 if test -s conftest.err; then
3099 ac_cpp_err=$ac_c_preproc_warn_flag
3100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3107 if test -z "$ac_cpp_err"; then
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 # Broken: fails on valid input.
3116 rm -f conftest.err conftest.$ac_ext
3118 # OK, works on sane cases. Now check whether non-existent headers
3119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <ac_nonexistent.h>
3128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3131 grep -v '^ *+' conftest.er1 >conftest.err
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } >/dev/null; then
3136 if test -s conftest.err; then
3137 ac_cpp_err=$ac_c_preproc_warn_flag
3138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3145 if test -z "$ac_cpp_err"; then
3146 # Broken: success on invalid input.
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 # Passes both tests.
3156 rm -f conftest.err conftest.$ac_ext
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then
3173 echo "$as_me:$LINENO: result: $CPP" >&5
3174 echo "${ECHO_T}$CPP" >&6
3176 for ac_c_preproc_warn_flag in '' yes
3178 # Use a header file that comes with gcc, so configuring glibc
3179 # with a fresh cross-compiler works.
3180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3181 # <limits.h> exists even on freestanding compilers.
3182 # On the NeXT, cc -E runs the code through the compiler's parser,
3183 # not just through cpp. "Syntax error" is here to catch this case.
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3191 # include <limits.h>
3193 # include <assert.h>
3197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3200 grep -v '^ *+' conftest.er1 >conftest.err
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } >/dev/null; then
3205 if test -s conftest.err; then
3206 ac_cpp_err=$ac_c_preproc_warn_flag
3207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3214 if test -z "$ac_cpp_err"; then
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 # Broken: fails on valid input.
3223 rm -f conftest.err conftest.$ac_ext
3225 # OK, works on sane cases. Now check whether non-existent headers
3226 # can be detected and how.
3227 cat >conftest.$ac_ext <<_ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3233 #include <ac_nonexistent.h>
3235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null; then
3243 if test -s conftest.err; then
3244 ac_cpp_err=$ac_c_preproc_warn_flag
3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252 if test -z "$ac_cpp_err"; then
3253 # Broken: success on invalid input.
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 # Passes both tests.
3263 rm -f conftest.err conftest.$ac_ext
3266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267 rm -f conftest.err conftest.$ac_ext
3268 if $ac_preproc_ok; then
3271 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3274 See \`config.log' for more details." >&2;}
3275 { (exit 1); exit 1; }; }
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 # Find a good install program. We prefer a C program (faster),
3285 # so one script is as good as another. But avoid the broken or
3286 # incompatible versions:
3287 # SysV /etc/install, /usr/sbin/install
3288 # SunOS /usr/etc/install
3289 # IRIX /sbin/install
3291 # AmigaOS /C/install, which installs bootblocks on floppy discs
3292 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3295 # OS/2's system install, which has a completely different semantic
3296 # ./install, which can be erroneously created by make from ./install.sh.
3297 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3298 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3299 if test -z "$INSTALL"; then
3300 if test "${ac_cv_path_install+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir=.
3308 # Account for people who put trailing slashes in PATH elements.
3310 ./ | .// | /cC/* | \
3311 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3312 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3315 # OSF1 and SCO ODT 3.0 have their own names for install.
3316 # Don't use installbsd from OSF since it installs stuff as root
3318 for ac_prog in ginstall scoinst install; do
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3321 if test $ac_prog = install &&
3322 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3323 # AIX install. It has an incompatible calling convention.
3325 elif test $ac_prog = install &&
3326 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3327 # program-specific install script used by HP pwplus--don't use.
3330 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3342 if test "${ac_cv_path_install+set}" = set; then
3343 INSTALL=$ac_cv_path_install
3345 # As a last resort, use the slow shell script. We don't cache a
3346 # path for INSTALL within a source directory, because that will
3347 # break other packages using the cache if that directory is
3348 # removed, or if the path is relative.
3349 INSTALL=$ac_install_sh
3352 echo "$as_me:$LINENO: result: $INSTALL" >&5
3353 echo "${ECHO_T}$INSTALL" >&6
3355 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3356 # It thinks the first close brace ends the variable substitution.
3357 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3359 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3361 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3363 for ac_prog in gawk mawk nawk awk
3365 # Extract the first word of "$ac_prog", so it can be a program name with args.
3366 set dummy $ac_prog; ac_word=$2
3367 echo "$as_me:$LINENO: checking for $ac_word" >&5
3368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3369 if test "${ac_cv_prog_AWK+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 if test -n "$AWK"; then
3373 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382 ac_cv_prog_AWK="$ac_prog"
3383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test -n "$AWK"; then
3393 echo "$as_me:$LINENO: result: $AWK" >&5
3394 echo "${ECHO_T}$AWK" >&6
3396 echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6
3400 test -n "$AWK" && break
3403 # Check whether --enable-shared or --disable-shared was given.
3404 if test "${enable_shared+set}" = set; then
3405 enableval="$enable_shared"
3406 p=${PACKAGE-default}
3408 yes) enable_shared=yes ;;
3409 no) enable_shared=no ;;
3412 # Look at the argument we got. We use all the common list separators.
3413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3414 for pkg in $enableval; do
3416 if test "X$pkg" = "X$p"; then
3427 # Check whether --enable-static or --disable-static was given.
3428 if test "${enable_static+set}" = set; then
3429 enableval="$enable_static"
3430 p=${PACKAGE-default}
3432 yes) enable_static=yes ;;
3433 no) enable_static=no ;;
3436 # Look at the argument we got. We use all the common list separators.
3437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3438 for pkg in $enableval; do
3440 if test "X$pkg" = "X$p"; then
3451 # Check whether --enable-fast-install or --disable-fast-install was given.
3452 if test "${enable_fast_install+set}" = set; then
3453 enableval="$enable_fast_install"
3454 p=${PACKAGE-default}
3456 yes) enable_fast_install=yes ;;
3457 no) enable_fast_install=no ;;
3459 enable_fast_install=no
3460 # Look at the argument we got. We use all the common list separators.
3461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3462 for pkg in $enableval; do
3464 if test "X$pkg" = "X$p"; then
3465 enable_fast_install=yes
3472 enable_fast_install=yes
3475 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3476 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3477 if test "${lt_cv_path_SED+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 # Loop through the user's path and test for sed and gsed.
3481 # Then use that list of sed's as ones to test for truncation.
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir=.
3487 for lt_ac_prog in sed gsed; do
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3490 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3497 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3498 # along with /bin/sed that truncates output.
3499 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3500 test ! -f $lt_ac_sed && break
3501 cat /dev/null > conftest.in
3503 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3504 # Check for GNU sed and select it if it is found.
3505 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3506 lt_cv_path_SED=$lt_ac_sed
3510 cat conftest.in conftest.in >conftest.tmp
3511 mv conftest.tmp conftest.in
3512 cp conftest.in conftest.nl
3514 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3515 cmp -s conftest.out conftest.nl || break
3516 # 10000 chars as input seems more than enough
3517 test $lt_ac_count -gt 10 && break
3518 lt_ac_count=`expr $lt_ac_count + 1`
3519 if test $lt_ac_count -gt $lt_ac_max; then
3520 lt_ac_max=$lt_ac_count
3521 lt_cv_path_SED=$lt_ac_sed
3529 echo "$as_me:$LINENO: result: $SED" >&5
3530 echo "${ECHO_T}$SED" >&6
3532 echo "$as_me:$LINENO: checking for egrep" >&5
3533 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3534 if test "${ac_cv_prog_egrep+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3538 then ac_cv_prog_egrep='grep -E'
3539 else ac_cv_prog_egrep='egrep'
3542 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3543 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3544 EGREP=$ac_cv_prog_egrep
3548 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3549 if test "${with_gnu_ld+set}" = set; then
3550 withval="$with_gnu_ld"
3551 test "$withval" = no || with_gnu_ld=yes
3556 if test "$GCC" = yes; then
3557 # Check if gcc -print-prog-name=ld gives a path.
3558 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3559 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3562 # gcc leaves a trailing carriage return which upsets mingw
3563 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3565 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3568 # Accept absolute paths.
3570 re_direlt='/[^/][^/]*/\.\./'
3571 # Canonicalize the pathname of ld
3572 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3573 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3574 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3576 test -z "$LD" && LD="$ac_prog"
3579 # If it fails, then pretend we aren't using GCC.
3583 # If it is relative, then search for the first ld in PATH.
3587 elif test "$with_gnu_ld" = yes; then
3588 echo "$as_me:$LINENO: checking for GNU ld" >&5
3589 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3591 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3592 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3594 if test "${lt_cv_path_LD+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 if test -z "$LD"; then
3598 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3599 for ac_dir in $PATH; do
3601 test -z "$ac_dir" && ac_dir=.
3602 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3603 lt_cv_path_LD="$ac_dir/$ac_prog"
3604 # Check to see if the program is GNU ld. I'd rather use --version,
3605 # but apparently some GNU ld's only accept -v.
3606 # Break only if it was the GNU/non-GNU ld that we prefer.
3607 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3608 *GNU* | *'with BFD'*)
3609 test "$with_gnu_ld" != no && break
3612 test "$with_gnu_ld" != yes && break
3619 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3624 if test -n "$LD"; then
3625 echo "$as_me:$LINENO: result: $LD" >&5
3626 echo "${ECHO_T}$LD" >&6
3628 echo "$as_me:$LINENO: result: no" >&5
3629 echo "${ECHO_T}no" >&6
3631 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3632 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3633 { (exit 1); exit 1; }; }
3634 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3635 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3636 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3640 case `$LD -v 2>&1 </dev/null` in
3641 *GNU* | *'with BFD'*)
3642 lt_cv_prog_gnu_ld=yes
3645 lt_cv_prog_gnu_ld=no
3649 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3650 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3651 with_gnu_ld=$lt_cv_prog_gnu_ld
3654 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3655 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3656 if test "${lt_cv_ld_reload_flag+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 lt_cv_ld_reload_flag='-r'
3661 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3662 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3663 reload_flag=$lt_cv_ld_reload_flag
3664 case $reload_flag in
3666 *) reload_flag=" $reload_flag" ;;
3668 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3670 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3671 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3672 if test "${lt_cv_path_NM+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 if test -n "$NM"; then
3676 # Let the user override the test.
3679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3680 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3682 test -z "$ac_dir" && ac_dir=.
3683 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3684 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3685 # Check to see if the nm accepts a BSD-compat flag.
3686 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3687 # nm: unknown option "B" ignored
3688 # Tru64's nm complains that /dev/null is an invalid object file
3689 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3690 */dev/null* | *'Invalid file or object type'*)
3691 lt_cv_path_NM="$tmp_nm -B"
3695 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3697 lt_cv_path_NM="$tmp_nm -p"
3701 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3702 continue # so that we can try to find one that supports BSD flags
3709 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3712 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3713 echo "${ECHO_T}$lt_cv_path_NM" >&6
3716 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3717 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3719 if test "$LN_S" = "ln -s"; then
3720 echo "$as_me:$LINENO: result: yes" >&5
3721 echo "${ECHO_T}yes" >&6
3723 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3724 echo "${ECHO_T}no, using $LN_S" >&6
3727 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3728 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3729 if test "${lt_cv_deplibs_check_method+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 lt_cv_file_magic_cmd='$MAGIC_CMD'
3733 lt_cv_file_magic_test_file=
3734 lt_cv_deplibs_check_method='unknown'
3735 # Need to set the preceding variable on all platforms that support
3736 # interlibrary dependencies.
3737 # 'none' -- dependencies not supported.
3738 # `unknown' -- same as none, but documents that we really don't know.
3739 # 'pass_all' -- all dependencies passed with no checks.
3740 # 'test_compile' -- check by making test program.
3741 # 'file_magic [[regex]]' -- check by looking for files in library path
3742 # which responds to the $file_magic_cmd with a given extended regex.
3743 # If you have `file' or equivalent on your system and you're not sure
3744 # whether `pass_all' will *always* work, you probably want this one.
3748 lt_cv_deplibs_check_method=pass_all
3752 lt_cv_deplibs_check_method=pass_all
3756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3757 lt_cv_file_magic_cmd='/usr/bin/file -L'
3758 lt_cv_file_magic_test_file=/shlib/libc.so
3762 # func_win32_libid is a shell function defined in ltmain.sh
3763 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3764 lt_cv_file_magic_cmd='func_win32_libid'
3768 # Base MSYS/MinGW do not provide the 'file' command needed by
3769 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3770 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3771 lt_cv_file_magic_cmd='$OBJDUMP -f'
3774 darwin* | rhapsody*)
3775 lt_cv_deplibs_check_method=pass_all
3778 freebsd* | kfreebsd*-gnu)
3779 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3782 # Not sure whether the presence of OpenBSD here was a mistake.
3783 # Let's accept both of them until this is cleared up.
3784 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3785 lt_cv_file_magic_cmd=/usr/bin/file
3786 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3790 lt_cv_deplibs_check_method=pass_all
3795 lt_cv_deplibs_check_method=pass_all
3798 hpux10.20* | hpux11*)
3799 lt_cv_file_magic_cmd=/usr/bin/file
3802 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3803 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3806 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]'
3807 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3810 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3811 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3816 irix5* | irix6* | nonstopux*)
3818 *-32|*"-32 ") libmagic=32-bit;;
3819 *-n32|*"-n32 ") libmagic=N32;;
3820 *-64|*"-64 ") libmagic=64-bit;;
3821 *) libmagic=never-match;;
3823 lt_cv_deplibs_check_method=pass_all
3826 # This must be Linux ELF.
3829 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3830 lt_cv_deplibs_check_method=pass_all ;;
3832 # glibc up to 2.1.1 does not perform some relocations on ARM
3833 # this will be overridden with pass_all, but let us keep it just in case
3834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3836 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3837 lt_cv_deplibs_check_method=pass_all
3841 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3842 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3844 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3849 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3850 lt_cv_file_magic_cmd=/usr/bin/file
3851 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3855 lt_cv_deplibs_check_method=unknown
3859 lt_cv_file_magic_cmd=/usr/bin/file
3860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3864 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3868 osf3* | osf4* | osf5*)
3869 lt_cv_deplibs_check_method=pass_all
3873 lt_cv_deplibs_check_method=pass_all
3877 lt_cv_deplibs_check_method=pass_all
3880 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3881 case $host_vendor in
3883 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]'
3884 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3887 lt_cv_deplibs_check_method=pass_all
3890 lt_cv_file_magic_cmd='/bin/file'
3891 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3894 lt_cv_file_magic_cmd='/bin/file'
3895 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3896 lt_cv_file_magic_test_file=/lib/libc.so
3899 lt_cv_deplibs_check_method=pass_all
3904 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3905 lt_cv_deplibs_check_method=pass_all
3910 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3911 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3912 file_magic_cmd=$lt_cv_file_magic_cmd
3913 deplibs_check_method=$lt_cv_deplibs_check_method
3914 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3919 # If no C compiler was specified, use CC.
3922 # Allow CC to be a program name with arguments.
3926 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3927 if test "${enable_libtool_lock+set}" = set; then
3928 enableval="$enable_libtool_lock"
3931 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3933 # Some flags need to be propagated to the compiler or linker for good
3937 # Find out which ABI we are using.
3938 echo 'int i;' > conftest.$ac_ext
3939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3940 (eval $ac_compile) 2>&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; then
3944 case `/usr/bin/file conftest.$ac_objext` in
3956 # Find out which ABI we are using.
3957 echo '#line 3957 "configure"' > conftest.$ac_ext
3958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3959 (eval $ac_compile) 2>&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; then
3963 if test "$lt_cv_prog_gnu_ld" = yes; then
3964 case `/usr/bin/file conftest.$ac_objext` in
3966 LD="${LD-ld} -melf32bsmip"
3969 LD="${LD-ld} -melf32bmipn32"
3972 LD="${LD-ld} -melf64bmip"
3976 case `/usr/bin/file conftest.$ac_objext` in
3992 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3993 # Find out which ABI we are using.
3994 echo 'int i;' > conftest.$ac_ext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996 (eval $ac_compile) 2>&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; then
4000 case "`/usr/bin/file conftest.o`" in
4004 LD="${LD-ld} -m elf_i386"
4006 ppc64-*linux*|powerpc64-*linux*)
4007 LD="${LD-ld} -m elf32ppclinux"
4010 LD="${LD-ld} -m elf_s390"
4013 LD="${LD-ld} -m elf32_sparc"
4020 LD="${LD-ld} -m elf_x86_64"
4022 ppc*-*linux*|powerpc*-*linux*)
4023 LD="${LD-ld} -m elf64ppc"
4026 LD="${LD-ld} -m elf64_s390"
4029 LD="${LD-ld} -m elf64_sparc"
4039 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4040 SAVE_CFLAGS="$CFLAGS"
4041 CFLAGS="$CFLAGS -belf"
4042 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4043 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4044 if test "${lt_cv_cc_needs_belf+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053 cat >conftest.$ac_ext <<_ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4068 rm -f conftest.$ac_objext conftest$ac_exeext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4070 (eval $ac_link) 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest$ac_exeext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 lt_cv_cc_needs_belf=yes
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4094 lt_cv_cc_needs_belf=no
4096 rm -f conftest.err conftest.$ac_objext \
4097 conftest$ac_exeext conftest.$ac_ext
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4106 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4107 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4108 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4109 CFLAGS="$SAVE_CFLAGS"
4115 need_locks="$enable_libtool_lock"
4119 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4121 if test "${ac_cv_header_stdc+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 cat >conftest.$ac_ext <<_ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4143 rm -f conftest.$ac_objext
4144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145 (eval $ac_compile) 2>conftest.er1
4147 grep -v '^ *+' conftest.er1 >conftest.err
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest.$ac_objext'
4159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 ac_cv_header_stdc=yes
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4169 ac_cv_header_stdc=no
4171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4173 if test $ac_cv_header_stdc = yes; then
4174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4175 cat >conftest.$ac_ext <<_ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4185 $EGREP "memchr" >/dev/null 2>&1; then
4188 ac_cv_header_stdc=no
4194 if test $ac_cv_header_stdc = yes; then
4195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206 $EGREP "free" >/dev/null 2>&1; then
4209 ac_cv_header_stdc=no
4215 if test $ac_cv_header_stdc = yes; then
4216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4217 if test "$cross_compiling" = yes; then
4220 cat >conftest.$ac_ext <<_ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4227 #if ((' ' & 0x0FF) == 0x020)
4228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4231 # define ISLOWER(c) \
4232 (('a' <= (c) && (c) <= 'i') \
4233 || ('j' <= (c) && (c) <= 'r') \
4234 || ('s' <= (c) && (c) <= 'z'))
4235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4243 for (i = 0; i < 256; i++)
4244 if (XOR (islower (i), ISLOWER (i))
4245 || toupper (i) != TOUPPER (i))
4250 rm -f conftest$ac_exeext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4252 (eval $ac_link) 2>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4263 echo "$as_me: program exited with status $ac_status" >&5
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4268 ac_cv_header_stdc=no
4270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4274 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4275 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4276 if test $ac_cv_header_stdc = yes; then
4278 cat >>confdefs.h <<\_ACEOF
4279 #define STDC_HEADERS 1
4284 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4294 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4295 inttypes.h stdint.h unistd.h
4297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4298 echo "$as_me:$LINENO: checking for $ac_header" >&5
4299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 cat >conftest.$ac_ext <<_ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4309 $ac_includes_default
4311 #include <$ac_header>
4313 rm -f conftest.$ac_objext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315 (eval $ac_compile) 2>conftest.er1
4317 grep -v '^ *+' conftest.er1 >conftest.err
4319 cat conftest.err >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } &&
4322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; } &&
4328 { ac_try='test -s conftest.$ac_objext'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 eval "$as_ac_Header=yes"
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4339 eval "$as_ac_Header=no"
4341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4346 cat >>confdefs.h <<_ACEOF
4347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4356 for ac_header in dlfcn.h
4358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4360 echo "$as_me:$LINENO: checking for $ac_header" >&5
4361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4368 # Is the header compilable?
4369 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 $ac_includes_default
4378 #include <$ac_header>
4380 rm -f conftest.$ac_objext
4381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382 (eval $ac_compile) 2>conftest.er1
4384 grep -v '^ *+' conftest.er1 >conftest.err
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; } &&
4395 { ac_try='test -s conftest.$ac_objext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 ac_header_compiler=yes
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 ac_header_compiler=no
4408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4410 echo "${ECHO_T}$ac_header_compiler" >&6
4412 # Is the header present?
4413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4415 cat >conftest.$ac_ext <<_ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4421 #include <$ac_header>
4423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4426 grep -v '^ *+' conftest.er1 >conftest.err
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } >/dev/null; then
4431 if test -s conftest.err; then
4432 ac_cpp_err=$ac_c_preproc_warn_flag
4433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4440 if test -z "$ac_cpp_err"; then
4441 ac_header_preproc=yes
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 ac_header_preproc=no
4448 rm -f conftest.err conftest.$ac_ext
4449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4450 echo "${ECHO_T}$ac_header_preproc" >&6
4452 # So? What about this header?
4453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4459 ac_header_preproc=yes
4462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4476 ## ------------------------------------------ ##
4477 ## Report this to the AC_PACKAGE_NAME lists. ##
4478 ## ------------------------------------------ ##
4481 sed "s/^/$as_me: WARNING: /" >&2
4484 echo "$as_me:$LINENO: checking for $ac_header" >&5
4485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 eval "$as_ac_Header=\$ac_header_preproc"
4491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4496 cat >>confdefs.h <<_ACEOF
4497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4505 ac_cpp='$CXXCPP $CPPFLAGS'
4506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4509 if test -n "$ac_tool_prefix"; then
4510 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_prog_CXX+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 if test -n "$CXX"; then
4520 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 if test -n "$CXX"; then
4540 echo "$as_me:$LINENO: result: $CXX" >&5
4541 echo "${ECHO_T}$CXX" >&6
4543 echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4547 test -n "$CXX" && break
4550 if test -z "$CXX"; then
4552 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4558 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 if test -n "$ac_ct_CXX"; then
4562 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_ac_ct_CXX="$ac_prog"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4581 if test -n "$ac_ct_CXX"; then
4582 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4583 echo "${ECHO_T}$ac_ct_CXX" >&6
4585 echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6
4589 test -n "$ac_ct_CXX" && break
4591 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4597 # Provide some information about the compiler.
4598 echo "$as_me:$LINENO:" \
4599 "checking for C++ compiler version" >&5
4600 ac_compiler=`set X $ac_compile; echo $2`
4601 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4602 (eval $ac_compiler --version </dev/null >&5) 2>&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }
4606 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4607 (eval $ac_compiler -v </dev/null >&5) 2>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }
4611 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4612 (eval $ac_compiler -V </dev/null >&5) 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }
4617 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4618 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4619 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 cat >conftest.$ac_ext <<_ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4640 rm -f conftest.$ac_objext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4642 (eval $ac_compile) 2>conftest.er1
4644 grep -v '^ *+' conftest.er1 >conftest.err
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4672 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4673 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4674 GXX=`test $ac_compiler_gnu = yes && echo yes`
4675 ac_test_CXXFLAGS=${CXXFLAGS+set}
4676 ac_save_CXXFLAGS=$CXXFLAGS
4678 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4679 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4680 if test "${ac_cv_prog_cxx_g+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 cat >conftest.$ac_ext <<_ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4698 rm -f conftest.$ac_objext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4700 (eval $ac_compile) 2>conftest.er1
4702 grep -v '^ *+' conftest.er1 >conftest.err
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; } &&
4713 { ac_try='test -s conftest.$ac_objext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4719 ac_cv_prog_cxx_g=yes
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4728 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4729 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4730 if test "$ac_test_CXXFLAGS" = set; then
4731 CXXFLAGS=$ac_save_CXXFLAGS
4732 elif test $ac_cv_prog_cxx_g = yes; then
4733 if test "$GXX" = yes; then
4739 if test "$GXX" = yes; then
4745 for ac_declaration in \
4747 'extern "C" void std::exit (int) throw (); using std::exit;' \
4748 'extern "C" void std::exit (int); using std::exit;' \
4749 'extern "C" void exit (int) throw ();' \
4750 'extern "C" void exit (int);' \
4753 cat >conftest.$ac_ext <<_ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>conftest.er1
4773 grep -v '^ *+' conftest.er1 >conftest.err
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4798 cat >conftest.$ac_ext <<_ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4813 rm -f conftest.$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>conftest.er1
4817 grep -v '^ *+' conftest.er1 >conftest.err
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; } &&
4828 { ac_try='test -s conftest.$ac_objext'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; }; then
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4843 if test -n "$ac_declaration"; then
4844 echo '#ifdef __cplusplus' >>confdefs.h
4845 echo $ac_declaration >>confdefs.h
4846 echo '#endif' >>confdefs.h
4850 ac_cpp='$CXXCPP $CPPFLAGS'
4851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4855 depcc="$CXX" am_compiler_list=
4857 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4858 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4859 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4863 # We make a subdir and do the tests there. Otherwise we can end up
4864 # making bogus files that we don't know about and never remove. For
4865 # instance it was reported that on HP-UX the gcc test will end up
4866 # making a dummy file named `D' -- because `-MD' means `put the output
4869 # Copy depcomp to subdir because otherwise we won't find it if we're
4870 # using a relative directory.
4871 cp "$am_depcomp" conftest.dir
4873 # We will build objects and dependencies in a subdirectory because
4874 # it helps to detect inapplicable dependency modes. For instance
4875 # both Tru64's cc and ICC support -MD to output dependencies as a
4876 # side effect of compilation, but ICC will put the dependencies in
4877 # the current directory while Tru64 will put them in the object
4881 am_cv_CXX_dependencies_compiler_type=none
4882 if test "$am_compiler_list" = ""; then
4883 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4885 for depmode in $am_compiler_list; do
4886 # Setup a source with many dependencies, because some compilers
4887 # like to wrap large dependency lists on column 80 (with \), and
4888 # we should not choose a depcomp mode which is confused by this.
4890 # We need to recreate these files for each test, as the compiler may
4891 # overwrite some of them when testing with obscure command lines.
4892 # This happens at least with the AIX C compiler.
4894 for i in 1 2 3 4 5 6; do
4895 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4902 # after this tag, mechanisms are not by side-effect, so they'll
4903 # only be used when explicitly requested
4904 if test "x$enable_dependency_tracking" = xyes; then
4912 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4913 # mode. It turns out that the SunPro C++ compiler does not properly
4914 # handle `-M -o', and we need to detect this.
4915 if depmode=$depmode \
4916 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4917 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4918 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4919 >/dev/null 2>conftest.err &&
4920 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4921 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4922 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4923 # icc doesn't choke on unknown options, it will just issue warnings
4924 # (even with -Werror). So we grep stderr for any message
4925 # that says an option was ignored.
4926 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4927 am_cv_CXX_dependencies_compiler_type=$depmode
4936 am_cv_CXX_dependencies_compiler_type=none
4940 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4941 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4942 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4947 test "x$enable_dependency_tracking" != xno \
4948 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4949 am__fastdepCXX_TRUE=
4950 am__fastdepCXX_FALSE='#'
4952 am__fastdepCXX_TRUE='#'
4953 am__fastdepCXX_FALSE=
4958 ac_cpp='$CXXCPP $CPPFLAGS'
4959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4962 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4963 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4964 if test -z "$CXXCPP"; then
4965 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 # Double quotes because CXXCPP needs to be expanded
4969 for CXXCPP in "$CXX -E" "/lib/cpp"
4972 for ac_cxx_preproc_warn_flag in '' yes
4974 # Use a header file that comes with gcc, so configuring glibc
4975 # with a fresh cross-compiler works.
4976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4977 # <limits.h> exists even on freestanding compilers.
4978 # On the NeXT, cc -E runs the code through the compiler's parser,
4979 # not just through cpp. "Syntax error" is here to catch this case.
4980 cat >conftest.$ac_ext <<_ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 # include <limits.h>
4989 # include <assert.h>
4993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } >/dev/null; then
5001 if test -s conftest.err; then
5002 ac_cpp_err=$ac_cxx_preproc_warn_flag
5003 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5010 if test -z "$ac_cpp_err"; then
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 # Broken: fails on valid input.
5019 rm -f conftest.err conftest.$ac_ext
5021 # OK, works on sane cases. Now check whether non-existent headers
5022 # can be detected and how.
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 #include <ac_nonexistent.h>
5031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5034 grep -v '^ *+' conftest.er1 >conftest.err
5036 cat conftest.err >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } >/dev/null; then
5039 if test -s conftest.err; then
5040 ac_cpp_err=$ac_cxx_preproc_warn_flag
5041 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5048 if test -z "$ac_cpp_err"; then
5049 # Broken: success on invalid input.
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 # Passes both tests.
5059 rm -f conftest.err conftest.$ac_ext
5062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5063 rm -f conftest.err conftest.$ac_ext
5064 if $ac_preproc_ok; then
5069 ac_cv_prog_CXXCPP=$CXXCPP
5072 CXXCPP=$ac_cv_prog_CXXCPP
5074 ac_cv_prog_CXXCPP=$CXXCPP
5076 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5077 echo "${ECHO_T}$CXXCPP" >&6
5079 for ac_cxx_preproc_warn_flag in '' yes
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5094 # include <limits.h>
5096 # include <assert.h>
5100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103 grep -v '^ *+' conftest.er1 >conftest.err
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } >/dev/null; then
5108 if test -s conftest.err; then
5109 ac_cpp_err=$ac_cxx_preproc_warn_flag
5110 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5117 if test -z "$ac_cpp_err"; then
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5123 # Broken: fails on valid input.
5126 rm -f conftest.err conftest.$ac_ext
5128 # OK, works on sane cases. Now check whether non-existent headers
5129 # can be detected and how.
5130 cat >conftest.$ac_ext <<_ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5136 #include <ac_nonexistent.h>
5138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5141 grep -v '^ *+' conftest.er1 >conftest.err
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } >/dev/null; then
5146 if test -s conftest.err; then
5147 ac_cpp_err=$ac_cxx_preproc_warn_flag
5148 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5155 if test -z "$ac_cpp_err"; then
5156 # Broken: success on invalid input.
5159 echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5162 # Passes both tests.
5166 rm -f conftest.err conftest.$ac_ext
5169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170 rm -f conftest.err conftest.$ac_ext
5171 if $ac_preproc_ok; then
5174 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5175 See \`config.log' for more details." >&5
5176 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5177 See \`config.log' for more details." >&2;}
5178 { (exit 1); exit 1; }; }
5182 ac_cpp='$CXXCPP $CPPFLAGS'
5183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5189 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5190 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5192 if test -n "$ac_tool_prefix"; then
5193 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5197 echo "$as_me:$LINENO: checking for $ac_word" >&5
5198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5199 if test "${ac_cv_prog_F77+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 if test -n "$F77"; then
5203 ac_cv_prog_F77="$F77" # Let the user override the test.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 if test -n "$F77"; then
5223 echo "$as_me:$LINENO: result: $F77" >&5
5224 echo "${ECHO_T}$F77" >&6
5226 echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6
5230 test -n "$F77" && break
5233 if test -z "$F77"; then
5235 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5237 # Extract the first word of "$ac_prog", so it can be a program name with args.
5238 set dummy $ac_prog; ac_word=$2
5239 echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5241 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 if test -n "$ac_ct_F77"; then
5245 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_ac_ct_F77="$ac_prog"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5264 if test -n "$ac_ct_F77"; then
5265 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5266 echo "${ECHO_T}$ac_ct_F77" >&6
5268 echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5272 test -n "$ac_ct_F77" && break
5279 # Provide some information about the compiler.
5280 echo "$as_me:5280:" \
5281 "checking for Fortran 77 compiler version" >&5
5282 ac_compiler=`set X $ac_compile; echo $2`
5283 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5284 (eval $ac_compiler --version </dev/null >&5) 2>&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }
5288 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5289 (eval $ac_compiler -v </dev/null >&5) 2>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }
5293 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5294 (eval $ac_compiler -V </dev/null >&5) 2>&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }
5300 # If we don't use `.F' as extension, the preprocessor is not run on the
5301 # input file. (Note that this only needs to work for GNU compilers.)
5304 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5305 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5306 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 cat >conftest.$ac_ext <<_ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5321 grep -v '^ *+' conftest.er1 >conftest.err
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; } &&
5332 { ac_try='test -s conftest.$ac_objext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5349 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5350 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5352 ac_test_FFLAGS=${FFLAGS+set}
5353 ac_save_FFLAGS=$FFLAGS
5355 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5356 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5357 if test "${ac_cv_prog_f77_g+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 cat >conftest.$ac_ext <<_ACEOF
5366 rm -f conftest.$ac_objext
5367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5368 (eval $ac_compile) 2>conftest.er1
5370 grep -v '^ *+' conftest.er1 >conftest.err
5372 cat conftest.err >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } &&
5375 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 ac_cv_prog_f77_g=yes
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5397 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5398 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5399 if test "$ac_test_FFLAGS" = set; then
5400 FFLAGS=$ac_save_FFLAGS
5401 elif test $ac_cv_prog_f77_g = yes; then
5402 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5408 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5415 G77=`test $ac_compiler_gnu = yes && echo yes`
5417 ac_cpp='$CPP $CPPFLAGS'
5418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5426 # find the maximum length of command line arguments
5427 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5428 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5429 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 # On DJGPP, this test can blow up pretty badly due to problems in libc
5438 # (any single argument exceeding 2000 bytes causes a buffer overrun
5439 # during glob expansion). Even if it were fixed, the result of this
5440 # check would be larger than it should be.
5441 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5445 # Under GNU Hurd, this test is not required because there is
5446 # no limit to the length of command line arguments.
5447 # Libtool will interpret -1 as no limit whatsoever
5448 lt_cv_sys_max_cmd_len=-1;
5452 # On Win9x/ME, this test blows up -- it succeeds, but takes
5453 # about 5 minutes as the teststring grows exponentially.
5454 # Worse, since 9x/ME are not pre-emptively multitasking,
5455 # you end up with a "frozen" computer, even though with patience
5456 # the test eventually succeeds (with a max line length of 256k).
5457 # Instead, let's just punt: use the minimum linelength reported by
5458 # all of the supported platforms: 8192 (on NT/2K/XP).
5459 lt_cv_sys_max_cmd_len=8192;
5463 # On AmigaOS with pdksh, this test takes hours, literally.
5464 # So we just punt and use a minimum line length of 8192.
5465 lt_cv_sys_max_cmd_len=8192;
5469 # If test is not a shell built-in, we'll probably end up computing a
5470 # maximum length that is only half of the actual maximum length, but
5472 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5473 = "XX$teststring") >/dev/null 2>&1 &&
5474 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5475 lt_cv_sys_max_cmd_len=$new_result &&
5476 test $i != 17 # 1/2 MB should be enough
5479 teststring=$teststring$teststring
5482 # Add a significant safety factor because C++ compilers can tack on massive
5483 # amounts of additional arguments before passing them to the linker.
5484 # It appears as though 1/2 is a usable value.
5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5491 if test -n $lt_cv_sys_max_cmd_len ; then
5492 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5493 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5495 echo "$as_me:$LINENO: result: none" >&5
5496 echo "${ECHO_T}none" >&6
5502 # Check for command to grab the raw symbol name followed by C symbol from nm.
5503 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5504 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5505 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 # These are sane defaults that work on at least a few old systems.
5510 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5512 # Character class describing NM global symbol codes.
5513 symcode='[BCDEGRST]'
5515 # Regexp to match symbols that can be accessed directly from C.
5516 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5518 # Transform the above into a raw symbol and a C symbol.
5519 symxfrm='\1 \2\3 \3'
5521 # Transform an extracted symbol line into a proper C declaration
5522 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5524 # Transform an extracted symbol line into symbol name and symbol address
5525 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'"
5527 # Define system-specific variables.
5532 cygwin* | mingw* | pw32*)
5533 symcode='[ABCDGISTW]'
5535 hpux*) # Its linker distinguishes data from code symbols
5536 if test "$host_cpu" = ia64; then
5537 symcode='[ABCDEGRST]'
5539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5540 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'"
5543 symcode='[BCDEGRST]'
5546 symcode='[BCDEGQRST]'
5556 # Handle CRLF in mingw tool chain
5560 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5564 # If we're using GNU nm, then use its standard symbol codes.
5565 case `$NM -V 2>&1` in
5566 *GNU* | *'with BFD'*)
5567 symcode='[ABCDGIRSTW]' ;;
5570 # Try without a prefix undercore, then with it.
5571 for ac_symprfx in "" "_"; do
5573 # Write the raw and C identifiers.
5574 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5576 # Check to see that the pipe works correctly.
5580 cat > conftest.$ac_ext <<EOF
5585 void nm_test_func(){}
5589 int main(){nm_test_var='a';nm_test_func();return(0);}
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593 (eval $ac_compile) 2>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; then
5597 # Now try to grab the symbols.
5599 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5600 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && test -s "$nlist"; then
5604 # Try sorting and uniquifying the output.
5605 if sort "$nlist" | uniq > "$nlist"T; then
5606 mv -f "$nlist"T "$nlist"
5611 # Make sure that we snagged all the symbols we need.
5612 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5613 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5614 cat <<EOF > conftest.$ac_ext
5620 # Now generate the symbol file.
5621 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5623 cat <<EOF >> conftest.$ac_ext
5624 #if defined (__STDC__) && __STDC__
5625 # define lt_ptr_t void *
5627 # define lt_ptr_t char *
5631 /* The mapping between symbol names and symbols. */
5636 lt_preloaded_symbols[] =
5639 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5640 cat <<\EOF >> conftest.$ac_ext
5648 # Now try linking the two files.
5649 mv conftest.$ac_objext conftstm.$ac_objext
5650 lt_save_LIBS="$LIBS"
5651 lt_save_CFLAGS="$CFLAGS"
5652 LIBS="conftstm.$ac_objext"
5653 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5661 LIBS="$lt_save_LIBS"
5662 CFLAGS="$lt_save_CFLAGS"
5664 echo "cannot find nm_test_func in $nlist" >&5
5667 echo "cannot find nm_test_var in $nlist" >&5
5670 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5673 echo "$progname: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5676 rm -f conftest* conftst*
5678 # Do not use the global_symbol_pipe unless it works.
5679 if test "$pipe_works" = yes; then
5682 lt_cv_sys_global_symbol_pipe=
5688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5689 lt_cv_sys_global_symbol_to_cdecl=
5691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5692 echo "$as_me:$LINENO: result: failed" >&5
5693 echo "${ECHO_T}failed" >&6
5695 echo "$as_me:$LINENO: result: ok" >&5
5696 echo "${ECHO_T}ok" >&6
5699 echo "$as_me:$LINENO: checking for objdir" >&5
5700 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5701 if test "${lt_cv_objdir+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 rm -f .libs 2>/dev/null
5705 mkdir .libs 2>/dev/null
5706 if test -d .libs; then
5709 # MS-DOS does not allow filenames that begin with a dot.
5712 rmdir .libs 2>/dev/null
5714 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5715 echo "${ECHO_T}$lt_cv_objdir" >&6
5716 objdir=$lt_cv_objdir
5724 # AIX sometimes has problems with the GCC collect2 program. For some
5725 # reason, if we set the COLLECT_NAMES environment variable, the problems
5726 # vanish in a puff of smoke.
5727 if test "X${COLLECT_NAMES+set}" != Xset; then
5729 export COLLECT_NAMES
5734 # Sed substitution that helps us do robust quoting. It backslashifies
5735 # metacharacters that are still active within double-quoted strings.
5736 Xsed='sed -e s/^X//'
5737 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5739 # Same as above, but do not quote variable references.
5740 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5742 # Sed substitution to delay expansion of an escaped shell variable in a
5743 # double_quote_subst'ed string.
5744 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5746 # Sed substitution to avoid accidental globbing in evaled expressions
5747 no_glob_subst='s/\*/\\\*/g'
5753 default_ofile=libtool
5754 can_build_shared=yes
5756 # All known linkers require a `.a' archive for static linking (except M$VC,
5757 # which needs '.lib').
5759 ltmain="$ac_aux_dir/ltmain.sh"
5760 ofile="$default_ofile"
5761 with_gnu_ld="$lt_cv_prog_gnu_ld"
5763 if test -n "$ac_tool_prefix"; then
5764 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5765 set dummy ${ac_tool_prefix}ar; ac_word=$2
5766 echo "$as_me:$LINENO: checking for $ac_word" >&5
5767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5768 if test "${ac_cv_prog_AR+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 if test -n "$AR"; then
5772 ac_cv_prog_AR="$AR" # Let the user override the test.
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_AR="${ac_tool_prefix}ar"
5782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 if test -n "$AR"; then
5792 echo "$as_me:$LINENO: result: $AR" >&5
5793 echo "${ECHO_T}$AR" >&6
5795 echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6
5800 if test -z "$ac_cv_prog_AR"; then
5802 # Extract the first word of "ar", so it can be a program name with args.
5803 set dummy ar; ac_word=$2
5804 echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5806 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 if test -n "$ac_ct_AR"; then
5810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_ac_ct_AR="ar"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5830 if test -n "$ac_ct_AR"; then
5831 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5832 echo "${ECHO_T}$ac_ct_AR" >&6
5834 echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6
5843 if test -n "$ac_tool_prefix"; then
5844 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5845 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5846 echo "$as_me:$LINENO: checking for $ac_word" >&5
5847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5848 if test "${ac_cv_prog_RANLIB+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 if test -n "$RANLIB"; then
5852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 RANLIB=$ac_cv_prog_RANLIB
5871 if test -n "$RANLIB"; then
5872 echo "$as_me:$LINENO: result: $RANLIB" >&5
5873 echo "${ECHO_T}$RANLIB" >&6
5875 echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6
5880 if test -z "$ac_cv_prog_RANLIB"; then
5881 ac_ct_RANLIB=$RANLIB
5882 # Extract the first word of "ranlib", so it can be a program name with args.
5883 set dummy ranlib; ac_word=$2
5884 echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 if test -n "$ac_ct_RANLIB"; then
5890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899 ac_cv_prog_ac_ct_RANLIB="ranlib"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5910 if test -n "$ac_ct_RANLIB"; then
5911 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5912 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5914 echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6
5918 RANLIB=$ac_ct_RANLIB
5920 RANLIB="$ac_cv_prog_RANLIB"
5923 if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}strip; ac_word=$2
5926 echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928 if test "${ac_cv_prog_STRIP+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 if test -n "$STRIP"; then
5932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 STRIP=$ac_cv_prog_STRIP
5951 if test -n "$STRIP"; then
5952 echo "$as_me:$LINENO: result: $STRIP" >&5
5953 echo "${ECHO_T}$STRIP" >&6
5955 echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6
5960 if test -z "$ac_cv_prog_STRIP"; then
5962 # Extract the first word of "strip", so it can be a program name with args.
5963 set dummy strip; ac_word=$2
5964 echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 if test -n "$ac_ct_STRIP"; then
5970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_ac_ct_STRIP="strip"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5989 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5990 if test -n "$ac_ct_STRIP"; then
5991 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5992 echo "${ECHO_T}$ac_ct_STRIP" >&6
5994 echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6
6000 STRIP="$ac_cv_prog_STRIP"
6005 old_CFLAGS="$CFLAGS"
6007 # Set sane defaults for various variables
6008 test -z "$AR" && AR=ar
6009 test -z "$AR_FLAGS" && AR_FLAGS=cru
6010 test -z "$AS" && AS=as
6011 test -z "$CC" && CC=cc
6012 test -z "$LTCC" && LTCC=$CC
6013 test -z "$DLLTOOL" && DLLTOOL=dlltool
6014 test -z "$LD" && LD=ld
6015 test -z "$LN_S" && LN_S="ln -s"
6016 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6017 test -z "$NM" && NM=nm
6018 test -z "$SED" && SED=sed
6019 test -z "$OBJDUMP" && OBJDUMP=objdump
6020 test -z "$RANLIB" && RANLIB=:
6021 test -z "$STRIP" && STRIP=:
6022 test -z "$ac_objext" && ac_objext=o
6024 # Determine commands to create old-style static archives.
6025 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6026 old_postinstall_cmds='chmod 644 $oldlib'
6027 old_postuninstall_cmds=
6029 if test -n "$RANLIB"; then
6032 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6035 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6038 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6041 # Only perform the check for file, if the check method requires it
6042 case $deplibs_check_method in
6044 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6045 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6046 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6047 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6055 lt_save_MAGIC_CMD="$MAGIC_CMD"
6056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6057 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6058 for ac_dir in $ac_dummy; do
6060 test -z "$ac_dir" && ac_dir=.
6061 if test -f $ac_dir/${ac_tool_prefix}file; then
6062 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6063 if test -n "$file_magic_test_file"; then
6064 case $deplibs_check_method in
6066 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6067 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6068 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6069 $EGREP "$file_magic_regex" > /dev/null; then
6074 *** Warning: the command libtool uses to detect shared libraries,
6075 *** $file_magic_cmd, produces output that libtool cannot recognize.
6076 *** The result is that libtool may fail to recognize shared libraries
6077 *** as such. This will affect the creation of libtool libraries that
6078 *** depend on shared libraries, but programs linked with such libtool
6079 *** libraries will work regardless of this problem. Nevertheless, you
6080 *** may want to report the problem to your system manager and/or to
6081 *** bug-libtool@gnu.org
6091 MAGIC_CMD="$lt_save_MAGIC_CMD"
6096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097 if test -n "$MAGIC_CMD"; then
6098 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6099 echo "${ECHO_T}$MAGIC_CMD" >&6
6101 echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6
6105 if test -z "$lt_cv_path_MAGIC_CMD"; then
6106 if test -n "$ac_tool_prefix"; then
6107 echo "$as_me:$LINENO: checking for file" >&5
6108 echo $ECHO_N "checking for file... $ECHO_C" >&6
6109 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6117 lt_save_MAGIC_CMD="$MAGIC_CMD"
6118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6120 for ac_dir in $ac_dummy; do
6122 test -z "$ac_dir" && ac_dir=.
6123 if test -f $ac_dir/file; then
6124 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6125 if test -n "$file_magic_test_file"; then
6126 case $deplibs_check_method in
6128 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6131 $EGREP "$file_magic_regex" > /dev/null; then
6136 *** Warning: the command libtool uses to detect shared libraries,
6137 *** $file_magic_cmd, produces output that libtool cannot recognize.
6138 *** The result is that libtool may fail to recognize shared libraries
6139 *** as such. This will affect the creation of libtool libraries that
6140 *** depend on shared libraries, but programs linked with such libtool
6141 *** libraries will work regardless of this problem. Nevertheless, you
6142 *** may want to report the problem to your system manager and/or to
6143 *** bug-libtool@gnu.org
6153 MAGIC_CMD="$lt_save_MAGIC_CMD"
6158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6159 if test -n "$MAGIC_CMD"; then
6160 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6161 echo "${ECHO_T}$MAGIC_CMD" >&6
6163 echo "$as_me:$LINENO: result: no" >&5
6164 echo "${ECHO_T}no" >&6
6179 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6180 if test "${enable_libtool_lock+set}" = set; then
6181 enableval="$enable_libtool_lock"
6184 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6187 # Check whether --with-pic or --without-pic was given.
6188 if test "${with_pic+set}" = set; then
6194 test -z "$pic_mode" && pic_mode=default
6196 # Use C for the default configuration in the libtool script
6200 ac_cpp='$CPP $CPPFLAGS'
6201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206 # Source file extension for C test sources.
6209 # Object file extension for compiled C test sources.
6213 # Code to be used in simple compile tests
6214 lt_simple_compile_test_code="int some_variable = 0;\n"
6216 # Code to be used in simple link tests
6217 lt_simple_link_test_code='int main(){return(0);}\n'
6220 # If no C compiler was specified, use CC.
6223 # Allow CC to be a program name with arguments.
6228 # Check for any special shared library compilation flags.
6231 if test "$GCC" = no; then
6234 lt_prog_cc_shlib='-belf'
6238 if test -n "$lt_prog_cc_shlib"; then
6239 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6240 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6241 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6243 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6244 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6245 lt_cv_prog_cc_can_build_shared=no
6251 # Check to make sure the static flag actually works.
6253 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6254 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6255 if test "${lt_prog_compiler_static_works+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 lt_prog_compiler_static_works=no
6259 save_LDFLAGS="$LDFLAGS"
6260 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6261 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6262 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6263 # The compiler can only warn and ignore the option if not recognized
6264 # So say no if there are warnings
6265 if test -s conftest.err; then
6266 # Append any errors to the config.log.
6267 cat conftest.err 1>&5
6269 lt_prog_compiler_static_works=yes
6273 LDFLAGS="$save_LDFLAGS"
6276 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6277 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6279 if test x"$lt_prog_compiler_static_works" = xyes; then
6282 lt_prog_compiler_static=
6288 lt_prog_compiler_no_builtin_flag=
6290 if test "$GCC" = yes; then
6291 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6294 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6295 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6296 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 lt_cv_prog_compiler_rtti_exceptions=no
6300 ac_outfile=conftest.$ac_objext
6301 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6302 lt_compiler_flag="-fno-rtti -fno-exceptions"
6303 # Insert the option either (1) after the last *FLAGS variable, or
6304 # (2) before a word containing "conftest.", or (3) at the end.
6305 # Note that $ac_compile itself does not contain backslashes and begins
6306 # with a dollar sign (not a hyphen), so the echo should work correctly.
6307 # The option is referenced via a variable to avoid confusing sed.
6308 lt_compile=`echo "$ac_compile" | $SED \
6309 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6311 -e 's:$: $lt_compiler_flag:'`
6312 (eval echo "\"\$as_me:6312: $lt_compile\"" >&5)
6313 (eval "$lt_compile" 2>conftest.err)
6315 cat conftest.err >&5
6316 echo "$as_me:6316: \$? = $ac_status" >&5
6317 if (exit $ac_status) && test -s "$ac_outfile"; then
6318 # The compiler can only warn and ignore the option if not recognized
6319 # So say no if there are warnings
6320 if test ! -s conftest.err; then
6321 lt_cv_prog_compiler_rtti_exceptions=yes
6327 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6328 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6330 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6331 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6338 lt_prog_compiler_wl=
6339 lt_prog_compiler_pic=
6340 lt_prog_compiler_static=
6342 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6343 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6345 if test "$GCC" = yes; then
6346 lt_prog_compiler_wl='-Wl,'
6347 lt_prog_compiler_static='-static'
6351 # All AIX code is PIC.
6352 if test "$host_cpu" = ia64; then
6353 # AIX 5 now supports IA64 processor
6354 lt_prog_compiler_static='-Bstatic'
6359 # FIXME: we need at least 68020 code to build shared libraries, but
6360 # adding the `-m68020' flag to GCC prevents building anything better,
6362 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6365 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6366 # PIC is the default for these OSes.
6369 mingw* | pw32* | os2*)
6370 # This hack is so that the source file can tell whether it is being
6371 # built for inclusion in a dll (and should export symbols for example).
6372 lt_prog_compiler_pic='-DDLL_EXPORT'
6375 darwin* | rhapsody*)
6376 # PIC is the default on this platform
6377 # Common symbols not allowed in MH_DYLIB files
6378 lt_prog_compiler_pic='-fno-common'
6382 # Just because we use GCC doesn't mean we suddenly get shared libraries
6383 # on systems that don't support them.
6384 lt_prog_compiler_can_build_shared=no
6389 if test -d /usr/nec; then
6390 lt_prog_compiler_pic=-Kconform_pic
6395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6402 lt_prog_compiler_pic='-fPIC'
6408 lt_prog_compiler_pic='-fPIC'
6412 # PORTME Check for flag to pass linker flags through the system compiler.
6415 lt_prog_compiler_wl='-Wl,'
6416 if test "$host_cpu" = ia64; then
6417 # AIX 5 now supports IA64 processor
6418 lt_prog_compiler_static='-Bstatic'
6420 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6424 mingw* | pw32* | os2*)
6425 # This hack is so that the source file can tell whether it is being
6426 # built for inclusion in a dll (and should export symbols for example).
6427 lt_prog_compiler_pic='-DDLL_EXPORT'
6430 hpux9* | hpux10* | hpux11*)
6431 lt_prog_compiler_wl='-Wl,'
6432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6439 lt_prog_compiler_pic='+Z'
6442 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6443 lt_prog_compiler_static='${wl}-a ${wl}archive'
6446 irix5* | irix6* | nonstopux*)
6447 lt_prog_compiler_wl='-Wl,'
6448 # PIC (with -KPIC) is the default.
6449 lt_prog_compiler_static='-non_shared'
6453 lt_prog_compiler_pic='-KPIC'
6454 lt_prog_compiler_static='-Bstatic'
6460 lt_prog_compiler_wl='-Wl,'
6461 lt_prog_compiler_pic='-KPIC'
6462 lt_prog_compiler_static='-static'
6465 lt_prog_compiler_wl='-Wl,'
6466 # All Alpha code is PIC.
6467 lt_prog_compiler_static='-non_shared'
6472 osf3* | osf4* | osf5*)
6473 lt_prog_compiler_wl='-Wl,'
6474 # All OSF/1 code is PIC.
6475 lt_prog_compiler_static='-non_shared'
6479 lt_prog_compiler_pic='-Kpic'
6480 lt_prog_compiler_static='-dn'
6484 lt_prog_compiler_wl='-Wl,'
6485 lt_prog_compiler_pic='-KPIC'
6486 lt_prog_compiler_static='-Bstatic'
6490 lt_prog_compiler_wl='-Qoption ld '
6491 lt_prog_compiler_pic='-PIC'
6492 lt_prog_compiler_static='-Bstatic'
6495 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6496 lt_prog_compiler_wl='-Wl,'
6497 lt_prog_compiler_pic='-KPIC'
6498 lt_prog_compiler_static='-Bstatic'
6502 if test -d /usr/nec ;then
6503 lt_prog_compiler_pic='-Kconform_pic'
6504 lt_prog_compiler_static='-Bstatic'
6509 lt_prog_compiler_pic='-pic'
6510 lt_prog_compiler_static='-Bstatic'
6514 lt_prog_compiler_can_build_shared=no
6519 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6520 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6523 # Check to make sure the PIC flag actually works.
6525 if test -n "$lt_prog_compiler_pic"; then
6527 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6528 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6529 if test "${lt_prog_compiler_pic_works+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 lt_prog_compiler_pic_works=no
6533 ac_outfile=conftest.$ac_objext
6534 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6535 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6536 # Insert the option either (1) after the last *FLAGS variable, or
6537 # (2) before a word containing "conftest.", or (3) at the end.
6538 # Note that $ac_compile itself does not contain backslashes and begins
6539 # with a dollar sign (not a hyphen), so the echo should work correctly.
6540 # The option is referenced via a variable to avoid confusing sed.
6541 lt_compile=`echo "$ac_compile" | $SED \
6542 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6544 -e 's:$: $lt_compiler_flag:'`
6545 (eval echo "\"\$as_me:6545: $lt_compile\"" >&5)
6546 (eval "$lt_compile" 2>conftest.err)
6548 cat conftest.err >&5
6549 echo "$as_me:6549: \$? = $ac_status" >&5
6550 if (exit $ac_status) && test -s "$ac_outfile"; then
6551 # The compiler can only warn and ignore the option if not recognized
6552 # So say no if there are warnings
6553 if test ! -s conftest.err; then
6554 lt_prog_compiler_pic_works=yes
6560 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6561 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6563 if test x"$lt_prog_compiler_pic_works" = xyes; then
6564 case $lt_prog_compiler_pic in
6566 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6569 lt_prog_compiler_pic=
6570 lt_prog_compiler_can_build_shared=no
6575 # For platforms which do not support PIC, -DPIC is meaningless:
6577 lt_prog_compiler_pic=
6580 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6584 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6585 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6586 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 lt_cv_prog_compiler_c_o=no
6590 $rm -r conftest 2>/dev/null
6594 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6596 lt_compiler_flag="-o out/conftest2.$ac_objext"
6597 # Insert the option either (1) after the last *FLAGS variable, or
6598 # (2) before a word containing "conftest.", or (3) at the end.
6599 # Note that $ac_compile itself does not contain backslashes and begins
6600 # with a dollar sign (not a hyphen), so the echo should work correctly.
6601 lt_compile=`echo "$ac_compile" | $SED \
6602 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6604 -e 's:$: $lt_compiler_flag:'`
6605 (eval echo "\"\$as_me:6605: $lt_compile\"" >&5)
6606 (eval "$lt_compile" 2>out/conftest.err)
6608 cat out/conftest.err >&5
6609 echo "$as_me:6609: \$? = $ac_status" >&5
6610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6612 # The compiler can only warn and ignore the option if not recognized
6613 # So say no if there are warnings
6614 if test ! -s out/conftest.err; then
6615 lt_cv_prog_compiler_c_o=yes
6620 # SGI C++ compiler will create directory out/ii_files/ for
6621 # template instantiation
6622 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6623 $rm out/* && rmdir out
6629 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6630 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6633 hard_links="nottested"
6634 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6635 # do not overwrite the value of need_locks provided by the user
6636 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6637 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6642 ln conftest.a conftest.b 2>&5 || hard_links=no
6643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6644 echo "$as_me:$LINENO: result: $hard_links" >&5
6645 echo "${ECHO_T}$hard_links" >&6
6646 if test "$hard_links" = no; then
6647 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6648 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6655 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6656 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6659 allow_undefined_flag=
6660 enable_shared_with_static_runtimes=no
6662 archive_expsym_cmds=
6663 old_archive_From_new_cmds=
6664 old_archive_from_expsyms_cmds=
6665 export_dynamic_flag_spec=
6666 whole_archive_flag_spec=
6667 thread_safe_flag_spec=
6668 hardcode_libdir_flag_spec=
6669 hardcode_libdir_flag_spec_ld=
6670 hardcode_libdir_separator=
6673 hardcode_shlibpath_var=unsupported
6674 link_all_deplibs=unknown
6675 hardcode_automatic=no
6678 always_export_symbols=no
6679 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6680 # include_expsyms should be a list of space-separated symbols to be *always*
6681 # included in the symbol list
6683 # exclude_expsyms can be an extended regexp of symbols to exclude
6684 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6685 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6686 # as well as any symbol that contains `d'.
6687 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6688 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6689 # platforms (ab)use it in PIC code, but their linkers get confused if
6690 # the symbol is explicitly referenced. Since portable code cannot
6691 # rely on this symbol name, it's probably fine to never include it in
6692 # preloaded symbol tables.
6693 extract_expsyms_cmds=
6696 cygwin* | mingw* | pw32*)
6697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6698 # When not using gcc, we currently assume that we are using
6699 # Microsoft Visual C++.
6700 if test "$GCC" != yes; then
6710 if test "$with_gnu_ld" = yes; then
6711 # If archive_cmds runs LD, not CC, wlarc should be empty
6714 # See if GNU ld supports shared libraries.
6716 aix3* | aix4* | aix5*)
6717 # On AIX/PPC, the GNU linker is very broken
6718 if test "$host_cpu" != ia64; then
6722 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6723 *** to be unable to reliably create shared libraries on AIX.
6724 *** Therefore, libtool is disabling shared libraries support. If you
6725 *** really care for shared libraries, you may want to modify your PATH
6726 *** so that a non-GNU linker is found, and then restart.
6733 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)'
6734 hardcode_libdir_flag_spec='-L$libdir'
6735 hardcode_minus_L=yes
6737 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6738 # that the semantics of dynamic libraries on AmigaOS, at least up
6739 # to version 4, is to share data among multiple programs linked
6740 # with the same dynamic library. Since this doesn't match the
6741 # behavior of shared libraries on other platforms, we can't use
6747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6748 allow_undefined_flag=unsupported
6749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6750 # support --undefined. This deserves some investigation. FIXME
6751 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6757 cygwin* | mingw* | pw32*)
6758 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6759 # as there is no search path for DLLs.
6760 hardcode_libdir_flag_spec='-L$libdir'
6761 allow_undefined_flag=unsupported
6762 always_export_symbols=no
6763 enable_shared_with_static_runtimes=yes
6764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6766 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6768 # If the export-symbols file already is a .def file (1st line
6769 # is EXPORTS), use it as is; otherwise, prepend...
6770 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6771 cp $export_symbols $output_objdir/$soname.def;
6773 echo EXPORTS > $output_objdir/$soname.def;
6774 cat $export_symbols >> $output_objdir/$soname.def;
6776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6784 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6793 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6797 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6798 *** create shared libraries on Solaris systems. Therefore, libtool
6799 *** is disabling shared libraries support. We urge you to upgrade GNU
6800 *** binutils to release 2.9.1 or newer. Another option is to modify
6801 *** your PATH or compiler configuration so that the native linker is
6802 *** used, and then restart.
6805 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6807 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6814 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6817 hardcode_shlibpath_var=no
6821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6822 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6823 archive_cmds="$tmp_archive_cmds"
6824 supports_anon_versioning=no
6825 case `$LD -v 2>/dev/null` in
6826 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6827 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6828 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6829 *\ 2.11.*) ;; # other 2.11 versions
6830 *) supports_anon_versioning=yes ;;
6832 if test $supports_anon_versioning = yes; then
6833 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6835 $echo "local: *; };" >> $output_objdir/$libname.ver~
6836 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6838 archive_expsym_cmds="$tmp_archive_cmds"
6846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6848 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6855 if test "$ld_shlibs" = yes; then
6856 runpath_var=LD_RUN_PATH
6857 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6858 export_dynamic_flag_spec='${wl}--export-dynamic'
6859 # ancient GNU ld didn't support --whole-archive et. al.
6860 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6861 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6863 whole_archive_flag_spec=
6867 # PORTME fill in a description of your system's linker (not GNU ld)
6870 allow_undefined_flag=unsupported
6871 always_export_symbols=yes
6872 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'
6873 # Note: this linker hardcodes the directories in LIBPATH if there
6874 # are no directories specified by -L.
6875 hardcode_minus_L=yes
6876 if test "$GCC" = yes && test -z "$link_static_flag"; then
6877 # Neither direct hardcoding nor static linking is supported with a
6879 hardcode_direct=unsupported
6884 if test "$host_cpu" = ia64; then
6885 # On IA64, the linker does run time linking by default, so we don't
6886 # have to do anything special.
6887 aix_use_runtimelinking=no
6888 exp_sym_flag='-Bexport'
6891 # If we're using GNU nm, then we don't want the "-C" option.
6892 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6893 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6894 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'
6896 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'
6898 aix_use_runtimelinking=no
6900 # Test if we are trying to use run time linking or normal
6901 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6902 # need to do runtime linking.
6903 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6904 for ld_flag in $LDFLAGS; do
6905 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6906 aix_use_runtimelinking=yes
6912 exp_sym_flag='-bexport'
6913 no_entry_flag='-bnoentry'
6916 # When large executables or shared objects are built, AIX ld can
6917 # have problems creating the table of contents. If linking a library
6918 # or program results in "error TOC overflow" add -mminimal-toc to
6919 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6920 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6924 hardcode_libdir_separator=':'
6925 link_all_deplibs=yes
6927 if test "$GCC" = yes; then
6928 case $host_os in aix4.012|aix4.012.*)
6929 # We only want to do this on AIX 4.2 and lower, the check
6930 # below for broken collect2 doesn't work under 4.3+
6931 collect2name=`${CC} -print-prog-name=collect2`
6932 if test -f "$collect2name" && \
6933 strings "$collect2name" | grep resolve_lib_name >/dev/null
6935 # We have reworked collect2
6938 # We have old collect2
6939 hardcode_direct=unsupported
6940 # It fails to find uninstalled libraries when the uninstalled
6941 # path is not listed in the libpath. Setting hardcode_minus_L
6942 # to unsupported forces relinking
6943 hardcode_minus_L=yes
6944 hardcode_libdir_flag_spec='-L$libdir'
6945 hardcode_libdir_separator=
6948 shared_flag='-shared'
6951 if test "$host_cpu" = ia64; then
6952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6953 # chokes on -Wl,-G. The following line is correct:
6956 if test "$aix_use_runtimelinking" = yes; then
6957 shared_flag='${wl}-G'
6959 shared_flag='${wl}-bM:SRE'
6964 # It seems that -bexpall does not export symbols beginning with
6965 # underscore (_), so it is better to generate a list of symbols to export.
6966 always_export_symbols=yes
6967 if test "$aix_use_runtimelinking" = yes; then
6968 # Warning - without using the other runtime loading flags (-brtl),
6969 # -berok will link without error, but may produce a broken library.
6970 allow_undefined_flag='-berok'
6971 # Determine the default libpath from the value encoded in an empty executable.
6972 cat >conftest.$ac_ext <<_ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6987 rm -f conftest.$ac_objext conftest$ac_exeext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989 (eval $ac_link) 2>conftest.er1
6991 grep -v '^ *+' conftest.er1 >conftest.err
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; } &&
7002 { ac_try='test -s conftest$ac_exeext'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; }; then
7009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7011 # Check for a 64-bit object if we didn't find anything.
7012 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; }
7015 echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7019 rm -f conftest.err conftest.$ac_objext \
7020 conftest$ac_exeext conftest.$ac_ext
7021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7023 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7024 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7026 if test "$host_cpu" = ia64; then
7027 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7028 allow_undefined_flag="-z nodefs"
7029 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7031 # Determine the default libpath from the value encoded in an empty executable.
7032 cat >conftest.$ac_ext <<_ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7047 rm -f conftest.$ac_objext conftest$ac_exeext
7048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7049 (eval $ac_link) 2>conftest.er1
7051 grep -v '^ *+' conftest.er1 >conftest.err
7053 cat conftest.err >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } &&
7056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; } &&
7062 { ac_try='test -s conftest$ac_exeext'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7071 # Check for a 64-bit object if we didn't find anything.
7072 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; }
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7079 rm -f conftest.err conftest.$ac_objext \
7080 conftest$ac_exeext conftest.$ac_ext
7081 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7083 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7084 # Warning - without using the other run time loading flags,
7085 # -berok will link without error, but may produce a broken library.
7086 no_undefined_flag=' ${wl}-bernotok'
7087 allow_undefined_flag=' ${wl}-berok'
7088 # -bexpall does not export symbols beginning with underscore (_)
7089 always_export_symbols=yes
7090 # Exported symbols can be pulled into shared objects from archives
7091 whole_archive_flag_spec=' '
7092 archive_cmds_need_lc=yes
7093 # This is similar to how AIX traditionally builds it's shared libraries.
7094 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7100 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)'
7101 hardcode_libdir_flag_spec='-L$libdir'
7102 hardcode_minus_L=yes
7103 # see comment about different semantics on the GNU ld section
7108 export_dynamic_flag_spec=-rdynamic
7111 cygwin* | mingw* | pw32*)
7112 # When not using gcc, we currently assume that we are using
7113 # Microsoft Visual C++.
7114 # hardcode_libdir_flag_spec is actually meaningless, as there is
7115 # no search path for DLLs.
7116 hardcode_libdir_flag_spec=' '
7117 allow_undefined_flag=unsupported
7118 # Tell ltmain to make .lib files, not .a files.
7120 # Tell ltmain to make .dll files, not .so files.
7122 # FIXME: Setting linknames here is a bad hack.
7123 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7124 # The linker will automatically build a .lib file if we build a DLL.
7125 old_archive_From_new_cmds='true'
7126 # FIXME: Should let the user specify the lib program.
7127 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7128 fix_srcfile_path='`cygpath -w "$srcfile"`'
7129 enable_shared_with_static_runtimes=yes
7132 darwin* | rhapsody*)
7133 if test "$GXX" = yes ; then
7134 archive_cmds_need_lc=no
7136 rhapsody* | darwin1.[012])
7137 allow_undefined_flag='-undefined suppress'
7140 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7141 allow_undefined_flag='-flat_namespace -undefined suppress'
7143 case ${MACOSX_DEPLOYMENT_TARGET} in
7145 allow_undefined_flag='-flat_namespace -undefined suppress'
7148 allow_undefined_flag='-undefined dynamic_lookup'
7154 lt_int_apple_cc_single_mod=no
7155 output_verbose_link_cmd='echo'
7156 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7157 lt_int_apple_cc_single_mod=yes
7159 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7160 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7162 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7164 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7165 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7166 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7167 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7169 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7171 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}'
7173 hardcode_automatic=yes
7174 hardcode_shlibpath_var=unsupported
7175 whole_archive_flag_spec='-all_load $convenience'
7176 link_all_deplibs=yes
7183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7184 hardcode_libdir_flag_spec='-L$libdir'
7185 hardcode_shlibpath_var=no
7192 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7193 # support. Future versions do this automatically, but an explicit c++rt0.o
7194 # does not break anything, and helps significantly (at the cost of a little
7197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7198 hardcode_libdir_flag_spec='-R$libdir'
7200 hardcode_shlibpath_var=no
7203 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7207 hardcode_minus_L=yes
7208 hardcode_shlibpath_var=no
7211 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7212 freebsd* | kfreebsd*-gnu)
7213 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7214 hardcode_libdir_flag_spec='-R$libdir'
7216 hardcode_shlibpath_var=no
7220 if test "$GCC" = yes; then
7221 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'
7223 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'
7225 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7226 hardcode_libdir_separator=:
7229 # hardcode_minus_L: Not really in the search PATH,
7230 # but as the default location of the library.
7231 hardcode_minus_L=yes
7232 export_dynamic_flag_spec='${wl}-E'
7236 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7239 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7242 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7248 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7251 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7255 if test "$with_gnu_ld" = no; then
7258 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7259 hardcode_libdir_flag_spec_ld='+b $libdir'
7260 hardcode_libdir_separator=:
7262 hardcode_shlibpath_var=no
7265 hardcode_libdir_flag_spec='-L$libdir'
7267 hardcode_shlibpath_var=no
7269 # hardcode_minus_L: Not really in the search PATH,
7270 # but as the default location of the library.
7271 hardcode_minus_L=yes
7274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7275 hardcode_libdir_separator=:
7277 export_dynamic_flag_spec='${wl}-E'
7279 # hardcode_minus_L: Not really in the search PATH,
7280 # but as the default location of the library.
7281 hardcode_minus_L=yes
7287 irix5* | irix6* | nonstopux*)
7288 if test "$GCC" = yes; then
7289 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'
7291 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'
7292 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7295 hardcode_libdir_separator=:
7296 link_all_deplibs=yes
7300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7303 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7305 hardcode_libdir_flag_spec='-R$libdir'
7307 hardcode_shlibpath_var=no
7311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7314 hardcode_libdir_separator=:
7315 hardcode_shlibpath_var=no
7320 hardcode_shlibpath_var=no
7321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7323 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7324 export_dynamic_flag_spec='${wl}-E'
7327 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7329 hardcode_libdir_flag_spec='-R$libdir'
7332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7340 hardcode_libdir_flag_spec='-L$libdir'
7341 hardcode_minus_L=yes
7342 allow_undefined_flag=unsupported
7343 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'
7344 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7348 if test "$GCC" = yes; then
7349 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7350 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'
7352 allow_undefined_flag=' -expect_unresolved \*'
7353 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'
7355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7356 hardcode_libdir_separator=:
7359 osf4* | osf5*) # as osf3* with the addition of -msym flag
7360 if test "$GCC" = yes; then
7361 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7362 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'
7363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7365 allow_undefined_flag=' -expect_unresolved \*'
7366 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'
7367 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7368 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7370 # Both c and cxx compiler support -rpath directly
7371 hardcode_libdir_flag_spec='-rpath $libdir'
7373 hardcode_libdir_separator=:
7377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378 hardcode_shlibpath_var=no
7379 export_dynamic_flag_spec='${wl}-Bexport'
7380 runpath_var=LD_RUN_PATH
7381 hardcode_runpath_var=yes
7385 no_undefined_flag=' -z text'
7386 if test "$GCC" = yes; then
7387 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7388 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7389 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7391 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7392 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7393 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7395 hardcode_libdir_flag_spec='-R$libdir'
7396 hardcode_shlibpath_var=no
7398 solaris2.[0-5] | solaris2.[0-5].*) ;;
7399 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7400 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7402 link_all_deplibs=yes
7406 if test "x$host_vendor" = xsequent; then
7407 # Use $CC to link under sequent, because it throws in some extra .o
7408 # files that make .init and .fini sections work.
7409 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7411 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7413 hardcode_libdir_flag_spec='-L$libdir'
7415 hardcode_minus_L=yes
7416 hardcode_shlibpath_var=no
7420 case $host_vendor in
7422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7423 hardcode_direct=yes # is this really true???
7426 ## LD is ld it makes a PLAMLIB
7427 ## CC just makes a GrossModule.
7428 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7429 reload_cmds='$CC -r -o $output$reload_objs'
7433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7434 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7437 runpath_var='LD_RUN_PATH'
7438 hardcode_shlibpath_var=no
7442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7443 hardcode_shlibpath_var=no
7444 export_dynamic_flag_spec='-Bexport'
7448 if test -d /usr/nec; then
7449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7450 hardcode_shlibpath_var=no
7451 runpath_var=LD_RUN_PATH
7452 hardcode_runpath_var=yes
7458 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7461 hardcode_shlibpath_var=no
7462 hardcode_runpath_var=yes
7463 runpath_var=LD_RUN_PATH
7466 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7467 no_undefined_flag='${wl}-z ${wl}text'
7468 if test "$GCC" = yes; then
7469 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7471 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7473 runpath_var='LD_RUN_PATH'
7474 hardcode_shlibpath_var=no
7478 no_undefined_flag=' -z text'
7479 # $CC -shared without GNU ld will not create a library from C++
7480 # object files and a static libstdc++, better avoid it by now
7481 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7482 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7483 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7484 hardcode_libdir_flag_spec=
7485 hardcode_shlibpath_var=no
7486 runpath_var='LD_RUN_PATH'
7490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7491 hardcode_libdir_flag_spec='-L$libdir'
7492 hardcode_shlibpath_var=no
7501 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7502 echo "${ECHO_T}$ld_shlibs" >&6
7503 test "$ld_shlibs" = no && can_build_shared=no
7505 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7506 if test "$GCC" = yes; then
7507 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7511 # Do we need to explicitly link libc?
7513 case "x$archive_cmds_need_lc" in
7515 # Assume -lc should be added
7516 archive_cmds_need_lc=yes
7518 if test "$enable_shared" = yes && test "$GCC" = yes; then
7519 case $archive_cmds in
7521 # FIXME: we may have to deal with multi-command sequences.
7524 # Test whether the compiler implicitly links with -lc since on some
7525 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7526 # to ld, don't add -lc before -lgcc.
7527 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7528 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } 2>conftest.err; then
7539 libobjs=conftest.$ac_objext
7541 wl=$lt_prog_compiler_wl
7547 lt_save_allow_undefined_flag=$allow_undefined_flag
7548 allow_undefined_flag=
7549 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7550 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }
7555 archive_cmds_need_lc=no
7557 archive_cmds_need_lc=yes
7559 allow_undefined_flag=$lt_save_allow_undefined_flag
7561 cat conftest.err 1>&5
7564 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7565 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7572 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7573 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7575 libname_spec='lib$name'
7583 shlibpath_overrides_runpath=unknown
7585 dynamic_linker="$host_os ld.so"
7586 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7587 if test "$GCC" = yes; then
7588 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7589 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7590 # if the path contains ";" then we assume it to be the separator
7591 # otherwise default to the standard path separator (i.e. ":") - it is
7592 # assumed that no part of a normal pathname contains ";" but that should
7593 # okay in the real world where ";" in dirpaths is itself problematic.
7594 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7599 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7601 need_lib_prefix=unknown
7602 hardcode_into_libs=no
7604 # when you set need_version to no, make sure it does not cause -set_version
7605 # flags to be left without arguments
7606 need_version=unknown
7611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7612 shlibpath_var=LIBPATH
7614 # AIX 3 has no versioning support, so we append a major version to the name.
7615 soname_spec='${libname}${release}${shared_ext}$major'
7622 hardcode_into_libs=yes
7623 if test "$host_cpu" = ia64; then
7624 # AIX 5 supports IA64
7625 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7626 shlibpath_var=LD_LIBRARY_PATH
7628 # With GCC up to 2.95.x, collect2 would create an import file
7629 # for dependence libraries. The import file would start with
7630 # the line `#! .'. This would cause the generated library to
7631 # depend on `.', always an invalid library. This was fixed in
7632 # development snapshots of GCC prior to 3.0.
7634 aix4 | aix4.[01] | aix4.[01].*)
7635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7637 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7644 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7645 # soname into executable. Probably we can add versioning support to
7646 # collect2, so additional links can be useful in future.
7647 if test "$aix_use_runtimelinking" = yes; then
7648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7649 # instead of lib<name>.a to let people know that these are not
7650 # typical AIX shared libraries.
7651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7653 # We preserve .a as extension for shared libraries through AIX4.2
7654 # and later when we are not doing run time linking.
7655 library_names_spec='${libname}${release}.a $libname.a'
7656 soname_spec='${libname}${release}${shared_ext}$major'
7658 shlibpath_var=LIBPATH
7663 library_names_spec='$libname.ixlibrary $libname.a'
7664 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7665 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'
7669 library_names_spec='${libname}${shared_ext}'
7670 dynamic_linker="$host_os ld.so"
7671 shlibpath_var=LIBRARY_PATH
7677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7678 soname_spec='${libname}${release}${shared_ext}$major'
7679 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7680 shlibpath_var=LD_LIBRARY_PATH
7681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7683 # the default ld.so.conf also contains /usr/contrib/lib and
7684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7685 # libtool to hard-code these into programs
7688 cygwin* | mingw* | pw32*)
7689 version_type=windows
7694 case $GCC,$host_os in
7695 yes,cygwin* | yes,mingw* | yes,pw32*)
7696 library_names_spec='$libname.dll.a'
7697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7698 postinstall_cmds='base_file=`basename \${file}`~
7699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7700 dldir=$destdir/`dirname \$dlpath`~
7701 test -d \$dldir || mkdir -p \$dldir~
7702 $install_prog $dir/$dlname \$dldir/$dlname'
7703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7704 dlpath=$dir/\$dldll~
7706 shlibpath_overrides_runpath=yes
7710 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7711 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7712 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7715 # MinGW DLLs use traditional 'lib' prefix
7716 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7717 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7718 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7719 # It is most probably a Windows format PATH printed by
7720 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7721 # path with ; separators, and with drive letters. We can handle the
7722 # drive letters (cygwin fileutils understands them), so leave them,
7723 # especially as we might pass files found there to a mingw objdump,
7724 # which wouldn't understand a cygwinified path. Ahh.
7725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7731 # pw32 DLLs use 'pw' prefix rather than 'lib'
7732 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7738 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7741 dynamic_linker='Win32 ld.exe'
7742 # FIXME: first we should search . and the directory the executable is in
7746 darwin* | rhapsody*)
7747 dynamic_linker="$host_os dyld"
7751 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7752 soname_spec='${libname}${release}${major}$shared_ext'
7753 shlibpath_overrides_runpath=yes
7754 shlibpath_var=DYLD_LIBRARY_PATH
7755 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7756 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7757 if test "$GCC" = yes; then
7758 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"`
7760 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7762 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7770 soname_spec='${libname}${release}${shared_ext}$major'
7771 shlibpath_var=LD_LIBRARY_PATH
7782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7783 soname_spec='${libname}${release}${shared_ext}$major'
7784 shlibpath_var=LD_LIBRARY_PATH
7785 shlibpath_overrides_runpath=no
7786 hardcode_into_libs=yes
7787 dynamic_linker='GNU ld.so'
7791 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7792 version_type=freebsd-$objformat
7793 case $version_type in
7795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7804 shlibpath_var=LD_LIBRARY_PATH
7807 shlibpath_overrides_runpath=yes
7809 freebsd3.01* | freebsdelf3.01*)
7810 shlibpath_overrides_runpath=yes
7811 hardcode_into_libs=yes
7814 shlibpath_overrides_runpath=no
7815 hardcode_into_libs=yes
7824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7825 soname_spec='${libname}${release}${shared_ext}$major'
7826 shlibpath_var=LD_LIBRARY_PATH
7827 hardcode_into_libs=yes
7830 hpux9* | hpux10* | hpux11*)
7831 # Give a soname corresponding to the major version so that dld.sl refuses to
7832 # link against other versions.
7839 hardcode_into_libs=yes
7840 dynamic_linker="$host_os dld.so"
7841 shlibpath_var=LD_LIBRARY_PATH
7842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7844 soname_spec='${libname}${release}${shared_ext}$major'
7845 if test "X$HPUX_IA64_MODE" = X32; then
7846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7854 hardcode_into_libs=yes
7855 dynamic_linker="$host_os dld.sl"
7856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7859 soname_spec='${libname}${release}${shared_ext}$major'
7860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7865 dynamic_linker="$host_os dld.sl"
7866 shlibpath_var=SHLIB_PATH
7867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7869 soname_spec='${libname}${release}${shared_ext}$major'
7872 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7873 postinstall_cmds='chmod 555 $lib'
7876 irix5* | irix6* | nonstopux*)
7878 nonstopux*) version_type=nonstopux ;;
7880 if test "$lt_cv_prog_gnu_ld" = yes; then
7888 soname_spec='${libname}${release}${shared_ext}$major'
7889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7891 irix5* | nonstopux*)
7895 case $LD in # libtool.m4 will add one of these switches to LD
7896 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7897 libsuff= shlibsuff= libmagic=32-bit;;
7898 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7899 libsuff=32 shlibsuff=N32 libmagic=N32;;
7900 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7901 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7902 *) libsuff= shlibsuff= libmagic=never-match;;
7906 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7907 shlibpath_overrides_runpath=no
7908 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7909 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7910 hardcode_into_libs=yes
7913 # No shared lib support for Linux oldld, aout, or coff.
7914 linux*oldld* | linux*aout* | linux*coff*)
7918 # This must be Linux ELF.
7923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924 soname_spec='${libname}${release}${shared_ext}$major'
7925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7926 shlibpath_var=LD_LIBRARY_PATH
7927 shlibpath_overrides_runpath=no
7928 # This implies no fast_install, which is unacceptable.
7929 # Some rework will be needed to allow for fast_install
7930 # before this can be enabled.
7931 hardcode_into_libs=yes
7933 # Append ld.so.conf contents to the search path
7934 if test -f /etc/ld.so.conf; then
7935 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7936 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7939 # We used to test for /lib/ld.so.1 and disable shared libraries on
7940 # powerpc, because MkLinux only supported shared libraries with the
7941 # GNU dynamic linker. Since this was broken with cross compilers,
7942 # most powerpc-linux boxes support dynamic linking these days and
7943 # people can always --disable-shared, the test was removed, and we
7944 # assume the GNU/Linux dynamic linker is in use.
7945 dynamic_linker='GNU/Linux ld.so'
7952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7953 soname_spec='${libname}${release}${shared_ext}$major'
7954 shlibpath_var=LD_LIBRARY_PATH
7955 shlibpath_overrides_runpath=no
7956 hardcode_into_libs=yes
7957 dynamic_linker='GNU ld.so'
7964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7967 dynamic_linker='NetBSD (a.out) ld.so'
7969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7970 soname_spec='${libname}${release}${shared_ext}$major'
7971 dynamic_linker='NetBSD ld.elf_so'
7973 shlibpath_var=LD_LIBRARY_PATH
7974 shlibpath_overrides_runpath=yes
7975 hardcode_into_libs=yes
7980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 shlibpath_overrides_runpath=yes
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990 soname_spec='${libname}${release}${shared_ext}$major'
7991 shlibpath_var=LD_LIBRARY_PATH
7992 shlibpath_overrides_runpath=yes
7999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8001 shlibpath_var=LD_LIBRARY_PATH
8002 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8004 openbsd2.[89] | openbsd2.[89].*)
8005 shlibpath_overrides_runpath=no
8008 shlibpath_overrides_runpath=yes
8012 shlibpath_overrides_runpath=yes
8017 libname_spec='$name'
8020 library_names_spec='$libname${shared_ext} $libname.a'
8021 dynamic_linker='OS/2 ld.exe'
8022 shlibpath_var=LIBPATH
8025 osf3* | osf4* | osf5*)
8029 soname_spec='${libname}${release}${shared_ext}$major'
8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8031 shlibpath_var=LD_LIBRARY_PATH
8032 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8033 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8038 soname_spec='${libname}${release}${shared_ext}$major'
8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8040 shlibpath_var=LD_LIBRARY_PATH
8047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8048 soname_spec='${libname}${release}${shared_ext}$major'
8049 shlibpath_var=LD_LIBRARY_PATH
8050 shlibpath_overrides_runpath=yes
8051 hardcode_into_libs=yes
8052 # ldd complains unless libraries are executable
8053 postinstall_cmds='chmod +x $lib'
8058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8059 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8060 shlibpath_var=LD_LIBRARY_PATH
8061 shlibpath_overrides_runpath=yes
8062 if test "$with_gnu_ld" = yes; then
8068 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8071 soname_spec='${libname}${release}${shared_ext}$major'
8072 shlibpath_var=LD_LIBRARY_PATH
8073 case $host_vendor in
8075 shlibpath_overrides_runpath=no
8077 export_dynamic_flag_spec='${wl}-Blargedynsym'
8078 runpath_var=LD_RUN_PATH
8086 shlibpath_overrides_runpath=no
8087 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8093 if test -d /usr/nec ;then
8095 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8096 soname_spec='$libname${shared_ext}.$major'
8097 shlibpath_var=LD_LIBRARY_PATH
8103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8104 soname_spec='${libname}${release}${shared_ext}$major'
8105 shlibpath_var=LD_LIBRARY_PATH
8112 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8113 echo "${ECHO_T}$dynamic_linker" >&6
8114 test "$dynamic_linker" = no && can_build_shared=no
8116 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8117 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8119 if test -n "$hardcode_libdir_flag_spec" || \
8120 test -n "$runpath_var " || \
8121 test "X$hardcode_automatic"="Xyes" ; then
8123 # We can hardcode non-existant directories.
8124 if test "$hardcode_direct" != no &&
8125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8126 # have to relink, otherwise we might link with an installed library
8127 # when we should be linking with a yet-to-be-installed one
8128 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8129 test "$hardcode_minus_L" != no; then
8130 # Linking always hardcodes the temporary library directory.
8131 hardcode_action=relink
8133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8134 hardcode_action=immediate
8137 # We cannot hardcode anything, or else we can only hardcode existing
8139 hardcode_action=unsupported
8141 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8142 echo "${ECHO_T}$hardcode_action" >&6
8144 if test "$hardcode_action" = relink; then
8145 # Fast installation is not supported
8146 enable_fast_install=no
8147 elif test "$shlibpath_overrides_runpath" = yes ||
8148 test "$enable_shared" = no; then
8149 # Fast installation is not necessary
8150 enable_fast_install=needless
8155 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8156 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8157 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8158 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8159 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8160 echo "$as_me:$LINENO: result: yes" >&5
8161 echo "${ECHO_T}yes" >&6
8163 # FIXME - insert some real tests, host_os isn't really good enough
8166 if test -n "$STRIP" ; then
8167 striplib="$STRIP -x"
8168 echo "$as_me:$LINENO: result: yes" >&5
8169 echo "${ECHO_T}yes" >&6
8171 echo "$as_me:$LINENO: result: no" >&5
8172 echo "${ECHO_T}no" >&6
8176 echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6
8182 if test "x$enable_dlopen" != xyes; then
8183 enable_dlopen=unknown
8184 enable_dlopen_self=unknown
8185 enable_dlopen_self_static=unknown
8192 lt_cv_dlopen="load_add_on"
8194 lt_cv_dlopen_self=yes
8198 lt_cv_dlopen="LoadLibrary"
8203 lt_cv_dlopen="dlopen"
8208 # if libdl is installed we need to link against it
8209 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8210 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 ac_check_lib_save_LIBS=$LIBS
8216 cat >conftest.$ac_ext <<_ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h. */
8223 /* Override any gcc2 internal prototype to avoid an error. */
8227 /* We use char because int might match the return type of a gcc2
8228 builtin and then its argument prototype would still apply. */
8238 rm -f conftest.$ac_objext conftest$ac_exeext
8239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8240 (eval $ac_link) 2>conftest.er1
8242 grep -v '^ *+' conftest.er1 >conftest.err
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; } &&
8253 { ac_try='test -s conftest$ac_exeext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8259 ac_cv_lib_dl_dlopen=yes
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 ac_cv_lib_dl_dlopen=no
8266 rm -f conftest.err conftest.$ac_objext \
8267 conftest$ac_exeext conftest.$ac_ext
8268 LIBS=$ac_check_lib_save_LIBS
8270 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8271 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8272 if test $ac_cv_lib_dl_dlopen = yes; then
8273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8278 lt_cv_dlopen_self=yes
8285 echo "$as_me:$LINENO: checking for shl_load" >&5
8286 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8287 if test "${ac_cv_func_shl_load+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 cat >conftest.$ac_ext <<_ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8298 #define shl_load innocuous_shl_load
8300 /* System header to define __stub macros and hopefully few prototypes,
8301 which can conflict with char shl_load (); below.
8302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8303 <limits.h> exists even on freestanding compilers. */
8306 # include <limits.h>
8308 # include <assert.h>
8313 /* Override any gcc2 internal prototype to avoid an error. */
8318 /* We use char because int might match the return type of a gcc2
8319 builtin and then its argument prototype would still apply. */
8321 /* The GNU C library defines this for functions which it implements
8322 to always fail with ENOSYS. Some functions are actually named
8323 something starting with __ and the normal name is an alias. */
8324 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8327 char (*f) () = shl_load;
8336 return f != shl_load;
8341 rm -f conftest.$ac_objext conftest$ac_exeext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8343 (eval $ac_link) 2>conftest.er1
8345 grep -v '^ *+' conftest.er1 >conftest.err
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; } &&
8356 { ac_try='test -s conftest$ac_exeext'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 ac_cv_func_shl_load=yes
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8367 ac_cv_func_shl_load=no
8369 rm -f conftest.err conftest.$ac_objext \
8370 conftest$ac_exeext conftest.$ac_ext
8372 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8373 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8374 if test $ac_cv_func_shl_load = yes; then
8375 lt_cv_dlopen="shl_load"
8377 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8378 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8379 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 ac_check_lib_save_LIBS=$LIBS
8384 cat >conftest.$ac_ext <<_ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8391 /* Override any gcc2 internal prototype to avoid an error. */
8395 /* We use char because int might match the return type of a gcc2
8396 builtin and then its argument prototype would still apply. */
8406 rm -f conftest.$ac_objext conftest$ac_exeext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8408 (eval $ac_link) 2>conftest.er1
8410 grep -v '^ *+' conftest.er1 >conftest.err
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } &&
8415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try='test -s conftest$ac_exeext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_cv_lib_dld_shl_load=yes
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8432 ac_cv_lib_dld_shl_load=no
8434 rm -f conftest.err conftest.$ac_objext \
8435 conftest$ac_exeext conftest.$ac_ext
8436 LIBS=$ac_check_lib_save_LIBS
8438 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8439 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8440 if test $ac_cv_lib_dld_shl_load = yes; then
8441 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8443 echo "$as_me:$LINENO: checking for dlopen" >&5
8444 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8445 if test "${ac_cv_func_dlopen+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 cat >conftest.$ac_ext <<_ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8456 #define dlopen innocuous_dlopen
8458 /* System header to define __stub macros and hopefully few prototypes,
8459 which can conflict with char dlopen (); below.
8460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8461 <limits.h> exists even on freestanding compilers. */
8464 # include <limits.h>
8466 # include <assert.h>
8471 /* Override any gcc2 internal prototype to avoid an error. */
8476 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */
8479 /* The GNU C library defines this for functions which it implements
8480 to always fail with ENOSYS. Some functions are actually named
8481 something starting with __ and the normal name is an alias. */
8482 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8485 char (*f) () = dlopen;
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>conftest.er1
8503 grep -v '^ *+' conftest.er1 >conftest.err
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } &&
8508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; } &&
8514 { ac_try='test -s conftest$ac_exeext'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
8520 ac_cv_func_dlopen=yes
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8525 ac_cv_func_dlopen=no
8527 rm -f conftest.err conftest.$ac_objext \
8528 conftest$ac_exeext conftest.$ac_ext
8530 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8531 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8532 if test $ac_cv_func_dlopen = yes; then
8533 lt_cv_dlopen="dlopen"
8535 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8536 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8537 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 ac_check_lib_save_LIBS=$LIBS
8542 cat >conftest.$ac_ext <<_ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8549 /* Override any gcc2 internal prototype to avoid an error. */
8553 /* We use char because int might match the return type of a gcc2
8554 builtin and then its argument prototype would still apply. */
8564 rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8566 (eval $ac_link) 2>conftest.er1
8568 grep -v '^ *+' conftest.er1 >conftest.err
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
8573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; } &&
8579 { ac_try='test -s conftest$ac_exeext'
8580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 ac_cv_lib_dl_dlopen=yes
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 ac_cv_lib_dl_dlopen=no
8592 rm -f conftest.err conftest.$ac_objext \
8593 conftest$ac_exeext conftest.$ac_ext
8594 LIBS=$ac_check_lib_save_LIBS
8596 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8598 if test $ac_cv_lib_dl_dlopen = yes; then
8599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8601 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8602 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 ac_check_lib_save_LIBS=$LIBS
8608 cat >conftest.$ac_ext <<_ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8615 /* Override any gcc2 internal prototype to avoid an error. */
8619 /* We use char because int might match the return type of a gcc2
8620 builtin and then its argument prototype would still apply. */
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8632 (eval $ac_link) 2>conftest.er1
8634 grep -v '^ *+' conftest.er1 >conftest.err
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; } &&
8645 { ac_try='test -s conftest$ac_exeext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 ac_cv_lib_svld_dlopen=yes
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 ac_cv_lib_svld_dlopen=no
8658 rm -f conftest.err conftest.$ac_objext \
8659 conftest$ac_exeext conftest.$ac_ext
8660 LIBS=$ac_check_lib_save_LIBS
8662 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8663 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8664 if test $ac_cv_lib_svld_dlopen = yes; then
8665 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8667 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8668 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8669 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 ac_check_lib_save_LIBS=$LIBS
8674 cat >conftest.$ac_ext <<_ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8681 /* Override any gcc2 internal prototype to avoid an error. */
8685 /* We use char because int might match the return type of a gcc2
8686 builtin and then its argument prototype would still apply. */
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698 (eval $ac_link) 2>conftest.er1
8700 grep -v '^ *+' conftest.er1 >conftest.err
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } &&
8705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_lib_dld_dld_link=yes
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 ac_cv_lib_dld_dld_link=no
8724 rm -f conftest.err conftest.$ac_objext \
8725 conftest$ac_exeext conftest.$ac_ext
8726 LIBS=$ac_check_lib_save_LIBS
8728 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8729 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8730 if test $ac_cv_lib_dld_dld_link = yes; then
8731 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8752 if test "x$lt_cv_dlopen" != xno; then
8758 case $lt_cv_dlopen in
8760 save_CPPFLAGS="$CPPFLAGS"
8761 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8763 save_LDFLAGS="$LDFLAGS"
8764 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8767 LIBS="$lt_cv_dlopen_libs $LIBS"
8769 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8770 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8771 if test "${lt_cv_dlopen_self+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 if test "$cross_compiling" = yes; then :
8775 lt_cv_dlopen_self=cross
8777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8778 lt_status=$lt_dlunknown
8779 cat > conftest.$ac_ext <<EOF
8780 #line 8780 "configure"
8781 #include "confdefs.h"
8790 # define LT_DLGLOBAL RTLD_GLOBAL
8793 # define LT_DLGLOBAL DL_GLOBAL
8795 # define LT_DLGLOBAL 0
8799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8800 find out it does not work in some platform. */
8801 #ifndef LT_DLLAZY_OR_NOW
8803 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8806 # define LT_DLLAZY_OR_NOW DL_LAZY
8809 # define LT_DLLAZY_OR_NOW RTLD_NOW
8812 # define LT_DLLAZY_OR_NOW DL_NOW
8814 # define LT_DLLAZY_OR_NOW 0
8822 extern "C" void exit (int);
8825 void fnord() { int i=42;}
8828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8829 int status = $lt_dlunknown;
8833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8834 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8835 /* dlclose (self); */
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 (eval $ac_link) 2>&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8846 (./conftest; exit; ) 2>/dev/null
8849 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8850 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8851 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8854 # compilation failed
8855 lt_cv_dlopen_self=no
8862 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8863 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8865 if test "x$lt_cv_dlopen_self" = xyes; then
8866 LDFLAGS="$LDFLAGS $link_static_flag"
8867 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8868 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8869 if test "${lt_cv_dlopen_self_static+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 if test "$cross_compiling" = yes; then :
8873 lt_cv_dlopen_self_static=cross
8875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8876 lt_status=$lt_dlunknown
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8878 "configure"
8879 #include "confdefs.h"
8888 # define LT_DLGLOBAL RTLD_GLOBAL
8891 # define LT_DLGLOBAL DL_GLOBAL
8893 # define LT_DLGLOBAL 0
8897 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8898 find out it does not work in some platform. */
8899 #ifndef LT_DLLAZY_OR_NOW
8901 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8904 # define LT_DLLAZY_OR_NOW DL_LAZY
8907 # define LT_DLLAZY_OR_NOW RTLD_NOW
8910 # define LT_DLLAZY_OR_NOW DL_NOW
8912 # define LT_DLLAZY_OR_NOW 0
8920 extern "C" void exit (int);
8923 void fnord() { int i=42;}
8926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8927 int status = $lt_dlunknown;
8931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8932 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8933 /* dlclose (self); */
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8944 (./conftest; exit; ) 2>/dev/null
8947 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8948 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8949 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8952 # compilation failed
8953 lt_cv_dlopen_self_static=no
8960 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8961 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8964 CPPFLAGS="$save_CPPFLAGS"
8965 LDFLAGS="$save_LDFLAGS"
8970 case $lt_cv_dlopen_self in
8971 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8972 *) enable_dlopen_self=unknown ;;
8975 case $lt_cv_dlopen_self_static in
8976 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8977 *) enable_dlopen_self_static=unknown ;;
8982 # Report which librarie types wil actually be built
8983 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8984 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8985 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8986 echo "${ECHO_T}$can_build_shared" >&6
8988 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8989 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8990 test "$can_build_shared" = "no" && enable_shared=no
8992 # On AIX, shared libraries and static libraries use the same namespace, and
8993 # are all built from PIC.
8996 test "$enable_shared" = yes && enable_static=no
8997 if test -n "$RANLIB"; then
8998 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8999 postinstall_cmds='$RANLIB $lib'
9004 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9005 test "$enable_shared" = yes && enable_static=no
9008 darwin* | rhapsody*)
9009 if test "$GCC" = yes; then
9010 archive_cmds_need_lc=no
9012 rhapsody* | darwin1.[012])
9013 allow_undefined_flag='-undefined suppress'
9016 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9017 allow_undefined_flag='-flat_namespace -undefined suppress'
9019 case ${MACOSX_DEPLOYMENT_TARGET} in
9021 allow_undefined_flag='-flat_namespace -undefined suppress'
9024 allow_undefined_flag='-undefined dynamic_lookup'
9030 output_verbose_link_cmd='echo'
9031 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9032 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9033 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9034 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}'
9035 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}'
9037 hardcode_automatic=yes
9038 hardcode_shlibpath_var=unsupported
9039 whole_archive_flag_spec='-all_load $convenience'
9040 link_all_deplibs=yes
9046 echo "$as_me:$LINENO: result: $enable_shared" >&5
9047 echo "${ECHO_T}$enable_shared" >&6
9049 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9050 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9051 # Make sure either enable_shared or enable_static is yes.
9052 test "$enable_shared" = yes || enable_static=yes
9053 echo "$as_me:$LINENO: result: $enable_static" >&5
9054 echo "${ECHO_T}$enable_static" >&6
9056 # The else clause should only fire when bootstrapping the
9057 # libtool distribution, otherwise you forgot to ship ltmain.sh
9058 # with your package, and you will get complaints that there are
9059 # no rules to generate ltmain.sh.
9060 if test -f "$ltmain"; then
9061 # See if we are running on zsh, and set the options which allow our commands through
9062 # without removal of \ escapes.
9063 if test -n "${ZSH_VERSION+set}" ; then
9064 setopt NO_GLOB_SUBST
9066 # Now quote all the things that may contain metacharacters while being
9067 # careful not to overquote the AC_SUBSTed values. We take copies of the
9068 # variables and quote the copies for generation of the libtool script.
9069 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9071 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9072 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9073 deplibs_check_method reload_flag reload_cmds need_locks \
9074 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9075 lt_cv_sys_global_symbol_to_c_name_address \
9076 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9077 old_postinstall_cmds old_postuninstall_cmds \
9081 lt_prog_compiler_wl \
9082 lt_prog_compiler_pic \
9083 lt_prog_compiler_static \
9084 lt_prog_compiler_no_builtin_flag \
9085 export_dynamic_flag_spec \
9086 thread_safe_flag_spec \
9087 whole_archive_flag_spec \
9088 enable_shared_with_static_runtimes \
9090 old_archive_from_new_cmds \
9095 compiler_lib_search_path \
9097 archive_expsym_cmds \
9099 postuninstall_cmds \
9100 old_archive_from_expsyms_cmds \
9101 allow_undefined_flag \
9103 export_symbols_cmds \
9104 hardcode_libdir_flag_spec \
9105 hardcode_libdir_flag_spec_ld \
9106 hardcode_libdir_separator \
9107 hardcode_automatic \
9109 module_expsym_cmds \
9110 lt_cv_prog_compiler_c_o \
9115 old_archive_cmds | \
9116 old_archive_from_new_cmds | \
9118 archive_expsym_cmds | \
9120 module_expsym_cmds | \
9121 old_archive_from_expsyms_cmds | \
9122 export_symbols_cmds | \
9123 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9124 postinstall_cmds | postuninstall_cmds | \
9125 old_postinstall_cmds | old_postuninstall_cmds | \
9126 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9127 # Double-quote double-evaled strings.
9128 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9137 *'\$0 --fallback-echo"')
9138 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9143 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9145 { echo "$as_me:$LINENO: creating $ofile" >&5
9146 echo "$as_me: creating $ofile" >&6;}
9148 cat <<__EOF__ >> "$cfgfile"
9151 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9152 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9153 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9155 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9156 # Free Software Foundation, Inc.
9158 # This file is part of GNU Libtool:
9159 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9161 # This program is free software; you can redistribute it and/or modify
9162 # it under the terms of the GNU General Public License as published by
9163 # the Free Software Foundation; either version 2 of the License, or
9164 # (at your option) any later version.
9166 # This program is distributed in the hope that it will be useful, but
9167 # WITHOUT ANY WARRANTY; without even the implied warranty of
9168 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9169 # General Public License for more details.
9171 # You should have received a copy of the GNU General Public License
9172 # along with this program; if not, write to the Free Software
9173 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9175 # As a special exception to the GNU General Public License, if you
9176 # distribute this file as part of a program that contains a
9177 # configuration script generated by Autoconf, you may include it under
9178 # the same distribution terms that you use for the rest of that program.
9180 # A sed program that does not truncate output.
9183 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9184 Xsed="$SED -e s/^X//"
9186 # The HP-UX ksh and POSIX shell print the target directory to stdout
9188 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9190 # The names of the tagged configurations supported by this script.
9193 # ### BEGIN LIBTOOL CONFIG
9195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9197 # Shell to use when invoking shell scripts.
9200 # Whether or not to build shared libraries.
9201 build_libtool_libs=$enable_shared
9203 # Whether or not to build static libraries.
9204 build_old_libs=$enable_static
9206 # Whether or not to add -lc for building shared libraries.
9207 build_libtool_need_lc=$archive_cmds_need_lc
9209 # Whether or not to disallow shared libs when runtime libs are static
9210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9212 # Whether or not to optimize for fast installation.
9213 fast_install=$enable_fast_install
9216 host_alias=$host_alias
9219 # An echo program that does not interpret backslashes.
9224 AR_FLAGS=$lt_AR_FLAGS
9229 # A language-specific compiler.
9232 # Is the compiler the GNU C compiler?
9238 # The linker used to build libraries.
9241 # Whether we need hard or soft links.
9244 # A BSD-compatible nm program.
9247 # A symbol stripping program
9250 # Used to examine libraries when file_magic_cmd begins "file"
9251 MAGIC_CMD=$MAGIC_CMD
9253 # Used on cygwin: DLL creation program.
9256 # Used on cygwin: object dumper.
9259 # Used on cygwin: assembler.
9262 # The name of the directory that contains temporary libtool files.
9265 # How to create reloadable object files.
9266 reload_flag=$lt_reload_flag
9267 reload_cmds=$lt_reload_cmds
9269 # How to pass a linker flag through the compiler.
9270 wl=$lt_lt_prog_compiler_wl
9272 # Object file suffix (normally "o").
9275 # Old archive suffix (normally "a").
9278 # Shared library suffix (normally ".so").
9279 shrext_cmds='$shrext_cmds'
9281 # Executable file suffix (normally "").
9284 # Additional compiler flags for building library objects.
9285 pic_flag=$lt_lt_prog_compiler_pic
9288 # What is the maximum length of a command?
9289 max_cmd_len=$lt_cv_sys_max_cmd_len
9291 # Does compiler simultaneously support -c and -o options?
9292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9294 # Must we lock files when doing compilation ?
9295 need_locks=$lt_need_locks
9297 # Do we need the lib prefix for modules?
9298 need_lib_prefix=$need_lib_prefix
9300 # Do we need a version for libraries?
9301 need_version=$need_version
9303 # Whether dlopen is supported.
9304 dlopen_support=$enable_dlopen
9306 # Whether dlopen of programs is supported.
9307 dlopen_self=$enable_dlopen_self
9309 # Whether dlopen of statically linked programs is supported.
9310 dlopen_self_static=$enable_dlopen_self_static
9312 # Compiler flag to prevent dynamic linking.
9313 link_static_flag=$lt_lt_prog_compiler_static
9315 # Compiler flag to turn off builtin functions.
9316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9318 # Compiler flag to allow reflexive dlopens.
9319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9321 # Compiler flag to generate shared objects directly from archives.
9322 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9324 # Compiler flag to generate thread-safe objects.
9325 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9327 # Library versioning type.
9328 version_type=$version_type
9330 # Format of library name prefix.
9331 libname_spec=$lt_libname_spec
9333 # List of archive names. First name is the real one, the rest are links.
9334 # The last name is the one that the linker finds with -lNAME.
9335 library_names_spec=$lt_library_names_spec
9337 # The coded name of the library, if different from the real name.
9338 soname_spec=$lt_soname_spec
9340 # Commands used to build and install an old-style archive.
9342 old_archive_cmds=$lt_old_archive_cmds
9343 old_postinstall_cmds=$lt_old_postinstall_cmds
9344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9346 # Create an old-style archive from a shared archive.
9347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9349 # Create a temporary old-style archive to link instead of a shared archive.
9350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9352 # Commands used to build and install a shared archive.
9353 archive_cmds=$lt_archive_cmds
9354 archive_expsym_cmds=$lt_archive_expsym_cmds
9355 postinstall_cmds=$lt_postinstall_cmds
9356 postuninstall_cmds=$lt_postuninstall_cmds
9358 # Commands used to build a loadable module (assumed same as above if empty)
9359 module_cmds=$lt_module_cmds
9360 module_expsym_cmds=$lt_module_expsym_cmds
9362 # Commands to strip libraries.
9363 old_striplib=$lt_old_striplib
9364 striplib=$lt_striplib
9366 # Dependencies to place before the objects being linked to create a
9368 predep_objects=$lt_predep_objects
9370 # Dependencies to place after the objects being linked to create a
9372 postdep_objects=$lt_postdep_objects
9374 # Dependencies to place before the objects being linked to create a
9378 # Dependencies to place after the objects being linked to create a
9380 postdeps=$lt_postdeps
9382 # The library search path used internally by the compiler when linking
9384 compiler_lib_search_path=$lt_compiler_lib_search_path
9386 # Method to check whether dependent libraries are shared objects.
9387 deplibs_check_method=$lt_deplibs_check_method
9389 # Command to use when deplibs_check_method == file_magic.
9390 file_magic_cmd=$lt_file_magic_cmd
9392 # Flag that allows shared libraries with undefined symbols to be built.
9393 allow_undefined_flag=$lt_allow_undefined_flag
9395 # Flag that forces no undefined symbols.
9396 no_undefined_flag=$lt_no_undefined_flag
9398 # Commands used to finish a libtool library installation in a directory.
9399 finish_cmds=$lt_finish_cmds
9401 # Same as above, but a single script fragment to be evaled but not shown.
9402 finish_eval=$lt_finish_eval
9404 # Take the output of nm and produce a listing of raw symbols and C names.
9405 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9407 # Transform the output of nm in a proper C declaration
9408 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9410 # Transform the output of nm in a C name address pair
9411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9413 # This is the shared library runtime path variable.
9414 runpath_var=$runpath_var
9416 # This is the shared library path variable.
9417 shlibpath_var=$shlibpath_var
9419 # Is shlibpath searched before the hard-coded library search path?
9420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9422 # How to hardcode a shared library path into an executable.
9423 hardcode_action=$hardcode_action
9425 # Whether we should hardcode library paths into libraries.
9426 hardcode_into_libs=$hardcode_into_libs
9428 # Flag to hardcode \$libdir into a binary during linking.
9429 # This must work even if \$libdir does not exist.
9430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9432 # If ld is used when linking, flag to hardcode \$libdir into
9433 # a binary during linking. This must work even if \$libdir does
9435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9437 # Whether we need a single -rpath flag with a separated argument.
9438 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9440 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9442 hardcode_direct=$hardcode_direct
9444 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9446 hardcode_minus_L=$hardcode_minus_L
9448 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9449 # the resulting binary.
9450 hardcode_shlibpath_var=$hardcode_shlibpath_var
9452 # Set to yes if building a shared library automatically hardcodes DIR into the library
9453 # and all subsequent libraries and executables linked against it.
9454 hardcode_automatic=$hardcode_automatic
9456 # Variables whose values should be saved in libtool wrapper scripts and
9457 # restored at relink time.
9458 variables_saved_for_relink="$variables_saved_for_relink"
9460 # Whether libtool must link a program against all its dependency libraries.
9461 link_all_deplibs=$link_all_deplibs
9463 # Compile-time system search path for libraries
9464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9466 # Run-time system search path for libraries
9467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9469 # Fix the shell variable \$srcfile for the compiler.
9470 fix_srcfile_path="$fix_srcfile_path"
9472 # Set to yes if exported symbols are required.
9473 always_export_symbols=$always_export_symbols
9475 # The commands to list exported symbols.
9476 export_symbols_cmds=$lt_export_symbols_cmds
9478 # The commands to extract the exported symbol list from a shared archive.
9479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9481 # Symbols that should not be listed in the preloaded symbols.
9482 exclude_expsyms=$lt_exclude_expsyms
9484 # Symbols that must always be exported.
9485 include_expsyms=$lt_include_expsyms
9487 # ### END LIBTOOL CONFIG
9494 cat <<\EOF >> "$cfgfile"
9496 # AIX sometimes has problems with the GCC collect2 program. For some
9497 # reason, if we set the COLLECT_NAMES environment variable, the problems
9498 # vanish in a puff of smoke.
9499 if test "X${COLLECT_NAMES+set}" != Xset; then
9501 export COLLECT_NAMES
9507 # We use sed instead of cat because bash on DJGPP gets confused if
9508 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9509 # text mode, it properly converts lines to CR/LF. This bash problem
9510 # is reportedly fixed, but why not run on old versions too?
9511 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9513 mv -f "$cfgfile" "$ofile" || \
9514 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9518 # If there is no Makefile yet, we rely on a make rule to execute
9519 # `config.status --recheck' to rerun these tests and create the
9520 # libtool script then.
9521 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9522 if test -f "$ltmain_in"; then
9523 test -f Makefile && make "$ltmain"
9529 ac_cpp='$CPP $CPPFLAGS'
9530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9537 # Check whether --with-tags or --without-tags was given.
9538 if test "${with_tags+set}" = set; then
9539 withval="$with_tags"
9543 if test -f "$ltmain" && test -n "$tagnames"; then
9544 if test ! -f "${ofile}"; then
9545 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9546 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9549 if test -z "$LTCC"; then
9550 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9551 if test -z "$LTCC"; then
9552 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9553 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9555 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9556 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9560 # Extract list of available tagged configurations in $ofile.
9561 # Note that this assumes the entire list is on one line.
9562 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9565 for tagname in $tagnames; do
9567 # Check whether tagname contains only valid characters
9568 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9570 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9571 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9572 { (exit 1); exit 1; }; }
9576 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9578 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9579 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9580 { (exit 1); exit 1; }; }
9583 # Update the list of available tags.
9584 if test -n "$tagname"; then
9585 echo appending configuration tag \"$tagname\" to $ofile
9589 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9591 ac_cpp='$CXXCPP $CPPFLAGS'
9592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9599 archive_cmds_need_lc_CXX=no
9600 allow_undefined_flag_CXX=
9601 always_export_symbols_CXX=no
9602 archive_expsym_cmds_CXX=
9603 export_dynamic_flag_spec_CXX=
9604 hardcode_direct_CXX=no
9605 hardcode_libdir_flag_spec_CXX=
9606 hardcode_libdir_flag_spec_ld_CXX=
9607 hardcode_libdir_separator_CXX=
9608 hardcode_minus_L_CXX=no
9609 hardcode_automatic_CXX=no
9611 module_expsym_cmds_CXX=
9612 link_all_deplibs_CXX=unknown
9613 old_archive_cmds_CXX=$old_archive_cmds
9614 no_undefined_flag_CXX=
9615 whole_archive_flag_spec_CXX=
9616 enable_shared_with_static_runtimes_CXX=no
9618 # Dependencies to place before and after the object being linked:
9620 postdep_objects_CXX=
9623 compiler_lib_search_path_CXX=
9625 # Source file extension for C++ test sources.
9628 # Object file extension for compiled C++ test sources.
9632 # Code to be used in simple compile tests
9633 lt_simple_compile_test_code="int some_variable = 0;\n"
9635 # Code to be used in simple link tests
9636 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9638 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9640 # If no C compiler was specified, use CC.
9643 # Allow CC to be a program name with arguments.
9647 # Allow CC to be a program name with arguments.
9652 lt_save_with_gnu_ld=$with_gnu_ld
9653 lt_save_path_LD=$lt_cv_path_LD
9654 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9655 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9657 unset lt_cv_prog_gnu_ld
9659 if test -n "${lt_cv_path_LDCXX+set}"; then
9660 lt_cv_path_LD=$lt_cv_path_LDCXX
9664 test -z "${LDCXX+set}" || LD=$LDCXX
9668 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9670 # We don't want -fno-exception wen compiling C++ code, so set the
9671 # no_builtin_flag separately
9672 if test "$GXX" = yes; then
9673 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9675 lt_prog_compiler_no_builtin_flag_CXX=
9678 if test "$GXX" = yes; then
9679 # Set up default GNU C++ configuration
9682 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9683 if test "${with_gnu_ld+set}" = set; then
9684 withval="$with_gnu_ld"
9685 test "$withval" = no || with_gnu_ld=yes
9690 if test "$GCC" = yes; then
9691 # Check if gcc -print-prog-name=ld gives a path.
9692 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9693 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9696 # gcc leaves a trailing carriage return which upsets mingw
9697 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9699 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9702 # Accept absolute paths.
9704 re_direlt='/[^/][^/]*/\.\./'
9705 # Canonicalize the pathname of ld
9706 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9707 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9708 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9710 test -z "$LD" && LD="$ac_prog"
9713 # If it fails, then pretend we aren't using GCC.
9717 # If it is relative, then search for the first ld in PATH.
9721 elif test "$with_gnu_ld" = yes; then
9722 echo "$as_me:$LINENO: checking for GNU ld" >&5
9723 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9725 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9726 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9728 if test "${lt_cv_path_LD+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 if test -z "$LD"; then
9732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9733 for ac_dir in $PATH; do
9735 test -z "$ac_dir" && ac_dir=.
9736 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9737 lt_cv_path_LD="$ac_dir/$ac_prog"
9738 # Check to see if the program is GNU ld. I'd rather use --version,
9739 # but apparently some GNU ld's only accept -v.
9740 # Break only if it was the GNU/non-GNU ld that we prefer.
9741 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9742 *GNU* | *'with BFD'*)
9743 test "$with_gnu_ld" != no && break
9746 test "$with_gnu_ld" != yes && break
9753 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9758 if test -n "$LD"; then
9759 echo "$as_me:$LINENO: result: $LD" >&5
9760 echo "${ECHO_T}$LD" >&6
9762 echo "$as_me:$LINENO: result: no" >&5
9763 echo "${ECHO_T}no" >&6
9765 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9766 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9767 { (exit 1); exit 1; }; }
9768 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9769 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9770 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9774 case `$LD -v 2>&1 </dev/null` in
9775 *GNU* | *'with BFD'*)
9776 lt_cv_prog_gnu_ld=yes
9779 lt_cv_prog_gnu_ld=no
9783 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9784 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9785 with_gnu_ld=$lt_cv_prog_gnu_ld
9789 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9790 # archiving commands below assume that GNU ld is being used.
9791 if test "$with_gnu_ld" = yes; then
9792 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793 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'
9795 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9798 # If archive_cmds runs LD, not CC, wlarc should be empty
9799 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9800 # investigate it a little bit more. (MM)
9803 # ancient GNU ld didn't support --whole-archive et. al.
9804 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9805 grep 'no-whole-archive' > /dev/null; then
9806 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9808 whole_archive_flag_spec_CXX=
9814 # A generic and very simple default shared library creation
9815 # command for GNU C++ for the case where it uses the native
9816 # linker, instead of GNU ld. If possible, this setting should
9817 # overridden to take advantage of the native linker features on
9818 # the platform it is being used on.
9819 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9822 # Commands to make compiler produce verbose output that lists
9823 # what "hidden" libraries, object files and flags are used when
9824 # linking a shared library.
9825 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9833 # PORTME: fill in a description of your system's C++ link characteristics
9834 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9835 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9839 # FIXME: insert proper C++ library support
9843 if test "$host_cpu" = ia64; then
9844 # On IA64, the linker does run time linking by default, so we don't
9845 # have to do anything special.
9846 aix_use_runtimelinking=no
9847 exp_sym_flag='-Bexport'
9850 aix_use_runtimelinking=no
9852 # Test if we are trying to use run time linking or normal
9853 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9854 # need to do runtime linking.
9855 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9856 for ld_flag in $LDFLAGS; do
9859 aix_use_runtimelinking=yes
9866 exp_sym_flag='-bexport'
9867 no_entry_flag='-bnoentry'
9870 # When large executables or shared objects are built, AIX ld can
9871 # have problems creating the table of contents. If linking a library
9872 # or program results in "error TOC overflow" add -mminimal-toc to
9873 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9874 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9877 hardcode_direct_CXX=yes
9878 hardcode_libdir_separator_CXX=':'
9879 link_all_deplibs_CXX=yes
9881 if test "$GXX" = yes; then
9882 case $host_os in aix4.012|aix4.012.*)
9883 # We only want to do this on AIX 4.2 and lower, the check
9884 # below for broken collect2 doesn't work under 4.3+
9885 collect2name=`${CC} -print-prog-name=collect2`
9886 if test -f "$collect2name" && \
9887 strings "$collect2name" | grep resolve_lib_name >/dev/null
9889 # We have reworked collect2
9890 hardcode_direct_CXX=yes
9892 # We have old collect2
9893 hardcode_direct_CXX=unsupported
9894 # It fails to find uninstalled libraries when the uninstalled
9895 # path is not listed in the libpath. Setting hardcode_minus_L
9896 # to unsupported forces relinking
9897 hardcode_minus_L_CXX=yes
9898 hardcode_libdir_flag_spec_CXX='-L$libdir'
9899 hardcode_libdir_separator_CXX=
9902 shared_flag='-shared'
9905 if test "$host_cpu" = ia64; then
9906 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9907 # chokes on -Wl,-G. The following line is correct:
9910 if test "$aix_use_runtimelinking" = yes; then
9911 shared_flag='${wl}-G'
9913 shared_flag='${wl}-bM:SRE'
9918 # It seems that -bexpall does not export symbols beginning with
9919 # underscore (_), so it is better to generate a list of symbols to export.
9920 always_export_symbols_CXX=yes
9921 if test "$aix_use_runtimelinking" = yes; then
9922 # Warning - without using the other runtime loading flags (-brtl),
9923 # -berok will link without error, but may produce a broken library.
9924 allow_undefined_flag_CXX='-berok'
9925 # Determine the default libpath from the value encoded in an empty executable.
9926 cat >conftest.$ac_ext <<_ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943 (eval $ac_link) 2>conftest.er1
9945 grep -v '^ *+' conftest.er1 >conftest.err
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } &&
9950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9965 # Check for a 64-bit object if we didn't find anything.
9966 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; }
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9973 rm -f conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9977 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9979 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9981 if test "$host_cpu" = ia64; then
9982 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9983 allow_undefined_flag_CXX="-z nodefs"
9984 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9986 # Determine the default libpath from the value encoded in an empty executable.
9987 cat >conftest.$ac_ext <<_ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>conftest.er1
10006 grep -v '^ *+' conftest.er1 >conftest.err
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; } &&
10017 { ac_try='test -s conftest$ac_exeext'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10024 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10026 # Check for a 64-bit object if we didn't find anything.
10027 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; }
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10034 rm -f conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10038 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10039 # Warning - without using the other run time loading flags,
10040 # -berok will link without error, but may produce a broken library.
10041 no_undefined_flag_CXX=' ${wl}-bernotok'
10042 allow_undefined_flag_CXX=' ${wl}-berok'
10043 # -bexpall does not export symbols beginning with underscore (_)
10044 always_export_symbols_CXX=yes
10045 # Exported symbols can be pulled into shared objects from archives
10046 whole_archive_flag_spec_CXX=' '
10047 archive_cmds_need_lc_CXX=yes
10048 # This is similar to how AIX traditionally builds it's shared libraries.
10049 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10054 case $cc_basename in
10056 # FIXME: insert proper C++ library support
10062 cygwin* | mingw* | pw32*)
10063 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10064 # as there is no search path for DLLs.
10065 hardcode_libdir_flag_spec_CXX='-L$libdir'
10066 allow_undefined_flag_CXX=unsupported
10067 always_export_symbols_CXX=no
10068 enable_shared_with_static_runtimes_CXX=yes
10070 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10071 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10072 # If the export-symbols file already is a .def file (1st line
10073 # is EXPORTS), use it as is; otherwise, prepend...
10074 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10075 cp $export_symbols $output_objdir/$soname.def;
10077 echo EXPORTS > $output_objdir/$soname.def;
10078 cat $export_symbols >> $output_objdir/$soname.def;
10080 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10086 darwin* | rhapsody*)
10087 if test "$GXX" = yes; then
10088 archive_cmds_need_lc_CXX=no
10090 rhapsody* | darwin1.[012])
10091 allow_undefined_flag_CXX='-undefined suppress'
10094 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10095 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10097 case ${MACOSX_DEPLOYMENT_TARGET} in
10099 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10102 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10108 lt_int_apple_cc_single_mod=no
10109 output_verbose_link_cmd='echo'
10110 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10111 lt_int_apple_cc_single_mod=yes
10113 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10114 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10116 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10118 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10120 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10121 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10122 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}'
10124 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10126 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}'
10127 hardcode_direct_CXX=no
10128 hardcode_automatic_CXX=yes
10129 hardcode_shlibpath_var_CXX=unsupported
10130 whole_archive_flag_spec_CXX='-all_load $convenience'
10131 link_all_deplibs_CXX=yes
10138 case $cc_basename in
10140 # FIXME: insert proper C++ library support
10144 # Green Hills C++ Compiler
10145 # FIXME: insert proper C++ library support
10149 # FIXME: insert proper C++ library support
10155 # C++ shared libraries reported to be fairly broken before switch to ELF
10159 archive_cmds_need_lc_CXX=no
10161 freebsd* | kfreebsd*-gnu)
10162 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10169 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10170 hardcode_libdir_separator_CXX=:
10171 export_dynamic_flag_spec_CXX='${wl}-E'
10172 hardcode_direct_CXX=yes
10173 hardcode_minus_L_CXX=yes # Not in the search PATH,
10174 # but as the default
10175 # location of the library.
10177 case $cc_basename in
10179 # FIXME: insert proper C++ library support
10183 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'
10184 # Commands to make compiler produce verbose output that lists
10185 # what "hidden" libraries, object files and flags are used when
10186 # linking a shared library.
10188 # There doesn't appear to be a way to prevent this compiler from
10189 # explicitly linking system object files so we need to strip them
10190 # from the output so that they don't get included in the library
10192 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'
10195 if test "$GXX" = yes; then
10196 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'
10198 # FIXME: insert proper C++ library support
10205 if test $with_gnu_ld = no; then
10206 case "$host_cpu" in
10208 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10209 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10210 hardcode_libdir_separator_CXX=:
10213 hardcode_libdir_flag_spec_CXX='-L$libdir'
10216 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10217 hardcode_libdir_separator_CXX=:
10218 export_dynamic_flag_spec_CXX='${wl}-E'
10222 case "$host_cpu" in
10224 hardcode_direct_CXX=no
10225 hardcode_shlibpath_var_CXX=no
10228 hardcode_direct_CXX=no
10229 hardcode_shlibpath_var_CXX=no
10230 hardcode_minus_L_CXX=yes # Not in the search PATH,
10231 # but as the default
10232 # location of the library.
10235 hardcode_direct_CXX=yes
10236 hardcode_minus_L_CXX=yes # Not in the search PATH,
10237 # but as the default
10238 # location of the library.
10242 case $cc_basename in
10244 # FIXME: insert proper C++ library support
10248 case "$host_cpu" in
10250 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10253 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10256 # Commands to make compiler produce verbose output that lists
10257 # what "hidden" libraries, object files and flags are used when
10258 # linking a shared library.
10260 # There doesn't appear to be a way to prevent this compiler from
10261 # explicitly linking system object files so we need to strip them
10262 # from the output so that they don't get included in the library
10264 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'
10267 if test "$GXX" = yes; then
10268 if test $with_gnu_ld = no; then
10269 case "$host_cpu" in
10271 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10274 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'
10279 # FIXME: insert proper C++ library support
10286 case $cc_basename in
10289 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10291 # Archives containing C++ object files must be created using
10292 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10293 # necessary to make sure instantiated templates are included
10295 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10298 if test "$GXX" = yes; then
10299 if test "$with_gnu_ld" = no; then
10300 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10302 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'
10305 link_all_deplibs_CXX=yes
10308 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10309 hardcode_libdir_separator_CXX=:
10312 case $cc_basename in
10314 # Kuck and Associates, Inc. (KAI) C++ Compiler
10316 # KCC will only create a shared library if the output file
10317 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10318 # to its proper name (with version) after linking.
10319 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'
10320 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'
10321 # Commands to make compiler produce verbose output that lists
10322 # what "hidden" libraries, object files and flags are used when
10323 # linking a shared library.
10325 # There doesn't appear to be a way to prevent this compiler from
10326 # explicitly linking system object files so we need to strip them
10327 # from the output so that they don't get included in the library
10329 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'
10331 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10332 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10334 # Archives containing C++ object files must be created using
10335 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10336 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10341 archive_cmds_need_lc_CXX=no
10342 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10343 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'
10344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10346 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10350 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10351 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'
10353 runpath_var=LD_RUN_PATH
10354 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10355 hardcode_libdir_separator_CXX=:
10357 # Commands to make compiler produce verbose output that lists
10358 # what "hidden" libraries, object files and flags are used when
10359 # linking a shared library.
10361 # There doesn't appear to be a way to prevent this compiler from
10362 # explicitly linking system object files so we need to strip them
10363 # from the output so that they don't get included in the library
10365 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'
10370 # FIXME: insert proper C++ library support
10374 # FIXME: insert proper C++ library support
10378 case $cc_basename in
10380 # FIXME: insert proper C++ library support
10384 # FIXME: insert proper C++ library support
10390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10391 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10393 hardcode_libdir_flag_spec_CXX='-R$libdir'
10394 hardcode_direct_CXX=yes
10395 hardcode_shlibpath_var_CXX=no
10397 # Workaround some broken pre-1.5 toolchains
10398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10401 case $cc_basename in
10403 # Kuck and Associates, Inc. (KAI) C++ Compiler
10405 # KCC will only create a shared library if the output file
10406 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10407 # to its proper name (with version) after linking.
10408 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'
10410 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10411 hardcode_libdir_separator_CXX=:
10413 # Archives containing C++ object files must be created using
10414 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10415 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10419 # Rational C++ 2.4.1
10420 # FIXME: insert proper C++ library support
10424 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10425 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10428 hardcode_libdir_separator_CXX=:
10430 # Commands to make compiler produce verbose output that lists
10431 # what "hidden" libraries, object files and flags are used when
10432 # linking a shared library.
10434 # There doesn't appear to be a way to prevent this compiler from
10435 # explicitly linking system object files so we need to strip them
10436 # from the output so that they don't get included in the library
10438 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'
10441 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10442 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10443 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10445 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10446 hardcode_libdir_separator_CXX=:
10448 # Commands to make compiler produce verbose output that lists
10449 # what "hidden" libraries, object files and flags are used when
10450 # linking a shared library.
10451 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10454 # FIXME: insert proper C++ library support
10461 case $cc_basename in
10463 # Kuck and Associates, Inc. (KAI) C++ Compiler
10465 # KCC will only create a shared library if the output file
10466 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10467 # to its proper name (with version) after linking.
10468 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'
10470 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10471 hardcode_libdir_separator_CXX=:
10473 # Archives containing C++ object files must be created using
10474 # the KAI C++ compiler.
10475 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10478 # Rational C++ 2.4.1
10479 # FIXME: insert proper C++ library support
10483 allow_undefined_flag_CXX=' -expect_unresolved \*'
10484 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10485 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10486 echo "-hidden">> $lib.exp~
10487 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10490 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10491 hardcode_libdir_separator_CXX=:
10493 # Commands to make compiler produce verbose output that lists
10494 # what "hidden" libraries, object files and flags are used when
10495 # linking a shared library.
10497 # There doesn't appear to be a way to prevent this compiler from
10498 # explicitly linking system object files so we need to strip them
10499 # from the output so that they don't get included in the library
10501 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'
10504 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10505 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10506 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10508 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10509 hardcode_libdir_separator_CXX=:
10511 # Commands to make compiler produce verbose output that lists
10512 # what "hidden" libraries, object files and flags are used when
10513 # linking a shared library.
10514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10517 # FIXME: insert proper C++ library support
10524 # FIXME: insert proper C++ library support
10528 archive_cmds_need_lc_CXX=no
10529 case $cc_basename in
10531 # FIXME: insert proper C++ library support
10535 # FIXME: insert proper C++ library support
10541 case $cc_basename in
10544 # FIXME: insert proper C++ library support
10549 # FIXME: insert proper C++ library support
10553 # FIXME: insert proper C++ library support
10559 case $cc_basename in
10561 # Sun C++ 4.2, 5.x and Centerline C++
10562 no_undefined_flag_CXX=' -zdefs'
10563 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10564 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10565 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10567 hardcode_libdir_flag_spec_CXX='-R$libdir'
10568 hardcode_shlibpath_var_CXX=no
10570 solaris2.0-5 | solaris2.0-5.*) ;;
10572 # The C++ compiler is used as linker so we must use $wl
10573 # flag to pass the commands to the underlying system
10575 # Supported since Solaris 2.6 (maybe 2.5.1?)
10576 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10579 link_all_deplibs_CXX=yes
10581 # Commands to make compiler produce verbose output that lists
10582 # what "hidden" libraries, object files and flags are used when
10583 # linking a shared library.
10585 # There doesn't appear to be a way to prevent this compiler from
10586 # explicitly linking system object files so we need to strip them
10587 # from the output so that they don't get included in the library
10589 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10591 # Archives containing C++ object files must be created using
10592 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10593 # necessary to make sure instantiated templates are included
10595 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10598 # Green Hills C++ Compiler
10599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10601 # The C++ compiler must be used to create the archive.
10602 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10605 # GNU C++ compiler with Solaris linker
10606 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10607 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10608 if $CC --version | grep -v '^2\.7' > /dev/null; then
10609 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10610 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10611 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10613 # Commands to make compiler produce verbose output that lists
10614 # what "hidden" libraries, object files and flags are used when
10615 # linking a shared library.
10616 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10618 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10620 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10621 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10622 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10624 # Commands to make compiler produce verbose output that lists
10625 # what "hidden" libraries, object files and flags are used when
10626 # linking a shared library.
10627 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10630 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10635 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10636 archive_cmds_need_lc_CXX=no
10639 case $cc_basename in
10641 # NonStop-UX NCC 3.20
10642 # FIXME: insert proper C++ library support
10646 # FIXME: insert proper C++ library support
10652 # FIXME: insert proper C++ library support
10656 # FIXME: insert proper C++ library support
10660 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10661 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10662 test "$ld_shlibs_CXX" = no && can_build_shared=no
10668 cat > conftest.$ac_ext <<EOF
10672 Foo (void) { a = 0; }
10678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10679 (eval $ac_compile) 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; then
10683 # Parse the compiler output and extract the necessary
10684 # objects, libraries and library flags.
10686 # Sentinel used to keep track of whether or not we are before
10687 # the conftest object file.
10688 pre_test_object_deps_done=no
10690 # The `*' in the case matches for architectures that use `case' in
10691 # $output_verbose_cmd can trigger glob expansion during the loop
10692 # eval without this substitution.
10693 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10695 for p in `eval $output_verbose_link_cmd`; do
10699 # Some compilers place space between "-{L,R}" and the path.
10700 # Remove the space.
10701 if test $p = "-L" \
10702 || test $p = "-R"; then
10709 if test "$pre_test_object_deps_done" = no; then
10712 # Internal compiler library paths should come after those
10713 # provided the user. The postdeps already come after the
10714 # user supplied libs so there is no need to process them.
10715 if test -z "$compiler_lib_search_path_CXX"; then
10716 compiler_lib_search_path_CXX="${prev}${p}"
10718 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10721 # The "-l" case would never come before the object being
10722 # linked, so don't bother handling this case.
10725 if test -z "$postdeps_CXX"; then
10726 postdeps_CXX="${prev}${p}"
10728 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10734 # This assumes that the test object file only shows up
10735 # once in the compiler output.
10736 if test "$p" = "conftest.$objext"; then
10737 pre_test_object_deps_done=yes
10741 if test "$pre_test_object_deps_done" = no; then
10742 if test -z "$predep_objects_CXX"; then
10743 predep_objects_CXX="$p"
10745 predep_objects_CXX="$predep_objects_CXX $p"
10748 if test -z "$postdep_objects_CXX"; then
10749 postdep_objects_CXX="$p"
10751 postdep_objects_CXX="$postdep_objects_CXX $p"
10756 *) ;; # Ignore the rest.
10764 echo "libtool.m4: error: problem compiling CXX test program"
10767 $rm -f confest.$objext
10769 case " $postdeps_CXX " in
10770 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10773 lt_prog_compiler_wl_CXX=
10774 lt_prog_compiler_pic_CXX=
10775 lt_prog_compiler_static_CXX=
10777 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10778 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10780 # C++ specific cases for pic, static, wl, etc.
10781 if test "$GXX" = yes; then
10782 lt_prog_compiler_wl_CXX='-Wl,'
10783 lt_prog_compiler_static_CXX='-static'
10787 # All AIX code is PIC.
10788 if test "$host_cpu" = ia64; then
10789 # AIX 5 now supports IA64 processor
10790 lt_prog_compiler_static_CXX='-Bstatic'
10794 # FIXME: we need at least 68020 code to build shared libraries, but
10795 # adding the `-m68020' flag to GCC prevents building anything better,
10797 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10799 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10800 # PIC is the default for these OSes.
10802 mingw* | os2* | pw32*)
10803 # This hack is so that the source file can tell whether it is being
10804 # built for inclusion in a dll (and should export symbols for example).
10805 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10807 darwin* | rhapsody*)
10808 # PIC is the default on this platform
10809 # Common symbols not allowed in MH_DYLIB files
10810 lt_prog_compiler_pic_CXX='-fno-common'
10813 # DJGPP does not support shared libraries at all
10814 lt_prog_compiler_pic_CXX=
10817 if test -d /usr/nec; then
10818 lt_prog_compiler_pic_CXX=-Kconform_pic
10822 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10823 # not for PA HP-UX.
10824 case "$host_cpu" in
10828 lt_prog_compiler_pic_CXX='-fPIC'
10833 lt_prog_compiler_pic_CXX='-fPIC'
10839 # All AIX code is PIC.
10840 if test "$host_cpu" = ia64; then
10841 # AIX 5 now supports IA64 processor
10842 lt_prog_compiler_static_CXX='-Bstatic'
10844 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10848 case $cc_basename in
10850 # Green Hills C++ Compiler
10851 # _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"
10856 case $cc_basename in
10858 lt_prog_compiler_pic_CXX='-KPIC'
10861 # Green Hills C++ Compiler
10862 lt_prog_compiler_pic_CXX='-pic'
10868 freebsd* | kfreebsd*-gnu)
10869 # FreeBSD uses GNU C++
10871 hpux9* | hpux10* | hpux11*)
10872 case $cc_basename in
10874 lt_prog_compiler_wl_CXX='-Wl,'
10875 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10876 if test "$host_cpu" != ia64; then
10877 lt_prog_compiler_pic_CXX='+Z'
10881 lt_prog_compiler_wl_CXX='-Wl,'
10882 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10883 case "$host_cpu" in
10888 lt_prog_compiler_pic_CXX='+Z'
10896 irix5* | irix6* | nonstopux*)
10897 case $cc_basename in
10899 lt_prog_compiler_wl_CXX='-Wl,'
10900 lt_prog_compiler_static_CXX='-non_shared'
10901 # CC pic flag -KPIC is the default.
10908 case $cc_basename in
10911 lt_prog_compiler_wl_CXX='--backend -Wl,'
10912 lt_prog_compiler_pic_CXX='-fPIC'
10916 lt_prog_compiler_wl_CXX='-Wl,'
10917 lt_prog_compiler_pic_CXX='-KPIC'
10918 lt_prog_compiler_static_CXX='-static'
10922 # Make sure the PIC flag is empty. It appears that all Alpha
10923 # Linux and Compaq Tru64 Unix objects are PIC.
10924 lt_prog_compiler_pic_CXX=
10925 lt_prog_compiler_static_CXX='-non_shared'
10936 case $cc_basename in
10938 lt_prog_compiler_pic_CXX='-W c,exportall'
10946 osf3* | osf4* | osf5*)
10947 case $cc_basename in
10949 lt_prog_compiler_wl_CXX='--backend -Wl,'
10952 # Rational C++ 2.4.1
10953 lt_prog_compiler_pic_CXX='-pic'
10956 # Digital/Compaq C++
10957 lt_prog_compiler_wl_CXX='-Wl,'
10958 # Make sure the PIC flag is empty. It appears that all Alpha
10959 # Linux and Compaq Tru64 Unix objects are PIC.
10960 lt_prog_compiler_pic_CXX=
10961 lt_prog_compiler_static_CXX='-non_shared'
10970 case $cc_basename in
10972 lt_prog_compiler_pic_CXX='-fPIC'
10979 case $cc_basename in
10981 # Sun C++ 4.2, 5.x and Centerline C++
10982 lt_prog_compiler_pic_CXX='-KPIC'
10983 lt_prog_compiler_static_CXX='-Bstatic'
10984 lt_prog_compiler_wl_CXX='-Qoption ld '
10987 # Green Hills C++ Compiler
10988 lt_prog_compiler_pic_CXX='-PIC'
10995 case $cc_basename in
10998 lt_prog_compiler_pic_CXX='-pic'
10999 lt_prog_compiler_static_CXX='-Bstatic'
11003 lt_prog_compiler_pic_CXX='-pic'
11010 case $cc_basename in
11012 # NonStop-UX NCC 3.20
11013 lt_prog_compiler_pic_CXX='-KPIC'
11024 lt_prog_compiler_can_build_shared_CXX=no
11029 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11030 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11033 # Check to make sure the PIC flag actually works.
11035 if test -n "$lt_prog_compiler_pic_CXX"; then
11037 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11038 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11039 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 lt_prog_compiler_pic_works_CXX=no
11043 ac_outfile=conftest.$ac_objext
11044 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11045 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11046 # Insert the option either (1) after the last *FLAGS variable, or
11047 # (2) before a word containing "conftest.", or (3) at the end.
11048 # Note that $ac_compile itself does not contain backslashes and begins
11049 # with a dollar sign (not a hyphen), so the echo should work correctly.
11050 # The option is referenced via a variable to avoid confusing sed.
11051 lt_compile=`echo "$ac_compile" | $SED \
11052 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11054 -e 's:$: $lt_compiler_flag:'`
11055 (eval echo "\"\$as_me:11055: $lt_compile\"" >&5)
11056 (eval "$lt_compile" 2>conftest.err)
11058 cat conftest.err >&5
11059 echo "$as_me:11059: \$? = $ac_status" >&5
11060 if (exit $ac_status) && test -s "$ac_outfile"; then
11061 # The compiler can only warn and ignore the option if not recognized
11062 # So say no if there are warnings
11063 if test ! -s conftest.err; then
11064 lt_prog_compiler_pic_works_CXX=yes
11070 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11071 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11073 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11074 case $lt_prog_compiler_pic_CXX in
11076 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11079 lt_prog_compiler_pic_CXX=
11080 lt_prog_compiler_can_build_shared_CXX=no
11085 # For platforms which do not support PIC, -DPIC is meaningless:
11087 lt_prog_compiler_pic_CXX=
11090 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11094 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11095 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11096 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 lt_cv_prog_compiler_c_o_CXX=no
11100 $rm -r conftest 2>/dev/null
11104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11106 lt_compiler_flag="-o out/conftest2.$ac_objext"
11107 # Insert the option either (1) after the last *FLAGS variable, or
11108 # (2) before a word containing "conftest.", or (3) at the end.
11109 # Note that $ac_compile itself does not contain backslashes and begins
11110 # with a dollar sign (not a hyphen), so the echo should work correctly.
11111 lt_compile=`echo "$ac_compile" | $SED \
11112 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11114 -e 's:$: $lt_compiler_flag:'`
11115 (eval echo "\"\$as_me:11115: $lt_compile\"" >&5)
11116 (eval "$lt_compile" 2>out/conftest.err)
11118 cat out/conftest.err >&5
11119 echo "$as_me:11119: \$? = $ac_status" >&5
11120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11122 # The compiler can only warn and ignore the option if not recognized
11123 # So say no if there are warnings
11124 if test ! -s out/conftest.err; then
11125 lt_cv_prog_compiler_c_o_CXX=yes
11130 # SGI C++ compiler will create directory out/ii_files/ for
11131 # template instantiation
11132 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11133 $rm out/* && rmdir out
11139 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11140 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11143 hard_links="nottested"
11144 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11145 # do not overwrite the value of need_locks provided by the user
11146 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11147 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11152 ln conftest.a conftest.b 2>&5 || hard_links=no
11153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11154 echo "$as_me:$LINENO: result: $hard_links" >&5
11155 echo "${ECHO_T}$hard_links" >&6
11156 if test "$hard_links" = no; then
11157 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11158 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11165 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11166 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11168 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11171 # If we're using GNU nm, then we don't want the "-C" option.
11172 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11173 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11174 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'
11176 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'
11180 export_symbols_cmds_CXX="$ltdll_cmds"
11183 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11186 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11190 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11191 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11192 test "$ld_shlibs_CXX" = no && can_build_shared=no
11194 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11195 if test "$GCC" = yes; then
11196 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11200 # Do we need to explicitly link libc?
11202 case "x$archive_cmds_need_lc_CXX" in
11204 # Assume -lc should be added
11205 archive_cmds_need_lc_CXX=yes
11207 if test "$enable_shared" = yes && test "$GCC" = yes; then
11208 case $archive_cmds_CXX in
11210 # FIXME: we may have to deal with multi-command sequences.
11213 # Test whether the compiler implicitly links with -lc since on some
11214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11215 # to ld, don't add -lc before -lgcc.
11216 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11217 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11219 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222 (eval $ac_compile) 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } 2>conftest.err; then
11228 libobjs=conftest.$ac_objext
11230 wl=$lt_prog_compiler_wl_CXX
11236 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11237 allow_undefined_flag_CXX=
11238 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11239 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }
11244 archive_cmds_need_lc_CXX=no
11246 archive_cmds_need_lc_CXX=yes
11248 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11250 cat conftest.err 1>&5
11253 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11254 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11261 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11262 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11263 library_names_spec=
11264 libname_spec='lib$name'
11268 postuninstall_cmds=
11272 shlibpath_overrides_runpath=unknown
11274 dynamic_linker="$host_os ld.so"
11275 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11276 if test "$GCC" = yes; then
11277 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11278 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11279 # if the path contains ";" then we assume it to be the separator
11280 # otherwise default to the standard path separator (i.e. ":") - it is
11281 # assumed that no part of a normal pathname contains ";" but that should
11282 # okay in the real world where ";" in dirpaths is itself problematic.
11283 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11285 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11288 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11290 need_lib_prefix=unknown
11291 hardcode_into_libs=no
11293 # when you set need_version to no, make sure it does not cause -set_version
11294 # flags to be left without arguments
11295 need_version=unknown
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11301 shlibpath_var=LIBPATH
11303 # AIX 3 has no versioning support, so we append a major version to the name.
11304 soname_spec='${libname}${release}${shared_ext}$major'
11311 hardcode_into_libs=yes
11312 if test "$host_cpu" = ia64; then
11313 # AIX 5 supports IA64
11314 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11315 shlibpath_var=LD_LIBRARY_PATH
11317 # With GCC up to 2.95.x, collect2 would create an import file
11318 # for dependence libraries. The import file would start with
11319 # the line `#! .'. This would cause the generated library to
11320 # depend on `.', always an invalid library. This was fixed in
11321 # development snapshots of GCC prior to 3.0.
11323 aix4 | aix4.[01] | aix4.[01].*)
11324 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11326 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11329 can_build_shared=no
11333 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11334 # soname into executable. Probably we can add versioning support to
11335 # collect2, so additional links can be useful in future.
11336 if test "$aix_use_runtimelinking" = yes; then
11337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11338 # instead of lib<name>.a to let people know that these are not
11339 # typical AIX shared libraries.
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342 # We preserve .a as extension for shared libraries through AIX4.2
11343 # and later when we are not doing run time linking.
11344 library_names_spec='${libname}${release}.a $libname.a'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11347 shlibpath_var=LIBPATH
11352 library_names_spec='$libname.ixlibrary $libname.a'
11353 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11354 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'
11358 library_names_spec='${libname}${shared_ext}'
11359 dynamic_linker="$host_os ld.so"
11360 shlibpath_var=LIBRARY_PATH
11366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367 soname_spec='${libname}${release}${shared_ext}$major'
11368 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11369 shlibpath_var=LD_LIBRARY_PATH
11370 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11371 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11372 # the default ld.so.conf also contains /usr/contrib/lib and
11373 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11374 # libtool to hard-code these into programs
11377 cygwin* | mingw* | pw32*)
11378 version_type=windows
11383 case $GCC,$host_os in
11384 yes,cygwin* | yes,mingw* | yes,pw32*)
11385 library_names_spec='$libname.dll.a'
11386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11387 postinstall_cmds='base_file=`basename \${file}`~
11388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11389 dldir=$destdir/`dirname \$dlpath`~
11390 test -d \$dldir || mkdir -p \$dldir~
11391 $install_prog $dir/$dlname \$dldir/$dlname'
11392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11393 dlpath=$dir/\$dldll~
11395 shlibpath_overrides_runpath=yes
11399 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11400 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11401 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11404 # MinGW DLLs use traditional 'lib' prefix
11405 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11406 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11407 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11408 # It is most probably a Windows format PATH printed by
11409 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11410 # path with ; separators, and with drive letters. We can handle the
11411 # drive letters (cygwin fileutils understands them), so leave them,
11412 # especially as we might pass files found there to a mingw objdump,
11413 # which wouldn't understand a cygwinified path. Ahh.
11414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11420 # pw32 DLLs use 'pw' prefix rather than 'lib'
11421 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11430 dynamic_linker='Win32 ld.exe'
11431 # FIXME: first we should search . and the directory the executable is in
11435 darwin* | rhapsody*)
11436 dynamic_linker="$host_os dyld"
11437 version_type=darwin
11440 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11441 soname_spec='${libname}${release}${major}$shared_ext'
11442 shlibpath_overrides_runpath=yes
11443 shlibpath_var=DYLD_LIBRARY_PATH
11444 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11445 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11446 if test "$GCC" = yes; then
11447 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"`
11449 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11451 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11459 soname_spec='${libname}${release}${shared_ext}$major'
11460 shlibpath_var=LD_LIBRARY_PATH
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 shlibpath_var=LD_LIBRARY_PATH
11474 shlibpath_overrides_runpath=no
11475 hardcode_into_libs=yes
11476 dynamic_linker='GNU ld.so'
11480 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11481 version_type=freebsd-$objformat
11482 case $version_type in
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11493 shlibpath_var=LD_LIBRARY_PATH
11496 shlibpath_overrides_runpath=yes
11498 freebsd3.01* | freebsdelf3.01*)
11499 shlibpath_overrides_runpath=yes
11500 hardcode_into_libs=yes
11503 shlibpath_overrides_runpath=no
11504 hardcode_into_libs=yes
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11514 soname_spec='${libname}${release}${shared_ext}$major'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 hardcode_into_libs=yes
11519 hpux9* | hpux10* | hpux11*)
11520 # Give a soname corresponding to the major version so that dld.sl refuses to
11521 # link against other versions.
11525 case "$host_cpu" in
11528 hardcode_into_libs=yes
11529 dynamic_linker="$host_os dld.so"
11530 shlibpath_var=LD_LIBRARY_PATH
11531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 if test "X$HPUX_IA64_MODE" = X32; then
11535 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11543 hardcode_into_libs=yes
11544 dynamic_linker="$host_os dld.sl"
11545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548 soname_spec='${libname}${release}${shared_ext}$major'
11549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11554 dynamic_linker="$host_os dld.sl"
11555 shlibpath_var=SHLIB_PATH
11556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558 soname_spec='${libname}${release}${shared_ext}$major'
11561 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11562 postinstall_cmds='chmod 555 $lib'
11565 irix5* | irix6* | nonstopux*)
11567 nonstopux*) version_type=nonstopux ;;
11569 if test "$lt_cv_prog_gnu_ld" = yes; then
11577 soname_spec='${libname}${release}${shared_ext}$major'
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11580 irix5* | nonstopux*)
11581 libsuff= shlibsuff=
11584 case $LD in # libtool.m4 will add one of these switches to LD
11585 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11586 libsuff= shlibsuff= libmagic=32-bit;;
11587 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11588 libsuff=32 shlibsuff=N32 libmagic=N32;;
11589 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11590 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11591 *) libsuff= shlibsuff= libmagic=never-match;;
11595 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11596 shlibpath_overrides_runpath=no
11597 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11598 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11599 hardcode_into_libs=yes
11602 # No shared lib support for Linux oldld, aout, or coff.
11603 linux*oldld* | linux*aout* | linux*coff*)
11607 # This must be Linux ELF.
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 soname_spec='${libname}${release}${shared_ext}$major'
11614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11615 shlibpath_var=LD_LIBRARY_PATH
11616 shlibpath_overrides_runpath=no
11617 # This implies no fast_install, which is unacceptable.
11618 # Some rework will be needed to allow for fast_install
11619 # before this can be enabled.
11620 hardcode_into_libs=yes
11622 # Append ld.so.conf contents to the search path
11623 if test -f /etc/ld.so.conf; then
11624 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11625 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11628 # We used to test for /lib/ld.so.1 and disable shared libraries on
11629 # powerpc, because MkLinux only supported shared libraries with the
11630 # GNU dynamic linker. Since this was broken with cross compilers,
11631 # most powerpc-linux boxes support dynamic linking these days and
11632 # people can always --disable-shared, the test was removed, and we
11633 # assume the GNU/Linux dynamic linker is in use.
11634 dynamic_linker='GNU/Linux ld.so'
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 shlibpath_var=LD_LIBRARY_PATH
11644 shlibpath_overrides_runpath=no
11645 hardcode_into_libs=yes
11646 dynamic_linker='GNU ld.so'
11653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11656 dynamic_linker='NetBSD (a.out) ld.so'
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11659 soname_spec='${libname}${release}${shared_ext}$major'
11660 dynamic_linker='NetBSD ld.elf_so'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=yes
11664 hardcode_into_libs=yes
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670 shlibpath_var=LD_LIBRARY_PATH
11671 shlibpath_overrides_runpath=yes
11678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11679 soname_spec='${libname}${release}${shared_ext}$major'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 shlibpath_overrides_runpath=yes
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11690 shlibpath_var=LD_LIBRARY_PATH
11691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11693 openbsd2.[89] | openbsd2.[89].*)
11694 shlibpath_overrides_runpath=no
11697 shlibpath_overrides_runpath=yes
11701 shlibpath_overrides_runpath=yes
11706 libname_spec='$name'
11709 library_names_spec='$libname${shared_ext} $libname.a'
11710 dynamic_linker='OS/2 ld.exe'
11711 shlibpath_var=LIBPATH
11714 osf3* | osf4* | osf5*)
11718 soname_spec='${libname}${release}${shared_ext}$major'
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11722 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11727 soname_spec='${libname}${release}${shared_ext}$major'
11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11729 shlibpath_var=LD_LIBRARY_PATH
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737 soname_spec='${libname}${release}${shared_ext}$major'
11738 shlibpath_var=LD_LIBRARY_PATH
11739 shlibpath_overrides_runpath=yes
11740 hardcode_into_libs=yes
11741 # ldd complains unless libraries are executable
11742 postinstall_cmds='chmod +x $lib'
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11748 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11749 shlibpath_var=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath=yes
11751 if test "$with_gnu_ld" = yes; then
11757 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 case $host_vendor in
11764 shlibpath_overrides_runpath=no
11766 export_dynamic_flag_spec='${wl}-Blargedynsym'
11767 runpath_var=LD_RUN_PATH
11775 shlibpath_overrides_runpath=no
11776 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11782 if test -d /usr/nec ;then
11784 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11785 soname_spec='$libname${shared_ext}.$major'
11786 shlibpath_var=LD_LIBRARY_PATH
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793 soname_spec='${libname}${release}${shared_ext}$major'
11794 shlibpath_var=LD_LIBRARY_PATH
11801 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11802 echo "${ECHO_T}$dynamic_linker" >&6
11803 test "$dynamic_linker" = no && can_build_shared=no
11805 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11806 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11807 hardcode_action_CXX=
11808 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11809 test -n "$runpath_var CXX" || \
11810 test "X$hardcode_automatic_CXX"="Xyes" ; then
11812 # We can hardcode non-existant directories.
11813 if test "$hardcode_direct_CXX" != no &&
11814 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11815 # have to relink, otherwise we might link with an installed library
11816 # when we should be linking with a yet-to-be-installed one
11817 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11818 test "$hardcode_minus_L_CXX" != no; then
11819 # Linking always hardcodes the temporary library directory.
11820 hardcode_action_CXX=relink
11822 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11823 hardcode_action_CXX=immediate
11826 # We cannot hardcode anything, or else we can only hardcode existing
11828 hardcode_action_CXX=unsupported
11830 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11831 echo "${ECHO_T}$hardcode_action_CXX" >&6
11833 if test "$hardcode_action_CXX" = relink; then
11834 # Fast installation is not supported
11835 enable_fast_install=no
11836 elif test "$shlibpath_overrides_runpath" = yes ||
11837 test "$enable_shared" = no; then
11838 # Fast installation is not necessary
11839 enable_fast_install=needless
11844 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11845 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11846 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11847 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11848 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11849 echo "$as_me:$LINENO: result: yes" >&5
11850 echo "${ECHO_T}yes" >&6
11852 # FIXME - insert some real tests, host_os isn't really good enough
11855 if test -n "$STRIP" ; then
11856 striplib="$STRIP -x"
11857 echo "$as_me:$LINENO: result: yes" >&5
11858 echo "${ECHO_T}yes" >&6
11860 echo "$as_me:$LINENO: result: no" >&5
11861 echo "${ECHO_T}no" >&6
11865 echo "$as_me:$LINENO: result: no" >&5
11866 echo "${ECHO_T}no" >&6
11871 if test "x$enable_dlopen" != xyes; then
11872 enable_dlopen=unknown
11873 enable_dlopen_self=unknown
11874 enable_dlopen_self_static=unknown
11881 lt_cv_dlopen="load_add_on"
11883 lt_cv_dlopen_self=yes
11887 lt_cv_dlopen="LoadLibrary"
11892 lt_cv_dlopen="dlopen"
11897 # if libdl is installed we need to link against it
11898 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11899 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11900 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 ac_check_lib_save_LIBS=$LIBS
11905 cat >conftest.$ac_ext <<_ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11912 /* Override any gcc2 internal prototype to avoid an error. */
11916 /* We use char because int might match the return type of a gcc2
11917 builtin and then its argument prototype would still apply. */
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929 (eval $ac_link) 2>conftest.er1
11931 grep -v '^ *+' conftest.er1 >conftest.err
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest$ac_exeext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 ac_cv_lib_dl_dlopen=yes
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 ac_cv_lib_dl_dlopen=no
11955 rm -f conftest.err conftest.$ac_objext \
11956 conftest$ac_exeext conftest.$ac_ext
11957 LIBS=$ac_check_lib_save_LIBS
11959 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11960 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11961 if test $ac_cv_lib_dl_dlopen = yes; then
11962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11965 lt_cv_dlopen="dyld"
11967 lt_cv_dlopen_self=yes
11974 echo "$as_me:$LINENO: checking for shl_load" >&5
11975 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11976 if test "${ac_cv_func_shl_load+set}" = set; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 cat >conftest.$ac_ext <<_ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11985 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11987 #define shl_load innocuous_shl_load
11989 /* System header to define __stub macros and hopefully few prototypes,
11990 which can conflict with char shl_load (); below.
11991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11992 <limits.h> exists even on freestanding compilers. */
11995 # include <limits.h>
11997 # include <assert.h>
12002 /* Override any gcc2 internal prototype to avoid an error. */
12007 /* We use char because int might match the return type of a gcc2
12008 builtin and then its argument prototype would still apply. */
12010 /* The GNU C library defines this for functions which it implements
12011 to always fail with ENOSYS. Some functions are actually named
12012 something starting with __ and the normal name is an alias. */
12013 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12016 char (*f) () = shl_load;
12025 return f != shl_load;
12030 rm -f conftest.$ac_objext conftest$ac_exeext
12031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12032 (eval $ac_link) 2>conftest.er1
12034 grep -v '^ *+' conftest.er1 >conftest.err
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest$ac_exeext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 ac_cv_func_shl_load=yes
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12056 ac_cv_func_shl_load=no
12058 rm -f conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12061 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12062 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12063 if test $ac_cv_func_shl_load = yes; then
12064 lt_cv_dlopen="shl_load"
12066 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12067 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12068 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 ac_check_lib_save_LIBS=$LIBS
12073 cat >conftest.$ac_ext <<_ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12080 /* Override any gcc2 internal prototype to avoid an error. */
12084 /* We use char because int might match the return type of a gcc2
12085 builtin and then its argument prototype would still apply. */
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097 (eval $ac_link) 2>conftest.er1
12099 grep -v '^ *+' conftest.er1 >conftest.err
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; } &&
12110 { ac_try='test -s conftest$ac_exeext'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; }; then
12116 ac_cv_lib_dld_shl_load=yes
12118 echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12121 ac_cv_lib_dld_shl_load=no
12123 rm -f conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12125 LIBS=$ac_check_lib_save_LIBS
12127 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12128 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12129 if test $ac_cv_lib_dld_shl_load = yes; then
12130 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12132 echo "$as_me:$LINENO: checking for dlopen" >&5
12133 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12134 if test "${ac_cv_func_dlopen+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 cat >conftest.$ac_ext <<_ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h. */
12143 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12145 #define dlopen innocuous_dlopen
12147 /* System header to define __stub macros and hopefully few prototypes,
12148 which can conflict with char dlopen (); below.
12149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12150 <limits.h> exists even on freestanding compilers. */
12153 # include <limits.h>
12155 # include <assert.h>
12160 /* Override any gcc2 internal prototype to avoid an error. */
12165 /* We use char because int might match the return type of a gcc2
12166 builtin and then its argument prototype would still apply. */
12168 /* The GNU C library defines this for functions which it implements
12169 to always fail with ENOSYS. Some functions are actually named
12170 something starting with __ and the normal name is an alias. */
12171 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12174 char (*f) () = dlopen;
12183 return f != dlopen;
12188 rm -f conftest.$ac_objext conftest$ac_exeext
12189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12190 (eval $ac_link) 2>conftest.er1
12192 grep -v '^ *+' conftest.er1 >conftest.err
12194 cat conftest.err >&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } &&
12197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; } &&
12203 { ac_try='test -s conftest$ac_exeext'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 ac_cv_func_dlopen=yes
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12214 ac_cv_func_dlopen=no
12216 rm -f conftest.err conftest.$ac_objext \
12217 conftest$ac_exeext conftest.$ac_ext
12219 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12220 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12221 if test $ac_cv_func_dlopen = yes; then
12222 lt_cv_dlopen="dlopen"
12224 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12225 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 ac_check_lib_save_LIBS=$LIBS
12231 cat >conftest.$ac_ext <<_ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h. */
12238 /* Override any gcc2 internal prototype to avoid an error. */
12242 /* We use char because int might match the return type of a gcc2
12243 builtin and then its argument prototype would still apply. */
12253 rm -f conftest.$ac_objext conftest$ac_exeext
12254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12255 (eval $ac_link) 2>conftest.er1
12257 grep -v '^ *+' conftest.er1 >conftest.err
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } &&
12262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; } &&
12268 { ac_try='test -s conftest$ac_exeext'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; }; then
12274 ac_cv_lib_dl_dlopen=yes
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12279 ac_cv_lib_dl_dlopen=no
12281 rm -f conftest.err conftest.$ac_objext \
12282 conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_check_lib_save_LIBS
12285 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12286 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12287 if test $ac_cv_lib_dl_dlopen = yes; then
12288 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12290 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12291 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12292 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 ac_check_lib_save_LIBS=$LIBS
12296 LIBS="-lsvld $LIBS"
12297 cat >conftest.$ac_ext <<_ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12304 /* Override any gcc2 internal prototype to avoid an error. */
12308 /* We use char because int might match the return type of a gcc2
12309 builtin and then its argument prototype would still apply. */
12319 rm -f conftest.$ac_objext conftest$ac_exeext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321 (eval $ac_link) 2>conftest.er1
12323 grep -v '^ *+' conftest.er1 >conftest.err
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } &&
12328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest$ac_exeext'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 ac_cv_lib_svld_dlopen=yes
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ac_cv_lib_svld_dlopen=no
12347 rm -f conftest.err conftest.$ac_objext \
12348 conftest$ac_exeext conftest.$ac_ext
12349 LIBS=$ac_check_lib_save_LIBS
12351 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12352 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12353 if test $ac_cv_lib_svld_dlopen = yes; then
12354 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12356 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12357 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12358 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 ac_check_lib_save_LIBS=$LIBS
12363 cat >conftest.$ac_ext <<_ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12370 /* Override any gcc2 internal prototype to avoid an error. */
12374 /* We use char because int might match the return type of a gcc2
12375 builtin and then its argument prototype would still apply. */
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12387 (eval $ac_link) 2>conftest.er1
12389 grep -v '^ *+' conftest.er1 >conftest.err
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest$ac_exeext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 ac_cv_lib_dld_dld_link=yes
12408 echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12411 ac_cv_lib_dld_dld_link=no
12413 rm -f conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
12415 LIBS=$ac_check_lib_save_LIBS
12417 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12418 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12419 if test $ac_cv_lib_dld_dld_link = yes; then
12420 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12441 if test "x$lt_cv_dlopen" != xno; then
12447 case $lt_cv_dlopen in
12449 save_CPPFLAGS="$CPPFLAGS"
12450 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12452 save_LDFLAGS="$LDFLAGS"
12453 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12456 LIBS="$lt_cv_dlopen_libs $LIBS"
12458 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12459 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12460 if test "${lt_cv_dlopen_self+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 if test "$cross_compiling" = yes; then :
12464 lt_cv_dlopen_self=cross
12466 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12467 lt_status=$lt_dlunknown
12468 cat > conftest.$ac_ext <<EOF
12469 #line 12469 "configure"
12470 #include "confdefs.h"
12479 # define LT_DLGLOBAL RTLD_GLOBAL
12482 # define LT_DLGLOBAL DL_GLOBAL
12484 # define LT_DLGLOBAL 0
12488 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12489 find out it does not work in some platform. */
12490 #ifndef LT_DLLAZY_OR_NOW
12492 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12495 # define LT_DLLAZY_OR_NOW DL_LAZY
12498 # define LT_DLLAZY_OR_NOW RTLD_NOW
12501 # define LT_DLLAZY_OR_NOW DL_NOW
12503 # define LT_DLLAZY_OR_NOW 0
12511 extern "C" void exit (int);
12514 void fnord() { int i=42;}
12517 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12518 int status = $lt_dlunknown;
12522 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12523 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12524 /* dlclose (self); */
12530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12531 (eval $ac_link) 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12535 (./conftest; exit; ) 2>/dev/null
12537 case x$lt_status in
12538 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12539 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12540 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12543 # compilation failed
12544 lt_cv_dlopen_self=no
12551 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12552 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12554 if test "x$lt_cv_dlopen_self" = xyes; then
12555 LDFLAGS="$LDFLAGS $link_static_flag"
12556 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12557 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12558 if test "${lt_cv_dlopen_self_static+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 if test "$cross_compiling" = yes; then :
12562 lt_cv_dlopen_self_static=cross
12564 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12565 lt_status=$lt_dlunknown
12566 cat > conftest.$ac_ext <<EOF
12567 #line 12567 "configure"
12568 #include "confdefs.h"
12577 # define LT_DLGLOBAL RTLD_GLOBAL
12580 # define LT_DLGLOBAL DL_GLOBAL
12582 # define LT_DLGLOBAL 0
12586 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12587 find out it does not work in some platform. */
12588 #ifndef LT_DLLAZY_OR_NOW
12590 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12593 # define LT_DLLAZY_OR_NOW DL_LAZY
12596 # define LT_DLLAZY_OR_NOW RTLD_NOW
12599 # define LT_DLLAZY_OR_NOW DL_NOW
12601 # define LT_DLLAZY_OR_NOW 0
12609 extern "C" void exit (int);
12612 void fnord() { int i=42;}
12615 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12616 int status = $lt_dlunknown;
12620 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12621 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12622 /* dlclose (self); */
12628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12629 (eval $ac_link) 2>&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12633 (./conftest; exit; ) 2>/dev/null
12635 case x$lt_status in
12636 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12637 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12638 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12641 # compilation failed
12642 lt_cv_dlopen_self_static=no
12649 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12650 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12653 CPPFLAGS="$save_CPPFLAGS"
12654 LDFLAGS="$save_LDFLAGS"
12659 case $lt_cv_dlopen_self in
12660 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12661 *) enable_dlopen_self=unknown ;;
12664 case $lt_cv_dlopen_self_static in
12665 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12666 *) enable_dlopen_self_static=unknown ;;
12671 # The else clause should only fire when bootstrapping the
12672 # libtool distribution, otherwise you forgot to ship ltmain.sh
12673 # with your package, and you will get complaints that there are
12674 # no rules to generate ltmain.sh.
12675 if test -f "$ltmain"; then
12676 # See if we are running on zsh, and set the options which allow our commands through
12677 # without removal of \ escapes.
12678 if test -n "${ZSH_VERSION+set}" ; then
12679 setopt NO_GLOB_SUBST
12681 # Now quote all the things that may contain metacharacters while being
12682 # careful not to overquote the AC_SUBSTed values. We take copies of the
12683 # variables and quote the copies for generation of the libtool script.
12684 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12686 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12687 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12688 deplibs_check_method reload_flag reload_cmds need_locks \
12689 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12690 lt_cv_sys_global_symbol_to_c_name_address \
12691 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12692 old_postinstall_cmds old_postuninstall_cmds \
12696 lt_prog_compiler_wl_CXX \
12697 lt_prog_compiler_pic_CXX \
12698 lt_prog_compiler_static_CXX \
12699 lt_prog_compiler_no_builtin_flag_CXX \
12700 export_dynamic_flag_spec_CXX \
12701 thread_safe_flag_spec_CXX \
12702 whole_archive_flag_spec_CXX \
12703 enable_shared_with_static_runtimes_CXX \
12704 old_archive_cmds_CXX \
12705 old_archive_from_new_cmds_CXX \
12706 predep_objects_CXX \
12707 postdep_objects_CXX \
12710 compiler_lib_search_path_CXX \
12712 archive_expsym_cmds_CXX \
12713 postinstall_cmds_CXX \
12714 postuninstall_cmds_CXX \
12715 old_archive_from_expsyms_cmds_CXX \
12716 allow_undefined_flag_CXX \
12717 no_undefined_flag_CXX \
12718 export_symbols_cmds_CXX \
12719 hardcode_libdir_flag_spec_CXX \
12720 hardcode_libdir_flag_spec_ld_CXX \
12721 hardcode_libdir_separator_CXX \
12722 hardcode_automatic_CXX \
12724 module_expsym_cmds_CXX \
12725 lt_cv_prog_compiler_c_o_CXX \
12726 exclude_expsyms_CXX \
12727 include_expsyms_CXX; do
12730 old_archive_cmds_CXX | \
12731 old_archive_from_new_cmds_CXX | \
12732 archive_cmds_CXX | \
12733 archive_expsym_cmds_CXX | \
12734 module_cmds_CXX | \
12735 module_expsym_cmds_CXX | \
12736 old_archive_from_expsyms_cmds_CXX | \
12737 export_symbols_cmds_CXX | \
12738 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12739 postinstall_cmds | postuninstall_cmds | \
12740 old_postinstall_cmds | old_postuninstall_cmds | \
12741 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12742 # Double-quote double-evaled strings.
12743 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12746 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12752 *'\$0 --fallback-echo"')
12753 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12759 cat <<__EOF__ >> "$cfgfile"
12760 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12762 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12764 # Shell to use when invoking shell scripts.
12767 # Whether or not to build shared libraries.
12768 build_libtool_libs=$enable_shared
12770 # Whether or not to build static libraries.
12771 build_old_libs=$enable_static
12773 # Whether or not to add -lc for building shared libraries.
12774 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12776 # Whether or not to disallow shared libs when runtime libs are static
12777 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12779 # Whether or not to optimize for fast installation.
12780 fast_install=$enable_fast_install
12783 host_alias=$host_alias
12786 # An echo program that does not interpret backslashes.
12791 AR_FLAGS=$lt_AR_FLAGS
12796 # A language-specific compiler.
12797 CC=$lt_compiler_CXX
12799 # Is the compiler the GNU C compiler?
12805 # The linker used to build libraries.
12808 # Whether we need hard or soft links.
12811 # A BSD-compatible nm program.
12814 # A symbol stripping program
12817 # Used to examine libraries when file_magic_cmd begins "file"
12818 MAGIC_CMD=$MAGIC_CMD
12820 # Used on cygwin: DLL creation program.
12823 # Used on cygwin: object dumper.
12826 # Used on cygwin: assembler.
12829 # The name of the directory that contains temporary libtool files.
12832 # How to create reloadable object files.
12833 reload_flag=$lt_reload_flag
12834 reload_cmds=$lt_reload_cmds
12836 # How to pass a linker flag through the compiler.
12837 wl=$lt_lt_prog_compiler_wl_CXX
12839 # Object file suffix (normally "o").
12840 objext="$ac_objext"
12842 # Old archive suffix (normally "a").
12845 # Shared library suffix (normally ".so").
12846 shrext_cmds='$shrext_cmds'
12848 # Executable file suffix (normally "").
12851 # Additional compiler flags for building library objects.
12852 pic_flag=$lt_lt_prog_compiler_pic_CXX
12855 # What is the maximum length of a command?
12856 max_cmd_len=$lt_cv_sys_max_cmd_len
12858 # Does compiler simultaneously support -c and -o options?
12859 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12861 # Must we lock files when doing compilation ?
12862 need_locks=$lt_need_locks
12864 # Do we need the lib prefix for modules?
12865 need_lib_prefix=$need_lib_prefix
12867 # Do we need a version for libraries?
12868 need_version=$need_version
12870 # Whether dlopen is supported.
12871 dlopen_support=$enable_dlopen
12873 # Whether dlopen of programs is supported.
12874 dlopen_self=$enable_dlopen_self
12876 # Whether dlopen of statically linked programs is supported.
12877 dlopen_self_static=$enable_dlopen_self_static
12879 # Compiler flag to prevent dynamic linking.
12880 link_static_flag=$lt_lt_prog_compiler_static_CXX
12882 # Compiler flag to turn off builtin functions.
12883 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12885 # Compiler flag to allow reflexive dlopens.
12886 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12888 # Compiler flag to generate shared objects directly from archives.
12889 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12891 # Compiler flag to generate thread-safe objects.
12892 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12894 # Library versioning type.
12895 version_type=$version_type
12897 # Format of library name prefix.
12898 libname_spec=$lt_libname_spec
12900 # List of archive names. First name is the real one, the rest are links.
12901 # The last name is the one that the linker finds with -lNAME.
12902 library_names_spec=$lt_library_names_spec
12904 # The coded name of the library, if different from the real name.
12905 soname_spec=$lt_soname_spec
12907 # Commands used to build and install an old-style archive.
12909 old_archive_cmds=$lt_old_archive_cmds_CXX
12910 old_postinstall_cmds=$lt_old_postinstall_cmds
12911 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12913 # Create an old-style archive from a shared archive.
12914 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12916 # Create a temporary old-style archive to link instead of a shared archive.
12917 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12919 # Commands used to build and install a shared archive.
12920 archive_cmds=$lt_archive_cmds_CXX
12921 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12922 postinstall_cmds=$lt_postinstall_cmds
12923 postuninstall_cmds=$lt_postuninstall_cmds
12925 # Commands used to build a loadable module (assumed same as above if empty)
12926 module_cmds=$lt_module_cmds_CXX
12927 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12929 # Commands to strip libraries.
12930 old_striplib=$lt_old_striplib
12931 striplib=$lt_striplib
12933 # Dependencies to place before the objects being linked to create a
12935 predep_objects=$lt_predep_objects_CXX
12937 # Dependencies to place after the objects being linked to create a
12939 postdep_objects=$lt_postdep_objects_CXX
12941 # Dependencies to place before the objects being linked to create a
12943 predeps=$lt_predeps_CXX
12945 # Dependencies to place after the objects being linked to create a
12947 postdeps=$lt_postdeps_CXX
12949 # The library search path used internally by the compiler when linking
12950 # a shared library.
12951 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12953 # Method to check whether dependent libraries are shared objects.
12954 deplibs_check_method=$lt_deplibs_check_method
12956 # Command to use when deplibs_check_method == file_magic.
12957 file_magic_cmd=$lt_file_magic_cmd
12959 # Flag that allows shared libraries with undefined symbols to be built.
12960 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12962 # Flag that forces no undefined symbols.
12963 no_undefined_flag=$lt_no_undefined_flag_CXX
12965 # Commands used to finish a libtool library installation in a directory.
12966 finish_cmds=$lt_finish_cmds
12968 # Same as above, but a single script fragment to be evaled but not shown.
12969 finish_eval=$lt_finish_eval
12971 # Take the output of nm and produce a listing of raw symbols and C names.
12972 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12974 # Transform the output of nm in a proper C declaration
12975 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12977 # Transform the output of nm in a C name address pair
12978 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12980 # This is the shared library runtime path variable.
12981 runpath_var=$runpath_var
12983 # This is the shared library path variable.
12984 shlibpath_var=$shlibpath_var
12986 # Is shlibpath searched before the hard-coded library search path?
12987 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12989 # How to hardcode a shared library path into an executable.
12990 hardcode_action=$hardcode_action_CXX
12992 # Whether we should hardcode library paths into libraries.
12993 hardcode_into_libs=$hardcode_into_libs
12995 # Flag to hardcode \$libdir into a binary during linking.
12996 # This must work even if \$libdir does not exist.
12997 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12999 # If ld is used when linking, flag to hardcode \$libdir into
13000 # a binary during linking. This must work even if \$libdir does
13002 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13004 # Whether we need a single -rpath flag with a separated argument.
13005 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13007 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13008 # resulting binary.
13009 hardcode_direct=$hardcode_direct_CXX
13011 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13012 # resulting binary.
13013 hardcode_minus_L=$hardcode_minus_L_CXX
13015 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13016 # the resulting binary.
13017 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13019 # Set to yes if building a shared library automatically hardcodes DIR into the library
13020 # and all subsequent libraries and executables linked against it.
13021 hardcode_automatic=$hardcode_automatic_CXX
13023 # Variables whose values should be saved in libtool wrapper scripts and
13024 # restored at relink time.
13025 variables_saved_for_relink="$variables_saved_for_relink"
13027 # Whether libtool must link a program against all its dependency libraries.
13028 link_all_deplibs=$link_all_deplibs_CXX
13030 # Compile-time system search path for libraries
13031 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13033 # Run-time system search path for libraries
13034 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13036 # Fix the shell variable \$srcfile for the compiler.
13037 fix_srcfile_path="$fix_srcfile_path_CXX"
13039 # Set to yes if exported symbols are required.
13040 always_export_symbols=$always_export_symbols_CXX
13042 # The commands to list exported symbols.
13043 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13045 # The commands to extract the exported symbol list from a shared archive.
13046 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13048 # Symbols that should not be listed in the preloaded symbols.
13049 exclude_expsyms=$lt_exclude_expsyms_CXX
13051 # Symbols that must always be exported.
13052 include_expsyms=$lt_include_expsyms_CXX
13054 # ### END LIBTOOL TAG CONFIG: $tagname
13060 # If there is no Makefile yet, we rely on a make rule to execute
13061 # `config.status --recheck' to rerun these tests and create the
13062 # libtool script then.
13063 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13064 if test -f "$ltmain_in"; then
13065 test -f Makefile && make "$ltmain"
13071 ac_cpp='$CPP $CPPFLAGS'
13072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13080 with_gnu_ldcxx=$with_gnu_ld
13081 with_gnu_ld=$lt_save_with_gnu_ld
13082 lt_cv_path_LDCXX=$lt_cv_path_LD
13083 lt_cv_path_LD=$lt_save_path_LD
13084 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13085 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13093 if test -n "$F77" && test "X$F77" != "Xno"; then
13096 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13097 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13101 archive_cmds_need_lc_F77=no
13102 allow_undefined_flag_F77=
13103 always_export_symbols_F77=no
13104 archive_expsym_cmds_F77=
13105 export_dynamic_flag_spec_F77=
13106 hardcode_direct_F77=no
13107 hardcode_libdir_flag_spec_F77=
13108 hardcode_libdir_flag_spec_ld_F77=
13109 hardcode_libdir_separator_F77=
13110 hardcode_minus_L_F77=no
13111 hardcode_automatic_F77=no
13113 module_expsym_cmds_F77=
13114 link_all_deplibs_F77=unknown
13115 old_archive_cmds_F77=$old_archive_cmds
13116 no_undefined_flag_F77=
13117 whole_archive_flag_spec_F77=
13118 enable_shared_with_static_runtimes_F77=no
13120 # Source file extension for f77 test sources.
13123 # Object file extension for compiled f77 test sources.
13127 # Code to be used in simple compile tests
13128 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13130 # Code to be used in simple link tests
13131 lt_simple_link_test_code=" program t\n end\n"
13133 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13135 # If no C compiler was specified, use CC.
13138 # Allow CC to be a program name with arguments.
13142 # Allow CC to be a program name with arguments.
13147 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13149 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13150 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13151 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13152 echo "${ECHO_T}$can_build_shared" >&6
13154 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13155 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13156 test "$can_build_shared" = "no" && enable_shared=no
13158 # On AIX, shared libraries and static libraries use the same namespace, and
13159 # are all built from PIC.
13162 test "$enable_shared" = yes && enable_static=no
13163 if test -n "$RANLIB"; then
13164 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13165 postinstall_cmds='$RANLIB $lib'
13169 test "$enable_shared" = yes && enable_static=no
13172 echo "$as_me:$LINENO: result: $enable_shared" >&5
13173 echo "${ECHO_T}$enable_shared" >&6
13175 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13176 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13177 # Make sure either enable_shared or enable_static is yes.
13178 test "$enable_shared" = yes || enable_static=yes
13179 echo "$as_me:$LINENO: result: $enable_static" >&5
13180 echo "${ECHO_T}$enable_static" >&6
13182 test "$ld_shlibs_F77" = no && can_build_shared=no
13187 lt_prog_compiler_wl_F77=
13188 lt_prog_compiler_pic_F77=
13189 lt_prog_compiler_static_F77=
13191 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13192 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13194 if test "$GCC" = yes; then
13195 lt_prog_compiler_wl_F77='-Wl,'
13196 lt_prog_compiler_static_F77='-static'
13200 # All AIX code is PIC.
13201 if test "$host_cpu" = ia64; then
13202 # AIX 5 now supports IA64 processor
13203 lt_prog_compiler_static_F77='-Bstatic'
13208 # FIXME: we need at least 68020 code to build shared libraries, but
13209 # adding the `-m68020' flag to GCC prevents building anything better,
13211 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13214 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13215 # PIC is the default for these OSes.
13218 mingw* | pw32* | os2*)
13219 # This hack is so that the source file can tell whether it is being
13220 # built for inclusion in a dll (and should export symbols for example).
13221 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13224 darwin* | rhapsody*)
13225 # PIC is the default on this platform
13226 # Common symbols not allowed in MH_DYLIB files
13227 lt_prog_compiler_pic_F77='-fno-common'
13231 # Just because we use GCC doesn't mean we suddenly get shared libraries
13232 # on systems that don't support them.
13233 lt_prog_compiler_can_build_shared_F77=no
13238 if test -d /usr/nec; then
13239 lt_prog_compiler_pic_F77=-Kconform_pic
13244 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13245 # not for PA HP-UX.
13246 case "$host_cpu" in
13251 lt_prog_compiler_pic_F77='-fPIC'
13257 lt_prog_compiler_pic_F77='-fPIC'
13261 # PORTME Check for flag to pass linker flags through the system compiler.
13264 lt_prog_compiler_wl_F77='-Wl,'
13265 if test "$host_cpu" = ia64; then
13266 # AIX 5 now supports IA64 processor
13267 lt_prog_compiler_static_F77='-Bstatic'
13269 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13273 mingw* | pw32* | os2*)
13274 # This hack is so that the source file can tell whether it is being
13275 # built for inclusion in a dll (and should export symbols for example).
13276 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13279 hpux9* | hpux10* | hpux11*)
13280 lt_prog_compiler_wl_F77='-Wl,'
13281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13282 # not for PA HP-UX.
13283 case "$host_cpu" in
13288 lt_prog_compiler_pic_F77='+Z'
13291 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13292 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13295 irix5* | irix6* | nonstopux*)
13296 lt_prog_compiler_wl_F77='-Wl,'
13297 # PIC (with -KPIC) is the default.
13298 lt_prog_compiler_static_F77='-non_shared'
13302 lt_prog_compiler_pic_F77='-KPIC'
13303 lt_prog_compiler_static_F77='-Bstatic'
13309 lt_prog_compiler_wl_F77='-Wl,'
13310 lt_prog_compiler_pic_F77='-KPIC'
13311 lt_prog_compiler_static_F77='-static'
13314 lt_prog_compiler_wl_F77='-Wl,'
13315 # All Alpha code is PIC.
13316 lt_prog_compiler_static_F77='-non_shared'
13321 osf3* | osf4* | osf5*)
13322 lt_prog_compiler_wl_F77='-Wl,'
13323 # All OSF/1 code is PIC.
13324 lt_prog_compiler_static_F77='-non_shared'
13328 lt_prog_compiler_pic_F77='-Kpic'
13329 lt_prog_compiler_static_F77='-dn'
13333 lt_prog_compiler_wl_F77='-Wl,'
13334 lt_prog_compiler_pic_F77='-KPIC'
13335 lt_prog_compiler_static_F77='-Bstatic'
13339 lt_prog_compiler_wl_F77='-Qoption ld '
13340 lt_prog_compiler_pic_F77='-PIC'
13341 lt_prog_compiler_static_F77='-Bstatic'
13344 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13345 lt_prog_compiler_wl_F77='-Wl,'
13346 lt_prog_compiler_pic_F77='-KPIC'
13347 lt_prog_compiler_static_F77='-Bstatic'
13351 if test -d /usr/nec ;then
13352 lt_prog_compiler_pic_F77='-Kconform_pic'
13353 lt_prog_compiler_static_F77='-Bstatic'
13358 lt_prog_compiler_pic_F77='-pic'
13359 lt_prog_compiler_static_F77='-Bstatic'
13363 lt_prog_compiler_can_build_shared_F77=no
13368 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13369 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13372 # Check to make sure the PIC flag actually works.
13374 if test -n "$lt_prog_compiler_pic_F77"; then
13376 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13377 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13378 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 lt_prog_compiler_pic_works_F77=no
13382 ac_outfile=conftest.$ac_objext
13383 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13384 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13385 # Insert the option either (1) after the last *FLAGS variable, or
13386 # (2) before a word containing "conftest.", or (3) at the end.
13387 # Note that $ac_compile itself does not contain backslashes and begins
13388 # with a dollar sign (not a hyphen), so the echo should work correctly.
13389 # The option is referenced via a variable to avoid confusing sed.
13390 lt_compile=`echo "$ac_compile" | $SED \
13391 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13393 -e 's:$: $lt_compiler_flag:'`
13394 (eval echo "\"\$as_me:13394: $lt_compile\"" >&5)
13395 (eval "$lt_compile" 2>conftest.err)
13397 cat conftest.err >&5
13398 echo "$as_me:13398: \$? = $ac_status" >&5
13399 if (exit $ac_status) && test -s "$ac_outfile"; then
13400 # The compiler can only warn and ignore the option if not recognized
13401 # So say no if there are warnings
13402 if test ! -s conftest.err; then
13403 lt_prog_compiler_pic_works_F77=yes
13409 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13410 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13412 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13413 case $lt_prog_compiler_pic_F77 in
13415 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13418 lt_prog_compiler_pic_F77=
13419 lt_prog_compiler_can_build_shared_F77=no
13424 # For platforms which do not support PIC, -DPIC is meaningless:
13426 lt_prog_compiler_pic_F77=
13429 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13433 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13434 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13435 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 lt_cv_prog_compiler_c_o_F77=no
13439 $rm -r conftest 2>/dev/null
13443 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13445 lt_compiler_flag="-o out/conftest2.$ac_objext"
13446 # Insert the option either (1) after the last *FLAGS variable, or
13447 # (2) before a word containing "conftest.", or (3) at the end.
13448 # Note that $ac_compile itself does not contain backslashes and begins
13449 # with a dollar sign (not a hyphen), so the echo should work correctly.
13450 lt_compile=`echo "$ac_compile" | $SED \
13451 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13453 -e 's:$: $lt_compiler_flag:'`
13454 (eval echo "\"\$as_me:13454: $lt_compile\"" >&5)
13455 (eval "$lt_compile" 2>out/conftest.err)
13457 cat out/conftest.err >&5
13458 echo "$as_me:13458: \$? = $ac_status" >&5
13459 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13461 # The compiler can only warn and ignore the option if not recognized
13462 # So say no if there are warnings
13463 if test ! -s out/conftest.err; then
13464 lt_cv_prog_compiler_c_o_F77=yes
13469 # SGI C++ compiler will create directory out/ii_files/ for
13470 # template instantiation
13471 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13472 $rm out/* && rmdir out
13478 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13479 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13482 hard_links="nottested"
13483 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13484 # do not overwrite the value of need_locks provided by the user
13485 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13486 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13491 ln conftest.a conftest.b 2>&5 || hard_links=no
13492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13493 echo "$as_me:$LINENO: result: $hard_links" >&5
13494 echo "${ECHO_T}$hard_links" >&6
13495 if test "$hard_links" = no; then
13496 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13497 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13504 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13505 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13508 allow_undefined_flag_F77=
13509 enable_shared_with_static_runtimes_F77=no
13511 archive_expsym_cmds_F77=
13512 old_archive_From_new_cmds_F77=
13513 old_archive_from_expsyms_cmds_F77=
13514 export_dynamic_flag_spec_F77=
13515 whole_archive_flag_spec_F77=
13516 thread_safe_flag_spec_F77=
13517 hardcode_libdir_flag_spec_F77=
13518 hardcode_libdir_flag_spec_ld_F77=
13519 hardcode_libdir_separator_F77=
13520 hardcode_direct_F77=no
13521 hardcode_minus_L_F77=no
13522 hardcode_shlibpath_var_F77=unsupported
13523 link_all_deplibs_F77=unknown
13524 hardcode_automatic_F77=no
13526 module_expsym_cmds_F77=
13527 always_export_symbols_F77=no
13528 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13529 # include_expsyms should be a list of space-separated symbols to be *always*
13530 # included in the symbol list
13531 include_expsyms_F77=
13532 # exclude_expsyms can be an extended regexp of symbols to exclude
13533 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13534 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13535 # as well as any symbol that contains `d'.
13536 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13537 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13538 # platforms (ab)use it in PIC code, but their linkers get confused if
13539 # the symbol is explicitly referenced. Since portable code cannot
13540 # rely on this symbol name, it's probably fine to never include it in
13541 # preloaded symbol tables.
13542 extract_expsyms_cmds=
13545 cygwin* | mingw* | pw32*)
13546 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13547 # When not using gcc, we currently assume that we are using
13548 # Microsoft Visual C++.
13549 if test "$GCC" != yes; then
13559 if test "$with_gnu_ld" = yes; then
13560 # If archive_cmds runs LD, not CC, wlarc should be empty
13563 # See if GNU ld supports shared libraries.
13565 aix3* | aix4* | aix5*)
13566 # On AIX/PPC, the GNU linker is very broken
13567 if test "$host_cpu" != ia64; then
13571 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13572 *** to be unable to reliably create shared libraries on AIX.
13573 *** Therefore, libtool is disabling shared libraries support. If you
13574 *** really care for shared libraries, you may want to modify your PATH
13575 *** so that a non-GNU linker is found, and then restart.
13582 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)'
13583 hardcode_libdir_flag_spec_F77='-L$libdir'
13584 hardcode_minus_L_F77=yes
13586 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13587 # that the semantics of dynamic libraries on AmigaOS, at least up
13588 # to version 4, is to share data among multiple programs linked
13589 # with the same dynamic library. Since this doesn't match the
13590 # behavior of shared libraries on other platforms, we can't use
13596 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13597 allow_undefined_flag_F77=unsupported
13598 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13599 # support --undefined. This deserves some investigation. FIXME
13600 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13606 cygwin* | mingw* | pw32*)
13607 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13608 # as there is no search path for DLLs.
13609 hardcode_libdir_flag_spec_F77='-L$libdir'
13610 allow_undefined_flag_F77=unsupported
13611 always_export_symbols_F77=no
13612 enable_shared_with_static_runtimes_F77=yes
13613 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13615 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13616 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13617 # If the export-symbols file already is a .def file (1st line
13618 # is EXPORTS), use it as is; otherwise, prepend...
13619 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13620 cp $export_symbols $output_objdir/$soname.def;
13622 echo EXPORTS > $output_objdir/$soname.def;
13623 cat $export_symbols >> $output_objdir/$soname.def;
13625 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13632 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13633 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13636 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13637 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13642 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13646 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13647 *** create shared libraries on Solaris systems. Therefore, libtool
13648 *** is disabling shared libraries support. We urge you to upgrade GNU
13649 *** binutils to release 2.9.1 or newer. Another option is to modify
13650 *** your PATH or compiler configuration so that the native linker is
13651 *** used, and then restart.
13654 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13655 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13656 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13663 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13665 hardcode_direct_F77=yes
13666 hardcode_shlibpath_var_F77=no
13670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13671 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13672 archive_cmds_F77="$tmp_archive_cmds"
13673 supports_anon_versioning=no
13674 case `$LD -v 2>/dev/null` in
13675 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13678 *\ 2.11.*) ;; # other 2.11 versions
13679 *) supports_anon_versioning=yes ;;
13681 if test $supports_anon_versioning = yes; then
13682 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13683 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13684 $echo "local: *; };" >> $output_objdir/$libname.ver~
13685 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13687 archive_expsym_cmds_F77="$tmp_archive_cmds"
13695 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13696 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13697 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13704 if test "$ld_shlibs_F77" = yes; then
13705 runpath_var=LD_RUN_PATH
13706 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13707 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13708 # ancient GNU ld didn't support --whole-archive et. al.
13709 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13710 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13712 whole_archive_flag_spec_F77=
13716 # PORTME fill in a description of your system's linker (not GNU ld)
13719 allow_undefined_flag_F77=unsupported
13720 always_export_symbols_F77=yes
13721 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'
13722 # Note: this linker hardcodes the directories in LIBPATH if there
13723 # are no directories specified by -L.
13724 hardcode_minus_L_F77=yes
13725 if test "$GCC" = yes && test -z "$link_static_flag"; then
13726 # Neither direct hardcoding nor static linking is supported with a
13728 hardcode_direct_F77=unsupported
13733 if test "$host_cpu" = ia64; then
13734 # On IA64, the linker does run time linking by default, so we don't
13735 # have to do anything special.
13736 aix_use_runtimelinking=no
13737 exp_sym_flag='-Bexport'
13740 # If we're using GNU nm, then we don't want the "-C" option.
13741 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13742 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13743 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'
13745 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'
13747 aix_use_runtimelinking=no
13749 # Test if we are trying to use run time linking or normal
13750 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13751 # need to do runtime linking.
13752 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13753 for ld_flag in $LDFLAGS; do
13754 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13755 aix_use_runtimelinking=yes
13761 exp_sym_flag='-bexport'
13762 no_entry_flag='-bnoentry'
13765 # When large executables or shared objects are built, AIX ld can
13766 # have problems creating the table of contents. If linking a library
13767 # or program results in "error TOC overflow" add -mminimal-toc to
13768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13771 archive_cmds_F77=''
13772 hardcode_direct_F77=yes
13773 hardcode_libdir_separator_F77=':'
13774 link_all_deplibs_F77=yes
13776 if test "$GCC" = yes; then
13777 case $host_os in aix4.012|aix4.012.*)
13778 # We only want to do this on AIX 4.2 and lower, the check
13779 # below for broken collect2 doesn't work under 4.3+
13780 collect2name=`${CC} -print-prog-name=collect2`
13781 if test -f "$collect2name" && \
13782 strings "$collect2name" | grep resolve_lib_name >/dev/null
13784 # We have reworked collect2
13785 hardcode_direct_F77=yes
13787 # We have old collect2
13788 hardcode_direct_F77=unsupported
13789 # It fails to find uninstalled libraries when the uninstalled
13790 # path is not listed in the libpath. Setting hardcode_minus_L
13791 # to unsupported forces relinking
13792 hardcode_minus_L_F77=yes
13793 hardcode_libdir_flag_spec_F77='-L$libdir'
13794 hardcode_libdir_separator_F77=
13797 shared_flag='-shared'
13800 if test "$host_cpu" = ia64; then
13801 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13802 # chokes on -Wl,-G. The following line is correct:
13805 if test "$aix_use_runtimelinking" = yes; then
13806 shared_flag='${wl}-G'
13808 shared_flag='${wl}-bM:SRE'
13813 # It seems that -bexpall does not export symbols beginning with
13814 # underscore (_), so it is better to generate a list of symbols to export.
13815 always_export_symbols_F77=yes
13816 if test "$aix_use_runtimelinking" = yes; then
13817 # Warning - without using the other runtime loading flags (-brtl),
13818 # -berok will link without error, but may produce a broken library.
13819 allow_undefined_flag_F77='-berok'
13820 # Determine the default libpath from the value encoded in an empty executable.
13821 cat >conftest.$ac_ext <<_ACEOF
13826 rm -f conftest.$ac_objext conftest$ac_exeext
13827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13828 (eval $ac_link) 2>conftest.er1
13830 grep -v '^ *+' conftest.er1 >conftest.err
13832 cat conftest.err >&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
13835 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; } &&
13841 { ac_try='test -s conftest$ac_exeext'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; }; then
13848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13850 # Check for a 64-bit object if we didn't find anything.
13851 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; }
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13858 rm -f conftest.err conftest.$ac_objext \
13859 conftest$ac_exeext conftest.$ac_ext
13860 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13862 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13863 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13865 if test "$host_cpu" = ia64; then
13866 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13867 allow_undefined_flag_F77="-z nodefs"
13868 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13870 # Determine the default libpath from the value encoded in an empty executable.
13871 cat >conftest.$ac_ext <<_ACEOF
13876 rm -f conftest.$ac_objext conftest$ac_exeext
13877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13878 (eval $ac_link) 2>conftest.er1
13880 grep -v '^ *+' conftest.er1 >conftest.err
13882 cat conftest.err >&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } &&
13885 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; } &&
13891 { ac_try='test -s conftest$ac_exeext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13900 # Check for a 64-bit object if we didn't find anything.
13901 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; }
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13908 rm -f conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13912 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13913 # Warning - without using the other run time loading flags,
13914 # -berok will link without error, but may produce a broken library.
13915 no_undefined_flag_F77=' ${wl}-bernotok'
13916 allow_undefined_flag_F77=' ${wl}-berok'
13917 # -bexpall does not export symbols beginning with underscore (_)
13918 always_export_symbols_F77=yes
13919 # Exported symbols can be pulled into shared objects from archives
13920 whole_archive_flag_spec_F77=' '
13921 archive_cmds_need_lc_F77=yes
13922 # This is similar to how AIX traditionally builds it's shared libraries.
13923 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13929 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)'
13930 hardcode_libdir_flag_spec_F77='-L$libdir'
13931 hardcode_minus_L_F77=yes
13932 # see comment about different semantics on the GNU ld section
13937 export_dynamic_flag_spec_F77=-rdynamic
13940 cygwin* | mingw* | pw32*)
13941 # When not using gcc, we currently assume that we are using
13942 # Microsoft Visual C++.
13943 # hardcode_libdir_flag_spec is actually meaningless, as there is
13944 # no search path for DLLs.
13945 hardcode_libdir_flag_spec_F77=' '
13946 allow_undefined_flag_F77=unsupported
13947 # Tell ltmain to make .lib files, not .a files.
13949 # Tell ltmain to make .dll files, not .so files.
13951 # FIXME: Setting linknames here is a bad hack.
13952 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13953 # The linker will automatically build a .lib file if we build a DLL.
13954 old_archive_From_new_cmds_F77='true'
13955 # FIXME: Should let the user specify the lib program.
13956 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13957 fix_srcfile_path='`cygpath -w "$srcfile"`'
13958 enable_shared_with_static_runtimes_F77=yes
13961 darwin* | rhapsody*)
13962 if test "$GXX" = yes ; then
13963 archive_cmds_need_lc_F77=no
13965 rhapsody* | darwin1.[012])
13966 allow_undefined_flag_F77='-undefined suppress'
13969 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13970 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13972 case ${MACOSX_DEPLOYMENT_TARGET} in
13974 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13977 allow_undefined_flag_F77='-undefined dynamic_lookup'
13983 lt_int_apple_cc_single_mod=no
13984 output_verbose_link_cmd='echo'
13985 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13986 lt_int_apple_cc_single_mod=yes
13988 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13989 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13991 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13993 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13994 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13995 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13996 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13998 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14000 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}'
14001 hardcode_direct_F77=no
14002 hardcode_automatic_F77=yes
14003 hardcode_shlibpath_var_F77=unsupported
14004 whole_archive_flag_spec_F77='-all_load $convenience'
14005 link_all_deplibs_F77=yes
14012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14013 hardcode_libdir_flag_spec_F77='-L$libdir'
14014 hardcode_shlibpath_var_F77=no
14021 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14022 # support. Future versions do this automatically, but an explicit c++rt0.o
14023 # does not break anything, and helps significantly (at the cost of a little
14026 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14027 hardcode_libdir_flag_spec_F77='-R$libdir'
14028 hardcode_direct_F77=yes
14029 hardcode_shlibpath_var_F77=no
14032 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14034 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14035 hardcode_direct_F77=yes
14036 hardcode_minus_L_F77=yes
14037 hardcode_shlibpath_var_F77=no
14040 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14041 freebsd* | kfreebsd*-gnu)
14042 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14043 hardcode_libdir_flag_spec_F77='-R$libdir'
14044 hardcode_direct_F77=yes
14045 hardcode_shlibpath_var_F77=no
14049 if test "$GCC" = yes; then
14050 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'
14052 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'
14054 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14055 hardcode_libdir_separator_F77=:
14056 hardcode_direct_F77=yes
14058 # hardcode_minus_L: Not really in the search PATH,
14059 # but as the default location of the library.
14060 hardcode_minus_L_F77=yes
14061 export_dynamic_flag_spec_F77='${wl}-E'
14065 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14066 case "$host_cpu" in
14068 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14071 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14075 case "$host_cpu" in
14077 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14080 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14084 if test "$with_gnu_ld" = no; then
14085 case "$host_cpu" in
14087 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14088 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14089 hardcode_libdir_separator_F77=:
14090 hardcode_direct_F77=no
14091 hardcode_shlibpath_var_F77=no
14094 hardcode_libdir_flag_spec_F77='-L$libdir'
14095 hardcode_direct_F77=no
14096 hardcode_shlibpath_var_F77=no
14098 # hardcode_minus_L: Not really in the search PATH,
14099 # but as the default location of the library.
14100 hardcode_minus_L_F77=yes
14103 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14104 hardcode_libdir_separator_F77=:
14105 hardcode_direct_F77=yes
14106 export_dynamic_flag_spec_F77='${wl}-E'
14108 # hardcode_minus_L: Not really in the search PATH,
14109 # but as the default location of the library.
14110 hardcode_minus_L_F77=yes
14116 irix5* | irix6* | nonstopux*)
14117 if test "$GCC" = yes; then
14118 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'
14120 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'
14121 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14123 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14124 hardcode_libdir_separator_F77=:
14125 link_all_deplibs_F77=yes
14129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14130 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14132 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14134 hardcode_libdir_flag_spec_F77='-R$libdir'
14135 hardcode_direct_F77=yes
14136 hardcode_shlibpath_var_F77=no
14140 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14141 hardcode_direct_F77=yes
14142 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14143 hardcode_libdir_separator_F77=:
14144 hardcode_shlibpath_var_F77=no
14148 hardcode_direct_F77=yes
14149 hardcode_shlibpath_var_F77=no
14150 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14151 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14152 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14153 export_dynamic_flag_spec_F77='${wl}-E'
14156 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14157 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14158 hardcode_libdir_flag_spec_F77='-R$libdir'
14161 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14162 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14169 hardcode_libdir_flag_spec_F77='-L$libdir'
14170 hardcode_minus_L_F77=yes
14171 allow_undefined_flag_F77=unsupported
14172 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'
14173 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14177 if test "$GCC" = yes; then
14178 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14179 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'
14181 allow_undefined_flag_F77=' -expect_unresolved \*'
14182 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'
14184 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14185 hardcode_libdir_separator_F77=:
14188 osf4* | osf5*) # as osf3* with the addition of -msym flag
14189 if test "$GCC" = yes; then
14190 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14191 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'
14192 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14194 allow_undefined_flag_F77=' -expect_unresolved \*'
14195 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'
14196 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~
14197 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14199 # Both c and cxx compiler support -rpath directly
14200 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14202 hardcode_libdir_separator_F77=:
14206 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14207 hardcode_shlibpath_var_F77=no
14208 export_dynamic_flag_spec_F77='${wl}-Bexport'
14209 runpath_var=LD_RUN_PATH
14210 hardcode_runpath_var=yes
14214 no_undefined_flag_F77=' -z text'
14215 if test "$GCC" = yes; then
14216 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14217 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14218 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14220 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14221 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14222 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14224 hardcode_libdir_flag_spec_F77='-R$libdir'
14225 hardcode_shlibpath_var_F77=no
14227 solaris2.[0-5] | solaris2.[0-5].*) ;;
14228 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14229 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14231 link_all_deplibs_F77=yes
14235 if test "x$host_vendor" = xsequent; then
14236 # Use $CC to link under sequent, because it throws in some extra .o
14237 # files that make .init and .fini sections work.
14238 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14240 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14242 hardcode_libdir_flag_spec_F77='-L$libdir'
14243 hardcode_direct_F77=yes
14244 hardcode_minus_L_F77=yes
14245 hardcode_shlibpath_var_F77=no
14249 case $host_vendor in
14251 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14252 hardcode_direct_F77=yes # is this really true???
14255 ## LD is ld it makes a PLAMLIB
14256 ## CC just makes a GrossModule.
14257 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14258 reload_cmds_F77='$CC -r -o $output$reload_objs'
14259 hardcode_direct_F77=no
14262 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14263 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14266 runpath_var='LD_RUN_PATH'
14267 hardcode_shlibpath_var_F77=no
14271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272 hardcode_shlibpath_var_F77=no
14273 export_dynamic_flag_spec_F77='-Bexport'
14277 if test -d /usr/nec; then
14278 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14279 hardcode_shlibpath_var_F77=no
14280 runpath_var=LD_RUN_PATH
14281 hardcode_runpath_var=yes
14287 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14288 hardcode_direct_F77=yes
14289 hardcode_minus_L_F77=no
14290 hardcode_shlibpath_var_F77=no
14291 hardcode_runpath_var=yes
14292 runpath_var=LD_RUN_PATH
14295 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14296 no_undefined_flag_F77='${wl}-z ${wl}text'
14297 if test "$GCC" = yes; then
14298 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14300 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14302 runpath_var='LD_RUN_PATH'
14303 hardcode_shlibpath_var_F77=no
14307 no_undefined_flag_F77=' -z text'
14308 # $CC -shared without GNU ld will not create a library from C++
14309 # object files and a static libstdc++, better avoid it by now
14310 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14312 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14313 hardcode_libdir_flag_spec_F77=
14314 hardcode_shlibpath_var_F77=no
14315 runpath_var='LD_RUN_PATH'
14319 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14320 hardcode_libdir_flag_spec_F77='-L$libdir'
14321 hardcode_shlibpath_var_F77=no
14330 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14331 echo "${ECHO_T}$ld_shlibs_F77" >&6
14332 test "$ld_shlibs_F77" = no && can_build_shared=no
14334 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14335 if test "$GCC" = yes; then
14336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14340 # Do we need to explicitly link libc?
14342 case "x$archive_cmds_need_lc_F77" in
14344 # Assume -lc should be added
14345 archive_cmds_need_lc_F77=yes
14347 if test "$enable_shared" = yes && test "$GCC" = yes; then
14348 case $archive_cmds_F77 in
14350 # FIXME: we may have to deal with multi-command sequences.
14353 # Test whether the compiler implicitly links with -lc since on some
14354 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14355 # to ld, don't add -lc before -lgcc.
14356 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14357 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14359 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14362 (eval $ac_compile) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); } 2>conftest.err; then
14368 libobjs=conftest.$ac_objext
14370 wl=$lt_prog_compiler_wl_F77
14376 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14377 allow_undefined_flag_F77=
14378 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14379 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }
14384 archive_cmds_need_lc_F77=no
14386 archive_cmds_need_lc_F77=yes
14388 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14390 cat conftest.err 1>&5
14393 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14394 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14401 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14402 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14403 library_names_spec=
14404 libname_spec='lib$name'
14408 postuninstall_cmds=
14412 shlibpath_overrides_runpath=unknown
14414 dynamic_linker="$host_os ld.so"
14415 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14416 if test "$GCC" = yes; then
14417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14418 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14419 # if the path contains ";" then we assume it to be the separator
14420 # otherwise default to the standard path separator (i.e. ":") - it is
14421 # assumed that no part of a normal pathname contains ";" but that should
14422 # okay in the real world where ";" in dirpaths is itself problematic.
14423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14428 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14430 need_lib_prefix=unknown
14431 hardcode_into_libs=no
14433 # when you set need_version to no, make sure it does not cause -set_version
14434 # flags to be left without arguments
14435 need_version=unknown
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14441 shlibpath_var=LIBPATH
14443 # AIX 3 has no versioning support, so we append a major version to the name.
14444 soname_spec='${libname}${release}${shared_ext}$major'
14451 hardcode_into_libs=yes
14452 if test "$host_cpu" = ia64; then
14453 # AIX 5 supports IA64
14454 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14455 shlibpath_var=LD_LIBRARY_PATH
14457 # With GCC up to 2.95.x, collect2 would create an import file
14458 # for dependence libraries. The import file would start with
14459 # the line `#! .'. This would cause the generated library to
14460 # depend on `.', always an invalid library. This was fixed in
14461 # development snapshots of GCC prior to 3.0.
14463 aix4 | aix4.[01] | aix4.[01].*)
14464 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14466 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14469 can_build_shared=no
14473 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14474 # soname into executable. Probably we can add versioning support to
14475 # collect2, so additional links can be useful in future.
14476 if test "$aix_use_runtimelinking" = yes; then
14477 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14478 # instead of lib<name>.a to let people know that these are not
14479 # typical AIX shared libraries.
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482 # We preserve .a as extension for shared libraries through AIX4.2
14483 # and later when we are not doing run time linking.
14484 library_names_spec='${libname}${release}.a $libname.a'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14487 shlibpath_var=LIBPATH
14492 library_names_spec='$libname.ixlibrary $libname.a'
14493 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14494 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'
14498 library_names_spec='${libname}${shared_ext}'
14499 dynamic_linker="$host_os ld.so"
14500 shlibpath_var=LIBRARY_PATH
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507 soname_spec='${libname}${release}${shared_ext}$major'
14508 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14509 shlibpath_var=LD_LIBRARY_PATH
14510 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14511 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14512 # the default ld.so.conf also contains /usr/contrib/lib and
14513 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14514 # libtool to hard-code these into programs
14517 cygwin* | mingw* | pw32*)
14518 version_type=windows
14523 case $GCC,$host_os in
14524 yes,cygwin* | yes,mingw* | yes,pw32*)
14525 library_names_spec='$libname.dll.a'
14526 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14527 postinstall_cmds='base_file=`basename \${file}`~
14528 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14529 dldir=$destdir/`dirname \$dlpath`~
14530 test -d \$dldir || mkdir -p \$dldir~
14531 $install_prog $dir/$dlname \$dldir/$dlname'
14532 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14533 dlpath=$dir/\$dldll~
14535 shlibpath_overrides_runpath=yes
14539 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14540 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14541 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14544 # MinGW DLLs use traditional 'lib' prefix
14545 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14546 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14547 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14548 # It is most probably a Windows format PATH printed by
14549 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14550 # path with ; separators, and with drive letters. We can handle the
14551 # drive letters (cygwin fileutils understands them), so leave them,
14552 # especially as we might pass files found there to a mingw objdump,
14553 # which wouldn't understand a cygwinified path. Ahh.
14554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14560 # pw32 DLLs use 'pw' prefix rather than 'lib'
14561 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14567 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14570 dynamic_linker='Win32 ld.exe'
14571 # FIXME: first we should search . and the directory the executable is in
14575 darwin* | rhapsody*)
14576 dynamic_linker="$host_os dyld"
14577 version_type=darwin
14580 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14581 soname_spec='${libname}${release}${major}$shared_ext'
14582 shlibpath_overrides_runpath=yes
14583 shlibpath_var=DYLD_LIBRARY_PATH
14584 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14585 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14586 if test "$GCC" = yes; then
14587 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"`
14589 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14591 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14599 soname_spec='${libname}${release}${shared_ext}$major'
14600 shlibpath_var=LD_LIBRARY_PATH
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 shlibpath_var=LD_LIBRARY_PATH
14614 shlibpath_overrides_runpath=no
14615 hardcode_into_libs=yes
14616 dynamic_linker='GNU ld.so'
14620 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14621 version_type=freebsd-$objformat
14622 case $version_type in
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14633 shlibpath_var=LD_LIBRARY_PATH
14636 shlibpath_overrides_runpath=yes
14638 freebsd3.01* | freebsdelf3.01*)
14639 shlibpath_overrides_runpath=yes
14640 hardcode_into_libs=yes
14643 shlibpath_overrides_runpath=no
14644 hardcode_into_libs=yes
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14654 soname_spec='${libname}${release}${shared_ext}$major'
14655 shlibpath_var=LD_LIBRARY_PATH
14656 hardcode_into_libs=yes
14659 hpux9* | hpux10* | hpux11*)
14660 # Give a soname corresponding to the major version so that dld.sl refuses to
14661 # link against other versions.
14665 case "$host_cpu" in
14668 hardcode_into_libs=yes
14669 dynamic_linker="$host_os dld.so"
14670 shlibpath_var=LD_LIBRARY_PATH
14671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14673 soname_spec='${libname}${release}${shared_ext}$major'
14674 if test "X$HPUX_IA64_MODE" = X32; then
14675 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14677 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14683 hardcode_into_libs=yes
14684 dynamic_linker="$host_os dld.sl"
14685 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14688 soname_spec='${libname}${release}${shared_ext}$major'
14689 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14694 dynamic_linker="$host_os dld.sl"
14695 shlibpath_var=SHLIB_PATH
14696 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698 soname_spec='${libname}${release}${shared_ext}$major'
14701 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14702 postinstall_cmds='chmod 555 $lib'
14705 irix5* | irix6* | nonstopux*)
14707 nonstopux*) version_type=nonstopux ;;
14709 if test "$lt_cv_prog_gnu_ld" = yes; then
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14720 irix5* | nonstopux*)
14721 libsuff= shlibsuff=
14724 case $LD in # libtool.m4 will add one of these switches to LD
14725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14726 libsuff= shlibsuff= libmagic=32-bit;;
14727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14728 libsuff=32 shlibsuff=N32 libmagic=N32;;
14729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14731 *) libsuff= shlibsuff= libmagic=never-match;;
14735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14736 shlibpath_overrides_runpath=no
14737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14739 hardcode_into_libs=yes
14742 # No shared lib support for Linux oldld, aout, or coff.
14743 linux*oldld* | linux*aout* | linux*coff*)
14747 # This must be Linux ELF.
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 shlibpath_overrides_runpath=no
14757 # This implies no fast_install, which is unacceptable.
14758 # Some rework will be needed to allow for fast_install
14759 # before this can be enabled.
14760 hardcode_into_libs=yes
14762 # Append ld.so.conf contents to the search path
14763 if test -f /etc/ld.so.conf; then
14764 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14765 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14768 # We used to test for /lib/ld.so.1 and disable shared libraries on
14769 # powerpc, because MkLinux only supported shared libraries with the
14770 # GNU dynamic linker. Since this was broken with cross compilers,
14771 # most powerpc-linux boxes support dynamic linking these days and
14772 # people can always --disable-shared, the test was removed, and we
14773 # assume the GNU/Linux dynamic linker is in use.
14774 dynamic_linker='GNU/Linux ld.so'
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14782 soname_spec='${libname}${release}${shared_ext}$major'
14783 shlibpath_var=LD_LIBRARY_PATH
14784 shlibpath_overrides_runpath=no
14785 hardcode_into_libs=yes
14786 dynamic_linker='GNU ld.so'
14793 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14796 dynamic_linker='NetBSD (a.out) ld.so'
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 dynamic_linker='NetBSD ld.elf_so'
14802 shlibpath_var=LD_LIBRARY_PATH
14803 shlibpath_overrides_runpath=yes
14804 hardcode_into_libs=yes
14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 shlibpath_overrides_runpath=yes
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 shlibpath_overrides_runpath=yes
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14833 openbsd2.[89] | openbsd2.[89].*)
14834 shlibpath_overrides_runpath=no
14837 shlibpath_overrides_runpath=yes
14841 shlibpath_overrides_runpath=yes
14846 libname_spec='$name'
14849 library_names_spec='$libname${shared_ext} $libname.a'
14850 dynamic_linker='OS/2 ld.exe'
14851 shlibpath_var=LIBPATH
14854 osf3* | osf4* | osf5*)
14858 soname_spec='${libname}${release}${shared_ext}$major'
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860 shlibpath_var=LD_LIBRARY_PATH
14861 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14862 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14867 soname_spec='${libname}${release}${shared_ext}$major'
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 shlibpath_var=LD_LIBRARY_PATH
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 soname_spec='${libname}${release}${shared_ext}$major'
14878 shlibpath_var=LD_LIBRARY_PATH
14879 shlibpath_overrides_runpath=yes
14880 hardcode_into_libs=yes
14881 # ldd complains unless libraries are executable
14882 postinstall_cmds='chmod +x $lib'
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14888 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14889 shlibpath_var=LD_LIBRARY_PATH
14890 shlibpath_overrides_runpath=yes
14891 if test "$with_gnu_ld" = yes; then
14897 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14900 soname_spec='${libname}${release}${shared_ext}$major'
14901 shlibpath_var=LD_LIBRARY_PATH
14902 case $host_vendor in
14904 shlibpath_overrides_runpath=no
14906 export_dynamic_flag_spec='${wl}-Blargedynsym'
14907 runpath_var=LD_RUN_PATH
14915 shlibpath_overrides_runpath=no
14916 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14922 if test -d /usr/nec ;then
14924 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14925 soname_spec='$libname${shared_ext}.$major'
14926 shlibpath_var=LD_LIBRARY_PATH
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 shlibpath_var=LD_LIBRARY_PATH
14941 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14942 echo "${ECHO_T}$dynamic_linker" >&6
14943 test "$dynamic_linker" = no && can_build_shared=no
14945 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14946 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14947 hardcode_action_F77=
14948 if test -n "$hardcode_libdir_flag_spec_F77" || \
14949 test -n "$runpath_var F77" || \
14950 test "X$hardcode_automatic_F77"="Xyes" ; then
14952 # We can hardcode non-existant directories.
14953 if test "$hardcode_direct_F77" != no &&
14954 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14955 # have to relink, otherwise we might link with an installed library
14956 # when we should be linking with a yet-to-be-installed one
14957 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14958 test "$hardcode_minus_L_F77" != no; then
14959 # Linking always hardcodes the temporary library directory.
14960 hardcode_action_F77=relink
14962 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14963 hardcode_action_F77=immediate
14966 # We cannot hardcode anything, or else we can only hardcode existing
14968 hardcode_action_F77=unsupported
14970 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14971 echo "${ECHO_T}$hardcode_action_F77" >&6
14973 if test "$hardcode_action_F77" = relink; then
14974 # Fast installation is not supported
14975 enable_fast_install=no
14976 elif test "$shlibpath_overrides_runpath" = yes ||
14977 test "$enable_shared" = no; then
14978 # Fast installation is not necessary
14979 enable_fast_install=needless
14984 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14985 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14986 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14987 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14988 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14989 echo "$as_me:$LINENO: result: yes" >&5
14990 echo "${ECHO_T}yes" >&6
14992 # FIXME - insert some real tests, host_os isn't really good enough
14995 if test -n "$STRIP" ; then
14996 striplib="$STRIP -x"
14997 echo "$as_me:$LINENO: result: yes" >&5
14998 echo "${ECHO_T}yes" >&6
15000 echo "$as_me:$LINENO: result: no" >&5
15001 echo "${ECHO_T}no" >&6
15005 echo "$as_me:$LINENO: result: no" >&5
15006 echo "${ECHO_T}no" >&6
15013 # The else clause should only fire when bootstrapping the
15014 # libtool distribution, otherwise you forgot to ship ltmain.sh
15015 # with your package, and you will get complaints that there are
15016 # no rules to generate ltmain.sh.
15017 if test -f "$ltmain"; then
15018 # See if we are running on zsh, and set the options which allow our commands through
15019 # without removal of \ escapes.
15020 if test -n "${ZSH_VERSION+set}" ; then
15021 setopt NO_GLOB_SUBST
15023 # Now quote all the things that may contain metacharacters while being
15024 # careful not to overquote the AC_SUBSTed values. We take copies of the
15025 # variables and quote the copies for generation of the libtool script.
15026 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15028 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15029 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15030 deplibs_check_method reload_flag reload_cmds need_locks \
15031 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15032 lt_cv_sys_global_symbol_to_c_name_address \
15033 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15034 old_postinstall_cmds old_postuninstall_cmds \
15038 lt_prog_compiler_wl_F77 \
15039 lt_prog_compiler_pic_F77 \
15040 lt_prog_compiler_static_F77 \
15041 lt_prog_compiler_no_builtin_flag_F77 \
15042 export_dynamic_flag_spec_F77 \
15043 thread_safe_flag_spec_F77 \
15044 whole_archive_flag_spec_F77 \
15045 enable_shared_with_static_runtimes_F77 \
15046 old_archive_cmds_F77 \
15047 old_archive_from_new_cmds_F77 \
15048 predep_objects_F77 \
15049 postdep_objects_F77 \
15052 compiler_lib_search_path_F77 \
15054 archive_expsym_cmds_F77 \
15055 postinstall_cmds_F77 \
15056 postuninstall_cmds_F77 \
15057 old_archive_from_expsyms_cmds_F77 \
15058 allow_undefined_flag_F77 \
15059 no_undefined_flag_F77 \
15060 export_symbols_cmds_F77 \
15061 hardcode_libdir_flag_spec_F77 \
15062 hardcode_libdir_flag_spec_ld_F77 \
15063 hardcode_libdir_separator_F77 \
15064 hardcode_automatic_F77 \
15066 module_expsym_cmds_F77 \
15067 lt_cv_prog_compiler_c_o_F77 \
15068 exclude_expsyms_F77 \
15069 include_expsyms_F77; do
15072 old_archive_cmds_F77 | \
15073 old_archive_from_new_cmds_F77 | \
15074 archive_cmds_F77 | \
15075 archive_expsym_cmds_F77 | \
15076 module_cmds_F77 | \
15077 module_expsym_cmds_F77 | \
15078 old_archive_from_expsyms_cmds_F77 | \
15079 export_symbols_cmds_F77 | \
15080 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15081 postinstall_cmds | postuninstall_cmds | \
15082 old_postinstall_cmds | old_postuninstall_cmds | \
15083 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15084 # Double-quote double-evaled strings.
15085 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15088 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15094 *'\$0 --fallback-echo"')
15095 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15101 cat <<__EOF__ >> "$cfgfile"
15102 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15104 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15106 # Shell to use when invoking shell scripts.
15109 # Whether or not to build shared libraries.
15110 build_libtool_libs=$enable_shared
15112 # Whether or not to build static libraries.
15113 build_old_libs=$enable_static
15115 # Whether or not to add -lc for building shared libraries.
15116 build_libtool_need_lc=$archive_cmds_need_lc_F77
15118 # Whether or not to disallow shared libs when runtime libs are static
15119 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15121 # Whether or not to optimize for fast installation.
15122 fast_install=$enable_fast_install
15125 host_alias=$host_alias
15128 # An echo program that does not interpret backslashes.
15133 AR_FLAGS=$lt_AR_FLAGS
15138 # A language-specific compiler.
15139 CC=$lt_compiler_F77
15141 # Is the compiler the GNU C compiler?
15147 # The linker used to build libraries.
15150 # Whether we need hard or soft links.
15153 # A BSD-compatible nm program.
15156 # A symbol stripping program
15159 # Used to examine libraries when file_magic_cmd begins "file"
15160 MAGIC_CMD=$MAGIC_CMD
15162 # Used on cygwin: DLL creation program.
15165 # Used on cygwin: object dumper.
15168 # Used on cygwin: assembler.
15171 # The name of the directory that contains temporary libtool files.
15174 # How to create reloadable object files.
15175 reload_flag=$lt_reload_flag
15176 reload_cmds=$lt_reload_cmds
15178 # How to pass a linker flag through the compiler.
15179 wl=$lt_lt_prog_compiler_wl_F77
15181 # Object file suffix (normally "o").
15182 objext="$ac_objext"
15184 # Old archive suffix (normally "a").
15187 # Shared library suffix (normally ".so").
15188 shrext_cmds='$shrext_cmds'
15190 # Executable file suffix (normally "").
15193 # Additional compiler flags for building library objects.
15194 pic_flag=$lt_lt_prog_compiler_pic_F77
15197 # What is the maximum length of a command?
15198 max_cmd_len=$lt_cv_sys_max_cmd_len
15200 # Does compiler simultaneously support -c and -o options?
15201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15203 # Must we lock files when doing compilation ?
15204 need_locks=$lt_need_locks
15206 # Do we need the lib prefix for modules?
15207 need_lib_prefix=$need_lib_prefix
15209 # Do we need a version for libraries?
15210 need_version=$need_version
15212 # Whether dlopen is supported.
15213 dlopen_support=$enable_dlopen
15215 # Whether dlopen of programs is supported.
15216 dlopen_self=$enable_dlopen_self
15218 # Whether dlopen of statically linked programs is supported.
15219 dlopen_self_static=$enable_dlopen_self_static
15221 # Compiler flag to prevent dynamic linking.
15222 link_static_flag=$lt_lt_prog_compiler_static_F77
15224 # Compiler flag to turn off builtin functions.
15225 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15227 # Compiler flag to allow reflexive dlopens.
15228 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15230 # Compiler flag to generate shared objects directly from archives.
15231 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15233 # Compiler flag to generate thread-safe objects.
15234 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15236 # Library versioning type.
15237 version_type=$version_type
15239 # Format of library name prefix.
15240 libname_spec=$lt_libname_spec
15242 # List of archive names. First name is the real one, the rest are links.
15243 # The last name is the one that the linker finds with -lNAME.
15244 library_names_spec=$lt_library_names_spec
15246 # The coded name of the library, if different from the real name.
15247 soname_spec=$lt_soname_spec
15249 # Commands used to build and install an old-style archive.
15251 old_archive_cmds=$lt_old_archive_cmds_F77
15252 old_postinstall_cmds=$lt_old_postinstall_cmds
15253 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15255 # Create an old-style archive from a shared archive.
15256 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15258 # Create a temporary old-style archive to link instead of a shared archive.
15259 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15261 # Commands used to build and install a shared archive.
15262 archive_cmds=$lt_archive_cmds_F77
15263 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15264 postinstall_cmds=$lt_postinstall_cmds
15265 postuninstall_cmds=$lt_postuninstall_cmds
15267 # Commands used to build a loadable module (assumed same as above if empty)
15268 module_cmds=$lt_module_cmds_F77
15269 module_expsym_cmds=$lt_module_expsym_cmds_F77
15271 # Commands to strip libraries.
15272 old_striplib=$lt_old_striplib
15273 striplib=$lt_striplib
15275 # Dependencies to place before the objects being linked to create a
15277 predep_objects=$lt_predep_objects_F77
15279 # Dependencies to place after the objects being linked to create a
15281 postdep_objects=$lt_postdep_objects_F77
15283 # Dependencies to place before the objects being linked to create a
15285 predeps=$lt_predeps_F77
15287 # Dependencies to place after the objects being linked to create a
15289 postdeps=$lt_postdeps_F77
15291 # The library search path used internally by the compiler when linking
15292 # a shared library.
15293 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15295 # Method to check whether dependent libraries are shared objects.
15296 deplibs_check_method=$lt_deplibs_check_method
15298 # Command to use when deplibs_check_method == file_magic.
15299 file_magic_cmd=$lt_file_magic_cmd
15301 # Flag that allows shared libraries with undefined symbols to be built.
15302 allow_undefined_flag=$lt_allow_undefined_flag_F77
15304 # Flag that forces no undefined symbols.
15305 no_undefined_flag=$lt_no_undefined_flag_F77
15307 # Commands used to finish a libtool library installation in a directory.
15308 finish_cmds=$lt_finish_cmds
15310 # Same as above, but a single script fragment to be evaled but not shown.
15311 finish_eval=$lt_finish_eval
15313 # Take the output of nm and produce a listing of raw symbols and C names.
15314 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15316 # Transform the output of nm in a proper C declaration
15317 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15319 # Transform the output of nm in a C name address pair
15320 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15322 # This is the shared library runtime path variable.
15323 runpath_var=$runpath_var
15325 # This is the shared library path variable.
15326 shlibpath_var=$shlibpath_var
15328 # Is shlibpath searched before the hard-coded library search path?
15329 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15331 # How to hardcode a shared library path into an executable.
15332 hardcode_action=$hardcode_action_F77
15334 # Whether we should hardcode library paths into libraries.
15335 hardcode_into_libs=$hardcode_into_libs
15337 # Flag to hardcode \$libdir into a binary during linking.
15338 # This must work even if \$libdir does not exist.
15339 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15341 # If ld is used when linking, flag to hardcode \$libdir into
15342 # a binary during linking. This must work even if \$libdir does
15344 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15346 # Whether we need a single -rpath flag with a separated argument.
15347 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15349 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15350 # resulting binary.
15351 hardcode_direct=$hardcode_direct_F77
15353 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15354 # resulting binary.
15355 hardcode_minus_L=$hardcode_minus_L_F77
15357 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15358 # the resulting binary.
15359 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15361 # Set to yes if building a shared library automatically hardcodes DIR into the library
15362 # and all subsequent libraries and executables linked against it.
15363 hardcode_automatic=$hardcode_automatic_F77
15365 # Variables whose values should be saved in libtool wrapper scripts and
15366 # restored at relink time.
15367 variables_saved_for_relink="$variables_saved_for_relink"
15369 # Whether libtool must link a program against all its dependency libraries.
15370 link_all_deplibs=$link_all_deplibs_F77
15372 # Compile-time system search path for libraries
15373 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15375 # Run-time system search path for libraries
15376 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15378 # Fix the shell variable \$srcfile for the compiler.
15379 fix_srcfile_path="$fix_srcfile_path_F77"
15381 # Set to yes if exported symbols are required.
15382 always_export_symbols=$always_export_symbols_F77
15384 # The commands to list exported symbols.
15385 export_symbols_cmds=$lt_export_symbols_cmds_F77
15387 # The commands to extract the exported symbol list from a shared archive.
15388 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15390 # Symbols that should not be listed in the preloaded symbols.
15391 exclude_expsyms=$lt_exclude_expsyms_F77
15393 # Symbols that must always be exported.
15394 include_expsyms=$lt_include_expsyms_F77
15396 # ### END LIBTOOL TAG CONFIG: $tagname
15402 # If there is no Makefile yet, we rely on a make rule to execute
15403 # `config.status --recheck' to rerun these tests and create the
15404 # libtool script then.
15405 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15406 if test -f "$ltmain_in"; then
15407 test -f Makefile && make "$ltmain"
15413 ac_cpp='$CPP $CPPFLAGS'
15414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15426 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15430 # Source file extension for Java test sources.
15433 # Object file extension for compiled Java test sources.
15437 # Code to be used in simple compile tests
15438 lt_simple_compile_test_code="class foo {}\n"
15440 # Code to be used in simple link tests
15441 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15443 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15445 # If no C compiler was specified, use CC.
15448 # Allow CC to be a program name with arguments.
15452 # Allow CC to be a program name with arguments.
15458 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15459 archive_cmds_need_lc_GCJ=no
15462 lt_prog_compiler_no_builtin_flag_GCJ=
15464 if test "$GCC" = yes; then
15465 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15468 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15469 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15470 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 lt_cv_prog_compiler_rtti_exceptions=no
15474 ac_outfile=conftest.$ac_objext
15475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15476 lt_compiler_flag="-fno-rtti -fno-exceptions"
15477 # Insert the option either (1) after the last *FLAGS variable, or
15478 # (2) before a word containing "conftest.", or (3) at the end.
15479 # Note that $ac_compile itself does not contain backslashes and begins
15480 # with a dollar sign (not a hyphen), so the echo should work correctly.
15481 # The option is referenced via a variable to avoid confusing sed.
15482 lt_compile=`echo "$ac_compile" | $SED \
15483 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15485 -e 's:$: $lt_compiler_flag:'`
15486 (eval echo "\"\$as_me:15486: $lt_compile\"" >&5)
15487 (eval "$lt_compile" 2>conftest.err)
15489 cat conftest.err >&5
15490 echo "$as_me:15490: \$? = $ac_status" >&5
15491 if (exit $ac_status) && test -s "$ac_outfile"; then
15492 # The compiler can only warn and ignore the option if not recognized
15493 # So say no if there are warnings
15494 if test ! -s conftest.err; then
15495 lt_cv_prog_compiler_rtti_exceptions=yes
15501 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15502 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15504 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15505 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15512 lt_prog_compiler_wl_GCJ=
15513 lt_prog_compiler_pic_GCJ=
15514 lt_prog_compiler_static_GCJ=
15516 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15517 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15519 if test "$GCC" = yes; then
15520 lt_prog_compiler_wl_GCJ='-Wl,'
15521 lt_prog_compiler_static_GCJ='-static'
15525 # All AIX code is PIC.
15526 if test "$host_cpu" = ia64; then
15527 # AIX 5 now supports IA64 processor
15528 lt_prog_compiler_static_GCJ='-Bstatic'
15533 # FIXME: we need at least 68020 code to build shared libraries, but
15534 # adding the `-m68020' flag to GCC prevents building anything better,
15536 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15539 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15540 # PIC is the default for these OSes.
15543 mingw* | pw32* | os2*)
15544 # This hack is so that the source file can tell whether it is being
15545 # built for inclusion in a dll (and should export symbols for example).
15546 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15549 darwin* | rhapsody*)
15550 # PIC is the default on this platform
15551 # Common symbols not allowed in MH_DYLIB files
15552 lt_prog_compiler_pic_GCJ='-fno-common'
15556 # Just because we use GCC doesn't mean we suddenly get shared libraries
15557 # on systems that don't support them.
15558 lt_prog_compiler_can_build_shared_GCJ=no
15563 if test -d /usr/nec; then
15564 lt_prog_compiler_pic_GCJ=-Kconform_pic
15569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15570 # not for PA HP-UX.
15571 case "$host_cpu" in
15576 lt_prog_compiler_pic_GCJ='-fPIC'
15582 lt_prog_compiler_pic_GCJ='-fPIC'
15586 # PORTME Check for flag to pass linker flags through the system compiler.
15589 lt_prog_compiler_wl_GCJ='-Wl,'
15590 if test "$host_cpu" = ia64; then
15591 # AIX 5 now supports IA64 processor
15592 lt_prog_compiler_static_GCJ='-Bstatic'
15594 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15598 mingw* | pw32* | os2*)
15599 # This hack is so that the source file can tell whether it is being
15600 # built for inclusion in a dll (and should export symbols for example).
15601 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15604 hpux9* | hpux10* | hpux11*)
15605 lt_prog_compiler_wl_GCJ='-Wl,'
15606 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15607 # not for PA HP-UX.
15608 case "$host_cpu" in
15613 lt_prog_compiler_pic_GCJ='+Z'
15616 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15617 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15620 irix5* | irix6* | nonstopux*)
15621 lt_prog_compiler_wl_GCJ='-Wl,'
15622 # PIC (with -KPIC) is the default.
15623 lt_prog_compiler_static_GCJ='-non_shared'
15627 lt_prog_compiler_pic_GCJ='-KPIC'
15628 lt_prog_compiler_static_GCJ='-Bstatic'
15634 lt_prog_compiler_wl_GCJ='-Wl,'
15635 lt_prog_compiler_pic_GCJ='-KPIC'
15636 lt_prog_compiler_static_GCJ='-static'
15639 lt_prog_compiler_wl_GCJ='-Wl,'
15640 # All Alpha code is PIC.
15641 lt_prog_compiler_static_GCJ='-non_shared'
15646 osf3* | osf4* | osf5*)
15647 lt_prog_compiler_wl_GCJ='-Wl,'
15648 # All OSF/1 code is PIC.
15649 lt_prog_compiler_static_GCJ='-non_shared'
15653 lt_prog_compiler_pic_GCJ='-Kpic'
15654 lt_prog_compiler_static_GCJ='-dn'
15658 lt_prog_compiler_wl_GCJ='-Wl,'
15659 lt_prog_compiler_pic_GCJ='-KPIC'
15660 lt_prog_compiler_static_GCJ='-Bstatic'
15664 lt_prog_compiler_wl_GCJ='-Qoption ld '
15665 lt_prog_compiler_pic_GCJ='-PIC'
15666 lt_prog_compiler_static_GCJ='-Bstatic'
15669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15670 lt_prog_compiler_wl_GCJ='-Wl,'
15671 lt_prog_compiler_pic_GCJ='-KPIC'
15672 lt_prog_compiler_static_GCJ='-Bstatic'
15676 if test -d /usr/nec ;then
15677 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15678 lt_prog_compiler_static_GCJ='-Bstatic'
15683 lt_prog_compiler_pic_GCJ='-pic'
15684 lt_prog_compiler_static_GCJ='-Bstatic'
15688 lt_prog_compiler_can_build_shared_GCJ=no
15693 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15694 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15697 # Check to make sure the PIC flag actually works.
15699 if test -n "$lt_prog_compiler_pic_GCJ"; then
15701 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15702 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15703 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 lt_prog_compiler_pic_works_GCJ=no
15707 ac_outfile=conftest.$ac_objext
15708 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15709 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15710 # Insert the option either (1) after the last *FLAGS variable, or
15711 # (2) before a word containing "conftest.", or (3) at the end.
15712 # Note that $ac_compile itself does not contain backslashes and begins
15713 # with a dollar sign (not a hyphen), so the echo should work correctly.
15714 # The option is referenced via a variable to avoid confusing sed.
15715 lt_compile=`echo "$ac_compile" | $SED \
15716 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15718 -e 's:$: $lt_compiler_flag:'`
15719 (eval echo "\"\$as_me:15719: $lt_compile\"" >&5)
15720 (eval "$lt_compile" 2>conftest.err)
15722 cat conftest.err >&5
15723 echo "$as_me:15723: \$? = $ac_status" >&5
15724 if (exit $ac_status) && test -s "$ac_outfile"; then
15725 # The compiler can only warn and ignore the option if not recognized
15726 # So say no if there are warnings
15727 if test ! -s conftest.err; then
15728 lt_prog_compiler_pic_works_GCJ=yes
15734 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15735 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15737 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15738 case $lt_prog_compiler_pic_GCJ in
15740 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15743 lt_prog_compiler_pic_GCJ=
15744 lt_prog_compiler_can_build_shared_GCJ=no
15749 # For platforms which do not support PIC, -DPIC is meaningless:
15751 lt_prog_compiler_pic_GCJ=
15754 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15758 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15759 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15760 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15763 lt_cv_prog_compiler_c_o_GCJ=no
15764 $rm -r conftest 2>/dev/null
15768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15770 lt_compiler_flag="-o out/conftest2.$ac_objext"
15771 # Insert the option either (1) after the last *FLAGS variable, or
15772 # (2) before a word containing "conftest.", or (3) at the end.
15773 # Note that $ac_compile itself does not contain backslashes and begins
15774 # with a dollar sign (not a hyphen), so the echo should work correctly.
15775 lt_compile=`echo "$ac_compile" | $SED \
15776 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15778 -e 's:$: $lt_compiler_flag:'`
15779 (eval echo "\"\$as_me:15779: $lt_compile\"" >&5)
15780 (eval "$lt_compile" 2>out/conftest.err)
15782 cat out/conftest.err >&5
15783 echo "$as_me:15783: \$? = $ac_status" >&5
15784 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15786 # The compiler can only warn and ignore the option if not recognized
15787 # So say no if there are warnings
15788 if test ! -s out/conftest.err; then
15789 lt_cv_prog_compiler_c_o_GCJ=yes
15794 # SGI C++ compiler will create directory out/ii_files/ for
15795 # template instantiation
15796 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15797 $rm out/* && rmdir out
15803 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15804 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15807 hard_links="nottested"
15808 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15809 # do not overwrite the value of need_locks provided by the user
15810 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15811 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15816 ln conftest.a conftest.b 2>&5 || hard_links=no
15817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15818 echo "$as_me:$LINENO: result: $hard_links" >&5
15819 echo "${ECHO_T}$hard_links" >&6
15820 if test "$hard_links" = no; then
15821 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15822 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15829 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15830 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15833 allow_undefined_flag_GCJ=
15834 enable_shared_with_static_runtimes_GCJ=no
15836 archive_expsym_cmds_GCJ=
15837 old_archive_From_new_cmds_GCJ=
15838 old_archive_from_expsyms_cmds_GCJ=
15839 export_dynamic_flag_spec_GCJ=
15840 whole_archive_flag_spec_GCJ=
15841 thread_safe_flag_spec_GCJ=
15842 hardcode_libdir_flag_spec_GCJ=
15843 hardcode_libdir_flag_spec_ld_GCJ=
15844 hardcode_libdir_separator_GCJ=
15845 hardcode_direct_GCJ=no
15846 hardcode_minus_L_GCJ=no
15847 hardcode_shlibpath_var_GCJ=unsupported
15848 link_all_deplibs_GCJ=unknown
15849 hardcode_automatic_GCJ=no
15851 module_expsym_cmds_GCJ=
15852 always_export_symbols_GCJ=no
15853 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15854 # include_expsyms should be a list of space-separated symbols to be *always*
15855 # included in the symbol list
15856 include_expsyms_GCJ=
15857 # exclude_expsyms can be an extended regexp of symbols to exclude
15858 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15859 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15860 # as well as any symbol that contains `d'.
15861 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15862 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15863 # platforms (ab)use it in PIC code, but their linkers get confused if
15864 # the symbol is explicitly referenced. Since portable code cannot
15865 # rely on this symbol name, it's probably fine to never include it in
15866 # preloaded symbol tables.
15867 extract_expsyms_cmds=
15870 cygwin* | mingw* | pw32*)
15871 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15872 # When not using gcc, we currently assume that we are using
15873 # Microsoft Visual C++.
15874 if test "$GCC" != yes; then
15884 if test "$with_gnu_ld" = yes; then
15885 # If archive_cmds runs LD, not CC, wlarc should be empty
15888 # See if GNU ld supports shared libraries.
15890 aix3* | aix4* | aix5*)
15891 # On AIX/PPC, the GNU linker is very broken
15892 if test "$host_cpu" != ia64; then
15896 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15897 *** to be unable to reliably create shared libraries on AIX.
15898 *** Therefore, libtool is disabling shared libraries support. If you
15899 *** really care for shared libraries, you may want to modify your PATH
15900 *** so that a non-GNU linker is found, and then restart.
15907 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)'
15908 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15909 hardcode_minus_L_GCJ=yes
15911 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15912 # that the semantics of dynamic libraries on AmigaOS, at least up
15913 # to version 4, is to share data among multiple programs linked
15914 # with the same dynamic library. Since this doesn't match the
15915 # behavior of shared libraries on other platforms, we can't use
15921 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15922 allow_undefined_flag_GCJ=unsupported
15923 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15924 # support --undefined. This deserves some investigation. FIXME
15925 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15931 cygwin* | mingw* | pw32*)
15932 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15933 # as there is no search path for DLLs.
15934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15935 allow_undefined_flag_GCJ=unsupported
15936 always_export_symbols_GCJ=no
15937 enable_shared_with_static_runtimes_GCJ=yes
15938 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15940 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15941 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15942 # If the export-symbols file already is a .def file (1st line
15943 # is EXPORTS), use it as is; otherwise, prepend...
15944 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15945 cp $export_symbols $output_objdir/$soname.def;
15947 echo EXPORTS > $output_objdir/$soname.def;
15948 cat $export_symbols >> $output_objdir/$soname.def;
15950 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15958 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15961 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15967 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15971 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15972 *** create shared libraries on Solaris systems. Therefore, libtool
15973 *** is disabling shared libraries support. We urge you to upgrade GNU
15974 *** binutils to release 2.9.1 or newer. Another option is to modify
15975 *** your PATH or compiler configuration so that the native linker is
15976 *** used, and then restart.
15979 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15980 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15981 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15988 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15990 hardcode_direct_GCJ=yes
15991 hardcode_shlibpath_var_GCJ=no
15995 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15996 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15997 archive_cmds_GCJ="$tmp_archive_cmds"
15998 supports_anon_versioning=no
15999 case `$LD -v 2>/dev/null` in
16000 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16001 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16002 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16003 *\ 2.11.*) ;; # other 2.11 versions
16004 *) supports_anon_versioning=yes ;;
16006 if test $supports_anon_versioning = yes; then
16007 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16008 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16009 $echo "local: *; };" >> $output_objdir/$libname.ver~
16010 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16012 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16021 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16022 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16029 if test "$ld_shlibs_GCJ" = yes; then
16030 runpath_var=LD_RUN_PATH
16031 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16032 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16033 # ancient GNU ld didn't support --whole-archive et. al.
16034 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16035 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16037 whole_archive_flag_spec_GCJ=
16041 # PORTME fill in a description of your system's linker (not GNU ld)
16044 allow_undefined_flag_GCJ=unsupported
16045 always_export_symbols_GCJ=yes
16046 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'
16047 # Note: this linker hardcodes the directories in LIBPATH if there
16048 # are no directories specified by -L.
16049 hardcode_minus_L_GCJ=yes
16050 if test "$GCC" = yes && test -z "$link_static_flag"; then
16051 # Neither direct hardcoding nor static linking is supported with a
16053 hardcode_direct_GCJ=unsupported
16058 if test "$host_cpu" = ia64; then
16059 # On IA64, the linker does run time linking by default, so we don't
16060 # have to do anything special.
16061 aix_use_runtimelinking=no
16062 exp_sym_flag='-Bexport'
16065 # If we're using GNU nm, then we don't want the "-C" option.
16066 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16067 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16068 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'
16070 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'
16072 aix_use_runtimelinking=no
16074 # Test if we are trying to use run time linking or normal
16075 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16076 # need to do runtime linking.
16077 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16078 for ld_flag in $LDFLAGS; do
16079 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16080 aix_use_runtimelinking=yes
16086 exp_sym_flag='-bexport'
16087 no_entry_flag='-bnoentry'
16090 # When large executables or shared objects are built, AIX ld can
16091 # have problems creating the table of contents. If linking a library
16092 # or program results in "error TOC overflow" add -mminimal-toc to
16093 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16094 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16096 archive_cmds_GCJ=''
16097 hardcode_direct_GCJ=yes
16098 hardcode_libdir_separator_GCJ=':'
16099 link_all_deplibs_GCJ=yes
16101 if test "$GCC" = yes; then
16102 case $host_os in aix4.012|aix4.012.*)
16103 # We only want to do this on AIX 4.2 and lower, the check
16104 # below for broken collect2 doesn't work under 4.3+
16105 collect2name=`${CC} -print-prog-name=collect2`
16106 if test -f "$collect2name" && \
16107 strings "$collect2name" | grep resolve_lib_name >/dev/null
16109 # We have reworked collect2
16110 hardcode_direct_GCJ=yes
16112 # We have old collect2
16113 hardcode_direct_GCJ=unsupported
16114 # It fails to find uninstalled libraries when the uninstalled
16115 # path is not listed in the libpath. Setting hardcode_minus_L
16116 # to unsupported forces relinking
16117 hardcode_minus_L_GCJ=yes
16118 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16119 hardcode_libdir_separator_GCJ=
16122 shared_flag='-shared'
16125 if test "$host_cpu" = ia64; then
16126 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16127 # chokes on -Wl,-G. The following line is correct:
16130 if test "$aix_use_runtimelinking" = yes; then
16131 shared_flag='${wl}-G'
16133 shared_flag='${wl}-bM:SRE'
16138 # It seems that -bexpall does not export symbols beginning with
16139 # underscore (_), so it is better to generate a list of symbols to export.
16140 always_export_symbols_GCJ=yes
16141 if test "$aix_use_runtimelinking" = yes; then
16142 # Warning - without using the other runtime loading flags (-brtl),
16143 # -berok will link without error, but may produce a broken library.
16144 allow_undefined_flag_GCJ='-berok'
16145 # Determine the default libpath from the value encoded in an empty executable.
16146 cat >conftest.$ac_ext <<_ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h. */
16161 rm -f conftest.$ac_objext conftest$ac_exeext
16162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16163 (eval $ac_link) 2>conftest.er1
16165 grep -v '^ *+' conftest.er1 >conftest.err
16167 cat conftest.err >&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } &&
16170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16172 (eval $ac_try) 2>&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); }; } &&
16176 { ac_try='test -s conftest$ac_exeext'
16177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16178 (eval $ac_try) 2>&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); }; }; then
16183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16185 # Check for a 64-bit object if we didn't find anything.
16186 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; }
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16193 rm -f conftest.err conftest.$ac_objext \
16194 conftest$ac_exeext conftest.$ac_ext
16195 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16197 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16198 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16200 if test "$host_cpu" = ia64; then
16201 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16202 allow_undefined_flag_GCJ="-z nodefs"
16203 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16205 # Determine the default libpath from the value encoded in an empty executable.
16206 cat >conftest.$ac_ext <<_ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h. */
16221 rm -f conftest.$ac_objext conftest$ac_exeext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16223 (eval $ac_link) 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; } &&
16236 { ac_try='test -s conftest$ac_exeext'
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; }; then
16243 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16245 # Check for a 64-bit object if we didn't find anything.
16246 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; }
16249 echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16253 rm -f conftest.err conftest.$ac_objext \
16254 conftest$ac_exeext conftest.$ac_ext
16255 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16257 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16258 # Warning - without using the other run time loading flags,
16259 # -berok will link without error, but may produce a broken library.
16260 no_undefined_flag_GCJ=' ${wl}-bernotok'
16261 allow_undefined_flag_GCJ=' ${wl}-berok'
16262 # -bexpall does not export symbols beginning with underscore (_)
16263 always_export_symbols_GCJ=yes
16264 # Exported symbols can be pulled into shared objects from archives
16265 whole_archive_flag_spec_GCJ=' '
16266 archive_cmds_need_lc_GCJ=yes
16267 # This is similar to how AIX traditionally builds it's shared libraries.
16268 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16274 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)'
16275 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16276 hardcode_minus_L_GCJ=yes
16277 # see comment about different semantics on the GNU ld section
16282 export_dynamic_flag_spec_GCJ=-rdynamic
16285 cygwin* | mingw* | pw32*)
16286 # When not using gcc, we currently assume that we are using
16287 # Microsoft Visual C++.
16288 # hardcode_libdir_flag_spec is actually meaningless, as there is
16289 # no search path for DLLs.
16290 hardcode_libdir_flag_spec_GCJ=' '
16291 allow_undefined_flag_GCJ=unsupported
16292 # Tell ltmain to make .lib files, not .a files.
16294 # Tell ltmain to make .dll files, not .so files.
16296 # FIXME: Setting linknames here is a bad hack.
16297 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16298 # The linker will automatically build a .lib file if we build a DLL.
16299 old_archive_From_new_cmds_GCJ='true'
16300 # FIXME: Should let the user specify the lib program.
16301 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16302 fix_srcfile_path='`cygpath -w "$srcfile"`'
16303 enable_shared_with_static_runtimes_GCJ=yes
16306 darwin* | rhapsody*)
16307 if test "$GXX" = yes ; then
16308 archive_cmds_need_lc_GCJ=no
16310 rhapsody* | darwin1.[012])
16311 allow_undefined_flag_GCJ='-undefined suppress'
16314 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16315 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16317 case ${MACOSX_DEPLOYMENT_TARGET} in
16319 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16322 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16328 lt_int_apple_cc_single_mod=no
16329 output_verbose_link_cmd='echo'
16330 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16331 lt_int_apple_cc_single_mod=yes
16333 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16334 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16336 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16338 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16339 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16340 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16341 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16343 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16345 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}'
16346 hardcode_direct_GCJ=no
16347 hardcode_automatic_GCJ=yes
16348 hardcode_shlibpath_var_GCJ=unsupported
16349 whole_archive_flag_spec_GCJ='-all_load $convenience'
16350 link_all_deplibs_GCJ=yes
16357 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16358 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16359 hardcode_shlibpath_var_GCJ=no
16366 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16367 # support. Future versions do this automatically, but an explicit c++rt0.o
16368 # does not break anything, and helps significantly (at the cost of a little
16371 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16372 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16373 hardcode_direct_GCJ=yes
16374 hardcode_shlibpath_var_GCJ=no
16377 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16379 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16380 hardcode_direct_GCJ=yes
16381 hardcode_minus_L_GCJ=yes
16382 hardcode_shlibpath_var_GCJ=no
16385 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16386 freebsd* | kfreebsd*-gnu)
16387 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16388 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16389 hardcode_direct_GCJ=yes
16390 hardcode_shlibpath_var_GCJ=no
16394 if test "$GCC" = yes; then
16395 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'
16397 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'
16399 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16400 hardcode_libdir_separator_GCJ=:
16401 hardcode_direct_GCJ=yes
16403 # hardcode_minus_L: Not really in the search PATH,
16404 # but as the default location of the library.
16405 hardcode_minus_L_GCJ=yes
16406 export_dynamic_flag_spec_GCJ='${wl}-E'
16410 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16411 case "$host_cpu" in
16413 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16416 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16420 case "$host_cpu" in
16422 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16425 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16429 if test "$with_gnu_ld" = no; then
16430 case "$host_cpu" in
16432 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16433 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16434 hardcode_libdir_separator_GCJ=:
16435 hardcode_direct_GCJ=no
16436 hardcode_shlibpath_var_GCJ=no
16439 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16440 hardcode_direct_GCJ=no
16441 hardcode_shlibpath_var_GCJ=no
16443 # hardcode_minus_L: Not really in the search PATH,
16444 # but as the default location of the library.
16445 hardcode_minus_L_GCJ=yes
16448 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16449 hardcode_libdir_separator_GCJ=:
16450 hardcode_direct_GCJ=yes
16451 export_dynamic_flag_spec_GCJ='${wl}-E'
16453 # hardcode_minus_L: Not really in the search PATH,
16454 # but as the default location of the library.
16455 hardcode_minus_L_GCJ=yes
16461 irix5* | irix6* | nonstopux*)
16462 if test "$GCC" = yes; then
16463 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'
16465 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'
16466 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16468 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16469 hardcode_libdir_separator_GCJ=:
16470 link_all_deplibs_GCJ=yes
16474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16475 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16477 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16479 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16480 hardcode_direct_GCJ=yes
16481 hardcode_shlibpath_var_GCJ=no
16485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486 hardcode_direct_GCJ=yes
16487 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16488 hardcode_libdir_separator_GCJ=:
16489 hardcode_shlibpath_var_GCJ=no
16493 hardcode_direct_GCJ=yes
16494 hardcode_shlibpath_var_GCJ=no
16495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16496 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16497 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16498 export_dynamic_flag_spec_GCJ='${wl}-E'
16501 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16502 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16503 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16506 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16507 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16514 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16515 hardcode_minus_L_GCJ=yes
16516 allow_undefined_flag_GCJ=unsupported
16517 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'
16518 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16522 if test "$GCC" = yes; then
16523 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16524 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'
16526 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16527 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'
16529 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16530 hardcode_libdir_separator_GCJ=:
16533 osf4* | osf5*) # as osf3* with the addition of -msym flag
16534 if test "$GCC" = yes; then
16535 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16536 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'
16537 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16539 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16540 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'
16541 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~
16542 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16544 # Both c and cxx compiler support -rpath directly
16545 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16547 hardcode_libdir_separator_GCJ=:
16551 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16552 hardcode_shlibpath_var_GCJ=no
16553 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16554 runpath_var=LD_RUN_PATH
16555 hardcode_runpath_var=yes
16559 no_undefined_flag_GCJ=' -z text'
16560 if test "$GCC" = yes; then
16561 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16562 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16563 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16565 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16567 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16569 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16570 hardcode_shlibpath_var_GCJ=no
16572 solaris2.[0-5] | solaris2.[0-5].*) ;;
16573 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16574 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16576 link_all_deplibs_GCJ=yes
16580 if test "x$host_vendor" = xsequent; then
16581 # Use $CC to link under sequent, because it throws in some extra .o
16582 # files that make .init and .fini sections work.
16583 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16585 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16587 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16588 hardcode_direct_GCJ=yes
16589 hardcode_minus_L_GCJ=yes
16590 hardcode_shlibpath_var_GCJ=no
16594 case $host_vendor in
16596 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597 hardcode_direct_GCJ=yes # is this really true???
16600 ## LD is ld it makes a PLAMLIB
16601 ## CC just makes a GrossModule.
16602 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16603 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16604 hardcode_direct_GCJ=no
16607 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16608 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16611 runpath_var='LD_RUN_PATH'
16612 hardcode_shlibpath_var_GCJ=no
16616 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16617 hardcode_shlibpath_var_GCJ=no
16618 export_dynamic_flag_spec_GCJ='-Bexport'
16622 if test -d /usr/nec; then
16623 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16624 hardcode_shlibpath_var_GCJ=no
16625 runpath_var=LD_RUN_PATH
16626 hardcode_runpath_var=yes
16632 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16633 hardcode_direct_GCJ=yes
16634 hardcode_minus_L_GCJ=no
16635 hardcode_shlibpath_var_GCJ=no
16636 hardcode_runpath_var=yes
16637 runpath_var=LD_RUN_PATH
16640 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16641 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16642 if test "$GCC" = yes; then
16643 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16645 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16647 runpath_var='LD_RUN_PATH'
16648 hardcode_shlibpath_var_GCJ=no
16652 no_undefined_flag_GCJ=' -z text'
16653 # $CC -shared without GNU ld will not create a library from C++
16654 # object files and a static libstdc++, better avoid it by now
16655 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16656 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16657 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16658 hardcode_libdir_flag_spec_GCJ=
16659 hardcode_shlibpath_var_GCJ=no
16660 runpath_var='LD_RUN_PATH'
16664 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16665 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16666 hardcode_shlibpath_var_GCJ=no
16675 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16676 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16677 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16679 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16680 if test "$GCC" = yes; then
16681 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16685 # Do we need to explicitly link libc?
16687 case "x$archive_cmds_need_lc_GCJ" in
16689 # Assume -lc should be added
16690 archive_cmds_need_lc_GCJ=yes
16692 if test "$enable_shared" = yes && test "$GCC" = yes; then
16693 case $archive_cmds_GCJ in
16695 # FIXME: we may have to deal with multi-command sequences.
16698 # Test whether the compiler implicitly links with -lc since on some
16699 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16700 # to ld, don't add -lc before -lgcc.
16701 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16702 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16704 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16707 (eval $ac_compile) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } 2>conftest.err; then
16713 libobjs=conftest.$ac_objext
16715 wl=$lt_prog_compiler_wl_GCJ
16721 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16722 allow_undefined_flag_GCJ=
16723 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16724 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }
16729 archive_cmds_need_lc_GCJ=no
16731 archive_cmds_need_lc_GCJ=yes
16733 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16735 cat conftest.err 1>&5
16738 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16739 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16746 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16747 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16748 library_names_spec=
16749 libname_spec='lib$name'
16753 postuninstall_cmds=
16757 shlibpath_overrides_runpath=unknown
16759 dynamic_linker="$host_os ld.so"
16760 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16761 if test "$GCC" = yes; then
16762 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16763 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16764 # if the path contains ";" then we assume it to be the separator
16765 # otherwise default to the standard path separator (i.e. ":") - it is
16766 # assumed that no part of a normal pathname contains ";" but that should
16767 # okay in the real world where ";" in dirpaths is itself problematic.
16768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16773 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16775 need_lib_prefix=unknown
16776 hardcode_into_libs=no
16778 # when you set need_version to no, make sure it does not cause -set_version
16779 # flags to be left without arguments
16780 need_version=unknown
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16786 shlibpath_var=LIBPATH
16788 # AIX 3 has no versioning support, so we append a major version to the name.
16789 soname_spec='${libname}${release}${shared_ext}$major'
16796 hardcode_into_libs=yes
16797 if test "$host_cpu" = ia64; then
16798 # AIX 5 supports IA64
16799 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16800 shlibpath_var=LD_LIBRARY_PATH
16802 # With GCC up to 2.95.x, collect2 would create an import file
16803 # for dependence libraries. The import file would start with
16804 # the line `#! .'. This would cause the generated library to
16805 # depend on `.', always an invalid library. This was fixed in
16806 # development snapshots of GCC prior to 3.0.
16808 aix4 | aix4.[01] | aix4.[01].*)
16809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16811 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16814 can_build_shared=no
16818 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16819 # soname into executable. Probably we can add versioning support to
16820 # collect2, so additional links can be useful in future.
16821 if test "$aix_use_runtimelinking" = yes; then
16822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16823 # instead of lib<name>.a to let people know that these are not
16824 # typical AIX shared libraries.
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827 # We preserve .a as extension for shared libraries through AIX4.2
16828 # and later when we are not doing run time linking.
16829 library_names_spec='${libname}${release}.a $libname.a'
16830 soname_spec='${libname}${release}${shared_ext}$major'
16832 shlibpath_var=LIBPATH
16837 library_names_spec='$libname.ixlibrary $libname.a'
16838 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16839 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'
16843 library_names_spec='${libname}${shared_ext}'
16844 dynamic_linker="$host_os ld.so"
16845 shlibpath_var=LIBRARY_PATH
16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16854 shlibpath_var=LD_LIBRARY_PATH
16855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16857 # the default ld.so.conf also contains /usr/contrib/lib and
16858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16859 # libtool to hard-code these into programs
16862 cygwin* | mingw* | pw32*)
16863 version_type=windows
16868 case $GCC,$host_os in
16869 yes,cygwin* | yes,mingw* | yes,pw32*)
16870 library_names_spec='$libname.dll.a'
16871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16872 postinstall_cmds='base_file=`basename \${file}`~
16873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16874 dldir=$destdir/`dirname \$dlpath`~
16875 test -d \$dldir || mkdir -p \$dldir~
16876 $install_prog $dir/$dlname \$dldir/$dlname'
16877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16878 dlpath=$dir/\$dldll~
16880 shlibpath_overrides_runpath=yes
16884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16885 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16886 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16889 # MinGW DLLs use traditional 'lib' prefix
16890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16892 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16893 # It is most probably a Windows format PATH printed by
16894 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16895 # path with ; separators, and with drive letters. We can handle the
16896 # drive letters (cygwin fileutils understands them), so leave them,
16897 # especially as we might pass files found there to a mingw objdump,
16898 # which wouldn't understand a cygwinified path. Ahh.
16899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16905 # pw32 DLLs use 'pw' prefix rather than 'lib'
16906 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16915 dynamic_linker='Win32 ld.exe'
16916 # FIXME: first we should search . and the directory the executable is in
16920 darwin* | rhapsody*)
16921 dynamic_linker="$host_os dyld"
16922 version_type=darwin
16925 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16926 soname_spec='${libname}${release}${major}$shared_ext'
16927 shlibpath_overrides_runpath=yes
16928 shlibpath_var=DYLD_LIBRARY_PATH
16929 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16930 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16931 if test "$GCC" = yes; then
16932 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"`
16934 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 shlibpath_var=LD_LIBRARY_PATH
16956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16957 soname_spec='${libname}${release}${shared_ext}$major'
16958 shlibpath_var=LD_LIBRARY_PATH
16959 shlibpath_overrides_runpath=no
16960 hardcode_into_libs=yes
16961 dynamic_linker='GNU ld.so'
16965 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16966 version_type=freebsd-$objformat
16967 case $version_type in
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16978 shlibpath_var=LD_LIBRARY_PATH
16981 shlibpath_overrides_runpath=yes
16983 freebsd3.01* | freebsdelf3.01*)
16984 shlibpath_overrides_runpath=yes
16985 hardcode_into_libs=yes
16988 shlibpath_overrides_runpath=no
16989 hardcode_into_libs=yes
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16999 soname_spec='${libname}${release}${shared_ext}$major'
17000 shlibpath_var=LD_LIBRARY_PATH
17001 hardcode_into_libs=yes
17004 hpux9* | hpux10* | hpux11*)
17005 # Give a soname corresponding to the major version so that dld.sl refuses to
17006 # link against other versions.
17010 case "$host_cpu" in
17013 hardcode_into_libs=yes
17014 dynamic_linker="$host_os dld.so"
17015 shlibpath_var=LD_LIBRARY_PATH
17016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17018 soname_spec='${libname}${release}${shared_ext}$major'
17019 if test "X$HPUX_IA64_MODE" = X32; then
17020 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17022 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17028 hardcode_into_libs=yes
17029 dynamic_linker="$host_os dld.sl"
17030 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17039 dynamic_linker="$host_os dld.sl"
17040 shlibpath_var=SHLIB_PATH
17041 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17043 soname_spec='${libname}${release}${shared_ext}$major'
17046 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17047 postinstall_cmds='chmod 555 $lib'
17050 irix5* | irix6* | nonstopux*)
17052 nonstopux*) version_type=nonstopux ;;
17054 if test "$lt_cv_prog_gnu_ld" = yes; then
17062 soname_spec='${libname}${release}${shared_ext}$major'
17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17065 irix5* | nonstopux*)
17066 libsuff= shlibsuff=
17069 case $LD in # libtool.m4 will add one of these switches to LD
17070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17071 libsuff= shlibsuff= libmagic=32-bit;;
17072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17073 libsuff=32 shlibsuff=N32 libmagic=N32;;
17074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17076 *) libsuff= shlibsuff= libmagic=never-match;;
17080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17081 shlibpath_overrides_runpath=no
17082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17084 hardcode_into_libs=yes
17087 # No shared lib support for Linux oldld, aout, or coff.
17088 linux*oldld* | linux*aout* | linux*coff*)
17092 # This must be Linux ELF.
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17100 shlibpath_var=LD_LIBRARY_PATH
17101 shlibpath_overrides_runpath=no
17102 # This implies no fast_install, which is unacceptable.
17103 # Some rework will be needed to allow for fast_install
17104 # before this can be enabled.
17105 hardcode_into_libs=yes
17107 # Append ld.so.conf contents to the search path
17108 if test -f /etc/ld.so.conf; then
17109 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17110 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17113 # We used to test for /lib/ld.so.1 and disable shared libraries on
17114 # powerpc, because MkLinux only supported shared libraries with the
17115 # GNU dynamic linker. Since this was broken with cross compilers,
17116 # most powerpc-linux boxes support dynamic linking these days and
17117 # people can always --disable-shared, the test was removed, and we
17118 # assume the GNU/Linux dynamic linker is in use.
17119 dynamic_linker='GNU/Linux ld.so'
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17127 soname_spec='${libname}${release}${shared_ext}$major'
17128 shlibpath_var=LD_LIBRARY_PATH
17129 shlibpath_overrides_runpath=no
17130 hardcode_into_libs=yes
17131 dynamic_linker='GNU ld.so'
17138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17141 dynamic_linker='NetBSD (a.out) ld.so'
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 dynamic_linker='NetBSD ld.elf_so'
17147 shlibpath_var=LD_LIBRARY_PATH
17148 shlibpath_overrides_runpath=yes
17149 hardcode_into_libs=yes
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 shlibpath_overrides_runpath=yes
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 shlibpath_overrides_runpath=yes
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17175 shlibpath_var=LD_LIBRARY_PATH
17176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17178 openbsd2.[89] | openbsd2.[89].*)
17179 shlibpath_overrides_runpath=no
17182 shlibpath_overrides_runpath=yes
17186 shlibpath_overrides_runpath=yes
17191 libname_spec='$name'
17194 library_names_spec='$libname${shared_ext} $libname.a'
17195 dynamic_linker='OS/2 ld.exe'
17196 shlibpath_var=LIBPATH
17199 osf3* | osf4* | osf5*)
17203 soname_spec='${libname}${release}${shared_ext}$major'
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205 shlibpath_var=LD_LIBRARY_PATH
17206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17207 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214 shlibpath_var=LD_LIBRARY_PATH
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 shlibpath_overrides_runpath=yes
17225 hardcode_into_libs=yes
17226 # ldd complains unless libraries are executable
17227 postinstall_cmds='chmod +x $lib'
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17233 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 shlibpath_overrides_runpath=yes
17236 if test "$with_gnu_ld" = yes; then
17242 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245 soname_spec='${libname}${release}${shared_ext}$major'
17246 shlibpath_var=LD_LIBRARY_PATH
17247 case $host_vendor in
17249 shlibpath_overrides_runpath=no
17251 export_dynamic_flag_spec='${wl}-Blargedynsym'
17252 runpath_var=LD_RUN_PATH
17260 shlibpath_overrides_runpath=no
17261 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17267 if test -d /usr/nec ;then
17269 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17270 soname_spec='$libname${shared_ext}.$major'
17271 shlibpath_var=LD_LIBRARY_PATH
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 shlibpath_var=LD_LIBRARY_PATH
17286 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17287 echo "${ECHO_T}$dynamic_linker" >&6
17288 test "$dynamic_linker" = no && can_build_shared=no
17290 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17291 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17292 hardcode_action_GCJ=
17293 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17294 test -n "$runpath_var GCJ" || \
17295 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17297 # We can hardcode non-existant directories.
17298 if test "$hardcode_direct_GCJ" != no &&
17299 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17300 # have to relink, otherwise we might link with an installed library
17301 # when we should be linking with a yet-to-be-installed one
17302 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17303 test "$hardcode_minus_L_GCJ" != no; then
17304 # Linking always hardcodes the temporary library directory.
17305 hardcode_action_GCJ=relink
17307 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17308 hardcode_action_GCJ=immediate
17311 # We cannot hardcode anything, or else we can only hardcode existing
17313 hardcode_action_GCJ=unsupported
17315 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17316 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17318 if test "$hardcode_action_GCJ" = relink; then
17319 # Fast installation is not supported
17320 enable_fast_install=no
17321 elif test "$shlibpath_overrides_runpath" = yes ||
17322 test "$enable_shared" = no; then
17323 # Fast installation is not necessary
17324 enable_fast_install=needless
17329 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17330 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17331 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17332 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17333 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17334 echo "$as_me:$LINENO: result: yes" >&5
17335 echo "${ECHO_T}yes" >&6
17337 # FIXME - insert some real tests, host_os isn't really good enough
17340 if test -n "$STRIP" ; then
17341 striplib="$STRIP -x"
17342 echo "$as_me:$LINENO: result: yes" >&5
17343 echo "${ECHO_T}yes" >&6
17345 echo "$as_me:$LINENO: result: no" >&5
17346 echo "${ECHO_T}no" >&6
17350 echo "$as_me:$LINENO: result: no" >&5
17351 echo "${ECHO_T}no" >&6
17356 if test "x$enable_dlopen" != xyes; then
17357 enable_dlopen=unknown
17358 enable_dlopen_self=unknown
17359 enable_dlopen_self_static=unknown
17366 lt_cv_dlopen="load_add_on"
17368 lt_cv_dlopen_self=yes
17372 lt_cv_dlopen="LoadLibrary"
17377 lt_cv_dlopen="dlopen"
17382 # if libdl is installed we need to link against it
17383 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17384 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17385 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17388 ac_check_lib_save_LIBS=$LIBS
17390 cat >conftest.$ac_ext <<_ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17397 /* Override any gcc2 internal prototype to avoid an error. */
17401 /* We use char because int might match the return type of a gcc2
17402 builtin and then its argument prototype would still apply. */
17412 rm -f conftest.$ac_objext conftest$ac_exeext
17413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17414 (eval $ac_link) 2>conftest.er1
17416 grep -v '^ *+' conftest.er1 >conftest.err
17418 cat conftest.err >&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } &&
17421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423 (eval $ac_try) 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest$ac_exeext'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; }; then
17433 ac_cv_lib_dl_dlopen=yes
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438 ac_cv_lib_dl_dlopen=no
17440 rm -f conftest.err conftest.$ac_objext \
17441 conftest$ac_exeext conftest.$ac_ext
17442 LIBS=$ac_check_lib_save_LIBS
17444 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17445 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17446 if test $ac_cv_lib_dl_dlopen = yes; then
17447 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17450 lt_cv_dlopen="dyld"
17452 lt_cv_dlopen_self=yes
17459 echo "$as_me:$LINENO: checking for shl_load" >&5
17460 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17461 if test "${ac_cv_func_shl_load+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 cat >conftest.$ac_ext <<_ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17472 #define shl_load innocuous_shl_load
17474 /* System header to define __stub macros and hopefully few prototypes,
17475 which can conflict with char shl_load (); below.
17476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17477 <limits.h> exists even on freestanding compilers. */
17480 # include <limits.h>
17482 # include <assert.h>
17487 /* Override any gcc2 internal prototype to avoid an error. */
17492 /* We use char because int might match the return type of a gcc2
17493 builtin and then its argument prototype would still apply. */
17495 /* The GNU C library defines this for functions which it implements
17496 to always fail with ENOSYS. Some functions are actually named
17497 something starting with __ and the normal name is an alias. */
17498 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17501 char (*f) () = shl_load;
17510 return f != shl_load;
17515 rm -f conftest.$ac_objext conftest$ac_exeext
17516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17517 (eval $ac_link) 2>conftest.er1
17519 grep -v '^ *+' conftest.er1 >conftest.err
17521 cat conftest.err >&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); } &&
17524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; } &&
17530 { ac_try='test -s conftest$ac_exeext'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; }; then
17536 ac_cv_func_shl_load=yes
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17541 ac_cv_func_shl_load=no
17543 rm -f conftest.err conftest.$ac_objext \
17544 conftest$ac_exeext conftest.$ac_ext
17546 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17547 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17548 if test $ac_cv_func_shl_load = yes; then
17549 lt_cv_dlopen="shl_load"
17551 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17552 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17553 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17556 ac_check_lib_save_LIBS=$LIBS
17558 cat >conftest.$ac_ext <<_ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17565 /* Override any gcc2 internal prototype to avoid an error. */
17569 /* We use char because int might match the return type of a gcc2
17570 builtin and then its argument prototype would still apply. */
17580 rm -f conftest.$ac_objext conftest$ac_exeext
17581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17582 (eval $ac_link) 2>conftest.er1
17584 grep -v '^ *+' conftest.er1 >conftest.err
17586 cat conftest.err >&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; } &&
17595 { ac_try='test -s conftest$ac_exeext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_lib_dld_shl_load=yes
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_cv_lib_dld_shl_load=no
17608 rm -f conftest.err conftest.$ac_objext \
17609 conftest$ac_exeext conftest.$ac_ext
17610 LIBS=$ac_check_lib_save_LIBS
17612 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17613 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17614 if test $ac_cv_lib_dld_shl_load = yes; then
17615 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17617 echo "$as_me:$LINENO: checking for dlopen" >&5
17618 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17619 if test "${ac_cv_func_dlopen+set}" = set; then
17620 echo $ECHO_N "(cached) $ECHO_C" >&6
17622 cat >conftest.$ac_ext <<_ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17630 #define dlopen innocuous_dlopen
17632 /* System header to define __stub macros and hopefully few prototypes,
17633 which can conflict with char dlopen (); below.
17634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17635 <limits.h> exists even on freestanding compilers. */
17638 # include <limits.h>
17640 # include <assert.h>
17645 /* Override any gcc2 internal prototype to avoid an error. */
17650 /* We use char because int might match the return type of a gcc2
17651 builtin and then its argument prototype would still apply. */
17653 /* The GNU C library defines this for functions which it implements
17654 to always fail with ENOSYS. Some functions are actually named
17655 something starting with __ and the normal name is an alias. */
17656 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17659 char (*f) () = dlopen;
17668 return f != dlopen;
17673 rm -f conftest.$ac_objext conftest$ac_exeext
17674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17675 (eval $ac_link) 2>conftest.er1
17677 grep -v '^ *+' conftest.er1 >conftest.err
17679 cat conftest.err >&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } &&
17682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; } &&
17688 { ac_try='test -s conftest$ac_exeext'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; }; then
17694 ac_cv_func_dlopen=yes
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17699 ac_cv_func_dlopen=no
17701 rm -f conftest.err conftest.$ac_objext \
17702 conftest$ac_exeext conftest.$ac_ext
17704 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17705 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17706 if test $ac_cv_func_dlopen = yes; then
17707 lt_cv_dlopen="dlopen"
17709 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17710 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 ac_check_lib_save_LIBS=$LIBS
17716 cat >conftest.$ac_ext <<_ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17723 /* Override any gcc2 internal prototype to avoid an error. */
17727 /* We use char because int might match the return type of a gcc2
17728 builtin and then its argument prototype would still apply. */
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17740 (eval $ac_link) 2>conftest.er1
17742 grep -v '^ *+' conftest.er1 >conftest.err
17744 cat conftest.err >&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } &&
17747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; } &&
17753 { ac_try='test -s conftest$ac_exeext'
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 ac_cv_lib_dl_dlopen=yes
17761 echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17764 ac_cv_lib_dl_dlopen=no
17766 rm -f conftest.err conftest.$ac_objext \
17767 conftest$ac_exeext conftest.$ac_ext
17768 LIBS=$ac_check_lib_save_LIBS
17770 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17771 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17772 if test $ac_cv_lib_dl_dlopen = yes; then
17773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17775 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17776 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17777 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 ac_check_lib_save_LIBS=$LIBS
17781 LIBS="-lsvld $LIBS"
17782 cat >conftest.$ac_ext <<_ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h. */
17789 /* Override any gcc2 internal prototype to avoid an error. */
17793 /* We use char because int might match the return type of a gcc2
17794 builtin and then its argument prototype would still apply. */
17804 rm -f conftest.$ac_objext conftest$ac_exeext
17805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17806 (eval $ac_link) 2>conftest.er1
17808 grep -v '^ *+' conftest.er1 >conftest.err
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; } &&
17819 { ac_try='test -s conftest$ac_exeext'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; }; then
17825 ac_cv_lib_svld_dlopen=yes
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17830 ac_cv_lib_svld_dlopen=no
17832 rm -f conftest.err conftest.$ac_objext \
17833 conftest$ac_exeext conftest.$ac_ext
17834 LIBS=$ac_check_lib_save_LIBS
17836 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17837 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17838 if test $ac_cv_lib_svld_dlopen = yes; then
17839 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17841 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17842 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17843 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17844 echo $ECHO_N "(cached) $ECHO_C" >&6
17846 ac_check_lib_save_LIBS=$LIBS
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17855 /* Override any gcc2 internal prototype to avoid an error. */
17859 /* We use char because int might match the return type of a gcc2
17860 builtin and then its argument prototype would still apply. */
17870 rm -f conftest.$ac_objext conftest$ac_exeext
17871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17872 (eval $ac_link) 2>conftest.er1
17874 grep -v '^ *+' conftest.er1 >conftest.err
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } &&
17879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 (eval $ac_try) 2>&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; } &&
17885 { ac_try='test -s conftest$ac_exeext'
17886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; }; then
17891 ac_cv_lib_dld_dld_link=yes
17893 echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17896 ac_cv_lib_dld_dld_link=no
17898 rm -f conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17900 LIBS=$ac_check_lib_save_LIBS
17902 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17903 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17904 if test $ac_cv_lib_dld_dld_link = yes; then
17905 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17926 if test "x$lt_cv_dlopen" != xno; then
17932 case $lt_cv_dlopen in
17934 save_CPPFLAGS="$CPPFLAGS"
17935 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17937 save_LDFLAGS="$LDFLAGS"
17938 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17941 LIBS="$lt_cv_dlopen_libs $LIBS"
17943 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17944 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17945 if test "${lt_cv_dlopen_self+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17948 if test "$cross_compiling" = yes; then :
17949 lt_cv_dlopen_self=cross
17951 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17952 lt_status=$lt_dlunknown
17953 cat > conftest.$ac_ext <<EOF
17954 #line 17954 "configure"
17955 #include "confdefs.h"
17964 # define LT_DLGLOBAL RTLD_GLOBAL
17967 # define LT_DLGLOBAL DL_GLOBAL
17969 # define LT_DLGLOBAL 0
17973 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17974 find out it does not work in some platform. */
17975 #ifndef LT_DLLAZY_OR_NOW
17977 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17980 # define LT_DLLAZY_OR_NOW DL_LAZY
17983 # define LT_DLLAZY_OR_NOW RTLD_NOW
17986 # define LT_DLLAZY_OR_NOW DL_NOW
17988 # define LT_DLLAZY_OR_NOW 0
17996 extern "C" void exit (int);
17999 void fnord() { int i=42;}
18002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18003 int status = $lt_dlunknown;
18007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18008 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18009 /* dlclose (self); */
18015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18016 (eval $ac_link) 2>&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18020 (./conftest; exit; ) 2>/dev/null
18022 case x$lt_status in
18023 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18024 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18025 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18028 # compilation failed
18029 lt_cv_dlopen_self=no
18036 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18037 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18039 if test "x$lt_cv_dlopen_self" = xyes; then
18040 LDFLAGS="$LDFLAGS $link_static_flag"
18041 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18042 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18043 if test "${lt_cv_dlopen_self_static+set}" = set; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 if test "$cross_compiling" = yes; then :
18047 lt_cv_dlopen_self_static=cross
18049 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18050 lt_status=$lt_dlunknown
18051 cat > conftest.$ac_ext <<EOF
18052 #line 18052 "configure"
18053 #include "confdefs.h"
18062 # define LT_DLGLOBAL RTLD_GLOBAL
18065 # define LT_DLGLOBAL DL_GLOBAL
18067 # define LT_DLGLOBAL 0
18071 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18072 find out it does not work in some platform. */
18073 #ifndef LT_DLLAZY_OR_NOW
18075 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18078 # define LT_DLLAZY_OR_NOW DL_LAZY
18081 # define LT_DLLAZY_OR_NOW RTLD_NOW
18084 # define LT_DLLAZY_OR_NOW DL_NOW
18086 # define LT_DLLAZY_OR_NOW 0
18094 extern "C" void exit (int);
18097 void fnord() { int i=42;}
18100 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18101 int status = $lt_dlunknown;
18105 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18106 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18107 /* dlclose (self); */
18113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18114 (eval $ac_link) 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18118 (./conftest; exit; ) 2>/dev/null
18120 case x$lt_status in
18121 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18122 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18123 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18126 # compilation failed
18127 lt_cv_dlopen_self_static=no
18134 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18135 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18138 CPPFLAGS="$save_CPPFLAGS"
18139 LDFLAGS="$save_LDFLAGS"
18144 case $lt_cv_dlopen_self in
18145 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18146 *) enable_dlopen_self=unknown ;;
18149 case $lt_cv_dlopen_self_static in
18150 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18151 *) enable_dlopen_self_static=unknown ;;
18156 # The else clause should only fire when bootstrapping the
18157 # libtool distribution, otherwise you forgot to ship ltmain.sh
18158 # with your package, and you will get complaints that there are
18159 # no rules to generate ltmain.sh.
18160 if test -f "$ltmain"; then
18161 # See if we are running on zsh, and set the options which allow our commands through
18162 # without removal of \ escapes.
18163 if test -n "${ZSH_VERSION+set}" ; then
18164 setopt NO_GLOB_SUBST
18166 # Now quote all the things that may contain metacharacters while being
18167 # careful not to overquote the AC_SUBSTed values. We take copies of the
18168 # variables and quote the copies for generation of the libtool script.
18169 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18171 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18172 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18173 deplibs_check_method reload_flag reload_cmds need_locks \
18174 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18175 lt_cv_sys_global_symbol_to_c_name_address \
18176 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18177 old_postinstall_cmds old_postuninstall_cmds \
18181 lt_prog_compiler_wl_GCJ \
18182 lt_prog_compiler_pic_GCJ \
18183 lt_prog_compiler_static_GCJ \
18184 lt_prog_compiler_no_builtin_flag_GCJ \
18185 export_dynamic_flag_spec_GCJ \
18186 thread_safe_flag_spec_GCJ \
18187 whole_archive_flag_spec_GCJ \
18188 enable_shared_with_static_runtimes_GCJ \
18189 old_archive_cmds_GCJ \
18190 old_archive_from_new_cmds_GCJ \
18191 predep_objects_GCJ \
18192 postdep_objects_GCJ \
18195 compiler_lib_search_path_GCJ \
18197 archive_expsym_cmds_GCJ \
18198 postinstall_cmds_GCJ \
18199 postuninstall_cmds_GCJ \
18200 old_archive_from_expsyms_cmds_GCJ \
18201 allow_undefined_flag_GCJ \
18202 no_undefined_flag_GCJ \
18203 export_symbols_cmds_GCJ \
18204 hardcode_libdir_flag_spec_GCJ \
18205 hardcode_libdir_flag_spec_ld_GCJ \
18206 hardcode_libdir_separator_GCJ \
18207 hardcode_automatic_GCJ \
18209 module_expsym_cmds_GCJ \
18210 lt_cv_prog_compiler_c_o_GCJ \
18211 exclude_expsyms_GCJ \
18212 include_expsyms_GCJ; do
18215 old_archive_cmds_GCJ | \
18216 old_archive_from_new_cmds_GCJ | \
18217 archive_cmds_GCJ | \
18218 archive_expsym_cmds_GCJ | \
18219 module_cmds_GCJ | \
18220 module_expsym_cmds_GCJ | \
18221 old_archive_from_expsyms_cmds_GCJ | \
18222 export_symbols_cmds_GCJ | \
18223 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18224 postinstall_cmds | postuninstall_cmds | \
18225 old_postinstall_cmds | old_postuninstall_cmds | \
18226 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18227 # Double-quote double-evaled strings.
18228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18237 *'\$0 --fallback-echo"')
18238 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18244 cat <<__EOF__ >> "$cfgfile"
18245 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18247 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18249 # Shell to use when invoking shell scripts.
18252 # Whether or not to build shared libraries.
18253 build_libtool_libs=$enable_shared
18255 # Whether or not to build static libraries.
18256 build_old_libs=$enable_static
18258 # Whether or not to add -lc for building shared libraries.
18259 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18261 # Whether or not to disallow shared libs when runtime libs are static
18262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18264 # Whether or not to optimize for fast installation.
18265 fast_install=$enable_fast_install
18268 host_alias=$host_alias
18271 # An echo program that does not interpret backslashes.
18276 AR_FLAGS=$lt_AR_FLAGS
18281 # A language-specific compiler.
18282 CC=$lt_compiler_GCJ
18284 # Is the compiler the GNU C compiler?
18290 # The linker used to build libraries.
18293 # Whether we need hard or soft links.
18296 # A BSD-compatible nm program.
18299 # A symbol stripping program
18302 # Used to examine libraries when file_magic_cmd begins "file"
18303 MAGIC_CMD=$MAGIC_CMD
18305 # Used on cygwin: DLL creation program.
18308 # Used on cygwin: object dumper.
18311 # Used on cygwin: assembler.
18314 # The name of the directory that contains temporary libtool files.
18317 # How to create reloadable object files.
18318 reload_flag=$lt_reload_flag
18319 reload_cmds=$lt_reload_cmds
18321 # How to pass a linker flag through the compiler.
18322 wl=$lt_lt_prog_compiler_wl_GCJ
18324 # Object file suffix (normally "o").
18325 objext="$ac_objext"
18327 # Old archive suffix (normally "a").
18330 # Shared library suffix (normally ".so").
18331 shrext_cmds='$shrext_cmds'
18333 # Executable file suffix (normally "").
18336 # Additional compiler flags for building library objects.
18337 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18340 # What is the maximum length of a command?
18341 max_cmd_len=$lt_cv_sys_max_cmd_len
18343 # Does compiler simultaneously support -c and -o options?
18344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18346 # Must we lock files when doing compilation ?
18347 need_locks=$lt_need_locks
18349 # Do we need the lib prefix for modules?
18350 need_lib_prefix=$need_lib_prefix
18352 # Do we need a version for libraries?
18353 need_version=$need_version
18355 # Whether dlopen is supported.
18356 dlopen_support=$enable_dlopen
18358 # Whether dlopen of programs is supported.
18359 dlopen_self=$enable_dlopen_self
18361 # Whether dlopen of statically linked programs is supported.
18362 dlopen_self_static=$enable_dlopen_self_static
18364 # Compiler flag to prevent dynamic linking.
18365 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18367 # Compiler flag to turn off builtin functions.
18368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18370 # Compiler flag to allow reflexive dlopens.
18371 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18373 # Compiler flag to generate shared objects directly from archives.
18374 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18376 # Compiler flag to generate thread-safe objects.
18377 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18379 # Library versioning type.
18380 version_type=$version_type
18382 # Format of library name prefix.
18383 libname_spec=$lt_libname_spec
18385 # List of archive names. First name is the real one, the rest are links.
18386 # The last name is the one that the linker finds with -lNAME.
18387 library_names_spec=$lt_library_names_spec
18389 # The coded name of the library, if different from the real name.
18390 soname_spec=$lt_soname_spec
18392 # Commands used to build and install an old-style archive.
18394 old_archive_cmds=$lt_old_archive_cmds_GCJ
18395 old_postinstall_cmds=$lt_old_postinstall_cmds
18396 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18398 # Create an old-style archive from a shared archive.
18399 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18401 # Create a temporary old-style archive to link instead of a shared archive.
18402 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18404 # Commands used to build and install a shared archive.
18405 archive_cmds=$lt_archive_cmds_GCJ
18406 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18407 postinstall_cmds=$lt_postinstall_cmds
18408 postuninstall_cmds=$lt_postuninstall_cmds
18410 # Commands used to build a loadable module (assumed same as above if empty)
18411 module_cmds=$lt_module_cmds_GCJ
18412 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18414 # Commands to strip libraries.
18415 old_striplib=$lt_old_striplib
18416 striplib=$lt_striplib
18418 # Dependencies to place before the objects being linked to create a
18420 predep_objects=$lt_predep_objects_GCJ
18422 # Dependencies to place after the objects being linked to create a
18424 postdep_objects=$lt_postdep_objects_GCJ
18426 # Dependencies to place before the objects being linked to create a
18428 predeps=$lt_predeps_GCJ
18430 # Dependencies to place after the objects being linked to create a
18432 postdeps=$lt_postdeps_GCJ
18434 # The library search path used internally by the compiler when linking
18435 # a shared library.
18436 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18438 # Method to check whether dependent libraries are shared objects.
18439 deplibs_check_method=$lt_deplibs_check_method
18441 # Command to use when deplibs_check_method == file_magic.
18442 file_magic_cmd=$lt_file_magic_cmd
18444 # Flag that allows shared libraries with undefined symbols to be built.
18445 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18447 # Flag that forces no undefined symbols.
18448 no_undefined_flag=$lt_no_undefined_flag_GCJ
18450 # Commands used to finish a libtool library installation in a directory.
18451 finish_cmds=$lt_finish_cmds
18453 # Same as above, but a single script fragment to be evaled but not shown.
18454 finish_eval=$lt_finish_eval
18456 # Take the output of nm and produce a listing of raw symbols and C names.
18457 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18459 # Transform the output of nm in a proper C declaration
18460 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18462 # Transform the output of nm in a C name address pair
18463 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18465 # This is the shared library runtime path variable.
18466 runpath_var=$runpath_var
18468 # This is the shared library path variable.
18469 shlibpath_var=$shlibpath_var
18471 # Is shlibpath searched before the hard-coded library search path?
18472 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18474 # How to hardcode a shared library path into an executable.
18475 hardcode_action=$hardcode_action_GCJ
18477 # Whether we should hardcode library paths into libraries.
18478 hardcode_into_libs=$hardcode_into_libs
18480 # Flag to hardcode \$libdir into a binary during linking.
18481 # This must work even if \$libdir does not exist.
18482 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18484 # If ld is used when linking, flag to hardcode \$libdir into
18485 # a binary during linking. This must work even if \$libdir does
18487 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18489 # Whether we need a single -rpath flag with a separated argument.
18490 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18492 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18493 # resulting binary.
18494 hardcode_direct=$hardcode_direct_GCJ
18496 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18497 # resulting binary.
18498 hardcode_minus_L=$hardcode_minus_L_GCJ
18500 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18501 # the resulting binary.
18502 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18504 # Set to yes if building a shared library automatically hardcodes DIR into the library
18505 # and all subsequent libraries and executables linked against it.
18506 hardcode_automatic=$hardcode_automatic_GCJ
18508 # Variables whose values should be saved in libtool wrapper scripts and
18509 # restored at relink time.
18510 variables_saved_for_relink="$variables_saved_for_relink"
18512 # Whether libtool must link a program against all its dependency libraries.
18513 link_all_deplibs=$link_all_deplibs_GCJ
18515 # Compile-time system search path for libraries
18516 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18518 # Run-time system search path for libraries
18519 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18521 # Fix the shell variable \$srcfile for the compiler.
18522 fix_srcfile_path="$fix_srcfile_path_GCJ"
18524 # Set to yes if exported symbols are required.
18525 always_export_symbols=$always_export_symbols_GCJ
18527 # The commands to list exported symbols.
18528 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18530 # The commands to extract the exported symbol list from a shared archive.
18531 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18533 # Symbols that should not be listed in the preloaded symbols.
18534 exclude_expsyms=$lt_exclude_expsyms_GCJ
18536 # Symbols that must always be exported.
18537 include_expsyms=$lt_include_expsyms_GCJ
18539 # ### END LIBTOOL TAG CONFIG: $tagname
18545 # If there is no Makefile yet, we rely on a make rule to execute
18546 # `config.status --recheck' to rerun these tests and create the
18547 # libtool script then.
18548 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18549 if test -f "$ltmain_in"; then
18550 test -f Makefile && make "$ltmain"
18556 ac_cpp='$CPP $CPPFLAGS'
18557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18572 # Source file extension for RC test sources.
18575 # Object file extension for compiled RC test sources.
18579 # Code to be used in simple compile tests
18580 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18582 # Code to be used in simple link tests
18583 lt_simple_link_test_code="$lt_simple_compile_test_code"
18585 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18587 # If no C compiler was specified, use CC.
18590 # Allow CC to be a program name with arguments.
18594 # Allow CC to be a program name with arguments.
18599 lt_cv_prog_compiler_c_o_RC=yes
18601 # The else clause should only fire when bootstrapping the
18602 # libtool distribution, otherwise you forgot to ship ltmain.sh
18603 # with your package, and you will get complaints that there are
18604 # no rules to generate ltmain.sh.
18605 if test -f "$ltmain"; then
18606 # See if we are running on zsh, and set the options which allow our commands through
18607 # without removal of \ escapes.
18608 if test -n "${ZSH_VERSION+set}" ; then
18609 setopt NO_GLOB_SUBST
18611 # Now quote all the things that may contain metacharacters while being
18612 # careful not to overquote the AC_SUBSTed values. We take copies of the
18613 # variables and quote the copies for generation of the libtool script.
18614 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18616 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18617 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18618 deplibs_check_method reload_flag reload_cmds need_locks \
18619 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18620 lt_cv_sys_global_symbol_to_c_name_address \
18621 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18622 old_postinstall_cmds old_postuninstall_cmds \
18626 lt_prog_compiler_wl_RC \
18627 lt_prog_compiler_pic_RC \
18628 lt_prog_compiler_static_RC \
18629 lt_prog_compiler_no_builtin_flag_RC \
18630 export_dynamic_flag_spec_RC \
18631 thread_safe_flag_spec_RC \
18632 whole_archive_flag_spec_RC \
18633 enable_shared_with_static_runtimes_RC \
18634 old_archive_cmds_RC \
18635 old_archive_from_new_cmds_RC \
18636 predep_objects_RC \
18637 postdep_objects_RC \
18640 compiler_lib_search_path_RC \
18642 archive_expsym_cmds_RC \
18643 postinstall_cmds_RC \
18644 postuninstall_cmds_RC \
18645 old_archive_from_expsyms_cmds_RC \
18646 allow_undefined_flag_RC \
18647 no_undefined_flag_RC \
18648 export_symbols_cmds_RC \
18649 hardcode_libdir_flag_spec_RC \
18650 hardcode_libdir_flag_spec_ld_RC \
18651 hardcode_libdir_separator_RC \
18652 hardcode_automatic_RC \
18654 module_expsym_cmds_RC \
18655 lt_cv_prog_compiler_c_o_RC \
18656 exclude_expsyms_RC \
18657 include_expsyms_RC; do
18660 old_archive_cmds_RC | \
18661 old_archive_from_new_cmds_RC | \
18662 archive_cmds_RC | \
18663 archive_expsym_cmds_RC | \
18665 module_expsym_cmds_RC | \
18666 old_archive_from_expsyms_cmds_RC | \
18667 export_symbols_cmds_RC | \
18668 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18669 postinstall_cmds | postuninstall_cmds | \
18670 old_postinstall_cmds | old_postuninstall_cmds | \
18671 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18672 # Double-quote double-evaled strings.
18673 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18676 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18682 *'\$0 --fallback-echo"')
18683 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18689 cat <<__EOF__ >> "$cfgfile"
18690 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18692 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18694 # Shell to use when invoking shell scripts.
18697 # Whether or not to build shared libraries.
18698 build_libtool_libs=$enable_shared
18700 # Whether or not to build static libraries.
18701 build_old_libs=$enable_static
18703 # Whether or not to add -lc for building shared libraries.
18704 build_libtool_need_lc=$archive_cmds_need_lc_RC
18706 # Whether or not to disallow shared libs when runtime libs are static
18707 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18709 # Whether or not to optimize for fast installation.
18710 fast_install=$enable_fast_install
18713 host_alias=$host_alias
18716 # An echo program that does not interpret backslashes.
18721 AR_FLAGS=$lt_AR_FLAGS
18726 # A language-specific compiler.
18729 # Is the compiler the GNU C compiler?
18735 # The linker used to build libraries.
18738 # Whether we need hard or soft links.
18741 # A BSD-compatible nm program.
18744 # A symbol stripping program
18747 # Used to examine libraries when file_magic_cmd begins "file"
18748 MAGIC_CMD=$MAGIC_CMD
18750 # Used on cygwin: DLL creation program.
18753 # Used on cygwin: object dumper.
18756 # Used on cygwin: assembler.
18759 # The name of the directory that contains temporary libtool files.
18762 # How to create reloadable object files.
18763 reload_flag=$lt_reload_flag
18764 reload_cmds=$lt_reload_cmds
18766 # How to pass a linker flag through the compiler.
18767 wl=$lt_lt_prog_compiler_wl_RC
18769 # Object file suffix (normally "o").
18770 objext="$ac_objext"
18772 # Old archive suffix (normally "a").
18775 # Shared library suffix (normally ".so").
18776 shrext_cmds='$shrext_cmds'
18778 # Executable file suffix (normally "").
18781 # Additional compiler flags for building library objects.
18782 pic_flag=$lt_lt_prog_compiler_pic_RC
18785 # What is the maximum length of a command?
18786 max_cmd_len=$lt_cv_sys_max_cmd_len
18788 # Does compiler simultaneously support -c and -o options?
18789 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18791 # Must we lock files when doing compilation ?
18792 need_locks=$lt_need_locks
18794 # Do we need the lib prefix for modules?
18795 need_lib_prefix=$need_lib_prefix
18797 # Do we need a version for libraries?
18798 need_version=$need_version
18800 # Whether dlopen is supported.
18801 dlopen_support=$enable_dlopen
18803 # Whether dlopen of programs is supported.
18804 dlopen_self=$enable_dlopen_self
18806 # Whether dlopen of statically linked programs is supported.
18807 dlopen_self_static=$enable_dlopen_self_static
18809 # Compiler flag to prevent dynamic linking.
18810 link_static_flag=$lt_lt_prog_compiler_static_RC
18812 # Compiler flag to turn off builtin functions.
18813 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18815 # Compiler flag to allow reflexive dlopens.
18816 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18818 # Compiler flag to generate shared objects directly from archives.
18819 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18821 # Compiler flag to generate thread-safe objects.
18822 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18824 # Library versioning type.
18825 version_type=$version_type
18827 # Format of library name prefix.
18828 libname_spec=$lt_libname_spec
18830 # List of archive names. First name is the real one, the rest are links.
18831 # The last name is the one that the linker finds with -lNAME.
18832 library_names_spec=$lt_library_names_spec
18834 # The coded name of the library, if different from the real name.
18835 soname_spec=$lt_soname_spec
18837 # Commands used to build and install an old-style archive.
18839 old_archive_cmds=$lt_old_archive_cmds_RC
18840 old_postinstall_cmds=$lt_old_postinstall_cmds
18841 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18843 # Create an old-style archive from a shared archive.
18844 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18846 # Create a temporary old-style archive to link instead of a shared archive.
18847 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18849 # Commands used to build and install a shared archive.
18850 archive_cmds=$lt_archive_cmds_RC
18851 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18852 postinstall_cmds=$lt_postinstall_cmds
18853 postuninstall_cmds=$lt_postuninstall_cmds
18855 # Commands used to build a loadable module (assumed same as above if empty)
18856 module_cmds=$lt_module_cmds_RC
18857 module_expsym_cmds=$lt_module_expsym_cmds_RC
18859 # Commands to strip libraries.
18860 old_striplib=$lt_old_striplib
18861 striplib=$lt_striplib
18863 # Dependencies to place before the objects being linked to create a
18865 predep_objects=$lt_predep_objects_RC
18867 # Dependencies to place after the objects being linked to create a
18869 postdep_objects=$lt_postdep_objects_RC
18871 # Dependencies to place before the objects being linked to create a
18873 predeps=$lt_predeps_RC
18875 # Dependencies to place after the objects being linked to create a
18877 postdeps=$lt_postdeps_RC
18879 # The library search path used internally by the compiler when linking
18880 # a shared library.
18881 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18883 # Method to check whether dependent libraries are shared objects.
18884 deplibs_check_method=$lt_deplibs_check_method
18886 # Command to use when deplibs_check_method == file_magic.
18887 file_magic_cmd=$lt_file_magic_cmd
18889 # Flag that allows shared libraries with undefined symbols to be built.
18890 allow_undefined_flag=$lt_allow_undefined_flag_RC
18892 # Flag that forces no undefined symbols.
18893 no_undefined_flag=$lt_no_undefined_flag_RC
18895 # Commands used to finish a libtool library installation in a directory.
18896 finish_cmds=$lt_finish_cmds
18898 # Same as above, but a single script fragment to be evaled but not shown.
18899 finish_eval=$lt_finish_eval
18901 # Take the output of nm and produce a listing of raw symbols and C names.
18902 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18904 # Transform the output of nm in a proper C declaration
18905 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18907 # Transform the output of nm in a C name address pair
18908 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18910 # This is the shared library runtime path variable.
18911 runpath_var=$runpath_var
18913 # This is the shared library path variable.
18914 shlibpath_var=$shlibpath_var
18916 # Is shlibpath searched before the hard-coded library search path?
18917 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18919 # How to hardcode a shared library path into an executable.
18920 hardcode_action=$hardcode_action_RC
18922 # Whether we should hardcode library paths into libraries.
18923 hardcode_into_libs=$hardcode_into_libs
18925 # Flag to hardcode \$libdir into a binary during linking.
18926 # This must work even if \$libdir does not exist.
18927 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18929 # If ld is used when linking, flag to hardcode \$libdir into
18930 # a binary during linking. This must work even if \$libdir does
18932 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18934 # Whether we need a single -rpath flag with a separated argument.
18935 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18937 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18938 # resulting binary.
18939 hardcode_direct=$hardcode_direct_RC
18941 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18942 # resulting binary.
18943 hardcode_minus_L=$hardcode_minus_L_RC
18945 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18946 # the resulting binary.
18947 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18949 # Set to yes if building a shared library automatically hardcodes DIR into the library
18950 # and all subsequent libraries and executables linked against it.
18951 hardcode_automatic=$hardcode_automatic_RC
18953 # Variables whose values should be saved in libtool wrapper scripts and
18954 # restored at relink time.
18955 variables_saved_for_relink="$variables_saved_for_relink"
18957 # Whether libtool must link a program against all its dependency libraries.
18958 link_all_deplibs=$link_all_deplibs_RC
18960 # Compile-time system search path for libraries
18961 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18963 # Run-time system search path for libraries
18964 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18966 # Fix the shell variable \$srcfile for the compiler.
18967 fix_srcfile_path="$fix_srcfile_path_RC"
18969 # Set to yes if exported symbols are required.
18970 always_export_symbols=$always_export_symbols_RC
18972 # The commands to list exported symbols.
18973 export_symbols_cmds=$lt_export_symbols_cmds_RC
18975 # The commands to extract the exported symbol list from a shared archive.
18976 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18978 # Symbols that should not be listed in the preloaded symbols.
18979 exclude_expsyms=$lt_exclude_expsyms_RC
18981 # Symbols that must always be exported.
18982 include_expsyms=$lt_include_expsyms_RC
18984 # ### END LIBTOOL TAG CONFIG: $tagname
18990 # If there is no Makefile yet, we rely on a make rule to execute
18991 # `config.status --recheck' to rerun these tests and create the
18992 # libtool script then.
18993 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18994 if test -f "$ltmain_in"; then
18995 test -f Makefile && make "$ltmain"
19001 ac_cpp='$CPP $CPPFLAGS'
19002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19011 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19012 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19013 { (exit 1); exit 1; }; }
19017 # Append the new tag name to the list of available tags.
19018 if test -n "$tagname" ; then
19019 available_tags="$available_tags $tagname"
19025 # Now substitute the updated list of available tags.
19026 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19027 mv "${ofile}T" "$ofile"
19031 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19032 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19033 { (exit 1); exit 1; }; }
19039 # This can be used to rebuild libtool when needed
19040 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19042 # Always use our own libtool.
19043 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19045 # Prevent multiple expansion
19067 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19068 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19069 if test "${ac_cv_header_stdc+set}" = set; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 cat >conftest.$ac_ext <<_ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19078 #include <stdlib.h>
19079 #include <stdarg.h>
19080 #include <string.h>
19091 rm -f conftest.$ac_objext
19092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19093 (eval $ac_compile) 2>conftest.er1
19095 grep -v '^ *+' conftest.er1 >conftest.err
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
19100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest.$ac_objext'
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19112 ac_cv_header_stdc=yes
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 ac_cv_header_stdc=no
19119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19121 if test $ac_cv_header_stdc = yes; then
19122 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19123 cat >conftest.$ac_ext <<_ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 #include <string.h>
19132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19133 $EGREP "memchr" >/dev/null 2>&1; then
19136 ac_cv_header_stdc=no
19142 if test $ac_cv_header_stdc = yes; then
19143 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19144 cat >conftest.$ac_ext <<_ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h. */
19150 #include <stdlib.h>
19153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19154 $EGREP "free" >/dev/null 2>&1; then
19157 ac_cv_header_stdc=no
19163 if test $ac_cv_header_stdc = yes; then
19164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19165 if test "$cross_compiling" = yes; then
19168 cat >conftest.$ac_ext <<_ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h. */
19175 #if ((' ' & 0x0FF) == 0x020)
19176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19179 # define ISLOWER(c) \
19180 (('a' <= (c) && (c) <= 'i') \
19181 || ('j' <= (c) && (c) <= 'r') \
19182 || ('s' <= (c) && (c) <= 'z'))
19183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19191 for (i = 0; i < 256; i++)
19192 if (XOR (islower (i), ISLOWER (i))
19193 || toupper (i) != TOUPPER (i))
19198 rm -f conftest$ac_exeext
19199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19200 (eval $ac_link) 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19211 echo "$as_me: program exited with status $ac_status" >&5
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19215 ( exit $ac_status )
19216 ac_cv_header_stdc=no
19218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19222 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19223 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19224 if test $ac_cv_header_stdc = yes; then
19226 cat >>confdefs.h <<\_ACEOF
19227 #define STDC_HEADERS 1
19235 if test -z "$PKG_CONFIG"; then
19236 # Extract the first word of "pkg-config", so it can be a program name with args.
19237 set dummy pkg-config; ac_word=$2
19238 echo "$as_me:$LINENO: checking for $ac_word" >&5
19239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19240 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19243 case $PKG_CONFIG in
19245 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19249 for as_dir in $PATH
19252 test -z "$as_dir" && as_dir=.
19253 for ac_exec_ext in '' $ac_executable_extensions; do
19254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19255 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19262 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19266 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19268 if test -n "$PKG_CONFIG"; then
19269 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19270 echo "${ECHO_T}$PKG_CONFIG" >&6
19272 echo "$as_me:$LINENO: result: no" >&5
19273 echo "${ECHO_T}no" >&6
19278 if test "$PKG_CONFIG" = "no" ; then
19279 echo "*** The pkg-config script could not be found. Make sure it is"
19280 echo "*** in your path, or set the PKG_CONFIG environment variable"
19281 echo "*** to the full path to pkg-config."
19282 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19284 PKG_CONFIG_MIN_VERSION=0.9.0
19285 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19286 echo "$as_me:$LINENO: checking for outo >= 0.1.1" >&5
19287 echo $ECHO_N "checking for outo >= 0.1.1... $ECHO_C" >&6
19289 if $PKG_CONFIG --exists "outo >= 0.1.1" ; then
19290 echo "$as_me:$LINENO: result: yes" >&5
19291 echo "${ECHO_T}yes" >&6
19294 echo "$as_me:$LINENO: checking OUTO_CFLAGS" >&5
19295 echo $ECHO_N "checking OUTO_CFLAGS... $ECHO_C" >&6
19296 OUTO_CFLAGS=`$PKG_CONFIG --cflags "outo >= 0.1.1"`
19297 echo "$as_me:$LINENO: result: $OUTO_CFLAGS" >&5
19298 echo "${ECHO_T}$OUTO_CFLAGS" >&6
19300 echo "$as_me:$LINENO: checking OUTO_LIBS" >&5
19301 echo $ECHO_N "checking OUTO_LIBS... $ECHO_C" >&6
19302 OUTO_LIBS=`$PKG_CONFIG --libs "outo >= 0.1.1"`
19303 echo "$as_me:$LINENO: result: $OUTO_LIBS" >&5
19304 echo "${ECHO_T}$OUTO_LIBS" >&6
19308 ## If we have a custom action on failure, don't print errors, but
19309 ## do set a variable so people can do so.
19310 OUTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "outo >= 0.1.1"`
19311 echo $OUTO_PKG_ERRORS
19317 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19318 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19322 if test $succeeded = yes; then
19325 { { echo "$as_me:$LINENO: error: Library requirements (outo >= 0.1.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19326 echo "$as_me: error: Library requirements (outo >= 0.1.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19327 { (exit 1); exit 1; }; }
19332 CFLAGS="$CFLAGS -std=c99 -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations"
19333 # -Werror disabled due to the flaw in glib-2.0
19334 # See http://bugzilla.gnome.org/show_bug.cgi?id=310175 and
19335 # http://bugzilla.gnome.org/show_bug.cgi?id=310216
19342 if test -z "$PKG_CONFIG"; then
19343 # Extract the first word of "pkg-config", so it can be a program name with args.
19344 set dummy pkg-config; ac_word=$2
19345 echo "$as_me:$LINENO: checking for $ac_word" >&5
19346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19347 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 case $PKG_CONFIG in
19352 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19356 for as_dir in $PATH
19359 test -z "$as_dir" && as_dir=.
19360 for ac_exec_ext in '' $ac_executable_extensions; do
19361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19362 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19369 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19373 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19375 if test -n "$PKG_CONFIG"; then
19376 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19377 echo "${ECHO_T}$PKG_CONFIG" >&6
19379 echo "$as_me:$LINENO: result: no" >&5
19380 echo "${ECHO_T}no" >&6
19385 if test "$PKG_CONFIG" = "no" ; then
19386 echo "*** The pkg-config script could not be found. Make sure it is"
19387 echo "*** in your path, or set the PKG_CONFIG environment variable"
19388 echo "*** to the full path to pkg-config."
19389 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19391 PKG_CONFIG_MIN_VERSION=0.9.0
19392 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19393 echo "$as_me:$LINENO: checking for gtk+-2.0" >&5
19394 echo $ECHO_N "checking for gtk+-2.0... $ECHO_C" >&6
19396 if $PKG_CONFIG --exists "gtk+-2.0" ; then
19397 echo "$as_me:$LINENO: result: yes" >&5
19398 echo "${ECHO_T}yes" >&6
19401 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
19402 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
19403 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0"`
19404 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
19405 echo "${ECHO_T}$GTK_CFLAGS" >&6
19407 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
19408 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
19409 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0"`
19410 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
19411 echo "${ECHO_T}$GTK_LIBS" >&6
19415 ## If we have a custom action on failure, don't print errors, but
19416 ## do set a variable so people can do so.
19417 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
19418 echo $GTK_PKG_ERRORS
19424 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19425 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19429 if test $succeeded = yes; then
19432 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19433 echo "$as_me: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19434 { (exit 1); exit 1; }; }
19441 # ESD is needed for the hildon-note sounds.
19446 if test -z "$PKG_CONFIG"; then
19447 # Extract the first word of "pkg-config", so it can be a program name with args.
19448 set dummy pkg-config; ac_word=$2
19449 echo "$as_me:$LINENO: checking for $ac_word" >&5
19450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19451 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19452 echo $ECHO_N "(cached) $ECHO_C" >&6
19454 case $PKG_CONFIG in
19456 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19460 for as_dir in $PATH
19463 test -z "$as_dir" && as_dir=.
19464 for ac_exec_ext in '' $ac_executable_extensions; do
19465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19466 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19473 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19477 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19479 if test -n "$PKG_CONFIG"; then
19480 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19481 echo "${ECHO_T}$PKG_CONFIG" >&6
19483 echo "$as_me:$LINENO: result: no" >&5
19484 echo "${ECHO_T}no" >&6
19489 if test "$PKG_CONFIG" = "no" ; then
19490 echo "*** The pkg-config script could not be found. Make sure it is"
19491 echo "*** in your path, or set the PKG_CONFIG environment variable"
19492 echo "*** to the full path to pkg-config."
19493 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19495 PKG_CONFIG_MIN_VERSION=0.9.0
19496 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19497 echo "$as_me:$LINENO: checking for esound" >&5
19498 echo $ECHO_N "checking for esound... $ECHO_C" >&6
19500 if $PKG_CONFIG --exists "esound" ; then
19501 echo "$as_me:$LINENO: result: yes" >&5
19502 echo "${ECHO_T}yes" >&6
19505 echo "$as_me:$LINENO: checking ESD_CFLAGS" >&5
19506 echo $ECHO_N "checking ESD_CFLAGS... $ECHO_C" >&6
19507 ESD_CFLAGS=`$PKG_CONFIG --cflags "esound"`
19508 echo "$as_me:$LINENO: result: $ESD_CFLAGS" >&5
19509 echo "${ECHO_T}$ESD_CFLAGS" >&6
19511 echo "$as_me:$LINENO: checking ESD_LIBS" >&5
19512 echo $ECHO_N "checking ESD_LIBS... $ECHO_C" >&6
19513 ESD_LIBS=`$PKG_CONFIG --libs "esound"`
19514 echo "$as_me:$LINENO: result: $ESD_LIBS" >&5
19515 echo "${ECHO_T}$ESD_LIBS" >&6
19519 ## If we have a custom action on failure, don't print errors, but
19520 ## do set a variable so people can do so.
19521 ESD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
19522 echo $ESD_PKG_ERRORS
19528 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19529 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19533 if test $succeeded = yes; then
19536 { { echo "$as_me:$LINENO: error: Library requirements (esound) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19537 echo "$as_me: error: Library requirements (esound) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19538 { (exit 1); exit 1; }; }
19544 # Needed to demonstrate how mime-types can be handled with gnome-vfs
19548 if test -z "$PKG_CONFIG"; then
19549 # Extract the first word of "pkg-config", so it can be a program name with args.
19550 set dummy pkg-config; ac_word=$2
19551 echo "$as_me:$LINENO: checking for $ac_word" >&5
19552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19553 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 case $PKG_CONFIG in
19558 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19562 for as_dir in $PATH
19565 test -z "$as_dir" && as_dir=.
19566 for ac_exec_ext in '' $ac_executable_extensions; do
19567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19568 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19575 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19579 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19581 if test -n "$PKG_CONFIG"; then
19582 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19583 echo "${ECHO_T}$PKG_CONFIG" >&6
19585 echo "$as_me:$LINENO: result: no" >&5
19586 echo "${ECHO_T}no" >&6
19591 if test "$PKG_CONFIG" = "no" ; then
19592 echo "*** The pkg-config script could not be found. Make sure it is"
19593 echo "*** in your path, or set the PKG_CONFIG environment variable"
19594 echo "*** to the full path to pkg-config."
19595 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19597 PKG_CONFIG_MIN_VERSION=0.9.0
19598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19599 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6" >&5
19600 echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6... $ECHO_C" >&6
19602 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6" ; then
19603 echo "$as_me:$LINENO: result: yes" >&5
19604 echo "${ECHO_T}yes" >&6
19607 echo "$as_me:$LINENO: checking GNOME_VFS_CFLAGS" >&5
19608 echo $ECHO_N "checking GNOME_VFS_CFLAGS... $ECHO_C" >&6
19609 GNOME_VFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6"`
19610 echo "$as_me:$LINENO: result: $GNOME_VFS_CFLAGS" >&5
19611 echo "${ECHO_T}$GNOME_VFS_CFLAGS" >&6
19613 echo "$as_me:$LINENO: checking GNOME_VFS_LIBS" >&5
19614 echo $ECHO_N "checking GNOME_VFS_LIBS... $ECHO_C" >&6
19615 GNOME_VFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6"`
19616 echo "$as_me:$LINENO: result: $GNOME_VFS_LIBS" >&5
19617 echo "${ECHO_T}$GNOME_VFS_LIBS" >&6
19619 GNOME_VFS_CFLAGS=""
19621 ## If we have a custom action on failure, don't print errors, but
19622 ## do set a variable so people can do so.
19623 GNOME_VFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6"`
19624 echo $GNOME_VFS_PKG_ERRORS
19630 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19631 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19635 if test $succeeded = yes; then
19638 { { echo "$as_me:$LINENO: error: Library requirements (gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19639 echo "$as_me: error: Library requirements (gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19640 { (exit 1); exit 1; }; }
19649 if test -z "$PKG_CONFIG"; then
19650 # Extract the first word of "pkg-config", so it can be a program name with args.
19651 set dummy pkg-config; ac_word=$2
19652 echo "$as_me:$LINENO: checking for $ac_word" >&5
19653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19654 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 case $PKG_CONFIG in
19659 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19663 for as_dir in $PATH
19666 test -z "$as_dir" && as_dir=.
19667 for ac_exec_ext in '' $ac_executable_extensions; do
19668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19669 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19676 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19680 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19682 if test -n "$PKG_CONFIG"; then
19683 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19684 echo "${ECHO_T}$PKG_CONFIG" >&6
19686 echo "$as_me:$LINENO: result: no" >&5
19687 echo "${ECHO_T}no" >&6
19692 if test "$PKG_CONFIG" = "no" ; then
19693 echo "*** The pkg-config script could not be found. Make sure it is"
19694 echo "*** in your path, or set the PKG_CONFIG environment variable"
19695 echo "*** to the full path to pkg-config."
19696 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19698 PKG_CONFIG_MIN_VERSION=0.9.0
19699 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19700 echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.6" >&5
19701 echo $ECHO_N "checking for gconf-2.0 >= 2.6... $ECHO_C" >&6
19703 if $PKG_CONFIG --exists "gconf-2.0 >= 2.6" ; then
19704 echo "$as_me:$LINENO: result: yes" >&5
19705 echo "${ECHO_T}yes" >&6
19708 echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
19709 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
19710 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6"`
19711 echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
19712 echo "${ECHO_T}$GCONF_CFLAGS" >&6
19714 echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
19715 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
19716 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6"`
19717 echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
19718 echo "${ECHO_T}$GCONF_LIBS" >&6
19722 ## If we have a custom action on failure, don't print errors, but
19723 ## do set a variable so people can do so.
19724 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6"`
19725 echo $GCONF_PKG_ERRORS
19731 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19732 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19736 if test $succeeded = yes; then
19739 { { echo "$as_me:$LINENO: error: Library requirements (gconf-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19740 echo "$as_me: error: Library requirements (gconf-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19741 { (exit 1); exit 1; }; }
19750 if test -z "$PKG_CONFIG"; then
19751 # Extract the first word of "pkg-config", so it can be a program name with args.
19752 set dummy pkg-config; ac_word=$2
19753 echo "$as_me:$LINENO: checking for $ac_word" >&5
19754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19755 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 case $PKG_CONFIG in
19760 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19764 for as_dir in $PATH
19767 test -z "$as_dir" && as_dir=.
19768 for ac_exec_ext in '' $ac_executable_extensions; do
19769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19770 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19777 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19781 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19783 if test -n "$PKG_CONFIG"; then
19784 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19785 echo "${ECHO_T}$PKG_CONFIG" >&6
19787 echo "$as_me:$LINENO: result: no" >&5
19788 echo "${ECHO_T}no" >&6
19793 if test "$PKG_CONFIG" = "no" ; then
19794 echo "*** The pkg-config script could not be found. Make sure it is"
19795 echo "*** in your path, or set the PKG_CONFIG environment variable"
19796 echo "*** to the full path to pkg-config."
19797 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19799 PKG_CONFIG_MIN_VERSION=0.9.0
19800 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19801 echo "$as_me:$LINENO: checking for libmb >= 1.3" >&5
19802 echo $ECHO_N "checking for libmb >= 1.3... $ECHO_C" >&6
19804 if $PKG_CONFIG --exists "libmb >= 1.3" ; then
19805 echo "$as_me:$LINENO: result: yes" >&5
19806 echo "${ECHO_T}yes" >&6
19809 echo "$as_me:$LINENO: checking LIBMB_CFLAGS" >&5
19810 echo $ECHO_N "checking LIBMB_CFLAGS... $ECHO_C" >&6
19811 LIBMB_CFLAGS=`$PKG_CONFIG --cflags "libmb >= 1.3"`
19812 echo "$as_me:$LINENO: result: $LIBMB_CFLAGS" >&5
19813 echo "${ECHO_T}$LIBMB_CFLAGS" >&6
19815 echo "$as_me:$LINENO: checking LIBMB_LIBS" >&5
19816 echo $ECHO_N "checking LIBMB_LIBS... $ECHO_C" >&6
19817 LIBMB_LIBS=`$PKG_CONFIG --libs "libmb >= 1.3"`
19818 echo "$as_me:$LINENO: result: $LIBMB_LIBS" >&5
19819 echo "${ECHO_T}$LIBMB_LIBS" >&6
19823 ## If we have a custom action on failure, don't print errors, but
19824 ## do set a variable so people can do so.
19825 LIBMB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmb >= 1.3"`
19826 echo $LIBMB_PKG_ERRORS
19832 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19833 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19837 if test $succeeded = yes; then
19840 { { echo "$as_me:$LINENO: error: Library requirements (libmb >= 1.3) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19841 echo "$as_me: error: Library requirements (libmb >= 1.3) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19842 { (exit 1); exit 1; }; }
19848 ALL_LINGUAS="en_GB"
19852 for ac_header in locale.h
19854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19856 echo "$as_me:$LINENO: checking for $ac_header" >&5
19857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19864 # Is the header compilable?
19865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 $ac_includes_default
19874 #include <$ac_header>
19876 rm -f conftest.$ac_objext
19877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19878 (eval $ac_compile) 2>conftest.er1
19880 grep -v '^ *+' conftest.er1 >conftest.err
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
19885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; } &&
19891 { ac_try='test -s conftest.$ac_objext'
19892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893 (eval $ac_try) 2>&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; }; then
19897 ac_header_compiler=yes
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_header_compiler=no
19904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19906 echo "${ECHO_T}$ac_header_compiler" >&6
19908 # Is the header present?
19909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19911 cat >conftest.$ac_ext <<_ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 #include <$ac_header>
19919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19922 grep -v '^ *+' conftest.er1 >conftest.err
19924 cat conftest.err >&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } >/dev/null; then
19927 if test -s conftest.err; then
19928 ac_cpp_err=$ac_c_preproc_warn_flag
19929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19936 if test -z "$ac_cpp_err"; then
19937 ac_header_preproc=yes
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19942 ac_header_preproc=no
19944 rm -f conftest.err conftest.$ac_ext
19945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19946 echo "${ECHO_T}$ac_header_preproc" >&6
19948 # So? What about this header?
19949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19955 ac_header_preproc=yes
19958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19972 ## ------------------------------------------ ##
19973 ## Report this to the AC_PACKAGE_NAME lists. ##
19974 ## ------------------------------------------ ##
19977 sed "s/^/$as_me: WARNING: /" >&2
19980 echo "$as_me:$LINENO: checking for $ac_header" >&5
19981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 eval "$as_ac_Header=\$ac_header_preproc"
19987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19992 cat >>confdefs.h <<_ACEOF
19993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20000 if test $ac_cv_header_locale_h = yes; then
20001 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
20002 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
20003 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 cat >conftest.$ac_ext <<_ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20012 #include <locale.h>
20021 rm -f conftest.$ac_objext conftest$ac_exeext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20023 (eval $ac_link) 2>conftest.er1
20025 grep -v '^ *+' conftest.er1 >conftest.err
20027 cat conftest.err >&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } &&
20030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; } &&
20036 { ac_try='test -s conftest$ac_exeext'
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20042 am_cv_val_LC_MESSAGES=yes
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 am_cv_val_LC_MESSAGES=no
20049 rm -f conftest.err conftest.$ac_objext \
20050 conftest$ac_exeext conftest.$ac_ext
20052 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
20053 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
20054 if test $am_cv_val_LC_MESSAGES = yes; then
20056 cat >>confdefs.h <<\_ACEOF
20057 #define HAVE_LC_MESSAGES 1
20065 gt_cv_have_gettext=no
20071 if test "${ac_cv_header_libintl_h+set}" = set; then
20072 echo "$as_me:$LINENO: checking for libintl.h" >&5
20073 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
20074 if test "${ac_cv_header_libintl_h+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20078 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
20080 # Is the header compilable?
20081 echo "$as_me:$LINENO: checking libintl.h usability" >&5
20082 echo $ECHO_N "checking libintl.h usability... $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. */
20089 $ac_includes_default
20090 #include <libintl.h>
20092 rm -f conftest.$ac_objext
20093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20094 (eval $ac_compile) 2>conftest.er1
20096 grep -v '^ *+' conftest.er1 >conftest.err
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
20101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; } &&
20107 { ac_try='test -s conftest.$ac_objext'
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20113 ac_header_compiler=yes
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20118 ac_header_compiler=no
20120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20122 echo "${ECHO_T}$ac_header_compiler" >&6
20124 # Is the header present?
20125 echo "$as_me:$LINENO: checking libintl.h presence" >&5
20126 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
20127 cat >conftest.$ac_ext <<_ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h. */
20133 #include <libintl.h>
20135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20138 grep -v '^ *+' conftest.er1 >conftest.err
20140 cat conftest.err >&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } >/dev/null; then
20143 if test -s conftest.err; then
20144 ac_cpp_err=$ac_c_preproc_warn_flag
20145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20152 if test -z "$ac_cpp_err"; then
20153 ac_header_preproc=yes
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20158 ac_header_preproc=no
20160 rm -f conftest.err conftest.$ac_ext
20161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20162 echo "${ECHO_T}$ac_header_preproc" >&6
20164 # So? What about this header?
20165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20167 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20168 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20169 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
20170 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
20171 ac_header_preproc=yes
20174 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
20175 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
20176 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
20177 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
20178 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
20179 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
20180 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
20181 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20182 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
20183 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
20184 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
20185 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
20188 ## ------------------------------------------ ##
20189 ## Report this to the AC_PACKAGE_NAME lists. ##
20190 ## ------------------------------------------ ##
20193 sed "s/^/$as_me: WARNING: /" >&2
20196 echo "$as_me:$LINENO: checking for libintl.h" >&5
20197 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
20198 if test "${ac_cv_header_libintl_h+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20201 ac_cv_header_libintl_h=$ac_header_preproc
20203 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20204 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
20207 if test $ac_cv_header_libintl_h = yes; then
20208 gt_cv_func_dgettext_libintl="no"
20209 libintl_extra_libs=""
20212 # First check in libc
20214 echo "$as_me:$LINENO: checking for ngettext in libc" >&5
20215 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
20216 if test "${gt_cv_func_ngettext_libc+set}" = set; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20219 cat >conftest.$ac_ext <<_ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20226 #include <libintl.h>
20231 return !ngettext ("","", 1)
20236 rm -f conftest.$ac_objext conftest$ac_exeext
20237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20238 (eval $ac_link) 2>conftest.er1
20240 grep -v '^ *+' conftest.er1 >conftest.err
20242 cat conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
20245 { ac_try='test -z "$ac_c_werror_flag" || 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_exeext'
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
20257 gt_cv_func_ngettext_libc=yes
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20262 gt_cv_func_ngettext_libc=no
20264 rm -f conftest.err conftest.$ac_objext \
20265 conftest$ac_exeext conftest.$ac_ext
20268 echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
20269 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
20271 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20272 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
20273 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
20274 if test "${gt_cv_func_dgettext_libc+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 cat >conftest.$ac_ext <<_ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20284 #include <libintl.h>
20289 return !dgettext ("","")
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20296 (eval $ac_link) 2>conftest.er1
20298 grep -v '^ *+' conftest.er1 >conftest.err
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } &&
20303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; } &&
20309 { ac_try='test -s conftest$ac_exeext'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 gt_cv_func_dgettext_libc=yes
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 gt_cv_func_dgettext_libc=no
20322 rm -f conftest.err conftest.$ac_objext \
20323 conftest$ac_exeext conftest.$ac_ext
20326 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
20327 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
20330 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20332 for ac_func in bind_textdomain_codeset
20334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20335 echo "$as_me:$LINENO: checking for $ac_func" >&5
20336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20337 if eval "test \"\${$as_ac_var+set}\" = set"; then
20338 echo $ECHO_N "(cached) $ECHO_C" >&6
20340 cat >conftest.$ac_ext <<_ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20348 #define $ac_func innocuous_$ac_func
20350 /* System header to define __stub macros and hopefully few prototypes,
20351 which can conflict with char $ac_func (); below.
20352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20353 <limits.h> exists even on freestanding compilers. */
20356 # include <limits.h>
20358 # include <assert.h>
20363 /* Override any gcc2 internal prototype to avoid an error. */
20368 /* We use char because int might match the return type of a gcc2
20369 builtin and then its argument prototype would still apply. */
20371 /* The GNU C library defines this for functions which it implements
20372 to always fail with ENOSYS. Some functions are actually named
20373 something starting with __ and the normal name is an alias. */
20374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20377 char (*f) () = $ac_func;
20386 return f != $ac_func;
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20393 (eval $ac_link) 2>conftest.er1
20395 grep -v '^ *+' conftest.er1 >conftest.err
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } &&
20400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; } &&
20406 { ac_try='test -s conftest$ac_exeext'
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 eval "$as_ac_var=yes"
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20417 eval "$as_ac_var=no"
20419 rm -f conftest.err conftest.$ac_objext \
20420 conftest$ac_exeext conftest.$ac_ext
20422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20424 if test `eval echo '${'$as_ac_var'}'` = yes; then
20425 cat >>confdefs.h <<_ACEOF
20426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20435 # If we don't have everything we want, check in libintl
20437 if test "$gt_cv_func_dgettext_libc" != "yes" \
20438 || test "$gt_cv_func_ngettext_libc" != "yes" \
20439 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
20441 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
20442 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
20443 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 ac_check_lib_save_LIBS=$LIBS
20447 LIBS="-lintl $LIBS"
20448 cat >conftest.$ac_ext <<_ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h. */
20455 /* Override any gcc2 internal prototype to avoid an error. */
20459 /* We use char because int might match the return type of a gcc2
20460 builtin and then its argument prototype would still apply. */
20461 char bindtextdomain ();
20470 rm -f conftest.$ac_objext conftest$ac_exeext
20471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20472 (eval $ac_link) 2>conftest.er1
20474 grep -v '^ *+' conftest.er1 >conftest.err
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; } &&
20485 { ac_try='test -s conftest$ac_exeext'
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20491 ac_cv_lib_intl_bindtextdomain=yes
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20496 ac_cv_lib_intl_bindtextdomain=no
20498 rm -f conftest.err conftest.$ac_objext \
20499 conftest$ac_exeext conftest.$ac_ext
20500 LIBS=$ac_check_lib_save_LIBS
20502 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
20503 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
20504 if test $ac_cv_lib_intl_bindtextdomain = yes; then
20505 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
20506 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
20507 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
20508 echo $ECHO_N "(cached) $ECHO_C" >&6
20510 ac_check_lib_save_LIBS=$LIBS
20511 LIBS="-lintl $LIBS"
20512 cat >conftest.$ac_ext <<_ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20519 /* Override any gcc2 internal prototype to avoid an error. */
20523 /* We use char because int might match the return type of a gcc2
20524 builtin and then its argument prototype would still apply. */
20534 rm -f conftest.$ac_objext conftest$ac_exeext
20535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20536 (eval $ac_link) 2>conftest.er1
20538 grep -v '^ *+' conftest.er1 >conftest.err
20540 cat conftest.err >&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } &&
20543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; } &&
20549 { ac_try='test -s conftest$ac_exeext'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_lib_intl_ngettext=yes
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ac_cv_lib_intl_ngettext=no
20562 rm -f conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
20564 LIBS=$ac_check_lib_save_LIBS
20566 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
20567 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
20568 if test $ac_cv_lib_intl_ngettext = yes; then
20569 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20570 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20571 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20574 ac_check_lib_save_LIBS=$LIBS
20575 LIBS="-lintl $LIBS"
20576 cat >conftest.$ac_ext <<_ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h. */
20583 /* Override any gcc2 internal prototype to avoid an error. */
20587 /* We use char because int might match the return type of a gcc2
20588 builtin and then its argument prototype would still apply. */
20598 rm -f conftest.$ac_objext conftest$ac_exeext
20599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20600 (eval $ac_link) 2>conftest.er1
20602 grep -v '^ *+' conftest.er1 >conftest.err
20604 cat conftest.err >&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } &&
20607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609 (eval $ac_try) 2>&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); }; } &&
20613 { ac_try='test -s conftest$ac_exeext'
20614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615 (eval $ac_try) 2>&5
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; }; then
20619 ac_cv_lib_intl_dgettext=yes
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 ac_cv_lib_intl_dgettext=no
20626 rm -f conftest.err conftest.$ac_objext \
20627 conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20630 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20631 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20632 if test $ac_cv_lib_intl_dgettext = yes; then
20633 gt_cv_func_dgettext_libintl=yes
20641 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
20642 echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
20643 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
20644 echo "$as_me:$LINENO: result: " >&5
20645 echo "${ECHO_T}" >&6
20646 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
20647 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
20648 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 ac_check_lib_save_LIBS=$LIBS
20652 LIBS="-lintl -liconv $LIBS"
20653 cat >conftest.$ac_ext <<_ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20660 /* Override any gcc2 internal prototype to avoid an error. */
20664 /* We use char because int might match the return type of a gcc2
20665 builtin and then its argument prototype would still apply. */
20675 rm -f conftest.$ac_objext conftest$ac_exeext
20676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20677 (eval $ac_link) 2>conftest.er1
20679 grep -v '^ *+' conftest.er1 >conftest.err
20681 cat conftest.err >&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } &&
20684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest$ac_exeext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 ac_cv_lib_intl_ngettext=yes
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20701 ac_cv_lib_intl_ngettext=no
20703 rm -f conftest.err conftest.$ac_objext \
20704 conftest$ac_exeext conftest.$ac_ext
20705 LIBS=$ac_check_lib_save_LIBS
20707 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
20708 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
20709 if test $ac_cv_lib_intl_ngettext = yes; then
20710 echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
20711 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
20712 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 ac_check_lib_save_LIBS=$LIBS
20716 LIBS="-lintl -liconv $LIBS"
20717 cat >conftest.$ac_ext <<_ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20724 /* Override any gcc2 internal prototype to avoid an error. */
20728 /* We use char because int might match the return type of a gcc2
20729 builtin and then its argument prototype would still apply. */
20739 rm -f conftest.$ac_objext conftest$ac_exeext
20740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20741 (eval $ac_link) 2>conftest.er1
20743 grep -v '^ *+' conftest.er1 >conftest.err
20745 cat conftest.err >&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } &&
20748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest$ac_exeext'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20760 ac_cv_lib_intl_dcgettext=yes
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 ac_cv_lib_intl_dcgettext=no
20767 rm -f conftest.err conftest.$ac_objext \
20768 conftest$ac_exeext conftest.$ac_ext
20769 LIBS=$ac_check_lib_save_LIBS
20771 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
20772 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
20773 if test $ac_cv_lib_intl_dcgettext = yes; then
20774 gt_cv_func_dgettext_libintl=yes
20775 libintl_extra_libs=-liconv
20787 # If we found libintl, then check in it for bind_textdomain_codeset();
20788 # we'll prefer libc if neither have bind_textdomain_codeset(),
20789 # and both have dgettext and ngettext
20791 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
20792 glib_save_LIBS="$LIBS"
20793 LIBS="$LIBS -lintl $libintl_extra_libs"
20794 unset ac_cv_func_bind_textdomain_codeset
20796 for ac_func in bind_textdomain_codeset
20798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20799 echo "$as_me:$LINENO: checking for $ac_func" >&5
20800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20801 if eval "test \"\${$as_ac_var+set}\" = set"; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20804 cat >conftest.$ac_ext <<_ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20812 #define $ac_func innocuous_$ac_func
20814 /* System header to define __stub macros and hopefully few prototypes,
20815 which can conflict with char $ac_func (); below.
20816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20817 <limits.h> exists even on freestanding compilers. */
20820 # include <limits.h>
20822 # include <assert.h>
20827 /* Override any gcc2 internal prototype to avoid an error. */
20832 /* We use char because int might match the return type of a gcc2
20833 builtin and then its argument prototype would still apply. */
20835 /* The GNU C library defines this for functions which it implements
20836 to always fail with ENOSYS. Some functions are actually named
20837 something starting with __ and the normal name is an alias. */
20838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20841 char (*f) () = $ac_func;
20850 return f != $ac_func;
20855 rm -f conftest.$ac_objext conftest$ac_exeext
20856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20857 (eval $ac_link) 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } &&
20864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; } &&
20870 { ac_try='test -s conftest$ac_exeext'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876 eval "$as_ac_var=yes"
20878 echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20881 eval "$as_ac_var=no"
20883 rm -f conftest.err conftest.$ac_objext \
20884 conftest$ac_exeext conftest.$ac_ext
20886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20888 if test `eval echo '${'$as_ac_var'}'` = yes; then
20889 cat >>confdefs.h <<_ACEOF
20890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20896 LIBS="$glib_save_LIBS"
20898 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
20899 gt_cv_func_dgettext_libc=no
20901 if test "$gt_cv_func_dgettext_libc" = "yes" \
20902 && test "$gt_cv_func_ngettext_libc" = "yes"; then
20903 gt_cv_func_dgettext_libintl=no
20909 if test "$gt_cv_func_dgettext_libc" = "yes" \
20910 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
20911 gt_cv_have_gettext=yes
20914 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
20915 INTLLIBS="-lintl $libintl_extra_libs"
20918 if test "$gt_cv_have_gettext" = "yes"; then
20920 cat >>confdefs.h <<\_ACEOF
20921 #define HAVE_GETTEXT 1
20924 # Extract the first word of "msgfmt", so it can be a program name with args.
20925 set dummy msgfmt; ac_word=$2
20926 echo "$as_me:$LINENO: checking for $ac_word" >&5
20927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20928 if test "${ac_cv_path_MSGFMT+set}" = set; then
20929 echo $ECHO_N "(cached) $ECHO_C" >&6
20933 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
20937 for ac_dir in $PATH; do
20938 test -z "$ac_dir" && ac_dir=.
20939 if test -f $ac_dir/$ac_word; then
20940 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
20941 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
20947 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
20951 MSGFMT="$ac_cv_path_MSGFMT"
20952 if test "$MSGFMT" != "no"; then
20953 echo "$as_me:$LINENO: result: $MSGFMT" >&5
20954 echo "${ECHO_T}$MSGFMT" >&6
20956 echo "$as_me:$LINENO: result: no" >&5
20957 echo "${ECHO_T}no" >&6
20959 if test "$MSGFMT" != "no"; then
20960 glib_save_LIBS="$LIBS"
20961 LIBS="$LIBS $INTLLIBS"
20963 for ac_func in dcgettext
20965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20966 echo "$as_me:$LINENO: checking for $ac_func" >&5
20967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20968 if eval "test \"\${$as_ac_var+set}\" = set"; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20971 cat >conftest.$ac_ext <<_ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20979 #define $ac_func innocuous_$ac_func
20981 /* System header to define __stub macros and hopefully few prototypes,
20982 which can conflict with char $ac_func (); below.
20983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20984 <limits.h> exists even on freestanding compilers. */
20987 # include <limits.h>
20989 # include <assert.h>
20994 /* Override any gcc2 internal prototype to avoid an error. */
20999 /* We use char because int might match the return type of a gcc2
21000 builtin and then its argument prototype would still apply. */
21002 /* The GNU C library defines this for functions which it implements
21003 to always fail with ENOSYS. Some functions are actually named
21004 something starting with __ and the normal name is an alias. */
21005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21008 char (*f) () = $ac_func;
21017 return f != $ac_func;
21022 rm -f conftest.$ac_objext conftest$ac_exeext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21024 (eval $ac_link) 2>conftest.er1
21026 grep -v '^ *+' conftest.er1 >conftest.err
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } &&
21031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest$ac_exeext'
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; }; then
21043 eval "$as_ac_var=yes"
21045 echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21048 eval "$as_ac_var=no"
21050 rm -f conftest.err conftest.$ac_objext \
21051 conftest$ac_exeext conftest.$ac_ext
21053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21055 if test `eval echo '${'$as_ac_var'}'` = yes; then
21056 cat >>confdefs.h <<_ACEOF
21057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21063 # Extract the first word of "gmsgfmt", so it can be a program name with args.
21064 set dummy gmsgfmt; ac_word=$2
21065 echo "$as_me:$LINENO: checking for $ac_word" >&5
21066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21067 if test "${ac_cv_path_GMSGFMT+set}" = set; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
21072 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21076 for as_dir in $PATH
21079 test -z "$as_dir" && as_dir=.
21080 for ac_exec_ext in '' $ac_executable_extensions; do
21081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21082 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21089 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21093 GMSGFMT=$ac_cv_path_GMSGFMT
21095 if test -n "$GMSGFMT"; then
21096 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21097 echo "${ECHO_T}$GMSGFMT" >&6
21099 echo "$as_me:$LINENO: result: no" >&5
21100 echo "${ECHO_T}no" >&6
21103 # Extract the first word of "xgettext", so it can be a program name with args.
21104 set dummy xgettext; ac_word=$2
21105 echo "$as_me:$LINENO: checking for $ac_word" >&5
21106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21107 if test "${ac_cv_path_XGETTEXT+set}" = set; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 case "$XGETTEXT" in
21112 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21116 for ac_dir in $PATH; do
21117 test -z "$ac_dir" && ac_dir=.
21118 if test -f $ac_dir/$ac_word; then
21119 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
21120 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
21126 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21130 XGETTEXT="$ac_cv_path_XGETTEXT"
21131 if test "$XGETTEXT" != ":"; then
21132 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21133 echo "${ECHO_T}$XGETTEXT" >&6
21135 echo "$as_me:$LINENO: result: no" >&5
21136 echo "${ECHO_T}no" >&6
21139 cat >conftest.$ac_ext <<_ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21149 extern int _nl_msg_cat_cntr;
21150 return _nl_msg_cat_cntr
21155 rm -f conftest.$ac_objext conftest$ac_exeext
21156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21157 (eval $ac_link) 2>conftest.er1
21159 grep -v '^ *+' conftest.er1 >conftest.err
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } &&
21164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; } &&
21170 { ac_try='test -s conftest$ac_exeext'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; }; then
21179 echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21184 echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
21185 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
21186 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
21187 echo $ECHO_N "(cached) $ECHO_C" >&6
21189 cat >conftest.$ac_ext <<_ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h. */
21195 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
21196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21197 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
21199 /* System header to define __stub macros and hopefully few prototypes,
21200 which can conflict with char bind_textdomain_codeset (); below.
21201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21202 <limits.h> exists even on freestanding compilers. */
21205 # include <limits.h>
21207 # include <assert.h>
21210 #undef bind_textdomain_codeset
21212 /* Override any gcc2 internal prototype to avoid an error. */
21217 /* We use char because int might match the return type of a gcc2
21218 builtin and then its argument prototype would still apply. */
21219 char bind_textdomain_codeset ();
21220 /* The GNU C library defines this for functions which it implements
21221 to always fail with ENOSYS. Some functions are actually named
21222 something starting with __ and the normal name is an alias. */
21223 #if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
21226 char (*f) () = bind_textdomain_codeset;
21235 return f != bind_textdomain_codeset;
21240 rm -f conftest.$ac_objext conftest$ac_exeext
21241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21242 (eval $ac_link) 2>conftest.er1
21244 grep -v '^ *+' conftest.er1 >conftest.err
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
21249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; } &&
21255 { ac_try='test -s conftest$ac_exeext'
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; }; then
21261 ac_cv_func_bind_textdomain_codeset=yes
21263 echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ac_cv_func_bind_textdomain_codeset=no
21268 rm -f conftest.err conftest.$ac_objext \
21269 conftest$ac_exeext conftest.$ac_ext
21271 echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
21272 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
21273 if test $ac_cv_func_bind_textdomain_codeset = yes; then
21288 rm -f conftest.err conftest.$ac_objext \
21289 conftest$ac_exeext conftest.$ac_ext
21290 LIBS="$glib_save_LIBS"
21293 gt_cv_have_gettext=no
21301 if test "$gt_cv_have_gettext" = "yes" ; then
21303 cat >>confdefs.h <<\_ACEOF
21304 #define ENABLE_NLS 1
21309 if test "$XGETTEXT" != ":"; then
21310 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
21313 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
21314 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
21319 # We need to process the po/ directory.
21322 ac_config_commands="$ac_config_commands default-1"
21325 for lang in $ALL_LINGUAS; do
21326 GMOFILES="$GMOFILES $lang.gmo"
21327 POFILES="$POFILES $lang.po"
21342 if test "$gt_cv_have_gettext" = "yes"; then
21343 if test "x$ALL_LINGUAS" = "x"; then
21346 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
21347 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
21349 for presentlang in $ALL_LINGUAS; do
21351 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
21352 desiredlanguages="$LINGUAS"
21354 desiredlanguages="$ALL_LINGUAS"
21356 for desiredlang in $desiredlanguages; do
21357 # Use the presentlang catalog if desiredlang is
21358 # a. equal to presentlang, or
21359 # b. a variant of presentlang (because in this case,
21360 # presentlang can be used as a fallback for messages
21361 # which are not translated in the desiredlang catalog).
21362 case "$desiredlang" in
21363 "$presentlang"*) useit=yes;;
21366 if test $useit = yes; then
21367 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
21370 LINGUAS=$NEW_LINGUAS
21371 echo "$as_me:$LINENO: result: $LINGUAS" >&5
21372 echo "${ECHO_T}$LINGUAS" >&6
21375 if test -n "$LINGUAS"; then
21376 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
21381 if test -n "$ac_aux_dir"; then
21382 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
21384 if test -z "$MKINSTALLDIRS"; then
21385 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21389 test -d po || mkdir po
21390 if test "x$srcdir" != "x."; then
21391 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
21392 posrcprefix="$srcdir/"
21394 posrcprefix="../$srcdir/"
21400 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
21401 < $srcdir/po/POTFILES.in > po/POTFILES
21404 ##################################################
21405 # Check for gtk-doc.
21406 ##################################################
21409 # Check whether --with-html-dir or --without-html-dir was given.
21410 if test "${with_html_dir+set}" = set; then
21411 withval="$with_html_dir"
21414 with_html_dir='${datadir}/gtk-doc/html'
21416 HTML_DIR="$with_html_dir"
21419 # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
21420 if test "${enable_gtk_doc+set}" = set; then
21421 enableval="$enable_gtk_doc"
21428 if test -z "$PKG_CONFIG"; then
21429 # Extract the first word of "pkg-config", so it can be a program name with args.
21430 set dummy pkg-config; ac_word=$2
21431 echo "$as_me:$LINENO: checking for $ac_word" >&5
21432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21433 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21434 echo $ECHO_N "(cached) $ECHO_C" >&6
21436 case $PKG_CONFIG in
21438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21442 for as_dir in $PATH
21445 test -z "$as_dir" && as_dir=.
21446 for ac_exec_ext in '' $ac_executable_extensions; do
21447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21448 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21455 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21459 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21461 if test -n "$PKG_CONFIG"; then
21462 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21463 echo "${ECHO_T}$PKG_CONFIG" >&6
21465 echo "$as_me:$LINENO: result: no" >&5
21466 echo "${ECHO_T}no" >&6
21470 if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
21474 gtk_doc_min_version=1.0
21475 if test "$have_gtk_doc" = yes; then
21476 echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5
21477 echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6
21478 if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
21479 echo "$as_me:$LINENO: result: yes" >&5
21480 echo "${ECHO_T}yes" >&6
21482 echo "$as_me:$LINENO: result: no" >&5
21483 echo "${ECHO_T}no" >&6
21488 if test x$enable_gtk_doc = xyes; then
21489 if test "$have_gtk_doc" != yes; then
21496 if test x$enable_gtk_doc = xyes; then
21497 ENABLE_GTK_DOC_TRUE=
21498 ENABLE_GTK_DOC_FALSE='#'
21500 ENABLE_GTK_DOC_TRUE='#'
21501 ENABLE_GTK_DOC_FALSE=
21506 if test -n "$LIBTOOL"; then
21507 GTK_DOC_USE_LIBTOOL_TRUE=
21508 GTK_DOC_USE_LIBTOOL_FALSE='#'
21510 GTK_DOC_USE_LIBTOOL_TRUE='#'
21511 GTK_DOC_USE_LIBTOOL_FALSE=
21516 # Extract the first word of "doxygen", so it can be a program name with args.
21517 set dummy doxygen; ac_word=$2
21518 echo "$as_me:$LINENO: checking for $ac_word" >&5
21519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21520 if test "${ac_cv_prog_DOXYGEN_FOUND+set}" = set; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21523 if test -n "$DOXYGEN_FOUND"; then
21524 ac_cv_prog_DOXYGEN_FOUND="$DOXYGEN_FOUND" # Let the user override the test.
21526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21527 for as_dir in $PATH
21530 test -z "$as_dir" && as_dir=.
21531 for ac_exec_ext in '' $ac_executable_extensions; do
21532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21533 ac_cv_prog_DOXYGEN_FOUND="yes"
21534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21540 test -z "$ac_cv_prog_DOXYGEN_FOUND" && ac_cv_prog_DOXYGEN_FOUND="no"
21543 DOXYGEN_FOUND=$ac_cv_prog_DOXYGEN_FOUND
21544 if test -n "$DOXYGEN_FOUND"; then
21545 echo "$as_me:$LINENO: result: $DOXYGEN_FOUND" >&5
21546 echo "${ECHO_T}$DOXYGEN_FOUND" >&6
21548 echo "$as_me:$LINENO: result: no" >&5
21549 echo "${ECHO_T}no" >&6
21554 if test "$DOXYGEN_FOUND" = "yes"; then
21556 HAVE_DOXYGEN_FALSE='#'
21558 HAVE_DOXYGEN_TRUE='#'
21559 HAVE_DOXYGEN_FALSE=
21563 localedir=${datadir}/locale
21564 outomoduledir=${libdir}/outo
21570 # Disable rebuild of glib-mkenum -generated source code:
21571 # Check whether --enable-rebuilds or --disable-rebuilds was given.
21572 if test "${enable_rebuilds+set}" = set; then
21573 enableval="$enable_rebuilds"
21576 enable_rebuilds=yes
21579 # define a MAINT-like variable REBUILD which is set if Perl
21580 # is found, so autogenerated sources can be rebuilt
21581 for ac_prog in perl5 perl
21583 # Extract the first word of "$ac_prog", so it can be a program name with args.
21584 set dummy $ac_prog; ac_word=$2
21585 echo "$as_me:$LINENO: checking for $ac_word" >&5
21586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21587 if test "${ac_cv_prog_PERL+set}" = set; then
21588 echo $ECHO_N "(cached) $ECHO_C" >&6
21590 if test -n "$PERL"; then
21591 ac_cv_prog_PERL="$PERL" # Let the user override the test.
21593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21594 for as_dir in $PATH
21597 test -z "$as_dir" && as_dir=.
21598 for ac_exec_ext in '' $ac_executable_extensions; do
21599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21600 ac_cv_prog_PERL="$ac_prog"
21601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21609 PERL=$ac_cv_prog_PERL
21610 if test -n "$PERL"; then
21611 echo "$as_me:$LINENO: result: $PERL" >&5
21612 echo "${ECHO_T}$PERL" >&6
21614 echo "$as_me:$LINENO: result: no" >&5
21615 echo "${ECHO_T}no" >&6
21618 test -n "$PERL" && break
21623 if test "x$enable_rebuilds" = "xyes" && \
21624 test -n "$PERL" && \
21625 $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 ; then
21631 ac_config_files="$ac_config_files Makefile hildon-widgets/Makefile timer/Makefile ut/Makefile po/Makefile po/porules.mk doc/Makefile hildon-libs.pc"
21632 cat >confcache <<\_ACEOF
21633 # This file is a shell script that caches the results of configure
21634 # tests run on this system so they can be shared between configure
21635 # scripts and configure runs, see configure's option --config-cache.
21636 # It is not useful on other systems. If it contains results you don't
21637 # want to keep, you may remove or edit it.
21639 # config.status only pays attention to the cache file if you give it
21640 # the --recheck option to rerun configure.
21642 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21643 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21644 # following values.
21648 # The following way of writing the cache mishandles newlines in values,
21649 # but we know of no workaround that is simple, portable, and efficient.
21650 # So, don't put newlines in cache variables' values.
21651 # Ultrix sh set writes to stderr and can't be redirected directly,
21652 # and sets the high bit in the cache file unless we assign to the vars.
21655 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21657 # `set' does not quote correctly, so add quotes (double-quote
21658 # substitution turns \\\\ into \\, and sed turns \\ into \).
21661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21664 # `set' quotes correctly as required by POSIX, so do not add quotes.
21666 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21673 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21675 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21677 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21678 if test -w $cache_file; then
21679 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21680 cat confcache >$cache_file
21682 echo "not updating unwritable cache $cache_file"
21687 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21688 # Let make expand exec_prefix.
21689 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21691 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21692 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21693 # trailing colons and then remove the whole line if VPATH becomes empty
21694 # (actually we leave an empty line to preserve line numbers).
21695 if test "x$srcdir" = x.; then
21696 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21697 s/:*\$(srcdir):*/:/;
21698 s/:*\${srcdir}:*/:/;
21700 s/^\([^=]*=[ ]*\):*/\1/;
21706 DEFS=-DHAVE_CONFIG_H
21710 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21711 # 1. Remove the extension, and $U if already installed.
21712 ac_i=`echo "$ac_i" |
21713 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21715 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21716 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21718 LIBOBJS=$ac_libobjs
21720 LTLIBOBJS=$ac_ltlibobjs
21723 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21724 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21725 Usually this means the macro was only invoked conditionally." >&5
21726 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21727 Usually this means the macro was only invoked conditionally." >&2;}
21728 { (exit 1); exit 1; }; }
21730 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21731 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21732 Usually this means the macro was only invoked conditionally." >&5
21733 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21734 Usually this means the macro was only invoked conditionally." >&2;}
21735 { (exit 1); exit 1; }; }
21737 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21738 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21739 Usually this means the macro was only invoked conditionally." >&5
21740 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21741 Usually this means the macro was only invoked conditionally." >&2;}
21742 { (exit 1); exit 1; }; }
21744 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21745 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
21746 Usually this means the macro was only invoked conditionally." >&5
21747 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
21748 Usually this means the macro was only invoked conditionally." >&2;}
21749 { (exit 1); exit 1; }; }
21751 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21752 { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21753 Usually this means the macro was only invoked conditionally." >&5
21754 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21755 Usually this means the macro was only invoked conditionally." >&2;}
21756 { (exit 1); exit 1; }; }
21758 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
21759 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined.
21760 Usually this means the macro was only invoked conditionally." >&5
21761 echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined.
21762 Usually this means the macro was only invoked conditionally." >&2;}
21763 { (exit 1); exit 1; }; }
21766 : ${CONFIG_STATUS=./config.status}
21767 ac_clean_files_save=$ac_clean_files
21768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21769 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21770 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21771 cat >$CONFIG_STATUS <<_ACEOF
21773 # Generated by $as_me.
21774 # Run this file to recreate the current configuration.
21775 # Compiler output produced by configure, useful for debugging
21776 # configure, is in config.log if it exists.
21779 ac_cs_recheck=false
21781 SHELL=\${CONFIG_SHELL-$SHELL}
21784 cat >>$CONFIG_STATUS <<\_ACEOF
21785 ## --------------------- ##
21786 ## M4sh Initialization. ##
21787 ## --------------------- ##
21789 # Be Bourne compatible
21790 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21793 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21794 # is contrary to our usage. Disable this feature.
21795 alias -g '${1+"$@"}'='"$@"'
21796 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21799 DUALCASE=1; export DUALCASE # for MKS sh
21801 # Support unset when possible.
21802 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21809 # Work around bugs in pre-3.0 UWIN ksh.
21810 $as_unset ENV MAIL MAILPATH
21817 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21818 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21819 LC_TELEPHONE LC_TIME
21821 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21822 eval $as_var=C; export $as_var
21828 # Required to use basename.
21829 if expr a : '\(a\)' >/dev/null 2>&1; then
21835 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21836 as_basename=basename
21842 # Name of the executable.
21843 as_me=`$as_basename "$0" ||
21844 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21845 X"$0" : 'X\(//\)$' \| \
21846 X"$0" : 'X\(/\)$' \| \
21847 . : '\(.\)' 2>/dev/null ||
21849 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21850 /^X\/\(\/\/\)$/{ s//\1/; q; }
21851 /^X\/\(\/\).*/{ s//\1/; q; }
21855 # PATH needs CR, and LINENO needs CR and PATH.
21856 # Avoid depending upon Character Ranges.
21857 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21858 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21859 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21860 as_cr_digits='0123456789'
21861 as_cr_alnum=$as_cr_Letters$as_cr_digits
21863 # The user is always right.
21864 if test "${PATH_SEPARATOR+set}" != set; then
21865 echo "#! /bin/sh" >conf$$.sh
21866 echo "exit 0" >>conf$$.sh
21868 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21877 as_lineno_1=$LINENO
21878 as_lineno_2=$LINENO
21879 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21880 test "x$as_lineno_1" != "x$as_lineno_2" &&
21881 test "x$as_lineno_3" = "x$as_lineno_2" || {
21882 # Find who we are. Look in the path if we contain no path at all
21885 *[\\/]* ) as_myself=$0 ;;
21886 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21887 for as_dir in $PATH
21890 test -z "$as_dir" && as_dir=.
21891 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21896 # We did not find ourselves, most probably we were run as `sh COMMAND'
21897 # in which case we are not to be found in the path.
21898 if test "x$as_myself" = x; then
21901 if test ! -f "$as_myself"; then
21902 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21903 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21904 { (exit 1); exit 1; }; }
21906 case $CONFIG_SHELL in
21908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21909 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21912 test -z "$as_dir" && as_dir=.
21913 for as_base in sh bash ksh sh5; do
21916 if ("$as_dir/$as_base" -c '
21917 as_lineno_1=$LINENO
21918 as_lineno_2=$LINENO
21919 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21920 test "x$as_lineno_1" != "x$as_lineno_2" &&
21921 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21922 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21923 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21924 CONFIG_SHELL=$as_dir/$as_base
21925 export CONFIG_SHELL
21926 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21934 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21935 # uniformly replaced by the line number. The first 'sed' inserts a
21936 # line-number line before each line; the second 'sed' does the real
21937 # work. The second script uses 'N' to pair each line-number line
21938 # with the numbered line, and appends trailing '-' during
21939 # substitution so that $LINENO is not a special case at line end.
21940 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21941 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21942 sed '=' <$as_myself |
21947 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21950 s,^['$as_cr_digits']*\n,,
21951 ' >$as_me.lineno &&
21952 chmod +x $as_me.lineno ||
21953 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21954 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21955 { (exit 1); exit 1; }; }
21957 # Don't try to exec as it changes $[0], causing all sort of problems
21958 # (the dirname of $[0] is not the place where we might find the
21959 # original and so on. Autoconf is especially sensible to this).
21961 # Exit status is that of the last command.
21966 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21967 *c*,-n*) ECHO_N= ECHO_C='
21969 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21970 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21973 if expr a : '\(a\)' >/dev/null 2>&1; then
21979 rm -f conf$$ conf$$.exe conf$$.file
21981 if ln -s conf$$.file conf$$ 2>/dev/null; then
21982 # We could just check for DJGPP; but this test a) works b) is more generic
21983 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21984 if test -f conf$$.exe; then
21985 # Don't use ln at all; we don't have any links
21990 elif ln conf$$.file conf$$ 2>/dev/null; then
21995 rm -f conf$$ conf$$.exe conf$$.file
21997 if mkdir -p . 2>/dev/null; then
22000 test -d ./-p && rmdir ./-p
22004 as_executable_p="test -f"
22006 # Sed expression to map a string onto a valid CPP name.
22007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22009 # Sed expression to map a string onto a valid variable name.
22010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22014 # We need space, tab and new line, in precisely that order.
22024 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22025 # report actual input values of CONFIG_FILES etc. instead of their
22026 # values after options handling. Logging --version etc. is OK.
22030 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22031 ## Running $as_me. ##
22036 This file was extended by $as_me, which was
22037 generated by GNU Autoconf 2.59. Invocation command line was
22039 CONFIG_FILES = $CONFIG_FILES
22040 CONFIG_HEADERS = $CONFIG_HEADERS
22041 CONFIG_LINKS = $CONFIG_LINKS
22042 CONFIG_COMMANDS = $CONFIG_COMMANDS
22046 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22050 # Files that config.status was made for.
22051 if test -n "$ac_config_files"; then
22052 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22055 if test -n "$ac_config_headers"; then
22056 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22059 if test -n "$ac_config_links"; then
22060 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22063 if test -n "$ac_config_commands"; then
22064 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22067 cat >>$CONFIG_STATUS <<\_ACEOF
22070 \`$as_me' instantiates files from templates according to the
22071 current configuration.
22073 Usage: $0 [OPTIONS] [FILE]...
22075 -h, --help print this help, then exit
22076 -V, --version print version number, then exit
22077 -q, --quiet do not print progress messages
22078 -d, --debug don't remove temporary files
22079 --recheck update $as_me by reconfiguring in the same conditions
22080 --file=FILE[:TEMPLATE]
22081 instantiate the configuration file FILE
22082 --header=FILE[:TEMPLATE]
22083 instantiate the configuration header FILE
22085 Configuration files:
22088 Configuration headers:
22091 Configuration commands:
22094 Report bugs to <bug-autoconf@gnu.org>."
22097 cat >>$CONFIG_STATUS <<_ACEOF
22100 configured by $0, generated by GNU Autoconf 2.59,
22101 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22103 Copyright (C) 2003 Free Software Foundation, Inc.
22104 This config.status script is free software; the Free Software Foundation
22105 gives unlimited permission to copy, distribute and modify it."
22110 cat >>$CONFIG_STATUS <<\_ACEOF
22111 # If no file are specified by the user, then we need to provide default
22112 # value. By we need to know if files were specified by the user.
22118 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22119 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22127 *) # This is not an option, so the user has probably given explicit
22130 ac_need_defaults=false;;
22134 # Handling of the options.
22136 cat >>$CONFIG_STATUS <<\_ACEOF
22137 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22139 --version | --vers* | -V )
22140 echo "$ac_cs_version"; exit 0 ;;
22142 # Conflict between --help and --header
22143 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22144 Try \`$0 --help' for more information." >&5
22145 echo "$as_me: error: ambiguous option: $1
22146 Try \`$0 --help' for more information." >&2;}
22147 { (exit 1); exit 1; }; };;
22148 --help | --hel | -h )
22149 echo "$ac_cs_usage"; exit 0 ;;
22150 --debug | --d* | -d )
22152 --file | --fil | --fi | --f )
22154 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22155 ac_need_defaults=false;;
22156 --header | --heade | --head | --hea )
22158 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22159 ac_need_defaults=false;;
22160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22161 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22164 # This is an error.
22165 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22166 Try \`$0 --help' for more information." >&5
22167 echo "$as_me: error: unrecognized option: $1
22168 Try \`$0 --help' for more information." >&2;}
22169 { (exit 1); exit 1; }; } ;;
22171 *) ac_config_targets="$ac_config_targets $1" ;;
22177 ac_configure_extra_args=
22179 if $ac_cs_silent; then
22181 ac_configure_extra_args="$ac_configure_extra_args --silent"
22185 cat >>$CONFIG_STATUS <<_ACEOF
22186 if \$ac_cs_recheck; then
22187 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22188 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22193 cat >>$CONFIG_STATUS <<_ACEOF
22195 # INIT-COMMANDS section.
22198 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22205 cat >>$CONFIG_STATUS <<\_ACEOF
22206 for ac_config_target in $ac_config_targets
22208 case "$ac_config_target" in
22209 # Handling of arguments.
22210 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22211 "hildon-widgets/Makefile" ) CONFIG_FILES="$CONFIG_FILES hildon-widgets/Makefile" ;;
22212 "timer/Makefile" ) CONFIG_FILES="$CONFIG_FILES timer/Makefile" ;;
22213 "ut/Makefile" ) CONFIG_FILES="$CONFIG_FILES ut/Makefile" ;;
22214 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
22215 "po/porules.mk" ) CONFIG_FILES="$CONFIG_FILES po/porules.mk" ;;
22216 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22217 "hildon-libs.pc" ) CONFIG_FILES="$CONFIG_FILES hildon-libs.pc" ;;
22218 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22219 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
22220 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22221 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22222 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22223 { (exit 1); exit 1; }; };;
22227 # If the user did not use the arguments to specify the items to instantiate,
22228 # then the envvar interface is used. Set only those that are not.
22229 # We use the long form for the default assignment because of an extremely
22230 # bizarre bug on SunOS 4.1.3.
22231 if $ac_need_defaults; then
22232 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22233 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22234 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22237 # Have a temporary directory for convenience. Make it in the build tree
22238 # simply because there is no reason to put it here, and in addition,
22239 # creating and moving files from /tmp can sometimes cause problems.
22240 # Create a temporary directory, and hook for its removal unless debugging.
22243 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22244 trap '{ (exit 1); exit 1; }' 1 2 13 15
22247 # Create a (secure) tmp directory for tmp files.
22250 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22251 test -n "$tmp" && test -d "$tmp"
22254 tmp=./confstat$$-$RANDOM
22255 (umask 077 && mkdir $tmp)
22258 echo "$me: cannot create a temporary directory in ." >&2
22259 { (exit 1); exit 1; }
22264 cat >>$CONFIG_STATUS <<_ACEOF
22267 # CONFIG_FILES section.
22270 # No need to generate the scripts if there are no CONFIG_FILES.
22271 # This happens for instance when ./config.status config.h
22272 if test -n "\$CONFIG_FILES"; then
22273 # Protect against being on the right side of a sed subst in config.status.
22274 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22275 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22276 s,@SHELL@,$SHELL,;t t
22277 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22278 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22279 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22280 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22281 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22282 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22283 s,@exec_prefix@,$exec_prefix,;t t
22284 s,@prefix@,$prefix,;t t
22285 s,@program_transform_name@,$program_transform_name,;t t
22286 s,@bindir@,$bindir,;t t
22287 s,@sbindir@,$sbindir,;t t
22288 s,@libexecdir@,$libexecdir,;t t
22289 s,@datadir@,$datadir,;t t
22290 s,@sysconfdir@,$sysconfdir,;t t
22291 s,@sharedstatedir@,$sharedstatedir,;t t
22292 s,@localstatedir@,$localstatedir,;t t
22293 s,@libdir@,$libdir,;t t
22294 s,@includedir@,$includedir,;t t
22295 s,@oldincludedir@,$oldincludedir,;t t
22296 s,@infodir@,$infodir,;t t
22297 s,@mandir@,$mandir,;t t
22298 s,@build_alias@,$build_alias,;t t
22299 s,@host_alias@,$host_alias,;t t
22300 s,@target_alias@,$target_alias,;t t
22301 s,@DEFS@,$DEFS,;t t
22302 s,@ECHO_C@,$ECHO_C,;t t
22303 s,@ECHO_N@,$ECHO_N,;t t
22304 s,@ECHO_T@,$ECHO_T,;t t
22305 s,@LIBS@,$LIBS,;t t
22306 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22307 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22308 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22309 s,@CYGPATH_W@,$CYGPATH_W,;t t
22310 s,@PACKAGE@,$PACKAGE,;t t
22311 s,@VERSION@,$VERSION,;t t
22312 s,@ACLOCAL@,$ACLOCAL,;t t
22313 s,@AUTOCONF@,$AUTOCONF,;t t
22314 s,@AUTOMAKE@,$AUTOMAKE,;t t
22315 s,@AUTOHEADER@,$AUTOHEADER,;t t
22316 s,@MAKEINFO@,$MAKEINFO,;t t
22317 s,@AMTAR@,$AMTAR,;t t
22318 s,@install_sh@,$install_sh,;t t
22319 s,@STRIP@,$STRIP,;t t
22320 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22321 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22323 s,@SET_MAKE@,$SET_MAKE,;t t
22324 s,@am__leading_dot@,$am__leading_dot,;t t
22325 s,@build@,$build,;t t
22326 s,@build_cpu@,$build_cpu,;t t
22327 s,@build_vendor@,$build_vendor,;t t
22328 s,@build_os@,$build_os,;t t
22329 s,@host@,$host,;t t
22330 s,@host_cpu@,$host_cpu,;t t
22331 s,@host_vendor@,$host_vendor,;t t
22332 s,@host_os@,$host_os,;t t
22334 s,@CFLAGS@,$CFLAGS,;t t
22335 s,@LDFLAGS@,$LDFLAGS,;t t
22336 s,@CPPFLAGS@,$CPPFLAGS,;t t
22337 s,@ac_ct_CC@,$ac_ct_CC,;t t
22338 s,@EXEEXT@,$EXEEXT,;t t
22339 s,@OBJEXT@,$OBJEXT,;t t
22340 s,@DEPDIR@,$DEPDIR,;t t
22341 s,@am__include@,$am__include,;t t
22342 s,@am__quote@,$am__quote,;t t
22343 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22344 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22345 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22346 s,@CCDEPMODE@,$CCDEPMODE,;t t
22347 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22348 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22350 s,@EGREP@,$EGREP,;t t
22351 s,@LN_S@,$LN_S,;t t
22352 s,@ECHO@,$ECHO,;t t
22354 s,@ac_ct_AR@,$ac_ct_AR,;t t
22355 s,@RANLIB@,$RANLIB,;t t
22356 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22358 s,@CXXFLAGS@,$CXXFLAGS,;t t
22359 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22360 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22361 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22362 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22363 s,@CXXCPP@,$CXXCPP,;t t
22365 s,@FFLAGS@,$FFLAGS,;t t
22366 s,@ac_ct_F77@,$ac_ct_F77,;t t
22367 s,@LIBTOOL@,$LIBTOOL,;t t
22368 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22369 s,@OUTO_CFLAGS@,$OUTO_CFLAGS,;t t
22370 s,@OUTO_LIBS@,$OUTO_LIBS,;t t
22371 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22372 s,@GTK_LIBS@,$GTK_LIBS,;t t
22373 s,@GTK_VERSION@,$GTK_VERSION,;t t
22374 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
22375 s,@ESD_LIBS@,$ESD_LIBS,;t t
22376 s,@GNOME_VFS_CFLAGS@,$GNOME_VFS_CFLAGS,;t t
22377 s,@GNOME_VFS_LIBS@,$GNOME_VFS_LIBS,;t t
22378 s,@GCONF_CFLAGS@,$GCONF_CFLAGS,;t t
22379 s,@GCONF_LIBS@,$GCONF_LIBS,;t t
22380 s,@LIBMB_CFLAGS@,$LIBMB_CFLAGS,;t t
22381 s,@LIBMB_LIBS@,$LIBMB_LIBS,;t t
22382 s,@ALL_LINGUAS@,$ALL_LINGUAS,;t t
22383 s,@USE_NLS@,$USE_NLS,;t t
22384 s,@MSGFMT@,$MSGFMT,;t t
22385 s,@GMSGFMT@,$GMSGFMT,;t t
22386 s,@XGETTEXT@,$XGETTEXT,;t t
22387 s,@CATALOGS@,$CATALOGS,;t t
22388 s,@CATOBJEXT@,$CATOBJEXT,;t t
22389 s,@DATADIRNAME@,$DATADIRNAME,;t t
22390 s,@GMOFILES@,$GMOFILES,;t t
22391 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22392 s,@INTLLIBS@,$INTLLIBS,;t t
22393 s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
22394 s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
22395 s,@POFILES@,$POFILES,;t t
22396 s,@POSUB@,$POSUB,;t t
22397 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22398 s,@HTML_DIR@,$HTML_DIR,;t t
22399 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
22400 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
22401 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
22402 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
22403 s,@DOXYGEN_FOUND@,$DOXYGEN_FOUND,;t t
22404 s,@HAVE_DOXYGEN_TRUE@,$HAVE_DOXYGEN_TRUE,;t t
22405 s,@HAVE_DOXYGEN_FALSE@,$HAVE_DOXYGEN_FALSE,;t t
22406 s,@localedir@,$localedir,;t t
22407 s,@outomoduledir@,$outomoduledir,;t t
22408 s,@PERL@,$PERL,;t t
22409 s,@REBUILD@,$REBUILD,;t t
22410 s,@LIBOBJS@,$LIBOBJS,;t t
22411 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22416 cat >>$CONFIG_STATUS <<\_ACEOF
22417 # Split the substitutions into bite-sized pieces for seds with
22418 # small command number limits, like on Digital OSF/1 and HP-UX.
22419 ac_max_sed_lines=48
22420 ac_sed_frag=1 # Number of current file.
22421 ac_beg=1 # First line for current file.
22422 ac_end=$ac_max_sed_lines # Line after last line for current file.
22425 while $ac_more_lines; do
22426 if test $ac_beg -gt 1; then
22427 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22429 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22431 if test ! -s $tmp/subs.frag; then
22432 ac_more_lines=false
22434 # The purpose of the label and of the branching condition is to
22435 # speed up the sed processing (if there are no `@' at all, there
22436 # is no need to browse any of the substitutions).
22437 # These are the two extra sed commands mentioned above.
22439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22440 if test -z "$ac_sed_cmds"; then
22441 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22443 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22445 ac_sed_frag=`expr $ac_sed_frag + 1`
22447 ac_end=`expr $ac_end + $ac_max_sed_lines`
22450 if test -z "$ac_sed_cmds"; then
22453 fi # test -n "$CONFIG_FILES"
22456 cat >>$CONFIG_STATUS <<\_ACEOF
22457 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22458 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22460 - | *:- | *:-:* ) # input from stdin
22462 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22463 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22464 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22465 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22466 * ) ac_file_in=$ac_file.in ;;
22469 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22470 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22471 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22472 X"$ac_file" : 'X\(//\)[^/]' \| \
22473 X"$ac_file" : 'X\(//\)$' \| \
22474 X"$ac_file" : 'X\(/\)' \| \
22475 . : '\(.\)' 2>/dev/null ||
22477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22479 /^X\(\/\/\)$/{ s//\1/; q; }
22480 /^X\(\/\).*/{ s//\1/; q; }
22482 { if $as_mkdir_p; then
22487 while test ! -d "$as_dir"; do
22488 as_dirs="$as_dir $as_dirs"
22489 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22491 X"$as_dir" : 'X\(//\)[^/]' \| \
22492 X"$as_dir" : 'X\(//\)$' \| \
22493 X"$as_dir" : 'X\(/\)' \| \
22494 . : '\(.\)' 2>/dev/null ||
22496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22498 /^X\(\/\/\)$/{ s//\1/; q; }
22499 /^X\(\/\).*/{ s//\1/; q; }
22502 test ! -n "$as_dirs" || mkdir $as_dirs
22503 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22505 { (exit 1); exit 1; }; }; }
22509 if test "$ac_dir" != .; then
22510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22511 # A "../" for each directory in $ac_dir_suffix.
22512 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22514 ac_dir_suffix= ac_top_builddir=
22518 .) # No --srcdir option. We are building in place.
22520 if test -z "$ac_top_builddir"; then
22523 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22525 [\\/]* | ?:[\\/]* ) # Absolute path.
22526 ac_srcdir=$srcdir$ac_dir_suffix;
22527 ac_top_srcdir=$srcdir ;;
22528 *) # Relative path.
22529 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22530 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22533 # Do not use `cd foo && pwd` to compute absolute paths, because
22534 # the directories may not exist.
22536 .) ac_abs_builddir="$ac_dir";;
22539 .) ac_abs_builddir=`pwd`;;
22540 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22541 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22544 case $ac_abs_builddir in
22545 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22547 case ${ac_top_builddir}. in
22548 .) ac_abs_top_builddir=$ac_abs_builddir;;
22549 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22550 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22553 case $ac_abs_builddir in
22554 .) ac_abs_srcdir=$ac_srcdir;;
22557 .) ac_abs_srcdir=$ac_abs_builddir;;
22558 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22559 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22562 case $ac_abs_builddir in
22563 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22565 case $ac_top_srcdir in
22566 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22567 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22568 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22574 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22575 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22578 # Let's still pretend it is `configure' which instantiates (i.e., don't
22579 # use $as_me), people would be surprised to read:
22580 # /* config.h. Generated by config.status. */
22581 if test x"$ac_file" = x-; then
22584 configure_input="$ac_file. "
22586 configure_input=$configure_input"Generated from `echo $ac_file_in |
22587 sed 's,.*/,,'` by configure."
22589 # First look for the input files in the build tree, otherwise in the
22591 ac_file_inputs=`IFS=:
22592 for f in $ac_file_in; do
22594 -) echo $tmp/stdin ;;
22596 # Absolute (can't be DOS-style, as IFS=:)
22597 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22598 echo "$as_me: error: cannot find input file: $f" >&2;}
22599 { (exit 1); exit 1; }; }
22602 if test -f "$f"; then
22605 elif test -f "$srcdir/$f"; then
22610 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22611 echo "$as_me: error: cannot find input file: $f" >&2;}
22612 { (exit 1); exit 1; }; }
22615 done` || { (exit 1); exit 1; }
22617 if test x"$ac_file" != x-; then
22618 { echo "$as_me:$LINENO: creating $ac_file" >&5
22619 echo "$as_me: creating $ac_file" >&6;}
22623 cat >>$CONFIG_STATUS <<_ACEOF
22627 cat >>$CONFIG_STATUS <<\_ACEOF
22629 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22630 s,@configure_input@,$configure_input,;t t
22631 s,@srcdir@,$ac_srcdir,;t t
22632 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22633 s,@top_srcdir@,$ac_top_srcdir,;t t
22634 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22635 s,@builddir@,$ac_builddir,;t t
22636 s,@abs_builddir@,$ac_abs_builddir,;t t
22637 s,@top_builddir@,$ac_top_builddir,;t t
22638 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22639 s,@INSTALL@,$ac_INSTALL,;t t
22640 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22642 if test x"$ac_file" != x-; then
22643 mv $tmp/out $ac_file
22651 cat >>$CONFIG_STATUS <<\_ACEOF
22654 # CONFIG_HEADER section.
22657 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22658 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22660 # ac_d sets the value in "#define NAME VALUE" lines.
22661 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22662 ac_dB='[ ].*$,\1#\2'
22665 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22666 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22667 ac_uB='$,\1#\2define\3'
22671 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22672 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22674 - | *:- | *:-:* ) # input from stdin
22676 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22677 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22678 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22679 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22680 * ) ac_file_in=$ac_file.in ;;
22683 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22684 echo "$as_me: creating $ac_file" >&6;}
22686 # First look for the input files in the build tree, otherwise in the
22688 ac_file_inputs=`IFS=:
22689 for f in $ac_file_in; do
22691 -) echo $tmp/stdin ;;
22693 # Absolute (can't be DOS-style, as IFS=:)
22694 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22695 echo "$as_me: error: cannot find input file: $f" >&2;}
22696 { (exit 1); exit 1; }; }
22697 # Do quote $f, to prevent DOS paths from being IFS'd.
22700 if test -f "$f"; then
22703 elif test -f "$srcdir/$f"; then
22708 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22709 echo "$as_me: error: cannot find input file: $f" >&2;}
22710 { (exit 1); exit 1; }; }
22713 done` || { (exit 1); exit 1; }
22714 # Remove the trailing spaces.
22715 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22719 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22720 # `conftest.undefs', that substitutes the proper values into
22721 # config.h.in to produce config.h. The first handles `#define'
22722 # templates, and the second `#undef' templates.
22723 # And first: Protect against being on the right side of a sed subst in
22724 # config.status. Protect against being in an unquoted here document
22725 # in config.status.
22726 rm -f conftest.defines conftest.undefs
22727 # Using a here document instead of a string reduces the quoting nightmare.
22728 # Putting comments in sed scripts is not portable.
22730 # `end' is used to avoid that the second main sed command (meant for
22731 # 0-ary CPP macros) applies to n-ary macro definitions.
22732 # See the Autoconf documentation for `clear'.
22733 cat >confdef2sed.sed <<\_ACEOF
22738 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22740 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22743 # If some macros were called several times there might be several times
22744 # the same #defines, which is useless. Nevertheless, we may not want to
22745 # sort them, since we want the *last* AC-DEFINE to be honored.
22746 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22747 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22748 rm -f confdef2sed.sed
22750 # This sed command replaces #undef with comments. This is necessary, for
22751 # example, in the case of _POSIX_SOURCE, which is predefined and required
22752 # on some systems where configure will not decide to define it.
22753 cat >>conftest.undefs <<\_ACEOF
22754 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22757 # Break up conftest.defines because some shells have a limit on the size
22758 # of here documents, and old seds have small limits too (100 cmds).
22759 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22760 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22761 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22762 echo ' :' >>$CONFIG_STATUS
22763 rm -f conftest.tail
22764 while grep . conftest.defines >/dev/null
22766 # Write a limited-size here document to $tmp/defines.sed.
22767 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22768 # Speed up: don't consider the non `#define' lines.
22769 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22770 # Work around the forget-to-reset-the-flag bug.
22771 echo 't clr' >>$CONFIG_STATUS
22772 echo ': clr' >>$CONFIG_STATUS
22773 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22775 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22777 mv $tmp/out $tmp/in
22779 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22780 rm -f conftest.defines
22781 mv conftest.tail conftest.defines
22783 rm -f conftest.defines
22784 echo ' fi # grep' >>$CONFIG_STATUS
22785 echo >>$CONFIG_STATUS
22787 # Break up conftest.undefs because some shells have a limit on the size
22788 # of here documents, and old seds have small limits too (100 cmds).
22789 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22790 rm -f conftest.tail
22791 while grep . conftest.undefs >/dev/null
22793 # Write a limited-size here document to $tmp/undefs.sed.
22794 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22795 # Speed up: don't consider the non `#undef'
22796 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22797 # Work around the forget-to-reset-the-flag bug.
22798 echo 't clr' >>$CONFIG_STATUS
22799 echo ': clr' >>$CONFIG_STATUS
22800 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22802 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22804 mv $tmp/out $tmp/in
22806 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22807 rm -f conftest.undefs
22808 mv conftest.tail conftest.undefs
22810 rm -f conftest.undefs
22812 cat >>$CONFIG_STATUS <<\_ACEOF
22813 # Let's still pretend it is `configure' which instantiates (i.e., don't
22814 # use $as_me), people would be surprised to read:
22815 # /* config.h. Generated by config.status. */
22816 if test x"$ac_file" = x-; then
22817 echo "/* Generated by configure. */" >$tmp/config.h
22819 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22821 cat $tmp/in >>$tmp/config.h
22823 if test x"$ac_file" != x-; then
22824 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22825 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22826 echo "$as_me: $ac_file is unchanged" >&6;}
22828 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22830 X"$ac_file" : 'X\(//\)[^/]' \| \
22831 X"$ac_file" : 'X\(//\)$' \| \
22832 X"$ac_file" : 'X\(/\)' \| \
22833 . : '\(.\)' 2>/dev/null ||
22835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22837 /^X\(\/\/\)$/{ s//\1/; q; }
22838 /^X\(\/\).*/{ s//\1/; q; }
22840 { if $as_mkdir_p; then
22845 while test ! -d "$as_dir"; do
22846 as_dirs="$as_dir $as_dirs"
22847 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22849 X"$as_dir" : 'X\(//\)[^/]' \| \
22850 X"$as_dir" : 'X\(//\)$' \| \
22851 X"$as_dir" : 'X\(/\)' \| \
22852 . : '\(.\)' 2>/dev/null ||
22854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22856 /^X\(\/\/\)$/{ s//\1/; q; }
22857 /^X\(\/\).*/{ s//\1/; q; }
22860 test ! -n "$as_dirs" || mkdir $as_dirs
22861 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22863 { (exit 1); exit 1; }; }; }
22866 mv $tmp/config.h $ac_file
22870 rm -f $tmp/config.h
22872 # Compute $ac_file's index in $config_headers.
22874 for _am_header in $config_headers :; do
22875 case $_am_header in
22876 $ac_file | $ac_file:* )
22879 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22882 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22883 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22884 X$ac_file : 'X\(//\)[^/]' \| \
22885 X$ac_file : 'X\(//\)$' \| \
22886 X$ac_file : 'X\(/\)' \| \
22887 . : '\(.\)' 2>/dev/null ||
22889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22891 /^X\(\/\/\)$/{ s//\1/; q; }
22892 /^X\(\/\).*/{ s//\1/; q; }
22893 s/.*/./; q'`/stamp-h$_am_stamp_count
22896 cat >>$CONFIG_STATUS <<\_ACEOF
22899 # CONFIG_COMMANDS section.
22901 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22902 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22903 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22904 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22905 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22906 X"$ac_dest" : 'X\(//\)[^/]' \| \
22907 X"$ac_dest" : 'X\(//\)$' \| \
22908 X"$ac_dest" : '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; }
22916 { if $as_mkdir_p; then
22921 while test ! -d "$as_dir"; do
22922 as_dirs="$as_dir $as_dirs"
22923 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22925 X"$as_dir" : 'X\(//\)[^/]' \| \
22926 X"$as_dir" : 'X\(//\)$' \| \
22927 X"$as_dir" : 'X\(/\)' \| \
22928 . : '\(.\)' 2>/dev/null ||
22930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22932 /^X\(\/\/\)$/{ s//\1/; q; }
22933 /^X\(\/\).*/{ s//\1/; q; }
22936 test ! -n "$as_dirs" || mkdir $as_dirs
22937 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22938 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22939 { (exit 1); exit 1; }; }; }
22943 if test "$ac_dir" != .; then
22944 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22945 # A "../" for each directory in $ac_dir_suffix.
22946 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22948 ac_dir_suffix= ac_top_builddir=
22952 .) # No --srcdir option. We are building in place.
22954 if test -z "$ac_top_builddir"; then
22957 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22959 [\\/]* | ?:[\\/]* ) # Absolute path.
22960 ac_srcdir=$srcdir$ac_dir_suffix;
22961 ac_top_srcdir=$srcdir ;;
22962 *) # Relative path.
22963 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22964 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22967 # Do not use `cd foo && pwd` to compute absolute paths, because
22968 # the directories may not exist.
22970 .) ac_abs_builddir="$ac_dir";;
22973 .) ac_abs_builddir=`pwd`;;
22974 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22975 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22978 case $ac_abs_builddir in
22979 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22981 case ${ac_top_builddir}. in
22982 .) ac_abs_top_builddir=$ac_abs_builddir;;
22983 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22984 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22987 case $ac_abs_builddir in
22988 .) ac_abs_srcdir=$ac_srcdir;;
22991 .) ac_abs_srcdir=$ac_abs_builddir;;
22992 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22993 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22996 case $ac_abs_builddir in
22997 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22999 case $ac_top_srcdir in
23000 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23001 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23002 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23007 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23008 echo "$as_me: executing $ac_dest commands" >&6;}
23010 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23011 # Strip MF so we end up with the name of the file.
23012 mf=`echo "$mf" | sed -e 's/:.*$//'`
23013 # Check whether this is an Automake generated Makefile or not.
23014 # We used to match only the files named `Makefile.in', but
23015 # some people rename them; so instead we look at the file content.
23016 # Grep'ing the first line is not enough: some people post-process
23017 # each Makefile.in and add a new line on top of each file to say so.
23018 # So let's grep whole file.
23019 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23020 dirpart=`(dirname "$mf") 2>/dev/null ||
23021 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23022 X"$mf" : 'X\(//\)[^/]' \| \
23023 X"$mf" : 'X\(//\)$' \| \
23024 X"$mf" : 'X\(/\)' \| \
23025 . : '\(.\)' 2>/dev/null ||
23027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23029 /^X\(\/\/\)$/{ s//\1/; q; }
23030 /^X\(\/\).*/{ s//\1/; q; }
23035 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23036 # Extract the definition of DEP_FILES from the Makefile without
23038 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
23039 test -z "$DEPDIR" && continue
23040 # When using ansi2knr, U may be empty or an underscore; expand it
23041 U=`sed -n -e '/^U = / s///p' < "$mf"`
23042 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23043 # We invoke sed twice because it is the simplest approach to
23044 # changing $(DEPDIR) to its actual value in the expansion.
23045 for file in `sed -n -e '
23046 /^DEP_FILES = .*\\\\$/ {
23055 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23056 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23057 # Make sure the directory exists.
23058 test -f "$dirpart/$file" && continue
23059 fdir=`(dirname "$file") 2>/dev/null ||
23060 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23061 X"$file" : 'X\(//\)[^/]' \| \
23062 X"$file" : 'X\(//\)$' \| \
23063 X"$file" : 'X\(/\)' \| \
23064 . : '\(.\)' 2>/dev/null ||
23066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23068 /^X\(\/\/\)$/{ s//\1/; q; }
23069 /^X\(\/\).*/{ s//\1/; q; }
23071 { if $as_mkdir_p; then
23072 mkdir -p $dirpart/$fdir
23074 as_dir=$dirpart/$fdir
23076 while test ! -d "$as_dir"; do
23077 as_dirs="$as_dir $as_dirs"
23078 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23080 X"$as_dir" : 'X\(//\)[^/]' \| \
23081 X"$as_dir" : 'X\(//\)$' \| \
23082 X"$as_dir" : 'X\(/\)' \| \
23083 . : '\(.\)' 2>/dev/null ||
23085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23087 /^X\(\/\/\)$/{ s//\1/; q; }
23088 /^X\(\/\).*/{ s//\1/; q; }
23091 test ! -n "$as_dirs" || mkdir $as_dirs
23092 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23093 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23094 { (exit 1); exit 1; }; }; }
23096 # echo "creating $dirpart/$file"
23097 echo '# dummy' > "$dirpart/$file"
23101 default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
23102 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
23108 cat >>$CONFIG_STATUS <<\_ACEOF
23110 { (exit 0); exit 0; }
23112 chmod +x $CONFIG_STATUS
23113 ac_clean_files=$ac_clean_files_save
23116 # configure is writing to config.log, and then calls config.status.
23117 # config.status does its own redirection, appending to config.log.
23118 # Unfortunately, on DOS this fails, as config.log is still kept open
23119 # by configure, so config.status won't be able to write to it; its
23120 # output is simply discarded. So we exec the FD to /dev/null,
23121 # effectively closing config.log, so it can be properly (re)opened and
23122 # appended to by config.status. When coming back to configure, we
23123 # need to make the FD available again.
23124 if test "$no_create" != yes; then
23126 ac_config_status_args=
23127 test "$silent" = yes &&
23128 ac_config_status_args="$ac_config_status_args --quiet"
23130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23133 # would make configure fail if this is the last instruction.
23134 $ac_cs_success || { (exit 1); exit 1; }