2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
243 # Find the correct PATH separator. Usually this is `:', but
244 # DJGPP uses `;' like DOS.
245 if test "X${PATH_SEPARATOR+set}" != Xset; then
246 UNAME=${UNAME-`uname 2>/dev/null`}
248 *-DOS) lt_cv_sys_path_separator=';' ;;
249 *) lt_cv_sys_path_separator=':' ;;
251 PATH_SEPARATOR=$lt_cv_sys_path_separator
255 # Check that we are running under the correct shell.
256 SHELL=${CONFIG_SHELL-/bin/sh}
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
266 if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
269 elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
272 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
280 if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
289 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293 if test -z "$ECHO"; then
294 if test "X${echo_test_string+set}" != Xset; then
295 # find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
307 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
316 # So, first we look for a working echo in the user's PATH.
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running configure again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
368 # maybe with a smaller string...
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384 # Oops. We lost completely, so just stick with echo.
393 # Copy echo and quote the copy suitably for passing to libtool from
394 # the Makefile, instead of quoting the original, which is used later.
396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
432 # Factoring default headers for most tests.
433 ac_includes_default="\
436 # include <sys/types.h>
439 # include <sys/stat.h>
450 # if !STDC_HEADERS && HAVE_MEMORY_H
456 # include <strings.h>
459 # include <inttypes.h>
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION EXEEXT OBJEXT ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM AWK SET_MAKE AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH DEPDIR build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC am__include am__quote CCDEPMODE LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP CXXWARNING_FLAGS PERL_PROG BUILD_APIDOCS HTML_DIR EXPAT_LIBS sabcfg_types_h ICONV_LIB has_perl OTHER_LIBS LIBOBJS LTLIBOBJS'
472 # Initialize some variables set by options.
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
484 program_transform_name=s,x,x,
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
587 -help | --help | --hel | --he | -h)
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 # Obsolete; use --without-fp.
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
717 -site=* | --site=* | --sit=*)
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 -version | --version | --versio | --versi | --vers | -V)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
766 # Obsolete; use --with-x.
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
879 if test ! -r $srcdir/$ac_unique_file; then
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
944 # Report the --help message.
946 if test "$ac_init_help" = "long"; then
947 # Omit some internal or obsolete options to make the list less imposing.
948 # This message is too long to be a string in the A/UX 3.1 sh.
950 \`configure' configures this package to adapt to many kinds of systems.
952 Usage: $0 [OPTION]... [VAR=VALUE]...
954 To assign environment variables (e.g., CC, CFLAGS...), specify them as
955 VAR=VALUE. See below for descriptions of some of the useful variables.
957 Defaults for the options are specified in brackets.
960 -h, --help display this help and exit
961 --help=short display options specific to this package
962 --help=recursive display the short help of all the included packages
963 -V, --version display version information and exit
964 -q, --quiet, --silent do not print \`checking...' messages
965 --cache-file=FILE cache test results in FILE [disabled]
966 -C, --config-cache alias for \`--cache-file=config.cache'
967 -n, --no-create do not create output files
968 --srcdir=DIR find the sources in DIR [configure dir or \`..']
973 Installation directories:
974 --prefix=PREFIX install architecture-independent files in PREFIX
976 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
979 By default, \`make install' will install all the files in
980 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
981 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
982 for instance \`--prefix=\$HOME'.
984 For better control, use the options below.
986 Fine tuning of the installation directories:
987 --bindir=DIR user executables [EPREFIX/bin]
988 --sbindir=DIR system admin executables [EPREFIX/sbin]
989 --libexecdir=DIR program executables [EPREFIX/libexec]
990 --datadir=DIR read-only architecture-independent data [PREFIX/share]
991 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
992 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
993 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
994 --libdir=DIR object code libraries [EPREFIX/lib]
995 --includedir=DIR C header files [PREFIX/include]
996 --oldincludedir=DIR C header files for non-gcc [/usr/include]
997 --infodir=DIR info documentation [PREFIX/info]
998 --mandir=DIR man documentation [PREFIX/man]
1004 --program-prefix=PREFIX prepend PREFIX to installed program names
1005 --program-suffix=SUFFIX append SUFFIX to installed program names
1006 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1009 --build=BUILD configure for building on BUILD [guessed]
1010 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 if test -n "$ac_init_help"; then
1019 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1020 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1021 --disable-dependency-tracking Speeds up one-time builds
1022 --enable-dependency-tracking Do not reject slow dependency extractors
1023 --enable-shared=PKGS build shared libraries default=yes
1024 --enable-static=PKGS build static libraries default=yes
1025 --enable-fast-install=PKGS optimize for fast installation default=yes
1026 --disable-libtool-lock avoid locking (might break parallel builds)
1027 --enable-warnings display all warning while compiling
1028 --enable-abort-on-error abort processor on XSLT error
1029 --disable-adding-meta do not output the META html tag
1030 --disable-document-errors ignore errors in the document() function
1031 --enable-javascript enable JavaScript extensions (e.g. exslt.org)
1032 --enable-perlconnect enable JS engine perlconnect)
1033 --enable-iconv-typecast typecast the second parameter of iconv to char**
1034 --enable-check-leaks enable memory leak checking (optional)
1035 --disable-dom disable the DOM interface (smaller)
1036 --enable-debugger enable xslt debugger
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 both
1043 --with-js-prefix=DIR set alternate JavaScript prefix
1044 --with-expat-prefix=DIR set alternate expat prefix
1045 --with-iconv-prefix=DIR set alternate iconv prefix
1046 --with-perl=PATH use perl binary to install apidocs
1047 --with-html-dir=DIR path to install HTML documentation (defaults to docdir)
1048 --with-readline use the GNU readline in the debugger
1050 Some influential environment variables:
1051 CC C compiler command
1052 CFLAGS C compiler flags
1053 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1054 nonstandard directory <lib dir>
1055 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056 headers in a nonstandard directory <include dir>
1058 CXX C++ compiler command
1059 CXXFLAGS C++ compiler flags
1060 CXXCPP C++ preprocessor
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 ;;
1098 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1100 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1101 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1102 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1103 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1106 # Check for guested configure; otherwise get Cygnus style configure.
1107 if test -f $ac_srcdir/configure.gnu; then
1109 $SHELL $ac_srcdir/configure.gnu --help=recursive
1110 elif test -f $ac_srcdir/configure; then
1112 $SHELL $ac_srcdir/configure --help=recursive
1113 elif test -f $ac_srcdir/configure.ac ||
1114 test -f $ac_srcdir/configure.in; then
1116 $ac_configure --help
1118 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1124 test -n "$ac_init_help" && exit 0
1125 if $ac_init_version; then
1128 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1129 Free Software Foundation, Inc.
1130 This configure script is free software; the Free Software Foundation
1131 gives unlimited permission to copy, distribute and modify it.
1137 This file contains any messages produced by compilers while
1138 running configure, to aid debugging if configure makes a mistake.
1140 It was created by $as_me, which was
1141 generated by GNU Autoconf 2.57. Invocation command line was
1152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1159 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1162 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1164 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1165 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1166 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1167 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1175 test -z "$as_dir" && as_dir=.
1176 echo "PATH: $as_dir"
1191 # Keep a trace of the command line.
1192 # Strip out --no-create and --no-recursion so they do not pile up.
1193 # Strip out --silent because we don't want to record it for future runs.
1194 # Also quote any args containing shell meta-characters.
1195 # Make two passes to allow for proper duplicate-argument suppression.
1200 ac_must_keep_next=false
1206 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208 | -silent | --silent | --silen | --sile | --sil)
1210 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1211 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1214 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1217 if test $ac_must_keep_next = true; then
1218 ac_must_keep_next=false # Got value, back to normal.
1221 *=* | --config-cache | -C | -disable-* | --disable-* \
1222 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1223 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1224 | -with-* | --with-* | -without-* | --without-* | --x)
1225 case "$ac_configure_args0 " in
1226 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1229 -* ) ac_must_keep_next=true ;;
1232 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1233 # Get rid of the leading space.
1239 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1240 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242 # When interrupted or exit'd, cleanup temporary files, and complete
1243 # config.log. We remove comments because anyway the quotes in there
1244 # would cause problems or look ugly.
1245 # WARNING: Be sure not to use single quotes in there, as some shells,
1246 # such as our DU 5.0 friend, will then `close' the trap.
1247 trap 'exit_status=$?
1248 # Save into config.log some information that might help in debugging.
1253 ## ---------------- ##
1254 ## Cache variables. ##
1255 ## ---------------- ##
1258 # The following way of writing the cache mishandles newlines in values,
1261 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1264 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1265 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1269 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1276 ## ----------------- ##
1277 ## Output variables. ##
1278 ## ----------------- ##
1281 for ac_var in $ac_subst_vars
1283 eval ac_val=$`echo $ac_var`
1284 echo "$ac_var='"'"'$ac_val'"'"'"
1288 if test -n "$ac_subst_files"; then
1295 for ac_var in $ac_subst_files
1297 eval ac_val=$`echo $ac_var`
1298 echo "$ac_var='"'"'$ac_val'"'"'"
1303 if test -s confdefs.h; then
1310 sed "/^$/d" confdefs.h | sort
1313 test "$ac_signal" != 0 &&
1314 echo "$as_me: caught signal $ac_signal"
1315 echo "$as_me: exit $exit_status"
1317 rm -f core core.* *.core &&
1318 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1321 for ac_signal in 1 2 13 15; do
1322 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1326 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1327 rm -rf conftest* confdefs.h
1328 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1331 # Predefined preprocessor variables.
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_NAME "$PACKAGE_NAME"
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_STRING "$PACKAGE_STRING"
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1358 # Let the site file select an alternate cache file if it wants to.
1359 # Prefer explicitly selected file to automatically selected ones.
1360 if test -z "$CONFIG_SITE"; then
1361 if test "x$prefix" != xNONE; then
1362 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1367 for ac_site_file in $CONFIG_SITE; do
1368 if test -r "$ac_site_file"; then
1369 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1370 echo "$as_me: loading site script $ac_site_file" >&6;}
1371 sed 's/^/| /' "$ac_site_file" >&5
1376 if test -r "$cache_file"; then
1377 # Some versions of bash will fail to source /dev/null (special
1378 # files actually), so we avoid doing that.
1379 if test -f "$cache_file"; then
1380 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1381 echo "$as_me: loading cache $cache_file" >&6;}
1383 [\\/]* | ?:[\\/]* ) . $cache_file;;
1384 *) . ./$cache_file;;
1388 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1389 echo "$as_me: creating cache $cache_file" >&6;}
1393 # Check that the precious variables saved in the cache have kept the same
1395 ac_cache_corrupted=false
1396 for ac_var in `(set) 2>&1 |
1397 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1398 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1399 eval ac_new_set=\$ac_env_${ac_var}_set
1400 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1401 eval ac_new_val="\$ac_env_${ac_var}_value"
1402 case $ac_old_set,$ac_new_set in
1404 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1405 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1406 ac_cache_corrupted=: ;;
1408 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1409 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1410 ac_cache_corrupted=: ;;
1413 if test "x$ac_old_val" != "x$ac_new_val"; then
1414 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1415 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1416 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1417 echo "$as_me: former value: $ac_old_val" >&2;}
1418 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1419 echo "$as_me: current value: $ac_new_val" >&2;}
1420 ac_cache_corrupted=:
1423 # Pass precious variables to config.status.
1424 if test "$ac_new_set" = set; then
1426 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1427 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1428 *) ac_arg=$ac_var=$ac_new_val ;;
1430 case " $ac_configure_args " in
1431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1432 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436 if $ac_cache_corrupted; then
1437 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1438 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1439 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1440 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1441 { (exit 1); exit 1; }; }
1445 ac_cpp='$CPP $CPPFLAGS'
1446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1475 for ac_dir in tools $srcdir/tools; do
1476 if test -f $ac_dir/install-sh; then
1478 ac_install_sh="$ac_aux_dir/install-sh -c"
1480 elif test -f $ac_dir/install.sh; then
1482 ac_install_sh="$ac_aux_dir/install.sh -c"
1484 elif test -f $ac_dir/shtool; then
1486 ac_install_sh="$ac_aux_dir/shtool install -c"
1490 if test -z "$ac_aux_dir"; then
1491 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1492 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1493 { (exit 1); exit 1; }; }
1495 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1496 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1497 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1500 # Find a good install program. We prefer a C program (faster),
1501 # so one script is as good as another. But avoid the broken or
1502 # incompatible versions:
1503 # SysV /etc/install, /usr/sbin/install
1504 # SunOS /usr/etc/install
1505 # IRIX /sbin/install
1507 # AmigaOS /C/install, which installs bootblocks on floppy discs
1508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1511 # ./install, which can be erroneously created by make from ./install.sh.
1512 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1513 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1514 if test -z "$INSTALL"; then
1515 if test "${ac_cv_path_install+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 test -z "$as_dir" && as_dir=.
1523 # Account for people who put trailing slashes in PATH elements.
1525 ./ | .// | /cC/* | \
1526 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1529 # OSF1 and SCO ODT 3.0 have their own names for install.
1530 # Don't use installbsd from OSF since it installs stuff as root
1532 for ac_prog in ginstall scoinst install; do
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1535 if test $ac_prog = install &&
1536 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1537 # AIX install. It has an incompatible calling convention.
1539 elif test $ac_prog = install &&
1540 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1541 # program-specific install script used by HP pwplus--don't use.
1544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1556 if test "${ac_cv_path_install+set}" = set; then
1557 INSTALL=$ac_cv_path_install
1559 # As a last resort, use the slow shell script. We don't cache a
1560 # path for INSTALL within a source directory, because that will
1561 # break other packages using the cache if that directory is
1562 # removed, or if the path is relative.
1563 INSTALL=$ac_install_sh
1566 echo "$as_me:$LINENO: result: $INSTALL" >&5
1567 echo "${ECHO_T}$INSTALL" >&6
1569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1570 # It thinks the first close brace ends the variable substitution.
1571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1577 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1578 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1581 echo timestamp > conftest.file
1582 # Do `set' in a subshell so we don't clobber the current shell's
1583 # arguments. Must try -L first in case configure is actually a
1584 # symlink; some systems play weird games with the mod time of symlinks
1585 # (eg FreeBSD returns the mod time of the symlink's containing
1588 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1589 if test "$*" = "X"; then
1591 set X `ls -t $srcdir/configure conftest.file`
1594 if test "$*" != "X $srcdir/configure conftest.file" \
1595 && test "$*" != "X conftest.file $srcdir/configure"; then
1597 # If neither matched, then we have a broken ls. This can happen
1598 # if, for instance, CONFIG_SHELL is bash and it inherits a
1599 # broken ls alias from the environment. This has actually
1600 # happened. Such a system could not be considered "sane".
1601 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1602 alias in your environment" >&5
1603 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1604 alias in your environment" >&2;}
1605 { (exit 1); exit 1; }; }
1608 test "$2" = conftest.file
1614 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1615 Check your system clock" >&5
1616 echo "$as_me: error: newly created file is older than distributed files!
1617 Check your system clock" >&2;}
1618 { (exit 1); exit 1; }; }
1620 echo "$as_me:$LINENO: result: yes" >&5
1621 echo "${ECHO_T}yes" >&6
1622 test "$program_prefix" != NONE &&
1623 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1624 # Use a double $ so make ignores it.
1625 test "$program_suffix" != NONE &&
1626 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1627 # Double any \ or $. echo might interpret backslashes.
1628 # By default was `s,x,x', remove it if useless.
1629 cat <<\_ACEOF >conftest.sed
1630 s/[\\$]/&&/g;s/;s,x,x,$//
1632 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1636 # expand $ac_aux_dir to an absolute path
1637 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1639 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1640 # Use eval to expand $SHELL
1641 if eval "$MISSING --run true"; then
1642 am_missing_run="$MISSING --run "
1646 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1647 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1650 for ac_prog in gawk mawk nawk awk
1652 # Extract the first word of "$ac_prog", so it can be a program name with args.
1653 set dummy $ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_AWK+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 if test -n "$AWK"; then
1660 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_AWK="$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 if test -n "$AWK"; then
1680 echo "$as_me:$LINENO: result: $AWK" >&5
1681 echo "${ECHO_T}$AWK" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 test -n "$AWK" && break
1690 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1691 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1692 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1693 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 cat >conftest.make <<\_ACEOF
1698 @echo 'ac_maketemp="$(MAKE)"'
1700 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1701 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1702 if test -n "$ac_maketemp"; then
1703 eval ac_cv_prog_make_${ac_make}_set=yes
1705 eval ac_cv_prog_make_${ac_make}_set=no
1709 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1710 echo "$as_me:$LINENO: result: yes" >&5
1711 echo "${ECHO_T}yes" >&6
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1716 SET_MAKE="MAKE=${MAKE-make}"
1719 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1720 if test "${enable_dependency_tracking+set}" = set; then
1721 enableval="$enable_dependency_tracking"
1724 if test "x$enable_dependency_tracking" != xno; then
1725 am_depcomp="$ac_aux_dir/depcomp"
1730 if test "x$enable_dependency_tracking" != xno; then
1741 rm -f .deps 2>/dev/null
1742 mkdir .deps 2>/dev/null
1743 if test -d .deps; then
1746 # MS-DOS does not allow filenames that begin with a dot.
1749 rmdir .deps 2>/dev/null
1752 # test to see if srcdir already configured
1753 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1754 test -f $srcdir/config.status; then
1755 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1756 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1757 { (exit 1); exit 1; }; }
1760 # Define the identity of the package.
1762 VERSION=$PKG_VERSION
1765 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1766 # the ones we care about.
1768 # Autoconf 2.50 always computes EXEEXT. However we need to be
1769 # compatible with 2.13, for now. So we always define EXEEXT, but we
1772 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1773 # requests that it be used. This is a bit dumb.
1777 # Some tools Automake needs.
1779 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1782 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1785 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1788 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1791 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1794 AMTAR=${AMTAR-"${am_missing_run}tar"}
1796 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1798 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1800 # We need awk for the "check" target. The system "awk" is bad on
1806 ac_config_headers="$ac_config_headers autocfg/config.h:autocfg/config.h.in"
1809 # Check whether --enable-shared or --disable-shared was given.
1810 if test "${enable_shared+set}" = set; then
1811 enableval="$enable_shared"
1812 p=${PACKAGE-default}
1814 yes) enable_shared=yes ;;
1815 no) enable_shared=no ;;
1818 # Look at the argument we got. We use all the common list separators.
1819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1820 for pkg in $enableval; do
1821 if test "X$pkg" = "X$p"; then
1831 # Check whether --enable-static or --disable-static was given.
1832 if test "${enable_static+set}" = set; then
1833 enableval="$enable_static"
1834 p=${PACKAGE-default}
1836 yes) enable_static=yes ;;
1837 no) enable_static=no ;;
1840 # Look at the argument we got. We use all the common list separators.
1841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1842 for pkg in $enableval; do
1843 if test "X$pkg" = "X$p"; then
1853 # Check whether --enable-fast-install or --disable-fast-install was given.
1854 if test "${enable_fast_install+set}" = set; then
1855 enableval="$enable_fast_install"
1856 p=${PACKAGE-default}
1858 yes) enable_fast_install=yes ;;
1859 no) enable_fast_install=no ;;
1861 enable_fast_install=no
1862 # Look at the argument we got. We use all the common list separators.
1863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1864 for pkg in $enableval; do
1865 if test "X$pkg" = "X$p"; then
1866 enable_fast_install=yes
1873 enable_fast_install=yes
1875 # Make sure we can run config.sub.
1876 $ac_config_sub sun4 >/dev/null 2>&1 ||
1877 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1878 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1879 { (exit 1); exit 1; }; }
1881 echo "$as_me:$LINENO: checking build system type" >&5
1882 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1883 if test "${ac_cv_build+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 ac_cv_build_alias=$build_alias
1887 test -z "$ac_cv_build_alias" &&
1888 ac_cv_build_alias=`$ac_config_guess`
1889 test -z "$ac_cv_build_alias" &&
1890 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1891 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1892 { (exit 1); exit 1; }; }
1893 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1894 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1895 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1896 { (exit 1); exit 1; }; }
1899 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1900 echo "${ECHO_T}$ac_cv_build" >&6
1902 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1903 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1904 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1907 echo "$as_me:$LINENO: checking host system type" >&5
1908 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1909 if test "${ac_cv_host+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 ac_cv_host_alias=$host_alias
1913 test -z "$ac_cv_host_alias" &&
1914 ac_cv_host_alias=$ac_cv_build_alias
1915 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1916 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1917 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1918 { (exit 1); exit 1; }; }
1921 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1922 echo "${ECHO_T}$ac_cv_host" >&6
1924 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1925 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1926 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1930 ac_config_commands="$ac_config_commands default-1"
1932 am_make=${MAKE-make}
1933 cat > confinc << 'END'
1937 # If we don't find an include directive, just comment out the code.
1938 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1939 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1943 # First try GNU make style include.
1944 echo "include confinc" > confmf
1945 # We grep out `Entering directory' and `Leaving directory'
1946 # messages which can occur if `w' ends up in MAKEFLAGS.
1947 # In particular we don't look at `^make:' because GNU make might
1948 # be invoked under some other name (usually "gmake"), in which
1949 # case it prints its new name instead of `make'.
1950 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1955 # Now try BSD make style include.
1956 if test "$am__include" = "#"; then
1957 echo '.include "confinc"' > confmf
1958 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1959 am__include=.include
1966 echo "$as_me:$LINENO: result: $_am_result" >&5
1967 echo "${ECHO_T}$_am_result" >&6
1968 rm -f confinc confmf
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1977 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 if test -n "$CC"; then
2004 echo "$as_me:$LINENO: result: $CC" >&5
2005 echo "${ECHO_T}$CC" >&6
2007 echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2012 if test -z "$ac_cv_prog_CC"; then
2014 # Extract the first word of "gcc", so it can be a program name with args.
2015 set dummy gcc; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test -n "$ac_ct_CC"; then
2022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031 ac_cv_prog_ac_ct_CC="gcc"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2041 if test -n "$ac_ct_CC"; then
2042 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2043 echo "${ECHO_T}$ac_ct_CC" >&6
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2054 if test -z "$CC"; then
2055 if test -n "$ac_tool_prefix"; then
2056 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2057 set dummy ${ac_tool_prefix}cc; ac_word=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 if test -n "$CC"; then
2064 ac_cv_prog_CC="$CC" # Let the user override the test.
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073 ac_cv_prog_CC="${ac_tool_prefix}cc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 if test -n "$CC"; then
2084 echo "$as_me:$LINENO: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2092 if test -z "$ac_cv_prog_CC"; then
2094 # Extract the first word of "cc", so it can be a program name with args.
2095 set dummy cc; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 if test -n "$ac_ct_CC"; then
2102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111 ac_cv_prog_ac_ct_CC="cc"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2121 if test -n "$ac_ct_CC"; then
2122 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2123 echo "${ECHO_T}$ac_ct_CC" >&6
2125 echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2135 if test -z "$CC"; then
2136 # Extract the first word of "cc", so it can be a program name with args.
2137 set dummy cc; ac_word=$2
2138 echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140 if test "${ac_cv_prog_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 if test -n "$CC"; then
2144 ac_cv_prog_CC="$CC" # Let the user override the test.
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 test -z "$as_dir" && as_dir=.
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2154 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2155 ac_prog_rejected=yes
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 if test $ac_prog_rejected = yes; then
2166 # We found a bogon in the path, so make sure we never use it.
2167 set dummy $ac_cv_prog_CC
2169 if test $# != 0; then
2170 # We chose a different compiler from the bogus one.
2171 # However, it has the same basename, so the bogon will be chosen
2172 # first if we set CC to just the basename; use the full file name.
2174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2180 if test -n "$CC"; then
2181 echo "$as_me:$LINENO: result: $CC" >&5
2182 echo "${ECHO_T}$CC" >&6
2184 echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6
2189 if test -z "$CC"; then
2190 if test -n "$ac_tool_prefix"; then
2193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2195 echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197 if test "${ac_cv_prog_CC+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 if test -n "$CC"; then
2201 ac_cv_prog_CC="$CC" # Let the user override the test.
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 if test -n "$CC"; then
2221 echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6
2224 echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6
2228 test -n "$CC" && break
2231 if test -z "$CC"; then
2235 # Extract the first word of "$ac_prog", so it can be a program name with args.
2236 set dummy $ac_prog; ac_word=$2
2237 echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 if test -n "$ac_ct_CC"; then
2243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252 ac_cv_prog_ac_ct_CC="$ac_prog"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2262 if test -n "$ac_ct_CC"; then
2263 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2264 echo "${ECHO_T}$ac_ct_CC" >&6
2266 echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2270 test -n "$ac_ct_CC" && break
2279 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: no acceptable C compiler found in \$PATH
2282 See \`config.log' for more details." >&2;}
2283 { (exit 1); exit 1; }; }
2285 # Provide some information about the compiler.
2286 echo "$as_me:$LINENO:" \
2287 "checking for C compiler version" >&5
2288 ac_compiler=`set X $ac_compile; echo $2`
2289 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2290 (eval $ac_compiler --version </dev/null >&5) 2>&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }
2294 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2295 (eval $ac_compiler -v </dev/null >&5) 2>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }
2299 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2300 (eval $ac_compiler -V </dev/null >&5) 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #line $LINENO "configure"
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h. */
2321 ac_clean_files_save=$ac_clean_files
2322 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2323 # Try to create an executable without -o first, disregard a.out.
2324 # It will help us diagnose broken compilers, and finding out an intuition
2326 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2327 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2328 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2329 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2330 (eval $ac_link_default) 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 # Find the output, starting from the most likely. This scheme is
2335 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2338 # Be careful to initialize this variable, since it used to be cached.
2339 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2341 # b.out is created by i960 compilers.
2342 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2344 test -f "$ac_file" || continue
2346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2349 # This is the source file.
2352 # We found the default executable, but exeext='' is most
2356 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2357 # FIXME: I believe we export ac_cv_exeext for Libtool,
2358 # but it would be cool to find out if it's true. Does anybody
2359 # maintain Libtool? --akim.
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2370 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: C compiler cannot create executables
2373 See \`config.log' for more details." >&2;}
2374 { (exit 77); exit 77; }; }
2377 ac_exeext=$ac_cv_exeext
2378 echo "$as_me:$LINENO: result: $ac_file" >&5
2379 echo "${ECHO_T}$ac_file" >&6
2381 # Check the compiler produces executables we can run. If not, either
2382 # the compiler is broken, or we cross compile.
2383 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2384 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2385 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2386 # If not cross compiling, check that we can run a simple program.
2387 if test "$cross_compiling" != yes; then
2388 if { ac_try='./$ac_file'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; }; then
2396 if test "$cross_compiling" = maybe; then
2399 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2400 If you meant to cross compile, use \`--host'.
2401 See \`config.log' for more details." >&5
2402 echo "$as_me: error: cannot run C compiled programs.
2403 If you meant to cross compile, use \`--host'.
2404 See \`config.log' for more details." >&2;}
2405 { (exit 1); exit 1; }; }
2409 echo "$as_me:$LINENO: result: yes" >&5
2410 echo "${ECHO_T}yes" >&6
2412 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2413 ac_clean_files=$ac_clean_files_save
2414 # Check the compiler produces executables we can run. If not, either
2415 # the compiler is broken, or we cross compile.
2416 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2417 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2418 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2419 echo "${ECHO_T}$cross_compiling" >&6
2421 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2422 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2424 (eval $ac_link) 2>&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; then
2428 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2429 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2430 # work properly (i.e., refer to `conftest.exe'), while it won't with
2432 for ac_file in conftest.exe conftest conftest.*; do
2433 test -f "$ac_file" || continue
2435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2436 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2443 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2446 See \`config.log' for more details." >&2;}
2447 { (exit 1); exit 1; }; }
2450 rm -f conftest$ac_cv_exeext
2451 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2452 echo "${ECHO_T}$ac_cv_exeext" >&6
2454 rm -f conftest.$ac_ext
2455 EXEEXT=$ac_cv_exeext
2457 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2458 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2459 if test "${ac_cv_objext+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 cat >conftest.$ac_ext <<_ACEOF
2463 #line $LINENO "configure"
2466 cat confdefs.h >>conftest.$ac_ext
2467 cat >>conftest.$ac_ext <<_ACEOF
2468 /* end confdefs.h. */
2478 rm -f conftest.o conftest.obj
2479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480 (eval $ac_compile) 2>&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; then
2484 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2487 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2495 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2498 See \`config.log' for more details." >&2;}
2499 { (exit 1); exit 1; }; }
2502 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2504 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2505 echo "${ECHO_T}$ac_cv_objext" >&6
2506 OBJEXT=$ac_cv_objext
2508 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2509 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2510 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 cat >conftest.$ac_ext <<_ACEOF
2514 #line $LINENO "configure"
2517 cat confdefs.h >>conftest.$ac_ext
2518 cat >>conftest.$ac_ext <<_ACEOF
2519 /* end confdefs.h. */
2532 rm -f conftest.$ac_objext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } &&
2538 { ac_try='test -s conftest.$ac_objext'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; }; then
2546 echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2551 rm -f conftest.$ac_objext conftest.$ac_ext
2552 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2555 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2556 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2557 GCC=`test $ac_compiler_gnu = yes && echo yes`
2558 ac_test_CFLAGS=${CFLAGS+set}
2559 ac_save_CFLAGS=$CFLAGS
2561 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2562 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2563 if test "${ac_cv_prog_cc_g+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 cat >conftest.$ac_ext <<_ACEOF
2567 #line $LINENO "configure"
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f conftest.$ac_objext conftest.$ac_ext
2603 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2605 if test "$ac_test_CFLAGS" = set; then
2606 CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608 if test "$GCC" = yes; then
2614 if test "$GCC" = yes; then
2620 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2621 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2622 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 ac_cv_prog_cc_stdc=no
2627 cat >conftest.$ac_ext <<_ACEOF
2628 #line $LINENO "configure"
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2636 #include <sys/types.h>
2637 #include <sys/stat.h>
2638 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2639 struct buf { int x; };
2640 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2641 static char *e (p, i)
2647 static char *f (char * (*g) (char **, int), char **p, ...)
2652 s = g (p, va_arg (v,int));
2656 int test (int i, double x);
2657 struct s1 {int (*f) (int a);};
2658 struct s2 {int (*f) (double a);};
2659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2670 # Don't try gcc -ansi; that turns off useful extensions and
2671 # breaks some systems' header files.
2672 # AIX -qlanglvl=ansi
2673 # Ultrix and OSF/1 -std1
2674 # HP-UX 10.20 and later -Ae
2675 # HP-UX older versions -Aa -D_HPUX_SOURCE
2676 # SVR4 -Xc -D__EXTENSIONS__
2677 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2679 CC="$ac_save_CC $ac_arg"
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 ac_cv_prog_cc_stdc=$ac_arg
2695 echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2699 rm -f conftest.$ac_objext
2701 rm -f conftest.$ac_ext conftest.$ac_objext
2706 case "x$ac_cv_prog_cc_stdc" in
2708 echo "$as_me:$LINENO: result: none needed" >&5
2709 echo "${ECHO_T}none needed" >&6 ;;
2711 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2712 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2713 CC="$CC $ac_cv_prog_cc_stdc" ;;
2716 # Some people use a C++ compiler to compile C. Since we use `exit',
2717 # in C++ we need to declare it. In case someone uses the same compiler
2718 # for both compiling C and C++ we need to have the C++ compiler decide
2719 # the declaration of exit, since it's the most demanding environment.
2720 cat >conftest.$ac_ext <<_ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2737 for ac_declaration in \
2739 '#include <stdlib.h>' \
2740 'extern "C" void std::exit (int) throw (); using std::exit;' \
2741 'extern "C" void std::exit (int); using std::exit;' \
2742 'extern "C" void exit (int) throw ();' \
2743 'extern "C" void exit (int);' \
2746 cat >conftest.$ac_ext <<_ACEOF
2747 #line $LINENO "configure"
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -s conftest.$ac_objext'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; }; then
2777 echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2782 rm -f conftest.$ac_objext conftest.$ac_ext
2783 cat >conftest.$ac_ext <<_ACEOF
2784 #line $LINENO "configure"
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2817 rm -f conftest.$ac_objext conftest.$ac_ext
2820 if test -n "$ac_declaration"; then
2821 echo '#ifdef __cplusplus' >>confdefs.h
2822 echo $ac_declaration >>confdefs.h
2823 echo '#endif' >>confdefs.h
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2831 rm -f conftest.$ac_objext conftest.$ac_ext
2833 ac_cpp='$CPP $CPPFLAGS'
2834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838 depcc="$CC" am_compiler_list=
2840 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2841 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2842 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2846 # We make a subdir and do the tests there. Otherwise we can end up
2847 # making bogus files that we don't know about and never remove. For
2848 # instance it was reported that on HP-UX the gcc test will end up
2849 # making a dummy file named `D' -- because `-MD' means `put the output
2852 # Copy depcomp to subdir because otherwise we won't find it if we're
2853 # using a relative directory.
2854 cp "$am_depcomp" conftest.dir
2857 am_cv_CC_dependencies_compiler_type=none
2858 if test "$am_compiler_list" = ""; then
2859 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2861 for depmode in $am_compiler_list; do
2862 # We need to recreate these files for each test, as the compiler may
2863 # overwrite some of them when testing with obscure command lines.
2864 # This happens at least with the AIX C compiler.
2865 echo '#include "conftest.h"' > conftest.c
2866 echo 'int i;' > conftest.h
2867 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2871 # after this tag, mechanisms are not by side-effect, so they'll
2872 # only be used when explicitly requested
2873 if test "x$enable_dependency_tracking" = xyes; then
2881 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2882 # mode. It turns out that the SunPro C++ compiler does not properly
2883 # handle `-M -o', and we need to detect this.
2884 if depmode=$depmode \
2885 source=conftest.c object=conftest.o \
2886 depfile=conftest.Po tmpdepfile=conftest.TPo \
2887 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2888 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2889 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2890 am_cv_CC_dependencies_compiler_type=$depmode
2898 am_cv_CC_dependencies_compiler_type=none
2902 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2903 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2904 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2907 # Find the correct PATH separator. Usually this is `:', but
2908 # DJGPP uses `;' like DOS.
2909 if test "X${PATH_SEPARATOR+set}" != Xset; then
2910 UNAME=${UNAME-`uname 2>/dev/null`}
2912 *-DOS) lt_cv_sys_path_separator=';' ;;
2913 *) lt_cv_sys_path_separator=':' ;;
2915 PATH_SEPARATOR=$lt_cv_sys_path_separator
2919 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2920 if test "${with_gnu_ld+set}" = set; then
2921 withval="$with_gnu_ld"
2922 test "$withval" = no || with_gnu_ld=yes
2927 if test "$GCC" = yes; then
2928 # Check if gcc -print-prog-name=ld gives a path.
2929 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2930 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2933 # gcc leaves a trailing carriage return which upsets mingw
2934 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2936 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2939 # Accept absolute paths.
2940 [\\/]* | [A-Za-z]:[\\/]*)
2941 re_direlt='/[^/][^/]*/\.\./'
2942 # Canonicalize the path of ld
2943 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2944 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2945 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2947 test -z "$LD" && LD="$ac_prog"
2950 # If it fails, then pretend we aren't using GCC.
2954 # If it is relative, then search for the first ld in PATH.
2958 elif test "$with_gnu_ld" = yes; then
2959 echo "$as_me:$LINENO: checking for GNU ld" >&5
2960 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2962 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2963 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2965 if test "${lt_cv_path_LD+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 if test -z "$LD"; then
2969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2970 for ac_dir in $PATH; do
2971 test -z "$ac_dir" && ac_dir=.
2972 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2973 lt_cv_path_LD="$ac_dir/$ac_prog"
2974 # Check to see if the program is GNU ld. I'd rather use --version,
2975 # but apparently some GNU ld's only accept -v.
2976 # Break only if it was the GNU/non-GNU ld that we prefer.
2977 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2978 test "$with_gnu_ld" != no && break
2980 test "$with_gnu_ld" != yes && break
2986 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2991 if test -n "$LD"; then
2992 echo "$as_me:$LINENO: result: $LD" >&5
2993 echo "${ECHO_T}$LD" >&6
2995 echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6
2998 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2999 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3000 { (exit 1); exit 1; }; }
3001 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3002 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3003 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3007 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3008 lt_cv_prog_gnu_ld=yes
3010 lt_cv_prog_gnu_ld=no
3013 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3014 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3015 with_gnu_ld=$lt_cv_prog_gnu_ld
3018 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3019 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3020 if test "${lt_cv_ld_reload_flag+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 lt_cv_ld_reload_flag='-r'
3025 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3026 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3027 reload_flag=$lt_cv_ld_reload_flag
3028 test -n "$reload_flag" && reload_flag=" $reload_flag"
3030 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3031 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3032 if test "${lt_cv_path_NM+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 if test -n "$NM"; then
3036 # Let the user override the test.
3039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3040 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3041 test -z "$ac_dir" && ac_dir=.
3042 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3043 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3044 # Check to see if the nm accepts a BSD-compat flag.
3045 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3046 # nm: unknown option "B" ignored
3047 # Tru64's nm complains that /dev/null is an invalid object file
3048 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3049 lt_cv_path_NM="$tmp_nm -B"
3051 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3052 lt_cv_path_NM="$tmp_nm -p"
3055 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3056 continue # so that we can try to find one that supports BSD flags
3061 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3066 echo "$as_me:$LINENO: result: $NM" >&5
3067 echo "${ECHO_T}$NM" >&6
3069 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3070 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3072 if test "$LN_S" = "ln -s"; then
3073 echo "$as_me:$LINENO: result: yes" >&5
3074 echo "${ECHO_T}yes" >&6
3076 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3077 echo "${ECHO_T}no, using $LN_S" >&6
3080 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3081 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3082 if test "${lt_cv_deplibs_check_method+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 lt_cv_file_magic_cmd='$MAGIC_CMD'
3086 lt_cv_file_magic_test_file=
3087 lt_cv_deplibs_check_method='unknown'
3088 # Need to set the preceding variable on all platforms that support
3089 # interlibrary dependencies.
3090 # 'none' -- dependencies not supported.
3091 # `unknown' -- same as none, but documents that we really don't know.
3092 # 'pass_all' -- all dependencies passed with no checks.
3093 # 'test_compile' -- check by making test program.
3094 # 'file_magic [[regex]]' -- check by looking for files in library path
3095 # which responds to the $file_magic_cmd with a given egrep regex.
3096 # If you have `file' or equivalent on your system and you're not sure
3097 # whether `pass_all' will *always* work, you probably want this one.
3101 lt_cv_deplibs_check_method=pass_all
3105 lt_cv_deplibs_check_method=pass_all
3109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3110 lt_cv_file_magic_cmd='/usr/bin/file -L'
3111 lt_cv_file_magic_test_file=/shlib/libc.so
3114 cygwin* | mingw* | pw32*)
3115 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3116 lt_cv_file_magic_cmd='$OBJDUMP -f'
3119 darwin* | rhapsody*)
3120 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3121 lt_cv_file_magic_cmd='/usr/bin/file -L'
3123 rhapsody* | darwin1.[012])
3124 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3127 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3133 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3136 # Not sure whether the presence of OpenBSD here was a mistake.
3137 # Let's accept both of them until this is cleared up.
3138 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3139 lt_cv_file_magic_cmd=/usr/bin/file
3140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3144 lt_cv_deplibs_check_method=pass_all
3149 lt_cv_deplibs_check_method=pass_all
3153 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3154 lt_cv_file_magic_cmd=/usr/bin/file
3155 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3161 # this will be overridden with pass_all, but let us keep it just in case
3162 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3166 *-32|*"-32 ") libmagic=32-bit;;
3167 *-n32|*"-n32 ") libmagic=N32;;
3168 *-64|*"-64 ") libmagic=64-bit;;
3169 *) libmagic=never-match;;
3171 # this will be overridden with pass_all, but let us keep it just in case
3172 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3175 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3176 lt_cv_deplibs_check_method=pass_all
3179 # This must be Linux ELF.
3182 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3183 lt_cv_deplibs_check_method=pass_all ;;
3185 # glibc up to 2.1.1 does not perform some relocations on ARM
3186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3188 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3192 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3193 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3195 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3201 lt_cv_file_magic_cmd=/usr/bin/file
3202 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3206 lt_cv_file_magic_cmd=/usr/bin/file
3207 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3211 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3215 osf3* | osf4* | osf5*)
3216 # this will be overridden with pass_all, but let us keep it just in case
3217 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3218 lt_cv_file_magic_test_file=/shlib/libc.so
3219 lt_cv_deplibs_check_method=pass_all
3223 lt_cv_deplibs_check_method=pass_all
3227 lt_cv_deplibs_check_method=pass_all
3228 lt_cv_file_magic_test_file=/lib/libc.so
3231 sysv5uw[78]* | sysv4*uw2*)
3232 lt_cv_deplibs_check_method=pass_all
3235 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3236 case $host_vendor in
3238 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]'
3239 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3242 lt_cv_deplibs_check_method=pass_all
3245 lt_cv_file_magic_cmd='/bin/file'
3246 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3249 lt_cv_file_magic_cmd='/bin/file'
3250 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3251 lt_cv_file_magic_test_file=/lib/libc.so
3258 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3259 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3260 file_magic_cmd=$lt_cv_file_magic_cmd
3261 deplibs_check_method=$lt_cv_deplibs_check_method
3270 # Check for command to grab the raw symbol name followed by C symbol from nm.
3271 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3272 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3273 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 # These are sane defaults that work on at least a few old systems.
3278 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3280 # Character class describing NM global symbol codes.
3281 symcode='[BCDEGRST]'
3283 # Regexp to match symbols that can be accessed directly from C.
3284 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3286 # Transform the above into a raw symbol and a C symbol.
3287 symxfrm='\1 \2\3 \3'
3289 # Transform an extracted symbol line into a proper C declaration
3290 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3292 # Transform an extracted symbol line into symbol name and symbol address
3293 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3295 # Define system-specific variables.
3300 cygwin* | mingw* | pw32*)
3301 symcode='[ABCDGISTW]'
3303 hpux*) # Its linker distinguishes data from code symbols
3304 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3305 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3308 symcode='[BCDEGRST]'
3318 # Handle CRLF in mingw tool chain
3322 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3326 # If we're using GNU nm, then use its standard symbol codes.
3327 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3328 symcode='[ABCDGISTW]'
3331 # Try without a prefix undercore, then with it.
3332 for ac_symprfx in "" "_"; do
3334 # Write the raw and C identifiers.
3335 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3337 # Check to see that the pipe works correctly.
3340 cat > conftest.$ac_ext <<EOF
3345 void nm_test_func(){}
3349 int main(){nm_test_var='a';nm_test_func();return(0);}
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; then
3357 # Now try to grab the symbols.
3359 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3360 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } && test -s "$nlist"; then
3364 # Try sorting and uniquifying the output.
3365 if sort "$nlist" | uniq > "$nlist"T; then
3366 mv -f "$nlist"T "$nlist"
3371 # Make sure that we snagged all the symbols we need.
3372 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3373 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3374 cat <<EOF > conftest.$ac_ext
3380 # Now generate the symbol file.
3381 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3383 cat <<EOF >> conftest.$ac_ext
3384 #if defined (__STDC__) && __STDC__
3385 # define lt_ptr void *
3387 # define lt_ptr char *
3391 /* The mapping between symbol names and symbols. */
3396 lt_preloaded_symbols[] =
3399 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3400 cat <<\EOF >> conftest.$ac_ext
3408 # Now try linking the two files.
3409 mv conftest.$ac_objext conftstm.$ac_objext
3411 save_CFLAGS="$CFLAGS"
3412 LIBS="conftstm.$ac_objext"
3413 CFLAGS="$CFLAGS$no_builtin_flag"
3414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3415 (eval $ac_link) 2>&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } && test -s conftest; then
3422 CFLAGS="$save_CFLAGS"
3424 echo "cannot find nm_test_func in $nlist" >&5
3427 echo "cannot find nm_test_var in $nlist" >&5
3430 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3433 echo "$progname: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3436 rm -f conftest* conftst*
3438 # Do not use the global_symbol_pipe unless it works.
3439 if test "$pipe_works" = yes; then
3442 lt_cv_sys_global_symbol_pipe=
3448 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3449 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3450 global_symbol_to_cdecl=
3451 global_symbol_to_c_name_address=
3453 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3454 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3456 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3458 echo "$as_me:$LINENO: result: failed" >&5
3459 echo "${ECHO_T}failed" >&6
3461 echo "$as_me:$LINENO: result: ok" >&5
3462 echo "${ECHO_T}ok" >&6
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3471 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3472 # On Suns, sometimes $CPP names a directory.
3473 if test -n "$CPP" && test -d "$CPP"; then
3476 if test -z "$CPP"; then
3477 if test "${ac_cv_prog_CPP+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 # Double quotes because CPP needs to be expanded
3481 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3484 for ac_c_preproc_warn_flag in '' yes
3486 # Use a header file that comes with gcc, so configuring glibc
3487 # with a fresh cross-compiler works.
3488 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3489 # <limits.h> exists even on freestanding compilers.
3490 # On the NeXT, cc -E runs the code through the compiler's parser,
3491 # not just through cpp. "Syntax error" is here to catch this case.
3492 cat >conftest.$ac_ext <<_ACEOF
3493 #line $LINENO "configure"
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3500 # include <limits.h>
3502 # include <assert.h>
3506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } >/dev/null; then
3514 if test -s conftest.err; then
3515 ac_cpp_err=$ac_c_preproc_warn_flag
3522 if test -z "$ac_cpp_err"; then
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 # Broken: fails on valid input.
3531 rm -f conftest.err conftest.$ac_ext
3533 # OK, works on sane cases. Now check whether non-existent headers
3534 # can be detected and how.
3535 cat >conftest.$ac_ext <<_ACEOF
3536 #line $LINENO "configure"
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3542 #include <ac_nonexistent.h>
3544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3547 grep -v '^ *+' conftest.er1 >conftest.err
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } >/dev/null; then
3552 if test -s conftest.err; then
3553 ac_cpp_err=$ac_c_preproc_warn_flag
3560 if test -z "$ac_cpp_err"; then
3561 # Broken: success on invalid input.
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3567 # Passes both tests.
3571 rm -f conftest.err conftest.$ac_ext
3574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3575 rm -f conftest.err conftest.$ac_ext
3576 if $ac_preproc_ok; then
3588 echo "$as_me:$LINENO: result: $CPP" >&5
3589 echo "${ECHO_T}$CPP" >&6
3591 for ac_c_preproc_warn_flag in '' yes
3593 # Use a header file that comes with gcc, so configuring glibc
3594 # with a fresh cross-compiler works.
3595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3596 # <limits.h> exists even on freestanding compilers.
3597 # On the NeXT, cc -E runs the code through the compiler's parser,
3598 # not just through cpp. "Syntax error" is here to catch this case.
3599 cat >conftest.$ac_ext <<_ACEOF
3600 #line $LINENO "configure"
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3607 # include <limits.h>
3609 # include <assert.h>
3613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } >/dev/null; then
3621 if test -s conftest.err; then
3622 ac_cpp_err=$ac_c_preproc_warn_flag
3629 if test -z "$ac_cpp_err"; then
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 # Broken: fails on valid input.
3638 rm -f conftest.err conftest.$ac_ext
3640 # OK, works on sane cases. Now check whether non-existent headers
3641 # can be detected and how.
3642 cat >conftest.$ac_ext <<_ACEOF
3643 #line $LINENO "configure"
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 #include <ac_nonexistent.h>
3651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3654 grep -v '^ *+' conftest.er1 >conftest.err
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } >/dev/null; then
3659 if test -s conftest.err; then
3660 ac_cpp_err=$ac_c_preproc_warn_flag
3667 if test -z "$ac_cpp_err"; then
3668 # Broken: success on invalid input.
3671 echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3674 # Passes both tests.
3678 rm -f conftest.err conftest.$ac_ext
3681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3682 rm -f conftest.err conftest.$ac_ext
3683 if $ac_preproc_ok; then
3686 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3687 See \`config.log' for more details." >&5
3688 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3689 See \`config.log' for more details." >&2;}
3690 { (exit 1); exit 1; }; }
3694 ac_cpp='$CPP $CPPFLAGS'
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700 echo "$as_me:$LINENO: checking for egrep" >&5
3701 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3702 if test "${ac_cv_prog_egrep+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3706 then ac_cv_prog_egrep='grep -E'
3707 else ac_cv_prog_egrep='egrep'
3710 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3711 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3712 EGREP=$ac_cv_prog_egrep
3715 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3716 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3717 if test "${ac_cv_header_stdc+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 cat >conftest.$ac_ext <<_ACEOF
3721 #line $LINENO "configure"
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3740 rm -f conftest.$ac_objext
3741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742 (eval $ac_compile) 2>&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try='test -s conftest.$ac_objext'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; }; then
3752 ac_cv_header_stdc=yes
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 ac_cv_header_stdc=no
3759 rm -f conftest.$ac_objext conftest.$ac_ext
3761 if test $ac_cv_header_stdc = yes; then
3762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3763 cat >conftest.$ac_ext <<_ACEOF
3764 #line $LINENO "configure"
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3774 $EGREP "memchr" >/dev/null 2>&1; then
3777 ac_cv_header_stdc=no
3783 if test $ac_cv_header_stdc = yes; then
3784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3785 cat >conftest.$ac_ext <<_ACEOF
3786 #line $LINENO "configure"
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3796 $EGREP "free" >/dev/null 2>&1; then
3799 ac_cv_header_stdc=no
3805 if test $ac_cv_header_stdc = yes; then
3806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3807 if test "$cross_compiling" = yes; then
3810 cat >conftest.$ac_ext <<_ACEOF
3811 #line $LINENO "configure"
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3818 #if ((' ' & 0x0FF) == 0x020)
3819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3822 # define ISLOWER(c) \
3823 (('a' <= (c) && (c) <= 'i') \
3824 || ('j' <= (c) && (c) <= 'r') \
3825 || ('s' <= (c) && (c) <= 'z'))
3826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3834 for (i = 0; i < 256; i++)
3835 if (XOR (islower (i), ISLOWER (i))
3836 || toupper (i) != TOUPPER (i))
3841 rm -f conftest$ac_exeext
3842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3843 (eval $ac_link) 2>&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3854 echo "$as_me: program exited with status $ac_status" >&5
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3859 ac_cv_header_stdc=no
3861 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3865 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3866 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3867 if test $ac_cv_header_stdc = yes; then
3869 cat >>confdefs.h <<\_ACEOF
3870 #define STDC_HEADERS 1
3875 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3885 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3886 inttypes.h stdint.h unistd.h
3888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3889 echo "$as_me:$LINENO: checking for $ac_header" >&5
3890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 cat >conftest.$ac_ext <<_ACEOF
3895 #line $LINENO "configure"
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3901 $ac_includes_default
3903 #include <$ac_header>
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -s conftest.$ac_objext'
3912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; }; then
3917 eval "$as_ac_Header=yes"
3919 echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3922 eval "$as_ac_Header=no"
3924 rm -f conftest.$ac_objext conftest.$ac_ext
3926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3929 cat >>confdefs.h <<_ACEOF
3930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3939 for ac_header in dlfcn.h
3941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943 echo "$as_me:$LINENO: checking for $ac_header" >&5
3944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3951 # Is the header compilable?
3952 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3954 cat >conftest.$ac_ext <<_ACEOF
3955 #line $LINENO "configure"
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 $ac_includes_default
3962 #include <$ac_header>
3964 rm -f conftest.$ac_objext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966 (eval $ac_compile) 2>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
3970 { ac_try='test -s conftest.$ac_objext'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
3976 ac_header_compiler=yes
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 ac_header_compiler=no
3983 rm -f conftest.$ac_objext conftest.$ac_ext
3984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3985 echo "${ECHO_T}$ac_header_compiler" >&6
3987 # Is the header present?
3988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3990 cat >conftest.$ac_ext <<_ACEOF
3991 #line $LINENO "configure"
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3997 #include <$ac_header>
3999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4002 grep -v '^ *+' conftest.er1 >conftest.err
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } >/dev/null; then
4007 if test -s conftest.err; then
4008 ac_cpp_err=$ac_c_preproc_warn_flag
4015 if test -z "$ac_cpp_err"; then
4016 ac_header_preproc=yes
4018 echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 ac_header_preproc=no
4023 rm -f conftest.err conftest.$ac_ext
4024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4025 echo "${ECHO_T}$ac_header_preproc" >&6
4027 # So? What about this header?
4028 case $ac_header_compiler:$ac_header_preproc in
4030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4036 ## ------------------------------------ ##
4037 ## Report this to bug-autoconf@gnu.org. ##
4038 ## ------------------------------------ ##
4041 sed "s/^/$as_me: WARNING: /" >&2
4044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4052 ## ------------------------------------ ##
4053 ## Report this to bug-autoconf@gnu.org. ##
4054 ## ------------------------------------ ##
4057 sed "s/^/$as_me: WARNING: /" >&2
4060 echo "$as_me:$LINENO: checking for $ac_header" >&5
4061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 eval "$as_ac_Header=$ac_header_preproc"
4067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4072 cat >>confdefs.h <<_ACEOF
4073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 # Only perform the check for file, if the check method requires it
4085 case $deplibs_check_method in
4087 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4088 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4089 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4090 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4101 ac_save_MAGIC_CMD="$MAGIC_CMD"
4102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4103 ac_dummy="/usr/bin:$PATH"
4104 for ac_dir in $ac_dummy; do
4105 test -z "$ac_dir" && ac_dir=.
4106 if test -f $ac_dir/${ac_tool_prefix}file; then
4107 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4108 if test -n "$file_magic_test_file"; then
4109 case $deplibs_check_method in
4111 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4112 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4113 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4114 egrep "$file_magic_regex" > /dev/null; then
4119 *** Warning: the command libtool uses to detect shared libraries,
4120 *** $file_magic_cmd, produces output that libtool cannot recognize.
4121 *** The result is that libtool may fail to recognize shared libraries
4122 *** as such. This will affect the creation of libtool libraries that
4123 *** depend on shared libraries, but programs linked with such libtool
4124 *** libraries will work regardless of this problem. Nevertheless, you
4125 *** may want to report the problem to your system manager and/or to
4126 *** bug-libtool@gnu.org
4136 MAGIC_CMD="$ac_save_MAGIC_CMD"
4141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4142 if test -n "$MAGIC_CMD"; then
4143 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4144 echo "${ECHO_T}$MAGIC_CMD" >&6
4146 echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4150 if test -z "$lt_cv_path_MAGIC_CMD"; then
4151 if test -n "$ac_tool_prefix"; then
4152 echo "$as_me:$LINENO: checking for file" >&5
4153 echo $ECHO_N "checking for file... $ECHO_C" >&6
4154 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4165 ac_save_MAGIC_CMD="$MAGIC_CMD"
4166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4167 ac_dummy="/usr/bin:$PATH"
4168 for ac_dir in $ac_dummy; do
4169 test -z "$ac_dir" && ac_dir=.
4170 if test -f $ac_dir/file; then
4171 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4172 if test -n "$file_magic_test_file"; then
4173 case $deplibs_check_method in
4175 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4178 egrep "$file_magic_regex" > /dev/null; then
4183 *** Warning: the command libtool uses to detect shared libraries,
4184 *** $file_magic_cmd, produces output that libtool cannot recognize.
4185 *** The result is that libtool may fail to recognize shared libraries
4186 *** as such. This will affect the creation of libtool libraries that
4187 *** depend on shared libraries, but programs linked with such libtool
4188 *** libraries will work regardless of this problem. Nevertheless, you
4189 *** may want to report the problem to your system manager and/or to
4190 *** bug-libtool@gnu.org
4200 MAGIC_CMD="$ac_save_MAGIC_CMD"
4205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4206 if test -n "$MAGIC_CMD"; then
4207 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4208 echo "${ECHO_T}$MAGIC_CMD" >&6
4210 echo "$as_me:$LINENO: result: no" >&5
4211 echo "${ECHO_T}no" >&6
4223 if test -n "$ac_tool_prefix"; then
4224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4226 echo "$as_me:$LINENO: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_RANLIB+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 if test -n "$RANLIB"; then
4232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 RANLIB=$ac_cv_prog_RANLIB
4251 if test -n "$RANLIB"; then
4252 echo "$as_me:$LINENO: result: $RANLIB" >&5
4253 echo "${ECHO_T}$RANLIB" >&6
4255 echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6
4260 if test -z "$ac_cv_prog_RANLIB"; then
4261 ac_ct_RANLIB=$RANLIB
4262 # Extract the first word of "ranlib", so it can be a program name with args.
4263 set dummy ranlib; ac_word=$2
4264 echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4266 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 if test -n "$ac_ct_RANLIB"; then
4270 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_ac_ct_RANLIB="ranlib"
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4289 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4290 if test -n "$ac_ct_RANLIB"; then
4291 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4292 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4294 echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6
4298 RANLIB=$ac_ct_RANLIB
4300 RANLIB="$ac_cv_prog_RANLIB"
4303 if test -n "$ac_tool_prefix"; then
4304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4305 set dummy ${ac_tool_prefix}strip; ac_word=$2
4306 echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4308 if test "${ac_cv_prog_STRIP+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 if test -n "$STRIP"; then
4312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 STRIP=$ac_cv_prog_STRIP
4331 if test -n "$STRIP"; then
4332 echo "$as_me:$LINENO: result: $STRIP" >&5
4333 echo "${ECHO_T}$STRIP" >&6
4335 echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6
4340 if test -z "$ac_cv_prog_STRIP"; then
4342 # Extract the first word of "strip", so it can be a program name with args.
4343 set dummy strip; ac_word=$2
4344 echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 if test -n "$ac_ct_STRIP"; then
4350 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359 ac_cv_prog_ac_ct_STRIP="strip"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4370 if test -n "$ac_ct_STRIP"; then
4371 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4372 echo "${ECHO_T}$ac_ct_STRIP" >&6
4374 echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6
4380 STRIP="$ac_cv_prog_STRIP"
4387 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4388 if test "${enable_libtool_lock+set}" = set; then
4389 enableval="$enable_libtool_lock"
4392 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4394 # Some flags need to be propagated to the compiler or linker for good
4398 # Find out which ABI we are using.
4399 echo '#line 4399 "configure"' > conftest.$ac_ext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401 (eval $ac_compile) 2>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; then
4405 case `/usr/bin/file conftest.$ac_objext` in
4421 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4422 SAVE_CFLAGS="$CFLAGS"
4423 CFLAGS="$CFLAGS -belf"
4424 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4425 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4426 if test "${lt_cv_cc_needs_belf+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 ac_cpp='$CPP $CPPFLAGS'
4433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4437 cat >conftest.$ac_ext <<_ACEOF
4438 #line $LINENO "configure"
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4453 rm -f conftest.$ac_objext conftest$ac_exeext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4455 (eval $ac_link) 2>&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -s conftest$ac_exeext'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 lt_cv_cc_needs_belf=yes
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 lt_cv_cc_needs_belf=no
4472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4481 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4482 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4483 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4484 CFLAGS="$SAVE_CFLAGS"
4491 # Sed substitution that helps us do robust quoting. It backslashifies
4492 # metacharacters that are still active within double-quoted strings.
4493 Xsed='sed -e s/^X//'
4494 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4496 # Same as above, but do not quote variable references.
4497 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4499 # Sed substitution to delay expansion of an escaped shell variable in a
4500 # double_quote_subst'ed string.
4501 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4507 default_ofile=libtool
4508 can_build_shared=yes
4510 # All known linkers require a `.a' archive for static linking (except M$VC,
4511 # which needs '.lib').
4513 ltmain="$ac_aux_dir/ltmain.sh"
4514 ofile="$default_ofile"
4515 with_gnu_ld="$lt_cv_prog_gnu_ld"
4516 need_locks="$enable_libtool_lock"
4519 old_CFLAGS="$CFLAGS"
4521 # Set sane defaults for various variables
4522 test -z "$AR" && AR=ar
4523 test -z "$AR_FLAGS" && AR_FLAGS=cru
4524 test -z "$AS" && AS=as
4525 test -z "$CC" && CC=cc
4526 test -z "$DLLTOOL" && DLLTOOL=dlltool
4527 test -z "$LD" && LD=ld
4528 test -z "$LN_S" && LN_S="ln -s"
4529 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4530 test -z "$NM" && NM=nm
4531 test -z "$OBJDUMP" && OBJDUMP=objdump
4532 test -z "$RANLIB" && RANLIB=:
4533 test -z "$STRIP" && STRIP=:
4534 test -z "$ac_objext" && ac_objext=o
4536 if test x"$host" != x"$build"; then
4537 ac_tool_prefix=${host_alias}-
4542 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4545 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4550 # AIX sometimes has problems with the GCC collect2 program. For some
4551 # reason, if we set the COLLECT_NAMES environment variable, the problems
4552 # vanish in a puff of smoke.
4553 if test "X${COLLECT_NAMES+set}" != Xset; then
4555 export COLLECT_NAMES
4560 # Determine commands to create old-style static archives.
4561 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4562 old_postinstall_cmds='chmod 644 $oldlib'
4563 old_postuninstall_cmds=
4565 if test -n "$RANLIB"; then
4568 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4571 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4574 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4577 # Allow CC to be a program name with arguments.
4581 echo "$as_me:$LINENO: checking for objdir" >&5
4582 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4583 rm -f .libs 2>/dev/null
4584 mkdir .libs 2>/dev/null
4585 if test -d .libs; then
4588 # MS-DOS does not allow filenames that begin with a dot.
4591 rmdir .libs 2>/dev/null
4592 echo "$as_me:$LINENO: result: $objdir" >&5
4593 echo "${ECHO_T}$objdir" >&6
4597 # Check whether --with-pic or --without-pic was given.
4598 if test "${with_pic+set}" = set; then
4604 test -z "$pic_mode" && pic_mode=default
4606 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4607 # in isolation, and that seeing it set (from the cache) indicates that
4608 # the associated values are set (in the cache) correctly too.
4609 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4610 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4611 if test "${lt_cv_prog_cc_pic+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 lt_cv_prog_cc_shlib=
4617 lt_cv_prog_cc_static=
4618 lt_cv_prog_cc_no_builtin=
4619 lt_cv_prog_cc_can_build_shared=$can_build_shared
4621 if test "$GCC" = yes; then
4622 lt_cv_prog_cc_wl='-Wl,'
4623 lt_cv_prog_cc_static='-static'
4627 # Below there is a dirty hack to force normal static linking with -ldl
4628 # The problem is because libdl dynamically linked with both libc and
4629 # libC (AIX C++ library), which obviously doesn't included in libraries
4630 # list by gcc. This cause undefined symbols with -static flags.
4631 # This hack allows C programs to be linked with "-static -ldl", but
4632 # not sure about C++ programs.
4633 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4636 # FIXME: we need at least 68020 code to build shared libraries, but
4637 # adding the `-m68020' flag to GCC prevents building anything better,
4639 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4641 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4642 # PIC is the default for these OSes.
4644 darwin* | rhapsody*)
4645 # PIC is the default on this platform
4646 # Common symbols not allowed in MH_DYLIB files
4647 lt_cv_prog_cc_pic='-fno-common'
4649 cygwin* | mingw* | pw32* | os2*)
4650 # This hack is so that the source file can tell whether it is being
4651 # built for inclusion in a dll (and should export symbols for example).
4652 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4655 if test -d /usr/nec; then
4656 lt_cv_prog_cc_pic=-Kconform_pic
4660 lt_cv_prog_cc_pic='-fPIC'
4664 # PORTME Check for PIC flags for the system compiler.
4666 aix3* | aix4* | aix5*)
4667 lt_cv_prog_cc_wl='-Wl,'
4668 # All AIX code is PIC.
4669 if test "$host_cpu" = ia64; then
4670 # AIX 5 now supports IA64 processor
4671 lt_cv_prog_cc_static='-Bstatic'
4673 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4677 hpux9* | hpux10* | hpux11*)
4678 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4679 lt_cv_prog_cc_wl='-Wl,'
4680 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4681 lt_cv_prog_cc_pic='+Z'
4685 lt_cv_prog_cc_wl='-Wl,'
4686 lt_cv_prog_cc_static='-non_shared'
4687 # PIC (with -KPIC) is the default.
4690 cygwin* | mingw* | pw32* | os2*)
4691 # This hack is so that the source file can tell whether it is being
4692 # built for inclusion in a dll (and should export symbols for example).
4693 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4697 lt_cv_prog_cc_pic='-KPIC'
4698 lt_cv_prog_cc_static='-Bstatic'
4701 osf3* | osf4* | osf5*)
4702 # All OSF/1 code is PIC.
4703 lt_cv_prog_cc_wl='-Wl,'
4704 lt_cv_prog_cc_static='-non_shared'
4708 lt_cv_prog_cc_pic='-Kpic'
4709 lt_cv_prog_cc_static='-dn'
4710 lt_cv_prog_cc_shlib='-belf'
4714 lt_cv_prog_cc_pic='-KPIC'
4715 lt_cv_prog_cc_static='-Bstatic'
4716 lt_cv_prog_cc_wl='-Wl,'
4720 lt_cv_prog_cc_pic='-PIC'
4721 lt_cv_prog_cc_static='-Bstatic'
4722 lt_cv_prog_cc_wl='-Qoption ld '
4725 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4726 lt_cv_prog_cc_pic='-KPIC'
4727 lt_cv_prog_cc_static='-Bstatic'
4728 if test "x$host_vendor" = xsni; then
4729 lt_cv_prog_cc_wl='-LD'
4731 lt_cv_prog_cc_wl='-Wl,'
4736 lt_cv_prog_cc_pic='-pic'
4737 lt_cv_prog_cc_static='-Bstatic'
4741 if test -d /usr/nec ;then
4742 lt_cv_prog_cc_pic='-Kconform_pic'
4743 lt_cv_prog_cc_static='-Bstatic'
4748 lt_cv_prog_cc_can_build_shared=no
4755 if test -z "$lt_cv_prog_cc_pic"; then
4756 echo "$as_me:$LINENO: result: none" >&5
4757 echo "${ECHO_T}none" >&6
4759 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4760 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4762 # Check to make sure the pic_flag actually works.
4763 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4764 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4765 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 save_CFLAGS="$CFLAGS"
4769 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4770 cat >conftest.$ac_ext <<_ACEOF
4771 #line $LINENO "configure"
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -s conftest.$ac_objext'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4799 hpux9* | hpux10* | hpux11*)
4800 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4801 # they create non-PIC objects. So, if there were any warnings, we
4802 # assume that PIC is not supported.
4803 if test -s conftest.err; then
4804 lt_cv_prog_cc_pic_works=no
4806 lt_cv_prog_cc_pic_works=yes
4810 lt_cv_prog_cc_pic_works=yes
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4818 lt_cv_prog_cc_pic_works=no
4821 rm -f conftest.$ac_objext conftest.$ac_ext
4822 CFLAGS="$save_CFLAGS"
4827 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4829 lt_cv_prog_cc_can_build_shared=no
4831 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4834 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4835 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4838 # Check for any special shared library compilation flags.
4839 if test -n "$lt_cv_prog_cc_shlib"; then
4840 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4841 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4842 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4844 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4845 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4846 lt_cv_prog_cc_can_build_shared=no
4850 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4851 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4852 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 lt_cv_prog_cc_static_works=no
4856 save_LDFLAGS="$LDFLAGS"
4857 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4858 cat >conftest.$ac_ext <<_ACEOF
4859 #line $LINENO "configure"
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4874 rm -f conftest.$ac_objext conftest$ac_exeext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4876 (eval $ac_link) 2>&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 lt_cv_prog_cc_static_works=yes
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4893 LDFLAGS="$save_LDFLAGS"
4898 # Belt *and* braces to stop my trousers falling down:
4899 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4900 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4901 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4903 pic_flag="$lt_cv_prog_cc_pic"
4904 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4905 wl="$lt_cv_prog_cc_wl"
4906 link_static_flag="$lt_cv_prog_cc_static"
4907 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4908 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4911 # Check to see if options -o and -c are simultaneously supported by compiler
4912 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4913 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4914 if test "${lt_cv_compiler_c_o+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 $rm -r conftest 2>/dev/null
4921 echo "int some_variable = 0;" > conftest.$ac_ext
4923 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4924 # that will create temporary files in the current directory regardless of
4925 # the output directory. Thus, making CWD read-only will cause this test
4926 # to fail, enabling locking or at least warning the user not to do parallel
4929 save_CFLAGS="$CFLAGS"
4930 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4932 if { (eval echo configure:4932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4933 # The compiler can only warn and ignore the option if not recognized
4934 # So say no if there are warnings
4935 if test -s out/conftest.err; then
4936 lt_cv_compiler_c_o=no
4938 lt_cv_compiler_c_o=yes
4941 # Append any errors to the config.log.
4942 cat out/conftest.err 1>&5
4943 lt_cv_compiler_c_o=no
4945 CFLAGS="$save_CFLAGS"
4951 $rm -r conftest 2>/dev/null
4955 compiler_c_o=$lt_cv_compiler_c_o
4956 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4957 echo "${ECHO_T}$compiler_c_o" >&6
4959 if test x"$compiler_c_o" = x"yes"; then
4960 # Check to see if we can write to a .lo
4961 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4962 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4963 if test "${lt_cv_compiler_o_lo+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 lt_cv_compiler_o_lo=no
4968 save_CFLAGS="$CFLAGS"
4969 CFLAGS="$CFLAGS -c -o conftest.lo"
4970 save_objext="$ac_objext"
4972 cat >conftest.$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4983 int some_variable = 0;
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 # The compiler can only warn and ignore the option if not recognized
5001 # So say no if there are warnings
5002 if test -s conftest.err; then
5003 lt_cv_compiler_o_lo=no
5005 lt_cv_compiler_o_lo=yes
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5013 rm -f conftest.$ac_objext conftest.$ac_ext
5014 ac_objext="$save_objext"
5015 CFLAGS="$save_CFLAGS"
5019 compiler_o_lo=$lt_cv_compiler_o_lo
5020 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5021 echo "${ECHO_T}$compiler_o_lo" >&6
5026 # Check to see if we can do hard links to lock some files if needed
5027 hard_links="nottested"
5028 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5029 # do not overwrite the value of need_locks provided by the user
5030 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5031 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5034 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5036 ln conftest.a conftest.b 2>&5 || hard_links=no
5037 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5038 echo "$as_me:$LINENO: result: $hard_links" >&5
5039 echo "${ECHO_T}$hard_links" >&6
5040 if test "$hard_links" = no; then
5041 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5042 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5049 if test "$GCC" = yes; then
5050 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5051 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5052 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5053 echo "int some_variable = 0;" > conftest.$ac_ext
5054 save_CFLAGS="$CFLAGS"
5055 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5056 compiler_rtti_exceptions=no
5057 cat >conftest.$ac_ext <<_ACEOF
5058 #line $LINENO "configure"
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5068 int some_variable = 0;
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -s conftest.$ac_objext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 # The compiler can only warn and ignore the option if not recognized
5086 # So say no if there are warnings
5087 if test -s conftest.err; then
5088 compiler_rtti_exceptions=no
5090 compiler_rtti_exceptions=yes
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5098 rm -f conftest.$ac_objext conftest.$ac_ext
5099 CFLAGS="$save_CFLAGS"
5100 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5101 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5103 if test "$compiler_rtti_exceptions" = "yes"; then
5104 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5106 no_builtin_flag=' -fno-builtin'
5110 # See if the linker supports building shared libraries.
5111 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5112 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5114 allow_undefined_flag=
5116 need_lib_prefix=unknown
5117 need_version=unknown
5118 # when you set need_version to no, make sure it does not cause -set_version
5119 # flags to be left without arguments
5121 archive_expsym_cmds=
5122 old_archive_from_new_cmds=
5123 old_archive_from_expsyms_cmds=
5124 export_dynamic_flag_spec=
5125 whole_archive_flag_spec=
5126 thread_safe_flag_spec=
5127 hardcode_into_libs=no
5128 hardcode_libdir_flag_spec=
5129 hardcode_libdir_separator=
5132 hardcode_shlibpath_var=unsupported
5134 link_all_deplibs=unknown
5135 always_export_symbols=no
5136 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5137 # include_expsyms should be a list of space-separated symbols to be *always*
5138 # included in the symbol list
5140 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5141 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5142 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5143 # as well as any symbol that contains `d'.
5144 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5145 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5146 # platforms (ab)use it in PIC code, but their linkers get confused if
5147 # the symbol is explicitly referenced. Since portable code cannot
5148 # rely on this symbol name, it's probably fine to never include it in
5149 # preloaded symbol tables.
5150 extract_expsyms_cmds=
5153 cygwin* | mingw* | pw32*)
5154 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5155 # When not using gcc, we currently assume that we are using
5156 # Microsoft Visual C++.
5157 if test "$GCC" != yes; then
5167 if test "$with_gnu_ld" = yes; then
5168 # If archive_cmds runs LD, not CC, wlarc should be empty
5171 # See if GNU ld supports shared libraries.
5173 aix3* | aix4* | aix5*)
5174 # On AIX, the GNU linker is very broken
5175 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5179 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5180 *** to be unable to reliably create shared libraries on AIX.
5181 *** Therefore, libtool is disabling shared libraries support. If you
5182 *** really care for shared libraries, you may want to modify your PATH
5183 *** so that a non-GNU linker is found, and then restart.
5189 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)'
5190 hardcode_libdir_flag_spec='-L$libdir'
5191 hardcode_minus_L=yes
5193 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5194 # that the semantics of dynamic libraries on AmigaOS, at least up
5195 # to version 4, is to share data among multiple programs linked
5196 # with the same dynamic library. Since this doesn't match the
5197 # behavior of shared libraries on other platforms, we can use
5203 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5204 allow_undefined_flag=unsupported
5205 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5206 # support --undefined. This deserves some investigation. FIXME
5207 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5213 cygwin* | mingw* | pw32*)
5214 # hardcode_libdir_flag_spec is actually meaningless, as there is
5215 # no search path for DLLs.
5216 hardcode_libdir_flag_spec='-L$libdir'
5217 allow_undefined_flag=unsupported
5218 always_export_symbols=yes
5220 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5221 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5222 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5223 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5224 else $CC -o impgen impgen.c ; fi)~
5225 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5227 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5229 # cygwin and mingw dlls have different entry points and sets of symbols
5231 # FIXME: what about values for MSVC?
5232 dll_entry=__cygwin_dll_entry@12
5233 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5237 dll_entry=_DllMainCRTStartup@12
5238 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5242 # mingw and cygwin differ, and it's simplest to just exclude the union
5243 # of the two symbol sets.
5244 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5246 # recent cygwin and mingw systems supply a stub DllMain which the user
5247 # can override, but on older systems we have to supply one (in ltdll.c)
5248 if test "x$lt_cv_need_dllmain" = "xyes"; then
5249 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5250 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5251 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5257 # Extract the symbol export list from an `--export-all' def file,
5258 # then regenerate the def file from the symbol export list, so that
5259 # the compiled dll only exports the symbol export list.
5260 # Be careful not to strip the DATA tag left be newer dlltools.
5261 export_symbols_cmds="$ltdll_cmds"'
5262 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5263 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5265 # If the export-symbols file already is a .def file (1st line
5266 # is EXPORTS), use it as is.
5267 # If DATA tags from a recent dlltool are present, honour them!
5268 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5269 cp $export_symbols $output_objdir/$soname-def;
5271 echo EXPORTS > $output_objdir/$soname-def;
5273 cat $export_symbols | while read symbol; do
5276 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5277 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5279 _lt_hint=`expr 1 + \$_lt_hint`;
5283 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5284 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5285 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5286 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5287 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5291 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5292 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5295 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5296 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5301 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5305 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5306 *** create shared libraries on Solaris systems. Therefore, libtool
5307 *** is disabling shared libraries support. We urge you to upgrade GNU
5308 *** binutils to release 2.9.1 or newer. Another option is to modify
5309 *** your PATH or compiler configuration so that the native linker is
5310 *** used, and then restart.
5313 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5315 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5322 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5325 hardcode_shlibpath_var=no
5329 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5331 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5338 if test "$ld_shlibs" = yes; then
5339 runpath_var=LD_RUN_PATH
5340 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5341 export_dynamic_flag_spec='${wl}--export-dynamic'
5343 cygwin* | mingw* | pw32*)
5344 # dlltool doesn't understand --whole-archive et. al.
5345 whole_archive_flag_spec=
5348 # ancient GNU ld didn't support --whole-archive et. al.
5349 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5350 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5352 whole_archive_flag_spec=
5358 # PORTME fill in a description of your system's linker (not GNU ld)
5361 allow_undefined_flag=unsupported
5362 always_export_symbols=yes
5363 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'
5364 # Note: this linker hardcodes the directories in LIBPATH if there
5365 # are no directories specified by -L.
5366 hardcode_minus_L=yes
5367 if test "$GCC" = yes && test -z "$link_static_flag"; then
5368 # Neither direct hardcoding nor static linking is supported with a
5370 hardcode_direct=unsupported
5375 if test "$host_cpu" = ia64; then
5376 # On IA64, the linker does run time linking by default, so we don't
5377 # have to do anything special.
5378 aix_use_runtimelinking=no
5379 exp_sym_flag='-Bexport'
5382 aix_use_runtimelinking=no
5384 # Test if we are trying to use run time linking or normal
5385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5386 # need to do runtime linking.
5387 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5388 for ld_flag in $LDFLAGS; do
5389 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5390 aix_use_runtimelinking=yes
5396 exp_sym_flag='-bexport'
5397 no_entry_flag='-bnoentry'
5400 # When large executables or shared objects are built, AIX ld can
5401 # have problems creating the table of contents. If linking a library
5402 # or program results in "error TOC overflow" add -mminimal-toc to
5403 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5404 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5408 hardcode_libdir_separator=':'
5409 if test "$GCC" = yes; then
5410 case $host_os in aix4.[012]|aix4.[012].*)
5411 collect2name=`${CC} -print-prog-name=collect2`
5412 if test -f "$collect2name" && \
5413 strings "$collect2name" | grep resolve_lib_name >/dev/null
5415 # We have reworked collect2
5418 # We have old collect2
5419 hardcode_direct=unsupported
5420 # It fails to find uninstalled libraries when the uninstalled
5421 # path is not listed in the libpath. Setting hardcode_minus_L
5422 # to unsupported forces relinking
5423 hardcode_minus_L=yes
5424 hardcode_libdir_flag_spec='-L$libdir'
5425 hardcode_libdir_separator=
5429 shared_flag='-shared'
5432 if test "$host_cpu" = ia64; then
5433 shared_flag='${wl}-G'
5435 if test "$aix_use_runtimelinking" = yes; then
5436 shared_flag='${wl}-G'
5438 shared_flag='${wl}-bM:SRE'
5443 # It seems that -bexpall can do strange things, so it is better to
5444 # generate a list of symbols to export.
5445 always_export_symbols=yes
5446 if test "$aix_use_runtimelinking" = yes; then
5447 # Warning - without using the other runtime loading flags (-brtl),
5448 # -berok will link without error, but may produce a broken library.
5449 allow_undefined_flag='-berok'
5450 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5451 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"
5453 if test "$host_cpu" = ia64; then
5454 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5455 allow_undefined_flag="-z nodefs"
5456 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5458 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5459 # Warning - without using the other run time loading flags,
5460 # -berok will link without error, but may produce a broken library.
5461 allow_undefined_flag='${wl}-berok'
5462 # This is a bit strange, but is similar to how AIX traditionally builds
5463 # it's shared libraries.
5464 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5470 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)'
5471 hardcode_libdir_flag_spec='-L$libdir'
5472 hardcode_minus_L=yes
5473 # see comment about different semantics on the GNU ld section
5477 cygwin* | mingw* | pw32*)
5478 # When not using gcc, we currently assume that we are using
5479 # Microsoft Visual C++.
5480 # hardcode_libdir_flag_spec is actually meaningless, as there is
5481 # no search path for DLLs.
5482 hardcode_libdir_flag_spec=' '
5483 allow_undefined_flag=unsupported
5484 # Tell ltmain to make .lib files, not .a files.
5486 # FIXME: Setting linknames here is a bad hack.
5487 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5488 # The linker will automatically build a .lib file if we build a DLL.
5489 old_archive_from_new_cmds='true'
5490 # FIXME: Should let the user specify the lib program.
5491 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5492 fix_srcfile_path='`cygpath -w "$srcfile"`'
5495 darwin* | rhapsody*)
5497 rhapsody* | darwin1.[012])
5498 allow_undefined_flag='-undefined suppress'
5501 allow_undefined_flag='-flat_namespace -undefined suppress'
5504 # FIXME: Relying on posixy $() will cause problems for
5505 # cross-compilation, but unfortunately the echo tests do not
5506 # yet detect zsh echo's removal of \ escapes.
5507 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5508 # We need to add '_' to the symbols in $export_symbols first
5509 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5511 hardcode_shlibpath_var=no
5512 whole_archive_flag_spec='-all_load $convenience'
5519 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5520 # support. Future versions do this automatically, but an explicit c++rt0.o
5521 # does not break anything, and helps significantly (at the cost of a little
5524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5525 hardcode_libdir_flag_spec='-R$libdir'
5527 hardcode_shlibpath_var=no
5530 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5534 hardcode_minus_L=yes
5535 hardcode_shlibpath_var=no
5538 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5540 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5541 hardcode_libdir_flag_spec='-R$libdir'
5543 hardcode_shlibpath_var=no
5546 hpux9* | hpux10* | hpux11*)
5548 hpux9*) 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' ;;
5549 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5551 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5552 hardcode_libdir_separator=:
5554 hardcode_minus_L=yes # Not in the search PATH, but as the default
5555 # location of the library.
5556 export_dynamic_flag_spec='${wl}-E'
5560 if test "$GCC" = yes; then
5561 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'
5563 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'
5565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5566 hardcode_libdir_separator=:
5567 link_all_deplibs=yes
5571 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5574 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5576 hardcode_libdir_flag_spec='-R$libdir'
5578 hardcode_shlibpath_var=no
5582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5585 hardcode_libdir_separator=:
5586 hardcode_shlibpath_var=no
5591 hardcode_shlibpath_var=no
5592 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5594 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5595 export_dynamic_flag_spec='${wl}-E'
5598 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5600 hardcode_libdir_flag_spec='-R$libdir'
5603 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5604 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5611 hardcode_libdir_flag_spec='-L$libdir'
5612 hardcode_minus_L=yes
5613 allow_undefined_flag=unsupported
5614 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'
5615 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5619 if test "$GCC" = yes; then
5620 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5621 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'
5623 allow_undefined_flag=' -expect_unresolved \*'
5624 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'
5626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5627 hardcode_libdir_separator=:
5630 osf4* | osf5*) # as osf3* with the addition of -msym flag
5631 if test "$GCC" = yes; then
5632 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5633 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'
5634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5636 allow_undefined_flag=' -expect_unresolved \*'
5637 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'
5638 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5639 $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'
5641 #Both c and cxx compiler support -rpath directly
5642 hardcode_libdir_flag_spec='-rpath $libdir'
5644 hardcode_libdir_separator=:
5648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5649 hardcode_shlibpath_var=no
5650 runpath_var=LD_RUN_PATH
5651 hardcode_runpath_var=yes
5652 export_dynamic_flag_spec='${wl}-Bexport'
5656 # gcc --version < 3.0 without binutils cannot create self contained
5657 # shared libraries reliably, requiring libgcc.a to resolve some of
5658 # the object symbols generated in some cases. Libraries that use
5659 # assert need libgcc.a to resolve __eprintf, for example. Linking
5660 # a copy of libgcc.a into every shared library to guarantee resolving
5661 # such symbols causes other problems: According to Tim Van Holder
5662 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5663 # (to the application) exception stack for one thing.
5664 no_undefined_flag=' -z defs'
5665 if test "$GCC" = yes; then
5666 case `$CC --version 2>/dev/null` in
5670 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5671 *** create self contained shared libraries on Solaris systems, without
5672 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5673 *** -no-undefined support, which will at least allow you to build shared
5674 *** libraries. However, you may find that when you link such libraries
5675 *** into an application without using GCC, you have to manually add
5676 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5677 *** upgrade to a newer version of GCC. Another option is to rebuild your
5678 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5685 # $CC -shared without GNU ld will not create a library from C++
5686 # object files and a static libstdc++, better avoid it by now
5687 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5688 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5690 hardcode_libdir_flag_spec='-R$libdir'
5691 hardcode_shlibpath_var=no
5693 solaris2.[0-5] | solaris2.[0-5].*) ;;
5694 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5695 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5697 link_all_deplibs=yes
5701 if test "x$host_vendor" = xsequent; then
5702 # Use $CC to link under sequent, because it throws in some extra .o
5703 # files that make .init and .fini sections work.
5704 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5706 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5708 hardcode_libdir_flag_spec='-L$libdir'
5710 hardcode_minus_L=yes
5711 hardcode_shlibpath_var=no
5715 if test "x$host_vendor" = xsno; then
5716 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5717 hardcode_direct=yes # is this really true???
5719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5720 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5722 runpath_var='LD_RUN_PATH'
5723 hardcode_shlibpath_var=no
5727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5728 hardcode_shlibpath_var=no
5729 export_dynamic_flag_spec='-Bexport'
5733 no_undefined_flag=' -z text'
5734 # $CC -shared without GNU ld will not create a library from C++
5735 # object files and a static libstdc++, better avoid it by now
5736 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5737 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5738 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5739 hardcode_libdir_flag_spec=
5740 hardcode_shlibpath_var=no
5741 runpath_var='LD_RUN_PATH'
5745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5746 hardcode_libdir_flag_spec='-L$libdir'
5747 hardcode_shlibpath_var=no
5751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5752 hardcode_libdir_flag_spec='-L$libdir'
5753 hardcode_shlibpath_var=no
5757 if test -d /usr/nec; then
5758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5759 hardcode_shlibpath_var=no
5760 runpath_var=LD_RUN_PATH
5761 hardcode_runpath_var=yes
5767 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5770 hardcode_shlibpath_var=no
5771 hardcode_runpath_var=yes
5772 runpath_var=LD_RUN_PATH
5775 sysv5uw7* | unixware7*)
5776 no_undefined_flag='${wl}-z ${wl}text'
5777 if test "$GCC" = yes; then
5778 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5780 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5782 runpath_var='LD_RUN_PATH'
5783 hardcode_shlibpath_var=no
5791 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5792 echo "${ECHO_T}$ld_shlibs" >&6
5793 test "$ld_shlibs" = no && can_build_shared=no
5795 # Check hardcoding attributes.
5796 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5797 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5799 if test -n "$hardcode_libdir_flag_spec" || \
5800 test -n "$runpath_var"; then
5802 # We can hardcode non-existant directories.
5803 if test "$hardcode_direct" != no &&
5804 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5805 # have to relink, otherwise we might link with an installed library
5806 # when we should be linking with a yet-to-be-installed one
5807 ## test "$hardcode_shlibpath_var" != no &&
5808 test "$hardcode_minus_L" != no; then
5809 # Linking always hardcodes the temporary library directory.
5810 hardcode_action=relink
5812 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5813 hardcode_action=immediate
5816 # We cannot hardcode anything, or else we can only hardcode existing
5818 hardcode_action=unsupported
5820 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5821 echo "${ECHO_T}$hardcode_action" >&6
5825 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5826 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5827 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5828 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5829 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5830 echo "$as_me:$LINENO: result: yes" >&5
5831 echo "${ECHO_T}yes" >&6
5833 echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6
5837 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5838 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5840 # PORTME Fill in your ld.so characteristics
5841 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5844 libname_spec='lib$name'
5851 shlibpath_overrides_runpath=unknown
5853 dynamic_linker="$host_os ld.so"
5854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5860 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5861 shlibpath_var=LIBPATH
5863 # AIX has no versioning support, so we append a major version to the name.
5864 soname_spec='${libname}${release}.so$major'
5869 if test "$host_cpu" = ia64; then
5870 # AIX 5 supports IA64
5871 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5872 shlibpath_var=LD_LIBRARY_PATH
5874 # With GCC up to 2.95.x, collect2 would create an import file
5875 # for dependence libraries. The import file would start with
5876 # the line `#! .'. This would cause the generated library to
5877 # depend on `.', always an invalid library. This was fixed in
5878 # development snapshots of GCC prior to 3.0.
5880 aix4 | aix4.[01] | aix4.[01].*)
5881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5883 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5890 # AIX (on Power*) has no versioning support, so currently we can
5891 # not hardcode correct soname into executable. Probably we can
5892 # add versioning support to collect2, so additional links can
5893 # be useful in future.
5894 if test "$aix_use_runtimelinking" = yes; then
5895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5896 # instead of lib<name>.a to let people know that these are not
5897 # typical AIX shared libraries.
5898 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5900 # We preserve .a as extension for shared libraries through AIX4.2
5901 # and later when we are not doing run time linking.
5902 library_names_spec='${libname}${release}.a $libname.a'
5903 soname_spec='${libname}${release}.so$major'
5905 shlibpath_var=LIBPATH
5910 library_names_spec='$libname.ixlibrary $libname.a'
5911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5912 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'
5916 library_names_spec='${libname}.so'
5917 dynamic_linker="$host_os ld.so"
5918 shlibpath_var=LIBRARY_PATH
5924 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5925 soname_spec='${libname}${release}.so$major'
5926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5927 shlibpath_var=LD_LIBRARY_PATH
5928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5930 export_dynamic_flag_spec=-rdynamic
5931 # the default ld.so.conf also contains /usr/contrib/lib and
5932 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5933 # libtool to hard-code these into programs
5936 cygwin* | mingw* | pw32*)
5937 version_type=windows
5940 case $GCC,$host_os in
5942 library_names_spec='$libname.dll.a'
5943 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5944 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5945 dldir=$destdir/`dirname \$dlpath`~
5946 test -d \$dldir || mkdir -p \$dldir~
5947 $install_prog .libs/$dlname \$dldir/$dlname'
5948 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5949 dlpath=$dir/\$dldll~
5953 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5954 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5957 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5960 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5963 dynamic_linker='Win32 ld.exe'
5964 # FIXME: first we should search . and the directory the executable is in
5968 darwin* | rhapsody*)
5969 dynamic_linker="$host_os dyld"
5973 # FIXME: Relying on posixy $() will cause problems for
5974 # cross-compilation, but unfortunately the echo tests do not
5975 # yet detect zsh echo's removal of \ escapes.
5976 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5977 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5978 shlibpath_overrides_runpath=yes
5979 shlibpath_var=DYLD_LIBRARY_PATH
5987 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5988 version_type=freebsd-$objformat
5989 case $version_type in
5991 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5996 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6000 shlibpath_var=LD_LIBRARY_PATH
6003 shlibpath_overrides_runpath=yes
6006 shlibpath_overrides_runpath=no
6007 hardcode_into_libs=yes
6016 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6017 soname_spec='${libname}${release}.so$major'
6018 shlibpath_var=LD_LIBRARY_PATH
6019 hardcode_into_libs=yes
6022 hpux9* | hpux10* | hpux11*)
6023 # Give a soname corresponding to the major version so that dld.sl refuses to
6024 # link against other versions.
6025 dynamic_linker="$host_os dld.sl"
6029 shlibpath_var=SHLIB_PATH
6030 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6031 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6032 soname_spec='${libname}${release}.sl$major'
6033 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6034 postinstall_cmds='chmod 555 $lib'
6041 soname_spec='${libname}${release}.so$major'
6042 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6048 case $LD in # libtool.m4 will add one of these switches to LD
6049 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6050 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6051 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6052 *) libsuff= shlibsuff= libmagic=never-match;;
6056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6057 shlibpath_overrides_runpath=no
6058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6062 # No shared lib support for Linux oldld, aout, or coff.
6063 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6067 # This must be Linux ELF.
6072 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6073 soname_spec='${libname}${release}.so$major'
6074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6075 shlibpath_var=LD_LIBRARY_PATH
6076 shlibpath_overrides_runpath=no
6077 # This implies no fast_install, which is unacceptable.
6078 # Some rework will be needed to allow for fast_install
6079 # before this can be enabled.
6080 hardcode_into_libs=yes
6082 # We used to test for /lib/ld.so.1 and disable shared libraries on
6083 # powerpc, because MkLinux only supported shared libraries with the
6084 # GNU dynamic linker. Since this was broken with cross compilers,
6085 # most powerpc-linux boxes support dynamic linking these days and
6086 # people can always --disable-shared, the test was removed, and we
6087 # assume the GNU/Linux dynamic linker is in use.
6088 dynamic_linker='GNU/Linux ld.so'
6095 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6096 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6098 dynamic_linker='NetBSD (a.out) ld.so'
6100 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6101 soname_spec='${libname}${release}.so$major'
6102 dynamic_linker='NetBSD ld.elf_so'
6104 shlibpath_var=LD_LIBRARY_PATH
6105 shlibpath_overrides_runpath=yes
6106 hardcode_into_libs=yes
6111 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6112 shlibpath_var=LD_LIBRARY_PATH
6113 shlibpath_overrides_runpath=yes
6120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6122 openbsd2.[89] | openbsd2.[89].*)
6123 shlibpath_overrides_runpath=no
6126 shlibpath_overrides_runpath=yes
6130 shlibpath_overrides_runpath=yes
6132 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6134 shlibpath_var=LD_LIBRARY_PATH
6138 libname_spec='$name'
6140 library_names_spec='$libname.dll $libname.a'
6141 dynamic_linker='OS/2 ld.exe'
6142 shlibpath_var=LIBPATH
6145 osf3* | osf4* | osf5*)
6148 soname_spec='${libname}${release}.so'
6149 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6150 shlibpath_var=LD_LIBRARY_PATH
6151 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6152 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6157 soname_spec='${libname}${release}.so$major'
6158 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6159 shlibpath_var=LD_LIBRARY_PATH
6166 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6167 soname_spec='${libname}${release}.so$major'
6168 shlibpath_var=LD_LIBRARY_PATH
6169 shlibpath_overrides_runpath=yes
6170 hardcode_into_libs=yes
6171 # ldd complains unless libraries are executable
6172 postinstall_cmds='chmod +x $lib'
6177 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6178 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6179 shlibpath_var=LD_LIBRARY_PATH
6180 shlibpath_overrides_runpath=yes
6181 if test "$with_gnu_ld" = yes; then
6187 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6189 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6190 soname_spec='${libname}${release}.so$major'
6191 shlibpath_var=LD_LIBRARY_PATH
6192 case $host_vendor in
6194 shlibpath_overrides_runpath=no
6199 shlibpath_overrides_runpath=no
6200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6207 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6208 soname_spec='${libname}${release}.so$major'
6209 shlibpath_var=LD_LIBRARY_PATH
6216 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6217 soname_spec='${libname}${release}.so$major'
6218 shlibpath_var=LD_LIBRARY_PATH
6222 if test -d /usr/nec ;then
6224 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6225 soname_spec='$libname.so.$major'
6226 shlibpath_var=LD_LIBRARY_PATH
6234 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6235 echo "${ECHO_T}$dynamic_linker" >&6
6236 test "$dynamic_linker" = no && can_build_shared=no
6238 # Report the final consequences.
6239 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6240 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6241 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6242 echo "${ECHO_T}$can_build_shared" >&6
6244 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6245 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6246 test "$can_build_shared" = "no" && enable_shared=no
6248 # On AIX, shared libraries and static libraries use the same namespace, and
6249 # are all built from PIC.
6252 test "$enable_shared" = yes && enable_static=no
6253 if test -n "$RANLIB"; then
6254 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6255 postinstall_cmds='$RANLIB $lib'
6260 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6261 test "$enable_shared" = yes && enable_static=no
6265 echo "$as_me:$LINENO: result: $enable_shared" >&5
6266 echo "${ECHO_T}$enable_shared" >&6
6268 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6269 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6270 # Make sure either enable_shared or enable_static is yes.
6271 test "$enable_shared" = yes || enable_static=yes
6272 echo "$as_me:$LINENO: result: $enable_static" >&5
6273 echo "${ECHO_T}$enable_static" >&6
6275 if test "$hardcode_action" = relink; then
6276 # Fast installation is not supported
6277 enable_fast_install=no
6278 elif test "$shlibpath_overrides_runpath" = yes ||
6279 test "$enable_shared" = no; then
6280 # Fast installation is not necessary
6281 enable_fast_install=needless
6284 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6285 if test "$GCC" = yes; then
6286 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6289 if test "x$enable_dlopen" != xyes; then
6290 enable_dlopen=unknown
6291 enable_dlopen_self=unknown
6292 enable_dlopen_self_static=unknown
6299 lt_cv_dlopen="load_add_on"
6301 lt_cv_dlopen_self=yes
6304 cygwin* | mingw* | pw32*)
6305 lt_cv_dlopen="LoadLibrary"
6310 echo "$as_me:$LINENO: checking for shl_load" >&5
6311 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6312 if test "${ac_cv_func_shl_load+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 cat >conftest.$ac_ext <<_ACEOF
6316 #line $LINENO "configure"
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 /* System header to define __stub macros and hopefully few prototypes,
6323 which can conflict with char shl_load (); below.
6324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6325 <limits.h> exists even on freestanding compilers. */
6327 # include <limits.h>
6329 # include <assert.h>
6331 /* Override any gcc2 internal prototype to avoid an error. */
6336 /* We use char because int might match the return type of a gcc2
6337 builtin and then its argument prototype would still apply. */
6339 /* The GNU C library defines this for functions which it implements
6340 to always fail with ENOSYS. Some functions are actually named
6341 something starting with __ and the normal name is an alias. */
6342 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6345 char (*f) () = shl_load;
6354 return f != shl_load;
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361 (eval $ac_link) 2>&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -s conftest$ac_exeext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_cv_func_shl_load=yes
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 ac_cv_func_shl_load=no
6378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6380 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6381 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6382 if test $ac_cv_func_shl_load = yes; then
6383 lt_cv_dlopen="shl_load"
6385 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6386 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6387 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 ac_check_lib_save_LIBS=$LIBS
6392 cat >conftest.$ac_ext <<_ACEOF
6393 #line $LINENO "configure"
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6400 /* Override any gcc2 internal prototype to avoid an error. */
6404 /* We use char because int might match the return type of a gcc2
6405 builtin and then its argument prototype would still apply. */
6415 rm -f conftest.$ac_objext conftest$ac_exeext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417 (eval $ac_link) 2>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } &&
6421 { ac_try='test -s conftest$ac_exeext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_cv_lib_dld_shl_load=yes
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 ac_cv_lib_dld_shl_load=no
6434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6435 LIBS=$ac_check_lib_save_LIBS
6437 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6438 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6439 if test $ac_cv_lib_dld_shl_load = yes; then
6440 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6442 echo "$as_me:$LINENO: checking for dlopen" >&5
6443 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6444 if test "${ac_cv_func_dlopen+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 cat >conftest.$ac_ext <<_ACEOF
6448 #line $LINENO "configure"
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 /* System header to define __stub macros and hopefully few prototypes,
6455 which can conflict with char dlopen (); below.
6456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6457 <limits.h> exists even on freestanding compilers. */
6459 # include <limits.h>
6461 # include <assert.h>
6463 /* Override any gcc2 internal prototype to avoid an error. */
6468 /* We use char because int might match the return type of a gcc2
6469 builtin and then its argument prototype would still apply. */
6471 /* The GNU C library defines this for functions which it implements
6472 to always fail with ENOSYS. Some functions are actually named
6473 something starting with __ and the normal name is an alias. */
6474 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6477 char (*f) () = dlopen;
6491 rm -f conftest.$ac_objext conftest$ac_exeext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493 (eval $ac_link) 2>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try='test -s conftest$ac_exeext'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 ac_cv_func_dlopen=yes
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6508 ac_cv_func_dlopen=no
6510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6512 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6513 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6514 if test $ac_cv_func_dlopen = yes; then
6515 lt_cv_dlopen="dlopen"
6517 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6518 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6519 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 ac_check_lib_save_LIBS=$LIBS
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6532 /* Override any gcc2 internal prototype to avoid an error. */
6536 /* We use char because int might match the return type of a gcc2
6537 builtin and then its argument prototype would still apply. */
6547 rm -f conftest.$ac_objext conftest$ac_exeext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -s conftest$ac_exeext'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6559 ac_cv_lib_dl_dlopen=yes
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 ac_cv_lib_dl_dlopen=no
6566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6567 LIBS=$ac_check_lib_save_LIBS
6569 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6570 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6571 if test $ac_cv_lib_dl_dlopen = yes; then
6572 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6574 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6575 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6576 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 ac_check_lib_save_LIBS=$LIBS
6581 cat >conftest.$ac_ext <<_ACEOF
6582 #line $LINENO "configure"
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6589 /* Override any gcc2 internal prototype to avoid an error. */
6593 /* We use char because int might match the return type of a gcc2
6594 builtin and then its argument prototype would still apply. */
6604 rm -f conftest.$ac_objext conftest$ac_exeext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6606 (eval $ac_link) 2>&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try='test -s conftest$ac_exeext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_lib_svld_dlopen=yes
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 ac_cv_lib_svld_dlopen=no
6623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6624 LIBS=$ac_check_lib_save_LIBS
6626 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6627 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6628 if test $ac_cv_lib_svld_dlopen = yes; then
6629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6631 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6632 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6633 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 ac_check_lib_save_LIBS=$LIBS
6638 cat >conftest.$ac_ext <<_ACEOF
6639 #line $LINENO "configure"
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6646 /* Override any gcc2 internal prototype to avoid an error. */
6650 /* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */
6661 rm -f conftest.$ac_objext conftest$ac_exeext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6663 (eval $ac_link) 2>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 ac_cv_lib_dld_dld_link=yes
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 ac_cv_lib_dld_dld_link=no
6680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6681 LIBS=$ac_check_lib_save_LIBS
6683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6684 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6685 if test $ac_cv_lib_dld_dld_link = yes; then
6686 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6707 if test "x$lt_cv_dlopen" != xno; then
6713 case $lt_cv_dlopen in
6715 save_CPPFLAGS="$CPPFLAGS"
6716 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6718 save_LDFLAGS="$LDFLAGS"
6719 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6722 LIBS="$lt_cv_dlopen_libs $LIBS"
6724 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6725 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6726 if test "${lt_cv_dlopen_self+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 if test "$cross_compiling" = yes; then :
6730 lt_cv_dlopen_self=cross
6732 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6733 lt_status=$lt_dlunknown
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6735 "configure"
6736 #include "confdefs.h"
6745 # define LT_DLGLOBAL RTLD_GLOBAL
6748 # define LT_DLGLOBAL DL_GLOBAL
6750 # define LT_DLGLOBAL 0
6754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6755 find out it does not work in some platform. */
6756 #ifndef LT_DLLAZY_OR_NOW
6758 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6761 # define LT_DLLAZY_OR_NOW DL_LAZY
6764 # define LT_DLLAZY_OR_NOW RTLD_NOW
6767 # define LT_DLLAZY_OR_NOW DL_NOW
6769 # define LT_DLLAZY_OR_NOW 0
6777 extern "C" void exit (int);
6780 void fnord() { int i=42;}
6783 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6784 int status = $lt_dlunknown;
6788 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6789 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6790 /* dlclose (self); */
6796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6797 (eval $ac_link) 2>&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6801 (./conftest; exit; ) 2>/dev/null
6804 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6805 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6806 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6809 # compilation failed
6810 lt_cv_dlopen_self=no
6817 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6818 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6820 if test "x$lt_cv_dlopen_self" = xyes; then
6821 LDFLAGS="$LDFLAGS $link_static_flag"
6822 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6823 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6824 if test "${lt_cv_dlopen_self_static+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 if test "$cross_compiling" = yes; then :
6828 lt_cv_dlopen_self_static=cross
6830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6831 lt_status=$lt_dlunknown
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6833 "configure"
6834 #include "confdefs.h"
6843 # define LT_DLGLOBAL RTLD_GLOBAL
6846 # define LT_DLGLOBAL DL_GLOBAL
6848 # define LT_DLGLOBAL 0
6852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6853 find out it does not work in some platform. */
6854 #ifndef LT_DLLAZY_OR_NOW
6856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6859 # define LT_DLLAZY_OR_NOW DL_LAZY
6862 # define LT_DLLAZY_OR_NOW RTLD_NOW
6865 # define LT_DLLAZY_OR_NOW DL_NOW
6867 # define LT_DLLAZY_OR_NOW 0
6875 extern "C" void exit (int);
6878 void fnord() { int i=42;}
6881 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6882 int status = $lt_dlunknown;
6886 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6887 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6888 /* dlclose (self); */
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6899 (./conftest; exit; ) 2>/dev/null
6902 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6903 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6904 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6907 # compilation failed
6908 lt_cv_dlopen_self_static=no
6915 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6916 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6919 CPPFLAGS="$save_CPPFLAGS"
6920 LDFLAGS="$save_LDFLAGS"
6925 case $lt_cv_dlopen_self in
6926 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6927 *) enable_dlopen_self=unknown ;;
6930 case $lt_cv_dlopen_self_static in
6931 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6932 *) enable_dlopen_self_static=unknown ;;
6937 if test "$enable_shared" = yes && test "$GCC" = yes; then
6938 case $archive_cmds in
6940 # FIXME: we may have to deal with multi-command sequences.
6943 # Test whether the compiler implicitly links with -lc since on some
6944 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6945 # to ld, don't add -lc before -lgcc.
6946 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6947 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6948 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 echo 'static int dummy;' > conftest.$ac_ext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955 (eval $ac_compile) 2>&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; then
6961 libobjs=conftest.$ac_objext
6963 wl=$lt_cv_prog_cc_wl
6969 save_allow_undefined_flag=$allow_undefined_flag
6970 allow_undefined_flag=
6971 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6972 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }
6977 lt_cv_archive_cmds_need_lc=no
6979 lt_cv_archive_cmds_need_lc=yes
6981 allow_undefined_flag=$save_allow_undefined_flag
6983 cat conftest.err 1>&5
6987 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6988 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6992 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6994 # The second clause should only fire when bootstrapping the
6995 # libtool distribution, otherwise you forgot to ship ltmain.sh
6996 # with your package, and you will get complaints that there are
6997 # no rules to generate ltmain.sh.
6998 if test -f "$ltmain"; then
7001 # If there is no Makefile yet, we rely on a make rule to execute
7002 # `config.status --recheck' to rerun these tests and create the
7003 # libtool script then.
7004 test -f Makefile && make "$ltmain"
7007 if test -f "$ltmain"; then
7008 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7011 echo creating $ofile
7013 # Now quote all the things that may contain metacharacters while being
7014 # careful not to overquote the AC_SUBSTed values. We take copies of the
7015 # variables and quote the copies for generation of the libtool script.
7016 for var in echo old_CC old_CFLAGS \
7017 AR AR_FLAGS CC LD LN_S NM SHELL \
7018 reload_flag reload_cmds wl \
7019 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7020 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7021 library_names_spec soname_spec \
7022 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7023 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7024 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7025 old_striplib striplib file_magic_cmd export_symbols_cmds \
7026 deplibs_check_method allow_undefined_flag no_undefined_flag \
7027 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7028 global_symbol_to_c_name_address \
7029 hardcode_libdir_flag_spec hardcode_libdir_separator \
7030 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7031 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7034 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7035 old_postinstall_cmds | old_postuninstall_cmds | \
7036 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7037 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7038 postinstall_cmds | postuninstall_cmds | \
7039 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7040 # Double-quote double-evaled strings.
7041 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7044 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7049 cat <<__EOF__ > "${ofile}T"
7052 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7053 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7054 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7056 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7057 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7059 # This program is free software; you can redistribute it and/or modify
7060 # it under the terms of the GNU General Public License as published by
7061 # the Free Software Foundation; either version 2 of the License, or
7062 # (at your option) any later version.
7064 # This program is distributed in the hope that it will be useful, but
7065 # WITHOUT ANY WARRANTY; without even the implied warranty of
7066 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7067 # General Public License for more details.
7069 # You should have received a copy of the GNU General Public License
7070 # along with this program; if not, write to the Free Software
7071 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7073 # As a special exception to the GNU General Public License, if you
7074 # distribute this file as part of a program that contains a
7075 # configuration script generated by Autoconf, you may include it under
7076 # the same distribution terms that you use for the rest of that program.
7078 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7079 Xsed="sed -e s/^X//"
7081 # The HP-UX ksh and POSIX shell print the target directory to stdout
7083 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7085 # ### BEGIN LIBTOOL CONFIG
7087 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7089 # Shell to use when invoking shell scripts.
7092 # Whether or not to build shared libraries.
7093 build_libtool_libs=$enable_shared
7095 # Whether or not to build static libraries.
7096 build_old_libs=$enable_static
7098 # Whether or not to add -lc for building shared libraries.
7099 build_libtool_need_lc=$need_lc
7101 # Whether or not to optimize for fast installation.
7102 fast_install=$enable_fast_install
7105 host_alias=$host_alias
7108 # An echo program that does not interpret backslashes.
7113 AR_FLAGS=$lt_AR_FLAGS
7115 # The default C compiler.
7118 # Is the compiler the GNU C compiler?
7121 # The linker used to build libraries.
7124 # Whether we need hard or soft links.
7127 # A BSD-compatible nm program.
7130 # A symbol stripping program
7133 # Used to examine libraries when file_magic_cmd begins "file"
7134 MAGIC_CMD=$MAGIC_CMD
7136 # Used on cygwin: DLL creation program.
7139 # Used on cygwin: object dumper.
7142 # Used on cygwin: assembler.
7145 # The name of the directory that contains temporary libtool files.
7148 # How to create reloadable object files.
7149 reload_flag=$lt_reload_flag
7150 reload_cmds=$lt_reload_cmds
7152 # How to pass a linker flag through the compiler.
7155 # Object file suffix (normally "o").
7158 # Old archive suffix (normally "a").
7161 # Executable file suffix (normally "").
7164 # Additional compiler flags for building library objects.
7165 pic_flag=$lt_pic_flag
7168 # Does compiler simultaneously support -c and -o options?
7169 compiler_c_o=$lt_compiler_c_o
7171 # Can we write directly to a .lo ?
7172 compiler_o_lo=$lt_compiler_o_lo
7174 # Must we lock files when doing compilation ?
7175 need_locks=$lt_need_locks
7177 # Do we need the lib prefix for modules?
7178 need_lib_prefix=$need_lib_prefix
7180 # Do we need a version for libraries?
7181 need_version=$need_version
7183 # Whether dlopen is supported.
7184 dlopen_support=$enable_dlopen
7186 # Whether dlopen of programs is supported.
7187 dlopen_self=$enable_dlopen_self
7189 # Whether dlopen of statically linked programs is supported.
7190 dlopen_self_static=$enable_dlopen_self_static
7192 # Compiler flag to prevent dynamic linking.
7193 link_static_flag=$lt_link_static_flag
7195 # Compiler flag to turn off builtin functions.
7196 no_builtin_flag=$lt_no_builtin_flag
7198 # Compiler flag to allow reflexive dlopens.
7199 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7201 # Compiler flag to generate shared objects directly from archives.
7202 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7204 # Compiler flag to generate thread-safe objects.
7205 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7207 # Library versioning type.
7208 version_type=$version_type
7210 # Format of library name prefix.
7211 libname_spec=$lt_libname_spec
7213 # List of archive names. First name is the real one, the rest are links.
7214 # The last name is the one that the linker finds with -lNAME.
7215 library_names_spec=$lt_library_names_spec
7217 # The coded name of the library, if different from the real name.
7218 soname_spec=$lt_soname_spec
7220 # Commands used to build and install an old-style archive.
7222 old_archive_cmds=$lt_old_archive_cmds
7223 old_postinstall_cmds=$lt_old_postinstall_cmds
7224 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7226 # Create an old-style archive from a shared archive.
7227 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7229 # Create a temporary old-style archive to link instead of a shared archive.
7230 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7232 # Commands used to build and install a shared archive.
7233 archive_cmds=$lt_archive_cmds
7234 archive_expsym_cmds=$lt_archive_expsym_cmds
7235 postinstall_cmds=$lt_postinstall_cmds
7236 postuninstall_cmds=$lt_postuninstall_cmds
7238 # Commands to strip libraries.
7239 old_striplib=$lt_old_striplib
7240 striplib=$lt_striplib
7242 # Method to check whether dependent libraries are shared objects.
7243 deplibs_check_method=$lt_deplibs_check_method
7245 # Command to use when deplibs_check_method == file_magic.
7246 file_magic_cmd=$lt_file_magic_cmd
7248 # Flag that allows shared libraries with undefined symbols to be built.
7249 allow_undefined_flag=$lt_allow_undefined_flag
7251 # Flag that forces no undefined symbols.
7252 no_undefined_flag=$lt_no_undefined_flag
7254 # Commands used to finish a libtool library installation in a directory.
7255 finish_cmds=$lt_finish_cmds
7257 # Same as above, but a single script fragment to be evaled but not shown.
7258 finish_eval=$lt_finish_eval
7260 # Take the output of nm and produce a listing of raw symbols and C names.
7261 global_symbol_pipe=$lt_global_symbol_pipe
7263 # Transform the output of nm in a proper C declaration
7264 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7266 # Transform the output of nm in a C name address pair
7267 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7269 # This is the shared library runtime path variable.
7270 runpath_var=$runpath_var
7272 # This is the shared library path variable.
7273 shlibpath_var=$shlibpath_var
7275 # Is shlibpath searched before the hard-coded library search path?
7276 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7278 # How to hardcode a shared library path into an executable.
7279 hardcode_action=$hardcode_action
7281 # Whether we should hardcode library paths into libraries.
7282 hardcode_into_libs=$hardcode_into_libs
7284 # Flag to hardcode \$libdir into a binary during linking.
7285 # This must work even if \$libdir does not exist.
7286 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7288 # Whether we need a single -rpath flag with a separated argument.
7289 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7291 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7293 hardcode_direct=$hardcode_direct
7295 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7297 hardcode_minus_L=$hardcode_minus_L
7299 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7300 # the resulting binary.
7301 hardcode_shlibpath_var=$hardcode_shlibpath_var
7303 # Variables whose values should be saved in libtool wrapper scripts and
7304 # restored at relink time.
7305 variables_saved_for_relink="$variables_saved_for_relink"
7307 # Whether libtool must link a program against all its dependency libraries.
7308 link_all_deplibs=$link_all_deplibs
7310 # Compile-time system search path for libraries
7311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7313 # Run-time system search path for libraries
7314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7316 # Fix the shell variable \$srcfile for the compiler.
7317 fix_srcfile_path="$fix_srcfile_path"
7319 # Set to yes if exported symbols are required.
7320 always_export_symbols=$always_export_symbols
7322 # The commands to list exported symbols.
7323 export_symbols_cmds=$lt_export_symbols_cmds
7325 # The commands to extract the exported symbol list from a shared archive.
7326 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7328 # Symbols that should not be listed in the preloaded symbols.
7329 exclude_expsyms=$lt_exclude_expsyms
7331 # Symbols that must always be exported.
7332 include_expsyms=$lt_include_expsyms
7334 # ### END LIBTOOL CONFIG
7340 cat <<\EOF >> "${ofile}T"
7342 # AIX sometimes has problems with the GCC collect2 program. For some
7343 # reason, if we set the COLLECT_NAMES environment variable, the problems
7344 # vanish in a puff of smoke.
7345 if test "X${COLLECT_NAMES+set}" != Xset; then
7347 export COLLECT_NAMES
7354 cygwin* | mingw* | pw32* | os2*)
7355 cat <<'EOF' >> "${ofile}T"
7356 # This is a source program that is used to create dlls on Windows
7357 # Don't remove nor modify the starting and closing comments
7358 # /* ltdll.c starts here */
7359 # #define WIN32_LEAN_AND_MEAN
7360 # #include <windows.h>
7361 # #undef WIN32_LEAN_AND_MEAN
7362 # #include <stdio.h>
7364 # #ifndef __CYGWIN__
7365 # # ifdef __CYGWIN32__
7366 # # define __CYGWIN__ __CYGWIN32__
7370 # #ifdef __cplusplus
7373 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7374 # #ifdef __cplusplus
7379 # #include <cygwin/cygwin_dll.h>
7380 # DECLARE_CYGWIN_DLL( DllMain );
7382 # HINSTANCE __hDllInstance_base;
7385 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7387 # __hDllInstance_base = hInst;
7390 # /* ltdll.c ends here */
7391 # This is a source program that is used to create import libraries
7392 # on Windows for dlls which lack them. Don't remove nor modify the
7393 # starting and closing comments
7394 # /* impgen.c starts here */
7395 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7397 # This file is part of GNU libtool.
7399 # This program is free software; you can redistribute it and/or modify
7400 # it under the terms of the GNU General Public License as published by
7401 # the Free Software Foundation; either version 2 of the License, or
7402 # (at your option) any later version.
7404 # This program is distributed in the hope that it will be useful,
7405 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7406 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7407 # GNU General Public License for more details.
7409 # You should have received a copy of the GNU General Public License
7410 # along with this program; if not, write to the Free Software
7411 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7414 # #include <stdio.h> /* for printf() */
7415 # #include <unistd.h> /* for open(), lseek(), read() */
7416 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7417 # #include <string.h> /* for strdup() */
7419 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7421 # #define O_BINARY 0
7424 # static unsigned int
7425 # pe_get16 (fd, offset)
7429 # unsigned char b[2];
7430 # lseek (fd, offset, SEEK_SET);
7432 # return b[0] + (b[1]<<8);
7435 # static unsigned int
7436 # pe_get32 (fd, offset)
7440 # unsigned char b[4];
7441 # lseek (fd, offset, SEEK_SET);
7443 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7446 # static unsigned int
7450 # unsigned char *b = ptr;
7451 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7460 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7461 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7462 # unsigned long name_rvas, nexp;
7463 # unsigned char *expdata, *erva;
7464 # char *filename, *dll_name;
7466 # filename = argv[1];
7468 # dll = open(filename, O_RDONLY|O_BINARY);
7472 # dll_name = filename;
7474 # for (i=0; filename[i]; i++)
7475 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7476 # dll_name = filename + i +1;
7478 # pe_header_offset = pe_get32 (dll, 0x3c);
7479 # opthdr_ofs = pe_header_offset + 4 + 20;
7480 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7482 # if (num_entries < 1) /* no exports */
7485 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7486 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7487 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7488 # secptr = (pe_header_offset + 4 + 20 +
7489 # pe_get16 (dll, pe_header_offset + 4 + 16));
7492 # for (i = 0; i < nsections; i++)
7495 # unsigned long secptr1 = secptr + 40 * i;
7496 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7497 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7498 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7499 # lseek(dll, secptr1, SEEK_SET);
7500 # read(dll, sname, 8);
7501 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7503 # expptr = fptr + (export_rva - vaddr);
7504 # if (export_rva + export_size > vaddr + vsize)
7505 # export_size = vsize - (export_rva - vaddr);
7510 # expdata = (unsigned char*)malloc(export_size);
7511 # lseek (dll, expptr, SEEK_SET);
7512 # read (dll, expdata, export_size);
7513 # erva = expdata - export_rva;
7515 # nexp = pe_as32 (expdata+24);
7516 # name_rvas = pe_as32 (expdata+32);
7518 # printf ("EXPORTS\n");
7519 # for (i = 0; i<nexp; i++)
7521 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7522 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7527 # /* impgen.c ends here */
7533 # We use sed instead of cat because bash on DJGPP gets confused if
7534 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7535 # text mode, it properly converts lines to CR/LF. This bash problem
7536 # is reportedly fixed, but why not run on old versions too?
7537 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7539 mv -f "${ofile}T" "$ofile" || \
7540 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7548 # This can be used to rebuild libtool when needed
7549 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7551 # Always use our own libtool.
7552 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7554 # Prevent multiple expansion
7559 ac_cpp='$CXXCPP $CPPFLAGS'
7560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7565 ac_cpp='$CXXCPP $CPPFLAGS'
7566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7569 if test -n "$ac_tool_prefix"; then
7570 for ac_prog in $CCC $EXTRA_CXX
7572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7574 echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7576 if test "${ac_cv_prog_CXX+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 if test -n "$CXX"; then
7580 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 if test -n "$CXX"; then
7600 echo "$as_me:$LINENO: result: $CXX" >&5
7601 echo "${ECHO_T}$CXX" >&6
7603 echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6
7607 test -n "$CXX" && break
7610 if test -z "$CXX"; then
7612 for ac_prog in $CCC $EXTRA_CXX
7614 # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7618 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 if test -n "$ac_ct_CXX"; then
7622 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631 ac_cv_prog_ac_ct_CXX="$ac_prog"
7632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7641 if test -n "$ac_ct_CXX"; then
7642 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7643 echo "${ECHO_T}$ac_ct_CXX" >&6
7645 echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6
7649 test -n "$ac_ct_CXX" && break
7651 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7657 # Provide some information about the compiler.
7658 echo "$as_me:$LINENO:" \
7659 "checking for C++ compiler version" >&5
7660 ac_compiler=`set X $ac_compile; echo $2`
7661 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7662 (eval $ac_compiler --version </dev/null >&5) 2>&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }
7666 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7667 (eval $ac_compiler -v </dev/null >&5) 2>&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }
7671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7672 (eval $ac_compiler -V </dev/null >&5) 2>&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }
7677 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7678 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 cat >conftest.$ac_ext <<_ACEOF
7683 #line $LINENO "configure"
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7701 rm -f conftest.$ac_objext
7702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703 (eval $ac_compile) 2>&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -s conftest.$ac_objext'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7720 rm -f conftest.$ac_objext conftest.$ac_ext
7721 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7724 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7725 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7726 GXX=`test $ac_compiler_gnu = yes && echo yes`
7727 ac_test_CXXFLAGS=${CXXFLAGS+set}
7728 ac_save_CXXFLAGS=$CXXFLAGS
7730 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7731 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7732 if test "${ac_cv_prog_cxx_g+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 cat >conftest.$ac_ext <<_ACEOF
7736 #line $LINENO "configure"
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7751 rm -f conftest.$ac_objext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7753 (eval $ac_compile) 2>&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -s conftest.$ac_objext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 ac_cv_prog_cxx_g=yes
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7770 rm -f conftest.$ac_objext conftest.$ac_ext
7772 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7773 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7774 if test "$ac_test_CXXFLAGS" = set; then
7775 CXXFLAGS=$ac_save_CXXFLAGS
7776 elif test $ac_cv_prog_cxx_g = yes; then
7777 if test "$GXX" = yes; then
7783 if test "$GXX" = yes; then
7789 for ac_declaration in \
7791 '#include <stdlib.h>' \
7792 'extern "C" void std::exit (int) throw (); using std::exit;' \
7793 'extern "C" void std::exit (int); using std::exit;' \
7794 'extern "C" void exit (int) throw ();' \
7795 'extern "C" void exit (int);' \
7798 cat >conftest.$ac_ext <<_ACEOF
7799 #line $LINENO "configure"
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7815 rm -f conftest.$ac_objext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7817 (eval $ac_compile) 2>&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -s conftest.$ac_objext'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7834 rm -f conftest.$ac_objext conftest.$ac_ext
7835 cat >conftest.$ac_ext <<_ACEOF
7836 #line $LINENO "configure"
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7851 rm -f conftest.$ac_objext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7853 (eval $ac_compile) 2>&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try='test -s conftest.$ac_objext'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7869 rm -f conftest.$ac_objext conftest.$ac_ext
7872 if test -n "$ac_declaration"; then
7873 echo '#ifdef __cplusplus' >>confdefs.h
7874 echo $ac_declaration >>confdefs.h
7875 echo '#endif' >>confdefs.h
7879 ac_cpp='$CXXCPP $CPPFLAGS'
7880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7884 depcc="$CXX" am_compiler_list=
7886 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7887 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7888 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7892 # We make a subdir and do the tests there. Otherwise we can end up
7893 # making bogus files that we don't know about and never remove. For
7894 # instance it was reported that on HP-UX the gcc test will end up
7895 # making a dummy file named `D' -- because `-MD' means `put the output
7898 # Copy depcomp to subdir because otherwise we won't find it if we're
7899 # using a relative directory.
7900 cp "$am_depcomp" conftest.dir
7903 am_cv_CXX_dependencies_compiler_type=none
7904 if test "$am_compiler_list" = ""; then
7905 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7907 for depmode in $am_compiler_list; do
7908 # We need to recreate these files for each test, as the compiler may
7909 # overwrite some of them when testing with obscure command lines.
7910 # This happens at least with the AIX C compiler.
7911 echo '#include "conftest.h"' > conftest.c
7912 echo 'int i;' > conftest.h
7913 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
7917 # after this tag, mechanisms are not by side-effect, so they'll
7918 # only be used when explicitly requested
7919 if test "x$enable_dependency_tracking" = xyes; then
7927 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7928 # mode. It turns out that the SunPro C++ compiler does not properly
7929 # handle `-M -o', and we need to detect this.
7930 if depmode=$depmode \
7931 source=conftest.c object=conftest.o \
7932 depfile=conftest.Po tmpdepfile=conftest.TPo \
7933 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7934 grep conftest.h conftest.Po > /dev/null 2>&1 &&
7935 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7936 am_cv_CXX_dependencies_compiler_type=$depmode
7944 am_cv_CXX_dependencies_compiler_type=none
7948 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7949 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7950 CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
7954 ac_cpp='$CXXCPP $CPPFLAGS'
7955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7958 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7959 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7960 if test -z "$CXXCPP"; then
7961 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 # Double quotes because CXXCPP needs to be expanded
7965 for CXXCPP in "$CXX -E" "/lib/cpp"
7968 for ac_cxx_preproc_warn_flag in '' yes
7970 # Use a header file that comes with gcc, so configuring glibc
7971 # with a fresh cross-compiler works.
7972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7973 # <limits.h> exists even on freestanding compilers.
7974 # On the NeXT, cc -E runs the code through the compiler's parser,
7975 # not just through cpp. "Syntax error" is here to catch this case.
7976 cat >conftest.$ac_ext <<_ACEOF
7977 #line $LINENO "configure"
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7984 # include <limits.h>
7986 # include <assert.h>
7990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7993 grep -v '^ *+' conftest.er1 >conftest.err
7995 cat conftest.err >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } >/dev/null; then
7998 if test -s conftest.err; then
7999 ac_cpp_err=$ac_cxx_preproc_warn_flag
8006 if test -z "$ac_cpp_err"; then
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8012 # Broken: fails on valid input.
8015 rm -f conftest.err conftest.$ac_ext
8017 # OK, works on sane cases. Now check whether non-existent headers
8018 # can be detected and how.
8019 cat >conftest.$ac_ext <<_ACEOF
8020 #line $LINENO "configure"
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 #include <ac_nonexistent.h>
8028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8031 grep -v '^ *+' conftest.er1 >conftest.err
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } >/dev/null; then
8036 if test -s conftest.err; then
8037 ac_cpp_err=$ac_cxx_preproc_warn_flag
8044 if test -z "$ac_cpp_err"; then
8045 # Broken: success on invalid input.
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051 # Passes both tests.
8055 rm -f conftest.err conftest.$ac_ext
8058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8059 rm -f conftest.err conftest.$ac_ext
8060 if $ac_preproc_ok; then
8065 ac_cv_prog_CXXCPP=$CXXCPP
8068 CXXCPP=$ac_cv_prog_CXXCPP
8070 ac_cv_prog_CXXCPP=$CXXCPP
8072 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8073 echo "${ECHO_T}$CXXCPP" >&6
8075 for ac_cxx_preproc_warn_flag in '' yes
8077 # Use a header file that comes with gcc, so configuring glibc
8078 # with a fresh cross-compiler works.
8079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8080 # <limits.h> exists even on freestanding compilers.
8081 # On the NeXT, cc -E runs the code through the compiler's parser,
8082 # not just through cpp. "Syntax error" is here to catch this case.
8083 cat >conftest.$ac_ext <<_ACEOF
8084 #line $LINENO "configure"
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8091 # include <limits.h>
8093 # include <assert.h>
8097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8100 grep -v '^ *+' conftest.er1 >conftest.err
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } >/dev/null; then
8105 if test -s conftest.err; then
8106 ac_cpp_err=$ac_cxx_preproc_warn_flag
8113 if test -z "$ac_cpp_err"; then
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 # Broken: fails on valid input.
8122 rm -f conftest.err conftest.$ac_ext
8124 # OK, works on sane cases. Now check whether non-existent headers
8125 # can be detected and how.
8126 cat >conftest.$ac_ext <<_ACEOF
8127 #line $LINENO "configure"
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 #include <ac_nonexistent.h>
8135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8138 grep -v '^ *+' conftest.er1 >conftest.err
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } >/dev/null; then
8143 if test -s conftest.err; then
8144 ac_cpp_err=$ac_cxx_preproc_warn_flag
8151 if test -z "$ac_cpp_err"; then
8152 # Broken: success on invalid input.
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 # Passes both tests.
8162 rm -f conftest.err conftest.$ac_ext
8165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8166 rm -f conftest.err conftest.$ac_ext
8167 if $ac_preproc_ok; then
8170 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8171 See \`config.log' for more details." >&5
8172 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8173 See \`config.log' for more details." >&2;}
8174 { (exit 1); exit 1; }; }
8178 ac_cpp='$CXXCPP $CPPFLAGS'
8179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8185 # Check whether --enable-warnings or --disable-warnings was given.
8186 if test "${enable_warnings+set}" = set; then
8187 enableval="$enable_warnings"
8190 if test -z "$enable_warnings"; then
8193 if test x$enable_warnings != xno; then
8194 CXXWARNING_FLAGS='-Wall -W -Winline -Wno-unused-parameter'
8195 echo "$as_me:$LINENO: checking Whether $CXX accepts -Wno-unused-parameter" >&5
8196 echo $ECHO_N "checking Whether $CXX accepts -Wno-unused-parameter... $ECHO_C" >&6
8197 old_cxxflags="$CXXFLAGS"
8198 CXXFLAGS="$old_cxxflags $CXXWARNING_FLAGS"
8200 cat >conftest.$ac_ext <<_ACEOF
8201 #line $LINENO "configure"
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8216 rm -f conftest.$ac_objext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8218 (eval $ac_compile) 2>&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try='test -s conftest.$ac_objext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 echo "$as_me:$LINENO: result: yes" >&5
8229 echo "${ECHO_T}yes" >&6
8231 echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8234 echo "$as_me:$LINENO: result: no" >&5
8235 echo "${ECHO_T}no" >&6
8236 CXXWARNING_FLAGS="-Wall -W -Winline"
8239 rm -f conftest.$ac_objext conftest.$ac_ext
8240 CXXFLAGS="$old_cxxflags"
8244 # Check whether --enable-abort-on-error or --disable-abort-on-error was given.
8245 if test "${enable_abort_on_error+set}" = set; then
8246 enableval="$enable_abort_on_error"
8248 cat >>confdefs.h <<\_ACEOF
8249 #define SABLOT_ABORT_ON_ERROR 1
8254 # Check whether --enable-adding-meta or --disable-adding-meta was given.
8255 if test "${enable_adding_meta+set}" = set; then
8256 enableval="$enable_adding_meta"
8259 if test x$enable_adding_meta = xno; then
8261 cat >>confdefs.h <<\_ACEOF
8262 #define SABLOT_DISABLE_ADDING_META 1
8267 # Check whether --enable-document-errors or --disable-document-errors was given.
8268 if test "${enable_document_errors+set}" = set; then
8269 enableval="$enable_document_errors"
8272 if test x$enable_document_errors = xno; then
8274 cat >>confdefs.h <<\_ACEOF
8275 #define SABLOT_DISABLE_DOC_ERRORS 1
8280 # Check whether --enable-javascript or --disable-javascript was given.
8281 if test "${enable_javascript+set}" = set; then
8282 enableval="$enable_javascript"
8285 if test x$enable_javascript = xyes; then
8288 cat >>confdefs.h <<\_ACEOF
8296 # Check whether --with-js-prefix or --without-js-prefix was given.
8297 if test "${with_js_prefix+set}" = set; then
8298 withval="$with_js_prefix"
8299 if test -x $withval ; then
8300 #on Redhat js header files are in include/js
8301 if test -x $withval/include/js ; then
8302 CFLAGS="$CFLAGS -I$withval/include/js"
8303 CXXFLAGS="$CXXFLAGS -I$withval/include/js"
8304 CPPFLAGS="$CPPFLAGS -I$withval/include/js"
8306 if test -x $withval/include ; then
8307 CFLAGS="$CFLAGS -I$withval/include"
8308 CPPFLAGS="$CPPFLAGS -I$withval/include"
8309 CXXFLAGS="$CXXFLAGS -I$withval/include"
8311 { { echo "$as_me:$LINENO: error: prefix for JavaScript not valid (include dir)" >&5
8312 echo "$as_me: error: prefix for JavaScript not valid (include dir)" >&2;}
8313 { (exit 1); exit 1; }; }
8316 if test -x $withval/lib ; then
8317 LDFLAGS="$LDFLAGS -L$withval/lib"
8319 { { echo "$as_me:$LINENO: error: prefix for JavaScript library invalid (libdir)" >&5
8320 echo "$as_me: error: prefix for JavaScript library invalid (libdir)" >&2;}
8321 { (exit 1); exit 1; }; }
8324 { { echo "$as_me:$LINENO: error: prefix for JavaScript library invalid (not a directory)" >&5
8325 echo "$as_me: error: prefix for JavaScript library invalid (not a directory)" >&2;}
8326 { (exit 1); exit 1; }; }
8333 # Check whether --with-expat-prefix or --without-expat-prefix was given.
8334 if test "${with_expat_prefix+set}" = set; then
8335 withval="$with_expat_prefix"
8336 if test -x $withval ; then
8337 if test -x $withval/include ; then
8338 CFLAGS="$CFLAGS -I$withval/include"
8339 CPPFLAGS="$CPPFLAGS -I$withval/include"
8340 CXXFLAGS="$CXXFLAGS -I$withval/include"
8342 { { echo "$as_me:$LINENO: error: prefix for Expat not valid (include dir)" >&5
8343 echo "$as_me: error: prefix for Expat not valid (include dir)" >&2;}
8344 { (exit 1); exit 1; }; }
8346 if test -x $withval/lib ; then
8347 LDFLAGS="$LDFLAGS -L$withval/lib"
8349 { { echo "$as_me:$LINENO: error: prefix for Expat library invalid (libdir)" >&5
8350 echo "$as_me: error: prefix for Expat library invalid (libdir)" >&2;}
8351 { (exit 1); exit 1; }; }
8354 { { echo "$as_me:$LINENO: error: prefix for Expat library invalid (not a directory)" >&5
8355 echo "$as_me: error: prefix for Expat library invalid (not a directory)" >&2;}
8356 { (exit 1); exit 1; }; }
8363 # Check whether --with-iconv-prefix or --without-iconv-prefix was given.
8364 if test "${with_iconv_prefix+set}" = set; then
8365 withval="$with_iconv_prefix"
8366 if test -x $withval ; then
8367 if test -x $withval/include ; then
8368 CFLAGS="$CFLAGS -I$withval/include"
8369 CXXFLAGS="$CXXFLAGS -I$withval/include"
8370 CPPFLAGS="$CPPFLAGS -I$withval/include"
8372 { { echo "$as_me:$LINENO: error: prefix for Iconv not valid (include dir)" >&5
8373 echo "$as_me: error: prefix for Iconv not valid (include dir)" >&2;}
8374 { (exit 1); exit 1; }; }
8376 if test -x $withval/lib ; then
8377 LDFLAGS="$LDFLAGS -L$withval/lib"
8379 { { echo "$as_me:$LINENO: error: prefix for Iconv library invalid (libdir)" >&5
8380 echo "$as_me: error: prefix for Iconv library invalid (libdir)" >&2;}
8381 { (exit 1); exit 1; }; }
8384 { { echo "$as_me:$LINENO: error: prefix for Iconv library invalid (not a directory)" >&5
8385 echo "$as_me: error: prefix for Iconv library invalid (not a directory)" >&2;}
8386 { (exit 1); exit 1; }; }
8395 # Check whether --with-perl or --without-perl was given.
8396 if test "${with_perl+set}" = set; then
8397 withval="$with_perl"
8398 if test -x $withval ; then
8399 echo "$as_me:$LINENO: checking perl version of $withval" >&5
8400 echo $ECHO_N "checking perl version of $withval... $ECHO_C" >&6
8401 perlv=`$withval -v | sed -n -e "s%^This is perl, v\(ersion \)\?\(5.*\) built.*$%\2%p"`
8402 if test -z "$perlv" ; then
8403 { { echo "$as_me:$LINENO: error: You need to provide a path to perl 5" >&5
8404 echo "$as_me: error: You need to provide a path to perl 5" >&2;}
8405 { (exit 1); exit 1; }; }
8407 echo "$as_me:$LINENO: result: $perlv ok" >&5
8408 echo "${ECHO_T}$perlv ok" >&6
8413 { { echo "$as_me:$LINENO: error: Perl $withval is not executable" >&5
8414 echo "$as_me: error: Perl $withval is not executable" >&2;}
8415 { (exit 1); exit 1; }; }
8419 # Extract the first word of "perl", so it can be a program name with args.
8420 set dummy perl; ac_word=$2
8421 echo "$as_me:$LINENO: checking for $ac_word" >&5
8422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8423 if test "${ac_cv_path_PERL_PROG+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 ac_cv_path_PERL_PROG="$PERL_PROG" # Let the user override the test with a path.
8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 test -z "$as_dir" && as_dir=.
8436 for ac_exec_ext in '' $ac_executable_extensions; do
8437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8438 ac_cv_path_PERL_PROG="$as_dir/$ac_word$ac_exec_ext"
8439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 test -z "$ac_cv_path_PERL_PROG" && ac_cv_path_PERL_PROG="/usr/bin/perl"
8449 PERL_PROG=$ac_cv_path_PERL_PROG
8451 if test -n "$PERL_PROG"; then
8452 echo "$as_me:$LINENO: result: $PERL_PROG" >&5
8453 echo "${ECHO_T}$PERL_PROG" >&6
8455 echo "$as_me:$LINENO: result: no" >&5
8456 echo "${ECHO_T}no" >&6
8461 echo "$as_me:$LINENO: checking XML::Parser perl module" >&5
8462 echo $ECHO_N "checking XML::Parser perl module... $ECHO_C" >&6
8463 PERL_SOURCE='eval { require XML::Parser; }; print "yes" unless $@; '
8464 BUILD_APIDOCS=`echo $PERL_SOURCE | $PERL_PROG`
8465 if test "x$BUILD_APIDOCS" = "xyes"; then
8466 echo "$as_me:$LINENO: result: yes" >&5
8467 echo "${ECHO_T}yes" >&6
8469 echo "$as_me:$LINENO: result: no: documentation requires XML::Parser module and will not be built." >&5
8470 echo "${ECHO_T}no: documentation requires XML::Parser module and will not be built." >&6
8476 # Check whether --with-html-dir or --without-html-dir was given.
8477 if test "${with_html_dir+set}" = set; then
8478 withval="$with_html_dir"
8479 echo "$as_me:$LINENO: checking html dir" >&5
8480 echo $ECHO_N "checking html dir... $ECHO_C" >&6
8482 if test -x $withval ; then
8484 echo "$as_me:$LINENO: result: $withval" >&5
8485 echo "${ECHO_T}$withval" >&6
8488 { echo "$as_me:$LINENO: WARNING: Directory $withval does not exist and will be created" >&5
8489 echo "$as_me: WARNING: Directory $withval does not exist and will be created" >&2;}
8493 if test "x$BUILD_APIDOCS" = "xyes"; then
8494 { echo "$as_me:$LINENO: Setting html dir to $datadir/doc/html" >&5
8495 echo "$as_me: Setting html dir to $datadir/doc/html" >&6;}
8496 HTML_DIR=$datadir/doc/html
8503 # Check whether --enable-perlconnect or --disable-perlconnect was given.
8504 if test "${enable_perlconnect+set}" = set; then
8505 enableval="$enable_perlconnect"
8508 if test x$enable_perlconnect = xyes; then
8509 perlconnect_enabled=1
8511 perlconnect_enabled=0
8514 # Check whether --enable-iconv-typecast or --disable-iconv-typecast was given.
8515 if test "${enable_iconv_typecast+set}" = set; then
8516 enableval="$enable_iconv_typecast"
8519 if test x$enable_iconv_typecast = xyes; then
8520 force_iconv_typecast=1
8523 # Check whether --enable-check-leaks or --disable-check-leaks was given.
8524 if test "${enable_check_leaks+set}" = set; then
8525 enableval="$enable_check_leaks"
8528 if test x$enable_check_leaks = xyes; then
8530 cat >>confdefs.h <<\_ACEOF
8531 #define CHECK_LEAKS 1
8536 # Check whether --enable-dom or --disable-dom was given.
8537 if test "${enable_dom+set}" = set; then
8538 enableval="$enable_dom"
8545 if test x$__dom_given = x1; then
8546 if test x$enable_dom = xyes; then
8548 cat >>confdefs.h <<\_ACEOF
8549 #define ENABLE_DOM 1
8555 cat >>confdefs.h <<\_ACEOF
8556 #define DISABLE_DOM 1
8562 cat >>confdefs.h <<\_ACEOF
8563 #define ENABLE_DOM 1
8569 if test x$enable_javascript = xyes -a x$__has_dom = x0; then
8570 { { echo "$as_me:$LINENO: error: --disable-dom must not be specified with --enable-javascript" >&5
8571 echo "$as_me: error: --disable-dom must not be specified with --enable-javascript" >&2;}
8572 { (exit 1); exit 1; }; }
8581 echo "$as_me:$LINENO: checking whether to build under GPL" >&5
8582 echo $ECHO_N "checking whether to build under GPL... $ECHO_C" >&6
8583 if test ! x$SABLOT_GPL = 'x'; then
8585 cat >>confdefs.h <<\_ACEOF
8586 #define SABLOT_GPL 1
8589 echo "$as_me:$LINENO: result: yes" >&5
8590 echo "${ECHO_T}yes" >&6
8592 echo "$as_me:$LINENO: result: no" >&5
8593 echo "${ECHO_T}no" >&6
8597 echo "$as_me:$LINENO: checking whether to build the debugger" >&5
8598 echo $ECHO_N "checking whether to build the debugger... $ECHO_C" >&6
8599 # Check whether --enable-debugger or --disable-debugger was given.
8600 if test "${enable_debugger+set}" = set; then
8601 enableval="$enable_debugger"
8604 if test x$enable_debugger = xyes; then
8605 echo "$as_me:$LINENO: result: yes" >&5
8606 echo "${ECHO_T}yes" >&6
8608 cat >>confdefs.h <<\_ACEOF
8609 #define SABLOT_DEBUGGER 1
8613 # Check whether --with-readline or --without-readline was given.
8614 if test "${with_readline+set}" = set; then
8615 withval="$with_readline"
8620 if test x$userl = x1; then
8621 if test x$SABLOT_GPL = 'x'; then
8622 { { echo "$as_me:$LINENO: error: you must compile under GNU's GPL to use the debugger" >&5
8623 echo "$as_me: error: you must compile under GNU's GPL to use the debugger" >&2;}
8624 { (exit 1); exit 1; }; }
8626 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
8627 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
8628 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 ac_check_lib_save_LIBS=$LIBS
8632 LIBS="-lncurses $LIBS"
8633 cat >conftest.$ac_ext <<_ACEOF
8634 #line $LINENO "configure"
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8641 /* Override any gcc2 internal prototype to avoid an error. */
8645 /* We use char because int might match the return type of a gcc2
8646 builtin and then its argument prototype would still apply. */
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658 (eval $ac_link) 2>&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } &&
8662 { ac_try='test -s conftest$ac_exeext'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 ac_cv_lib_ncurses_initscr=yes
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 ac_cv_lib_ncurses_initscr=no
8675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8676 LIBS=$ac_check_lib_save_LIBS
8678 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
8679 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
8680 if test $ac_cv_lib_ncurses_initscr = yes; then
8681 __rllib=-lncurses; OTHER_LIBS="$OTHER_LIBS -lncurses"
8687 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
8688 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
8689 if test "${ac_cv_lib_readline_readline+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 ac_check_lib_save_LIBS=$LIBS
8693 LIBS="-lreadline $__rllib $LIBS"
8694 cat >conftest.$ac_ext <<_ACEOF
8695 #line $LINENO "configure"
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h. */
8702 /* Override any gcc2 internal prototype to avoid an error. */
8706 /* We use char because int might match the return type of a gcc2
8707 builtin and then its argument prototype would still apply. */
8717 rm -f conftest.$ac_objext conftest$ac_exeext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8719 (eval $ac_link) 2>&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -s conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_cv_lib_readline_readline=yes
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 ac_cv_lib_readline_readline=no
8736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8737 LIBS=$ac_check_lib_save_LIBS
8739 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
8740 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
8741 if test $ac_cv_lib_readline_readline = yes; then
8742 OTHER_LIBS="$OTHER_LIBS -lreadline"
8750 for ac_header in readline/readline.h readline/history.h
8752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8754 echo "$as_me:$LINENO: checking for $ac_header" >&5
8755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8762 # Is the header compilable?
8763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8765 cat >conftest.$ac_ext <<_ACEOF
8766 #line $LINENO "configure"
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 $ac_includes_default
8773 #include <$ac_header>
8775 rm -f conftest.$ac_objext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777 (eval $ac_compile) 2>&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } &&
8781 { ac_try='test -s conftest.$ac_objext'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 ac_header_compiler=yes
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 ac_header_compiler=no
8794 rm -f conftest.$ac_objext conftest.$ac_ext
8795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8796 echo "${ECHO_T}$ac_header_compiler" >&6
8798 # Is the header present?
8799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8801 cat >conftest.$ac_ext <<_ACEOF
8802 #line $LINENO "configure"
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8808 #include <$ac_header>
8810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8813 grep -v '^ *+' conftest.er1 >conftest.err
8815 cat conftest.err >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } >/dev/null; then
8818 if test -s conftest.err; then
8819 ac_cpp_err=$ac_cxx_preproc_warn_flag
8826 if test -z "$ac_cpp_err"; then
8827 ac_header_preproc=yes
8829 echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8832 ac_header_preproc=no
8834 rm -f conftest.err conftest.$ac_ext
8835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8836 echo "${ECHO_T}$ac_header_preproc" >&6
8838 # So? What about this header?
8839 case $ac_header_compiler:$ac_header_preproc in
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8847 ## ------------------------------------ ##
8848 ## Report this to bug-autoconf@gnu.org. ##
8849 ## ------------------------------------ ##
8852 sed "s/^/$as_me: WARNING: /" >&2
8855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8863 ## ------------------------------------ ##
8864 ## Report this to bug-autoconf@gnu.org. ##
8865 ## ------------------------------------ ##
8868 sed "s/^/$as_me: WARNING: /" >&2
8871 echo "$as_me:$LINENO: checking for $ac_header" >&5
8872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 eval "$as_ac_Header=$ac_header_preproc"
8878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8883 cat >>confdefs.h <<_ACEOF
8884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8895 echo "$as_me:$LINENO: result: no" >&5
8896 echo "${ECHO_T}no" >&6
8902 echo "$as_me:$LINENO: checking where to find xml parser" >&5
8903 echo $ECHO_N "checking where to find xml parser... $ECHO_C" >&6
8906 echo "$as_me:$LINENO: checking for XML_Parse in -lexpat" >&5
8907 echo $ECHO_N "checking for XML_Parse in -lexpat... $ECHO_C" >&6
8908 if test "${ac_cv_lib_expat_XML_Parse+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 ac_check_lib_save_LIBS=$LIBS
8912 LIBS="-lexpat $LIBS"
8913 cat >conftest.$ac_ext <<_ACEOF
8914 #line $LINENO "configure"
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8921 /* Override any gcc2 internal prototype to avoid an error. */
8925 /* We use char because int might match the return type of a gcc2
8926 builtin and then its argument prototype would still apply. */
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938 (eval $ac_link) 2>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -s conftest$ac_exeext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 ac_cv_lib_expat_XML_Parse=yes
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8953 ac_cv_lib_expat_XML_Parse=no
8955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8956 LIBS=$ac_check_lib_save_LIBS
8958 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_Parse" >&5
8959 echo "${ECHO_T}$ac_cv_lib_expat_XML_Parse" >&6
8960 if test $ac_cv_lib_expat_XML_Parse = yes; then
8961 xmle=1; EXPAT_LIBS=-lexpat
8967 if test $xmle = 0; then
8968 echo "$as_me:$LINENO: checking for XML_Parse in -lxmlparse" >&5
8969 echo $ECHO_N "checking for XML_Parse in -lxmlparse... $ECHO_C" >&6
8970 if test "${ac_cv_lib_xmlparse_XML_Parse+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8973 ac_check_lib_save_LIBS=$LIBS
8974 LIBS="-lxmlparse -lxmltok $LIBS"
8975 cat >conftest.$ac_ext <<_ACEOF
8976 #line $LINENO "configure"
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8983 /* Override any gcc2 internal prototype to avoid an error. */
8987 /* We use char because int might match the return type of a gcc2
8988 builtin and then its argument prototype would still apply. */
8998 rm -f conftest.$ac_objext conftest$ac_exeext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000 (eval $ac_link) 2>&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -s conftest$ac_exeext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_cv_lib_xmlparse_XML_Parse=yes
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9015 ac_cv_lib_xmlparse_XML_Parse=no
9017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9018 LIBS=$ac_check_lib_save_LIBS
9020 echo "$as_me:$LINENO: result: $ac_cv_lib_xmlparse_XML_Parse" >&5
9021 echo "${ECHO_T}$ac_cv_lib_xmlparse_XML_Parse" >&6
9022 if test $ac_cv_lib_xmlparse_XML_Parse = yes; then
9023 xmlp=1; EXPAT_LIBS="EXPAT_LIBS=-lxmlparse -lxmltok"
9030 if test ! x$silent = xyes; then
9035 if test $xmle = 1; then
9036 resmsg='expat (new)'
9037 elif $xmlp = 1; then
9038 resmsg='expat (old)'
9040 resmsg='not found (panic)'
9044 echo "$as_me:$LINENO: result: $resmsg" >&5
9045 echo "${ECHO_T}$resmsg" >&6;
9046 if test $panic = 1; then
9047 { { echo "$as_me:$LINENO: error: Couldn't find the expat libraries" >&5
9048 echo "$as_me: error: Couldn't find the expat libraries" >&2;}
9049 { (exit 1); exit 1; }; }
9052 if test $xmle = 1; then
9054 for ac_header in expat.h
9056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9058 echo "$as_me:$LINENO: checking for $ac_header" >&5
9059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9066 # Is the header compilable?
9067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9069 cat >conftest.$ac_ext <<_ACEOF
9070 #line $LINENO "configure"
9073 cat confdefs.h >>conftest.$ac_ext
9074 cat >>conftest.$ac_ext <<_ACEOF
9075 /* end confdefs.h. */
9076 $ac_includes_default
9077 #include <$ac_header>
9079 rm -f conftest.$ac_objext
9080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9081 (eval $ac_compile) 2>&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } &&
9085 { ac_try='test -s conftest.$ac_objext'
9086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); }; }; then
9091 ac_header_compiler=yes
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9096 ac_header_compiler=no
9098 rm -f conftest.$ac_objext conftest.$ac_ext
9099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9100 echo "${ECHO_T}$ac_header_compiler" >&6
9102 # Is the header present?
9103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9105 cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 #include <$ac_header>
9114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9117 grep -v '^ *+' conftest.er1 >conftest.err
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } >/dev/null; then
9122 if test -s conftest.err; then
9123 ac_cpp_err=$ac_cxx_preproc_warn_flag
9130 if test -z "$ac_cpp_err"; then
9131 ac_header_preproc=yes
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9136 ac_header_preproc=no
9138 rm -f conftest.err conftest.$ac_ext
9139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9140 echo "${ECHO_T}$ac_header_preproc" >&6
9142 # So? What about this header?
9143 case $ac_header_compiler:$ac_header_preproc in
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9151 ## ------------------------------------ ##
9152 ## Report this to bug-autoconf@gnu.org. ##
9153 ## ------------------------------------ ##
9156 sed "s/^/$as_me: WARNING: /" >&2
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9167 ## ------------------------------------ ##
9168 ## Report this to bug-autoconf@gnu.org. ##
9169 ## ------------------------------------ ##
9172 sed "s/^/$as_me: WARNING: /" >&2
9175 echo "$as_me:$LINENO: checking for $ac_header" >&5
9176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 eval "$as_ac_Header=$ac_header_preproc"
9182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9187 cat >>confdefs.h <<_ACEOF
9188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9200 for ac_header in xmlparse.h xmltok/xmlparse.h
9202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9204 echo "$as_me:$LINENO: checking for $ac_header" >&5
9205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9212 # Is the header compilable?
9213 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9215 cat >conftest.$ac_ext <<_ACEOF
9216 #line $LINENO "configure"
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9222 $ac_includes_default
9223 #include <$ac_header>
9225 rm -f conftest.$ac_objext
9226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9227 (eval $ac_compile) 2>&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -s conftest.$ac_objext'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9237 ac_header_compiler=yes
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9242 ac_header_compiler=no
9244 rm -f conftest.$ac_objext conftest.$ac_ext
9245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9246 echo "${ECHO_T}$ac_header_compiler" >&6
9248 # Is the header present?
9249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9251 cat >conftest.$ac_ext <<_ACEOF
9252 #line $LINENO "configure"
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9258 #include <$ac_header>
9260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9263 grep -v '^ *+' conftest.er1 >conftest.err
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } >/dev/null; then
9268 if test -s conftest.err; then
9269 ac_cpp_err=$ac_cxx_preproc_warn_flag
9276 if test -z "$ac_cpp_err"; then
9277 ac_header_preproc=yes
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9282 ac_header_preproc=no
9284 rm -f conftest.err conftest.$ac_ext
9285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9286 echo "${ECHO_T}$ac_header_preproc" >&6
9288 # So? What about this header?
9289 case $ac_header_compiler:$ac_header_preproc in
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9297 ## ------------------------------------ ##
9298 ## Report this to bug-autoconf@gnu.org. ##
9299 ## ------------------------------------ ##
9302 sed "s/^/$as_me: WARNING: /" >&2
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9313 ## ------------------------------------ ##
9314 ## Report this to bug-autoconf@gnu.org. ##
9315 ## ------------------------------------ ##
9318 sed "s/^/$as_me: WARNING: /" >&2
9321 echo "$as_me:$LINENO: checking for $ac_header" >&5
9322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 eval "$as_ac_Header=$ac_header_preproc"
9328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9333 cat >>confdefs.h <<_ACEOF
9334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9345 if test $has_expat_headers = 0; then
9346 { { echo "$as_me:$LINENO: error: Couldn't find the expat header file(s)" >&5
9347 echo "$as_me: error: Couldn't find the expat header file(s)" >&2;}
9348 { (exit 1); exit 1; }; }
9351 echo "$as_me:$LINENO: checking whether expat.h is broken" >&5
9352 echo $ECHO_N "checking whether expat.h is broken... $ECHO_C" >&6
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9373 rm -f conftest.$ac_objext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375 (eval $ac_compile) 2>&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try='test -s conftest.$ac_objext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9386 echo "$as_me:$LINENO: result: no" >&5
9387 echo "${ECHO_T}no" >&6
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9394 echo "$as_me:$LINENO: result: yes" >&5
9395 echo "${ECHO_T}yes" >&6
9396 { { echo "$as_me:$LINENO: error: You probably have expat version 1.95.6. Please refer to:
9397 http://sourceforge.net/tracker/index.php?func=detail&aid=676844&group_id=10127&atid=110127
9398 for a description of the problem." >&5
9399 echo "$as_me: error: You probably have expat version 1.95.6. Please refer to:
9400 http://sourceforge.net/tracker/index.php?func=detail&aid=676844&group_id=10127&atid=110127
9401 for a description of the problem." >&2;}
9402 { (exit 1); exit 1; }; }
9405 rm -f conftest.$ac_objext conftest.$ac_ext
9407 echo "$as_me:$LINENO: checking for XML_SetReturnNSTriplet in -lexpat" >&5
9408 echo $ECHO_N "checking for XML_SetReturnNSTriplet in -lexpat... $ECHO_C" >&6
9409 if test "${ac_cv_lib_expat_XML_SetReturnNSTriplet+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 ac_check_lib_save_LIBS=$LIBS
9413 LIBS="-lexpat $LIBS"
9414 cat >conftest.$ac_ext <<_ACEOF
9415 #line $LINENO "configure"
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9422 /* Override any gcc2 internal prototype to avoid an error. */
9426 /* We use char because int might match the return type of a gcc2
9427 builtin and then its argument prototype would still apply. */
9428 char XML_SetReturnNSTriplet ();
9432 XML_SetReturnNSTriplet ();
9437 rm -f conftest.$ac_objext conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
9443 { ac_try='test -s conftest$ac_exeext'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 ac_cv_lib_expat_XML_SetReturnNSTriplet=yes
9451 echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9454 ac_cv_lib_expat_XML_SetReturnNSTriplet=no
9456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9457 LIBS=$ac_check_lib_save_LIBS
9459 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_SetReturnNSTriplet" >&5
9460 echo "${ECHO_T}$ac_cv_lib_expat_XML_SetReturnNSTriplet" >&6
9461 if test $ac_cv_lib_expat_XML_SetReturnNSTriplet = yes; then
9468 if test $has_extrip = 1; then
9469 echo "$as_me:$LINENO: checking whether XML_SetReturnNSTriplet works" >&5
9470 echo $ECHO_N "checking whether XML_SetReturnNSTriplet works... $ECHO_C" >&6
9473 if test "$cross_compiling" = yes; then
9476 cat >conftest.$ac_ext <<_ACEOF
9477 #line $LINENO "configure"
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9486 const char* xml = "<?xml version='1.0'?><a:b xmlns:a='http'/>";
9488 void tcStartElement(void *data, const char *elName, const char **atts)
9490 const char *q = elName;
9493 if (q) { cnt++; q++; }
9496 void tcEndElement(void *data, const char *elName) {}
9497 int main (int argc, char* argv[])
9499 XML_Parser theParser = XML_ParserCreateNS(NULL, '|');
9500 XML_SetElementHandler(theParser, tcStartElement, tcEndElement);
9501 XML_SetReturnNSTriplet(theParser, 1);
9502 XML_Parse(theParser, xml, strlen(xml), 1);
9503 XML_ParserFree(theParser);
9504 return cnt == 2 ? 0 : 1;
9507 rm -f conftest$ac_exeext
9508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9509 (eval $ac_link) 2>&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9520 echo "$as_me: program exited with status $ac_status" >&5
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9527 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9532 if test $extrip_ok = 1; then
9533 echo "$as_me:$LINENO: result: yes" >&5
9534 echo "${ECHO_T}yes" >&6
9536 cat >>confdefs.h <<\_ACEOF
9537 #define EXPAT_SUPPORTS_TRIPLETS 1
9541 echo "$as_me:$LINENO: result: no" >&5
9542 echo "${ECHO_T}no" >&6
9550 if test "${ac_cv_header_sys_types_h+set}" = set; then
9551 echo "$as_me:$LINENO: checking for sys/types.h" >&5
9552 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
9553 if test "${ac_cv_header_sys_types_h+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
9557 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
9559 # Is the header compilable?
9560 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
9561 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
9562 cat >conftest.$ac_ext <<_ACEOF
9563 #line $LINENO "configure"
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569 $ac_includes_default
9570 #include <sys/types.h>
9572 rm -f conftest.$ac_objext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9574 (eval $ac_compile) 2>&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -s conftest.$ac_objext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_header_compiler=yes
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 ac_header_compiler=no
9591 rm -f conftest.$ac_objext conftest.$ac_ext
9592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9593 echo "${ECHO_T}$ac_header_compiler" >&6
9595 # Is the header present?
9596 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
9597 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
9598 cat >conftest.$ac_ext <<_ACEOF
9599 #line $LINENO "configure"
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 #include <sys/types.h>
9607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9610 grep -v '^ *+' conftest.er1 >conftest.err
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } >/dev/null; then
9615 if test -s conftest.err; then
9616 ac_cpp_err=$ac_cxx_preproc_warn_flag
9623 if test -z "$ac_cpp_err"; then
9624 ac_header_preproc=yes
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_header_preproc=no
9631 rm -f conftest.err conftest.$ac_ext
9632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9633 echo "${ECHO_T}$ac_header_preproc" >&6
9635 # So? What about this header?
9636 case $ac_header_compiler:$ac_header_preproc in
9638 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
9639 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9640 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
9641 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
9644 ## ------------------------------------ ##
9645 ## Report this to bug-autoconf@gnu.org. ##
9646 ## ------------------------------------ ##
9649 sed "s/^/$as_me: WARNING: /" >&2
9652 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
9653 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
9654 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
9655 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
9656 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
9657 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
9660 ## ------------------------------------ ##
9661 ## Report this to bug-autoconf@gnu.org. ##
9662 ## ------------------------------------ ##
9665 sed "s/^/$as_me: WARNING: /" >&2
9668 echo "$as_me:$LINENO: checking for sys/types.h" >&5
9669 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
9670 if test "${ac_cv_header_sys_types_h+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 ac_cv_header_sys_types_h=$ac_header_preproc
9675 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
9676 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
9679 if test $ac_cv_header_sys_types_h = yes; then
9694 for ac_header in timeb.h sys/timeb.h sys/time.h \
9695 unistd.h ieeefp.h sunmath.h
9697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9699 echo "$as_me:$LINENO: checking for $ac_header" >&5
9700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9707 # Is the header compilable?
9708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9710 cat >conftest.$ac_ext <<_ACEOF
9711 #line $LINENO "configure"
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9717 $ac_includes_default
9718 #include <$ac_header>
9720 rm -f conftest.$ac_objext
9721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9722 (eval $ac_compile) 2>&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } &&
9726 { ac_try='test -s conftest.$ac_objext'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 ac_header_compiler=yes
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9737 ac_header_compiler=no
9739 rm -f conftest.$ac_objext conftest.$ac_ext
9740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9741 echo "${ECHO_T}$ac_header_compiler" >&6
9743 # Is the header present?
9744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9746 cat >conftest.$ac_ext <<_ACEOF
9747 #line $LINENO "configure"
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 #include <$ac_header>
9755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev/null; then
9763 if test -s conftest.err; then
9764 ac_cpp_err=$ac_cxx_preproc_warn_flag
9771 if test -z "$ac_cpp_err"; then
9772 ac_header_preproc=yes
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9777 ac_header_preproc=no
9779 rm -f conftest.err conftest.$ac_ext
9780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9781 echo "${ECHO_T}$ac_header_preproc" >&6
9783 # So? What about this header?
9784 case $ac_header_compiler:$ac_header_preproc in
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9792 ## ------------------------------------ ##
9793 ## Report this to bug-autoconf@gnu.org. ##
9794 ## ------------------------------------ ##
9797 sed "s/^/$as_me: WARNING: /" >&2
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9808 ## ------------------------------------ ##
9809 ## Report this to bug-autoconf@gnu.org. ##
9810 ## ------------------------------------ ##
9813 sed "s/^/$as_me: WARNING: /" >&2
9816 echo "$as_me:$LINENO: checking for $ac_header" >&5
9817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 eval "$as_ac_Header=$ac_header_preproc"
9823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9828 cat >>confdefs.h <<_ACEOF
9829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9838 for ac_header in iconv.h
9840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9842 echo "$as_me:$LINENO: checking for $ac_header" >&5
9843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9850 # Is the header compilable?
9851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9853 cat >conftest.$ac_ext <<_ACEOF
9854 #line $LINENO "configure"
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9860 $ac_includes_default
9861 #include <$ac_header>
9863 rm -f conftest.$ac_objext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9865 (eval $ac_compile) 2>&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try='test -s conftest.$ac_objext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_header_compiler=yes
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 ac_header_compiler=no
9882 rm -f conftest.$ac_objext conftest.$ac_ext
9883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9884 echo "${ECHO_T}$ac_header_compiler" >&6
9886 # Is the header present?
9887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9890 #line $LINENO "configure"
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 #include <$ac_header>
9898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9901 grep -v '^ *+' conftest.er1 >conftest.err
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } >/dev/null; then
9906 if test -s conftest.err; then
9907 ac_cpp_err=$ac_cxx_preproc_warn_flag
9914 if test -z "$ac_cpp_err"; then
9915 ac_header_preproc=yes
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 ac_header_preproc=no
9922 rm -f conftest.err conftest.$ac_ext
9923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9924 echo "${ECHO_T}$ac_header_preproc" >&6
9926 # So? What about this header?
9927 case $ac_header_compiler:$ac_header_preproc in
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9935 ## ------------------------------------ ##
9936 ## Report this to bug-autoconf@gnu.org. ##
9937 ## ------------------------------------ ##
9940 sed "s/^/$as_me: WARNING: /" >&2
9943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9951 ## ------------------------------------ ##
9952 ## Report this to bug-autoconf@gnu.org. ##
9953 ## ------------------------------------ ##
9956 sed "s/^/$as_me: WARNING: /" >&2
9959 echo "$as_me:$LINENO: checking for $ac_header" >&5
9960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 eval "$as_ac_Header=$ac_header_preproc"
9966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9971 cat >>confdefs.h <<_ACEOF
9972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9984 if test $has_iconv = 1; then
9985 echo "$as_me:$LINENO: checking where to find iconv_open" >&5
9986 echo $ECHO_N "checking where to find iconv_open... $ECHO_C" >&6
9989 for ac_func in iconv_open
9991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9992 echo "$as_me:$LINENO: checking for $ac_func" >&5
9993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9994 if eval "test \"\${$as_ac_var+set}\" = set"; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 cat >conftest.$ac_ext <<_ACEOF
9998 #line $LINENO "configure"
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10004 /* System header to define __stub macros and hopefully few prototypes,
10005 which can conflict with char $ac_func (); below.
10006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007 <limits.h> exists even on freestanding compilers. */
10009 # include <limits.h>
10011 # include <assert.h>
10013 /* Override any gcc2 internal prototype to avoid an error. */
10018 /* We use char because int might match the return type of a gcc2
10019 builtin and then its argument prototype would still apply. */
10021 /* The GNU C library defines this for functions which it implements
10022 to always fail with ENOSYS. Some functions are actually named
10023 something starting with __ and the normal name is an alias. */
10024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10027 char (*f) () = $ac_func;
10036 return f != $ac_func;
10041 rm -f conftest.$ac_objext conftest$ac_exeext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043 (eval $ac_link) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -s conftest$ac_exeext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 eval "$as_ac_var=yes"
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 eval "$as_ac_var=no"
10060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10064 if test `eval echo '${'$as_ac_var'}'` = yes; then
10065 cat >>confdefs.h <<_ACEOF
10066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10074 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
10075 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
10076 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 ac_check_lib_save_LIBS=$LIBS
10080 LIBS="-liconv $LIBS"
10081 cat >conftest.$ac_ext <<_ACEOF
10082 #line $LINENO "configure"
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10089 /* Override any gcc2 internal prototype to avoid an error. */
10093 /* We use char because int might match the return type of a gcc2
10094 builtin and then its argument prototype would still apply. */
10095 char iconv_open ();
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106 (eval $ac_link) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try='test -s conftest$ac_exeext'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10116 ac_cv_lib_iconv_iconv_open=yes
10118 echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10121 ac_cv_lib_iconv_iconv_open=no
10123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10124 LIBS=$ac_check_lib_save_LIBS
10126 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
10127 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
10128 if test $ac_cv_lib_iconv_iconv_open = yes; then
10134 echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
10135 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
10136 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 ac_check_lib_save_LIBS=$LIBS
10140 LIBS="-liconv $LIBS"
10141 cat >conftest.$ac_ext <<_ACEOF
10142 #line $LINENO "configure"
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10149 /* Override any gcc2 internal prototype to avoid an error. */
10153 /* We use char because int might match the return type of a gcc2
10154 builtin and then its argument prototype would still apply. */
10155 char libiconv_open ();
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166 (eval $ac_link) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try='test -s conftest$ac_exeext'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
10176 ac_cv_lib_iconv_libiconv_open=yes
10178 echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10181 ac_cv_lib_iconv_libiconv_open=no
10183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10184 LIBS=$ac_check_lib_save_LIBS
10186 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
10187 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
10188 if test $ac_cv_lib_iconv_libiconv_open = yes; then
10189 libiconv_in_iconv=1
10191 libiconv_in_iconv=0
10194 if test ! x$silent = xyes; then
10197 #standalone library rules over libc
10198 if test $iconv_in_iconv = 1 -o $libiconv_in_iconv = 1; then
10199 echo "$as_me:$LINENO: result: libiconv" >&5
10200 echo "${ECHO_T}libiconv" >&6
10202 elif test $iconv_in_libc = 1; then
10203 echo "$as_me:$LINENO: result: libc" >&5
10204 echo "${ECHO_T}libc" >&6
10206 echo "$as_me:$LINENO: result: not found (panic)" >&5
10207 echo "${ECHO_T}not found (panic)" >&6
10208 { { echo "$as_me:$LINENO: error: iconv.h found, while iconv library not found" >&5
10209 echo "$as_me: error: iconv.h found, while iconv library not found" >&2;}
10210 { (exit 1); exit 1; }; }
10212 #we have iconv at this moment, so we'll check out the need of
10213 #typecast in the call of iconv
10214 echo "$as_me:$LINENO: checking whether to typecast in iconv" >&5
10215 echo $ECHO_N "checking whether to typecast in iconv... $ECHO_C" >&6
10216 if test x$force_iconv_typecast = x1; then
10217 echo "$as_me:$LINENO: result: forced" >&5
10218 echo "${ECHO_T}forced" >&6
10220 cat >>confdefs.h <<\_ACEOF
10221 #define SABLOT_ICONV_CAST_OK 1
10225 cat >conftest.$ac_ext <<_ACEOF
10226 #line $LINENO "configure"
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10238 const char *src = "nothing";
10241 size_t outsize = 0;
10243 iconv(cd, &src, &insize, &outbuf, &outsize);
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10268 rm -f conftest.$ac_objext conftest.$ac_ext
10269 if test $iconv_cast = 1; then
10270 echo "$as_me:$LINENO: result: yes" >&5
10271 echo "${ECHO_T}yes" >&6
10273 cat >>confdefs.h <<\_ACEOF
10274 #define SABLOT_ICONV_CAST_OK 1
10278 echo "$as_me:$LINENO: result: no" >&5
10279 echo "${ECHO_T}no" >&6
10285 echo "$as_me:$LINENO: checking whether to force -lm switch" >&5
10286 echo $ECHO_N "checking whether to force -lm switch... $ECHO_C" >&6
10287 cat >conftest.$ac_ext <<_ACEOF
10288 #line $LINENO "configure"
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10298 { double foo; foo = ceil(1.234); }
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -s conftest$ac_exeext'
10310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; }; then
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10323 if test $link_libm = 1; then
10324 echo "$as_me:$LINENO: result: yes" >&5
10325 echo "${ECHO_T}yes" >&6
10326 OTHER_LIBS="$OTHER_LIBS -lm"
10328 echo "$as_me:$LINENO: result: no" >&5
10329 echo "${ECHO_T}no" >&6
10332 if test $js_enabled = 1; then
10333 if test x$SABLOT_JSLIB = x; then
10336 if test $perlconnect_enabled = 1; then
10337 # Extract the first word of "perl", so it can be a program name with args.
10338 set dummy perl; ac_word=$2
10339 echo "$as_me:$LINENO: checking for $ac_word" >&5
10340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10341 if test "${ac_cv_prog_has_perl+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 if test -n "$has_perl"; then
10345 ac_cv_prog_has_perl="$has_perl" # Let the user override the test.
10347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10348 for as_dir in $PATH
10351 test -z "$as_dir" && as_dir=.
10352 for ac_exec_ext in '' $ac_executable_extensions; do
10353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10354 ac_cv_prog_has_perl="yes"
10355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10361 test -z "$ac_cv_prog_has_perl" && ac_cv_prog_has_perl="no"
10364 has_perl=$ac_cv_prog_has_perl
10365 if test -n "$has_perl"; then
10366 echo "$as_me:$LINENO: result: $has_perl" >&5
10367 echo "${ECHO_T}$has_perl" >&6
10369 echo "$as_me:$LINENO: result: no" >&5
10370 echo "${ECHO_T}no" >&6
10373 if test $has_perl = yes; then
10374 PERLLDFLAGS=`perl -MExtUtils::Embed -e ldopts`
10375 PERLLDFLAGS=`echo $PERLLDFLAGS | perl -pe 's/-rdynamic/-export-dynamic/'`
10381 as_ac_Lib=`echo "ac_cv_lib_$SABLOT_JSLIB''_js_NewContext" | $as_tr_sh`
10382 echo "$as_me:$LINENO: checking for js_NewContext in -l$SABLOT_JSLIB" >&5
10383 echo $ECHO_N "checking for js_NewContext in -l$SABLOT_JSLIB... $ECHO_C" >&6
10384 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 ac_check_lib_save_LIBS=$LIBS
10388 LIBS="-l$SABLOT_JSLIB $PERLLDFLAGS $LIBS"
10389 cat >conftest.$ac_ext <<_ACEOF
10390 #line $LINENO "configure"
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10397 /* Override any gcc2 internal prototype to avoid an error. */
10401 /* We use char because int might match the return type of a gcc2
10402 builtin and then its argument prototype would still apply. */
10403 char js_NewContext ();
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414 (eval $ac_link) 2>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } &&
10418 { ac_try='test -s conftest$ac_exeext'
10419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420 (eval $ac_try) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; }; then
10424 eval "$as_ac_Lib=yes"
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 eval "$as_ac_Lib=no"
10431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10432 LIBS=$ac_check_lib_save_LIBS
10434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10435 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10436 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10437 has_js=1; OTHER_LIBS="$OTHER_LIBS -l$SABLOT_JSLIB $PERLLDFLAGS"
10442 if test $has_js = 1; then
10443 echo '#define XP_UNIX' >> confdefs.h
10445 for ac_header in jsapi.h
10447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10449 echo "$as_me:$LINENO: checking for $ac_header" >&5
10450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10457 # Is the header compilable?
10458 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10460 cat >conftest.$ac_ext <<_ACEOF
10461 #line $LINENO "configure"
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h. */
10467 $ac_includes_default
10468 #include <$ac_header>
10470 rm -f conftest.$ac_objext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472 (eval $ac_compile) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } &&
10476 { ac_try='test -s conftest.$ac_objext'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; }; then
10482 ac_header_compiler=yes
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10487 ac_header_compiler=no
10489 rm -f conftest.$ac_objext conftest.$ac_ext
10490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10491 echo "${ECHO_T}$ac_header_compiler" >&6
10493 # Is the header present?
10494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10496 cat >conftest.$ac_ext <<_ACEOF
10497 #line $LINENO "configure"
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 #include <$ac_header>
10505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10508 grep -v '^ *+' conftest.er1 >conftest.err
10510 cat conftest.err >&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } >/dev/null; then
10513 if test -s conftest.err; then
10514 ac_cpp_err=$ac_cxx_preproc_warn_flag
10521 if test -z "$ac_cpp_err"; then
10522 ac_header_preproc=yes
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 ac_header_preproc=no
10529 rm -f conftest.err conftest.$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10531 echo "${ECHO_T}$ac_header_preproc" >&6
10533 # So? What about this header?
10534 case $ac_header_compiler:$ac_header_preproc in
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10542 ## ------------------------------------ ##
10543 ## Report this to bug-autoconf@gnu.org. ##
10544 ## ------------------------------------ ##
10547 sed "s/^/$as_me: WARNING: /" >&2
10550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10558 ## ------------------------------------ ##
10559 ## Report this to bug-autoconf@gnu.org. ##
10560 ## ------------------------------------ ##
10563 sed "s/^/$as_me: WARNING: /" >&2
10566 echo "$as_me:$LINENO: checking for $ac_header" >&5
10567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 eval "$as_ac_Header=$ac_header_preproc"
10573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10578 cat >>confdefs.h <<_ACEOF
10579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10588 if test $has_js_header = 0; then
10589 { { echo "$as_me:$LINENO: error: required file jsapi.h not found" >&5
10590 echo "$as_me: error: required file jsapi.h not found" >&2;}
10591 { (exit 1); exit 1; }; }
10594 { { echo "$as_me:$LINENO: error: JavaScript library not found" >&5
10595 echo "$as_me: error: JavaScript library not found" >&2;}
10596 { (exit 1); exit 1; }; }
10602 for ac_func in ftime gettimeofday
10604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10605 echo "$as_me:$LINENO: checking for $ac_func" >&5
10606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10607 if eval "test \"\${$as_ac_var+set}\" = set"; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 cat >conftest.$ac_ext <<_ACEOF
10611 #line $LINENO "configure"
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 /* System header to define __stub macros and hopefully few prototypes,
10618 which can conflict with char $ac_func (); below.
10619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10620 <limits.h> exists even on freestanding compilers. */
10622 # include <limits.h>
10624 # include <assert.h>
10626 /* Override any gcc2 internal prototype to avoid an error. */
10631 /* We use char because int might match the return type of a gcc2
10632 builtin and then its argument prototype would still apply. */
10634 /* The GNU C library defines this for functions which it implements
10635 to always fail with ENOSYS. Some functions are actually named
10636 something starting with __ and the normal name is an alias. */
10637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10640 char (*f) () = $ac_func;
10649 return f != $ac_func;
10654 rm -f conftest.$ac_objext conftest$ac_exeext
10655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10656 (eval $ac_link) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
10660 { ac_try='test -s conftest$ac_exeext'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 eval "$as_ac_var=yes"
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 eval "$as_ac_var=no"
10673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10677 if test `eval echo '${'$as_ac_var'}'` = yes; then
10678 cat >>confdefs.h <<_ACEOF
10679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10686 for ac_func in mtrace
10688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10689 echo "$as_me:$LINENO: checking for $ac_func" >&5
10690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10691 if eval "test \"\${$as_ac_var+set}\" = set"; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 cat >conftest.$ac_ext <<_ACEOF
10695 #line $LINENO "configure"
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 /* System header to define __stub macros and hopefully few prototypes,
10702 which can conflict with char $ac_func (); below.
10703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10704 <limits.h> exists even on freestanding compilers. */
10706 # include <limits.h>
10708 # include <assert.h>
10710 /* Override any gcc2 internal prototype to avoid an error. */
10715 /* We use char because int might match the return type of a gcc2
10716 builtin and then its argument prototype would still apply. */
10718 /* The GNU C library defines this for functions which it implements
10719 to always fail with ENOSYS. Some functions are actually named
10720 something starting with __ and the normal name is an alias. */
10721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10724 char (*f) () = $ac_func;
10733 return f != $ac_func;
10738 rm -f conftest.$ac_objext conftest$ac_exeext
10739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10740 (eval $ac_link) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try='test -s conftest$ac_exeext'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10750 eval "$as_ac_var=yes"
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 eval "$as_ac_var=no"
10757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10761 if test `eval echo '${'$as_ac_var'}'` = yes; then
10762 cat >>confdefs.h <<_ACEOF
10763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10771 for ac_func in setvbuf
10773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10774 echo "$as_me:$LINENO: checking for $ac_func" >&5
10775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10776 if eval "test \"\${$as_ac_var+set}\" = set"; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 cat >conftest.$ac_ext <<_ACEOF
10780 #line $LINENO "configure"
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10786 /* System header to define __stub macros and hopefully few prototypes,
10787 which can conflict with char $ac_func (); below.
10788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10789 <limits.h> exists even on freestanding compilers. */
10791 # include <limits.h>
10793 # include <assert.h>
10795 /* Override any gcc2 internal prototype to avoid an error. */
10800 /* We use char because int might match the return type of a gcc2
10801 builtin and then its argument prototype would still apply. */
10803 /* The GNU C library defines this for functions which it implements
10804 to always fail with ENOSYS. Some functions are actually named
10805 something starting with __ and the normal name is an alias. */
10806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10809 char (*f) () = $ac_func;
10818 return f != $ac_func;
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10825 (eval $ac_link) 2>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -s conftest$ac_exeext'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 eval "$as_ac_var=yes"
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 eval "$as_ac_var=no"
10842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10846 if test `eval echo '${'$as_ac_var'}'` = yes; then
10847 cat >>confdefs.h <<_ACEOF
10848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10856 echo "$as_me:$LINENO: checking for isnan" >&5
10857 echo $ECHO_N "checking for isnan... $ECHO_C" >&6
10858 if test "${ac_cv_func_isnan+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10861 cat >conftest.$ac_ext <<_ACEOF
10862 #line $LINENO "configure"
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 /* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char isnan (); below.
10870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871 <limits.h> exists even on freestanding compilers. */
10873 # include <limits.h>
10875 # include <assert.h>
10877 /* Override any gcc2 internal prototype to avoid an error. */
10882 /* We use char because int might match the return type of a gcc2
10883 builtin and then its argument prototype would still apply. */
10885 /* The GNU C library defines this for functions which it implements
10886 to always fail with ENOSYS. Some functions are actually named
10887 something starting with __ and the normal name is an alias. */
10888 #if defined (__stub_isnan) || defined (__stub___isnan)
10891 char (*f) () = isnan;
10905 rm -f conftest.$ac_objext conftest$ac_exeext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10907 (eval $ac_link) 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -s conftest$ac_exeext'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then
10917 ac_cv_func_isnan=yes
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 ac_cv_func_isnan=no
10924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10926 echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
10927 echo "${ECHO_T}$ac_cv_func_isnan" >&6
10928 if test $ac_cv_func_isnan = yes; then
10930 cat >>confdefs.h <<\_ACEOF
10931 #define HAVE_ISNAN 1
10938 echo "$as_me:$LINENO: checking for isinf" >&5
10939 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10940 if test "${ac_cv_func_isinf+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 cat >conftest.$ac_ext <<_ACEOF
10944 #line $LINENO "configure"
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 /* System header to define __stub macros and hopefully few prototypes,
10951 which can conflict with char isinf (); below.
10952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10953 <limits.h> exists even on freestanding compilers. */
10955 # include <limits.h>
10957 # include <assert.h>
10959 /* Override any gcc2 internal prototype to avoid an error. */
10964 /* We use char because int might match the return type of a gcc2
10965 builtin and then its argument prototype would still apply. */
10967 /* The GNU C library defines this for functions which it implements
10968 to always fail with ENOSYS. Some functions are actually named
10969 something starting with __ and the normal name is an alias. */
10970 #if defined (__stub_isinf) || defined (__stub___isinf)
10973 char (*f) () = isinf;
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10989 (eval $ac_link) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -s conftest$ac_exeext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_cv_func_isinf=yes
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 ac_cv_func_isinf=no
11006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11008 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11009 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11010 if test $ac_cv_func_isinf = yes; then
11012 cat >>confdefs.h <<\_ACEOF
11013 #define HAVE_ISINF 1
11020 echo "$as_me:$LINENO: checking for finite" >&5
11021 echo $ECHO_N "checking for finite... $ECHO_C" >&6
11022 if test "${ac_cv_func_finite+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 cat >conftest.$ac_ext <<_ACEOF
11026 #line $LINENO "configure"
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11032 /* System header to define __stub macros and hopefully few prototypes,
11033 which can conflict with char finite (); below.
11034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11035 <limits.h> exists even on freestanding compilers. */
11037 # include <limits.h>
11039 # include <assert.h>
11041 /* Override any gcc2 internal prototype to avoid an error. */
11046 /* We use char because int might match the return type of a gcc2
11047 builtin and then its argument prototype would still apply. */
11049 /* The GNU C library defines this for functions which it implements
11050 to always fail with ENOSYS. Some functions are actually named
11051 something starting with __ and the normal name is an alias. */
11052 #if defined (__stub_finite) || defined (__stub___finite)
11055 char (*f) () = finite;
11064 return f != finite;
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071 (eval $ac_link) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try='test -s conftest$ac_exeext'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 ac_cv_func_finite=yes
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ac_cv_func_finite=no
11088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11090 echo "$as_me:$LINENO: result: $ac_cv_func_finite" >&5
11091 echo "${ECHO_T}$ac_cv_func_finite" >&6
11092 if test $ac_cv_func_finite = yes; then
11094 cat >>confdefs.h <<\_ACEOF
11095 #define HAVE_FINITE 1
11103 if test $has_isnan = 0; then
11104 echo "$as_me:$LINENO: checking for macro isnan" >&5
11105 echo $ECHO_N "checking for macro isnan... $ECHO_C" >&6
11106 cat >conftest.$ac_ext <<_ACEOF
11107 #line $LINENO "configure"
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11117 { int foo; foo = isnan(0); }
11122 rm -f conftest.$ac_objext conftest$ac_exeext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11124 (eval $ac_link) 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try='test -s conftest$ac_exeext'
11129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130 (eval $ac_try) 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; }; then
11136 echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11142 if test $has_isnan = 1; then
11143 echo "$as_me:$LINENO: result: yes" >&5
11144 echo "${ECHO_T}yes" >&6
11146 cat >>confdefs.h <<\_ACEOF
11147 #define HAVE_ISNAN 1
11151 echo "$as_me:$LINENO: result: no" >&5
11152 echo "${ECHO_T}no" >&6
11156 if test $has_isinf = 0; then
11157 echo "$as_me:$LINENO: checking for macro isinf" >&5
11158 echo $ECHO_N "checking for macro isinf... $ECHO_C" >&6
11159 cat >conftest.$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11170 { int foo; foo = isinf(0); }
11175 rm -f conftest.$ac_objext conftest$ac_exeext
11176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11177 (eval $ac_link) 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -s conftest$ac_exeext'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; }; then
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11195 if test $has_isinf = 1; then
11196 echo "$as_me:$LINENO: result: yes" >&5
11197 echo "${ECHO_T}yes" >&6
11199 cat >>confdefs.h <<\_ACEOF
11200 #define HAVE_ISINF 1
11204 echo "$as_me:$LINENO: result: no" >&5
11205 echo "${ECHO_T}no" >&6
11209 if test $has_finite = 0; then
11210 echo "$as_me:$LINENO: checking for macro finite" >&5
11211 echo $ECHO_N "checking for macro finite... $ECHO_C" >&6
11212 cat >conftest.$ac_ext <<_ACEOF
11213 #line $LINENO "configure"
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11223 { int foo; foo = finite(0); }
11228 rm -f conftest.$ac_objext conftest$ac_exeext
11229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11230 (eval $ac_link) 2>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } &&
11234 { ac_try='test -s conftest$ac_exeext'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11248 if test $has_finite = 1; then
11249 echo "$as_me:$LINENO: result: yes" >&5
11250 echo "${ECHO_T}yes" >&6
11252 cat >>confdefs.h <<\_ACEOF
11253 #define HAVE_FINITE 1
11257 echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6
11262 if test "${ac_cv_header_wchar_h+set}" = set; then
11263 echo "$as_me:$LINENO: checking for wchar.h" >&5
11264 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
11265 if test "${ac_cv_header_wchar_h+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
11269 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
11271 # Is the header compilable?
11272 echo "$as_me:$LINENO: checking wchar.h usability" >&5
11273 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
11274 cat >conftest.$ac_ext <<_ACEOF
11275 #line $LINENO "configure"
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 $ac_includes_default
11284 rm -f conftest.$ac_objext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286 (eval $ac_compile) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -s conftest.$ac_objext'
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 ac_header_compiler=yes
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 ac_header_compiler=no
11303 rm -f conftest.$ac_objext conftest.$ac_ext
11304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11305 echo "${ECHO_T}$ac_header_compiler" >&6
11307 # Is the header present?
11308 echo "$as_me:$LINENO: checking wchar.h presence" >&5
11309 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
11310 cat >conftest.$ac_ext <<_ACEOF
11311 #line $LINENO "configure"
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11322 grep -v '^ *+' conftest.er1 >conftest.err
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } >/dev/null; then
11327 if test -s conftest.err; then
11328 ac_cpp_err=$ac_cxx_preproc_warn_flag
11335 if test -z "$ac_cpp_err"; then
11336 ac_header_preproc=yes
11338 echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11341 ac_header_preproc=no
11343 rm -f conftest.err conftest.$ac_ext
11344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6
11347 # So? What about this header?
11348 case $ac_header_compiler:$ac_header_preproc in
11350 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
11351 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
11353 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
11356 ## ------------------------------------ ##
11357 ## Report this to bug-autoconf@gnu.org. ##
11358 ## ------------------------------------ ##
11361 sed "s/^/$as_me: WARNING: /" >&2
11364 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
11365 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
11367 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
11369 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
11372 ## ------------------------------------ ##
11373 ## Report this to bug-autoconf@gnu.org. ##
11374 ## ------------------------------------ ##
11377 sed "s/^/$as_me: WARNING: /" >&2
11380 echo "$as_me:$LINENO: checking for wchar.h" >&5
11381 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
11382 if test "${ac_cv_header_wchar_h+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 ac_cv_header_wchar_h=$ac_header_preproc
11387 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
11388 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
11391 if test $ac_cv_header_wchar_h = yes; then
11399 if test $has_wchar = 1; then
11401 cat >>confdefs.h <<\_ACEOF
11402 #define HAVE_WCHAR_H 1
11407 for ac_func in wcsxfrm wcscmp
11409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11410 echo "$as_me:$LINENO: checking for $ac_func" >&5
11411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11412 if eval "test \"\${$as_ac_var+set}\" = set"; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 cat >conftest.$ac_ext <<_ACEOF
11416 #line $LINENO "configure"
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 /* System header to define __stub macros and hopefully few prototypes,
11423 which can conflict with char $ac_func (); below.
11424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11425 <limits.h> exists even on freestanding compilers. */
11427 # include <limits.h>
11429 # include <assert.h>
11431 /* Override any gcc2 internal prototype to avoid an error. */
11436 /* We use char because int might match the return type of a gcc2
11437 builtin and then its argument prototype would still apply. */
11439 /* The GNU C library defines this for functions which it implements
11440 to always fail with ENOSYS. Some functions are actually named
11441 something starting with __ and the normal name is an alias. */
11442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11445 char (*f) () = $ac_func;
11454 return f != $ac_func;
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461 (eval $ac_link) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -s conftest$ac_exeext'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 eval "$as_ac_var=yes"
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11476 eval "$as_ac_var=no"
11478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11482 if test `eval echo '${'$as_ac_var'}'` = yes; then
11483 cat >>confdefs.h <<_ACEOF
11484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11497 ac_config_files="$ac_config_files src/engine/sabcfg.h Makefile src/Makefile src/engine/Makefile src/command/Makefile src/command/sablot-config doc/Makefile doc/man/Makefile doc/misc/Makefile doc/apidoc/Makefile utils/Makefile utils/apidoc/Makefile"
11498 cat >confcache <<\_ACEOF
11499 # This file is a shell script that caches the results of configure
11500 # tests run on this system so they can be shared between configure
11501 # scripts and configure runs, see configure's option --config-cache.
11502 # It is not useful on other systems. If it contains results you don't
11503 # want to keep, you may remove or edit it.
11505 # config.status only pays attention to the cache file if you give it
11506 # the --recheck option to rerun configure.
11508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11510 # following values.
11514 # The following way of writing the cache mishandles newlines in values,
11515 # but we know of no workaround that is simple, portable, and efficient.
11516 # So, don't put newlines in cache variables' values.
11517 # Ultrix sh set writes to stderr and can't be redirected directly,
11518 # and sets the high bit in the cache file unless we assign to the vars.
11521 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11523 # `set' does not quote correctly, so add quotes (double-quote
11524 # substitution turns \\\\ into \\, and sed turns \\ into \).
11527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11530 # `set' quotes correctly as required by POSIX, so do not add quotes.
11532 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11541 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11543 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11544 if test -w $cache_file; then
11545 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11546 cat confcache >$cache_file
11548 echo "not updating unwritable cache $cache_file"
11553 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11554 # Let make expand exec_prefix.
11555 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11557 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11558 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11559 # trailing colons and then remove the whole line if VPATH becomes empty
11560 # (actually we leave an empty line to preserve line numbers).
11561 if test "x$srcdir" = x.; then
11562 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11563 s/:*\$(srcdir):*/:/;
11564 s/:*\${srcdir}:*/:/;
11566 s/^\([^=]*=[ ]*\):*/\1/;
11572 DEFS=-DHAVE_CONFIG_H
11576 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11577 # 1. Remove the extension, and $U if already installed.
11578 ac_i=`echo "$ac_i" |
11579 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11581 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11582 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11584 LIBOBJS=$ac_libobjs
11586 LTLIBOBJS=$ac_ltlibobjs
11590 : ${CONFIG_STATUS=./config.status}
11591 ac_clean_files_save=$ac_clean_files
11592 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11593 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11594 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11595 cat >$CONFIG_STATUS <<_ACEOF
11597 # Generated by $as_me.
11598 # Run this file to recreate the current configuration.
11599 # Compiler output produced by configure, useful for debugging
11600 # configure, is in config.log if it exists.
11603 ac_cs_recheck=false
11605 SHELL=\${CONFIG_SHELL-$SHELL}
11608 cat >>$CONFIG_STATUS <<\_ACEOF
11609 ## --------------------- ##
11610 ## M4sh Initialization. ##
11611 ## --------------------- ##
11613 # Be Bourne compatible
11614 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11617 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11618 # is contrary to our usage. Disable this feature.
11619 alias -g '${1+"$@"}'='"$@"'
11620 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11624 # Support unset when possible.
11625 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11632 # Work around bugs in pre-3.0 UWIN ksh.
11633 $as_unset ENV MAIL MAILPATH
11640 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11641 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11642 LC_TELEPHONE LC_TIME
11644 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11645 eval $as_var=C; export $as_var
11651 # Required to use basename.
11652 if expr a : '\(a\)' >/dev/null 2>&1; then
11658 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11659 as_basename=basename
11665 # Name of the executable.
11666 as_me=`$as_basename "$0" ||
11667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11668 X"$0" : 'X\(//\)$' \| \
11669 X"$0" : 'X\(/\)$' \| \
11670 . : '\(.\)' 2>/dev/null ||
11672 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11673 /^X\/\(\/\/\)$/{ s//\1/; q; }
11674 /^X\/\(\/\).*/{ s//\1/; q; }
11678 # PATH needs CR, and LINENO needs CR and PATH.
11679 # Avoid depending upon Character Ranges.
11680 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11681 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11682 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11683 as_cr_digits='0123456789'
11684 as_cr_alnum=$as_cr_Letters$as_cr_digits
11686 # The user is always right.
11687 if test "${PATH_SEPARATOR+set}" != set; then
11688 echo "#! /bin/sh" >conf$$.sh
11689 echo "exit 0" >>conf$$.sh
11691 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11700 as_lineno_1=$LINENO
11701 as_lineno_2=$LINENO
11702 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11703 test "x$as_lineno_1" != "x$as_lineno_2" &&
11704 test "x$as_lineno_3" = "x$as_lineno_2" || {
11705 # Find who we are. Look in the path if we contain no path at all
11708 *[\\/]* ) as_myself=$0 ;;
11709 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11713 test -z "$as_dir" && as_dir=.
11714 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11719 # We did not find ourselves, most probably we were run as `sh COMMAND'
11720 # in which case we are not to be found in the path.
11721 if test "x$as_myself" = x; then
11724 if test ! -f "$as_myself"; then
11725 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11726 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11727 { (exit 1); exit 1; }; }
11729 case $CONFIG_SHELL in
11731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11735 test -z "$as_dir" && as_dir=.
11736 for as_base in sh bash ksh sh5; do
11739 if ("$as_dir/$as_base" -c '
11740 as_lineno_1=$LINENO
11741 as_lineno_2=$LINENO
11742 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11743 test "x$as_lineno_1" != "x$as_lineno_2" &&
11744 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11745 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11746 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11747 CONFIG_SHELL=$as_dir/$as_base
11748 export CONFIG_SHELL
11749 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11757 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11758 # uniformly replaced by the line number. The first 'sed' inserts a
11759 # line-number line before each line; the second 'sed' does the real
11760 # work. The second script uses 'N' to pair each line-number line
11761 # with the numbered line, and appends trailing '-' during
11762 # substitution so that $LINENO is not a special case at line end.
11763 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11764 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11765 sed '=' <$as_myself |
11770 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11773 s,^['$as_cr_digits']*\n,,
11774 ' >$as_me.lineno &&
11775 chmod +x $as_me.lineno ||
11776 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11777 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11778 { (exit 1); exit 1; }; }
11780 # Don't try to exec as it changes $[0], causing all sort of problems
11781 # (the dirname of $[0] is not the place where we might find the
11782 # original and so on. Autoconf is especially sensible to this).
11784 # Exit status is that of the last command.
11789 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11790 *c*,-n*) ECHO_N= ECHO_C='
11792 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11793 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11796 if expr a : '\(a\)' >/dev/null 2>&1; then
11802 rm -f conf$$ conf$$.exe conf$$.file
11804 if ln -s conf$$.file conf$$ 2>/dev/null; then
11805 # We could just check for DJGPP; but this test a) works b) is more generic
11806 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11807 if test -f conf$$.exe; then
11808 # Don't use ln at all; we don't have any links
11813 elif ln conf$$.file conf$$ 2>/dev/null; then
11818 rm -f conf$$ conf$$.exe conf$$.file
11820 if mkdir -p . 2>/dev/null; then
11826 as_executable_p="test -f"
11828 # Sed expression to map a string onto a valid CPP name.
11829 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11831 # Sed expression to map a string onto a valid variable name.
11832 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11836 # We need space, tab and new line, in precisely that order.
11846 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11847 # report actual input values of CONFIG_FILES etc. instead of their
11848 # values after options handling. Logging --version etc. is OK.
11852 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11853 ## Running $as_me. ##
11858 This file was extended by $as_me, which was
11859 generated by GNU Autoconf 2.57. Invocation command line was
11861 CONFIG_FILES = $CONFIG_FILES
11862 CONFIG_HEADERS = $CONFIG_HEADERS
11863 CONFIG_LINKS = $CONFIG_LINKS
11864 CONFIG_COMMANDS = $CONFIG_COMMANDS
11868 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11872 # Files that config.status was made for.
11873 if test -n "$ac_config_files"; then
11874 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11877 if test -n "$ac_config_headers"; then
11878 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11881 if test -n "$ac_config_links"; then
11882 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11885 if test -n "$ac_config_commands"; then
11886 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11889 cat >>$CONFIG_STATUS <<\_ACEOF
11892 \`$as_me' instantiates files from templates according to the
11893 current configuration.
11895 Usage: $0 [OPTIONS] [FILE]...
11897 -h, --help print this help, then exit
11898 -V, --version print version number, then exit
11899 -q, --quiet do not print progress messages
11900 -d, --debug don't remove temporary files
11901 --recheck update $as_me by reconfiguring in the same conditions
11902 --file=FILE[:TEMPLATE]
11903 instantiate the configuration file FILE
11904 --header=FILE[:TEMPLATE]
11905 instantiate the configuration header FILE
11907 Configuration files:
11910 Configuration headers:
11913 Configuration commands:
11916 Report bugs to <bug-autoconf@gnu.org>."
11919 cat >>$CONFIG_STATUS <<_ACEOF
11922 configured by $0, generated by GNU Autoconf 2.57,
11923 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11925 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11926 Free Software Foundation, Inc.
11927 This config.status script is free software; the Free Software Foundation
11928 gives unlimited permission to copy, distribute and modify it."
11933 cat >>$CONFIG_STATUS <<\_ACEOF
11934 # If no file are specified by the user, then we need to provide default
11935 # value. By we need to know if files were specified by the user.
11941 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11942 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11950 *) # This is not an option, so the user has probably given explicit
11953 ac_need_defaults=false;;
11957 # Handling of the options.
11959 cat >>$CONFIG_STATUS <<\_ACEOF
11960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11962 --version | --vers* | -V )
11963 echo "$ac_cs_version"; exit 0 ;;
11965 # Conflict between --help and --header
11966 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11967 Try \`$0 --help' for more information." >&5
11968 echo "$as_me: error: ambiguous option: $1
11969 Try \`$0 --help' for more information." >&2;}
11970 { (exit 1); exit 1; }; };;
11971 --help | --hel | -h )
11972 echo "$ac_cs_usage"; exit 0 ;;
11973 --debug | --d* | -d )
11975 --file | --fil | --fi | --f )
11977 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11978 ac_need_defaults=false;;
11979 --header | --heade | --head | --hea )
11981 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11982 ac_need_defaults=false;;
11983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11984 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11987 # This is an error.
11988 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11989 Try \`$0 --help' for more information." >&5
11990 echo "$as_me: error: unrecognized option: $1
11991 Try \`$0 --help' for more information." >&2;}
11992 { (exit 1); exit 1; }; } ;;
11994 *) ac_config_targets="$ac_config_targets $1" ;;
12000 ac_configure_extra_args=
12002 if $ac_cs_silent; then
12004 ac_configure_extra_args="$ac_configure_extra_args --silent"
12008 cat >>$CONFIG_STATUS <<_ACEOF
12009 if \$ac_cs_recheck; then
12010 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12011 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12016 cat >>$CONFIG_STATUS <<_ACEOF
12018 # INIT-COMMANDS section.
12021 AMDEP_TRUE="$AMDEP_TRUE"
12022 ac_aux_dir="$ac_aux_dir"
12028 cat >>$CONFIG_STATUS <<\_ACEOF
12029 for ac_config_target in $ac_config_targets
12031 case "$ac_config_target" in
12032 # Handling of arguments.
12033 "src/engine/sabcfg.h" ) CONFIG_FILES="$CONFIG_FILES src/engine/sabcfg.h" ;;
12034 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12035 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12036 "src/engine/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/engine/Makefile" ;;
12037 "src/command/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/command/Makefile" ;;
12038 "src/command/sablot-config" ) CONFIG_FILES="$CONFIG_FILES src/command/sablot-config" ;;
12039 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12040 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
12041 "doc/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
12042 "doc/apidoc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/apidoc/Makefile" ;;
12043 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
12044 "utils/apidoc/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/apidoc/Makefile" ;;
12045 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12046 "autocfg/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS autocfg/config.h:autocfg/config.h.in" ;;
12047 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12048 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12049 { (exit 1); exit 1; }; };;
12053 # If the user did not use the arguments to specify the items to instantiate,
12054 # then the envvar interface is used. Set only those that are not.
12055 # We use the long form for the default assignment because of an extremely
12056 # bizarre bug on SunOS 4.1.3.
12057 if $ac_need_defaults; then
12058 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12059 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12060 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12063 # Have a temporary directory for convenience. Make it in the build tree
12064 # simply because there is no reason to put it here, and in addition,
12065 # creating and moving files from /tmp can sometimes cause problems.
12066 # Create a temporary directory, and hook for its removal unless debugging.
12069 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12070 trap '{ (exit 1); exit 1; }' 1 2 13 15
12073 # Create a (secure) tmp directory for tmp files.
12076 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12077 test -n "$tmp" && test -d "$tmp"
12080 tmp=./confstat$$-$RANDOM
12081 (umask 077 && mkdir $tmp)
12084 echo "$me: cannot create a temporary directory in ." >&2
12085 { (exit 1); exit 1; }
12090 cat >>$CONFIG_STATUS <<_ACEOF
12093 # CONFIG_FILES section.
12096 # No need to generate the scripts if there are no CONFIG_FILES.
12097 # This happens for instance when ./config.status config.h
12098 if test -n "\$CONFIG_FILES"; then
12099 # Protect against being on the right side of a sed subst in config.status.
12100 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12101 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12102 s,@SHELL@,$SHELL,;t t
12103 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12104 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12105 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12106 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12107 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12108 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12109 s,@exec_prefix@,$exec_prefix,;t t
12110 s,@prefix@,$prefix,;t t
12111 s,@program_transform_name@,$program_transform_name,;t t
12112 s,@bindir@,$bindir,;t t
12113 s,@sbindir@,$sbindir,;t t
12114 s,@libexecdir@,$libexecdir,;t t
12115 s,@datadir@,$datadir,;t t
12116 s,@sysconfdir@,$sysconfdir,;t t
12117 s,@sharedstatedir@,$sharedstatedir,;t t
12118 s,@localstatedir@,$localstatedir,;t t
12119 s,@libdir@,$libdir,;t t
12120 s,@includedir@,$includedir,;t t
12121 s,@oldincludedir@,$oldincludedir,;t t
12122 s,@infodir@,$infodir,;t t
12123 s,@mandir@,$mandir,;t t
12124 s,@build_alias@,$build_alias,;t t
12125 s,@host_alias@,$host_alias,;t t
12126 s,@target_alias@,$target_alias,;t t
12127 s,@DEFS@,$DEFS,;t t
12128 s,@ECHO_C@,$ECHO_C,;t t
12129 s,@ECHO_N@,$ECHO_N,;t t
12130 s,@ECHO_T@,$ECHO_T,;t t
12131 s,@LIBS@,$LIBS,;t t
12132 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12133 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12134 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12135 s,@PACKAGE@,$PACKAGE,;t t
12136 s,@VERSION@,$VERSION,;t t
12137 s,@EXEEXT@,$EXEEXT,;t t
12138 s,@OBJEXT@,$OBJEXT,;t t
12139 s,@ACLOCAL@,$ACLOCAL,;t t
12140 s,@AUTOCONF@,$AUTOCONF,;t t
12141 s,@AUTOMAKE@,$AUTOMAKE,;t t
12142 s,@AUTOHEADER@,$AUTOHEADER,;t t
12143 s,@MAKEINFO@,$MAKEINFO,;t t
12144 s,@AMTAR@,$AMTAR,;t t
12145 s,@install_sh@,$install_sh,;t t
12146 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12148 s,@SET_MAKE@,$SET_MAKE,;t t
12149 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12150 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12151 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12152 s,@DEPDIR@,$DEPDIR,;t t
12153 s,@build@,$build,;t t
12154 s,@build_cpu@,$build_cpu,;t t
12155 s,@build_vendor@,$build_vendor,;t t
12156 s,@build_os@,$build_os,;t t
12157 s,@host@,$host,;t t
12158 s,@host_cpu@,$host_cpu,;t t
12159 s,@host_vendor@,$host_vendor,;t t
12160 s,@host_os@,$host_os,;t t
12162 s,@CFLAGS@,$CFLAGS,;t t
12163 s,@LDFLAGS@,$LDFLAGS,;t t
12164 s,@CPPFLAGS@,$CPPFLAGS,;t t
12165 s,@ac_ct_CC@,$ac_ct_CC,;t t
12166 s,@am__include@,$am__include,;t t
12167 s,@am__quote@,$am__quote,;t t
12168 s,@CCDEPMODE@,$CCDEPMODE,;t t
12169 s,@LN_S@,$LN_S,;t t
12170 s,@ECHO@,$ECHO,;t t
12171 s,@RANLIB@,$RANLIB,;t t
12172 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12173 s,@STRIP@,$STRIP,;t t
12174 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12176 s,@EGREP@,$EGREP,;t t
12177 s,@LIBTOOL@,$LIBTOOL,;t t
12179 s,@CXXFLAGS@,$CXXFLAGS,;t t
12180 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12181 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
12182 s,@CXXCPP@,$CXXCPP,;t t
12183 s,@CXXWARNING_FLAGS@,$CXXWARNING_FLAGS,;t t
12184 s,@PERL_PROG@,$PERL_PROG,;t t
12185 s,@BUILD_APIDOCS@,$BUILD_APIDOCS,;t t
12186 s,@HTML_DIR@,$HTML_DIR,;t t
12187 s,@EXPAT_LIBS@,$EXPAT_LIBS,;t t
12188 s,@sabcfg_types_h@,$sabcfg_types_h,;t t
12189 s,@ICONV_LIB@,$ICONV_LIB,;t t
12190 s,@has_perl@,$has_perl,;t t
12191 s,@OTHER_LIBS@,$OTHER_LIBS,;t t
12192 s,@LIBOBJS@,$LIBOBJS,;t t
12193 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12198 cat >>$CONFIG_STATUS <<\_ACEOF
12199 # Split the substitutions into bite-sized pieces for seds with
12200 # small command number limits, like on Digital OSF/1 and HP-UX.
12201 ac_max_sed_lines=48
12202 ac_sed_frag=1 # Number of current file.
12203 ac_beg=1 # First line for current file.
12204 ac_end=$ac_max_sed_lines # Line after last line for current file.
12207 while $ac_more_lines; do
12208 if test $ac_beg -gt 1; then
12209 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12211 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12213 if test ! -s $tmp/subs.frag; then
12214 ac_more_lines=false
12216 # The purpose of the label and of the branching condition is to
12217 # speed up the sed processing (if there are no `@' at all, there
12218 # is no need to browse any of the substitutions).
12219 # These are the two extra sed commands mentioned above.
12221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12222 if test -z "$ac_sed_cmds"; then
12223 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12225 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12227 ac_sed_frag=`expr $ac_sed_frag + 1`
12229 ac_end=`expr $ac_end + $ac_max_sed_lines`
12232 if test -z "$ac_sed_cmds"; then
12235 fi # test -n "$CONFIG_FILES"
12238 cat >>$CONFIG_STATUS <<\_ACEOF
12239 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12240 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12242 - | *:- | *:-:* ) # input from stdin
12244 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12245 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12246 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12247 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12248 * ) ac_file_in=$ac_file.in ;;
12251 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12252 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12254 X"$ac_file" : 'X\(//\)[^/]' \| \
12255 X"$ac_file" : 'X\(//\)$' \| \
12256 X"$ac_file" : 'X\(/\)' \| \
12257 . : '\(.\)' 2>/dev/null ||
12259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12261 /^X\(\/\/\)$/{ s//\1/; q; }
12262 /^X\(\/\).*/{ s//\1/; q; }
12264 { if $as_mkdir_p; then
12269 while test ! -d "$as_dir"; do
12270 as_dirs="$as_dir $as_dirs"
12271 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12273 X"$as_dir" : 'X\(//\)[^/]' \| \
12274 X"$as_dir" : 'X\(//\)$' \| \
12275 X"$as_dir" : 'X\(/\)' \| \
12276 . : '\(.\)' 2>/dev/null ||
12278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12280 /^X\(\/\/\)$/{ s//\1/; q; }
12281 /^X\(\/\).*/{ s//\1/; q; }
12284 test ! -n "$as_dirs" || mkdir $as_dirs
12285 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12286 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12287 { (exit 1); exit 1; }; }; }
12291 if test "$ac_dir" != .; then
12292 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12293 # A "../" for each directory in $ac_dir_suffix.
12294 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12296 ac_dir_suffix= ac_top_builddir=
12300 .) # No --srcdir option. We are building in place.
12302 if test -z "$ac_top_builddir"; then
12305 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12307 [\\/]* | ?:[\\/]* ) # Absolute path.
12308 ac_srcdir=$srcdir$ac_dir_suffix;
12309 ac_top_srcdir=$srcdir ;;
12310 *) # Relative path.
12311 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12312 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12314 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12316 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12317 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12318 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12319 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12324 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12327 if test x"$ac_file" != x-; then
12328 { echo "$as_me:$LINENO: creating $ac_file" >&5
12329 echo "$as_me: creating $ac_file" >&6;}
12332 # Let's still pretend it is `configure' which instantiates (i.e., don't
12333 # use $as_me), people would be surprised to read:
12334 # /* config.h. Generated by config.status. */
12335 if test x"$ac_file" = x-; then
12338 configure_input="$ac_file. "
12340 configure_input=$configure_input"Generated from `echo $ac_file_in |
12341 sed 's,.*/,,'` by configure."
12343 # First look for the input files in the build tree, otherwise in the
12345 ac_file_inputs=`IFS=:
12346 for f in $ac_file_in; do
12348 -) echo $tmp/stdin ;;
12350 # Absolute (can't be DOS-style, as IFS=:)
12351 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12352 echo "$as_me: error: cannot find input file: $f" >&2;}
12353 { (exit 1); exit 1; }; }
12356 if test -f "$f"; then
12359 elif test -f "$srcdir/$f"; then
12364 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12365 echo "$as_me: error: cannot find input file: $f" >&2;}
12366 { (exit 1); exit 1; }; }
12369 done` || { (exit 1); exit 1; }
12371 cat >>$CONFIG_STATUS <<_ACEOF
12375 cat >>$CONFIG_STATUS <<\_ACEOF
12377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12378 s,@configure_input@,$configure_input,;t t
12379 s,@srcdir@,$ac_srcdir,;t t
12380 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12381 s,@top_srcdir@,$ac_top_srcdir,;t t
12382 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12383 s,@builddir@,$ac_builddir,;t t
12384 s,@abs_builddir@,$ac_abs_builddir,;t t
12385 s,@top_builddir@,$ac_top_builddir,;t t
12386 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12387 s,@INSTALL@,$ac_INSTALL,;t t
12388 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12390 if test x"$ac_file" != x-; then
12391 mv $tmp/out $ac_file
12399 cat >>$CONFIG_STATUS <<\_ACEOF
12402 # CONFIG_HEADER section.
12405 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12406 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12408 # ac_d sets the value in "#define NAME VALUE" lines.
12409 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12410 ac_dB='[ ].*$,\1#\2'
12413 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12414 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12415 ac_uB='$,\1#\2define\3'
12419 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12420 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12422 - | *:- | *:-:* ) # input from stdin
12424 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12425 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12426 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12427 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12428 * ) ac_file_in=$ac_file.in ;;
12431 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12432 echo "$as_me: creating $ac_file" >&6;}
12434 # First look for the input files in the build tree, otherwise in the
12436 ac_file_inputs=`IFS=:
12437 for f in $ac_file_in; do
12439 -) echo $tmp/stdin ;;
12441 # Absolute (can't be DOS-style, as IFS=:)
12442 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12443 echo "$as_me: error: cannot find input file: $f" >&2;}
12444 { (exit 1); exit 1; }; }
12447 if test -f "$f"; then
12450 elif test -f "$srcdir/$f"; then
12455 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12456 echo "$as_me: error: cannot find input file: $f" >&2;}
12457 { (exit 1); exit 1; }; }
12460 done` || { (exit 1); exit 1; }
12461 # Remove the trailing spaces.
12462 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12466 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12467 # `conftest.undefs', that substitutes the proper values into
12468 # config.h.in to produce config.h. The first handles `#define'
12469 # templates, and the second `#undef' templates.
12470 # And first: Protect against being on the right side of a sed subst in
12471 # config.status. Protect against being in an unquoted here document
12472 # in config.status.
12473 rm -f conftest.defines conftest.undefs
12474 # Using a here document instead of a string reduces the quoting nightmare.
12475 # Putting comments in sed scripts is not portable.
12477 # `end' is used to avoid that the second main sed command (meant for
12478 # 0-ary CPP macros) applies to n-ary macro definitions.
12479 # See the Autoconf documentation for `clear'.
12480 cat >confdef2sed.sed <<\_ACEOF
12485 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12487 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12490 # If some macros were called several times there might be several times
12491 # the same #defines, which is useless. Nevertheless, we may not want to
12492 # sort them, since we want the *last* AC-DEFINE to be honored.
12493 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12494 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12495 rm -f confdef2sed.sed
12497 # This sed command replaces #undef with comments. This is necessary, for
12498 # example, in the case of _POSIX_SOURCE, which is predefined and required
12499 # on some systems where configure will not decide to define it.
12500 cat >>conftest.undefs <<\_ACEOF
12501 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12504 # Break up conftest.defines because some shells have a limit on the size
12505 # of here documents, and old seds have small limits too (100 cmds).
12506 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12507 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12508 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12509 echo ' :' >>$CONFIG_STATUS
12510 rm -f conftest.tail
12511 while grep . conftest.defines >/dev/null
12513 # Write a limited-size here document to $tmp/defines.sed.
12514 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12515 # Speed up: don't consider the non `#define' lines.
12516 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12517 # Work around the forget-to-reset-the-flag bug.
12518 echo 't clr' >>$CONFIG_STATUS
12519 echo ': clr' >>$CONFIG_STATUS
12520 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12522 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12524 mv $tmp/out $tmp/in
12526 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12527 rm -f conftest.defines
12528 mv conftest.tail conftest.defines
12530 rm -f conftest.defines
12531 echo ' fi # grep' >>$CONFIG_STATUS
12532 echo >>$CONFIG_STATUS
12534 # Break up conftest.undefs because some shells have a limit on the size
12535 # of here documents, and old seds have small limits too (100 cmds).
12536 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12537 rm -f conftest.tail
12538 while grep . conftest.undefs >/dev/null
12540 # Write a limited-size here document to $tmp/undefs.sed.
12541 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12542 # Speed up: don't consider the non `#undef'
12543 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12544 # Work around the forget-to-reset-the-flag bug.
12545 echo 't clr' >>$CONFIG_STATUS
12546 echo ': clr' >>$CONFIG_STATUS
12547 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12549 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12551 mv $tmp/out $tmp/in
12553 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12554 rm -f conftest.undefs
12555 mv conftest.tail conftest.undefs
12557 rm -f conftest.undefs
12559 cat >>$CONFIG_STATUS <<\_ACEOF
12560 # Let's still pretend it is `configure' which instantiates (i.e., don't
12561 # use $as_me), people would be surprised to read:
12562 # /* config.h. Generated by config.status. */
12563 if test x"$ac_file" = x-; then
12564 echo "/* Generated by configure. */" >$tmp/config.h
12566 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12568 cat $tmp/in >>$tmp/config.h
12570 if test x"$ac_file" != x-; then
12571 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12572 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12573 echo "$as_me: $ac_file is unchanged" >&6;}
12575 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12577 X"$ac_file" : 'X\(//\)[^/]' \| \
12578 X"$ac_file" : 'X\(//\)$' \| \
12579 X"$ac_file" : 'X\(/\)' \| \
12580 . : '\(.\)' 2>/dev/null ||
12582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12584 /^X\(\/\/\)$/{ s//\1/; q; }
12585 /^X\(\/\).*/{ s//\1/; q; }
12587 { if $as_mkdir_p; then
12592 while test ! -d "$as_dir"; do
12593 as_dirs="$as_dir $as_dirs"
12594 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12596 X"$as_dir" : 'X\(//\)[^/]' \| \
12597 X"$as_dir" : 'X\(//\)$' \| \
12598 X"$as_dir" : 'X\(/\)' \| \
12599 . : '\(.\)' 2>/dev/null ||
12601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12603 /^X\(\/\/\)$/{ s//\1/; q; }
12604 /^X\(\/\).*/{ s//\1/; q; }
12607 test ! -n "$as_dirs" || mkdir $as_dirs
12608 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12609 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12610 { (exit 1); exit 1; }; }; }
12613 mv $tmp/config.h $ac_file
12617 rm -f $tmp/config.h
12619 # Run the commands associated with the file.
12621 autocfg/config.h ) # update the timestamp
12622 echo timestamp >"autocfg/stamp-h1"
12627 cat >>$CONFIG_STATUS <<\_ACEOF
12630 # CONFIG_COMMANDS section.
12632 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12633 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12634 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12635 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12636 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12637 X"$ac_dest" : 'X\(//\)[^/]' \| \
12638 X"$ac_dest" : 'X\(//\)$' \| \
12639 X"$ac_dest" : 'X\(/\)' \| \
12640 . : '\(.\)' 2>/dev/null ||
12642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12644 /^X\(\/\/\)$/{ s//\1/; q; }
12645 /^X\(\/\).*/{ s//\1/; q; }
12649 if test "$ac_dir" != .; then
12650 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12651 # A "../" for each directory in $ac_dir_suffix.
12652 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12654 ac_dir_suffix= ac_top_builddir=
12658 .) # No --srcdir option. We are building in place.
12660 if test -z "$ac_top_builddir"; then
12663 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12665 [\\/]* | ?:[\\/]* ) # Absolute path.
12666 ac_srcdir=$srcdir$ac_dir_suffix;
12667 ac_top_srcdir=$srcdir ;;
12668 *) # Relative path.
12669 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12670 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12672 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12674 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12675 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12676 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12677 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12680 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12681 echo "$as_me: executing $ac_dest commands" >&6;}
12684 test x"$AMDEP_TRUE" != x"" ||
12685 for mf in $CONFIG_FILES; do
12687 Makefile) dirpart=.;;
12688 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
12691 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12692 # Extract the definition of DEP_FILES from the Makefile without
12694 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12695 test -z "$DEPDIR" && continue
12696 # When using ansi2knr, U may be empty or an underscore; expand it
12697 U=`sed -n -e '/^U = / s///p' < "$mf"`
12698 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12699 # We invoke sed twice because it is the simplest approach to
12700 # changing $(DEPDIR) to its actual value in the expansion.
12701 for file in `sed -n -e '
12702 /^DEP_FILES = .*\\\\$/ {
12711 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12712 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12713 # Make sure the directory exists.
12714 test -f "$dirpart/$file" && continue
12715 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
12716 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
12717 # echo "creating $dirpart/$file"
12718 echo '# dummy' > "$dirpart/$file"
12726 cat >>$CONFIG_STATUS <<\_ACEOF
12728 { (exit 0); exit 0; }
12730 chmod +x $CONFIG_STATUS
12731 ac_clean_files=$ac_clean_files_save
12734 # configure is writing to config.log, and then calls config.status.
12735 # config.status does its own redirection, appending to config.log.
12736 # Unfortunately, on DOS this fails, as config.log is still kept open
12737 # by configure, so config.status won't be able to write to it; its
12738 # output is simply discarded. So we exec the FD to /dev/null,
12739 # effectively closing config.log, so it can be properly (re)opened and
12740 # appended to by config.status. When coming back to configure, we
12741 # need to make the FD available again.
12742 if test "$no_create" != yes; then
12744 ac_config_status_args=
12745 test "$silent" = yes &&
12746 ac_config_status_args="$ac_config_status_args --quiet"
12748 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12750 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12751 # would make configure fail if this is the last instruction.
12752 $ac_cs_success || { (exit 1); exit 1; }
12758 if test $has_wchar = 0; then
12759 { echo "$as_me:$LINENO: WARNING: Your system doesn't support standard widechar library (wchar.h), result of the <xsl:sort> instruction may be undefined" >&5
12760 echo "$as_me: WARNING: Your system doesn't support standard widechar library (wchar.h), result of the <xsl:sort> instruction may be undefined" >&2;}