2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.56 for fGIS 0.0.1.
5 # Report bugs to <dron@remotesensing.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
245 # Find the correct PATH separator. Usually this is `:', but
246 # DJGPP uses `;' like DOS.
247 if test "X${PATH_SEPARATOR+set}" != Xset; then
248 UNAME=${UNAME-`uname 2>/dev/null`}
250 *-DOS) lt_cv_sys_path_separator=';' ;;
251 *) lt_cv_sys_path_separator=':' ;;
253 PATH_SEPARATOR=$lt_cv_sys_path_separator
257 # Check that we are running under the correct shell.
258 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Remove one level of quotation (which was required for Make).
263 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
268 if test "X$1" = X--no-reexec; then
269 # Discard the --no-reexec flag, and continue.
271 elif test "X$1" = X--fallback-echo; then
272 # Avoid inline document here, it may be left over
274 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
275 # Yippee, $echo works!
278 # Restart under the correct shell.
279 exec $SHELL "$0" --no-reexec ${1+"$@"}
282 if test "X$1" = X--fallback-echo; then
283 # used as fallback echo
291 # The HP-UX ksh and POSIX shell print the target directory to stdout
293 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
295 if test -z "$ECHO"; then
296 if test "X${echo_test_string+set}" != Xset; then
297 # find a string as large as possible, as long as the shell can cope with it
298 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
299 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
300 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
301 echo_test_string="`eval $cmd`" &&
302 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
309 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
310 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
311 test "X$echo_testing_string" = "X$echo_test_string"; then
314 # The Solaris, AIX, and Digital Unix default echo programs unquote
315 # backslashes. This makes it impossible to quote backslashes using
316 # echo "$something" | sed 's/\\/\\\\/g'
318 # So, first we look for a working echo in the user's PATH.
320 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
321 for dir in $PATH /usr/ucb; do
322 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
323 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
332 if test "X$echo" = Xecho; then
333 # We didn't find a better echo, so look for alternatives.
334 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
335 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
336 test "X$echo_testing_string" = "X$echo_test_string"; then
337 # This shell has a builtin print -r that does the trick.
339 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
340 test "X$CONFIG_SHELL" != X/bin/ksh; then
341 # If we have ksh, try running configure again with it.
342 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
343 export ORIGINAL_CONFIG_SHELL
344 CONFIG_SHELL=/bin/ksh
346 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
350 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
351 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
352 test "X$echo_testing_string" = "X$echo_test_string"; then
355 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
361 SHELL="$CONFIG_SHELL"
363 echo="$CONFIG_SHELL $0 --fallback-echo"
364 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
365 test "X$echo_testing_string" = 'X\t' &&
366 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
367 test "X$echo_testing_string" = "X$echo_test_string"; then
368 echo="$CONFIG_SHELL $0 --fallback-echo"
370 # maybe with a smaller string...
373 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
374 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
381 if test "$prev" != 'sed 50q "$0"'; then
382 echo_test_string=`eval $prev`
383 export echo_test_string
384 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
386 # Oops. We lost completely, so just stick with echo.
395 # Copy echo and quote the copy suitably for passing to libtool from
396 # the Makefile, instead of quoting the original, which is used later.
398 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
399 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
405 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406 # so uname gets run too.
407 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
414 ac_default_prefix=/usr/local
415 ac_config_libobj_dir=.
420 SHELL=${CONFIG_SHELL-/bin/sh}
422 # Maximum number of lines to put in a shell here document.
423 # This variable seems obsolete. It should probably be removed, and
424 # only ac_max_sed_lines should be used.
425 : ${ac_max_here_lines=38}
427 # Identity of this package.
429 PACKAGE_TARNAME='fgis'
430 PACKAGE_VERSION='0.0.1'
431 PACKAGE_STRING='fGIS 0.0.1'
432 PACKAGE_BUGREPORT='dron@remotesensing.org'
434 # Factoring default headers for most tests.
435 ac_includes_default="\
438 # include <sys/types.h>
441 # include <sys/stat.h>
452 # if !STDC_HEADERS && HAVE_MEMORY_H
458 # include <strings.h>
461 # include <inttypes.h>
471 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 ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL YACC ALLOCA LIBOBJS POW_LIB FGIS_LIBDIR TCLHDIR TCLHDIRDASHI TCL_LIBRARY TCL_DEFS TCL_DELETEME TCL_DBGX TCL_EXEC_PREFIX TCL_SHLIB_LD SHLIB_SUFFIX TCL_LD_FLAGS TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_SHARED_LIB_SUFFIX TCL_INC_DIR TCL_PACKAGE_PATH TKHDIRDASHI TK_VERSION TK_DEFS TK_DBGX TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TK_INC_DIR LTLIBOBJS'
474 # Initialize some variables set by options.
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
486 program_transform_name=s,x,x,
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524 # Accept the important Cygnus configure options, so we can diagnose typos.
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file=$ac_optarg ;;
546 cache_file=config.cache ;;
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552 datadir=$ac_optarg ;;
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574 eval "enable_$ac_feature='$ac_optarg'" ;;
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
583 exec_prefix=$ac_optarg ;;
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
589 -help | --help | --hel | --he | -h)
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir=$ac_optarg ;;
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
613 -libdir | --libdir | --libdi | --libd)
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir=$ac_optarg ;;
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
640 # Obsolete; use --without-fp.
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir=$ac_optarg ;;
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix=$ac_optarg ;;
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix=$ac_optarg ;;
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name=$ac_optarg ;;
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704 sbindir=$ac_optarg ;;
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715 sharedstatedir=$ac_optarg ;;
717 -site | --site | --sit)
719 -site=* | --site=* | --sit=*)
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir=$ac_optarg ;;
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
742 -version | --version | --versio | --versi | --vers | -V)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756 eval "with_$ac_package='$ac_optarg'" ;;
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
768 # Obsolete; use --with-x.
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes=$ac_optarg ;;
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries=$ac_optarg ;;
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811 if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
820 eval ac_val=$`echo $ac_var`
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
832 eval ac_val=$`echo $ac_var`
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861 test "$silent" = yes && exec 6>/dev/null
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
881 if test ! -r $srcdir/$ac_unique_file; then
885 ac_srcdir_defaulted=no
887 if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CPP_set=${CPP+set}
929 ac_env_CPP_value=$CPP
930 ac_cv_env_CPP_set=${CPP+set}
931 ac_cv_env_CPP_value=$CPP
934 # Report the --help message.
936 if test "$ac_init_help" = "long"; then
937 # Omit some internal or obsolete options to make the list less imposing.
938 # This message is too long to be a string in the A/UX 3.1 sh.
940 \`configure' configures fGIS 0.0.1 to adapt to many kinds of systems.
942 Usage: $0 [OPTION]... [VAR=VALUE]...
944 To assign environment variables (e.g., CC, CFLAGS...), specify them as
945 VAR=VALUE. See below for descriptions of some of the useful variables.
947 Defaults for the options are specified in brackets.
950 -h, --help display this help and exit
951 --help=short display options specific to this package
952 --help=recursive display the short help of all the included packages
953 -V, --version display version information and exit
954 -q, --quiet, --silent do not print \`checking...' messages
955 --cache-file=FILE cache test results in FILE [disabled]
956 -C, --config-cache alias for \`--cache-file=config.cache'
957 -n, --no-create do not create output files
958 --srcdir=DIR find the sources in DIR [configure dir or \`..']
963 Installation directories:
964 --prefix=PREFIX install architecture-independent files in PREFIX
966 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
969 By default, \`make install' will install all the files in
970 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
971 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
972 for instance \`--prefix=\$HOME'.
974 For better control, use the options below.
976 Fine tuning of the installation directories:
977 --bindir=DIR user executables [EPREFIX/bin]
978 --sbindir=DIR system admin executables [EPREFIX/sbin]
979 --libexecdir=DIR program executables [EPREFIX/libexec]
980 --datadir=DIR read-only architecture-independent data [PREFIX/share]
981 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
982 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
983 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
984 --libdir=DIR object code libraries [EPREFIX/lib]
985 --includedir=DIR C header files [PREFIX/include]
986 --oldincludedir=DIR C header files for non-gcc [/usr/include]
987 --infodir=DIR info documentation [PREFIX/info]
988 --mandir=DIR man documentation [PREFIX/man]
994 --program-prefix=PREFIX prepend PREFIX to installed program names
995 --program-suffix=SUFFIX append SUFFIX to installed program names
996 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
999 --x-includes=DIR X include files are in DIR
1000 --x-libraries=DIR X library files are in DIR
1003 --build=BUILD configure for building on BUILD [guessed]
1004 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1008 if test -n "$ac_init_help"; then
1009 case $ac_init_help in
1010 short | recursive ) echo "Configuration of fGIS 0.0.1:";;
1015 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1016 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1017 --enable-shared=PKGS build shared libraries default=yes
1018 --enable-static=PKGS build static libraries default=yes
1019 --enable-fast-install=PKGS optimize for fast installation default=yes
1020 --disable-libtool-lock avoid locking (might break parallel builds)
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-gnu-ld assume the C compiler uses GNU ld default=no
1026 --with-pic try to use only PIC/non-PIC objects default=use both
1027 --with-x use the X Window System
1028 --with-tclinclude=DIR directory where tcl private headers are
1029 --with-tcl directory containing tcl configuration (tclConfig.sh)
1030 --with-tkinclude directory where tk private headers are
1031 --with-tk directory containing tk configuration (tkConfig.sh)
1033 Some influential environment variables:
1034 CC C compiler command
1035 CFLAGS C compiler flags
1036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1037 nonstandard directory <lib dir>
1038 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039 headers in a nonstandard directory <include dir>
1042 Use these variables to override the choices made by `configure' or to help
1043 it to find libraries and programs with nonstandard names/locations.
1045 Report bugs to <dron@remotesensing.org>.
1049 if test "$ac_init_help" = "recursive"; then
1050 # If there are subdirs, report their specific --help.
1052 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1053 test -d $ac_dir || continue
1056 if test "$ac_dir" != .; then
1057 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1058 # A "../" for each directory in $ac_dir_suffix.
1059 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1061 ac_dir_suffix= ac_top_builddir=
1065 .) # No --srcdir option. We are building in place.
1067 if test -z "$ac_top_builddir"; then
1070 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1072 [\\/]* | ?:[\\/]* ) # Absolute path.
1073 ac_srcdir=$srcdir$ac_dir_suffix;
1074 ac_top_srcdir=$srcdir ;;
1076 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1077 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1079 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1081 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1082 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1083 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1084 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1087 # Check for guested configure; otherwise get Cygnus style configure.
1088 if test -f $ac_srcdir/configure.gnu; then
1090 $SHELL $ac_srcdir/configure.gnu --help=recursive
1091 elif test -f $ac_srcdir/configure; then
1093 $SHELL $ac_srcdir/configure --help=recursive
1094 elif test -f $ac_srcdir/configure.ac ||
1095 test -f $ac_srcdir/configure.in; then
1097 $ac_configure --help
1099 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1105 test -n "$ac_init_help" && exit 0
1106 if $ac_init_version; then
1108 fGIS configure 0.0.1
1109 generated by GNU Autoconf 2.56
1111 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1112 Free Software Foundation, Inc.
1113 This configure script is free software; the Free Software Foundation
1114 gives unlimited permission to copy, distribute and modify it.
1120 This file contains any messages produced by compilers while
1121 running configure, to aid debugging if configure makes a mistake.
1123 It was created by fGIS $as_me 0.0.1, which was
1124 generated by GNU Autoconf 2.56. Invocation command line was
1135 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1136 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1137 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1138 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1139 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1141 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1142 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1144 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1145 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1146 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1147 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1148 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1149 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1150 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1158 test -z "$as_dir" && as_dir=.
1159 echo "PATH: $as_dir"
1174 # Keep a trace of the command line.
1175 # Strip out --no-create and --no-recursion so they do not pile up.
1176 # Strip out --silent because we don't want to record it for future runs.
1177 # Also quote any args containing shell meta-characters.
1178 # Make two passes to allow for proper duplicate-argument suppression.
1183 ac_must_keep_next=false
1189 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1193 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1194 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1197 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1199 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1200 if test $ac_must_keep_next = true; then
1201 ac_must_keep_next=false # Got value, back to normal.
1204 *=* | --config-cache | -C | -disable-* | --disable-* \
1205 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1206 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1207 | -with-* | --with-* | -without-* | --without-* | --x)
1208 case "$ac_configure_args0 " in
1209 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1212 -* ) ac_must_keep_next=true ;;
1215 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1216 # Get rid of the leading space.
1222 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1223 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1225 # When interrupted or exit'd, cleanup temporary files, and complete
1226 # config.log. We remove comments because anyway the quotes in there
1227 # would cause problems or look ugly.
1228 # WARNING: Be sure not to use single quotes in there, as some shells,
1229 # such as our DU 5.0 friend, will then `close' the trap.
1230 trap 'exit_status=$?
1231 # Save into config.log some information that might help in debugging.
1236 ## ---------------- ##
1237 ## Cache variables. ##
1238 ## ---------------- ##
1241 # The following way of writing the cache mishandles newlines in values,
1244 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1247 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1252 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1259 ## ----------------- ##
1260 ## Output variables. ##
1261 ## ----------------- ##
1264 for ac_var in $ac_subst_vars
1266 eval ac_val=$`echo $ac_var`
1267 echo "$ac_var='"'"'$ac_val'"'"'"
1271 if test -n "$ac_subst_files"; then
1278 for ac_var in $ac_subst_files
1280 eval ac_val=$`echo $ac_var`
1281 echo "$ac_var='"'"'$ac_val'"'"'"
1286 if test -s confdefs.h; then
1293 sed "/^$/d" confdefs.h | sort
1296 test "$ac_signal" != 0 &&
1297 echo "$as_me: caught signal $ac_signal"
1298 echo "$as_me: exit $exit_status"
1300 rm -f core core.* *.core &&
1301 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1304 for ac_signal in 1 2 13 15; do
1305 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1310 rm -rf conftest* confdefs.h
1311 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1314 # Predefined preprocessor variables.
1316 cat >>confdefs.h <<_ACEOF
1317 #define PACKAGE_NAME "$PACKAGE_NAME"
1321 cat >>confdefs.h <<_ACEOF
1322 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1326 cat >>confdefs.h <<_ACEOF
1327 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1331 cat >>confdefs.h <<_ACEOF
1332 #define PACKAGE_STRING "$PACKAGE_STRING"
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1341 # Let the site file select an alternate cache file if it wants to.
1342 # Prefer explicitly selected file to automatically selected ones.
1343 if test -z "$CONFIG_SITE"; then
1344 if test "x$prefix" != xNONE; then
1345 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1347 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1350 for ac_site_file in $CONFIG_SITE; do
1351 if test -r "$ac_site_file"; then
1352 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1353 echo "$as_me: loading site script $ac_site_file" >&6;}
1354 sed 's/^/| /' "$ac_site_file" >&5
1359 if test -r "$cache_file"; then
1360 # Some versions of bash will fail to source /dev/null (special
1361 # files actually), so we avoid doing that.
1362 if test -f "$cache_file"; then
1363 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1364 echo "$as_me: loading cache $cache_file" >&6;}
1366 [\\/]* | ?:[\\/]* ) . $cache_file;;
1367 *) . ./$cache_file;;
1371 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1372 echo "$as_me: creating cache $cache_file" >&6;}
1376 # Check that the precious variables saved in the cache have kept the same
1378 ac_cache_corrupted=false
1379 for ac_var in `(set) 2>&1 |
1380 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1381 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1382 eval ac_new_set=\$ac_env_${ac_var}_set
1383 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1384 eval ac_new_val="\$ac_env_${ac_var}_value"
1385 case $ac_old_set,$ac_new_set in
1387 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1388 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1389 ac_cache_corrupted=: ;;
1391 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1392 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1393 ac_cache_corrupted=: ;;
1396 if test "x$ac_old_val" != "x$ac_new_val"; then
1397 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1398 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1399 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1400 echo "$as_me: former value: $ac_old_val" >&2;}
1401 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1402 echo "$as_me: current value: $ac_new_val" >&2;}
1403 ac_cache_corrupted=:
1406 # Pass precious variables to config.status.
1407 if test "$ac_new_set" = set; then
1409 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1410 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1411 *) ac_arg=$ac_var=$ac_new_val ;;
1413 case " $ac_configure_args " in
1414 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1415 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1419 if $ac_cache_corrupted; then
1420 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1421 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1422 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1423 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1424 { (exit 1); exit 1; }; }
1428 ac_cpp='$CPP $CPPFLAGS'
1429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459 # AC_CONFIG_HEADERS([config.h])
1460 am__api_version="1.4"
1462 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1463 if test -f $ac_dir/install-sh; then
1465 ac_install_sh="$ac_aux_dir/install-sh -c"
1467 elif test -f $ac_dir/install.sh; then
1469 ac_install_sh="$ac_aux_dir/install.sh -c"
1471 elif test -f $ac_dir/shtool; then
1473 ac_install_sh="$ac_aux_dir/shtool install -c"
1477 if test -z "$ac_aux_dir"; then
1478 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1479 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1480 { (exit 1); exit 1; }; }
1482 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1483 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1484 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1486 # Find a good install program. We prefer a C program (faster),
1487 # so one script is as good as another. But avoid the broken or
1488 # incompatible versions:
1489 # SysV /etc/install, /usr/sbin/install
1490 # SunOS /usr/etc/install
1491 # IRIX /sbin/install
1493 # AmigaOS /C/install, which installs bootblocks on floppy discs
1494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1497 # ./install, which can be erroneously created by make from ./install.sh.
1498 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1499 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1500 if test -z "$INSTALL"; then
1501 if test "${ac_cv_path_install+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 test -z "$as_dir" && as_dir=.
1509 # Account for people who put trailing slashes in PATH elements.
1511 ./ | .// | /cC/* | \
1512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1515 # OSF1 and SCO ODT 3.0 have their own names for install.
1516 # Don't use installbsd from OSF since it installs stuff as root
1518 for ac_prog in ginstall scoinst install; do
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1521 if test $ac_prog = install &&
1522 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1523 # AIX install. It has an incompatible calling convention.
1525 elif test $ac_prog = install &&
1526 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1527 # program-specific install script used by HP pwplus--don't use.
1530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1542 if test "${ac_cv_path_install+set}" = set; then
1543 INSTALL=$ac_cv_path_install
1545 # As a last resort, use the slow shell script. We don't cache a
1546 # path for INSTALL within a source directory, because that will
1547 # break other packages using the cache if that directory is
1548 # removed, or if the path is relative.
1549 INSTALL=$ac_install_sh
1552 echo "$as_me:$LINENO: result: $INSTALL" >&5
1553 echo "${ECHO_T}$INSTALL" >&6
1555 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1556 # It thinks the first close brace ends the variable substitution.
1557 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1559 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1561 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1563 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1564 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1567 echo timestamp > conftestfile
1568 # Do `set' in a subshell so we don't clobber the current shell's
1569 # arguments. Must try -L first in case configure is actually a
1570 # symlink; some systems play weird games with the mod time of symlinks
1571 # (eg FreeBSD returns the mod time of the symlink's containing
1574 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1575 if test "$*" = "X"; then
1577 set X `ls -t $srcdir/configure conftestfile`
1579 if test "$*" != "X $srcdir/configure conftestfile" \
1580 && test "$*" != "X conftestfile $srcdir/configure"; then
1582 # If neither matched, then we have a broken ls. This can happen
1583 # if, for instance, CONFIG_SHELL is bash and it inherits a
1584 # broken ls alias from the environment. This has actually
1585 # happened. Such a system could not be considered "sane".
1586 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1587 alias in your environment" >&5
1588 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1589 alias in your environment" >&2;}
1590 { (exit 1); exit 1; }; }
1593 test "$2" = conftestfile
1599 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1600 Check your system clock" >&5
1601 echo "$as_me: error: newly created file is older than distributed files!
1602 Check your system clock" >&2;}
1603 { (exit 1); exit 1; }; }
1606 echo "$as_me:$LINENO: result: yes" >&5
1607 echo "${ECHO_T}yes" >&6
1608 test "$program_prefix" != NONE &&
1609 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1610 # Use a double $ so make ignores it.
1611 test "$program_suffix" != NONE &&
1612 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1613 # Double any \ or $. echo might interpret backslashes.
1614 # By default was `s,x,x', remove it if useless.
1615 cat <<\_ACEOF >conftest.sed
1616 s/[\\$]/&&/g;s/;s,x,x,$//
1618 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1621 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1622 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1623 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1624 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 cat >conftest.make <<\_ACEOF
1629 @echo 'ac_maketemp="$(MAKE)"'
1631 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1632 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1633 if test -n "$ac_maketemp"; then
1634 eval ac_cv_prog_make_${ac_make}_set=yes
1636 eval ac_cv_prog_make_${ac_make}_set=no
1640 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1641 echo "$as_me:$LINENO: result: yes" >&5
1642 echo "${ECHO_T}yes" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1647 SET_MAKE="MAKE=${MAKE-make}"
1655 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1656 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1657 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1658 { (exit 1); exit 1; }; }
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE "$PACKAGE"
1666 cat >>confdefs.h <<_ACEOF
1667 #define VERSION "$VERSION"
1672 missing_dir=`cd $ac_aux_dir && pwd`
1673 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1674 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1675 # Run test in a subshell; some versions of sh will print an error if
1676 # an executable is not found, even if stderr is redirected.
1677 # Redirect stdin to placate older versions of autoconf. Sigh.
1678 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1679 ACLOCAL=aclocal-${am__api_version}
1680 echo "$as_me:$LINENO: result: found" >&5
1681 echo "${ECHO_T}found" >&6
1683 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1684 echo "$as_me:$LINENO: result: missing" >&5
1685 echo "${ECHO_T}missing" >&6
1688 echo "$as_me:$LINENO: checking for working autoconf" >&5
1689 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1690 # Run test in a subshell; some versions of sh will print an error if
1691 # an executable is not found, even if stderr is redirected.
1692 # Redirect stdin to placate older versions of autoconf. Sigh.
1693 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1695 echo "$as_me:$LINENO: result: found" >&5
1696 echo "${ECHO_T}found" >&6
1698 AUTOCONF="$missing_dir/missing autoconf"
1699 echo "$as_me:$LINENO: result: missing" >&5
1700 echo "${ECHO_T}missing" >&6
1703 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1704 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1705 # Run test in a subshell; some versions of sh will print an error if
1706 # an executable is not found, even if stderr is redirected.
1707 # Redirect stdin to placate older versions of autoconf. Sigh.
1708 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1709 AUTOMAKE=automake-${am__api_version}
1710 echo "$as_me:$LINENO: result: found" >&5
1711 echo "${ECHO_T}found" >&6
1713 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1714 echo "$as_me:$LINENO: result: missing" >&5
1715 echo "${ECHO_T}missing" >&6
1718 echo "$as_me:$LINENO: checking for working autoheader" >&5
1719 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1720 # Run test in a subshell; some versions of sh will print an error if
1721 # an executable is not found, even if stderr is redirected.
1722 # Redirect stdin to placate older versions of autoconf. Sigh.
1723 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1724 AUTOHEADER=autoheader
1725 echo "$as_me:$LINENO: result: found" >&5
1726 echo "${ECHO_T}found" >&6
1728 AUTOHEADER="$missing_dir/missing autoheader"
1729 echo "$as_me:$LINENO: result: missing" >&5
1730 echo "${ECHO_T}missing" >&6
1733 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1734 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1735 # Run test in a subshell; some versions of sh will print an error if
1736 # an executable is not found, even if stderr is redirected.
1737 # Redirect stdin to placate older versions of autoconf. Sigh.
1738 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1740 echo "$as_me:$LINENO: result: found" >&5
1741 echo "${ECHO_T}found" >&6
1743 MAKEINFO="$missing_dir/missing makeinfo"
1744 echo "$as_me:$LINENO: result: missing" >&5
1745 echo "${ECHO_T}missing" >&6
1749 # AC_CONFIG_SRCDIR([include/regex.h])
1751 ac_config_headers="$ac_config_headers include/config.h"
1753 ac_config_commands="$ac_config_commands default-1"
1757 # Check whether --enable-shared or --disable-shared was given.
1758 if test "${enable_shared+set}" = set; then
1759 enableval="$enable_shared"
1760 p=${PACKAGE-default}
1762 yes) enable_shared=yes ;;
1763 no) enable_shared=no ;;
1766 # Look at the argument we got. We use all the common list separators.
1767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1768 for pkg in $enableval; do
1769 if test "X$pkg" = "X$p"; then
1779 # Check whether --enable-static or --disable-static was given.
1780 if test "${enable_static+set}" = set; then
1781 enableval="$enable_static"
1782 p=${PACKAGE-default}
1784 yes) enable_static=yes ;;
1785 no) enable_static=no ;;
1788 # Look at the argument we got. We use all the common list separators.
1789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1790 for pkg in $enableval; do
1791 if test "X$pkg" = "X$p"; then
1801 # Check whether --enable-fast-install or --disable-fast-install was given.
1802 if test "${enable_fast_install+set}" = set; then
1803 enableval="$enable_fast_install"
1804 p=${PACKAGE-default}
1806 yes) enable_fast_install=yes ;;
1807 no) enable_fast_install=no ;;
1809 enable_fast_install=no
1810 # Look at the argument we got. We use all the common list separators.
1811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1812 for pkg in $enableval; do
1813 if test "X$pkg" = "X$p"; then
1814 enable_fast_install=yes
1821 enable_fast_install=yes
1823 # Make sure we can run config.sub.
1824 $ac_config_sub sun4 >/dev/null 2>&1 ||
1825 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1826 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1827 { (exit 1); exit 1; }; }
1829 echo "$as_me:$LINENO: checking build system type" >&5
1830 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1831 if test "${ac_cv_build+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 ac_cv_build_alias=$build_alias
1835 test -z "$ac_cv_build_alias" &&
1836 ac_cv_build_alias=`$ac_config_guess`
1837 test -z "$ac_cv_build_alias" &&
1838 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1839 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1840 { (exit 1); exit 1; }; }
1841 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1842 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1843 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1844 { (exit 1); exit 1; }; }
1847 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1848 echo "${ECHO_T}$ac_cv_build" >&6
1850 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1851 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1852 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1855 echo "$as_me:$LINENO: checking host system type" >&5
1856 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1857 if test "${ac_cv_host+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 ac_cv_host_alias=$host_alias
1861 test -z "$ac_cv_host_alias" &&
1862 ac_cv_host_alias=$ac_cv_build_alias
1863 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1864 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1865 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1866 { (exit 1); exit 1; }; }
1869 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1870 echo "${ECHO_T}$ac_cv_host" >&6
1872 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1873 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1874 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1878 ac_cpp='$CPP $CPPFLAGS'
1879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1882 if test -n "$ac_tool_prefix"; then
1883 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1884 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_CC+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 if test -n "$CC"; then
1891 ac_cv_prog_CC="$CC" # Let the user override the test.
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910 if test -n "$CC"; then
1911 echo "$as_me:$LINENO: result: $CC" >&5
1912 echo "${ECHO_T}$CC" >&6
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1919 if test -z "$ac_cv_prog_CC"; then
1921 # Extract the first word of "gcc", so it can be a program name with args.
1922 set dummy gcc; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 if test -n "$ac_ct_CC"; then
1929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 ac_cv_prog_ac_ct_CC="gcc"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1961 if test -z "$CC"; then
1962 if test -n "$ac_tool_prefix"; then
1963 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}cc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC="$CC" # Let the user override the test.
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_CC="${ac_tool_prefix}cc"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 if test -n "$CC"; then
1991 echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1999 if test -z "$ac_cv_prog_CC"; then
2001 # Extract the first word of "cc", so it can be a program name with args.
2002 set dummy cc; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$ac_ct_CC"; then
2009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_ac_ct_CC="cc"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2028 if test -n "$ac_ct_CC"; then
2029 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2030 echo "${ECHO_T}$ac_ct_CC" >&6
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2042 if test -z "$CC"; then
2043 # Extract the first word of "cc", so it can be a program name with args.
2044 set dummy cc; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2062 ac_prog_rejected=yes
2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 if test $ac_prog_rejected = yes; then
2073 # We found a bogon in the path, so make sure we never use it.
2074 set dummy $ac_cv_prog_CC
2076 if test $# != 0; then
2077 # We chose a different compiler from the bogus one.
2078 # However, it has the same basename, so the bogon will be chosen
2079 # first if we set CC to just the basename; use the full file name.
2081 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2087 if test -n "$CC"; then
2088 echo "$as_me:$LINENO: result: $CC" >&5
2089 echo "${ECHO_T}$CC" >&6
2091 echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6
2096 if test -z "$CC"; then
2097 if test -n "$ac_tool_prefix"; then
2100 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2102 echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2104 if test "${ac_cv_prog_CC+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 if test -n "$CC"; then
2108 ac_cv_prog_CC="$CC" # Let the user override the test.
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 test -z "$as_dir" && as_dir=.
2115 for ac_exec_ext in '' $ac_executable_extensions; do
2116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2117 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 if test -n "$CC"; then
2128 echo "$as_me:$LINENO: result: $CC" >&5
2129 echo "${ECHO_T}$CC" >&6
2131 echo "$as_me:$LINENO: result: no" >&5
2132 echo "${ECHO_T}no" >&6
2135 test -n "$CC" && break
2138 if test -z "$CC"; then
2142 # Extract the first word of "$ac_prog", so it can be a program name with args.
2143 set dummy $ac_prog; ac_word=$2
2144 echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2146 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 if test -n "$ac_ct_CC"; then
2150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 test -z "$as_dir" && as_dir=.
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2159 ac_cv_prog_ac_ct_CC="$ac_prog"
2160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2169 if test -n "$ac_ct_CC"; then
2170 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2171 echo "${ECHO_T}$ac_ct_CC" >&6
2173 echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2177 test -n "$ac_ct_CC" && break
2186 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: no acceptable C compiler found in \$PATH
2189 See \`config.log' for more details." >&2;}
2190 { (exit 1); exit 1; }; }
2192 # Provide some information about the compiler.
2193 echo "$as_me:$LINENO:" \
2194 "checking for C compiler version" >&5
2195 ac_compiler=`set X $ac_compile; echo $2`
2196 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2197 (eval $ac_compiler --version </dev/null >&5) 2>&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }
2201 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2202 (eval $ac_compiler -v </dev/null >&5) 2>&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }
2206 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2207 (eval $ac_compiler -V </dev/null >&5) 2>&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }
2212 cat >conftest.$ac_ext <<_ACEOF
2213 #line $LINENO "configure"
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2228 ac_clean_files_save=$ac_clean_files
2229 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2230 # Try to create an executable without -o first, disregard a.out.
2231 # It will help us diagnose broken compilers, and finding out an intuition
2233 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2234 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2235 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2236 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2237 (eval $ac_link_default) 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; then
2241 # Find the output, starting from the most likely. This scheme is
2242 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2245 # Be careful to initialize this variable, since it used to be cached.
2246 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2248 # b.out is created by i960 compilers.
2249 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2251 test -f "$ac_file" || continue
2253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2256 # This is the source file.
2259 # We found the default executable, but exeext='' is most
2263 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264 # FIXME: I believe we export ac_cv_exeext for Libtool,
2265 # but it would be cool to find out if it's true. Does anybody
2266 # maintain Libtool? --akim.
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2277 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: C compiler cannot create executables
2280 See \`config.log' for more details." >&2;}
2281 { (exit 77); exit 77; }; }
2284 ac_exeext=$ac_cv_exeext
2285 echo "$as_me:$LINENO: result: $ac_file" >&5
2286 echo "${ECHO_T}$ac_file" >&6
2288 # Check the compiler produces executables we can run. If not, either
2289 # the compiler is broken, or we cross compile.
2290 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2291 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2292 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2293 # If not cross compiling, check that we can run a simple program.
2294 if test "$cross_compiling" != yes; then
2295 if { ac_try='./$ac_file'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2303 if test "$cross_compiling" = maybe; then
2306 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'.
2308 See \`config.log' for more details." >&5
2309 echo "$as_me: error: cannot run C compiled programs.
2310 If you meant to cross compile, use \`--host'.
2311 See \`config.log' for more details." >&2;}
2312 { (exit 1); exit 1; }; }
2316 echo "$as_me:$LINENO: result: yes" >&5
2317 echo "${ECHO_T}yes" >&6
2319 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2320 ac_clean_files=$ac_clean_files_save
2321 # Check the compiler produces executables we can run. If not, either
2322 # the compiler is broken, or we cross compile.
2323 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2324 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2325 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2326 echo "${ECHO_T}$cross_compiling" >&6
2328 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2329 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2331 (eval $ac_link) 2>&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; then
2335 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2336 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2337 # work properly (i.e., refer to `conftest.exe'), while it won't with
2339 for ac_file in conftest.exe conftest conftest.*; do
2340 test -f "$ac_file" || continue
2342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2343 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2350 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2353 See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
2357 rm -f conftest$ac_cv_exeext
2358 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2359 echo "${ECHO_T}$ac_cv_exeext" >&6
2361 rm -f conftest.$ac_ext
2362 EXEEXT=$ac_cv_exeext
2364 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2365 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2366 if test "${ac_cv_objext+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2385 rm -f conftest.o conftest.obj
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; then
2391 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2394 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2405 See \`config.log' for more details." >&2;}
2406 { (exit 1); exit 1; }; }
2409 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2411 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2412 echo "${ECHO_T}$ac_cv_objext" >&6
2413 OBJEXT=$ac_cv_objext
2415 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2416 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2417 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 cat >conftest.$ac_ext <<_ACEOF
2421 #line $LINENO "configure"
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h. */
2439 rm -f conftest.$ac_objext
2440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441 (eval $ac_compile) 2>&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); } &&
2445 { ac_try='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2458 rm -f conftest.$ac_objext conftest.$ac_ext
2459 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2462 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2463 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2464 GCC=`test $ac_compiler_gnu = yes && echo yes`
2465 ac_test_CFLAGS=${CFLAGS+set}
2466 ac_save_CFLAGS=$CFLAGS
2468 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2469 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2470 if test "${ac_cv_prog_cc_g+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 cat >conftest.$ac_ext <<_ACEOF
2474 #line $LINENO "configure"
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491 (eval $ac_compile) 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2503 echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2508 rm -f conftest.$ac_objext conftest.$ac_ext
2510 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2511 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2512 if test "$ac_test_CFLAGS" = set; then
2513 CFLAGS=$ac_save_CFLAGS
2514 elif test $ac_cv_prog_cc_g = yes; then
2515 if test "$GCC" = yes; then
2521 if test "$GCC" = yes; then
2527 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2528 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2529 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 ac_cv_prog_cc_stdc=no
2534 cat >conftest.$ac_ext <<_ACEOF
2535 #line $LINENO "configure"
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2543 #include <sys/types.h>
2544 #include <sys/stat.h>
2545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2546 struct buf { int x; };
2547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2548 static char *e (p, i)
2554 static char *f (char * (*g) (char **, int), char **p, ...)
2559 s = g (p, va_arg (v,int));
2563 int test (int i, double x);
2564 struct s1 {int (*f) (int a);};
2565 struct s2 {int (*f) (double a);};
2566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2577 # Don't try gcc -ansi; that turns off useful extensions and
2578 # breaks some systems' header files.
2579 # AIX -qlanglvl=ansi
2580 # Ultrix and OSF/1 -std1
2581 # HP-UX 10.20 and later -Ae
2582 # HP-UX older versions -Aa -D_HPUX_SOURCE
2583 # SVR4 -Xc -D__EXTENSIONS__
2584 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2586 CC="$ac_save_CC $ac_arg"
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 ac_cv_prog_cc_stdc=$ac_arg
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.$ac_objext
2608 rm -f conftest.$ac_ext conftest.$ac_objext
2613 case "x$ac_cv_prog_cc_stdc" in
2615 echo "$as_me:$LINENO: result: none needed" >&5
2616 echo "${ECHO_T}none needed" >&6 ;;
2618 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2619 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2620 CC="$CC $ac_cv_prog_cc_stdc" ;;
2623 # Some people use a C++ compiler to compile C. Since we use `exit',
2624 # in C++ we need to declare it. In case someone uses the same compiler
2625 # for both compiling C and C++ we need to have the C++ compiler decide
2626 # the declaration of exit, since it's the most demanding environment.
2627 cat >conftest.$ac_ext <<_ACEOF
2632 rm -f conftest.$ac_objext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634 (eval $ac_compile) 2>&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -s conftest.$ac_objext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 for ac_declaration in \
2646 '#include <stdlib.h>' \
2647 'extern "C" void std::exit (int) throw (); using std::exit;' \
2648 'extern "C" void std::exit (int); using std::exit;' \
2649 'extern "C" void exit (int) throw ();' \
2650 'extern "C" void exit (int);' \
2653 cat >conftest.$ac_ext <<_ACEOF
2654 #line $LINENO "configure"
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } &&
2676 { ac_try='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2689 rm -f conftest.$ac_objext conftest.$ac_ext
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line $LINENO "configure"
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2724 rm -f conftest.$ac_objext conftest.$ac_ext
2727 if test -n "$ac_declaration"; then
2728 echo '#ifdef __cplusplus' >>confdefs.h
2729 echo $ac_declaration >>confdefs.h
2730 echo '#endif' >>confdefs.h
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2738 rm -f conftest.$ac_objext conftest.$ac_ext
2740 ac_cpp='$CPP $CPPFLAGS'
2741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745 # Find the correct PATH separator. Usually this is `:', but
2746 # DJGPP uses `;' like DOS.
2747 if test "X${PATH_SEPARATOR+set}" != Xset; then
2748 UNAME=${UNAME-`uname 2>/dev/null`}
2750 *-DOS) lt_cv_sys_path_separator=';' ;;
2751 *) lt_cv_sys_path_separator=':' ;;
2753 PATH_SEPARATOR=$lt_cv_sys_path_separator
2757 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2758 if test "${with_gnu_ld+set}" = set; then
2759 withval="$with_gnu_ld"
2760 test "$withval" = no || with_gnu_ld=yes
2765 if test "$GCC" = yes; then
2766 # Check if gcc -print-prog-name=ld gives a path.
2767 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2768 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2771 # gcc leaves a trailing carriage return which upsets mingw
2772 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2774 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2777 # Accept absolute paths.
2778 [\\/]* | [A-Za-z]:[\\/]*)
2779 re_direlt='/[^/][^/]*/\.\./'
2780 # Canonicalize the path of ld
2781 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2782 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2783 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2785 test -z "$LD" && LD="$ac_prog"
2788 # If it fails, then pretend we aren't using GCC.
2792 # If it is relative, then search for the first ld in PATH.
2796 elif test "$with_gnu_ld" = yes; then
2797 echo "$as_me:$LINENO: checking for GNU ld" >&5
2798 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2800 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2801 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2803 if test "${lt_cv_path_LD+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 if test -z "$LD"; then
2807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2808 for ac_dir in $PATH; do
2809 test -z "$ac_dir" && ac_dir=.
2810 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2811 lt_cv_path_LD="$ac_dir/$ac_prog"
2812 # Check to see if the program is GNU ld. I'd rather use --version,
2813 # but apparently some GNU ld's only accept -v.
2814 # Break only if it was the GNU/non-GNU ld that we prefer.
2815 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2816 test "$with_gnu_ld" != no && break
2818 test "$with_gnu_ld" != yes && break
2824 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2829 if test -n "$LD"; then
2830 echo "$as_me:$LINENO: result: $LD" >&5
2831 echo "${ECHO_T}$LD" >&6
2833 echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2836 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2837 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2838 { (exit 1); exit 1; }; }
2839 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2840 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2841 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2845 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2846 lt_cv_prog_gnu_ld=yes
2848 lt_cv_prog_gnu_ld=no
2851 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2852 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2853 with_gnu_ld=$lt_cv_prog_gnu_ld
2856 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2857 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2858 if test "${lt_cv_ld_reload_flag+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 lt_cv_ld_reload_flag='-r'
2863 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2864 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2865 reload_flag=$lt_cv_ld_reload_flag
2866 test -n "$reload_flag" && reload_flag=" $reload_flag"
2868 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2869 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2870 if test "${lt_cv_path_NM+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 if test -n "$NM"; then
2874 # Let the user override the test.
2877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2878 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2879 test -z "$ac_dir" && ac_dir=.
2880 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2881 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2882 # Check to see if the nm accepts a BSD-compat flag.
2883 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2884 # nm: unknown option "B" ignored
2885 # Tru64's nm complains that /dev/null is an invalid object file
2886 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2887 lt_cv_path_NM="$tmp_nm -B"
2889 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2890 lt_cv_path_NM="$tmp_nm -p"
2893 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2894 continue # so that we can try to find one that supports BSD flags
2899 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2904 echo "$as_me:$LINENO: result: $NM" >&5
2905 echo "${ECHO_T}$NM" >&6
2907 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2908 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2910 if test "$LN_S" = "ln -s"; then
2911 echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6
2914 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2915 echo "${ECHO_T}no, using $LN_S" >&6
2918 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2919 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2920 if test "${lt_cv_deplibs_check_method+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 lt_cv_file_magic_cmd='$MAGIC_CMD'
2924 lt_cv_file_magic_test_file=
2925 lt_cv_deplibs_check_method='unknown'
2926 # Need to set the preceding variable on all platforms that support
2927 # interlibrary dependencies.
2928 # 'none' -- dependencies not supported.
2929 # `unknown' -- same as none, but documents that we really don't know.
2930 # 'pass_all' -- all dependencies passed with no checks.
2931 # 'test_compile' -- check by making test program.
2932 # 'file_magic [[regex]]' -- check by looking for files in library path
2933 # which responds to the $file_magic_cmd with a given egrep regex.
2934 # If you have `file' or equivalent on your system and you're not sure
2935 # whether `pass_all' will *always* work, you probably want this one.
2939 lt_cv_deplibs_check_method=pass_all
2943 lt_cv_deplibs_check_method=pass_all
2947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2948 lt_cv_file_magic_cmd='/usr/bin/file -L'
2949 lt_cv_file_magic_test_file=/shlib/libc.so
2952 cygwin* | mingw* | pw32*)
2953 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2954 lt_cv_file_magic_cmd='$OBJDUMP -f'
2957 darwin* | rhapsody*)
2958 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2959 lt_cv_file_magic_cmd='/usr/bin/file -L'
2961 rhapsody* | darwin1.[012])
2962 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2965 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2971 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2974 # Not sure whether the presence of OpenBSD here was a mistake.
2975 # Let's accept both of them until this is cleared up.
2976 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2977 lt_cv_file_magic_cmd=/usr/bin/file
2978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2982 lt_cv_deplibs_check_method=pass_all
2987 lt_cv_deplibs_check_method=pass_all
2991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2992 lt_cv_file_magic_cmd=/usr/bin/file
2993 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2996 irix5* | irix6* | nonstopux*)
2998 irix5* | nonstopux*)
2999 # this will be overridden with pass_all, but let us keep it just in case
3000 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3004 *-32|*"-32 ") libmagic=32-bit;;
3005 *-n32|*"-n32 ") libmagic=N32;;
3006 *-64|*"-64 ") libmagic=64-bit;;
3007 *) libmagic=never-match;;
3009 # this will be overridden with pass_all, but let us keep it just in case
3010 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3013 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3014 lt_cv_deplibs_check_method=pass_all
3017 # This must be Linux ELF.
3019 lt_cv_deplibs_check_method=pass_all
3020 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3024 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3025 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3027 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3033 lt_cv_file_magic_cmd=/usr/bin/file
3034 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3038 lt_cv_file_magic_cmd=/usr/bin/file
3039 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3040 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3043 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3047 osf3* | osf4* | osf5*)
3048 # this will be overridden with pass_all, but let us keep it just in case
3049 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3050 lt_cv_file_magic_test_file=/shlib/libc.so
3051 lt_cv_deplibs_check_method=pass_all
3055 lt_cv_deplibs_check_method=pass_all
3059 lt_cv_deplibs_check_method=pass_all
3060 lt_cv_file_magic_test_file=/lib/libc.so
3063 sysv5uw[78]* | sysv4*uw2*)
3064 lt_cv_deplibs_check_method=pass_all
3067 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3068 case $host_vendor in
3070 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]'
3071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3074 lt_cv_deplibs_check_method=pass_all
3077 lt_cv_file_magic_cmd='/bin/file'
3078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3081 lt_cv_file_magic_cmd='/bin/file'
3082 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3083 lt_cv_file_magic_test_file=/lib/libc.so
3090 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3091 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3092 file_magic_cmd=$lt_cv_file_magic_cmd
3093 deplibs_check_method=$lt_cv_deplibs_check_method
3102 # Check for command to grab the raw symbol name followed by C symbol from nm.
3103 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3104 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3105 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 # These are sane defaults that work on at least a few old systems.
3110 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3112 # Character class describing NM global symbol codes.
3113 symcode='[BCDEGRST]'
3115 # Regexp to match symbols that can be accessed directly from C.
3116 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3118 # Transform the above into a raw symbol and a C symbol.
3119 symxfrm='\1 \2\3 \3'
3121 # Transform an extracted symbol line into a proper C declaration
3122 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3124 # Transform an extracted symbol line into symbol name and symbol address
3125 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'"
3127 # Define system-specific variables.
3132 cygwin* | mingw* | pw32*)
3133 symcode='[ABCDGISTW]'
3135 hpux*) # Its linker distinguishes data from code symbols
3136 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3137 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'"
3140 symcode='[BCDEGRST]'
3150 # Handle CRLF in mingw tool chain
3154 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3158 # If we're using GNU nm, then use its standard symbol codes.
3159 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3160 symcode='[ABCDGISTW]'
3163 # Try without a prefix undercore, then with it.
3164 for ac_symprfx in "" "_"; do
3166 # Write the raw and C identifiers.
3167 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3169 # Check to see that the pipe works correctly.
3172 cat > conftest.$ac_ext <<EOF
3177 void nm_test_func(){}
3181 int main(){nm_test_var='a';nm_test_func();return(0);}
3184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3185 (eval $ac_compile) 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; then
3189 # Now try to grab the symbols.
3191 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3192 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } && test -s "$nlist"; then
3196 # Try sorting and uniquifying the output.
3197 if sort "$nlist" | uniq > "$nlist"T; then
3198 mv -f "$nlist"T "$nlist"
3203 # Make sure that we snagged all the symbols we need.
3204 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3205 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3206 cat <<EOF > conftest.$ac_ext
3212 # Now generate the symbol file.
3213 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3215 cat <<EOF >> conftest.$ac_ext
3216 #if defined (__STDC__) && __STDC__
3217 # define lt_ptr void *
3219 # define lt_ptr char *
3223 /* The mapping between symbol names and symbols. */
3228 lt_preloaded_symbols[] =
3231 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3232 cat <<\EOF >> conftest.$ac_ext
3240 # Now try linking the two files.
3241 mv conftest.$ac_objext conftstm.$ac_objext
3243 save_CFLAGS="$CFLAGS"
3244 LIBS="conftstm.$ac_objext"
3245 CFLAGS="$CFLAGS$no_builtin_flag"
3246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3247 (eval $ac_link) 2>&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } && test -s conftest; then
3254 CFLAGS="$save_CFLAGS"
3256 echo "cannot find nm_test_func in $nlist" >&5
3259 echo "cannot find nm_test_var in $nlist" >&5
3262 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3265 echo "$progname: failed program was:" >&5
3266 cat conftest.$ac_ext >&5
3268 rm -f conftest* conftst*
3270 # Do not use the global_symbol_pipe unless it works.
3271 if test "$pipe_works" = yes; then
3274 lt_cv_sys_global_symbol_pipe=
3280 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3281 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3282 global_symbol_to_cdecl=
3283 global_symbol_to_c_name_address=
3285 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3286 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3288 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3290 echo "$as_me:$LINENO: result: failed" >&5
3291 echo "${ECHO_T}failed" >&6
3293 echo "$as_me:$LINENO: result: ok" >&5
3294 echo "${ECHO_T}ok" >&6
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3303 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3304 # On Suns, sometimes $CPP names a directory.
3305 if test -n "$CPP" && test -d "$CPP"; then
3308 if test -z "$CPP"; then
3309 if test "${ac_cv_prog_CPP+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 # Double quotes because CPP needs to be expanded
3313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3316 for ac_c_preproc_warn_flag in '' yes
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
3320 # On the NeXT, cc -E runs the code through the compiler's parser,
3321 # not just through cpp. "Syntax error" is here to catch this case.
3322 cat >conftest.$ac_ext <<_ACEOF
3323 #line $LINENO "configure"
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3335 grep -v '^ *+' conftest.er1 >conftest.err
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } >/dev/null; then
3340 if test -s conftest.err; then
3341 ac_cpp_err=$ac_c_preproc_warn_flag
3348 if test -z "$ac_cpp_err"; then
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 # Broken: fails on valid input.
3357 rm -f conftest.err conftest.$ac_ext
3359 # OK, works on sane cases. Now check whether non-existent headers
3360 # can be detected and how.
3361 cat >conftest.$ac_ext <<_ACEOF
3362 #line $LINENO "configure"
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368 #include <ac_nonexistent.h>
3370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3386 if test -z "$ac_cpp_err"; then
3387 # Broken: success on invalid input.
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 # Passes both tests.
3397 rm -f conftest.err conftest.$ac_ext
3400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3401 rm -f conftest.err conftest.$ac_ext
3402 if $ac_preproc_ok; then
3414 echo "$as_me:$LINENO: result: $CPP" >&5
3415 echo "${ECHO_T}$CPP" >&6
3417 for ac_c_preproc_warn_flag in '' yes
3419 # Use a header file that comes with gcc, so configuring glibc
3420 # with a fresh cross-compiler works.
3421 # On the NeXT, cc -E runs the code through the compiler's parser,
3422 # not just through cpp. "Syntax error" is here to catch this case.
3423 cat >conftest.$ac_ext <<_ACEOF
3424 #line $LINENO "configure"
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3436 grep -v '^ *+' conftest.er1 >conftest.err
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3449 if test -z "$ac_cpp_err"; then
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 # Broken: fails on valid input.
3458 rm -f conftest.err conftest.$ac_ext
3460 # OK, works on sane cases. Now check whether non-existent headers
3461 # can be detected and how.
3462 cat >conftest.$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 #include <ac_nonexistent.h>
3471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3474 grep -v '^ *+' conftest.er1 >conftest.err
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } >/dev/null; then
3479 if test -s conftest.err; then
3480 ac_cpp_err=$ac_c_preproc_warn_flag
3487 if test -z "$ac_cpp_err"; then
3488 # Broken: success on invalid input.
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 # Passes both tests.
3498 rm -f conftest.err conftest.$ac_ext
3501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3502 rm -f conftest.err conftest.$ac_ext
3503 if $ac_preproc_ok; then
3506 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3507 See \`config.log' for more details." >&5
3508 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3509 See \`config.log' for more details." >&2;}
3510 { (exit 1); exit 1; }; }
3514 ac_cpp='$CPP $CPPFLAGS'
3515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520 echo "$as_me:$LINENO: checking for egrep" >&5
3521 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3522 if test "${ac_cv_prog_egrep+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3526 then ac_cv_prog_egrep='grep -E'
3527 else ac_cv_prog_egrep='egrep'
3530 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3531 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3532 EGREP=$ac_cv_prog_egrep
3535 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3536 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3537 if test "${ac_cv_header_stdc+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 cat >conftest.$ac_ext <<_ACEOF
3541 #line $LINENO "configure"
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 ac_cv_header_stdc=yes
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 ac_cv_header_stdc=no
3579 rm -f conftest.$ac_objext conftest.$ac_ext
3581 if test $ac_cv_header_stdc = yes; then
3582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3583 cat >conftest.$ac_ext <<_ACEOF
3584 #line $LINENO "configure"
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3594 $EGREP "memchr" >/dev/null 2>&1; then
3597 ac_cv_header_stdc=no
3603 if test $ac_cv_header_stdc = yes; then
3604 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3605 cat >conftest.$ac_ext <<_ACEOF
3606 #line $LINENO "configure"
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616 $EGREP "free" >/dev/null 2>&1; then
3619 ac_cv_header_stdc=no
3625 if test $ac_cv_header_stdc = yes; then
3626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3627 if test "$cross_compiling" = yes; then
3630 cat >conftest.$ac_ext <<_ACEOF
3631 #line $LINENO "configure"
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3638 #if ((' ' & 0x0FF) == 0x020)
3639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3642 # define ISLOWER(c) \
3643 (('a' <= (c) && (c) <= 'i') \
3644 || ('j' <= (c) && (c) <= 'r') \
3645 || ('s' <= (c) && (c) <= 'z'))
3646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3654 for (i = 0; i < 256; i++)
3655 if (XOR (islower (i), ISLOWER (i))
3656 || toupper (i) != TOUPPER (i))
3661 rm -f conftest$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663 (eval $ac_link) 2>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3674 echo "$as_me: program exited with status $ac_status" >&5
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3679 ac_cv_header_stdc=no
3681 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3685 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3686 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3687 if test $ac_cv_header_stdc = yes; then
3689 cat >>confdefs.h <<\_ACEOF
3690 #define STDC_HEADERS 1
3695 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3705 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3706 inttypes.h stdint.h unistd.h
3708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3709 echo "$as_me:$LINENO: checking for $ac_header" >&5
3710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 cat >conftest.$ac_ext <<_ACEOF
3715 #line $LINENO "configure"
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721 $ac_includes_default
3723 #include <$ac_header>
3725 rm -f conftest.$ac_objext
3726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3727 (eval $ac_compile) 2>&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } &&
3731 { ac_try='test -s conftest.$ac_objext'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 eval "$as_ac_Header=yes"
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3742 eval "$as_ac_Header=no"
3744 rm -f conftest.$ac_objext conftest.$ac_ext
3746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3749 cat >>confdefs.h <<_ACEOF
3750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3759 for ac_header in dlfcn.h
3761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3763 echo "$as_me:$LINENO: checking for $ac_header" >&5
3764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3771 # Is the header compilable?
3772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3774 cat >conftest.$ac_ext <<_ACEOF
3775 #line $LINENO "configure"
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 $ac_includes_default
3782 #include <$ac_header>
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } &&
3790 { ac_try='test -s conftest.$ac_objext'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; }; then
3796 ac_header_compiler=yes
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3801 ac_header_compiler=no
3803 rm -f conftest.$ac_objext conftest.$ac_ext
3804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3805 echo "${ECHO_T}$ac_header_compiler" >&6
3807 # Is the header present?
3808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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. */
3817 #include <$ac_header>
3819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } >/dev/null; then
3827 if test -s conftest.err; then
3828 ac_cpp_err=$ac_c_preproc_warn_flag
3835 if test -z "$ac_cpp_err"; then
3836 ac_header_preproc=yes
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 ac_header_preproc=no
3843 rm -f conftest.err conftest.$ac_ext
3844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3845 echo "${ECHO_T}$ac_header_preproc" >&6
3847 # So? What about this header?
3848 case $ac_header_compiler:$ac_header_preproc in
3850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3856 ## ------------------------------------ ##
3857 ## Report this to bug-autoconf@gnu.org. ##
3858 ## ------------------------------------ ##
3861 sed "s/^/$as_me: WARNING: /" >&2
3864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3872 ## ------------------------------------ ##
3873 ## Report this to bug-autoconf@gnu.org. ##
3874 ## ------------------------------------ ##
3877 sed "s/^/$as_me: WARNING: /" >&2
3880 echo "$as_me:$LINENO: checking for $ac_header" >&5
3881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 eval "$as_ac_Header=$ac_header_preproc"
3887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3892 cat >>confdefs.h <<_ACEOF
3893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3904 # Only perform the check for file, if the check method requires it
3905 case $deplibs_check_method in
3907 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3908 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3909 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3910 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3918 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3921 ac_save_MAGIC_CMD="$MAGIC_CMD"
3922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3923 ac_dummy="/usr/bin:$PATH"
3924 for ac_dir in $ac_dummy; do
3925 test -z "$ac_dir" && ac_dir=.
3926 if test -f $ac_dir/${ac_tool_prefix}file; then
3927 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3928 if test -n "$file_magic_test_file"; then
3929 case $deplibs_check_method in
3931 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3933 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3934 egrep "$file_magic_regex" > /dev/null; then
3939 *** Warning: the command libtool uses to detect shared libraries,
3940 *** $file_magic_cmd, produces output that libtool cannot recognize.
3941 *** The result is that libtool may fail to recognize shared libraries
3942 *** as such. This will affect the creation of libtool libraries that
3943 *** depend on shared libraries, but programs linked with such libtool
3944 *** libraries will work regardless of this problem. Nevertheless, you
3945 *** may want to report the problem to your system manager and/or to
3946 *** bug-libtool@gnu.org
3956 MAGIC_CMD="$ac_save_MAGIC_CMD"
3961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3962 if test -n "$MAGIC_CMD"; then
3963 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3964 echo "${ECHO_T}$MAGIC_CMD" >&6
3966 echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3970 if test -z "$lt_cv_path_MAGIC_CMD"; then
3971 if test -n "$ac_tool_prefix"; then
3972 echo "$as_me:$LINENO: checking for file" >&5
3973 echo $ECHO_N "checking for file... $ECHO_C" >&6
3974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3982 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3985 ac_save_MAGIC_CMD="$MAGIC_CMD"
3986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3987 ac_dummy="/usr/bin:$PATH"
3988 for ac_dir in $ac_dummy; do
3989 test -z "$ac_dir" && ac_dir=.
3990 if test -f $ac_dir/file; then
3991 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3992 if test -n "$file_magic_test_file"; then
3993 case $deplibs_check_method in
3995 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3997 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3998 egrep "$file_magic_regex" > /dev/null; then
4003 *** Warning: the command libtool uses to detect shared libraries,
4004 *** $file_magic_cmd, produces output that libtool cannot recognize.
4005 *** The result is that libtool may fail to recognize shared libraries
4006 *** as such. This will affect the creation of libtool libraries that
4007 *** depend on shared libraries, but programs linked with such libtool
4008 *** libraries will work regardless of this problem. Nevertheless, you
4009 *** may want to report the problem to your system manager and/or to
4010 *** bug-libtool@gnu.org
4020 MAGIC_CMD="$ac_save_MAGIC_CMD"
4025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4026 if test -n "$MAGIC_CMD"; then
4027 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4028 echo "${ECHO_T}$MAGIC_CMD" >&6
4030 echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4043 if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4046 echo "$as_me:$LINENO: checking for $ac_word" >&5
4047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4048 if test "${ac_cv_prog_RANLIB+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 if test -n "$RANLIB"; then
4052 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 RANLIB=$ac_cv_prog_RANLIB
4071 if test -n "$RANLIB"; then
4072 echo "$as_me:$LINENO: result: $RANLIB" >&5
4073 echo "${ECHO_T}$RANLIB" >&6
4075 echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4080 if test -z "$ac_cv_prog_RANLIB"; then
4081 ac_ct_RANLIB=$RANLIB
4082 # Extract the first word of "ranlib", so it can be a program name with args.
4083 set dummy ranlib; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if test -n "$ac_ct_RANLIB"; then
4090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_ac_ct_RANLIB="ranlib"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4109 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4110 if test -n "$ac_ct_RANLIB"; then
4111 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4112 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4118 RANLIB=$ac_ct_RANLIB
4120 RANLIB="$ac_cv_prog_RANLIB"
4123 if test -n "$ac_tool_prefix"; then
4124 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4125 set dummy ${ac_tool_prefix}strip; ac_word=$2
4126 echo "$as_me:$LINENO: checking for $ac_word" >&5
4127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4128 if test "${ac_cv_prog_STRIP+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 if test -n "$STRIP"; then
4132 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 STRIP=$ac_cv_prog_STRIP
4151 if test -n "$STRIP"; then
4152 echo "$as_me:$LINENO: result: $STRIP" >&5
4153 echo "${ECHO_T}$STRIP" >&6
4155 echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6
4160 if test -z "$ac_cv_prog_STRIP"; then
4162 # Extract the first word of "strip", so it can be a program name with args.
4163 set dummy strip; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 if test -n "$ac_ct_STRIP"; then
4170 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_ac_ct_STRIP="strip"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4189 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4190 if test -n "$ac_ct_STRIP"; then
4191 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4192 echo "${ECHO_T}$ac_ct_STRIP" >&6
4194 echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4200 STRIP="$ac_cv_prog_STRIP"
4207 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4208 if test "${enable_libtool_lock+set}" = set; then
4209 enableval="$enable_libtool_lock"
4212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4214 # Some flags need to be propagated to the compiler or linker for good
4218 # Find out which ABI we are using.
4219 echo '#line 4219 "configure"' > conftest.$ac_ext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; then
4225 case `/usr/bin/file conftest.$ac_objext` in
4241 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4242 SAVE_CFLAGS="$CFLAGS"
4243 CFLAGS="$CFLAGS -belf"
4244 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4245 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4246 if test "${lt_cv_cc_needs_belf+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257 cat >conftest.$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4273 rm -f conftest.$ac_objext conftest$ac_exeext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275 (eval $ac_link) 2>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try='test -s conftest$ac_exeext'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 lt_cv_cc_needs_belf=yes
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 lt_cv_cc_needs_belf=no
4292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4301 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4302 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4303 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4304 CFLAGS="$SAVE_CFLAGS"
4311 # Sed substitution that helps us do robust quoting. It backslashifies
4312 # metacharacters that are still active within double-quoted strings.
4313 Xsed='sed -e s/^X//'
4314 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4316 # Same as above, but do not quote variable references.
4317 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4319 # Sed substitution to delay expansion of an escaped shell variable in a
4320 # double_quote_subst'ed string.
4321 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4327 default_ofile=libtool
4328 can_build_shared=yes
4330 # All known linkers require a `.a' archive for static linking (except M$VC,
4331 # which needs '.lib').
4333 ltmain="$ac_aux_dir/ltmain.sh"
4334 ofile="$default_ofile"
4335 with_gnu_ld="$lt_cv_prog_gnu_ld"
4336 need_locks="$enable_libtool_lock"
4339 old_CFLAGS="$CFLAGS"
4341 # Set sane defaults for various variables
4342 test -z "$AR" && AR=ar
4343 test -z "$AR_FLAGS" && AR_FLAGS=cru
4344 test -z "$AS" && AS=as
4345 test -z "$CC" && CC=cc
4346 test -z "$DLLTOOL" && DLLTOOL=dlltool
4347 test -z "$LD" && LD=ld
4348 test -z "$LN_S" && LN_S="ln -s"
4349 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4350 test -z "$NM" && NM=nm
4351 test -z "$OBJDUMP" && OBJDUMP=objdump
4352 test -z "$RANLIB" && RANLIB=:
4353 test -z "$STRIP" && STRIP=:
4354 test -z "$ac_objext" && ac_objext=o
4356 if test x"$host" != x"$build"; then
4357 ac_tool_prefix=${host_alias}-
4362 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4365 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4370 # AIX sometimes has problems with the GCC collect2 program. For some
4371 # reason, if we set the COLLECT_NAMES environment variable, the problems
4372 # vanish in a puff of smoke.
4373 if test "X${COLLECT_NAMES+set}" != Xset; then
4375 export COLLECT_NAMES
4380 # Determine commands to create old-style static archives.
4381 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4382 old_postinstall_cmds='chmod 644 $oldlib'
4383 old_postuninstall_cmds=
4385 if test -n "$RANLIB"; then
4388 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4391 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4394 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4397 # Allow CC to be a program name with arguments.
4401 echo "$as_me:$LINENO: checking for objdir" >&5
4402 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4403 rm -f .libs 2>/dev/null
4404 mkdir .libs 2>/dev/null
4405 if test -d .libs; then
4408 # MS-DOS does not allow filenames that begin with a dot.
4411 rmdir .libs 2>/dev/null
4412 echo "$as_me:$LINENO: result: $objdir" >&5
4413 echo "${ECHO_T}$objdir" >&6
4417 # Check whether --with-pic or --without-pic was given.
4418 if test "${with_pic+set}" = set; then
4424 test -z "$pic_mode" && pic_mode=default
4426 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4427 # in isolation, and that seeing it set (from the cache) indicates that
4428 # the associated values are set (in the cache) correctly too.
4429 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4430 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4431 if test "${lt_cv_prog_cc_pic+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 lt_cv_prog_cc_shlib=
4437 lt_cv_prog_cc_static=
4438 lt_cv_prog_cc_no_builtin=
4439 lt_cv_prog_cc_can_build_shared=$can_build_shared
4441 if test "$GCC" = yes; then
4442 lt_cv_prog_cc_wl='-Wl,'
4443 lt_cv_prog_cc_static='-static'
4447 # Below there is a dirty hack to force normal static linking with -ldl
4448 # The problem is because libdl dynamically linked with both libc and
4449 # libC (AIX C++ library), which obviously doesn't included in libraries
4450 # list by gcc. This cause undefined symbols with -static flags.
4451 # This hack allows C programs to be linked with "-static -ldl", but
4452 # not sure about C++ programs.
4453 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4456 # FIXME: we need at least 68020 code to build shared libraries, but
4457 # adding the `-m68020' flag to GCC prevents building anything better,
4459 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4461 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4462 # PIC is the default for these OSes.
4464 darwin* | rhapsody*)
4465 # PIC is the default on this platform
4466 # Common symbols not allowed in MH_DYLIB files
4467 lt_cv_prog_cc_pic='-fno-common'
4469 cygwin* | mingw* | pw32* | os2*)
4470 # This hack is so that the source file can tell whether it is being
4471 # built for inclusion in a dll (and should export symbols for example).
4472 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4475 if test -d /usr/nec; then
4476 lt_cv_prog_cc_pic=-Kconform_pic
4480 lt_cv_prog_cc_pic='-fPIC'
4484 # PORTME Check for PIC flags for the system compiler.
4486 aix3* | aix4* | aix5*)
4487 lt_cv_prog_cc_wl='-Wl,'
4488 # All AIX code is PIC.
4489 if test "$host_cpu" = ia64; then
4490 # AIX 5 now supports IA64 processor
4491 lt_cv_prog_cc_static='-Bstatic'
4493 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4497 hpux9* | hpux10* | hpux11*)
4498 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4499 lt_cv_prog_cc_wl='-Wl,'
4500 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4501 lt_cv_prog_cc_pic='+Z'
4504 irix5* | irix6* | nonstopux*)
4505 lt_cv_prog_cc_wl='-Wl,'
4506 lt_cv_prog_cc_static='-non_shared'
4507 # PIC (with -KPIC) is the default.
4510 cygwin* | mingw* | pw32* | os2*)
4511 # This hack is so that the source file can tell whether it is being
4512 # built for inclusion in a dll (and should export symbols for example).
4513 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4517 lt_cv_prog_cc_pic='-KPIC'
4518 lt_cv_prog_cc_static='-Bstatic'
4521 osf3* | osf4* | osf5*)
4522 # All OSF/1 code is PIC.
4523 lt_cv_prog_cc_wl='-Wl,'
4524 lt_cv_prog_cc_static='-non_shared'
4528 lt_cv_prog_cc_pic='-Kpic'
4529 lt_cv_prog_cc_static='-dn'
4530 lt_cv_prog_cc_shlib='-belf'
4534 lt_cv_prog_cc_pic='-KPIC'
4535 lt_cv_prog_cc_static='-Bstatic'
4536 lt_cv_prog_cc_wl='-Wl,'
4540 lt_cv_prog_cc_pic='-PIC'
4541 lt_cv_prog_cc_static='-Bstatic'
4542 lt_cv_prog_cc_wl='-Qoption ld '
4545 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4546 lt_cv_prog_cc_pic='-KPIC'
4547 lt_cv_prog_cc_static='-Bstatic'
4548 if test "x$host_vendor" = xsni; then
4549 lt_cv_prog_cc_wl='-LD'
4551 lt_cv_prog_cc_wl='-Wl,'
4556 lt_cv_prog_cc_pic='-pic'
4557 lt_cv_prog_cc_static='-Bstatic'
4561 if test -d /usr/nec ;then
4562 lt_cv_prog_cc_pic='-Kconform_pic'
4563 lt_cv_prog_cc_static='-Bstatic'
4568 lt_cv_prog_cc_can_build_shared=no
4575 if test -z "$lt_cv_prog_cc_pic"; then
4576 echo "$as_me:$LINENO: result: none" >&5
4577 echo "${ECHO_T}none" >&6
4579 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4580 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4582 # Check to make sure the pic_flag actually works.
4583 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4584 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4585 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 save_CFLAGS="$CFLAGS"
4589 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4590 cat >conftest.$ac_ext <<_ACEOF
4591 #line $LINENO "configure"
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4606 rm -f conftest.$ac_objext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608 (eval $ac_compile) 2>&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } &&
4612 { ac_try='test -s conftest.$ac_objext'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4619 hpux9* | hpux10* | hpux11*)
4620 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4621 # they create non-PIC objects. So, if there were any warnings, we
4622 # assume that PIC is not supported.
4623 if test -s conftest.err; then
4624 lt_cv_prog_cc_pic_works=no
4626 lt_cv_prog_cc_pic_works=yes
4630 lt_cv_prog_cc_pic_works=yes
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 lt_cv_prog_cc_pic_works=no
4641 rm -f conftest.$ac_objext conftest.$ac_ext
4642 CFLAGS="$save_CFLAGS"
4647 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4649 lt_cv_prog_cc_can_build_shared=no
4651 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4654 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4655 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4658 # Check for any special shared library compilation flags.
4659 if test -n "$lt_cv_prog_cc_shlib"; then
4660 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4661 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4662 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4664 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4665 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4666 lt_cv_prog_cc_can_build_shared=no
4670 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4671 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4672 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 lt_cv_prog_cc_static_works=no
4676 save_LDFLAGS="$LDFLAGS"
4677 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4678 cat >conftest.$ac_ext <<_ACEOF
4679 #line $LINENO "configure"
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4694 rm -f conftest.$ac_objext conftest$ac_exeext
4695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4696 (eval $ac_link) 2>&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try='test -s conftest$ac_exeext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 lt_cv_prog_cc_static_works=yes
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4713 LDFLAGS="$save_LDFLAGS"
4718 # Belt *and* braces to stop my trousers falling down:
4719 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4720 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4721 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4723 pic_flag="$lt_cv_prog_cc_pic"
4724 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4725 wl="$lt_cv_prog_cc_wl"
4726 link_static_flag="$lt_cv_prog_cc_static"
4727 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4728 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4731 # Check to see if options -o and -c are simultaneously supported by compiler
4732 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4733 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4734 if test "${lt_cv_compiler_c_o+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 $rm -r conftest 2>/dev/null
4741 echo "int some_variable = 0;" > conftest.$ac_ext
4743 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4744 # that will create temporary files in the current directory regardless of
4745 # the output directory. Thus, making CWD read-only will cause this test
4746 # to fail, enabling locking or at least warning the user not to do parallel
4749 save_CFLAGS="$CFLAGS"
4750 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4752 if { (eval echo configure:4752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4753 # The compiler can only warn and ignore the option if not recognized
4754 # So say no if there are warnings
4755 if test -s out/conftest.err; then
4756 lt_cv_compiler_c_o=no
4758 lt_cv_compiler_c_o=yes
4761 # Append any errors to the config.log.
4762 cat out/conftest.err 1>&5
4763 lt_cv_compiler_c_o=no
4765 CFLAGS="$save_CFLAGS"
4771 $rm -r conftest 2>/dev/null
4775 compiler_c_o=$lt_cv_compiler_c_o
4776 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4777 echo "${ECHO_T}$compiler_c_o" >&6
4779 if test x"$compiler_c_o" = x"yes"; then
4780 # Check to see if we can write to a .lo
4781 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4782 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4783 if test "${lt_cv_compiler_o_lo+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 lt_cv_compiler_o_lo=no
4788 save_CFLAGS="$CFLAGS"
4789 CFLAGS="$CFLAGS -c -o conftest.lo"
4790 save_objext="$ac_objext"
4792 cat >conftest.$ac_ext <<_ACEOF
4793 #line $LINENO "configure"
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4803 int some_variable = 0;
4808 rm -f conftest.$ac_objext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try='test -s conftest.$ac_objext'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4820 # The compiler can only warn and ignore the option if not recognized
4821 # So say no if there are warnings
4822 if test -s conftest.err; then
4823 lt_cv_compiler_o_lo=no
4825 lt_cv_compiler_o_lo=yes
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4833 rm -f conftest.$ac_objext conftest.$ac_ext
4834 ac_objext="$save_objext"
4835 CFLAGS="$save_CFLAGS"
4839 compiler_o_lo=$lt_cv_compiler_o_lo
4840 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4841 echo "${ECHO_T}$compiler_o_lo" >&6
4846 # Check to see if we can do hard links to lock some files if needed
4847 hard_links="nottested"
4848 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4849 # do not overwrite the value of need_locks provided by the user
4850 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4851 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4856 ln conftest.a conftest.b 2>&5 || hard_links=no
4857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4858 echo "$as_me:$LINENO: result: $hard_links" >&5
4859 echo "${ECHO_T}$hard_links" >&6
4860 if test "$hard_links" = no; then
4861 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4862 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4869 if test "$GCC" = yes; then
4870 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4871 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4872 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4873 echo "int some_variable = 0;" > conftest.$ac_ext
4874 save_CFLAGS="$CFLAGS"
4875 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4876 compiler_rtti_exceptions=no
4877 cat >conftest.$ac_ext <<_ACEOF
4878 #line $LINENO "configure"
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4888 int some_variable = 0;
4893 rm -f conftest.$ac_objext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4905 # The compiler can only warn and ignore the option if not recognized
4906 # So say no if there are warnings
4907 if test -s conftest.err; then
4908 compiler_rtti_exceptions=no
4910 compiler_rtti_exceptions=yes
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4918 rm -f conftest.$ac_objext conftest.$ac_ext
4919 CFLAGS="$save_CFLAGS"
4920 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4921 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4923 if test "$compiler_rtti_exceptions" = "yes"; then
4924 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4926 no_builtin_flag=' -fno-builtin'
4930 # See if the linker supports building shared libraries.
4931 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4932 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4934 allow_undefined_flag=
4936 need_lib_prefix=unknown
4937 need_version=unknown
4938 # when you set need_version to no, make sure it does not cause -set_version
4939 # flags to be left without arguments
4941 archive_expsym_cmds=
4942 old_archive_from_new_cmds=
4943 old_archive_from_expsyms_cmds=
4944 export_dynamic_flag_spec=
4945 whole_archive_flag_spec=
4946 thread_safe_flag_spec=
4947 hardcode_into_libs=no
4948 hardcode_libdir_flag_spec=
4949 hardcode_libdir_separator=
4952 hardcode_shlibpath_var=unsupported
4954 link_all_deplibs=unknown
4955 always_export_symbols=no
4956 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4957 # include_expsyms should be a list of space-separated symbols to be *always*
4958 # included in the symbol list
4960 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4961 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4962 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4963 # as well as any symbol that contains `d'.
4964 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4965 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4966 # platforms (ab)use it in PIC code, but their linkers get confused if
4967 # the symbol is explicitly referenced. Since portable code cannot
4968 # rely on this symbol name, it's probably fine to never include it in
4969 # preloaded symbol tables.
4970 extract_expsyms_cmds=
4973 cygwin* | mingw* | pw32*)
4974 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4975 # When not using gcc, we currently assume that we are using
4976 # Microsoft Visual C++.
4977 if test "$GCC" != yes; then
4987 if test "$with_gnu_ld" = yes; then
4988 # If archive_cmds runs LD, not CC, wlarc should be empty
4991 # See if GNU ld supports shared libraries.
4993 aix3* | aix4* | aix5*)
4994 # On AIX, the GNU linker is very broken
4995 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4999 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5000 *** to be unable to reliably create shared libraries on AIX.
5001 *** Therefore, libtool is disabling shared libraries support. If you
5002 *** really care for shared libraries, you may want to modify your PATH
5003 *** so that a non-GNU linker is found, and then restart.
5009 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)'
5010 hardcode_libdir_flag_spec='-L$libdir'
5011 hardcode_minus_L=yes
5013 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5014 # that the semantics of dynamic libraries on AmigaOS, at least up
5015 # to version 4, is to share data among multiple programs linked
5016 # with the same dynamic library. Since this doesn't match the
5017 # behavior of shared libraries on other platforms, we can use
5023 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5024 allow_undefined_flag=unsupported
5025 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5026 # support --undefined. This deserves some investigation. FIXME
5027 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5033 cygwin* | mingw* | pw32*)
5034 # hardcode_libdir_flag_spec is actually meaningless, as there is
5035 # no search path for DLLs.
5036 hardcode_libdir_flag_spec='-L$libdir'
5037 allow_undefined_flag=unsupported
5038 always_export_symbols=yes
5040 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5041 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5042 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5043 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5044 else $CC -o impgen impgen.c ; fi)~
5045 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5047 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5049 # cygwin and mingw dlls have different entry points and sets of symbols
5051 # FIXME: what about values for MSVC?
5052 dll_entry=__cygwin_dll_entry@12
5053 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5057 dll_entry=_DllMainCRTStartup@12
5058 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5062 # mingw and cygwin differ, and it's simplest to just exclude the union
5063 # of the two symbol sets.
5064 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5066 # recent cygwin and mingw systems supply a stub DllMain which the user
5067 # can override, but on older systems we have to supply one (in ltdll.c)
5068 if test "x$lt_cv_need_dllmain" = "xyes"; then
5069 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5070 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~
5071 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5077 # Extract the symbol export list from an `--export-all' def file,
5078 # then regenerate the def file from the symbol export list, so that
5079 # the compiled dll only exports the symbol export list.
5080 # Be careful not to strip the DATA tag left be newer dlltools.
5081 export_symbols_cmds="$ltdll_cmds"'
5082 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5083 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5085 # If the export-symbols file already is a .def file (1st line
5086 # is EXPORTS), use it as is.
5087 # If DATA tags from a recent dlltool are present, honour them!
5088 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5089 cp $export_symbols $output_objdir/$soname-def;
5091 echo EXPORTS > $output_objdir/$soname-def;
5093 cat $export_symbols | while read symbol; do
5096 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5097 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5099 _lt_hint=`expr 1 + \$_lt_hint`;
5103 $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~
5104 $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~
5105 $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~
5106 $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~
5107 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5111 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5112 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5115 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5116 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5121 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5125 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5126 *** create shared libraries on Solaris systems. Therefore, libtool
5127 *** is disabling shared libraries support. We urge you to upgrade GNU
5128 *** binutils to release 2.9.1 or newer. Another option is to modify
5129 *** your PATH or compiler configuration so that the native linker is
5130 *** used, and then restart.
5133 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5135 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5142 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5145 hardcode_shlibpath_var=no
5149 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5158 if test "$ld_shlibs" = yes; then
5159 runpath_var=LD_RUN_PATH
5160 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5161 export_dynamic_flag_spec='${wl}--export-dynamic'
5163 cygwin* | mingw* | pw32*)
5164 # dlltool doesn't understand --whole-archive et. al.
5165 whole_archive_flag_spec=
5168 # ancient GNU ld didn't support --whole-archive et. al.
5169 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5170 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5172 whole_archive_flag_spec=
5178 # PORTME fill in a description of your system's linker (not GNU ld)
5181 allow_undefined_flag=unsupported
5182 always_export_symbols=yes
5183 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'
5184 # Note: this linker hardcodes the directories in LIBPATH if there
5185 # are no directories specified by -L.
5186 hardcode_minus_L=yes
5187 if test "$GCC" = yes && test -z "$link_static_flag"; then
5188 # Neither direct hardcoding nor static linking is supported with a
5190 hardcode_direct=unsupported
5195 if test "$host_cpu" = ia64; then
5196 # On IA64, the linker does run time linking by default, so we don't
5197 # have to do anything special.
5198 aix_use_runtimelinking=no
5199 exp_sym_flag='-Bexport'
5202 aix_use_runtimelinking=no
5204 # Test if we are trying to use run time linking or normal
5205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5206 # need to do runtime linking.
5207 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5208 for ld_flag in $LDFLAGS; do
5209 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5210 aix_use_runtimelinking=yes
5216 exp_sym_flag='-bexport'
5217 no_entry_flag='-bnoentry'
5220 # When large executables or shared objects are built, AIX ld can
5221 # have problems creating the table of contents. If linking a library
5222 # or program results in "error TOC overflow" add -mminimal-toc to
5223 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5224 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5228 hardcode_libdir_separator=':'
5229 if test "$GCC" = yes; then
5230 case $host_os in aix4.[012]|aix4.[012].*)
5231 collect2name=`${CC} -print-prog-name=collect2`
5232 if test -f "$collect2name" && \
5233 strings "$collect2name" | grep resolve_lib_name >/dev/null
5235 # We have reworked collect2
5238 # We have old collect2
5239 hardcode_direct=unsupported
5240 # It fails to find uninstalled libraries when the uninstalled
5241 # path is not listed in the libpath. Setting hardcode_minus_L
5242 # to unsupported forces relinking
5243 hardcode_minus_L=yes
5244 hardcode_libdir_flag_spec='-L$libdir'
5245 hardcode_libdir_separator=
5249 shared_flag='-shared'
5252 if test "$host_cpu" = ia64; then
5253 shared_flag='${wl}-G'
5255 if test "$aix_use_runtimelinking" = yes; then
5256 shared_flag='${wl}-G'
5258 shared_flag='${wl}-bM:SRE'
5263 # It seems that -bexpall can do strange things, so it is better to
5264 # generate a list of symbols to export.
5265 always_export_symbols=yes
5266 if test "$aix_use_runtimelinking" = yes; then
5267 # Warning - without using the other runtime loading flags (-brtl),
5268 # -berok will link without error, but may produce a broken library.
5269 allow_undefined_flag='-berok'
5270 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5271 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"
5273 if test "$host_cpu" = ia64; then
5274 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5275 allow_undefined_flag="-z nodefs"
5276 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"
5278 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5279 # Warning - without using the other run time loading flags,
5280 # -berok will link without error, but may produce a broken library.
5281 allow_undefined_flag='${wl}-berok'
5282 # This is a bit strange, but is similar to how AIX traditionally builds
5283 # it's shared libraries.
5284 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'
5290 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)'
5291 hardcode_libdir_flag_spec='-L$libdir'
5292 hardcode_minus_L=yes
5293 # see comment about different semantics on the GNU ld section
5297 cygwin* | mingw* | pw32*)
5298 # When not using gcc, we currently assume that we are using
5299 # Microsoft Visual C++.
5300 # hardcode_libdir_flag_spec is actually meaningless, as there is
5301 # no search path for DLLs.
5302 hardcode_libdir_flag_spec=' '
5303 allow_undefined_flag=unsupported
5304 # Tell ltmain to make .lib files, not .a files.
5306 # FIXME: Setting linknames here is a bad hack.
5307 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5308 # The linker will automatically build a .lib file if we build a DLL.
5309 old_archive_from_new_cmds='true'
5310 # FIXME: Should let the user specify the lib program.
5311 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5312 fix_srcfile_path='`cygpath -w "$srcfile"`'
5315 darwin* | rhapsody*)
5317 rhapsody* | darwin1.[012])
5318 allow_undefined_flag='-undefined suppress'
5321 allow_undefined_flag='-flat_namespace -undefined suppress'
5324 # FIXME: Relying on posixy $() will cause problems for
5325 # cross-compilation, but unfortunately the echo tests do not
5326 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5327 # `"' quotes if we put them in here... so don't!
5328 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5329 # We need to add '_' to the symbols in $export_symbols first
5330 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5332 hardcode_shlibpath_var=no
5333 whole_archive_flag_spec='-all_load $convenience'
5340 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5341 # support. Future versions do this automatically, but an explicit c++rt0.o
5342 # does not break anything, and helps significantly (at the cost of a little
5345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5346 hardcode_libdir_flag_spec='-R$libdir'
5348 hardcode_shlibpath_var=no
5351 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5355 hardcode_minus_L=yes
5356 hardcode_shlibpath_var=no
5359 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5361 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5362 hardcode_libdir_flag_spec='-R$libdir'
5364 hardcode_shlibpath_var=no
5367 hpux9* | hpux10* | hpux11*)
5369 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' ;;
5370 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5372 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5373 hardcode_libdir_separator=:
5375 hardcode_minus_L=yes # Not in the search PATH, but as the default
5376 # location of the library.
5377 export_dynamic_flag_spec='${wl}-E'
5380 irix5* | irix6* | nonstopux*)
5381 if test "$GCC" = yes; then
5382 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'
5384 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'
5386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5387 hardcode_libdir_separator=:
5388 link_all_deplibs=yes
5392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5395 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5397 hardcode_libdir_flag_spec='-R$libdir'
5399 hardcode_shlibpath_var=no
5403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5406 hardcode_libdir_separator=:
5407 hardcode_shlibpath_var=no
5412 hardcode_shlibpath_var=no
5413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5415 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5416 export_dynamic_flag_spec='${wl}-E'
5419 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5421 hardcode_libdir_flag_spec='-R$libdir'
5424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5425 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5432 hardcode_libdir_flag_spec='-L$libdir'
5433 hardcode_minus_L=yes
5434 allow_undefined_flag=unsupported
5435 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'
5436 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5440 if test "$GCC" = yes; then
5441 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5442 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'
5444 allow_undefined_flag=' -expect_unresolved \*'
5445 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'
5447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5448 hardcode_libdir_separator=:
5451 osf4* | osf5*) # as osf3* with the addition of -msym flag
5452 if test "$GCC" = yes; then
5453 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5454 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'
5455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5457 allow_undefined_flag=' -expect_unresolved \*'
5458 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'
5459 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5460 $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'
5462 #Both c and cxx compiler support -rpath directly
5463 hardcode_libdir_flag_spec='-rpath $libdir'
5465 hardcode_libdir_separator=:
5469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5470 hardcode_shlibpath_var=no
5471 runpath_var=LD_RUN_PATH
5472 hardcode_runpath_var=yes
5473 export_dynamic_flag_spec='${wl}-Bexport'
5477 # gcc --version < 3.0 without binutils cannot create self contained
5478 # shared libraries reliably, requiring libgcc.a to resolve some of
5479 # the object symbols generated in some cases. Libraries that use
5480 # assert need libgcc.a to resolve __eprintf, for example. Linking
5481 # a copy of libgcc.a into every shared library to guarantee resolving
5482 # such symbols causes other problems: According to Tim Van Holder
5483 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5484 # (to the application) exception stack for one thing.
5485 no_undefined_flag=' -z defs'
5486 if test "$GCC" = yes; then
5487 case `$CC --version 2>/dev/null` in
5491 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5492 *** create self contained shared libraries on Solaris systems, without
5493 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5494 *** -no-undefined support, which will at least allow you to build shared
5495 *** libraries. However, you may find that when you link such libraries
5496 *** into an application without using GCC, you have to manually add
5497 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5498 *** upgrade to a newer version of GCC. Another option is to rebuild your
5499 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5506 # $CC -shared without GNU ld will not create a library from C++
5507 # object files and a static libstdc++, better avoid it by now
5508 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5509 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5510 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5511 hardcode_libdir_flag_spec='-R$libdir'
5512 hardcode_shlibpath_var=no
5514 solaris2.[0-5] | solaris2.[0-5].*) ;;
5515 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5516 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5518 link_all_deplibs=yes
5522 if test "x$host_vendor" = xsequent; then
5523 # Use $CC to link under sequent, because it throws in some extra .o
5524 # files that make .init and .fini sections work.
5525 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5527 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5529 hardcode_libdir_flag_spec='-L$libdir'
5531 hardcode_minus_L=yes
5532 hardcode_shlibpath_var=no
5536 if test "x$host_vendor" = xsno; then
5537 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5538 hardcode_direct=yes # is this really true???
5540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5541 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5543 runpath_var='LD_RUN_PATH'
5544 hardcode_shlibpath_var=no
5548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5549 hardcode_shlibpath_var=no
5550 export_dynamic_flag_spec='-Bexport'
5554 no_undefined_flag=' -z text'
5555 # $CC -shared without GNU ld will not create a library from C++
5556 # object files and a static libstdc++, better avoid it by now
5557 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5558 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5559 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5560 hardcode_libdir_flag_spec=
5561 hardcode_shlibpath_var=no
5562 runpath_var='LD_RUN_PATH'
5566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5567 hardcode_libdir_flag_spec='-L$libdir'
5568 hardcode_shlibpath_var=no
5572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5573 hardcode_libdir_flag_spec='-L$libdir'
5574 hardcode_shlibpath_var=no
5578 if test -d /usr/nec; then
5579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5580 hardcode_shlibpath_var=no
5581 runpath_var=LD_RUN_PATH
5582 hardcode_runpath_var=yes
5588 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5591 hardcode_shlibpath_var=no
5592 hardcode_runpath_var=yes
5593 runpath_var=LD_RUN_PATH
5596 sysv5uw7* | unixware7*)
5597 no_undefined_flag='${wl}-z ${wl}text'
5598 if test "$GCC" = yes; then
5599 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5601 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5603 runpath_var='LD_RUN_PATH'
5604 hardcode_shlibpath_var=no
5612 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5613 echo "${ECHO_T}$ld_shlibs" >&6
5614 test "$ld_shlibs" = no && can_build_shared=no
5616 # Check hardcoding attributes.
5617 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5618 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5620 if test -n "$hardcode_libdir_flag_spec" || \
5621 test -n "$runpath_var"; then
5623 # We can hardcode non-existant directories.
5624 if test "$hardcode_direct" != no &&
5625 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5626 # have to relink, otherwise we might link with an installed library
5627 # when we should be linking with a yet-to-be-installed one
5628 ## test "$hardcode_shlibpath_var" != no &&
5629 test "$hardcode_minus_L" != no; then
5630 # Linking always hardcodes the temporary library directory.
5631 hardcode_action=relink
5633 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5634 hardcode_action=immediate
5637 # We cannot hardcode anything, or else we can only hardcode existing
5639 hardcode_action=unsupported
5641 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5642 echo "${ECHO_T}$hardcode_action" >&6
5646 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5647 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5648 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5649 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5650 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5651 echo "$as_me:$LINENO: result: yes" >&5
5652 echo "${ECHO_T}yes" >&6
5654 echo "$as_me:$LINENO: result: no" >&5
5655 echo "${ECHO_T}no" >&6
5658 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5659 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5661 # PORTME Fill in your ld.so characteristics
5662 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5663 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5665 libname_spec='lib$name'
5672 shlibpath_overrides_runpath=unknown
5674 dynamic_linker="$host_os ld.so"
5675 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5676 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5681 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5682 shlibpath_var=LIBPATH
5684 # AIX has no versioning support, so we append a major version to the name.
5685 soname_spec='${libname}${release}.so$major'
5690 if test "$host_cpu" = ia64; then
5691 # AIX 5 supports IA64
5692 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5693 shlibpath_var=LD_LIBRARY_PATH
5695 # With GCC up to 2.95.x, collect2 would create an import file
5696 # for dependence libraries. The import file would start with
5697 # the line `#! .'. This would cause the generated library to
5698 # depend on `.', always an invalid library. This was fixed in
5699 # development snapshots of GCC prior to 3.0.
5701 aix4 | aix4.[01] | aix4.[01].*)
5702 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5704 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5711 # AIX (on Power*) has no versioning support, so currently we can
5712 # not hardcode correct soname into executable. Probably we can
5713 # add versioning support to collect2, so additional links can
5714 # be useful in future.
5715 if test "$aix_use_runtimelinking" = yes; then
5716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5717 # instead of lib<name>.a to let people know that these are not
5718 # typical AIX shared libraries.
5719 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5721 # We preserve .a as extension for shared libraries through AIX4.2
5722 # and later when we are not doing run time linking.
5723 library_names_spec='${libname}${release}.a $libname.a'
5724 soname_spec='${libname}${release}.so$major'
5726 shlibpath_var=LIBPATH
5731 library_names_spec='$libname.ixlibrary $libname.a'
5732 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5733 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'
5737 library_names_spec='${libname}.so'
5738 dynamic_linker="$host_os ld.so"
5739 shlibpath_var=LIBRARY_PATH
5745 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5746 soname_spec='${libname}${release}.so$major'
5747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5748 shlibpath_var=LD_LIBRARY_PATH
5749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5751 export_dynamic_flag_spec=-rdynamic
5752 # the default ld.so.conf also contains /usr/contrib/lib and
5753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5754 # libtool to hard-code these into programs
5757 cygwin* | mingw* | pw32*)
5758 version_type=windows
5761 case $GCC,$host_os in
5763 library_names_spec='$libname.dll.a'
5764 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5765 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5766 dldir=$destdir/`dirname \$dlpath`~
5767 test -d \$dldir || mkdir -p \$dldir~
5768 $install_prog .libs/$dlname \$dldir/$dlname'
5769 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5770 dlpath=$dir/\$dldll~
5774 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5778 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5781 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5784 dynamic_linker='Win32 ld.exe'
5785 # FIXME: first we should search . and the directory the executable is in
5789 darwin* | rhapsody*)
5790 dynamic_linker="$host_os dyld"
5794 # FIXME: Relying on posixy $() will cause problems for
5795 # cross-compilation, but unfortunately the echo tests do not
5796 # yet detect zsh echo's removal of \ escapes.
5797 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)'
5798 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5799 shlibpath_overrides_runpath=yes
5800 shlibpath_var=DYLD_LIBRARY_PATH
5808 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5809 version_type=freebsd-$objformat
5810 case $version_type in
5812 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5817 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5821 shlibpath_var=LD_LIBRARY_PATH
5824 shlibpath_overrides_runpath=yes
5827 shlibpath_overrides_runpath=no
5828 hardcode_into_libs=yes
5837 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5838 soname_spec='${libname}${release}.so$major'
5839 shlibpath_var=LD_LIBRARY_PATH
5840 hardcode_into_libs=yes
5843 hpux9* | hpux10* | hpux11*)
5844 # Give a soname corresponding to the major version so that dld.sl refuses to
5845 # link against other versions.
5846 dynamic_linker="$host_os dld.sl"
5850 shlibpath_var=SHLIB_PATH
5851 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5852 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5853 soname_spec='${libname}${release}.sl$major'
5854 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5855 postinstall_cmds='chmod 555 $lib'
5858 irix5* | irix6* | nonstopux*)
5860 nonstopux*) version_type=nonstopux ;;
5861 *) version_type=irix ;;
5865 soname_spec='${libname}${release}.so$major'
5866 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5868 irix5* | nonstopux*)
5872 case $LD in # libtool.m4 will add one of these switches to LD
5873 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5874 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5875 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5876 *) libsuff= shlibsuff= libmagic=never-match;;
5880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5881 shlibpath_overrides_runpath=no
5882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5886 # No shared lib support for Linux oldld, aout, or coff.
5887 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5891 # This must be Linux ELF.
5896 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5897 soname_spec='${libname}${release}.so$major'
5898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5899 shlibpath_var=LD_LIBRARY_PATH
5900 shlibpath_overrides_runpath=no
5901 # This implies no fast_install, which is unacceptable.
5902 # Some rework will be needed to allow for fast_install
5903 # before this can be enabled.
5904 hardcode_into_libs=yes
5906 # We used to test for /lib/ld.so.1 and disable shared libraries on
5907 # powerpc, because MkLinux only supported shared libraries with the
5908 # GNU dynamic linker. Since this was broken with cross compilers,
5909 # most powerpc-linux boxes support dynamic linking these days and
5910 # people can always --disable-shared, the test was removed, and we
5911 # assume the GNU/Linux dynamic linker is in use.
5912 dynamic_linker='GNU/Linux ld.so'
5919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5920 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5922 dynamic_linker='NetBSD (a.out) ld.so'
5924 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5925 soname_spec='${libname}${release}.so$major'
5926 dynamic_linker='NetBSD ld.elf_so'
5928 shlibpath_var=LD_LIBRARY_PATH
5929 shlibpath_overrides_runpath=yes
5930 hardcode_into_libs=yes
5935 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5936 shlibpath_var=LD_LIBRARY_PATH
5937 shlibpath_overrides_runpath=yes
5944 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5946 openbsd2.[89] | openbsd2.[89].*)
5947 shlibpath_overrides_runpath=no
5950 shlibpath_overrides_runpath=yes
5954 shlibpath_overrides_runpath=yes
5956 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5958 shlibpath_var=LD_LIBRARY_PATH
5962 libname_spec='$name'
5964 library_names_spec='$libname.dll $libname.a'
5965 dynamic_linker='OS/2 ld.exe'
5966 shlibpath_var=LIBPATH
5969 osf3* | osf4* | osf5*)
5973 soname_spec='${libname}${release}.so'
5974 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5975 shlibpath_var=LD_LIBRARY_PATH
5976 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5977 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5982 soname_spec='${libname}${release}.so$major'
5983 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5984 shlibpath_var=LD_LIBRARY_PATH
5991 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5992 soname_spec='${libname}${release}.so$major'
5993 shlibpath_var=LD_LIBRARY_PATH
5994 shlibpath_overrides_runpath=yes
5995 hardcode_into_libs=yes
5996 # ldd complains unless libraries are executable
5997 postinstall_cmds='chmod +x $lib'
6002 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6003 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6004 shlibpath_var=LD_LIBRARY_PATH
6005 shlibpath_overrides_runpath=yes
6006 if test "$with_gnu_ld" = yes; then
6012 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6014 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6015 soname_spec='${libname}${release}.so$major'
6016 shlibpath_var=LD_LIBRARY_PATH
6017 case $host_vendor in
6019 shlibpath_overrides_runpath=no
6024 shlibpath_overrides_runpath=no
6025 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6032 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6033 soname_spec='${libname}${release}.so$major'
6034 shlibpath_var=LD_LIBRARY_PATH
6041 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6042 soname_spec='${libname}${release}.so$major'
6043 shlibpath_var=LD_LIBRARY_PATH
6047 if test -d /usr/nec ;then
6049 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6050 soname_spec='$libname.so.$major'
6051 shlibpath_var=LD_LIBRARY_PATH
6059 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6060 echo "${ECHO_T}$dynamic_linker" >&6
6061 test "$dynamic_linker" = no && can_build_shared=no
6063 # Report the final consequences.
6064 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6065 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6066 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6067 echo "${ECHO_T}$can_build_shared" >&6
6069 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6070 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6071 test "$can_build_shared" = "no" && enable_shared=no
6073 # On AIX, shared libraries and static libraries use the same namespace, and
6074 # are all built from PIC.
6077 test "$enable_shared" = yes && enable_static=no
6078 if test -n "$RANLIB"; then
6079 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6080 postinstall_cmds='$RANLIB $lib'
6085 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6086 test "$enable_shared" = yes && enable_static=no
6090 echo "$as_me:$LINENO: result: $enable_shared" >&5
6091 echo "${ECHO_T}$enable_shared" >&6
6093 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6094 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6095 # Make sure either enable_shared or enable_static is yes.
6096 test "$enable_shared" = yes || enable_static=yes
6097 echo "$as_me:$LINENO: result: $enable_static" >&5
6098 echo "${ECHO_T}$enable_static" >&6
6100 if test "$hardcode_action" = relink; then
6101 # Fast installation is not supported
6102 enable_fast_install=no
6103 elif test "$shlibpath_overrides_runpath" = yes ||
6104 test "$enable_shared" = no; then
6105 # Fast installation is not necessary
6106 enable_fast_install=needless
6109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6110 if test "$GCC" = yes; then
6111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6114 if test "x$enable_dlopen" != xyes; then
6115 enable_dlopen=unknown
6116 enable_dlopen_self=unknown
6117 enable_dlopen_self_static=unknown
6124 lt_cv_dlopen="load_add_on"
6126 lt_cv_dlopen_self=yes
6129 cygwin* | mingw* | pw32*)
6130 lt_cv_dlopen="LoadLibrary"
6135 echo "$as_me:$LINENO: checking for shl_load" >&5
6136 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6137 if test "${ac_cv_func_shl_load+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 cat >conftest.$ac_ext <<_ACEOF
6141 #line $LINENO "configure"
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6147 /* System header to define __stub macros and hopefully few prototypes,
6148 which can conflict with char shl_load (); below. */
6150 /* Override any gcc2 internal prototype to avoid an error. */
6155 /* We use char because int might match the return type of a gcc2
6156 builtin and then its argument prototype would still apply. */
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6164 char (*f) () = shl_load;
6178 rm -f conftest.$ac_objext conftest$ac_exeext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6180 (eval $ac_link) 2>&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } &&
6184 { ac_try='test -s conftest$ac_exeext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 ac_cv_func_shl_load=yes
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 ac_cv_func_shl_load=no
6197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6199 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6200 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6201 if test $ac_cv_func_shl_load = yes; then
6202 lt_cv_dlopen="shl_load"
6204 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6205 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6206 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 ac_check_lib_save_LIBS=$LIBS
6211 cat >conftest.$ac_ext <<_ACEOF
6212 #line $LINENO "configure"
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6219 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6234 rm -f conftest.$ac_objext conftest$ac_exeext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6236 (eval $ac_link) 2>&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try='test -s conftest$ac_exeext'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; }; then
6246 ac_cv_lib_dld_shl_load=yes
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 ac_cv_lib_dld_shl_load=no
6253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6254 LIBS=$ac_check_lib_save_LIBS
6256 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6257 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6258 if test $ac_cv_lib_dld_shl_load = yes; then
6259 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6261 echo "$as_me:$LINENO: checking for dlopen" >&5
6262 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6263 if test "${ac_cv_func_dlopen+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 cat >conftest.$ac_ext <<_ACEOF
6267 #line $LINENO "configure"
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 /* System header to define __stub macros and hopefully few prototypes,
6274 which can conflict with char dlopen (); below. */
6276 /* Override any gcc2 internal prototype to avoid an error. */
6281 /* We use char because int might match the return type of a gcc2
6282 builtin and then its argument prototype would still apply. */
6284 /* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
6287 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6290 char (*f) () = dlopen;
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306 (eval $ac_link) 2>&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try='test -s conftest$ac_exeext'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6316 ac_cv_func_dlopen=yes
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6321 ac_cv_func_dlopen=no
6323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6325 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6326 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6327 if test $ac_cv_func_dlopen = yes; then
6328 lt_cv_dlopen="dlopen"
6330 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6331 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6332 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 ac_check_lib_save_LIBS=$LIBS
6337 cat >conftest.$ac_ext <<_ACEOF
6338 #line $LINENO "configure"
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6345 /* Override any gcc2 internal prototype to avoid an error. */
6349 /* We use char because int might match the return type of a gcc2
6350 builtin and then its argument prototype would still apply. */
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6362 (eval $ac_link) 2>&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } &&
6366 { ac_try='test -s conftest$ac_exeext'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; }; then
6372 ac_cv_lib_dl_dlopen=yes
6374 echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6377 ac_cv_lib_dl_dlopen=no
6379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6380 LIBS=$ac_check_lib_save_LIBS
6382 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6383 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6384 if test $ac_cv_lib_dl_dlopen = yes; then
6385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6387 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6388 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6389 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 ac_check_lib_save_LIBS=$LIBS
6394 cat >conftest.$ac_ext <<_ACEOF
6395 #line $LINENO "configure"
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6402 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6417 rm -f conftest.$ac_objext conftest$ac_exeext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6419 (eval $ac_link) 2>&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try='test -s conftest$ac_exeext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_cv_lib_svld_dlopen=yes
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 ac_cv_lib_svld_dlopen=no
6436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6437 LIBS=$ac_check_lib_save_LIBS
6439 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6440 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6441 if test $ac_cv_lib_svld_dlopen = yes; then
6442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6444 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6445 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6446 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 ac_check_lib_save_LIBS=$LIBS
6451 cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6459 /* Override any gcc2 internal prototype to avoid an error. */
6463 /* We use char because int might match the return type of a gcc2
6464 builtin and then its argument prototype would still apply. */
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6476 (eval $ac_link) 2>&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
6480 { ac_try='test -s conftest$ac_exeext'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 ac_cv_lib_dld_dld_link=yes
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6491 ac_cv_lib_dld_dld_link=no
6493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6494 LIBS=$ac_check_lib_save_LIBS
6496 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6497 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6498 if test $ac_cv_lib_dld_dld_link = yes; then
6499 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6520 if test "x$lt_cv_dlopen" != xno; then
6526 case $lt_cv_dlopen in
6528 save_CPPFLAGS="$CPPFLAGS"
6529 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6531 save_LDFLAGS="$LDFLAGS"
6532 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6535 LIBS="$lt_cv_dlopen_libs $LIBS"
6537 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6538 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6539 if test "${lt_cv_dlopen_self+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 if test "$cross_compiling" = yes; then :
6543 lt_cv_dlopen_self=cross
6545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6546 lt_status=$lt_dlunknown
6547 cat > conftest.$ac_ext <<EOF
6548 #line 6548 "configure"
6549 #include "confdefs.h"
6558 # define LT_DLGLOBAL RTLD_GLOBAL
6561 # define LT_DLGLOBAL DL_GLOBAL
6563 # define LT_DLGLOBAL 0
6567 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6568 find out it does not work in some platform. */
6569 #ifndef LT_DLLAZY_OR_NOW
6571 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6574 # define LT_DLLAZY_OR_NOW DL_LAZY
6577 # define LT_DLLAZY_OR_NOW RTLD_NOW
6580 # define LT_DLLAZY_OR_NOW DL_NOW
6582 # define LT_DLLAZY_OR_NOW 0
6590 extern "C" void exit (int);
6593 void fnord() { int i=42;}
6596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6597 int status = $lt_dlunknown;
6601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6602 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6603 /* dlclose (self); */
6609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610 (eval $ac_link) 2>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6614 (./conftest; exit; ) 2>/dev/null
6617 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6618 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6619 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6622 # compilation failed
6623 lt_cv_dlopen_self=no
6630 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6631 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6633 if test "x$lt_cv_dlopen_self" = xyes; then
6634 LDFLAGS="$LDFLAGS $link_static_flag"
6635 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6636 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6637 if test "${lt_cv_dlopen_self_static+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 if test "$cross_compiling" = yes; then :
6641 lt_cv_dlopen_self_static=cross
6643 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6644 lt_status=$lt_dlunknown
6645 cat > conftest.$ac_ext <<EOF
6646 #line 6646 "configure"
6647 #include "confdefs.h"
6656 # define LT_DLGLOBAL RTLD_GLOBAL
6659 # define LT_DLGLOBAL DL_GLOBAL
6661 # define LT_DLGLOBAL 0
6665 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6666 find out it does not work in some platform. */
6667 #ifndef LT_DLLAZY_OR_NOW
6669 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6672 # define LT_DLLAZY_OR_NOW DL_LAZY
6675 # define LT_DLLAZY_OR_NOW RTLD_NOW
6678 # define LT_DLLAZY_OR_NOW DL_NOW
6680 # define LT_DLLAZY_OR_NOW 0
6688 extern "C" void exit (int);
6691 void fnord() { int i=42;}
6694 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6695 int status = $lt_dlunknown;
6699 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6700 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6701 /* dlclose (self); */
6707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6708 (eval $ac_link) 2>&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6712 (./conftest; exit; ) 2>/dev/null
6715 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6716 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6717 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6720 # compilation failed
6721 lt_cv_dlopen_self_static=no
6728 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6729 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6732 CPPFLAGS="$save_CPPFLAGS"
6733 LDFLAGS="$save_LDFLAGS"
6738 case $lt_cv_dlopen_self in
6739 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6740 *) enable_dlopen_self=unknown ;;
6743 case $lt_cv_dlopen_self_static in
6744 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6745 *) enable_dlopen_self_static=unknown ;;
6750 if test "$enable_shared" = yes && test "$GCC" = yes; then
6751 case $archive_cmds in
6753 # FIXME: we may have to deal with multi-command sequences.
6756 # Test whether the compiler implicitly links with -lc since on some
6757 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6758 # to ld, don't add -lc before -lgcc.
6759 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6760 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6761 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 echo 'static int dummy;' > conftest.$ac_ext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6768 (eval $ac_compile) 2>&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; then
6774 libobjs=conftest.$ac_objext
6776 wl=$lt_cv_prog_cc_wl
6782 save_allow_undefined_flag=$allow_undefined_flag
6783 allow_undefined_flag=
6784 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6785 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }
6790 lt_cv_archive_cmds_need_lc=no
6792 lt_cv_archive_cmds_need_lc=yes
6794 allow_undefined_flag=$save_allow_undefined_flag
6796 cat conftest.err 1>&5
6800 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6801 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6805 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6807 # The second clause should only fire when bootstrapping the
6808 # libtool distribution, otherwise you forgot to ship ltmain.sh
6809 # with your package, and you will get complaints that there are
6810 # no rules to generate ltmain.sh.
6811 if test -f "$ltmain"; then
6814 # If there is no Makefile yet, we rely on a make rule to execute
6815 # `config.status --recheck' to rerun these tests and create the
6816 # libtool script then.
6817 test -f Makefile && make "$ltmain"
6820 if test -f "$ltmain"; then
6821 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6824 echo creating $ofile
6826 # Now quote all the things that may contain metacharacters while being
6827 # careful not to overquote the AC_SUBSTed values. We take copies of the
6828 # variables and quote the copies for generation of the libtool script.
6829 for var in echo old_CC old_CFLAGS \
6830 AR AR_FLAGS CC LD LN_S NM SHELL \
6831 reload_flag reload_cmds wl \
6832 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6833 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6834 library_names_spec soname_spec \
6835 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6836 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6837 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6838 old_striplib striplib file_magic_cmd export_symbols_cmds \
6839 deplibs_check_method allow_undefined_flag no_undefined_flag \
6840 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6841 global_symbol_to_c_name_address \
6842 hardcode_libdir_flag_spec hardcode_libdir_separator \
6843 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6844 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6847 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6848 old_postinstall_cmds | old_postuninstall_cmds | \
6849 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6850 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6851 postinstall_cmds | postuninstall_cmds | \
6852 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6853 # Double-quote double-evaled strings.
6854 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6857 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6862 cat <<__EOF__ > "${ofile}T"
6865 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6866 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6867 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6869 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6870 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6872 # This program is free software; you can redistribute it and/or modify
6873 # it under the terms of the GNU General Public License as published by
6874 # the Free Software Foundation; either version 2 of the License, or
6875 # (at your option) any later version.
6877 # This program is distributed in the hope that it will be useful, but
6878 # WITHOUT ANY WARRANTY; without even the implied warranty of
6879 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6880 # General Public License for more details.
6882 # You should have received a copy of the GNU General Public License
6883 # along with this program; if not, write to the Free Software
6884 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6886 # As a special exception to the GNU General Public License, if you
6887 # distribute this file as part of a program that contains a
6888 # configuration script generated by Autoconf, you may include it under
6889 # the same distribution terms that you use for the rest of that program.
6891 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6892 Xsed="sed -e s/^X//"
6894 # The HP-UX ksh and POSIX shell print the target directory to stdout
6896 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6898 # ### BEGIN LIBTOOL CONFIG
6900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6902 # Shell to use when invoking shell scripts.
6905 # Whether or not to build shared libraries.
6906 build_libtool_libs=$enable_shared
6908 # Whether or not to build static libraries.
6909 build_old_libs=$enable_static
6911 # Whether or not to add -lc for building shared libraries.
6912 build_libtool_need_lc=$need_lc
6914 # Whether or not to optimize for fast installation.
6915 fast_install=$enable_fast_install
6918 host_alias=$host_alias
6921 # An echo program that does not interpret backslashes.
6926 AR_FLAGS=$lt_AR_FLAGS
6928 # The default C compiler.
6931 # Is the compiler the GNU C compiler?
6934 # The linker used to build libraries.
6937 # Whether we need hard or soft links.
6940 # A BSD-compatible nm program.
6943 # A symbol stripping program
6946 # Used to examine libraries when file_magic_cmd begins "file"
6947 MAGIC_CMD=$MAGIC_CMD
6949 # Used on cygwin: DLL creation program.
6952 # Used on cygwin: object dumper.
6955 # Used on cygwin: assembler.
6958 # The name of the directory that contains temporary libtool files.
6961 # How to create reloadable object files.
6962 reload_flag=$lt_reload_flag
6963 reload_cmds=$lt_reload_cmds
6965 # How to pass a linker flag through the compiler.
6968 # Object file suffix (normally "o").
6971 # Old archive suffix (normally "a").
6974 # Executable file suffix (normally "").
6977 # Additional compiler flags for building library objects.
6978 pic_flag=$lt_pic_flag
6981 # Does compiler simultaneously support -c and -o options?
6982 compiler_c_o=$lt_compiler_c_o
6984 # Can we write directly to a .lo ?
6985 compiler_o_lo=$lt_compiler_o_lo
6987 # Must we lock files when doing compilation ?
6988 need_locks=$lt_need_locks
6990 # Do we need the lib prefix for modules?
6991 need_lib_prefix=$need_lib_prefix
6993 # Do we need a version for libraries?
6994 need_version=$need_version
6996 # Whether dlopen is supported.
6997 dlopen_support=$enable_dlopen
6999 # Whether dlopen of programs is supported.
7000 dlopen_self=$enable_dlopen_self
7002 # Whether dlopen of statically linked programs is supported.
7003 dlopen_self_static=$enable_dlopen_self_static
7005 # Compiler flag to prevent dynamic linking.
7006 link_static_flag=$lt_link_static_flag
7008 # Compiler flag to turn off builtin functions.
7009 no_builtin_flag=$lt_no_builtin_flag
7011 # Compiler flag to allow reflexive dlopens.
7012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7014 # Compiler flag to generate shared objects directly from archives.
7015 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7017 # Compiler flag to generate thread-safe objects.
7018 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7020 # Library versioning type.
7021 version_type=$version_type
7023 # Format of library name prefix.
7024 libname_spec=$lt_libname_spec
7026 # List of archive names. First name is the real one, the rest are links.
7027 # The last name is the one that the linker finds with -lNAME.
7028 library_names_spec=$lt_library_names_spec
7030 # The coded name of the library, if different from the real name.
7031 soname_spec=$lt_soname_spec
7033 # Commands used to build and install an old-style archive.
7035 old_archive_cmds=$lt_old_archive_cmds
7036 old_postinstall_cmds=$lt_old_postinstall_cmds
7037 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7039 # Create an old-style archive from a shared archive.
7040 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7042 # Create a temporary old-style archive to link instead of a shared archive.
7043 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7045 # Commands used to build and install a shared archive.
7046 archive_cmds=$lt_archive_cmds
7047 archive_expsym_cmds=$lt_archive_expsym_cmds
7048 postinstall_cmds=$lt_postinstall_cmds
7049 postuninstall_cmds=$lt_postuninstall_cmds
7051 # Commands to strip libraries.
7052 old_striplib=$lt_old_striplib
7053 striplib=$lt_striplib
7055 # Method to check whether dependent libraries are shared objects.
7056 deplibs_check_method=$lt_deplibs_check_method
7058 # Command to use when deplibs_check_method == file_magic.
7059 file_magic_cmd=$lt_file_magic_cmd
7061 # Flag that allows shared libraries with undefined symbols to be built.
7062 allow_undefined_flag=$lt_allow_undefined_flag
7064 # Flag that forces no undefined symbols.
7065 no_undefined_flag=$lt_no_undefined_flag
7067 # Commands used to finish a libtool library installation in a directory.
7068 finish_cmds=$lt_finish_cmds
7070 # Same as above, but a single script fragment to be evaled but not shown.
7071 finish_eval=$lt_finish_eval
7073 # Take the output of nm and produce a listing of raw symbols and C names.
7074 global_symbol_pipe=$lt_global_symbol_pipe
7076 # Transform the output of nm in a proper C declaration
7077 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7079 # Transform the output of nm in a C name address pair
7080 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7082 # This is the shared library runtime path variable.
7083 runpath_var=$runpath_var
7085 # This is the shared library path variable.
7086 shlibpath_var=$shlibpath_var
7088 # Is shlibpath searched before the hard-coded library search path?
7089 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7091 # How to hardcode a shared library path into an executable.
7092 hardcode_action=$hardcode_action
7094 # Whether we should hardcode library paths into libraries.
7095 hardcode_into_libs=$hardcode_into_libs
7097 # Flag to hardcode \$libdir into a binary during linking.
7098 # This must work even if \$libdir does not exist.
7099 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7101 # Whether we need a single -rpath flag with a separated argument.
7102 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7104 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7106 hardcode_direct=$hardcode_direct
7108 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7110 hardcode_minus_L=$hardcode_minus_L
7112 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7113 # the resulting binary.
7114 hardcode_shlibpath_var=$hardcode_shlibpath_var
7116 # Variables whose values should be saved in libtool wrapper scripts and
7117 # restored at relink time.
7118 variables_saved_for_relink="$variables_saved_for_relink"
7120 # Whether libtool must link a program against all its dependency libraries.
7121 link_all_deplibs=$link_all_deplibs
7123 # Compile-time system search path for libraries
7124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7126 # Run-time system search path for libraries
7127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7129 # Fix the shell variable \$srcfile for the compiler.
7130 fix_srcfile_path="$fix_srcfile_path"
7132 # Set to yes if exported symbols are required.
7133 always_export_symbols=$always_export_symbols
7135 # The commands to list exported symbols.
7136 export_symbols_cmds=$lt_export_symbols_cmds
7138 # The commands to extract the exported symbol list from a shared archive.
7139 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7141 # Symbols that should not be listed in the preloaded symbols.
7142 exclude_expsyms=$lt_exclude_expsyms
7144 # Symbols that must always be exported.
7145 include_expsyms=$lt_include_expsyms
7147 # ### END LIBTOOL CONFIG
7153 cat <<\EOF >> "${ofile}T"
7155 # AIX sometimes has problems with the GCC collect2 program. For some
7156 # reason, if we set the COLLECT_NAMES environment variable, the problems
7157 # vanish in a puff of smoke.
7158 if test "X${COLLECT_NAMES+set}" != Xset; then
7160 export COLLECT_NAMES
7167 cygwin* | mingw* | pw32* | os2*)
7168 cat <<'EOF' >> "${ofile}T"
7169 # This is a source program that is used to create dlls on Windows
7170 # Don't remove nor modify the starting and closing comments
7171 # /* ltdll.c starts here */
7172 # #define WIN32_LEAN_AND_MEAN
7173 # #include <windows.h>
7174 # #undef WIN32_LEAN_AND_MEAN
7175 # #include <stdio.h>
7177 # #ifndef __CYGWIN__
7178 # # ifdef __CYGWIN32__
7179 # # define __CYGWIN__ __CYGWIN32__
7183 # #ifdef __cplusplus
7186 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7187 # #ifdef __cplusplus
7192 # #include <cygwin/cygwin_dll.h>
7193 # DECLARE_CYGWIN_DLL( DllMain );
7195 # HINSTANCE __hDllInstance_base;
7198 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7200 # __hDllInstance_base = hInst;
7203 # /* ltdll.c ends here */
7204 # This is a source program that is used to create import libraries
7205 # on Windows for dlls which lack them. Don't remove nor modify the
7206 # starting and closing comments
7207 # /* impgen.c starts here */
7208 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7210 # This file is part of GNU libtool.
7212 # This program is free software; you can redistribute it and/or modify
7213 # it under the terms of the GNU General Public License as published by
7214 # the Free Software Foundation; either version 2 of the License, or
7215 # (at your option) any later version.
7217 # This program is distributed in the hope that it will be useful,
7218 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7219 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7220 # GNU General Public License for more details.
7222 # You should have received a copy of the GNU General Public License
7223 # along with this program; if not, write to the Free Software
7224 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7227 # #include <stdio.h> /* for printf() */
7228 # #include <unistd.h> /* for open(), lseek(), read() */
7229 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7230 # #include <string.h> /* for strdup() */
7232 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7234 # #define O_BINARY 0
7237 # static unsigned int
7238 # pe_get16 (fd, offset)
7242 # unsigned char b[2];
7243 # lseek (fd, offset, SEEK_SET);
7245 # return b[0] + (b[1]<<8);
7248 # static unsigned int
7249 # pe_get32 (fd, offset)
7253 # unsigned char b[4];
7254 # lseek (fd, offset, SEEK_SET);
7256 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7259 # static unsigned int
7263 # unsigned char *b = ptr;
7264 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7273 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7274 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7275 # unsigned long name_rvas, nexp;
7276 # unsigned char *expdata, *erva;
7277 # char *filename, *dll_name;
7279 # filename = argv[1];
7281 # dll = open(filename, O_RDONLY|O_BINARY);
7285 # dll_name = filename;
7287 # for (i=0; filename[i]; i++)
7288 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7289 # dll_name = filename + i +1;
7291 # pe_header_offset = pe_get32 (dll, 0x3c);
7292 # opthdr_ofs = pe_header_offset + 4 + 20;
7293 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7295 # if (num_entries < 1) /* no exports */
7298 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7299 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7300 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7301 # secptr = (pe_header_offset + 4 + 20 +
7302 # pe_get16 (dll, pe_header_offset + 4 + 16));
7305 # for (i = 0; i < nsections; i++)
7308 # unsigned long secptr1 = secptr + 40 * i;
7309 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7310 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7311 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7312 # lseek(dll, secptr1, SEEK_SET);
7313 # read(dll, sname, 8);
7314 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7316 # expptr = fptr + (export_rva - vaddr);
7317 # if (export_rva + export_size > vaddr + vsize)
7318 # export_size = vsize - (export_rva - vaddr);
7323 # expdata = (unsigned char*)malloc(export_size);
7324 # lseek (dll, expptr, SEEK_SET);
7325 # read (dll, expdata, export_size);
7326 # erva = expdata - export_rva;
7328 # nexp = pe_as32 (expdata+24);
7329 # name_rvas = pe_as32 (expdata+32);
7331 # printf ("EXPORTS\n");
7332 # for (i = 0; i<nexp; i++)
7334 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7335 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7340 # /* impgen.c ends here */
7346 # We use sed instead of cat because bash on DJGPP gets confused if
7347 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7348 # text mode, it properly converts lines to CR/LF. This bash problem
7349 # is reportedly fixed, but why not run on old versions too?
7350 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7352 mv -f "${ofile}T" "$ofile" || \
7353 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7361 # This can be used to rebuild libtool when needed
7362 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7364 # Always use our own libtool.
7365 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7367 # Prevent multiple expansion
7370 for ac_prog in 'bison -y' byacc
7372 # Extract the first word of "$ac_prog", so it can be a program name with args.
7373 set dummy $ac_prog; ac_word=$2
7374 echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7376 if test "${ac_cv_prog_YACC+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 if test -n "$YACC"; then
7380 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389 ac_cv_prog_YACC="$ac_prog"
7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 YACC=$ac_cv_prog_YACC
7399 if test -n "$YACC"; then
7400 echo "$as_me:$LINENO: result: $YACC" >&5
7401 echo "${ECHO_T}$YACC" >&6
7403 echo "$as_me:$LINENO: result: no" >&5
7404 echo "${ECHO_T}no" >&6
7407 test -n "$YACC" && break
7409 test -n "$YACC" || YACC="yacc"
7412 ac_cpp='$CPP $CPPFLAGS'
7413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7416 if test -n "$ac_tool_prefix"; then
7417 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7418 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7419 echo "$as_me:$LINENO: checking for $ac_word" >&5
7420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7421 if test "${ac_cv_prog_CC+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 if test -n "$CC"; then
7425 ac_cv_prog_CC="$CC" # Let the user override the test.
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 if test -n "$CC"; then
7445 echo "$as_me:$LINENO: result: $CC" >&5
7446 echo "${ECHO_T}$CC" >&6
7448 echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7453 if test -z "$ac_cv_prog_CC"; then
7455 # Extract the first word of "gcc", so it can be a program name with args.
7456 set dummy gcc; ac_word=$2
7457 echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7459 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 if test -n "$ac_ct_CC"; then
7463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_ac_ct_CC="gcc"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7482 if test -n "$ac_ct_CC"; then
7483 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7484 echo "${ECHO_T}$ac_ct_CC" >&6
7486 echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6
7495 if test -z "$CC"; then
7496 if test -n "$ac_tool_prefix"; then
7497 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7498 set dummy ${ac_tool_prefix}cc; ac_word=$2
7499 echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7501 if test "${ac_cv_prog_CC+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 if test -n "$CC"; then
7505 ac_cv_prog_CC="$CC" # Let the user override the test.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514 ac_cv_prog_CC="${ac_tool_prefix}cc"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 if test -n "$CC"; then
7525 echo "$as_me:$LINENO: result: $CC" >&5
7526 echo "${ECHO_T}$CC" >&6
7528 echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7533 if test -z "$ac_cv_prog_CC"; then
7535 # Extract the first word of "cc", so it can be a program name with args.
7536 set dummy cc; ac_word=$2
7537 echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 if test -n "$ac_ct_CC"; then
7543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 ac_cv_prog_ac_ct_CC="cc"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7562 if test -n "$ac_ct_CC"; then
7563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7564 echo "${ECHO_T}$ac_ct_CC" >&6
7566 echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6
7576 if test -z "$CC"; then
7577 # Extract the first word of "cc", so it can be a program name with args.
7578 set dummy cc; ac_word=$2
7579 echo "$as_me:$LINENO: checking for $ac_word" >&5
7580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7581 if test "${ac_cv_prog_CC+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 if test -n "$CC"; then
7585 ac_cv_prog_CC="$CC" # Let the user override the test.
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7596 ac_prog_rejected=yes
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 if test $ac_prog_rejected = yes; then
7607 # We found a bogon in the path, so make sure we never use it.
7608 set dummy $ac_cv_prog_CC
7610 if test $# != 0; then
7611 # We chose a different compiler from the bogus one.
7612 # However, it has the same basename, so the bogon will be chosen
7613 # first if we set CC to just the basename; use the full file name.
7615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7621 if test -n "$CC"; then
7622 echo "$as_me:$LINENO: result: $CC" >&5
7623 echo "${ECHO_T}$CC" >&6
7625 echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6
7630 if test -z "$CC"; then
7631 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7636 echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7638 if test "${ac_cv_prog_CC+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 if test -n "$CC"; then
7642 ac_cv_prog_CC="$CC" # Let the user override the test.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 if test -n "$CC"; then
7662 echo "$as_me:$LINENO: result: $CC" >&5
7663 echo "${ECHO_T}$CC" >&6
7665 echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6
7669 test -n "$CC" && break
7672 if test -z "$CC"; then
7676 # Extract the first word of "$ac_prog", so it can be a program name with args.
7677 set dummy $ac_prog; ac_word=$2
7678 echo "$as_me:$LINENO: checking for $ac_word" >&5
7679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 if test -n "$ac_ct_CC"; then
7684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693 ac_cv_prog_ac_ct_CC="$ac_prog"
7694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7703 if test -n "$ac_ct_CC"; then
7704 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7705 echo "${ECHO_T}$ac_ct_CC" >&6
7707 echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6
7711 test -n "$ac_ct_CC" && break
7720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
7721 See \`config.log' for more details." >&5
7722 echo "$as_me: error: no acceptable C compiler found in \$PATH
7723 See \`config.log' for more details." >&2;}
7724 { (exit 1); exit 1; }; }
7726 # Provide some information about the compiler.
7727 echo "$as_me:$LINENO:" \
7728 "checking for C compiler version" >&5
7729 ac_compiler=`set X $ac_compile; echo $2`
7730 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7731 (eval $ac_compiler --version </dev/null >&5) 2>&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }
7735 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7736 (eval $ac_compiler -v </dev/null >&5) 2>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }
7740 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7741 (eval $ac_compiler -V </dev/null >&5) 2>&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }
7746 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7747 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7748 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772 (eval $ac_compile) 2>&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } &&
7776 { ac_try='test -s conftest.$ac_objext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7784 echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7789 rm -f conftest.$ac_objext conftest.$ac_ext
7790 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7793 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7794 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7795 GCC=`test $ac_compiler_gnu = yes && echo yes`
7796 ac_test_CFLAGS=${CFLAGS+set}
7797 ac_save_CFLAGS=$CFLAGS
7799 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7800 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7801 if test "${ac_cv_prog_cc_g+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 cat >conftest.$ac_ext <<_ACEOF
7805 #line $LINENO "configure"
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7820 rm -f conftest.$ac_objext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7822 (eval $ac_compile) 2>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
7826 { ac_try='test -s conftest.$ac_objext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7839 rm -f conftest.$ac_objext conftest.$ac_ext
7841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7842 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7843 if test "$ac_test_CFLAGS" = set; then
7844 CFLAGS=$ac_save_CFLAGS
7845 elif test $ac_cv_prog_cc_g = yes; then
7846 if test "$GCC" = yes; then
7852 if test "$GCC" = yes; then
7858 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7859 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7860 if test "${ac_cv_prog_cc_stdc+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 ac_cv_prog_cc_stdc=no
7865 cat >conftest.$ac_ext <<_ACEOF
7866 #line $LINENO "configure"
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7874 #include <sys/types.h>
7875 #include <sys/stat.h>
7876 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7877 struct buf { int x; };
7878 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7879 static char *e (p, i)
7885 static char *f (char * (*g) (char **, int), char **p, ...)
7890 s = g (p, va_arg (v,int));
7894 int test (int i, double x);
7895 struct s1 {int (*f) (int a);};
7896 struct s2 {int (*f) (double a);};
7897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7903 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7908 # Don't try gcc -ansi; that turns off useful extensions and
7909 # breaks some systems' header files.
7910 # AIX -qlanglvl=ansi
7911 # Ultrix and OSF/1 -std1
7912 # HP-UX 10.20 and later -Ae
7913 # HP-UX older versions -Aa -D_HPUX_SOURCE
7914 # SVR4 -Xc -D__EXTENSIONS__
7915 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7917 CC="$ac_save_CC $ac_arg"
7918 rm -f conftest.$ac_objext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920 (eval $ac_compile) 2>&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try='test -s conftest.$ac_objext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 ac_cv_prog_cc_stdc=$ac_arg
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7937 rm -f conftest.$ac_objext
7939 rm -f conftest.$ac_ext conftest.$ac_objext
7944 case "x$ac_cv_prog_cc_stdc" in
7946 echo "$as_me:$LINENO: result: none needed" >&5
7947 echo "${ECHO_T}none needed" >&6 ;;
7949 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7950 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7951 CC="$CC $ac_cv_prog_cc_stdc" ;;
7954 # Some people use a C++ compiler to compile C. Since we use `exit',
7955 # in C++ we need to declare it. In case someone uses the same compiler
7956 # for both compiling C and C++ we need to have the C++ compiler decide
7957 # the declaration of exit, since it's the most demanding environment.
7958 cat >conftest.$ac_ext <<_ACEOF
7963 rm -f conftest.$ac_objext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7965 (eval $ac_compile) 2>&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -s conftest.$ac_objext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 for ac_declaration in \
7977 '#include <stdlib.h>' \
7978 'extern "C" void std::exit (int) throw (); using std::exit;' \
7979 'extern "C" void std::exit (int); using std::exit;' \
7980 'extern "C" void exit (int) throw ();' \
7981 'extern "C" void exit (int);' \
7984 cat >conftest.$ac_ext <<_ACEOF
7985 #line $LINENO "configure"
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
8001 rm -f conftest.$ac_objext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8003 (eval $ac_compile) 2>&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -s conftest.$ac_objext'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; }; then
8015 echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8020 rm -f conftest.$ac_objext conftest.$ac_ext
8021 cat >conftest.$ac_ext <<_ACEOF
8022 #line $LINENO "configure"
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8037 rm -f conftest.$ac_objext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8039 (eval $ac_compile) 2>&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try='test -s conftest.$ac_objext'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8055 rm -f conftest.$ac_objext conftest.$ac_ext
8058 if test -n "$ac_declaration"; then
8059 echo '#ifdef __cplusplus' >>confdefs.h
8060 echo $ac_declaration >>confdefs.h
8061 echo '#endif' >>confdefs.h
8065 echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8069 rm -f conftest.$ac_objext conftest.$ac_ext
8071 ac_cpp='$CPP $CPPFLAGS'
8072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8076 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8077 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8078 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8079 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 cat >conftest.make <<\_ACEOF
8084 @echo 'ac_maketemp="$(MAKE)"'
8086 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8087 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8088 if test -n "$ac_maketemp"; then
8089 eval ac_cv_prog_make_${ac_make}_set=yes
8091 eval ac_cv_prog_make_${ac_make}_set=no
8095 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8096 echo "$as_me:$LINENO: result: yes" >&5
8097 echo "${ECHO_T}yes" >&6
8100 echo "$as_me:$LINENO: result: no" >&5
8101 echo "${ECHO_T}no" >&6
8102 SET_MAKE="MAKE=${MAKE-make}"
8106 # Checks for libraries.
8107 # FIXME: Replace `main' with a function in `-lX11':
8108 # AC_CHECK_LIB([X11], [main])
8109 # FIXME: Replace `main' with a function in `-ldl':
8110 # AC_CHECK_LIB([dl], [main])
8111 # FIXME: Replace `main' with a function in `-lefence':
8112 # AC_CHECK_LIB([efence], [main])
8113 # FIXME: Replace `main' with a function in `-lm':
8114 # AC_CHECK_LIB([m], [main])
8115 # FIXME: Replace `main' with a function in `-lproj':
8116 # AC_CHECK_LIB([proj], [main])
8118 # Checks for header files.
8119 echo "$as_me:$LINENO: checking for X" >&5
8120 echo $ECHO_N "checking for X... $ECHO_C" >&6
8123 # Check whether --with-x or --without-x was given.
8124 if test "${with_x+set}" = set; then
8128 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8129 if test "x$with_x" = xno; then
8130 # The user explicitly disabled X.
8133 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8134 # Both variables are already set.
8137 if test "${ac_cv_have_x+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 # One or both of the vars are not set, and there is no cached value.
8141 ac_x_includes=no ac_x_libraries=no
8143 if mkdir conftest.dir; then
8145 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8146 cat >Imakefile <<'_ACEOF'
8148 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8150 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8151 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8152 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8153 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8154 for ac_extension in a so sl; do
8155 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8156 test -f $ac_im_libdir/libX11.$ac_extension; then
8157 ac_im_usrlibdir=$ac_im_libdir; break
8160 # Screen out bogus values from the imake configuration. They are
8161 # bogus both because they are the default anyway, and because
8162 # using them would break gcc on systems where it needs fixed includes.
8163 case $ac_im_incroot in
8165 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8167 case $ac_im_usrlibdir in
8169 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8176 # Standard set of common directories for X headers.
8177 # Check X11 before X11Rn because it is often a symlink to the current release.
8189 /usr/local/X11/include
8190 /usr/local/X11R6/include
8191 /usr/local/X11R5/include
8192 /usr/local/X11R4/include
8194 /usr/local/include/X11
8195 /usr/local/include/X11R6
8196 /usr/local/include/X11R5
8197 /usr/local/include/X11R4
8201 /usr/XFree86/include/X11
8205 /usr/unsupported/include
8207 /usr/local/x11r5/include
8208 /usr/lpp/Xamples/include
8210 /usr/openwin/include
8211 /usr/openwin/share/include'
8213 if test "$ac_x_includes" = no; then
8214 # Guess where to find include files, by looking for Intrinsic.h.
8215 # First, try using that file with no special directory specified.
8216 cat >conftest.$ac_ext <<_ACEOF
8217 #line $LINENO "configure"
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 #include <X11/Intrinsic.h>
8225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8228 grep -v '^ *+' conftest.er1 >conftest.err
8230 cat conftest.err >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } >/dev/null; then
8233 if test -s conftest.err; then
8234 ac_cpp_err=$ac_c_preproc_warn_flag
8241 if test -z "$ac_cpp_err"; then
8242 # We can compile using X headers with no special include directory.
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 for ac_dir in $ac_x_header_dirs; do
8249 if test -r "$ac_dir/X11/Intrinsic.h"; then
8250 ac_x_includes=$ac_dir
8255 rm -f conftest.err conftest.$ac_ext
8256 fi # $ac_x_includes = no
8258 if test "$ac_x_libraries" = no; then
8259 # Check for the libraries.
8260 # See if we find them without any special options.
8261 # Don't add to $LIBS permanently.
8264 cat >conftest.$ac_ext <<_ACEOF
8265 #line $LINENO "configure"
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 #include <X11/Intrinsic.h>
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
8286 { ac_try='test -s conftest$ac_exeext'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; }; then
8293 # We can link X programs with no special library path.
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8300 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8302 # Don't even attempt the hair of trying to link an X program!
8303 for ac_extension in a so sl; do
8304 if test -r $ac_dir/libXt.$ac_extension; then
8305 ac_x_libraries=$ac_dir
8311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8312 fi # $ac_x_libraries = no
8314 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8315 # Didn't find X anywhere. Cache the known absence of X.
8316 ac_cv_have_x="have_x=no"
8318 # Record where we found X for the cache.
8319 ac_cv_have_x="have_x=yes \
8320 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8325 eval "$ac_cv_have_x"
8328 if test "$have_x" != yes; then
8329 echo "$as_me:$LINENO: result: $have_x" >&5
8330 echo "${ECHO_T}$have_x" >&6
8333 # If each of the values was on the command line, it overrides each guess.
8334 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8335 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8336 # Update the cache value to reflect the command line values.
8337 ac_cv_have_x="have_x=yes \
8338 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8339 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8340 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8343 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8344 # for constant arguments. Useless!
8345 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8346 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8347 if test "${ac_cv_working_alloca_h+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 cat >conftest.$ac_ext <<_ACEOF
8351 #line $LINENO "configure"
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8361 char *p = (char *) alloca (2 * sizeof (int));
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try='test -s conftest$ac_exeext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_cv_working_alloca_h=yes
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_cv_working_alloca_h=no
8385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8387 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8388 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8389 if test $ac_cv_working_alloca_h = yes; then
8391 cat >>confdefs.h <<\_ACEOF
8392 #define HAVE_ALLOCA_H 1
8397 echo "$as_me:$LINENO: checking for alloca" >&5
8398 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8399 if test "${ac_cv_func_alloca_works+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 cat >conftest.$ac_ext <<_ACEOF
8403 #line $LINENO "configure"
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8410 # define alloca __builtin_alloca
8413 # include <malloc.h>
8414 # define alloca _alloca
8417 # include <alloca.h>
8422 # ifndef alloca /* predefined by HP cc +Olibcalls */
8433 char *p = (char *) alloca (1);
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440 (eval $ac_link) 2>&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } &&
8444 { ac_try='test -s conftest$ac_exeext'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; }; then
8450 ac_cv_func_alloca_works=yes
8452 echo "$as_me: failed program was:" >&5
8453 sed 's/^/| /' conftest.$ac_ext >&5
8455 ac_cv_func_alloca_works=no
8457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8459 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8460 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8462 if test $ac_cv_func_alloca_works = yes; then
8464 cat >>confdefs.h <<\_ACEOF
8465 #define HAVE_ALLOCA 1
8469 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8470 # that cause trouble. Some versions do not even contain alloca or
8471 # contain a buggy version. If you still want to use their alloca,
8472 # use ar to extract alloca.o from them instead of compiling alloca.c.
8474 ALLOCA=alloca.$ac_objext
8476 cat >>confdefs.h <<\_ACEOF
8481 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8482 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8483 if test "${ac_cv_os_cray+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 cat >conftest.$ac_ext <<_ACEOF
8487 #line $LINENO "configure"
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8493 #if defined(CRAY) && ! defined(CRAY2)
8500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8501 $EGREP "webecray" >/dev/null 2>&1; then
8509 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8510 echo "${ECHO_T}$ac_cv_os_cray" >&6
8511 if test $ac_cv_os_cray = yes; then
8512 for ac_func in _getb67 GETB67 getb67; do
8513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8514 echo "$as_me:$LINENO: checking for $ac_func" >&5
8515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8516 if eval "test \"\${$as_ac_var+set}\" = set"; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 cat >conftest.$ac_ext <<_ACEOF
8520 #line $LINENO "configure"
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8526 /* System header to define __stub macros and hopefully few prototypes,
8527 which can conflict with char $ac_func (); below. */
8529 /* Override any gcc2 internal prototype to avoid an error. */
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8537 /* The GNU C library defines this for functions which it implements
8538 to always fail with ENOSYS. Some functions are actually named
8539 something starting with __ and the normal name is an alias. */
8540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8543 char (*f) () = $ac_func;
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8559 (eval $ac_link) 2>&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } &&
8563 { ac_try='test -s conftest$ac_exeext'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 eval "$as_ac_var=yes"
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 eval "$as_ac_var=no"
8576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8580 if test `eval echo '${'$as_ac_var'}'` = yes; then
8582 cat >>confdefs.h <<_ACEOF
8583 #define CRAY_STACKSEG_END $ac_func
8592 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8593 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8594 if test "${ac_cv_c_stack_direction+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 if test "$cross_compiling" = yes; then
8598 ac_cv_c_stack_direction=0
8600 cat >conftest.$ac_ext <<_ACEOF
8601 #line $LINENO "configure"
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8608 find_stack_direction ()
8610 static char *addr = 0;
8615 return find_stack_direction ();
8618 return (&dummy > addr) ? 1 : -1;
8624 exit (find_stack_direction () < 0);
8627 rm -f conftest$ac_exeext
8628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8629 (eval $ac_link) 2>&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 ac_cv_c_stack_direction=1
8640 echo "$as_me: program exited with status $ac_status" >&5
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8645 ac_cv_c_stack_direction=-1
8647 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8650 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8651 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8653 cat >>confdefs.h <<_ACEOF
8654 #define STACK_DIRECTION $ac_cv_c_stack_direction
8660 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8661 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8662 if test "${ac_cv_header_stdc+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 cat >conftest.$ac_ext <<_ACEOF
8666 #line $LINENO "configure"
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8685 rm -f conftest.$ac_objext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687 (eval $ac_compile) 2>&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } &&
8691 { ac_try='test -s conftest.$ac_objext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_header_stdc=yes
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8702 ac_cv_header_stdc=no
8704 rm -f conftest.$ac_objext conftest.$ac_ext
8706 if test $ac_cv_header_stdc = yes; then
8707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8708 cat >conftest.$ac_ext <<_ACEOF
8709 #line $LINENO "configure"
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8719 $EGREP "memchr" >/dev/null 2>&1; then
8722 ac_cv_header_stdc=no
8728 if test $ac_cv_header_stdc = yes; then
8729 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8730 cat >conftest.$ac_ext <<_ACEOF
8731 #line $LINENO "configure"
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8741 $EGREP "free" >/dev/null 2>&1; then
8744 ac_cv_header_stdc=no
8750 if test $ac_cv_header_stdc = yes; then
8751 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8752 if test "$cross_compiling" = yes; then
8755 cat >conftest.$ac_ext <<_ACEOF
8756 #line $LINENO "configure"
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8763 #if ((' ' & 0x0FF) == 0x020)
8764 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8765 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8767 # define ISLOWER(c) \
8768 (('a' <= (c) && (c) <= 'i') \
8769 || ('j' <= (c) && (c) <= 'r') \
8770 || ('s' <= (c) && (c) <= 'z'))
8771 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8774 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8779 for (i = 0; i < 256; i++)
8780 if (XOR (islower (i), ISLOWER (i))
8781 || toupper (i) != TOUPPER (i))
8786 rm -f conftest$ac_exeext
8787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8788 (eval $ac_link) 2>&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; }; then
8799 echo "$as_me: program exited with status $ac_status" >&5
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8804 ac_cv_header_stdc=no
8806 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8810 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8811 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8812 if test $ac_cv_header_stdc = yes; then
8814 cat >>confdefs.h <<\_ACEOF
8815 #define STDC_HEADERS 1
8827 for ac_header in limits.h malloc.h stddef.h stdlib.h string.h strings.h unistd.h
8829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8831 echo "$as_me:$LINENO: checking for $ac_header" >&5
8832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8839 # Is the header compilable?
8840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8842 cat >conftest.$ac_ext <<_ACEOF
8843 #line $LINENO "configure"
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 $ac_includes_default
8850 #include <$ac_header>
8852 rm -f conftest.$ac_objext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8854 (eval $ac_compile) 2>&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -s conftest.$ac_objext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 ac_header_compiler=yes
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8869 ac_header_compiler=no
8871 rm -f conftest.$ac_objext conftest.$ac_ext
8872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8873 echo "${ECHO_T}$ac_header_compiler" >&6
8875 # Is the header present?
8876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8878 cat >conftest.$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 #include <$ac_header>
8887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8890 grep -v '^ *+' conftest.er1 >conftest.err
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } >/dev/null; then
8895 if test -s conftest.err; then
8896 ac_cpp_err=$ac_c_preproc_warn_flag
8903 if test -z "$ac_cpp_err"; then
8904 ac_header_preproc=yes
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 ac_header_preproc=no
8911 rm -f conftest.err conftest.$ac_ext
8912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8913 echo "${ECHO_T}$ac_header_preproc" >&6
8915 # So? What about this header?
8916 case $ac_header_compiler:$ac_header_preproc in
8918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8924 ## ------------------------------------ ##
8925 ## Report this to bug-autoconf@gnu.org. ##
8926 ## ------------------------------------ ##
8929 sed "s/^/$as_me: WARNING: /" >&2
8932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8940 ## ------------------------------------ ##
8941 ## Report this to bug-autoconf@gnu.org. ##
8942 ## ------------------------------------ ##
8945 sed "s/^/$as_me: WARNING: /" >&2
8948 echo "$as_me:$LINENO: checking for $ac_header" >&5
8949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 eval "$as_ac_Header=$ac_header_preproc"
8955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8960 cat >>confdefs.h <<_ACEOF
8961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8969 # Checks for typedefs, structures, and compiler characteristics.
8970 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8971 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8972 if test "${ac_cv_c_const+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
8986 /* FIXME: Include the comments suggested by Paul. */
8988 /* Ultrix mips cc rejects this. */
8989 typedef int charset[2];
8991 /* SunOS 4.1.1 cc rejects this. */
8992 char const *const *ccp;
8994 /* NEC SVR4.0.2 mips cc rejects this. */
8995 struct point {int x, y;};
8996 static struct point const zero = {0,0};
8997 /* AIX XL C 1.02.0.0 rejects this.
8998 It does not let you subtract one const X* pointer from another in
8999 an arm of an if-expression whose if-part is not a constant
9001 const char *g = "string";
9002 ccp = &g + (g ? g-g : 0);
9003 /* HPUX 7.0 cc rejects these. */
9006 ccp = (char const *const *) p;
9007 { /* SCO 3.2v4 cc rejects this. */
9009 char const *s = 0 ? (char *) 0 : (char const *) 0;
9013 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9015 const int *foo = &x[0];
9018 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9019 typedef const int *iptr;
9023 { /* AIX XL C 1.02.0.0 rejects this saying
9024 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9025 struct s { int j; const int *ap[3]; };
9026 struct s *b; b->j = 5;
9028 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9037 rm -f conftest.$ac_objext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039 (eval $ac_compile) 2>&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } &&
9043 { ac_try='test -s conftest.$ac_objext'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9056 rm -f conftest.$ac_objext conftest.$ac_ext
9058 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9059 echo "${ECHO_T}$ac_cv_c_const" >&6
9060 if test $ac_cv_c_const = no; then
9062 cat >>confdefs.h <<\_ACEOF
9068 echo "$as_me:$LINENO: checking for size_t" >&5
9069 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9070 if test "${ac_cv_type_size_t+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 cat >conftest.$ac_ext <<_ACEOF
9074 #line $LINENO "configure"
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9080 $ac_includes_default
9086 if (sizeof (size_t))
9092 rm -f conftest.$ac_objext
9093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9094 (eval $ac_compile) 2>&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } &&
9098 { ac_try='test -s conftest.$ac_objext'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; }; then
9104 ac_cv_type_size_t=yes
9106 echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9109 ac_cv_type_size_t=no
9111 rm -f conftest.$ac_objext conftest.$ac_ext
9113 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9114 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9115 if test $ac_cv_type_size_t = yes; then
9119 cat >>confdefs.h <<_ACEOF
9120 #define size_t unsigned
9125 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9126 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9127 if test "${ac_cv_struct_tm+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 cat >conftest.$ac_ext <<_ACEOF
9131 #line $LINENO "configure"
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 #include <sys/types.h>
9143 struct tm *tp; tp->tm_sec;
9148 rm -f conftest.$ac_objext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9150 (eval $ac_compile) 2>&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } &&
9154 { ac_try='test -s conftest.$ac_objext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9160 ac_cv_struct_tm=time.h
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9165 ac_cv_struct_tm=sys/time.h
9167 rm -f conftest.$ac_objext conftest.$ac_ext
9169 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9170 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9171 if test $ac_cv_struct_tm = sys/time.h; then
9173 cat >>confdefs.h <<\_ACEOF
9174 #define TM_IN_SYS_TIME 1
9180 # Checks for library functions.
9181 echo "$as_me:$LINENO: checking for error_at_line" >&5
9182 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9183 if test "${ac_cv_lib_error_at_line+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 cat >conftest.$ac_ext <<_ACEOF
9187 #line $LINENO "configure"
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9197 error_at_line (0, 0, "", 0, "");
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204 (eval $ac_link) 2>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_lib_error_at_line=yes
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_cv_lib_error_at_line=no
9221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9223 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9224 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9225 if test $ac_cv_lib_error_at_line = no; then
9226 LIBOBJS="$LIBOBJS error.$ac_objext"
9230 for ac_header in stdlib.h
9232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9234 echo "$as_me:$LINENO: checking for $ac_header" >&5
9235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9242 # Is the header compilable?
9243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9245 cat >conftest.$ac_ext <<_ACEOF
9246 #line $LINENO "configure"
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252 $ac_includes_default
9253 #include <$ac_header>
9255 rm -f conftest.$ac_objext
9256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9257 (eval $ac_compile) 2>&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } &&
9261 { ac_try='test -s conftest.$ac_objext'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
9267 ac_header_compiler=yes
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9272 ac_header_compiler=no
9274 rm -f conftest.$ac_objext conftest.$ac_ext
9275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9276 echo "${ECHO_T}$ac_header_compiler" >&6
9278 # Is the header present?
9279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9281 cat >conftest.$ac_ext <<_ACEOF
9282 #line $LINENO "configure"
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 #include <$ac_header>
9290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9293 grep -v '^ *+' conftest.er1 >conftest.err
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } >/dev/null; then
9298 if test -s conftest.err; then
9299 ac_cpp_err=$ac_c_preproc_warn_flag
9306 if test -z "$ac_cpp_err"; then
9307 ac_header_preproc=yes
9309 echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9312 ac_header_preproc=no
9314 rm -f conftest.err conftest.$ac_ext
9315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9316 echo "${ECHO_T}$ac_header_preproc" >&6
9318 # So? What about this header?
9319 case $ac_header_compiler:$ac_header_preproc in
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9327 ## ------------------------------------ ##
9328 ## Report this to bug-autoconf@gnu.org. ##
9329 ## ------------------------------------ ##
9332 sed "s/^/$as_me: WARNING: /" >&2
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9343 ## ------------------------------------ ##
9344 ## Report this to bug-autoconf@gnu.org. ##
9345 ## ------------------------------------ ##
9348 sed "s/^/$as_me: WARNING: /" >&2
9351 echo "$as_me:$LINENO: checking for $ac_header" >&5
9352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 eval "$as_ac_Header=$ac_header_preproc"
9358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9363 cat >>confdefs.h <<_ACEOF
9364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9371 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9372 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9373 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 if test "$cross_compiling" = yes; then
9377 ac_cv_func_malloc_0_nonnull=no
9379 cat >conftest.$ac_ext <<_ACEOF
9380 #line $LINENO "configure"
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9386 #if STDC_HEADERS || HAVE_STDLIB_H
9387 # include <stdlib.h>
9395 exit (malloc (0) ? 0 : 1);
9400 rm -f conftest$ac_exeext
9401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9402 (eval $ac_link) 2>&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_func_malloc_0_nonnull=yes
9413 echo "$as_me: program exited with status $ac_status" >&5
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9418 ac_cv_func_malloc_0_nonnull=no
9420 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9423 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9424 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
9425 if test $ac_cv_func_malloc_0_nonnull = yes; then
9427 cat >>confdefs.h <<\_ACEOF
9428 #define HAVE_MALLOC 1
9432 cat >>confdefs.h <<\_ACEOF
9433 #define HAVE_MALLOC 0
9436 LIBOBJS="$LIBOBJS malloc.$ac_objext"
9438 cat >>confdefs.h <<\_ACEOF
9439 #define malloc rpl_malloc
9448 for ac_header in stdlib.h unistd.h
9450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9452 echo "$as_me:$LINENO: checking for $ac_header" >&5
9453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9460 # Is the header compilable?
9461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9463 cat >conftest.$ac_ext <<_ACEOF
9464 #line $LINENO "configure"
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 $ac_includes_default
9471 #include <$ac_header>
9473 rm -f conftest.$ac_objext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475 (eval $ac_compile) 2>&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } &&
9479 { ac_try='test -s conftest.$ac_objext'
9480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); }; }; then
9485 ac_header_compiler=yes
9487 echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9490 ac_header_compiler=no
9492 rm -f conftest.$ac_objext conftest.$ac_ext
9493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9494 echo "${ECHO_T}$ac_header_compiler" >&6
9496 # Is the header present?
9497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9499 cat >conftest.$ac_ext <<_ACEOF
9500 #line $LINENO "configure"
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9506 #include <$ac_header>
9508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9511 grep -v '^ *+' conftest.er1 >conftest.err
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } >/dev/null; then
9516 if test -s conftest.err; then
9517 ac_cpp_err=$ac_c_preproc_warn_flag
9524 if test -z "$ac_cpp_err"; then
9525 ac_header_preproc=yes
9527 echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9530 ac_header_preproc=no
9532 rm -f conftest.err conftest.$ac_ext
9533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9534 echo "${ECHO_T}$ac_header_preproc" >&6
9536 # So? What about this header?
9537 case $ac_header_compiler:$ac_header_preproc in
9539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9545 ## ------------------------------------ ##
9546 ## Report this to bug-autoconf@gnu.org. ##
9547 ## ------------------------------------ ##
9550 sed "s/^/$as_me: WARNING: /" >&2
9553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9561 ## ------------------------------------ ##
9562 ## Report this to bug-autoconf@gnu.org. ##
9563 ## ------------------------------------ ##
9566 sed "s/^/$as_me: WARNING: /" >&2
9569 echo "$as_me:$LINENO: checking for $ac_header" >&5
9570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 eval "$as_ac_Header=$ac_header_preproc"
9576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9581 cat >>confdefs.h <<_ACEOF
9582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9590 for ac_func in getpagesize
9592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9593 echo "$as_me:$LINENO: checking for $ac_func" >&5
9594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9595 if eval "test \"\${$as_ac_var+set}\" = set"; then
9596 echo $ECHO_N "(cached) $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 /* System header to define __stub macros and hopefully few prototypes,
9606 which can conflict with char $ac_func (); below. */
9608 /* Override any gcc2 internal prototype to avoid an error. */
9613 /* We use char because int might match the return type of a gcc2
9614 builtin and then its argument prototype would still apply. */
9616 /* The GNU C library defines this for functions which it implements
9617 to always fail with ENOSYS. Some functions are actually named
9618 something starting with __ and the normal name is an alias. */
9619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9622 char (*f) () = $ac_func;
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638 (eval $ac_link) 2>&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
9642 { ac_try='test -s conftest$ac_exeext'
9643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 eval "$as_ac_var=yes"
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9653 eval "$as_ac_var=no"
9655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9659 if test `eval echo '${'$as_ac_var'}'` = yes; then
9660 cat >>confdefs.h <<_ACEOF
9661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9667 echo "$as_me:$LINENO: checking for working mmap" >&5
9668 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9669 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 if test "$cross_compiling" = yes; then
9673 ac_cv_func_mmap_fixed_mapped=no
9675 cat >conftest.$ac_ext <<_ACEOF
9676 #line $LINENO "configure"
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682 $ac_includes_default
9683 /* malloc might have been renamed as rpl_malloc. */
9686 /* Thanks to Mike Haertel and Jim Avera for this test.
9687 Here is a matrix of mmap possibilities:
9688 mmap private not fixed
9689 mmap private fixed at somewhere currently unmapped
9690 mmap private fixed at somewhere already mapped
9691 mmap shared not fixed
9692 mmap shared fixed at somewhere currently unmapped
9693 mmap shared fixed at somewhere already mapped
9694 For private mappings, we should verify that changes cannot be read()
9695 back from the file, nor mmap's back from the file at a different
9696 address. (There have been systems where private was not correctly
9697 implemented like the infamous i386 svr4.0, and systems where the
9698 VM page cache was not coherent with the file system buffer cache
9699 like early versions of FreeBSD and possibly contemporary NetBSD.)
9700 For shared mappings, we should conversely verify that changes get
9701 propagated back to all the places they're supposed to be.
9703 Grep wants private fixed already mapped.
9704 The main things grep needs to know about mmap are:
9705 * does it exist and is it safe to write into the mmap'd area
9706 * how to use it (BSD variants) */
9709 #include <sys/mman.h>
9711 #if !STDC_HEADERS && !HAVE_STDLIB_H
9715 /* This mess was copied from the GNU getpagesize.h. */
9716 #if !HAVE_GETPAGESIZE
9717 /* Assume that all systems that can run configure have sys/param.h. */
9718 # if !HAVE_SYS_PARAM_H
9719 # define HAVE_SYS_PARAM_H 1
9722 # ifdef _SC_PAGESIZE
9723 # define getpagesize() sysconf(_SC_PAGESIZE)
9724 # else /* no _SC_PAGESIZE */
9725 # if HAVE_SYS_PARAM_H
9726 # include <sys/param.h>
9727 # ifdef EXEC_PAGESIZE
9728 # define getpagesize() EXEC_PAGESIZE
9729 # else /* no EXEC_PAGESIZE */
9731 # define getpagesize() NBPG * CLSIZE
9734 # endif /* no CLSIZE */
9735 # else /* no NBPG */
9737 # define getpagesize() NBPC
9738 # else /* no NBPC */
9740 # define getpagesize() PAGESIZE
9741 # endif /* PAGESIZE */
9742 # endif /* no NBPC */
9743 # endif /* no NBPG */
9744 # endif /* no EXEC_PAGESIZE */
9745 # else /* no HAVE_SYS_PARAM_H */
9746 # define getpagesize() 8192 /* punt totally */
9747 # endif /* no HAVE_SYS_PARAM_H */
9748 # endif /* no _SC_PAGESIZE */
9750 #endif /* no HAVE_GETPAGESIZE */
9755 char *data, *data2, *data3;
9759 pagesize = getpagesize ();
9761 /* First, make a file with some known garbage in it. */
9762 data = (char *) malloc (pagesize);
9765 for (i = 0; i < pagesize; ++i)
9766 *(data + i) = rand ();
9768 fd = creat ("conftest.mmap", 0600);
9771 if (write (fd, data, pagesize) != pagesize)
9775 /* Next, try to mmap the file at a fixed address which already has
9776 something else allocated at it. If we can, also make sure that
9777 we see the same garbage. */
9778 fd = open ("conftest.mmap", O_RDWR);
9781 data2 = (char *) malloc (2 * pagesize);
9784 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9785 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9786 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9788 for (i = 0; i < pagesize; ++i)
9789 if (*(data + i) != *(data2 + i))
9792 /* Finally, make sure that changes to the mapped area do not
9793 percolate back to the file as seen by read(). (This is a bug on
9794 some variants of i386 svr4.0.) */
9795 for (i = 0; i < pagesize; ++i)
9796 *(data2 + i) = *(data2 + i) + 1;
9797 data3 = (char *) malloc (pagesize);
9800 if (read (fd, data3, pagesize) != pagesize)
9802 for (i = 0; i < pagesize; ++i)
9803 if (*(data + i) != *(data3 + i))
9809 rm -f conftest$ac_exeext
9810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9811 (eval $ac_link) 2>&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_func_mmap_fixed_mapped=yes
9822 echo "$as_me: program exited with status $ac_status" >&5
9823 echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9827 ac_cv_func_mmap_fixed_mapped=no
9829 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9832 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9833 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9834 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9836 cat >>confdefs.h <<\_ACEOF
9843 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9844 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9845 if test "${ac_cv_type_signal+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 cat >conftest.$ac_ext <<_ACEOF
9849 #line $LINENO "configure"
9852 cat confdefs.h >>conftest.$ac_ext
9853 cat >>conftest.$ac_ext <<_ACEOF
9854 /* end confdefs.h. */
9855 #include <sys/types.h>
9861 extern "C" void (*signal (int, void (*)(int)))(int);
9863 void (*signal ()) ();
9874 rm -f conftest.$ac_objext
9875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9876 (eval $ac_compile) 2>&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -s conftest.$ac_objext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 ac_cv_type_signal=void
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9891 ac_cv_type_signal=int
9893 rm -f conftest.$ac_objext conftest.$ac_ext
9895 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9896 echo "${ECHO_T}$ac_cv_type_signal" >&6
9898 cat >>confdefs.h <<_ACEOF
9899 #define RETSIGTYPE $ac_cv_type_signal
9903 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9904 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
9905 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 rm -f conftest.sym conftest.file
9910 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9911 if test "$cross_compiling" = yes; then
9912 ac_cv_func_lstat_dereferences_slashed_symlink=no
9914 cat >conftest.$ac_ext <<_ACEOF
9915 #line $LINENO "configure"
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9921 $ac_includes_default
9926 /* Linux will dereference the symlink and fail.
9927 That is better in the sense that it means we will not
9928 have to compile and use the lstat wrapper. */
9929 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
9934 rm -f conftest$ac_exeext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936 (eval $ac_link) 2>&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9947 echo "$as_me: program exited with status $ac_status" >&5
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9952 ac_cv_func_lstat_dereferences_slashed_symlink=no
9954 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9957 # If the `ln -s' command failed, then we probably don't even
9958 # have an lstat function.
9959 ac_cv_func_lstat_dereferences_slashed_symlink=no
9961 rm -f conftest.sym conftest.file
9964 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9965 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
9967 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9969 cat >>confdefs.h <<_ACEOF
9970 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9974 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9975 LIBOBJS="$LIBOBJS lstat.$ac_objext"
9978 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
9979 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
9980 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 if test "$cross_compiling" = yes; then
9984 ac_cv_func_stat_empty_string_bug=yes
9986 cat >conftest.$ac_ext <<_ACEOF
9987 #line $LINENO "configure"
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 $ac_includes_default
9998 exit (stat ("", &sbuf) ? 1 : 0);
10003 rm -f conftest$ac_exeext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005 (eval $ac_link) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_func_stat_empty_string_bug=yes
10016 echo "$as_me: program exited with status $ac_status" >&5
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10020 ( exit $ac_status )
10021 ac_cv_func_stat_empty_string_bug=no
10023 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10026 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10027 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
10028 if test $ac_cv_func_stat_empty_string_bug = yes; then
10029 LIBOBJS="$LIBOBJS stat.$ac_objext"
10031 cat >>confdefs.h <<_ACEOF
10032 #define HAVE_STAT_EMPTY_STRING_BUG 1
10037 echo "$as_me:$LINENO: checking for working strtod" >&5
10038 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
10039 if test "${ac_cv_func_strtod+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 if test "$cross_compiling" = yes; then
10043 ac_cv_func_strtod=no
10045 cat >conftest.$ac_ext <<_ACEOF
10046 #line $LINENO "configure"
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10058 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10059 char *string = " +69";
10062 value = strtod (string, &term);
10063 if (value != 69 || term != (string + 4))
10068 /* Under Solaris 2.4, strtod returns the wrong value for the
10069 terminating character under some conditions. */
10070 char *string = "NaN";
10072 strtod (string, &term);
10073 if (term != string && *(term - 1) == 0)
10080 rm -f conftest$ac_exeext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082 (eval $ac_link) 2>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_cv_func_strtod=yes
10093 echo "$as_me: program exited with status $ac_status" >&5
10094 echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10097 ( exit $ac_status )
10098 ac_cv_func_strtod=no
10100 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10103 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10104 echo "${ECHO_T}$ac_cv_func_strtod" >&6
10105 if test $ac_cv_func_strtod = no; then
10106 LIBOBJS="$LIBOBJS strtod.$ac_objext"
10107 echo "$as_me:$LINENO: checking for pow" >&5
10108 echo $ECHO_N "checking for pow... $ECHO_C" >&6
10109 if test "${ac_cv_func_pow+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 cat >conftest.$ac_ext <<_ACEOF
10113 #line $LINENO "configure"
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 /* System header to define __stub macros and hopefully few prototypes,
10120 which can conflict with char pow (); below. */
10121 #include <assert.h>
10122 /* Override any gcc2 internal prototype to avoid an error. */
10127 /* We use char because int might match the return type of a gcc2
10128 builtin and then its argument prototype would still apply. */
10130 /* The GNU C library defines this for functions which it implements
10131 to always fail with ENOSYS. Some functions are actually named
10132 something starting with __ and the normal name is an alias. */
10133 #if defined (__stub_pow) || defined (__stub___pow)
10136 char (*f) () = pow;
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152 (eval $ac_link) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -s conftest$ac_exeext'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10171 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10172 echo "${ECHO_T}$ac_cv_func_pow" >&6
10174 if test $ac_cv_func_pow = no; then
10175 echo "$as_me:$LINENO: checking for pow in -lm" >&5
10176 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
10177 if test "${ac_cv_lib_m_pow+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 ac_check_lib_save_LIBS=$LIBS
10182 cat >conftest.$ac_ext <<_ACEOF
10183 #line $LINENO "configure"
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10190 /* Override any gcc2 internal prototype to avoid an error. */
10194 /* We use char because int might match the return type of a gcc2
10195 builtin and then its argument prototype would still apply. */
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10207 (eval $ac_link) 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try='test -s conftest$ac_exeext'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; }; then
10217 ac_cv_lib_m_pow=yes
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10225 LIBS=$ac_check_lib_save_LIBS
10227 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10228 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
10229 if test $ac_cv_lib_m_pow = yes; then
10232 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10233 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10241 for ac_func in vprintf
10243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10244 echo "$as_me:$LINENO: checking for $ac_func" >&5
10245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10246 if eval "test \"\${$as_ac_var+set}\" = set"; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 cat >conftest.$ac_ext <<_ACEOF
10250 #line $LINENO "configure"
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256 /* System header to define __stub macros and hopefully few prototypes,
10257 which can conflict with char $ac_func (); below. */
10258 #include <assert.h>
10259 /* Override any gcc2 internal prototype to avoid an error. */
10264 /* We use char because int might match the return type of a gcc2
10265 builtin and then its argument prototype would still apply. */
10267 /* The GNU C library defines this for functions which it implements
10268 to always fail with ENOSYS. Some functions are actually named
10269 something starting with __ and the normal name is an alias. */
10270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10273 char (*f) () = $ac_func;
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -s conftest$ac_exeext'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10299 eval "$as_ac_var=yes"
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 eval "$as_ac_var=no"
10306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10310 if test `eval echo '${'$as_ac_var'}'` = yes; then
10311 cat >>confdefs.h <<_ACEOF
10312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10315 echo "$as_me:$LINENO: checking for _doprnt" >&5
10316 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10317 if test "${ac_cv_func__doprnt+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 cat >conftest.$ac_ext <<_ACEOF
10321 #line $LINENO "configure"
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 /* System header to define __stub macros and hopefully few prototypes,
10328 which can conflict with char _doprnt (); below. */
10329 #include <assert.h>
10330 /* Override any gcc2 internal prototype to avoid an error. */
10335 /* We use char because int might match the return type of a gcc2
10336 builtin and then its argument prototype would still apply. */
10338 /* The GNU C library defines this for functions which it implements
10339 to always fail with ENOSYS. Some functions are actually named
10340 something starting with __ and the normal name is an alias. */
10341 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10344 char (*f) () = _doprnt;
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10360 (eval $ac_link) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -s conftest$ac_exeext'
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; }; then
10370 ac_cv_func__doprnt=yes
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10375 ac_cv_func__doprnt=no
10377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10379 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10380 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10381 if test $ac_cv_func__doprnt = yes; then
10383 cat >>confdefs.h <<\_ACEOF
10384 #define HAVE_DOPRNT 1
10406 for ac_func in bzero floor ftruncate memmove memset munmap re_comp regcomp sqrt strchr strdup strrchr strtol
10408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10409 echo "$as_me:$LINENO: checking for $ac_func" >&5
10410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10411 if eval "test \"\${$as_ac_var+set}\" = set"; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 cat >conftest.$ac_ext <<_ACEOF
10415 #line $LINENO "configure"
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421 /* System header to define __stub macros and hopefully few prototypes,
10422 which can conflict with char $ac_func (); below. */
10423 #include <assert.h>
10424 /* Override any gcc2 internal prototype to avoid an error. */
10429 /* We use char because int might match the return type of a gcc2
10430 builtin and then its argument prototype would still apply. */
10432 /* The GNU C library defines this for functions which it implements
10433 to always fail with ENOSYS. Some functions are actually named
10434 something starting with __ and the normal name is an alias. */
10435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10438 char (*f) () = $ac_func;
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454 (eval $ac_link) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } &&
10458 { ac_try='test -s conftest$ac_exeext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 eval "$as_ac_var=yes"
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 eval "$as_ac_var=no"
10471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10475 if test `eval echo '${'$as_ac_var'}'` = yes; then
10476 cat >>confdefs.h <<_ACEOF
10477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10486 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10488 ac_define_dir=`eval echo $"$sysconfdir"`
10489 ac_define_dir=`eval echo $ac_define_dir`
10491 cat >>confdefs.h <<_ACEOF
10492 #define FGIS_CONFIG "$ac_define_dir"
10499 FGIS_LIBDIR=$"$libdir"
10500 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10501 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10502 FGIS_LIBDIR=`eval echo $FGIS_LIBDIR`
10503 FGIS_LIBDIR=`eval echo $FGIS_LIBDIR`
10510 # Ok, lets find the tcl source trees so we can use the headers
10511 # Warning: transition of version 9 to 10 will break this algorithm
10512 # because 10 sorts before 9. We also look for just tcl. We have to
10513 # be careful that we don't match stuff like tclX by accident.
10514 # the alternative search directory is involked by --with-tclinclude
10517 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
10518 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
10520 # Check whether --with-tclinclude or --without-tclinclude was given.
10521 if test "${with_tclinclude+set}" = set; then
10522 withval="$with_tclinclude"
10523 with_tclinclude=${withval}
10525 if test "${ac_cv_c_tclh+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 # first check to see if --with-tclinclude was specified
10530 if test x"${with_tclinclude}" != x ; then
10531 if test -f ${with_tclinclude}/tclInt.h ; then
10532 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
10533 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
10534 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
10536 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
10537 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
10538 { (exit 1); exit 1; }; }
10542 # next check if it came with Tcl configuration file
10543 if test x"${ac_cv_c_tclconfig}" != x ; then
10544 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
10545 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/../generic; pwd)`
10549 # next check in private source directory
10551 # since ls returns lowest version numbers first, reverse its output
10552 if test x"${ac_cv_c_tclh}" = x ; then
10555 `ls -dr ${srcdir}/../tcl[9].[0-9].[0-9] ${srcdir}/../tcl[9].[0-9] 2>/dev/null` \
10556 `ls -dr ${srcdir}/../tcl[8].[2-9].[0-9] ${srcdir}/../tcl[8].[2-9] 2>/dev/null` \
10557 ${srcdir}/../../tcl \
10558 `ls -dr ${srcdir}/../../tcl[9].[0-9].[0-9] ${srcdir}/../../tcl[9].[0-9] 2>/dev/null` \
10559 `ls -dr ${srcdir}/../../tcl[8].[2-9].[0-9] ${srcdir}/../../tcl[8].[2-9] 2>/dev/null` \
10560 ${srcdir}/../../../tcl \
10561 `ls -dr ${srcdir}/../../../tcl[9].[0-9].[0-9] ${srcdir}/../../../tcl[9].[0-9] 2>/dev/null ` \
10562 `ls -dr ${srcdir}/../../../tcl[8].[2-9].[0-9] ${srcdir}/../../../tcl[8].[2-9] 2>/dev/null ` ; do
10563 if test -f $i/generic/tclInt.h ; then
10564 ac_cv_c_tclh=`(cd $i/generic; pwd)`
10570 # check Debian-specific locations
10571 if test x"${ac_cv_c_tclh}" = x ; then
10573 `ls -dr /usr/include/tcl[9].[0-9].[0-9]/tcl-private /usr/include/tcl[9].[0-9]/tcl-private 2>/dev/null` \
10574 `ls -dr /usr/include/tcl[8].[2-9].[0-9]/tcl-private /usr/include/tcl[8].[2-9]/tcl-private 2>/dev/null`; do
10575 if test -f $i/generic/tclInt.h ; then
10576 ac_cv_c_tclh=`(cd $i/generic; pwd)`
10582 # finally check in a few common install locations
10584 # since ls returns lowest version numbers first, reverse its output
10585 if test x"${ac_cv_c_tclh}" = x ; then
10587 `ls -dr /usr/lib/tcl[9].[0-9].[0-9]/tcl-private /usr/lib/tcl[9].[0-9]/tcl-private 2>/dev/null` \
10588 `ls -dr /usr/lib/tcl[8].[2-9].[0-9]/tcl-private /usr/lib/tcl[8].[2-9]/tcl-private 2>/dev/null` \
10589 `ls -dr /usr/local/src/tcl[9].[0-9].[0-9] /usr/local/src/tcl[9].[0-9] 2>/dev/null` \
10590 `ls -dr /usr/local/src/tcl[8].[2-9].[0-9] /usr/local/src/tcl[8].[2-9] 2>/dev/null` \
10591 `ls -dr /usr/local/lib/tcl[9].[0-9].[0-9] /usr/local/lib/tcl[9].[0-9] 2>/dev/null` \
10592 `ls -dr /usr/local/lib/tcl[8].[2-9].[0-9] /usr/local/lib/tcl[8].[2-9] 2>/dev/null` \
10593 /usr/local/src/tcl \
10594 /usr/local/lib/tcl \
10595 ${prefix}/include ; do
10596 if test -f $i/generic/tclInt.h ; then
10597 ac_cv_c_tclh=`(cd $i/generic; pwd)`
10602 # see if one is installed
10603 if test x"${ac_cv_c_tclh}" = x ; then
10604 if test "${ac_cv_header_tclInt_h+set}" = set; then
10605 echo "$as_me:$LINENO: checking for tclInt.h" >&5
10606 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
10607 if test "${ac_cv_header_tclInt_h+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
10611 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
10613 # Is the header compilable?
10614 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
10615 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
10616 cat >conftest.$ac_ext <<_ACEOF
10617 #line $LINENO "configure"
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10623 $ac_includes_default
10624 #include <tclInt.h>
10626 rm -f conftest.$ac_objext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628 (eval $ac_compile) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try='test -s conftest.$ac_objext'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 ac_header_compiler=yes
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10643 ac_header_compiler=no
10645 rm -f conftest.$ac_objext conftest.$ac_ext
10646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10647 echo "${ECHO_T}$ac_header_compiler" >&6
10649 # Is the header present?
10650 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
10651 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
10652 cat >conftest.$ac_ext <<_ACEOF
10653 #line $LINENO "configure"
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 #include <tclInt.h>
10661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10664 grep -v '^ *+' conftest.er1 >conftest.err
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } >/dev/null; then
10669 if test -s conftest.err; then
10670 ac_cpp_err=$ac_c_preproc_warn_flag
10677 if test -z "$ac_cpp_err"; then
10678 ac_header_preproc=yes
10680 echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10683 ac_header_preproc=no
10685 rm -f conftest.err conftest.$ac_ext
10686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10687 echo "${ECHO_T}$ac_header_preproc" >&6
10689 # So? What about this header?
10690 case $ac_header_compiler:$ac_header_preproc in
10692 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
10693 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10694 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
10695 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
10698 ## ------------------------------------ ##
10699 ## Report this to bug-autoconf@gnu.org. ##
10700 ## ------------------------------------ ##
10703 sed "s/^/$as_me: WARNING: /" >&2
10706 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
10707 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
10708 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
10709 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
10710 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
10711 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
10714 ## ------------------------------------ ##
10715 ## Report this to bug-autoconf@gnu.org. ##
10716 ## ------------------------------------ ##
10719 sed "s/^/$as_me: WARNING: /" >&2
10722 echo "$as_me:$LINENO: checking for tclInt.h" >&5
10723 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
10724 if test "${ac_cv_header_tclInt_h+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 ac_cv_header_tclInt_h=$ac_header_preproc
10729 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
10730 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
10733 if test $ac_cv_header_tclInt_h = yes; then
10734 ac_cv_c_tclh=installed
10744 if test x"${ac_cv_c_tclh}" = x ; then
10745 TCLHDIR="# no Tcl private headers found"
10746 TCLHDIRDASHI="# no Tcl private headers found"
10747 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
10748 echo "$as_me: error: Can't find Tcl private headers" >&2;}
10749 { (exit 1); exit 1; }; }
10751 if test x"${ac_cv_c_tclh}" != x ; then
10753 if test x"${ac_cv_c_tclh}" = x"installed" ; then
10754 echo "$as_me:$LINENO: result: is installed" >&5
10755 echo "${ECHO_T}is installed" >&6
10760 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
10761 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
10762 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
10763 TCLHDIR="${ac_cv_c_tclh}"
10764 TCLHDIRDASHI="-I${ac_cv_c_tclh}"
10765 TCL_LIBRARY=`echo $TCLHDIR | sed -e 's/generic//'`library
10773 if test x"$no_tcl" = x"true" ; then
10774 echo " ERROR: Can't find Tcl headers or library."
10775 echo " See README for information on how to obtain Tcl."
10776 echo " If Tcl is installed, see INSTALL on how to tell"
10777 echo " configure where Tcl is installed."
10782 # Ok, lets find the tcl configuration
10783 # First, look for one uninstalled.
10784 # the alternative search directory is invoked by --with-tcl
10787 if test x"${no_tcl}" = x ; then
10788 # we reset no_tcl in case something fails here
10791 # Check whether --with-tcl or --without-tcl was given.
10792 if test "${with_tcl+set}" = set; then
10793 withval="$with_tcl"
10794 with_tclconfig=${withval}
10796 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
10797 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
10798 if test "${ac_cv_c_tclconfig+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 # First check to see if --with-tcl was specified.
10804 if test x"${with_tclconfig}" != x ; then
10805 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10806 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10808 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
10809 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
10810 { (exit 1); exit 1; }; }
10814 # then check for a private Tcl installation
10815 if test x"${ac_cv_c_tclconfig}" = x ; then
10818 `ls -dr ../tcl[9].[0-9].[0-9] ../tcl[9].[0-9] 2>/dev/null` \
10819 `ls -dr ../tcl[8].[2-9].[0-9] ../tcl[8].[2-9] 2>/dev/null` \
10821 `ls -dr ../../tcl[9].[0-9].[0-9] ../../tcl[9].[0-9] 2>/dev/null` \
10822 `ls -dr ../../tcl[8].[2-9].[0-9] ../../tcl[8].[2-9] 2>/dev/null` \
10824 `ls -dr ../../../tcl[9].[0-9].[0-9] ../../../tcl[9].[0-9] 2>/dev/null` \
10825 `ls -dr ../../../tcl[8].[2-9].[0-9] ../../../tcl[8].[2-9] 2>/dev/null` ; do
10826 if test -f "$i/unix/tclConfig.sh" ; then
10827 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10832 # check in a few common install locations
10833 if test x"${ac_cv_c_tclconfig}" = x ; then
10834 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10835 if test -f "$i/tclConfig.sh" ; then
10836 ac_cv_c_tclconfig=`(cd $i; pwd)`
10842 # check Debian-specific locations
10843 if test x"${ac_cv_c_tclconfig}" = x ; then
10845 `ls -dr /usr/lib/tcl[9].[0-9].[0-9] /usr/lib/tcl[9].[0-9] 2>/dev/null` \
10846 `ls -dr /usr/lib/tcl[8].[2-9].[0-9] /usr/lib/tcl[8].[2-9] 2>/dev/null` ; do
10847 if test -f "$i/tclConfig.sh" ; then
10848 ac_cv_c_tclconfig=`(cd $i; pwd)`
10854 # check in a few other private locations
10855 if test x"${ac_cv_c_tclconfig}" = x ; then
10858 `ls -dr ${srcdir}/../tcl[9].[0-9].[0-9] ${srcdir}/../tcl[9].[0-9] 2>/dev/null` \
10859 `ls -dr ${srcdir}/../tcl[8].[2-9].[0-9] ${srcdir}/../tcl[8].[2-9] 2>/dev/null` ; do
10860 if test -f "$i/unix/tclConfig.sh" ; then
10861 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10869 if test x"${ac_cv_c_tclconfig}" = x ; then
10870 TCLCONFIG="# no Tcl configs found"
10871 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
10872 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10875 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
10876 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
10877 echo "${ECHO_T}found $TCLCONFIG" >&6
10894 # Tcl defines TCL_SHLIB_SUFFIX but TCL_SHARED_LIB_SUFFIX then looks for it
10895 # as just SHLIB_SUFFIX. How bizarre.
10896 SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
10901 # if Tcl's build directory has been removed, TCL_LIB_SPEC should
10902 # be used instead of TCL_BUILD_LIB_SPEC
10904 # eval used to expand out TCL_DBGX
10905 eval "LIBS=\"$TCL_BUILD_LIB_SPEC $TCL_LIBS\""
10906 echo "$as_me:$LINENO: checking Tcl build library" >&5
10907 echo $ECHO_N "checking Tcl build library... $ECHO_C" >&6
10908 echo "$as_me:$LINENO: result: $LIBS" >&5
10909 echo "${ECHO_T}$LIBS" >&6
10911 echo "$as_me:$LINENO: checking for Tcl_CreateCommand" >&5
10912 echo $ECHO_N "checking for Tcl_CreateCommand... $ECHO_C" >&6
10913 if test "${ac_cv_func_Tcl_CreateCommand+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 cat >conftest.$ac_ext <<_ACEOF
10917 #line $LINENO "configure"
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10923 /* System header to define __stub macros and hopefully few prototypes,
10924 which can conflict with char Tcl_CreateCommand (); below. */
10925 #include <assert.h>
10926 /* Override any gcc2 internal prototype to avoid an error. */
10931 /* We use char because int might match the return type of a gcc2
10932 builtin and then its argument prototype would still apply. */
10933 char Tcl_CreateCommand ();
10934 /* The GNU C library defines this for functions which it implements
10935 to always fail with ENOSYS. Some functions are actually named
10936 something starting with __ and the normal name is an alias. */
10937 #if defined (__stub_Tcl_CreateCommand) || defined (__stub___Tcl_CreateCommand)
10940 char (*f) () = Tcl_CreateCommand;
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10956 (eval $ac_link) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try='test -s conftest$ac_exeext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 ac_cv_func_Tcl_CreateCommand=yes
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_cv_func_Tcl_CreateCommand=no
10973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10975 echo "$as_me:$LINENO: result: $ac_cv_func_Tcl_CreateCommand" >&5
10976 echo "${ECHO_T}$ac_cv_func_Tcl_CreateCommand" >&6
10977 if test $ac_cv_func_Tcl_CreateCommand = yes; then
10979 echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
10980 echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
10981 echo "$as_me:$LINENO: result: yes" >&5
10982 echo "${ECHO_T}yes" >&6
10986 TCL_BUILD_LIB_SPEC=$TCL_LIB_SPEC
10987 # Can't pull the following CHECKING call out since it will be
10988 # broken up by the CHECK_FUNC just above.
10989 echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
10990 echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
10991 echo "$as_me:$LINENO: result: no" >&5
10992 echo "${ECHO_T}no" >&6
11004 TCL_INC_DIR=$TCL_INC_DIR
11006 TCL_PACKAGE_PATH=$TCL_PACKAGE_PATH
11011 # Ok, lets find the tk source trees so we can use the headers
11012 # If the directory (presumably symlink) named "tk" exists, use that one
11013 # in preference to any others. Same logic is used when choosing library
11014 # and again with Tcl. The search order is the best place to look first, then in
11015 # decreasing significance. The loop breaks if the trigger file is found.
11016 # Note the gross little conversion here of srcdir by cd'ing to the found
11017 # directory. This converts the path from a relative to an absolute, so
11018 # recursive cache variables for the path will work right. We check all
11019 # the possible paths in one loop rather than many seperate loops to speed
11021 # the alternative search directory is involked by --with-tkinclude
11024 echo "$as_me:$LINENO: checking for Tk private headers" >&5
11025 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
11027 # Check whether --with-tkinclude or --without-tkinclude was given.
11028 if test "${with_tkinclude+set}" = set; then
11029 withval="$with_tkinclude"
11030 with_tkinclude=${withval}
11032 if test "${ac_cv_c_tkh+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 # first check to see if --with-tkinclude was specified
11037 if test x"${with_tkinclude}" != x ; then
11038 if test -f ${with_tkinclude}/tk.h ; then
11039 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
11040 elif test -f ${with_tkinclude}/generic/tk.h ; then
11041 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
11043 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
11044 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
11045 { (exit 1); exit 1; }; }
11049 # next check if it came with Tk configuration file
11050 if test x"${ac_cv_c_tkconfig}" != x ; then
11051 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
11052 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/../generic; pwd)`
11056 # next check in private source directory
11058 # since ls returns lowest version numbers first, reverse its output
11059 if test x"${ac_cv_c_tkh}" = x ; then
11062 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
11063 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
11064 ${srcdir}/../../tk \
11065 `ls -dr ${srcdir}/../../tk[4-9].[0-9].[0-9] ${srcdir}/../../tk[4-9].[0-9] 2>/dev/null` \
11066 `ls -dr ${srcdir}/../../tk[4-9].[0-9].[0-9] ${srcdir}/../../tk[4-9].[0-9] 2>/dev/null` \
11067 ${srcdir}/../../../tk \
11068 `ls -dr ${srcdir}/../../../tk[4-9].[0-9].[0-9] ${srcdir}/../../../tk[4-9].[0-9] 2>/dev/null ` \
11069 `ls -dr ${srcdir}/../../../tk[4-9].[0-9].[0-9] ${srcdir}/../../../tk[4-9].[0-9] 2>/dev/null ` ; do
11070 if test -f $i/generic/tk.h ; then
11071 ac_cv_c_tkh=`(cd $i/generic; pwd)`
11077 # check Debian-specific locations
11078 if test x"${ac_cv_c_tkh}" = x ; then
11080 `ls -dr /usr/include/tcl[9].[0-9].[0-9]/tk-private /usr/include/tcl[9].[0-9]/tk-private 2>/dev/null` \
11081 `ls -dr /usr/include/tcl[8].[2-9].[0-9]/tk-private /usr/include/tcl[8].[2-9]/tk-private 2>/dev/null` ; do
11082 if test -f $i/generic/tk.h ; then
11083 ac_cv_c_tkh=`(cd $i/generic; pwd)`
11089 # finally check in a few common install locations
11091 # since ls returns lowest version numbers first, reverse its output
11092 if test x"${ac_cv_c_tkh}" = x ; then
11094 `ls -dr /usr/local/src/tk[4-9].[0-9].[0-9] /usr/local/src/tk[4-9].[0-9] 2>/dev/null` \
11095 `ls -dr /usr/local/src/tk[4-9].[0-9].[0-9] /usr/local/src/tk[4-9].[0-9] 2>/dev/null` \
11096 `ls -dr /usr/local/lib/tk[4-9].[0-9].[0-9] /usr/local/lib/tk[4-9].[0-9] 2>/dev/null` \
11097 `ls -dr /usr/local/lib/tk[4-9].[0-9].[0-9] /usr/local/lib/tk[4-9].[0-9] 2>/dev/null` \
11098 /usr/local/src/tk \
11099 /usr/local/lib/tk \
11100 ${prefix}/include ; do
11101 if test -f $i/generic/tk.h ; then
11102 ac_cv_c_tkh=`(cd $i/generic; pwd)`
11107 # see if one is installed
11108 if test x"${ac_cv_c_tkh}" = x ; then
11109 if test "${ac_cv_header_tk_h+set}" = set; then
11110 echo "$as_me:$LINENO: checking for tk.h" >&5
11111 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
11112 if test "${ac_cv_header_tk_h+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
11116 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
11118 # Is the header compilable?
11119 echo "$as_me:$LINENO: checking tk.h usability" >&5
11120 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
11121 cat >conftest.$ac_ext <<_ACEOF
11122 #line $LINENO "configure"
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h. */
11128 $ac_includes_default
11131 rm -f conftest.$ac_objext
11132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11133 (eval $ac_compile) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try='test -s conftest.$ac_objext'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_header_compiler=yes
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 ac_header_compiler=no
11150 rm -f conftest.$ac_objext conftest.$ac_ext
11151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152 echo "${ECHO_T}$ac_header_compiler" >&6
11154 # Is the header present?
11155 echo "$as_me:$LINENO: checking tk.h presence" >&5
11156 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
11157 cat >conftest.$ac_ext <<_ACEOF
11158 #line $LINENO "configure"
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11169 grep -v '^ *+' conftest.er1 >conftest.err
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } >/dev/null; then
11174 if test -s conftest.err; then
11175 ac_cpp_err=$ac_c_preproc_warn_flag
11182 if test -z "$ac_cpp_err"; then
11183 ac_header_preproc=yes
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11188 ac_header_preproc=no
11190 rm -f conftest.err conftest.$ac_ext
11191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11192 echo "${ECHO_T}$ac_header_preproc" >&6
11194 # So? What about this header?
11195 case $ac_header_compiler:$ac_header_preproc in
11197 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
11198 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11199 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
11200 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
11203 ## ------------------------------------ ##
11204 ## Report this to bug-autoconf@gnu.org. ##
11205 ## ------------------------------------ ##
11208 sed "s/^/$as_me: WARNING: /" >&2
11211 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
11212 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
11214 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
11216 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
11219 ## ------------------------------------ ##
11220 ## Report this to bug-autoconf@gnu.org. ##
11221 ## ------------------------------------ ##
11224 sed "s/^/$as_me: WARNING: /" >&2
11227 echo "$as_me:$LINENO: checking for tk.h" >&5
11228 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
11229 if test "${ac_cv_header_tk_h+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 ac_cv_header_tk_h=$ac_header_preproc
11234 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
11235 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
11238 if test $ac_cv_header_tk_h = yes; then
11239 ac_cv_c_tkh=installed
11249 if test x"${ac_cv_c_tkh}" != x ; then
11251 if test x"${ac_cv_c_tkh}" = x"installed" ; then
11252 echo "$as_me:$LINENO: result: is installed" >&5
11253 echo "${ECHO_T}is installed" >&6
11256 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
11257 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
11258 # this hack is cause the TKHDIRDASHI won't print if there is a "-I" in it.
11259 TKHDIRDASHI="-I${ac_cv_c_tkh}"
11262 TKHDIRDASHI="# no Tk directory found"
11263 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
11264 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
11272 # Ok, lets find the tk configuration
11273 # First, look for one uninstalled.
11274 # the alternative search directory is invoked by --with-tk
11277 if test x"${no_tk}" = x ; then
11278 # we reset no_tk in case something fails here
11281 # Check whether --with-tk or --without-tk was given.
11282 if test "${with_tk+set}" = set; then
11284 with_tkconfig=${withval}
11286 echo "$as_me:$LINENO: checking for Tk configuration" >&5
11287 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
11288 if test "${ac_cv_c_tkconfig+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 # First check to see if --with-tk was specified.
11294 if test x"${with_tkconfig}" != x ; then
11295 if test -f "${with_tkconfig}/tkConfig.sh" ; then
11296 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
11298 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
11299 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
11300 { (exit 1); exit 1; }; }
11304 # then check for a private Tk library
11305 if test x"${ac_cv_c_tkconfig}" = x ; then
11308 `ls -dr ../tk[4-9].[0-9].[0-9] ../tk[4-9].[0-9] 2>/dev/null` \
11309 `ls -dr ../tk[4-9].[0-9].[0-9] ../tk[4-9].[0-9] 2>/dev/null` \
11311 `ls -dr ../../tk[4-9].[0-9].[0-9] ../../tk[4-9].[0-9] 2>/dev/null` \
11312 `ls -dr ../../tk[4-9].[0-9].[0-9] ../../tk[4-9].[0-9] 2>/dev/null` \
11314 `ls -dr ../../../tk[4-9].[0-9].[0-9] ../../../tk[4-9].[0-9] 2>/dev/null` \
11315 `ls -dr ../../../tk[4-9].[0-9].[0-9] ../../../tk[4-9].[0-9] 2>/dev/null` ; do
11316 if test -f "$i/unix/tkConfig.sh" ; then
11317 ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
11322 # check in a few common install locations
11323 if test x"${ac_cv_c_tkconfig}" = x ; then
11324 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
11325 if test -f "$i/tkConfig.sh" ; then
11326 ac_cv_c_tkconfig=`(cd $i; pwd)`
11331 # check Debian-specific locations
11332 if test x"${ac_cv_c_tkconfig}" = x ; then
11334 `ls -dr /usr/lib/tk[4-9].[0-9].[0-9] /usr/lib/tk[4-9].[0-9] 2>/dev/null` \
11335 `ls -dr /usr/lib/tk[4-9].[0-9].[0-9] /usr/lib/tk[4-9].[0-9] 2>/dev/null` ; do
11336 if test -f "$i/tkConfig.sh" ; then
11337 ac_cv_c_tkconfig=`(cd $i; pwd)`
11342 # check in a few other private locations
11343 if test x"${ac_cv_c_tkconfig}" = x ; then
11346 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
11347 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` ; do
11348 if test -f "$i/unix/tkConfig.sh" ; then
11349 ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
11357 if test x"${ac_cv_c_tkconfig}" = x ; then
11358 TKCONFIG="# no Tk configs found"
11359 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
11360 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
11363 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
11364 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
11365 echo "${ECHO_T}found $TKCONFIG" >&6
11371 if test -f "$TKCONFIG" ; then
11385 # if Tk's build directory has been removed, TK_LIB_SPEC should
11386 # be used instead of TK_BUILD_LIB_SPEC
11388 # eval used to expand out TK_DBGX
11389 eval "LIBS=\"$TK_BUILD_LIB_SPEC $TCL_BUILD_LIB_SPEC $TK_LIBS\""
11390 echo "$as_me:$LINENO: checking for Tk_Init" >&5
11391 echo $ECHO_N "checking for Tk_Init... $ECHO_C" >&6
11392 if test "${ac_cv_func_Tk_Init+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 cat >conftest.$ac_ext <<_ACEOF
11396 #line $LINENO "configure"
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 /* System header to define __stub macros and hopefully few prototypes,
11403 which can conflict with char Tk_Init (); below. */
11404 #include <assert.h>
11405 /* Override any gcc2 internal prototype to avoid an error. */
11410 /* We use char because int might match the return type of a gcc2
11411 builtin and then its argument prototype would still apply. */
11413 /* The GNU C library defines this for functions which it implements
11414 to always fail with ENOSYS. Some functions are actually named
11415 something starting with __ and the normal name is an alias. */
11416 #if defined (__stub_Tk_Init) || defined (__stub___Tk_Init)
11419 char (*f) () = Tk_Init;
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11435 (eval $ac_link) 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -s conftest$ac_exeext'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 ac_cv_func_Tk_Init=yes
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11450 ac_cv_func_Tk_Init=no
11452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11454 echo "$as_me:$LINENO: result: $ac_cv_func_Tk_Init" >&5
11455 echo "${ECHO_T}$ac_cv_func_Tk_Init" >&6
11456 if test $ac_cv_func_Tk_Init = yes; then
11458 echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
11459 echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
11460 echo "$as_me:$LINENO: result: yes" >&5
11461 echo "${ECHO_T}yes" >&6
11465 TK_BUILD_LIB_SPEC=$TK_LIB_SPEC
11466 # Can't pull the following CHECKING call out since it will be
11467 # broken up by the CHECK_FUNC just above.
11468 echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
11469 echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
11470 echo "$as_me:$LINENO: result: no" >&5
11471 echo "${ECHO_T}no" >&6
11480 TK_INC_DIR=$TK_INC_DIR
11482 if [ $TK_VERSION < "8.4" ]; then
11484 cat >>confdefs.h <<\_ACEOF
11485 #define TK_84PREV 0
11490 ac_config_files="$ac_config_files Makefile dll/Makefile epu/Makefile include/Makefile lib/Makefile tcl/Makefile tcl/pkgIndex.tcl"
11492 cat >confcache <<\_ACEOF
11493 # This file is a shell script that caches the results of configure
11494 # tests run on this system so they can be shared between configure
11495 # scripts and configure runs, see configure's option --config-cache.
11496 # It is not useful on other systems. If it contains results you don't
11497 # want to keep, you may remove or edit it.
11499 # config.status only pays attention to the cache file if you give it
11500 # the --recheck option to rerun configure.
11502 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11503 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11504 # following values.
11508 # The following way of writing the cache mishandles newlines in values,
11509 # but we know of no workaround that is simple, portable, and efficient.
11510 # So, don't put newlines in cache variables' values.
11511 # Ultrix sh set writes to stderr and can't be redirected directly,
11512 # and sets the high bit in the cache file unless we assign to the vars.
11515 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11517 # `set' does not quote correctly, so add quotes (double-quote
11518 # substitution turns \\\\ into \\, and sed turns \\ into \).
11521 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11524 # `set' quotes correctly as required by POSIX, so do not add quotes.
11526 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11535 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11537 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11538 if test -w $cache_file; then
11539 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11540 cat confcache >$cache_file
11542 echo "not updating unwritable cache $cache_file"
11547 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11548 # Let make expand exec_prefix.
11549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11551 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11552 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11553 # trailing colons and then remove the whole line if VPATH becomes empty
11554 # (actually we leave an empty line to preserve line numbers).
11555 if test "x$srcdir" = x.; then
11556 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11557 s/:*\$(srcdir):*/:/;
11558 s/:*\${srcdir}:*/:/;
11560 s/^\([^=]*=[ ]*\):*/\1/;
11566 DEFS=-DHAVE_CONFIG_H
11570 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11571 # 1. Remove the extension, and $U if already installed.
11572 ac_i=`echo "$ac_i" |
11573 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11575 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11576 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11578 LIBOBJS=$ac_libobjs
11580 LTLIBOBJS=$ac_ltlibobjs
11584 : ${CONFIG_STATUS=./config.status}
11585 ac_clean_files_save=$ac_clean_files
11586 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11587 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11588 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11589 cat >$CONFIG_STATUS <<_ACEOF
11591 # Generated by $as_me.
11592 # Run this file to recreate the current configuration.
11593 # Compiler output produced by configure, useful for debugging
11594 # configure, is in config.log if it exists.
11597 ac_cs_recheck=false
11599 SHELL=\${CONFIG_SHELL-$SHELL}
11602 cat >>$CONFIG_STATUS <<\_ACEOF
11603 ## --------------------- ##
11604 ## M4sh Initialization. ##
11605 ## --------------------- ##
11607 # Be Bourne compatible
11608 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11611 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11612 # is contrary to our usage. Disable this feature.
11613 alias -g '${1+"$@"}'='"$@"'
11614 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11618 # Support unset when possible.
11619 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11626 # Work around bugs in pre-3.0 UWIN ksh.
11627 $as_unset ENV MAIL MAILPATH
11634 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11635 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11636 LC_TELEPHONE LC_TIME
11638 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11639 eval $as_var=C; export $as_var
11645 # Required to use basename.
11646 if expr a : '\(a\)' >/dev/null 2>&1; then
11652 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11653 as_basename=basename
11659 # Name of the executable.
11660 as_me=`$as_basename "$0" ||
11661 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11662 X"$0" : 'X\(//\)$' \| \
11663 X"$0" : 'X\(/\)$' \| \
11664 . : '\(.\)' 2>/dev/null ||
11666 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11667 /^X\/\(\/\/\)$/{ s//\1/; q; }
11668 /^X\/\(\/\).*/{ s//\1/; q; }
11672 # PATH needs CR, and LINENO needs CR and PATH.
11673 # Avoid depending upon Character Ranges.
11674 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11675 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11676 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11677 as_cr_digits='0123456789'
11678 as_cr_alnum=$as_cr_Letters$as_cr_digits
11680 # The user is always right.
11681 if test "${PATH_SEPARATOR+set}" != set; then
11682 echo "#! /bin/sh" >conf$$.sh
11683 echo "exit 0" >>conf$$.sh
11685 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11694 as_lineno_1=$LINENO
11695 as_lineno_2=$LINENO
11696 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11697 test "x$as_lineno_1" != "x$as_lineno_2" &&
11698 test "x$as_lineno_3" = "x$as_lineno_2" || {
11699 # Find who we are. Look in the path if we contain no path at all
11702 *[\\/]* ) as_myself=$0 ;;
11703 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11707 test -z "$as_dir" && as_dir=.
11708 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11713 # We did not find ourselves, most probably we were run as `sh COMMAND'
11714 # in which case we are not to be found in the path.
11715 if test "x$as_myself" = x; then
11718 if test ! -f "$as_myself"; then
11719 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11720 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11721 { (exit 1); exit 1; }; }
11723 case $CONFIG_SHELL in
11725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11729 test -z "$as_dir" && as_dir=.
11730 for as_base in sh bash ksh sh5; do
11733 if ("$as_dir/$as_base" -c '
11734 as_lineno_1=$LINENO
11735 as_lineno_2=$LINENO
11736 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11737 test "x$as_lineno_1" != "x$as_lineno_2" &&
11738 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11739 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11740 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11741 CONFIG_SHELL=$as_dir/$as_base
11742 export CONFIG_SHELL
11743 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11751 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11752 # uniformly replaced by the line number. The first 'sed' inserts a
11753 # line-number line before each line; the second 'sed' does the real
11754 # work. The second script uses 'N' to pair each line-number line
11755 # with the numbered line, and appends trailing '-' during
11756 # substitution so that $LINENO is not a special case at line end.
11757 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11758 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11759 sed '=' <$as_myself |
11764 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11767 s,^['$as_cr_digits']*\n,,
11768 ' >$as_me.lineno &&
11769 chmod +x $as_me.lineno ||
11770 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11771 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11772 { (exit 1); exit 1; }; }
11774 # Don't try to exec as it changes $[0], causing all sort of problems
11775 # (the dirname of $[0] is not the place where we might find the
11776 # original and so on. Autoconf is especially sensible to this).
11778 # Exit status is that of the last command.
11783 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11784 *c*,-n*) ECHO_N= ECHO_C='
11786 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11787 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11790 if expr a : '\(a\)' >/dev/null 2>&1; then
11796 rm -f conf$$ conf$$.exe conf$$.file
11798 if ln -s conf$$.file conf$$ 2>/dev/null; then
11799 # We could just check for DJGPP; but this test a) works b) is more generic
11800 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11801 if test -f conf$$.exe; then
11802 # Don't use ln at all; we don't have any links
11807 elif ln conf$$.file conf$$ 2>/dev/null; then
11812 rm -f conf$$ conf$$.exe conf$$.file
11814 if mkdir -p . 2>/dev/null; then
11820 as_executable_p="test -f"
11822 # Sed expression to map a string onto a valid CPP name.
11823 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11825 # Sed expression to map a string onto a valid variable name.
11826 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11830 # We need space, tab and new line, in precisely that order.
11840 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11841 # report actual input values of CONFIG_FILES etc. instead of their
11842 # values after options handling. Logging --version etc. is OK.
11846 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11847 ## Running $as_me. ##
11852 This file was extended by fGIS $as_me 0.0.1, which was
11853 generated by GNU Autoconf 2.56. Invocation command line was
11855 CONFIG_FILES = $CONFIG_FILES
11856 CONFIG_HEADERS = $CONFIG_HEADERS
11857 CONFIG_LINKS = $CONFIG_LINKS
11858 CONFIG_COMMANDS = $CONFIG_COMMANDS
11862 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11866 # Files that config.status was made for.
11867 if test -n "$ac_config_files"; then
11868 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11871 if test -n "$ac_config_headers"; then
11872 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11875 if test -n "$ac_config_links"; then
11876 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11879 if test -n "$ac_config_commands"; then
11880 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11883 cat >>$CONFIG_STATUS <<\_ACEOF
11886 \`$as_me' instantiates files from templates according to the
11887 current configuration.
11889 Usage: $0 [OPTIONS] [FILE]...
11891 -h, --help print this help, then exit
11892 -V, --version print version number, then exit
11893 -q, --quiet do not print progress messages
11894 -d, --debug don't remove temporary files
11895 --recheck update $as_me by reconfiguring in the same conditions
11896 --file=FILE[:TEMPLATE]
11897 instantiate the configuration file FILE
11898 --header=FILE[:TEMPLATE]
11899 instantiate the configuration header FILE
11901 Configuration files:
11904 Configuration headers:
11907 Configuration commands:
11910 Report bugs to <bug-autoconf@gnu.org>."
11913 cat >>$CONFIG_STATUS <<_ACEOF
11915 fGIS config.status 0.0.1
11916 configured by $0, generated by GNU Autoconf 2.56,
11917 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11919 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11920 Free Software Foundation, Inc.
11921 This config.status script is free software; the Free Software Foundation
11922 gives unlimited permission to copy, distribute and modify it."
11927 cat >>$CONFIG_STATUS <<\_ACEOF
11928 # If no file are specified by the user, then we need to provide default
11929 # value. By we need to know if files were specified by the user.
11935 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11936 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11944 *) # This is not an option, so the user has probably given explicit
11947 ac_need_defaults=false;;
11951 # Handling of the options.
11953 cat >>$CONFIG_STATUS <<\_ACEOF
11954 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11956 --version | --vers* | -V )
11957 echo "$ac_cs_version"; exit 0 ;;
11959 # Conflict between --help and --header
11960 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11961 Try \`$0 --help' for more information." >&5
11962 echo "$as_me: error: ambiguous option: $1
11963 Try \`$0 --help' for more information." >&2;}
11964 { (exit 1); exit 1; }; };;
11965 --help | --hel | -h )
11966 echo "$ac_cs_usage"; exit 0 ;;
11967 --debug | --d* | -d )
11969 --file | --fil | --fi | --f )
11971 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11972 ac_need_defaults=false;;
11973 --header | --heade | --head | --hea )
11975 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11976 ac_need_defaults=false;;
11977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11978 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11981 # This is an error.
11982 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11983 Try \`$0 --help' for more information." >&5
11984 echo "$as_me: error: unrecognized option: $1
11985 Try \`$0 --help' for more information." >&2;}
11986 { (exit 1); exit 1; }; } ;;
11988 *) ac_config_targets="$ac_config_targets $1" ;;
11994 ac_configure_extra_args=
11996 if $ac_cs_silent; then
11998 ac_configure_extra_args="$ac_configure_extra_args --silent"
12002 cat >>$CONFIG_STATUS <<_ACEOF
12003 if \$ac_cs_recheck; then
12004 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12005 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12010 cat >>$CONFIG_STATUS <<_ACEOF
12012 # INIT-COMMANDS section.
12021 cat >>$CONFIG_STATUS <<\_ACEOF
12022 for ac_config_target in $ac_config_targets
12024 case "$ac_config_target" in
12025 # Handling of arguments.
12026 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12027 "dll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dll/Makefile" ;;
12028 "epu/Makefile" ) CONFIG_FILES="$CONFIG_FILES epu/Makefile" ;;
12029 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12030 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12031 "tcl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcl/Makefile" ;;
12032 "tcl/pkgIndex.tcl" ) CONFIG_FILES="$CONFIG_FILES tcl/pkgIndex.tcl" ;;
12033 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12034 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
12035 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12036 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12037 { (exit 1); exit 1; }; };;
12041 # If the user did not use the arguments to specify the items to instantiate,
12042 # then the envvar interface is used. Set only those that are not.
12043 # We use the long form for the default assignment because of an extremely
12044 # bizarre bug on SunOS 4.1.3.
12045 if $ac_need_defaults; then
12046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12047 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12048 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12051 # Have a temporary directory for convenience. Make it in the build tree
12052 # simply because there is no reason to put it here, and in addition,
12053 # creating and moving files from /tmp can sometimes cause problems.
12054 # Create a temporary directory, and hook for its removal unless debugging.
12057 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12058 trap '{ (exit 1); exit 1; }' 1 2 13 15
12061 # Create a (secure) tmp directory for tmp files.
12064 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12065 test -n "$tmp" && test -d "$tmp"
12068 tmp=./confstat$$-$RANDOM
12069 (umask 077 && mkdir $tmp)
12072 echo "$me: cannot create a temporary directory in ." >&2
12073 { (exit 1); exit 1; }
12078 cat >>$CONFIG_STATUS <<_ACEOF
12081 # CONFIG_FILES section.
12084 # No need to generate the scripts if there are no CONFIG_FILES.
12085 # This happens for instance when ./config.status config.h
12086 if test -n "\$CONFIG_FILES"; then
12087 # Protect against being on the right side of a sed subst in config.status.
12088 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12089 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12090 s,@SHELL@,$SHELL,;t t
12091 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12092 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12093 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12094 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12095 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12096 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12097 s,@exec_prefix@,$exec_prefix,;t t
12098 s,@prefix@,$prefix,;t t
12099 s,@program_transform_name@,$program_transform_name,;t t
12100 s,@bindir@,$bindir,;t t
12101 s,@sbindir@,$sbindir,;t t
12102 s,@libexecdir@,$libexecdir,;t t
12103 s,@datadir@,$datadir,;t t
12104 s,@sysconfdir@,$sysconfdir,;t t
12105 s,@sharedstatedir@,$sharedstatedir,;t t
12106 s,@localstatedir@,$localstatedir,;t t
12107 s,@libdir@,$libdir,;t t
12108 s,@includedir@,$includedir,;t t
12109 s,@oldincludedir@,$oldincludedir,;t t
12110 s,@infodir@,$infodir,;t t
12111 s,@mandir@,$mandir,;t t
12112 s,@build_alias@,$build_alias,;t t
12113 s,@host_alias@,$host_alias,;t t
12114 s,@target_alias@,$target_alias,;t t
12115 s,@DEFS@,$DEFS,;t t
12116 s,@ECHO_C@,$ECHO_C,;t t
12117 s,@ECHO_N@,$ECHO_N,;t t
12118 s,@ECHO_T@,$ECHO_T,;t t
12119 s,@LIBS@,$LIBS,;t t
12120 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12121 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12122 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12123 s,@PACKAGE@,$PACKAGE,;t t
12124 s,@VERSION@,$VERSION,;t t
12125 s,@ACLOCAL@,$ACLOCAL,;t t
12126 s,@AUTOCONF@,$AUTOCONF,;t t
12127 s,@AUTOMAKE@,$AUTOMAKE,;t t
12128 s,@AUTOHEADER@,$AUTOHEADER,;t t
12129 s,@MAKEINFO@,$MAKEINFO,;t t
12130 s,@SET_MAKE@,$SET_MAKE,;t t
12131 s,@build@,$build,;t t
12132 s,@build_cpu@,$build_cpu,;t t
12133 s,@build_vendor@,$build_vendor,;t t
12134 s,@build_os@,$build_os,;t t
12135 s,@host@,$host,;t t
12136 s,@host_cpu@,$host_cpu,;t t
12137 s,@host_vendor@,$host_vendor,;t t
12138 s,@host_os@,$host_os,;t t
12140 s,@CFLAGS@,$CFLAGS,;t t
12141 s,@LDFLAGS@,$LDFLAGS,;t t
12142 s,@CPPFLAGS@,$CPPFLAGS,;t t
12143 s,@ac_ct_CC@,$ac_ct_CC,;t t
12144 s,@EXEEXT@,$EXEEXT,;t t
12145 s,@OBJEXT@,$OBJEXT,;t t
12146 s,@LN_S@,$LN_S,;t t
12147 s,@ECHO@,$ECHO,;t t
12148 s,@RANLIB@,$RANLIB,;t t
12149 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12150 s,@STRIP@,$STRIP,;t t
12151 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12153 s,@EGREP@,$EGREP,;t t
12154 s,@LIBTOOL@,$LIBTOOL,;t t
12155 s,@YACC@,$YACC,;t t
12156 s,@ALLOCA@,$ALLOCA,;t t
12157 s,@LIBOBJS@,$LIBOBJS,;t t
12158 s,@POW_LIB@,$POW_LIB,;t t
12159 s,@FGIS_LIBDIR@,$FGIS_LIBDIR,;t t
12160 s,@TCLHDIR@,$TCLHDIR,;t t
12161 s,@TCLHDIRDASHI@,$TCLHDIRDASHI,;t t
12162 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
12163 s,@TCL_DEFS@,$TCL_DEFS,;t t
12164 s,@TCL_DELETEME@,$TCL_DELETEME,;t t
12165 s,@TCL_DBGX@,$TCL_DBGX,;t t
12166 s,@TCL_EXEC_PREFIX@,$TCL_EXEC_PREFIX,;t t
12167 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
12168 s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
12169 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
12170 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
12171 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
12172 s,@TCL_SHARED_LIB_SUFFIX@,$TCL_SHARED_LIB_SUFFIX,;t t
12173 s,@TCL_INC_DIR@,$TCL_INC_DIR,;t t
12174 s,@TCL_PACKAGE_PATH@,$TCL_PACKAGE_PATH,;t t
12175 s,@TKHDIRDASHI@,$TKHDIRDASHI,;t t
12176 s,@TK_VERSION@,$TK_VERSION,;t t
12177 s,@TK_DEFS@,$TK_DEFS,;t t
12178 s,@TK_DBGX@,$TK_DBGX,;t t
12179 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
12180 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
12181 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
12182 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
12183 s,@TK_INC_DIR@,$TK_INC_DIR,;t t
12184 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12189 cat >>$CONFIG_STATUS <<\_ACEOF
12190 # Split the substitutions into bite-sized pieces for seds with
12191 # small command number limits, like on Digital OSF/1 and HP-UX.
12192 ac_max_sed_lines=48
12193 ac_sed_frag=1 # Number of current file.
12194 ac_beg=1 # First line for current file.
12195 ac_end=$ac_max_sed_lines # Line after last line for current file.
12198 while $ac_more_lines; do
12199 if test $ac_beg -gt 1; then
12200 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12202 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12204 if test ! -s $tmp/subs.frag; then
12205 ac_more_lines=false
12207 # The purpose of the label and of the branching condition is to
12208 # speed up the sed processing (if there are no `@' at all, there
12209 # is no need to browse any of the substitutions).
12210 # These are the two extra sed commands mentioned above.
12212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12213 if test -z "$ac_sed_cmds"; then
12214 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12216 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12218 ac_sed_frag=`expr $ac_sed_frag + 1`
12220 ac_end=`expr $ac_end + $ac_max_sed_lines`
12223 if test -z "$ac_sed_cmds"; then
12226 fi # test -n "$CONFIG_FILES"
12229 cat >>$CONFIG_STATUS <<\_ACEOF
12230 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12231 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12233 - | *:- | *:-:* ) # input from stdin
12235 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12237 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12239 * ) ac_file_in=$ac_file.in ;;
12242 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12243 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12245 X"$ac_file" : 'X\(//\)[^/]' \| \
12246 X"$ac_file" : 'X\(//\)$' \| \
12247 X"$ac_file" : 'X\(/\)' \| \
12248 . : '\(.\)' 2>/dev/null ||
12250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12252 /^X\(\/\/\)$/{ s//\1/; q; }
12253 /^X\(\/\).*/{ s//\1/; q; }
12255 { if $as_mkdir_p; then
12260 while test ! -d "$as_dir"; do
12261 as_dirs="$as_dir $as_dirs"
12262 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12264 X"$as_dir" : 'X\(//\)[^/]' \| \
12265 X"$as_dir" : 'X\(//\)$' \| \
12266 X"$as_dir" : 'X\(/\)' \| \
12267 . : '\(.\)' 2>/dev/null ||
12269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12271 /^X\(\/\/\)$/{ s//\1/; q; }
12272 /^X\(\/\).*/{ s//\1/; q; }
12275 test ! -n "$as_dirs" || mkdir $as_dirs
12276 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12277 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12278 { (exit 1); exit 1; }; }; }
12282 if test "$ac_dir" != .; then
12283 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12284 # A "../" for each directory in $ac_dir_suffix.
12285 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12287 ac_dir_suffix= ac_top_builddir=
12291 .) # No --srcdir option. We are building in place.
12293 if test -z "$ac_top_builddir"; then
12296 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12298 [\\/]* | ?:[\\/]* ) # Absolute path.
12299 ac_srcdir=$srcdir$ac_dir_suffix;
12300 ac_top_srcdir=$srcdir ;;
12301 *) # Relative path.
12302 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12303 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12305 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12307 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12308 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12309 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12310 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12315 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12318 if test x"$ac_file" != x-; then
12319 { echo "$as_me:$LINENO: creating $ac_file" >&5
12320 echo "$as_me: creating $ac_file" >&6;}
12323 # Let's still pretend it is `configure' which instantiates (i.e., don't
12324 # use $as_me), people would be surprised to read:
12325 # /* config.h. Generated by config.status. */
12326 if test x"$ac_file" = x-; then
12329 configure_input="$ac_file. "
12331 configure_input=$configure_input"Generated from `echo $ac_file_in |
12332 sed 's,.*/,,'` by configure."
12334 # First look for the input files in the build tree, otherwise in the
12336 ac_file_inputs=`IFS=:
12337 for f in $ac_file_in; do
12339 -) echo $tmp/stdin ;;
12341 # Absolute (can't be DOS-style, as IFS=:)
12342 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12343 echo "$as_me: error: cannot find input file: $f" >&2;}
12344 { (exit 1); exit 1; }; }
12347 if test -f "$f"; then
12350 elif test -f "$srcdir/$f"; then
12355 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12356 echo "$as_me: error: cannot find input file: $f" >&2;}
12357 { (exit 1); exit 1; }; }
12360 done` || { (exit 1); exit 1; }
12362 cat >>$CONFIG_STATUS <<_ACEOF
12366 cat >>$CONFIG_STATUS <<\_ACEOF
12368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12369 s,@configure_input@,$configure_input,;t t
12370 s,@srcdir@,$ac_srcdir,;t t
12371 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12372 s,@top_srcdir@,$ac_top_srcdir,;t t
12373 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12374 s,@builddir@,$ac_builddir,;t t
12375 s,@abs_builddir@,$ac_abs_builddir,;t t
12376 s,@top_builddir@,$ac_top_builddir,;t t
12377 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12378 s,@INSTALL@,$ac_INSTALL,;t t
12379 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12381 if test x"$ac_file" != x-; then
12382 mv $tmp/out $ac_file
12390 cat >>$CONFIG_STATUS <<\_ACEOF
12393 # CONFIG_HEADER section.
12396 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12397 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12399 # ac_d sets the value in "#define NAME VALUE" lines.
12400 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12401 ac_dB='[ ].*$,\1#\2'
12404 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12405 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12406 ac_uB='$,\1#\2define\3'
12410 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12413 - | *:- | *:-:* ) # input from stdin
12415 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12417 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12419 * ) ac_file_in=$ac_file.in ;;
12422 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12423 echo "$as_me: creating $ac_file" >&6;}
12425 # First look for the input files in the build tree, otherwise in the
12427 ac_file_inputs=`IFS=:
12428 for f in $ac_file_in; do
12430 -) echo $tmp/stdin ;;
12432 # Absolute (can't be DOS-style, as IFS=:)
12433 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12434 echo "$as_me: error: cannot find input file: $f" >&2;}
12435 { (exit 1); exit 1; }; }
12438 if test -f "$f"; then
12441 elif test -f "$srcdir/$f"; then
12446 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12447 echo "$as_me: error: cannot find input file: $f" >&2;}
12448 { (exit 1); exit 1; }; }
12451 done` || { (exit 1); exit 1; }
12452 # Remove the trailing spaces.
12453 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12457 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12458 # `conftest.undefs', that substitutes the proper values into
12459 # config.h.in to produce config.h. The first handles `#define'
12460 # templates, and the second `#undef' templates.
12461 # And first: Protect against being on the right side of a sed subst in
12462 # config.status. Protect against being in an unquoted here document
12463 # in config.status.
12464 rm -f conftest.defines conftest.undefs
12465 # Using a here document instead of a string reduces the quoting nightmare.
12466 # Putting comments in sed scripts is not portable.
12468 # `end' is used to avoid that the second main sed command (meant for
12469 # 0-ary CPP macros) applies to n-ary macro definitions.
12470 # See the Autoconf documentation for `clear'.
12471 cat >confdef2sed.sed <<\_ACEOF
12476 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12478 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12481 # If some macros were called several times there might be several times
12482 # the same #defines, which is useless. Nevertheless, we may not want to
12483 # sort them, since we want the *last* AC-DEFINE to be honored.
12484 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12485 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12486 rm -f confdef2sed.sed
12488 # This sed command replaces #undef with comments. This is necessary, for
12489 # example, in the case of _POSIX_SOURCE, which is predefined and required
12490 # on some systems where configure will not decide to define it.
12491 cat >>conftest.undefs <<\_ACEOF
12492 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12495 # Break up conftest.defines because some shells have a limit on the size
12496 # of here documents, and old seds have small limits too (100 cmds).
12497 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12498 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12499 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12500 echo ' :' >>$CONFIG_STATUS
12501 rm -f conftest.tail
12502 while grep . conftest.defines >/dev/null
12504 # Write a limited-size here document to $tmp/defines.sed.
12505 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12506 # Speed up: don't consider the non `#define' lines.
12507 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12508 # Work around the forget-to-reset-the-flag bug.
12509 echo 't clr' >>$CONFIG_STATUS
12510 echo ': clr' >>$CONFIG_STATUS
12511 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12513 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12515 mv $tmp/out $tmp/in
12517 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12518 rm -f conftest.defines
12519 mv conftest.tail conftest.defines
12521 rm -f conftest.defines
12522 echo ' fi # grep' >>$CONFIG_STATUS
12523 echo >>$CONFIG_STATUS
12525 # Break up conftest.undefs because some shells have a limit on the size
12526 # of here documents, and old seds have small limits too (100 cmds).
12527 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12528 rm -f conftest.tail
12529 while grep . conftest.undefs >/dev/null
12531 # Write a limited-size here document to $tmp/undefs.sed.
12532 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12533 # Speed up: don't consider the non `#undef'
12534 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12535 # Work around the forget-to-reset-the-flag bug.
12536 echo 't clr' >>$CONFIG_STATUS
12537 echo ': clr' >>$CONFIG_STATUS
12538 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12540 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12542 mv $tmp/out $tmp/in
12544 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12545 rm -f conftest.undefs
12546 mv conftest.tail conftest.undefs
12548 rm -f conftest.undefs
12550 cat >>$CONFIG_STATUS <<\_ACEOF
12551 # Let's still pretend it is `configure' which instantiates (i.e., don't
12552 # use $as_me), people would be surprised to read:
12553 # /* config.h. Generated by config.status. */
12554 if test x"$ac_file" = x-; then
12555 echo "/* Generated by configure. */" >$tmp/config.h
12557 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12559 cat $tmp/in >>$tmp/config.h
12561 if test x"$ac_file" != x-; then
12562 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12563 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12564 echo "$as_me: $ac_file is unchanged" >&6;}
12566 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12568 X"$ac_file" : 'X\(//\)[^/]' \| \
12569 X"$ac_file" : 'X\(//\)$' \| \
12570 X"$ac_file" : 'X\(/\)' \| \
12571 . : '\(.\)' 2>/dev/null ||
12573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12574 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12575 /^X\(\/\/\)$/{ s//\1/; q; }
12576 /^X\(\/\).*/{ s//\1/; q; }
12578 { if $as_mkdir_p; then
12583 while test ! -d "$as_dir"; do
12584 as_dirs="$as_dir $as_dirs"
12585 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12587 X"$as_dir" : 'X\(//\)[^/]' \| \
12588 X"$as_dir" : 'X\(//\)$' \| \
12589 X"$as_dir" : 'X\(/\)' \| \
12590 . : '\(.\)' 2>/dev/null ||
12592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12594 /^X\(\/\/\)$/{ s//\1/; q; }
12595 /^X\(\/\).*/{ s//\1/; q; }
12598 test ! -n "$as_dirs" || mkdir $as_dirs
12599 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12600 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12601 { (exit 1); exit 1; }; }; }
12604 mv $tmp/config.h $ac_file
12608 rm -f $tmp/config.h
12612 cat >>$CONFIG_STATUS <<\_ACEOF
12615 # CONFIG_COMMANDS section.
12617 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12618 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12619 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12620 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12621 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12622 X"$ac_dest" : 'X\(//\)[^/]' \| \
12623 X"$ac_dest" : 'X\(//\)$' \| \
12624 X"$ac_dest" : 'X\(/\)' \| \
12625 . : '\(.\)' 2>/dev/null ||
12627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12629 /^X\(\/\/\)$/{ s//\1/; q; }
12630 /^X\(\/\).*/{ s//\1/; q; }
12634 if test "$ac_dir" != .; then
12635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12636 # A "../" for each directory in $ac_dir_suffix.
12637 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12639 ac_dir_suffix= ac_top_builddir=
12643 .) # No --srcdir option. We are building in place.
12645 if test -z "$ac_top_builddir"; then
12648 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12650 [\\/]* | ?:[\\/]* ) # Absolute path.
12651 ac_srcdir=$srcdir$ac_dir_suffix;
12652 ac_top_srcdir=$srcdir ;;
12653 *) # Relative path.
12654 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12655 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12657 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12659 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12660 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12661 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12662 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12665 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12666 echo "$as_me: executing $ac_dest commands" >&6;}
12668 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;;
12673 cat >>$CONFIG_STATUS <<\_ACEOF
12675 { (exit 0); exit 0; }
12677 chmod +x $CONFIG_STATUS
12678 ac_clean_files=$ac_clean_files_save
12681 # configure is writing to config.log, and then calls config.status.
12682 # config.status does its own redirection, appending to config.log.
12683 # Unfortunately, on DOS this fails, as config.log is still kept open
12684 # by configure, so config.status won't be able to write to it; its
12685 # output is simply discarded. So we exec the FD to /dev/null,
12686 # effectively closing config.log, so it can be properly (re)opened and
12687 # appended to by config.status. When coming back to configure, we
12688 # need to make the FD available again.
12689 if test "$no_create" != yes; then
12691 ac_config_status_args=
12692 test "$silent" = yes &&
12693 ac_config_status_args="$ac_config_status_args --quiet"
12695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12698 # would make configure fail if this is the last instruction.
12699 $ac_cs_success || { (exit 1); exit 1; }