Tk-Components

Check-in [38182a035f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add aem package
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:38182a035fbb4eba7e5bacae833cfb2440772091
User & Date: kevin 2015-07-10 02:52:41
Context
2015-07-12
03:42
Updates to launcher module check-in: 5da1731fb5 user: kevin tags: trunk
2015-07-10
02:52
Add aem package check-in: 38182a035f user: kevin tags: trunk
2015-07-09
02:36
More progress on launcher check-in: 1cafb6a6d8 user: kevin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Added aem/Makefile.in.

            1  +# Makefile.in --
            2  +#
            3  +#	This file is a Makefile for TkWebView TEA Extension. If it has the name
            4  +#	"Makefile.in" then it is a template for a Makefile;  to generate the
            5  +#	actual Makefile, run "./configure", which is a configuration script
            6  +#	generated by the "autoconf" program (constructs like "@foo@" will get
            7  +#	replaced in the actual Makefile.
            8  +#
            9  +# Copyright (c) 1999 Scriptics Corporation.
           10  +# Copyright (c) 2002-2005 ActiveState Corporation.
           11  +#
           12  +# See the file "license.terms" for information on usage and redistribution
           13  +# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
           14  +#
           15  +# RCS: @(#) $Id: Makefile.in,v 1.66 2009/03/18 18:39:42 stwo Exp $
           16  +
           17  +#========================================================================
           18  +# Nothing of the variables below this line should need to be changed.
           19  +# Please check the TARGETS section below to make sure the make targets
           20  +# are correct.
           21  +#========================================================================
           22  +
           23  +#========================================================================
           24  +# The names of the source files is defined in the configure script.
           25  +# The object files are used for linking into the final library.
           26  +# This will be used when a dist target is added to the Makefile.
           27  +# It is not important to specify the directory, as long as it is the
           28  +# $(srcdir) or in the generic, win or unix subdirectory.
           29  +#========================================================================
           30  +
           31  +PKG_SOURCES	= @PKG_SOURCES@
           32  +PKG_OBJECTS	= @PKG_OBJECTS@
           33  +
           34  +PKG_STUB_SOURCES = @PKG_STUB_SOURCES@
           35  +PKG_STUB_OBJECTS = @PKG_STUB_OBJECTS@
           36  +
           37  +#========================================================================
           38  +# PKG_TCL_SOURCES identifies Tcl runtime files that are associated with
           39  +# this package that need to be installed, if any.
           40  +#========================================================================
           41  +
           42  +PKG_TCL_SOURCES = @PKG_TCL_SOURCES@
           43  +
           44  +#========================================================================
           45  +# This is a list of public header files to be installed, if any.
           46  +#========================================================================
           47  +
           48  +PKG_HEADERS	= @PKG_HEADERS@
           49  +
           50  +#========================================================================
           51  +# "PKG_LIB_FILE" refers to the library (dynamic or static as per
           52  +# configuration options) composed of the named objects.
           53  +#========================================================================
           54  +
           55  +PKG_LIB_FILE	= @PKG_LIB_FILE@
           56  +PKG_STUB_LIB_FILE = @PKG_STUB_LIB_FILE@
           57  +
           58  +lib_BINARIES	= $(PKG_LIB_FILE)
           59  +BINARIES	= $(lib_BINARIES)
           60  +
           61  +SHELL		= @SHELL@
           62  +
           63  +srcdir		= @srcdir@
           64  +prefix		= @prefix@
           65  +exec_prefix	= @exec_prefix@
           66  +
           67  +bindir		= @bindir@
           68  +libdir		= @libdir@
           69  +includedir	= @includedir@
           70  +datarootdir     = @datarootdir@
           71  +datadir		= @datadir@
           72  +mandir		= @mandir@
           73  +
           74  +DESTDIR		=
           75  +
           76  +PKG_DIR		= $(PACKAGE_NAME)$(PACKAGE_VERSION)
           77  +pkgdatadir	= $(datadir)/$(PKG_DIR)
           78  +pkglibdir	= $(libdir)/$(PKG_DIR)
           79  +pkgincludedir	= $(includedir)/$(PKG_DIR)
           80  +
           81  +top_builddir	= .
           82  +
           83  +INSTALL		= @INSTALL@
           84  +INSTALL_PROGRAM	= @INSTALL_PROGRAM@
           85  +INSTALL_LIBRARY	= @INSTALL_PROGRAM@
           86  +INSTALL_DATA	= @INSTALL_DATA@
           87  +INSTALL_SCRIPT	= @INSTALL_SCRIPT@
           88  +
           89  +PACKAGE_NAME	= @PACKAGE_NAME@
           90  +PACKAGE_VERSION	= @PACKAGE_VERSION@
           91  +CC		= @CC@
           92  +CFLAGS_DEFAULT	= @CFLAGS_DEFAULT@
           93  +CFLAGS_WARNING	= @CFLAGS_WARNING@
           94  +EXEEXT		= @EXEEXT@
           95  +LDFLAGS_DEFAULT	= @LDFLAGS_DEFAULT@
           96  +MAKE_LIB	= @MAKE_LIB@
           97  +MAKE_SHARED_LIB	= @MAKE_SHARED_LIB@
           98  +MAKE_STATIC_LIB	= @MAKE_STATIC_LIB@
           99  +MAKE_STUB_LIB	= @MAKE_STUB_LIB@
          100  +OBJEXT		= @OBJEXT@
          101  +RANLIB		= @RANLIB@
          102  +RANLIB_STUB	= @RANLIB_STUB@
          103  +SHLIB_CFLAGS	= @SHLIB_CFLAGS@
          104  +SHLIB_LD	= @SHLIB_LD@
          105  +SHLIB_LD_LIBS	= @SHLIB_LD_LIBS@
          106  +STLIB_LD	= @STLIB_LD@
          107  +#TCL_DEFS	= @TCL_DEFS@
          108  +TCL_BIN_DIR	= @TCL_BIN_DIR@
          109  +TCL_SRC_DIR	= @TCL_SRC_DIR@
          110  +TK_BIN_DIR	= @TK_BIN_DIR@
          111  +TK_SRC_DIR	= @TK_SRC_DIR@
          112  +
          113  +# Not used, but retained for reference of what libs Tcl required
          114  +#TCL_LIBS	= @TCL_LIBS@
          115  +
          116  +#========================================================================
          117  +# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our
          118  +# package without installing.  The other environment variables allow us
          119  +# to test against an uninstalled Tcl.  Add special env vars that you
          120  +# require for testing here (like TCLX_LIBRARY).
          121  +#========================================================================
          122  +
          123  +#EXTRA_PATH	= $(top_builddir):$(TCL_BIN_DIR)
          124  +EXTRA_PATH	= $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR)
          125  +TCLLIBPATH	= $(top_builddir)
          126  +TCLSH_ENV	= TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library`
          127  +PKG_ENV		= @LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \
          128  +		  PATH="$(EXTRA_PATH):$(PATH)" \
          129  +		  TCLLIBPATH="$(TCLLIBPATH)"
          130  +
          131  +TCLSH_PROG	= @TCLSH_PROG@
          132  +TCLSH   	= $(PKG_ENV) $(TCLSH_ENV) $(TCLSH_PROG)
          133  +
          134  +WISH_ENV	= TK_LIBRARY=`@CYGPATH@ $(TK_SRC_DIR)/library`
          135  +WISH_PROG	= @WISH_PROG@
          136  +WISH   	= $(PKG_ENV) $(TCLSH_ENV) $(WISH_ENV) $(WISH_PROG)
          137  +
          138  +SHARED_BUILD	= @SHARED_BUILD@
          139  +
          140  +#INCLUDES	= @PKG_INCLUDES@ @TCL_INCLUDES@
          141  +INCLUDES	= @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@
          142  +
          143  +PKG_CFLAGS	= @PKG_CFLAGS@
          144  +
          145  +# TCL_DEFS is not strictly need here, but if you remove it, then you
          146  +# must make sure that configure.in checks for the necessary components
          147  +# that your library may use.  TCL_DEFS can actually be a problem if
          148  +# you do not compile with a similar machine setup as the Tcl core was
          149  +# compiled with.
          150  +#DEFS		= $(TCL_DEFS) @DEFS@ $(PKG_CFLAGS)
          151  +DEFS		= @DEFS@ $(PKG_CFLAGS)
          152  +
          153  +# Move pkgIndex.tcl to 'BINARIES' var if it is generated in the Makefile
          154  +CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl
          155  +CLEANFILES	= @CLEANFILES@
          156  +
          157  +CPPFLAGS	= @CPPFLAGS@
          158  +LIBS		= @PKG_LIBS@ @LIBS@
          159  +AR		= @AR@
          160  +CFLAGS		= @CFLAGS@
          161  +COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
          162  +
          163  +#========================================================================
          164  +# Start of user-definable TARGETS section
          165  +#========================================================================
          166  +
          167  +#========================================================================
          168  +# TEA TARGETS.  Please note that the "libraries:" target refers to platform
          169  +# independent files, and the "binaries:" target inclues executable programs and
          170  +# platform-dependent libraries.  Modify these targets so that they install
          171  +# the various pieces of your package.  The make and install rules
          172  +# for the BINARIES that you specified above have already been done.
          173  +#========================================================================
          174  +
          175  +all: binaries libraries
          176  +
          177  +#========================================================================
          178  +# The binaries target builds executable programs, Windows .dll's, unix
          179  +# shared/static libraries, and any other platform-dependent files.
          180  +# The list of targets to build for "binaries:" is specified at the top
          181  +# of the Makefile, in the "BINARIES" variable.
          182  +#========================================================================
          183  +
          184  +binaries: $(BINARIES)
          185  +
          186  +libraries:
          187  +
          188  +#========================================================================
          189  +# Your doc target should differentiate from doc builds (by the developer)
          190  +# and doc installs (see install-doc), which just install the docs on the
          191  +# end user machine when building from source.
          192  +#========================================================================
          193  +
          194  +doc:
          195  +	@echo "If you have documentation to create, place the commands to"
          196  +	@echo "build the docs in the 'doc:' target.  For example:"
          197  +	@echo "        xml2nroff tkWebView.xml > tkWebView.n"
          198  +	@echo "        xml2html tkWebView.xml > tkWebView.html"
          199  +
          200  +install: all install-binaries install-libraries
          201  +
          202  +install-binaries: binaries install-lib-binaries install-bin-binaries
          203  +
          204  +#========================================================================
          205  +# This rule installs platform-independent files, such as header files.
          206  +# The list=...; for p in $$list handles the empty list case x-platform.
          207  +#========================================================================
          208  +
          209  +install-libraries: libraries
          210  +	@mkdir -p $(DESTDIR)$(includedir)
          211  +	@echo "Installing header files in $(DESTDIR)$(includedir)"
          212  +	@list='$(PKG_HEADERS)'; for i in $$list; do \
          213  +	    echo "Installing $(srcdir)/$$i" ; \
          214  +	    $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir) ; \
          215  +	done;
          216  +
          217  +#========================================================================
          218  +# Install documentation.  Unix manpages should go in the $(mandir)
          219  +# directory.
          220  +#========================================================================
          221  +
          222  +install-doc: doc
          223  +	@mkdir -p $(DESTDIR)$(mandir)/mann
          224  +	@echo "Installing documentation in $(DESTDIR)$(mandir)"
          225  +	@list='$(srcdir)/doc/*.n'; for i in $$list; do \
          226  +	    echo "Installing $$i"; \
          227  +	    $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
          228  +	done
          229  +
          230  +test: binaries libraries
          231  +	$(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS)
          232  +
          233  +shell: binaries libraries
          234  +	@$(WISH) $(SCRIPT)
          235  +
          236  +gdb:
          237  +	$(TCLSH_ENV) gdb $(TCLSH_PROG) $(SCRIPT)
          238  +
          239  +depend:
          240  +
          241  +#========================================================================
          242  +# $(PKG_LIB_FILE) should be listed as part of the BINARIES variable
          243  +# mentioned above.  That will ensure that this target is built when you
          244  +# run "make binaries".
          245  +#
          246  +# The $(PKG_OBJECTS) objects are created and linked into the final
          247  +# library.  In most cases these object files will correspond to the
          248  +# source files above.
          249  +#========================================================================
          250  +
          251  +$(PKG_LIB_FILE): $(PKG_OBJECTS)
          252  +	-rm -f $(PKG_LIB_FILE)
          253  +	${MAKE_LIB}
          254  +	$(RANLIB) $(PKG_LIB_FILE)
          255  +
          256  +$(PKG_STUB_LIB_FILE): $(PKG_STUB_OBJECTS)
          257  +	-rm -f $(PKG_STUB_LIB_FILE)
          258  +	${MAKE_STUB_LIB}
          259  +	$(RANLIB_STUB) $(PKG_STUB_LIB_FILE)
          260  +
          261  +#========================================================================
          262  +# We need to enumerate the list of .c to .o lines here.
          263  +#
          264  +# In the following lines, $(srcdir) refers to the toplevel directory
          265  +# containing your extension.  If your sources are in a subdirectory,
          266  +# you will have to modify the paths to reflect this:
          267  +#
          268  +# tkWebView.$(OBJEXT): $(srcdir)/generic/tkWebView.c
          269  +# 	$(COMPILE) -c `@CYGPATH@ $(srcdir)/generic/tkWebView.c` -o $@
          270  +#
          271  +# Setting the VPATH variable to a list of paths will cause the makefile
          272  +# to look into these paths when resolving .c to .obj dependencies.
          273  +# As necessary, add $(srcdir):$(srcdir)/compat:....
          274  +#========================================================================
          275  +
          276  +VPATH = $(srcdir):$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win:$(srcdir)/macosx
          277  +
          278  +.c.@OBJEXT@ .m.@OBJEXT@:
          279  +	$(COMPILE) -c `@CYGPATH@ $<` -o $@
          280  +
          281  +#========================================================================
          282  +# Distribution creation
          283  +# You may need to tweak this target to make it work correctly.
          284  +#========================================================================
          285  +
          286  +#COMPRESS	= tar cvf $(PKG_DIR).tar $(PKG_DIR); compress $(PKG_DIR).tar
          287  +COMPRESS	= gtar zcvf $(PKG_DIR).tar.gz $(PKG_DIR)
          288  +DIST_ROOT	= /tmp/dist
          289  +DIST_DIR	= $(DIST_ROOT)/$(PKG_DIR)
          290  +
          291  +dist-clean:
          292  +	rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).tar.*
          293  +
          294  +dist: dist-clean
          295  +	mkdir -p $(DIST_DIR)
          296  +	cp -p $(srcdir)/ChangeLog $(srcdir)/README* $(srcdir)/license* \
          297  +		$(srcdir)/aclocal.m4 $(srcdir)/configure $(srcdir)/*.in \
          298  +		$(DIST_DIR)/
          299  +	chmod 664 $(DIST_DIR)/Makefile.in $(DIST_DIR)/aclocal.m4
          300  +	chmod 775 $(DIST_DIR)/configure $(DIST_DIR)/configure.in
          301  +
          302  +	for i in $(srcdir)/*.[ch]; do \
          303  +	    if [ -f $$i ]; then \
          304  +		cp -p $$i $(DIST_DIR)/ ; \
          305  +	    fi; \
          306  +	done;
          307  +
          308  +	mkdir $(DIST_DIR)/tclconfig
          309  +	cp $(srcdir)/tclconfig/install-sh $(srcdir)/tclconfig/tcl.m4 \
          310  +		$(DIST_DIR)/tclconfig/
          311  +	chmod 664 $(DIST_DIR)/tclconfig/tcl.m4
          312  +	chmod +x $(DIST_DIR)/tclconfig/install-sh
          313  +
          314  +	list='demos doc generic library mac tests unix win'; \
          315  +	for p in $$list; do \
          316  +	    if test -d $(srcdir)/$$p ; then \
          317  +		mkdir $(DIST_DIR)/$$p; \
          318  +		cp -p $(srcdir)/$$p/*.* $(DIST_DIR)/$$p/; \
          319  +	    fi; \
          320  +	done
          321  +
          322  +	(cd $(DIST_ROOT); $(COMPRESS);)
          323  +
          324  +#========================================================================
          325  +# End of user-definable section
          326  +#========================================================================
          327  +
          328  +#========================================================================
          329  +# Don't modify the file to clean here.  Instead, set the "CLEANFILES"
          330  +# variable in configure.in
          331  +#========================================================================
          332  +
          333  +clean:  
          334  +	-test -z "$(BINARIES)" || rm -f $(BINARIES)
          335  +	-rm -f *.$(OBJEXT) core *.core
          336  +	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
          337  +
          338  +distclean: clean
          339  +	-rm -f *.tab.c
          340  +	-rm -f $(CONFIG_CLEAN_FILES)
          341  +	-rm -f config.cache config.log config.status
          342  +
          343  +#========================================================================
          344  +# Install binary object libraries.  On Windows this includes both .dll and
          345  +# .lib files.  Because the .lib files are not explicitly listed anywhere,
          346  +# we need to deduce their existence from the .dll file of the same name.
          347  +# Library files go into the lib directory.
          348  +# In addition, this will generate the pkgIndex.tcl
          349  +# file in the install location (assuming it can find a usable tclsh shell)
          350  +#
          351  +# You should not have to modify this target.
          352  +#========================================================================
          353  +
          354  +install-lib-binaries: binaries
          355  +	@mkdir -p $(DESTDIR)$(pkglibdir)
          356  +	@list='$(lib_BINARIES)'; for p in $$list; do \
          357  +	  if test -f $$p; then \
          358  +	    echo " $(INSTALL_LIBRARY) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
          359  +	    $(INSTALL_LIBRARY) $$p $(DESTDIR)$(pkglibdir)/$$p; \
          360  +	    stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \
          361  +	    if test "x$$stub" = "xstub"; then \
          362  +		echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \
          363  +		$(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \
          364  +	    else \
          365  +		echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \
          366  +		$(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \
          367  +	    fi; \
          368  +	    ext=`echo $$p|sed -e "s/.*\.//"`; \
          369  +	    if test "x$$ext" = "xdll"; then \
          370  +		lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
          371  +		if test -f $$lib; then \
          372  +		    echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \
          373  +	            $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \
          374  +		fi; \
          375  +	    fi; \
          376  +	  fi; \
          377  +	done
          378  +	@list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
          379  +	  if test -f $(srcdir)/$$p; then \
          380  +	    destp=`basename $$p`; \
          381  +	    echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \
          382  +	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$destp; \
          383  +	  fi; \
          384  +	done
          385  +	@if test "x$(SHARED_BUILD)" = "x1"; then \
          386  +	    echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \
          387  +	    $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \
          388  +	fi
          389  +
          390  +#========================================================================
          391  +# Install binary executables (e.g. .exe files and dependent .dll files)
          392  +# This is for files that must go in the bin directory (located next to
          393  +# wish and tclsh), like dependent .dll files on Windows.
          394  +#
          395  +# You should not have to modify this target, except to define bin_BINARIES
          396  +# above if necessary.
          397  +#========================================================================
          398  +
          399  +install-bin-binaries: binaries
          400  +	@mkdir -p $(DESTDIR)$(bindir)
          401  +	@list='$(bin_BINARIES)'; for p in $$list; do \
          402  +	  if test -f $$p; then \
          403  +	    echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p"; \
          404  +	    $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p; \
          405  +	  fi; \
          406  +	done
          407  +
          408  +.SUFFIXES: .c .m .$(OBJEXT)
          409  +
          410  +Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
          411  +	cd $(top_builddir) \
          412  +	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
          413  +
          414  +uninstall-binaries:
          415  +	list='$(lib_BINARIES)'; for p in $$list; do \
          416  +	  rm -f $(DESTDIR)$(pkglibdir)/$$p; \
          417  +	done
          418  +	list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
          419  +	  p=`basename $$p`; \
          420  +	  rm -f $(DESTDIR)$(pkglibdir)/$$p; \
          421  +	done
          422  +	list='$(bin_BINARIES)'; for p in $$list; do \
          423  +	  rm -f $(DESTDIR)$(bindir)/$$p; \
          424  +	done
          425  +
          426  +.PHONY: all binaries clean depend distclean doc install libraries test
          427  +
          428  +# Tell versions [3.59,3.63) of GNU make to not export all variables.
          429  +# Otherwise a system limit (for SysV at least) may be exceeded.
          430  +.NOEXPORT:

Added aem/aclocal.m4.

            1  +#
            2  +# Include the TEA standard macro set
            3  +#
            4  +
            5  +builtin(include,tclconfig/tcl.m4)
            6  +
            7  +#
            8  +# Add here whatever m4 macros you want to define for your package
            9  +#

Added aem/configure.

            1  +#! /bin/sh
            2  +# Guess values for system-dependent variables and create Makefiles.
            3  +# Generated by GNU Autoconf 2.69 for aem 1.0.
            4  +#
            5  +#
            6  +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
            7  +#
            8  +#
            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  +## -------------------- ##
           14  +
           15  +# Be more Bourne compatible
           16  +DUALCASE=1; export DUALCASE # for MKS sh
           17  +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
           18  +  emulate sh
           19  +  NULLCMD=:
           20  +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
           21  +  # is contrary to our usage.  Disable this feature.
           22  +  alias -g '${1+"$@"}'='"$@"'
           23  +  setopt NO_GLOB_SUBST
           24  +else
           25  +  case `(set -o) 2>/dev/null` in #(
           26  +  *posix*) :
           27  +    set -o posix ;; #(
           28  +  *) :
           29  +     ;;
           30  +esac
           31  +fi
           32  +
           33  +
           34  +as_nl='
           35  +'
           36  +export as_nl
           37  +# Printing a long string crashes Solaris 7 /usr/bin/printf.
           38  +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
           39  +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
           40  +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
           41  +# Prefer a ksh shell builtin over an external printf program on Solaris,
           42  +# but without wasting forks for bash or zsh.
           43  +if test -z "$BASH_VERSION$ZSH_VERSION" \
           44  +    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
           45  +  as_echo='print -r --'
           46  +  as_echo_n='print -rn --'
           47  +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
           48  +  as_echo='printf %s\n'
           49  +  as_echo_n='printf %s'
           50  +else
           51  +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
           52  +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
           53  +    as_echo_n='/usr/ucb/echo -n'
           54  +  else
           55  +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
           56  +    as_echo_n_body='eval
           57  +      arg=$1;
           58  +      case $arg in #(
           59  +      *"$as_nl"*)
           60  +	expr "X$arg" : "X\\(.*\\)$as_nl";
           61  +	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
           62  +      esac;
           63  +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
           64  +    '
           65  +    export as_echo_n_body
           66  +    as_echo_n='sh -c $as_echo_n_body as_echo'
           67  +  fi
           68  +  export as_echo_body
           69  +  as_echo='sh -c $as_echo_body as_echo'
           70  +fi
           71  +
           72  +# The user is always right.
           73  +if test "${PATH_SEPARATOR+set}" != set; then
           74  +  PATH_SEPARATOR=:
           75  +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
           76  +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
           77  +      PATH_SEPARATOR=';'
           78  +  }
           79  +fi
           80  +
           81  +
           82  +# IFS
           83  +# We need space, tab and new line, in precisely that order.  Quoting is
           84  +# there to prevent editors from complaining about space-tab.
           85  +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
           86  +# splitting by setting IFS to empty value.)
           87  +IFS=" ""	$as_nl"
           88  +
           89  +# Find who we are.  Look in the path if we contain no directory separator.
           90  +as_myself=
           91  +case $0 in #((
           92  +  *[\\/]* ) as_myself=$0 ;;
           93  +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
           94  +for as_dir in $PATH
           95  +do
           96  +  IFS=$as_save_IFS
           97  +  test -z "$as_dir" && as_dir=.
           98  +    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
           99  +  done
          100  +IFS=$as_save_IFS
          101  +
          102  +     ;;
          103  +esac
          104  +# We did not find ourselves, most probably we were run as `sh COMMAND'
          105  +# in which case we are not to be found in the path.
          106  +if test "x$as_myself" = x; then
          107  +  as_myself=$0
          108  +fi
          109  +if test ! -f "$as_myself"; then
          110  +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
          111  +  exit 1
          112  +fi
          113  +
          114  +# Unset variables that we do not need and which cause bugs (e.g. in
          115  +# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
          116  +# suppresses any "Segmentation fault" message there.  '((' could
          117  +# trigger a bug in pdksh 5.2.14.
          118  +for as_var in BASH_ENV ENV MAIL MAILPATH
          119  +do eval test x\${$as_var+set} = xset \
          120  +  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
          121  +done
          122  +PS1='$ '
          123  +PS2='> '
          124  +PS4='+ '
          125  +
          126  +# NLS nuisances.
          127  +LC_ALL=C
          128  +export LC_ALL
          129  +LANGUAGE=C
          130  +export LANGUAGE
          131  +
          132  +# CDPATH.
          133  +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
          134  +
          135  +# Use a proper internal environment variable to ensure we don't fall
          136  +  # into an infinite loop, continuously re-executing ourselves.
          137  +  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
          138  +    _as_can_reexec=no; export _as_can_reexec;
          139  +    # We cannot yet assume a decent shell, so we have to provide a
          140  +# neutralization value for shells without unset; and this also
          141  +# works around shells that cannot unset nonexistent variables.
          142  +# Preserve -v and -x to the replacement shell.
          143  +BASH_ENV=/dev/null
          144  +ENV=/dev/null
          145  +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
          146  +case $- in # ((((
          147  +  *v*x* | *x*v* ) as_opts=-vx ;;
          148  +  *v* ) as_opts=-v ;;
          149  +  *x* ) as_opts=-x ;;
          150  +  * ) as_opts= ;;
          151  +esac
          152  +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
          153  +# Admittedly, this is quite paranoid, since all the known shells bail
          154  +# out after a failed `exec'.
          155  +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
          156  +as_fn_exit 255
          157  +  fi
          158  +  # We don't want this to propagate to other subprocesses.
          159  +          { _as_can_reexec=; unset _as_can_reexec;}
          160  +if test "x$CONFIG_SHELL" = x; then
          161  +  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
          162  +  emulate sh
          163  +  NULLCMD=:
          164  +  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
          165  +  # is contrary to our usage.  Disable this feature.
          166  +  alias -g '\${1+\"\$@\"}'='\"\$@\"'
          167  +  setopt NO_GLOB_SUBST
          168  +else
          169  +  case \`(set -o) 2>/dev/null\` in #(
          170  +  *posix*) :
          171  +    set -o posix ;; #(
          172  +  *) :
          173  +     ;;
          174  +esac
          175  +fi
          176  +"
          177  +  as_required="as_fn_return () { (exit \$1); }
          178  +as_fn_success () { as_fn_return 0; }
          179  +as_fn_failure () { as_fn_return 1; }
          180  +as_fn_ret_success () { return 0; }
          181  +as_fn_ret_failure () { return 1; }
          182  +
          183  +exitcode=0
          184  +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
          185  +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
          186  +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
          187  +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
          188  +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
          189  +
          190  +else
          191  +  exitcode=1; echo positional parameters were not saved.
          192  +fi
          193  +test x\$exitcode = x0 || exit 1
          194  +test -x / || exit 1"
          195  +  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
          196  +  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
          197  +  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
          198  +  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
          199  +test \$(( 1 + 1 )) = 2 || exit 1"
          200  +  if (eval "$as_required") 2>/dev/null; then :
          201  +  as_have_required=yes
          202  +else
          203  +  as_have_required=no
          204  +fi
          205  +  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
          206  +
          207  +else
          208  +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
          209  +as_found=false
          210  +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
          211  +do
          212  +  IFS=$as_save_IFS
          213  +  test -z "$as_dir" && as_dir=.
          214  +  as_found=:
          215  +  case $as_dir in #(
          216  +	 /*)
          217  +	   for as_base in sh bash ksh sh5; do
          218  +	     # Try only shells that exist, to save several forks.
          219  +	     as_shell=$as_dir/$as_base
          220  +	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
          221  +		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
          222  +  CONFIG_SHELL=$as_shell as_have_required=yes
          223  +		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
          224  +  break 2
          225  +fi
          226  +fi
          227  +	   done;;
          228  +       esac
          229  +  as_found=false
          230  +done
          231  +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
          232  +	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
          233  +  CONFIG_SHELL=$SHELL as_have_required=yes
          234  +fi; }
          235  +IFS=$as_save_IFS
          236  +
          237  +
          238  +      if test "x$CONFIG_SHELL" != x; then :
          239  +  export CONFIG_SHELL
          240  +             # We cannot yet assume a decent shell, so we have to provide a
          241  +# neutralization value for shells without unset; and this also
          242  +# works around shells that cannot unset nonexistent variables.
          243  +# Preserve -v and -x to the replacement shell.
          244  +BASH_ENV=/dev/null
          245  +ENV=/dev/null
          246  +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
          247  +case $- in # ((((
          248  +  *v*x* | *x*v* ) as_opts=-vx ;;
          249  +  *v* ) as_opts=-v ;;
          250  +  *x* ) as_opts=-x ;;
          251  +  * ) as_opts= ;;
          252  +esac
          253  +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
          254  +# Admittedly, this is quite paranoid, since all the known shells bail
          255  +# out after a failed `exec'.
          256  +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
          257  +exit 255
          258  +fi
          259  +
          260  +    if test x$as_have_required = xno; then :
          261  +  $as_echo "$0: This script requires a shell more modern than all"
          262  +  $as_echo "$0: the shells that I found on your system."
          263  +  if test x${ZSH_VERSION+set} = xset ; then
          264  +    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
          265  +    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
          266  +  else
          267  +    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
          268  +$0: including any error possibly output before this
          269  +$0: message. Then install a modern shell, or manually run
          270  +$0: the script under such a shell if you do have one."
          271  +  fi
          272  +  exit 1
          273  +fi
          274  +fi
          275  +fi
          276  +SHELL=${CONFIG_SHELL-/bin/sh}
          277  +export SHELL
          278  +# Unset more variables known to interfere with behavior of common tools.
          279  +CLICOLOR_FORCE= GREP_OPTIONS=
          280  +unset CLICOLOR_FORCE GREP_OPTIONS
          281  +
          282  +## --------------------- ##
          283  +## M4sh Shell Functions. ##
          284  +## --------------------- ##
          285  +# as_fn_unset VAR
          286  +# ---------------
          287  +# Portably unset VAR.
          288  +as_fn_unset ()
          289  +{
          290  +  { eval $1=; unset $1;}
          291  +}
          292  +as_unset=as_fn_unset
          293  +
          294  +# as_fn_set_status STATUS
          295  +# -----------------------
          296  +# Set $? to STATUS, without forking.
          297  +as_fn_set_status ()
          298  +{
          299  +  return $1
          300  +} # as_fn_set_status
          301  +
          302  +# as_fn_exit STATUS
          303  +# -----------------
          304  +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
          305  +as_fn_exit ()
          306  +{
          307  +  set +e
          308  +  as_fn_set_status $1
          309  +  exit $1
          310  +} # as_fn_exit
          311  +
          312  +# as_fn_mkdir_p
          313  +# -------------
          314  +# Create "$as_dir" as a directory, including parents if necessary.
          315  +as_fn_mkdir_p ()
          316  +{
          317  +
          318  +  case $as_dir in #(
          319  +  -*) as_dir=./$as_dir;;
          320  +  esac
          321  +  test -d "$as_dir" || eval $as_mkdir_p || {
          322  +    as_dirs=
          323  +    while :; do
          324  +      case $as_dir in #(
          325  +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
          326  +      *) as_qdir=$as_dir;;
          327  +      esac
          328  +      as_dirs="'$as_qdir' $as_dirs"
          329  +      as_dir=`$as_dirname -- "$as_dir" ||
          330  +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
          331  +	 X"$as_dir" : 'X\(//\)[^/]' \| \
          332  +	 X"$as_dir" : 'X\(//\)$' \| \
          333  +	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
          334  +$as_echo X"$as_dir" |
          335  +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
          336  +	    s//\1/
          337  +	    q
          338  +	  }
          339  +	  /^X\(\/\/\)[^/].*/{
          340  +	    s//\1/
          341  +	    q
          342  +	  }
          343  +	  /^X\(\/\/\)$/{
          344  +	    s//\1/
          345  +	    q
          346  +	  }
          347  +	  /^X\(\/\).*/{
          348  +	    s//\1/
          349  +	    q
          350  +	  }
          351  +	  s/.*/./; q'`
          352  +      test -d "$as_dir" && break
          353  +    done
          354  +    test -z "$as_dirs" || eval "mkdir $as_dirs"
          355  +  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
          356  +
          357  +
          358  +} # as_fn_mkdir_p
          359  +
          360  +# as_fn_executable_p FILE
          361  +# -----------------------
          362  +# Test if FILE is an executable regular file.
          363  +as_fn_executable_p ()
          364  +{
          365  +  test -f "$1" && test -x "$1"
          366  +} # as_fn_executable_p
          367  +# as_fn_append VAR VALUE
          368  +# ----------------------
          369  +# Append the text in VALUE to the end of the definition contained in VAR. Take
          370  +# advantage of any shell optimizations that allow amortized linear growth over
          371  +# repeated appends, instead of the typical quadratic growth present in naive
          372  +# implementations.
          373  +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
          374  +  eval 'as_fn_append ()
          375  +  {
          376  +    eval $1+=\$2
          377  +  }'
          378  +else
          379  +  as_fn_append ()
          380  +  {
          381  +    eval $1=\$$1\$2
          382  +  }
          383  +fi # as_fn_append
          384  +
          385  +# as_fn_arith ARG...
          386  +# ------------------
          387  +# Perform arithmetic evaluation on the ARGs, and store the result in the
          388  +# global $as_val. Take advantage of shells that can avoid forks. The arguments
          389  +# must be portable across $(()) and expr.
          390  +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
          391  +  eval 'as_fn_arith ()
          392  +  {
          393  +    as_val=$(( $* ))
          394  +  }'
          395  +else
          396  +  as_fn_arith ()
          397  +  {
          398  +    as_val=`expr "$@" || test $? -eq 1`
          399  +  }
          400  +fi # as_fn_arith
          401  +
          402  +
          403  +# as_fn_error STATUS ERROR [LINENO LOG_FD]
          404  +# ----------------------------------------
          405  +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
          406  +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
          407  +# script with STATUS, using 1 if that was 0.
          408  +as_fn_error ()
          409  +{
          410  +  as_status=$1; test $as_status -eq 0 && as_status=1
          411  +  if test "$4"; then
          412  +    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
          413  +    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
          414  +  fi
          415  +  $as_echo "$as_me: error: $2" >&2
          416  +  as_fn_exit $as_status
          417  +} # as_fn_error
          418  +
          419  +if expr a : '\(a\)' >/dev/null 2>&1 &&
          420  +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
          421  +  as_expr=expr
          422  +else
          423  +  as_expr=false
          424  +fi
          425  +
          426  +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
          427  +  as_basename=basename
          428  +else
          429  +  as_basename=false
          430  +fi
          431  +
          432  +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
          433  +  as_dirname=dirname
          434  +else
          435  +  as_dirname=false
          436  +fi
          437  +
          438  +as_me=`$as_basename -- "$0" ||
          439  +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
          440  +	 X"$0" : 'X\(//\)$' \| \
          441  +	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
          442  +$as_echo X/"$0" |
          443  +    sed '/^.*\/\([^/][^/]*\)\/*$/{
          444  +	    s//\1/
          445  +	    q
          446  +	  }
          447  +	  /^X\/\(\/\/\)$/{
          448  +	    s//\1/
          449  +	    q
          450  +	  }
          451  +	  /^X\/\(\/\).*/{
          452  +	    s//\1/
          453  +	    q
          454  +	  }
          455  +	  s/.*/./; q'`
          456  +
          457  +# Avoid depending upon Character Ranges.
          458  +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
          459  +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
          460  +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
          461  +as_cr_digits='0123456789'
          462  +as_cr_alnum=$as_cr_Letters$as_cr_digits
          463  +
          464  +
          465  +  as_lineno_1=$LINENO as_lineno_1a=$LINENO
          466  +  as_lineno_2=$LINENO as_lineno_2a=$LINENO
          467  +  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
          468  +  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
          469  +  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
          470  +  sed -n '
          471  +    p
          472  +    /[$]LINENO/=
          473  +  ' <$as_myself |
          474  +    sed '
          475  +      s/[$]LINENO.*/&-/
          476  +      t lineno
          477  +      b
          478  +      :lineno
          479  +      N
          480  +      :loop
          481  +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
          482  +      t loop
          483  +      s/-\n.*//
          484  +    ' >$as_me.lineno &&
          485  +  chmod +x "$as_me.lineno" ||
          486  +    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
          487  +
          488  +  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
          489  +  # already done that, so ensure we don't try to do so again and fall
          490  +  # in an infinite loop.  This has already happened in practice.
          491  +  _as_can_reexec=no; export _as_can_reexec
          492  +  # Don't try to exec as it changes $[0], causing all sort of problems
          493  +  # (the dirname of $[0] is not the place where we might find the
          494  +  # original and so on.  Autoconf is especially sensitive to this).
          495  +  . "./$as_me.lineno"
          496  +  # Exit status is that of the last command.
          497  +  exit
          498  +}
          499  +
          500  +ECHO_C= ECHO_N= ECHO_T=
          501  +case `echo -n x` in #(((((
          502  +-n*)
          503  +  case `echo 'xy\c'` in
          504  +  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
          505  +  xy)  ECHO_C='\c';;
          506  +  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
          507  +       ECHO_T='	';;
          508  +  esac;;
          509  +*)
          510  +  ECHO_N='-n';;
          511  +esac
          512  +
          513  +rm -f conf$$ conf$$.exe conf$$.file
          514  +if test -d conf$$.dir; then
          515  +  rm -f conf$$.dir/conf$$.file
          516  +else
          517  +  rm -f conf$$.dir
          518  +  mkdir conf$$.dir 2>/dev/null
          519  +fi
          520  +if (echo >conf$$.file) 2>/dev/null; then
          521  +  if ln -s conf$$.file conf$$ 2>/dev/null; then
          522  +    as_ln_s='ln -s'
          523  +    # ... but there are two gotchas:
          524  +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
          525  +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
          526  +    # In both cases, we have to default to `cp -pR'.
          527  +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
          528  +      as_ln_s='cp -pR'
          529  +  elif ln conf$$.file conf$$ 2>/dev/null; then
          530  +    as_ln_s=ln
          531  +  else
          532  +    as_ln_s='cp -pR'
          533  +  fi
          534  +else
          535  +  as_ln_s='cp -pR'
          536  +fi
          537  +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
          538  +rmdir conf$$.dir 2>/dev/null
          539  +
          540  +if mkdir -p . 2>/dev/null; then
          541  +  as_mkdir_p='mkdir -p "$as_dir"'
          542  +else
          543  +  test -d ./-p && rmdir ./-p
          544  +  as_mkdir_p=false
          545  +fi
          546  +
          547  +as_test_x='test -x'
          548  +as_executable_p=as_fn_executable_p
          549  +
          550  +# Sed expression to map a string onto a valid CPP name.
          551  +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
          552  +
          553  +# Sed expression to map a string onto a valid variable name.
          554  +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
          555  +
          556  +
          557  +test -n "$DJDIR" || exec 7<&0 </dev/null
          558  +exec 6>&1
          559  +
          560  +# Name of the host.
          561  +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
          562  +# so uname gets run too.
          563  +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
          564  +
          565  +#
          566  +# Initializations.
          567  +#
          568  +ac_default_prefix=/usr/local
          569  +ac_clean_files=
          570  +ac_config_libobj_dir=.
          571  +LIBOBJS=
          572  +cross_compiling=no
          573  +subdirs=
          574  +MFLAGS=
          575  +MAKEFLAGS=
          576  +
          577  +# Identity of this package.
          578  +PACKAGE_NAME='aem'
          579  +PACKAGE_TARNAME='aem'
          580  +PACKAGE_VERSION='1.0'
          581  +PACKAGE_STRING='aem 1.0'
          582  +PACKAGE_BUGREPORT=''
          583  +PACKAGE_URL=''
          584  +
          585  +# Factoring default headers for most tests.
          586  +ac_includes_default="\
          587  +#include <stdio.h>
          588  +#ifdef HAVE_SYS_TYPES_H
          589  +# include <sys/types.h>
          590  +#endif
          591  +#ifdef HAVE_SYS_STAT_H
          592  +# include <sys/stat.h>
          593  +#endif
          594  +#ifdef STDC_HEADERS
          595  +# include <stdlib.h>
          596  +# include <stddef.h>
          597  +#else
          598  +# ifdef HAVE_STDLIB_H
          599  +#  include <stdlib.h>
          600  +# endif
          601  +#endif
          602  +#ifdef HAVE_STRING_H
          603  +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
          604  +#  include <memory.h>
          605  +# endif
          606  +# include <string.h>
          607  +#endif
          608  +#ifdef HAVE_STRINGS_H
          609  +# include <strings.h>
          610  +#endif
          611  +#ifdef HAVE_INTTYPES_H
          612  +# include <inttypes.h>
          613  +#endif
          614  +#ifdef HAVE_STDINT_H
          615  +# include <stdint.h>
          616  +#endif
          617  +#ifdef HAVE_UNISTD_H
          618  +# include <unistd.h>
          619  +#endif"
          620  +
          621  +ac_subst_vars='LTLIBOBJS
          622  +WISH_PROG
          623  +TCLSH_PROG
          624  +RANLIB_STUB
          625  +MAKE_STUB_LIB
          626  +MAKE_STATIC_LIB
          627  +MAKE_SHARED_LIB
          628  +MAKE_LIB
          629  +TCL_DBGX
          630  +LDFLAGS_DEFAULT
          631  +CFLAGS_DEFAULT
          632  +LD_LIBRARY_PATH_VAR
          633  +SHLIB_CFLAGS
          634  +SHLIB_LD_LIBS
          635  +SHLIB_LD
          636  +STLIB_LD
          637  +CFLAGS_WARNING
          638  +CFLAGS_OPTIMIZE
          639  +CFLAGS_DEBUG
          640  +DL_LIBS
          641  +LIBOBJS
          642  +CELIB_DIR
          643  +AR
          644  +SHARED_BUILD
          645  +TCL_THREADS
          646  +XMKMF
          647  +TK_XLIB_DIR_NATIVE
          648  +TK_TOP_DIR_NATIVE
          649  +TK_INCLUDES
          650  +TCL_INCLUDES
          651  +CLEANFILES
          652  +PKG_OBJECTS
          653  +PKG_SOURCES
          654  +MATH_LIBS
          655  +EGREP
          656  +GREP
          657  +RANLIB
          658  +SET_MAKE
          659  +INSTALL_DATA
          660  +INSTALL_SCRIPT
          661  +INSTALL_PROGRAM
          662  +CPP
          663  +OBJEXT
          664  +ac_ct_CC
          665  +CPPFLAGS
          666  +LDFLAGS
          667  +CFLAGS
          668  +CC
          669  +TK_XINCLUDES
          670  +TK_LIBS
          671  +TK_STUB_LIB_SPEC
          672  +TK_STUB_LIB_FLAG
          673  +TK_STUB_LIB_FILE
          674  +TK_LIB_SPEC
          675  +TK_LIB_FLAG
          676  +TK_LIB_FILE
          677  +TK_SRC_DIR
          678  +TK_BIN_DIR
          679  +TK_VERSION
          680  +TCL_SHLIB_LD_LIBS
          681  +TCL_LD_FLAGS
          682  +TCL_EXTRA_CFLAGS
          683  +TCL_DEFS
          684  +TCL_LIBS
          685  +TCL_STUB_LIB_SPEC
          686  +TCL_STUB_LIB_FLAG
          687  +TCL_STUB_LIB_FILE
          688  +TCL_LIB_SPEC
          689  +TCL_LIB_FLAG
          690  +TCL_LIB_FILE
          691  +TCL_SRC_DIR
          692  +TCL_BIN_DIR
          693  +TCL_VERSION
          694  +PKG_CFLAGS
          695  +PKG_LIBS
          696  +PKG_INCLUDES
          697  +PKG_HEADERS
          698  +PKG_TCL_SOURCES
          699  +PKG_STUB_OBJECTS
          700  +PKG_STUB_SOURCES
          701  +PKG_STUB_LIB_FILE
          702  +PKG_LIB_FILE
          703  +EXEEXT
          704  +CYGPATH
          705  +target_alias
          706  +host_alias
          707  +build_alias
          708  +LIBS
          709  +ECHO_T
          710  +ECHO_N
          711  +ECHO_C
          712  +DEFS
          713  +mandir
          714  +localedir
          715  +libdir
          716  +psdir
          717  +pdfdir
          718  +dvidir
          719  +htmldir
          720  +infodir
          721  +docdir
          722  +oldincludedir
          723  +includedir
          724  +localstatedir
          725  +sharedstatedir
          726  +sysconfdir
          727  +datadir
          728  +datarootdir
          729  +libexecdir
          730  +sbindir
          731  +bindir
          732  +program_transform_name
          733  +prefix
          734  +exec_prefix
          735  +PACKAGE_URL
          736  +PACKAGE_BUGREPORT
          737  +PACKAGE_STRING
          738  +PACKAGE_VERSION
          739  +PACKAGE_TARNAME
          740  +PACKAGE_NAME
          741  +PATH_SEPARATOR
          742  +SHELL'
          743  +ac_subst_files=''
          744  +ac_user_opts='
          745  +enable_option_checking
          746  +with_tcl
          747  +with_tk
          748  +with_tclinclude
          749  +with_tkinclude
          750  +with_x
          751  +enable_threads
          752  +enable_shared
          753  +enable_64bit
          754  +enable_64bit_vis
          755  +enable_rpath
          756  +enable_wince
          757  +with_celib
          758  +enable_load
          759  +enable_symbols
          760  +'
          761  +      ac_precious_vars='build_alias
          762  +host_alias
          763  +target_alias
          764  +CC
          765  +CFLAGS
          766  +LDFLAGS
          767  +LIBS
          768  +CPPFLAGS
          769  +CPP
          770  +XMKMF'
          771  +
          772  +
          773  +# Initialize some variables set by options.
          774  +ac_init_help=
          775  +ac_init_version=false
          776  +ac_unrecognized_opts=
          777  +ac_unrecognized_sep=
          778  +# The variables have the same names as the options, with
          779  +# dashes changed to underlines.
          780  +cache_file=/dev/null
          781  +exec_prefix=NONE
          782  +no_create=
          783  +no_recursion=
          784  +prefix=NONE
          785  +program_prefix=NONE
          786  +program_suffix=NONE
          787  +program_transform_name=s,x,x,
          788  +silent=
          789  +site=
          790  +srcdir=
          791  +verbose=
          792  +x_includes=NONE
          793  +x_libraries=NONE
          794  +
          795  +# Installation directory options.
          796  +# These are left unexpanded so users can "make install exec_prefix=/foo"
          797  +# and all the variables that are supposed to be based on exec_prefix
          798  +# by default will actually change.
          799  +# Use braces instead of parens because sh, perl, etc. also accept them.
          800  +# (The list follows the same order as the GNU Coding Standards.)
          801  +bindir='${exec_prefix}/bin'
          802  +sbindir='${exec_prefix}/sbin'
          803  +libexecdir='${exec_prefix}/libexec'
          804  +datarootdir='${prefix}/share'
          805  +datadir='${datarootdir}'
          806  +sysconfdir='${prefix}/etc'
          807  +sharedstatedir='${prefix}/com'
          808  +localstatedir='${prefix}/var'
          809  +includedir='${prefix}/include'
          810  +oldincludedir='/usr/include'
          811  +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
          812  +infodir='${datarootdir}/info'
          813  +htmldir='${docdir}'
          814  +dvidir='${docdir}'
          815  +pdfdir='${docdir}'
          816  +psdir='${docdir}'
          817  +libdir='${exec_prefix}/lib'
          818  +localedir='${datarootdir}/locale'
          819  +mandir='${datarootdir}/man'
          820  +
          821  +ac_prev=
          822  +ac_dashdash=
          823  +for ac_option
          824  +do
          825  +  # If the previous option needs an argument, assign it.
          826  +  if test -n "$ac_prev"; then
          827  +    eval $ac_prev=\$ac_option
          828  +    ac_prev=
          829  +    continue
          830  +  fi
          831  +
          832  +  case $ac_option in
          833  +  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
          834  +  *=)   ac_optarg= ;;
          835  +  *)    ac_optarg=yes ;;
          836  +  esac
          837  +
          838  +  # Accept the important Cygnus configure options, so we can diagnose typos.
          839  +
          840  +  case $ac_dashdash$ac_option in
          841  +  --)
          842  +    ac_dashdash=yes ;;
          843  +
          844  +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
          845  +    ac_prev=bindir ;;
          846  +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
          847  +    bindir=$ac_optarg ;;
          848  +
          849  +  -build | --build | --buil | --bui | --bu)
          850  +    ac_prev=build_alias ;;
          851  +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
          852  +    build_alias=$ac_optarg ;;
          853  +
          854  +  -cache-file | --cache-file | --cache-fil | --cache-fi \
          855  +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
          856  +    ac_prev=cache_file ;;
          857  +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
          858  +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
          859  +    cache_file=$ac_optarg ;;
          860  +
          861  +  --config-cache | -C)
          862  +    cache_file=config.cache ;;
          863  +
          864  +  -datadir | --datadir | --datadi | --datad)
          865  +    ac_prev=datadir ;;
          866  +  -datadir=* | --datadir=* | --datadi=* | --datad=*)
          867  +    datadir=$ac_optarg ;;
          868  +
          869  +  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
          870  +  | --dataroo | --dataro | --datar)
          871  +    ac_prev=datarootdir ;;
          872  +  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
          873  +  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
          874  +    datarootdir=$ac_optarg ;;
          875  +
          876  +  -disable-* | --disable-*)
          877  +    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
          878  +    # Reject names that are not valid shell variable names.
          879  +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
          880  +      as_fn_error $? "invalid feature name: $ac_useropt"
          881  +    ac_useropt_orig=$ac_useropt
          882  +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
          883  +    case $ac_user_opts in
          884  +      *"
          885  +"enable_$ac_useropt"
          886  +"*) ;;
          887  +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
          888  +	 ac_unrecognized_sep=', ';;
          889  +    esac
          890  +    eval enable_$ac_useropt=no ;;
          891  +
          892  +  -docdir | --docdir | --docdi | --doc | --do)
          893  +    ac_prev=docdir ;;
          894  +  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
          895  +    docdir=$ac_optarg ;;
          896  +
          897  +  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
          898  +    ac_prev=dvidir ;;
          899  +  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
          900  +    dvidir=$ac_optarg ;;
          901  +
          902  +  -enable-* | --enable-*)
          903  +    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
          904  +    # Reject names that are not valid shell variable names.
          905  +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
          906  +      as_fn_error $? "invalid feature name: $ac_useropt"
          907  +    ac_useropt_orig=$ac_useropt
          908  +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
          909  +    case $ac_user_opts in
          910  +      *"
          911  +"enable_$ac_useropt"
          912  +"*) ;;
          913  +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
          914  +	 ac_unrecognized_sep=', ';;
          915  +    esac
          916  +    eval enable_$ac_useropt=\$ac_optarg ;;
          917  +
          918  +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
          919  +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
          920  +  | --exec | --exe | --ex)
          921  +    ac_prev=exec_prefix ;;
          922  +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
          923  +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
          924  +  | --exec=* | --exe=* | --ex=*)
          925  +    exec_prefix=$ac_optarg ;;
          926  +
          927  +  -gas | --gas | --ga | --g)
          928  +    # Obsolete; use --with-gas.
          929  +    with_gas=yes ;;
          930  +
          931  +  -help | --help | --hel | --he | -h)
          932  +    ac_init_help=long ;;
          933  +  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
          934  +    ac_init_help=recursive ;;
          935  +  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
          936  +    ac_init_help=short ;;
          937  +
          938  +  -host | --host | --hos | --ho)
          939  +    ac_prev=host_alias ;;
          940  +  -host=* | --host=* | --hos=* | --ho=*)
          941  +    host_alias=$ac_optarg ;;
          942  +
          943  +  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
          944  +    ac_prev=htmldir ;;
          945  +  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
          946  +  | --ht=*)
          947  +    htmldir=$ac_optarg ;;
          948  +
          949  +  -includedir | --includedir | --includedi | --included | --include \
          950  +  | --includ | --inclu | --incl | --inc)
          951  +    ac_prev=includedir ;;
          952  +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
          953  +  | --includ=* | --inclu=* | --incl=* | --inc=*)
          954  +    includedir=$ac_optarg ;;
          955  +
          956  +  -infodir | --infodir | --infodi | --infod | --info | --inf)
          957  +    ac_prev=infodir ;;
          958  +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
          959  +    infodir=$ac_optarg ;;
          960  +
          961  +  -libdir | --libdir | --libdi | --libd)
          962  +    ac_prev=libdir ;;
          963  +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
          964  +    libdir=$ac_optarg ;;
          965  +
          966  +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
          967  +  | --libexe | --libex | --libe)
          968  +    ac_prev=libexecdir ;;
          969  +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
          970  +  | --libexe=* | --libex=* | --libe=*)
          971  +    libexecdir=$ac_optarg ;;
          972  +
          973  +  -localedir | --localedir | --localedi | --localed | --locale)
          974  +    ac_prev=localedir ;;
          975  +  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
          976  +    localedir=$ac_optarg ;;
          977  +
          978  +  -localstatedir | --localstatedir | --localstatedi | --localstated \
          979  +  | --localstate | --localstat | --localsta | --localst | --locals)
          980  +    ac_prev=localstatedir ;;
          981  +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
          982  +  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
          983  +    localstatedir=$ac_optarg ;;
          984  +
          985  +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
          986  +    ac_prev=mandir ;;
          987  +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
          988  +    mandir=$ac_optarg ;;
          989  +
          990  +  -nfp | --nfp | --nf)
          991  +    # Obsolete; use --without-fp.
          992  +    with_fp=no ;;
          993  +
          994  +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
          995  +  | --no-cr | --no-c | -n)
          996  +    no_create=yes ;;
          997  +
          998  +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
          999  +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
         1000  +    no_recursion=yes ;;
         1001  +
         1002  +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
         1003  +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
         1004  +  | --oldin | --oldi | --old | --ol | --o)
         1005  +    ac_prev=oldincludedir ;;
         1006  +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
         1007  +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
         1008  +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
         1009  +    oldincludedir=$ac_optarg ;;
         1010  +
         1011  +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
         1012  +    ac_prev=prefix ;;
         1013  +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
         1014  +    prefix=$ac_optarg ;;
         1015  +
         1016  +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
         1017  +  | --program-pre | --program-pr | --program-p)
         1018  +    ac_prev=program_prefix ;;
         1019  +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
         1020  +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
         1021  +    program_prefix=$ac_optarg ;;
         1022  +
         1023  +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
         1024  +  | --program-suf | --program-su | --program-s)
         1025  +    ac_prev=program_suffix ;;
         1026  +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
         1027  +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
         1028  +    program_suffix=$ac_optarg ;;
         1029  +
         1030  +  -program-transform-name | --program-transform-name \
         1031  +  | --program-transform-nam | --program-transform-na \
         1032  +  | --program-transform-n | --program-transform- \
         1033  +  | --program-transform | --program-transfor \
         1034  +  | --program-transfo | --program-transf \
         1035  +  | --program-trans | --program-tran \
         1036  +  | --progr-tra | --program-tr | --program-t)
         1037  +    ac_prev=program_transform_name ;;
         1038  +  -program-transform-name=* | --program-transform-name=* \
         1039  +  | --program-transform-nam=* | --program-transform-na=* \
         1040  +  | --program-transform-n=* | --program-transform-=* \
         1041  +  | --program-transform=* | --program-transfor=* \
         1042  +  | --program-transfo=* | --program-transf=* \
         1043  +  | --program-trans=* | --program-tran=* \
         1044  +  | --progr-tra=* | --program-tr=* | --program-t=*)
         1045  +    program_transform_name=$ac_optarg ;;
         1046  +
         1047  +  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
         1048  +    ac_prev=pdfdir ;;
         1049  +  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
         1050  +    pdfdir=$ac_optarg ;;
         1051  +
         1052  +  -psdir | --psdir | --psdi | --psd | --ps)
         1053  +    ac_prev=psdir ;;
         1054  +  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
         1055  +    psdir=$ac_optarg ;;
         1056  +
         1057  +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
         1058  +  | -silent | --silent | --silen | --sile | --sil)
         1059  +    silent=yes ;;
         1060  +
         1061  +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
         1062  +    ac_prev=sbindir ;;
         1063  +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
         1064  +  | --sbi=* | --sb=*)
         1065  +    sbindir=$ac_optarg ;;
         1066  +
         1067  +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
         1068  +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
         1069  +  | --sharedst | --shareds | --shared | --share | --shar \
         1070  +  | --sha | --sh)
         1071  +    ac_prev=sharedstatedir ;;
         1072  +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
         1073  +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
         1074  +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
         1075  +  | --sha=* | --sh=*)
         1076  +    sharedstatedir=$ac_optarg ;;
         1077  +
         1078  +  -site | --site | --sit)
         1079  +    ac_prev=site ;;
         1080  +  -site=* | --site=* | --sit=*)
         1081  +    site=$ac_optarg ;;
         1082  +
         1083  +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
         1084  +    ac_prev=srcdir ;;
         1085  +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
         1086  +    srcdir=$ac_optarg ;;
         1087  +
         1088  +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
         1089  +  | --syscon | --sysco | --sysc | --sys | --sy)
         1090  +    ac_prev=sysconfdir ;;
         1091  +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
         1092  +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
         1093  +    sysconfdir=$ac_optarg ;;
         1094  +
         1095  +  -target | --target | --targe | --targ | --tar | --ta | --t)
         1096  +    ac_prev=target_alias ;;
         1097  +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
         1098  +    target_alias=$ac_optarg ;;
         1099  +
         1100  +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
         1101  +    verbose=yes ;;
         1102  +
         1103  +  -version | --version | --versio | --versi | --vers | -V)
         1104  +    ac_init_version=: ;;
         1105  +
         1106  +  -with-* | --with-*)
         1107  +    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
         1108  +    # Reject names that are not valid shell variable names.
         1109  +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
         1110  +      as_fn_error $? "invalid package name: $ac_useropt"
         1111  +    ac_useropt_orig=$ac_useropt
         1112  +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
         1113  +    case $ac_user_opts in
         1114  +      *"
         1115  +"with_$ac_useropt"
         1116  +"*) ;;
         1117  +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
         1118  +	 ac_unrecognized_sep=', ';;
         1119  +    esac
         1120  +    eval with_$ac_useropt=\$ac_optarg ;;
         1121  +
         1122  +  -without-* | --without-*)
         1123  +    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
         1124  +    # Reject names that are not valid shell variable names.
         1125  +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
         1126  +      as_fn_error $? "invalid package name: $ac_useropt"
         1127  +    ac_useropt_orig=$ac_useropt
         1128  +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
         1129  +    case $ac_user_opts in
         1130  +      *"
         1131  +"with_$ac_useropt"
         1132  +"*) ;;
         1133  +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
         1134  +	 ac_unrecognized_sep=', ';;
         1135  +    esac
         1136  +    eval with_$ac_useropt=no ;;
         1137  +
         1138  +  --x)
         1139  +    # Obsolete; use --with-x.
         1140  +    with_x=yes ;;
         1141  +
         1142  +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
         1143  +  | --x-incl | --x-inc | --x-in | --x-i)
         1144  +    ac_prev=x_includes ;;
         1145  +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
         1146  +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
         1147  +    x_includes=$ac_optarg ;;
         1148  +
         1149  +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
         1150  +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
         1151  +    ac_prev=x_libraries ;;
         1152  +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
         1153  +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
         1154  +    x_libraries=$ac_optarg ;;
         1155  +
         1156  +  -*) as_fn_error $? "unrecognized option: \`$ac_option'
         1157  +Try \`$0 --help' for more information"
         1158  +    ;;
         1159  +
         1160  +  *=*)
         1161  +    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
         1162  +    # Reject names that are not valid shell variable names.
         1163  +    case $ac_envvar in #(
         1164  +      '' | [0-9]* | *[!_$as_cr_alnum]* )
         1165  +      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
         1166  +    esac
         1167  +    eval $ac_envvar=\$ac_optarg
         1168  +    export $ac_envvar ;;
         1169  +
         1170  +  *)
         1171  +    # FIXME: should be removed in autoconf 3.0.
         1172  +    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
         1173  +    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
         1174  +      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
         1175  +    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
         1176  +    ;;
         1177  +
         1178  +  esac
         1179  +done
         1180  +
         1181  +if test -n "$ac_prev"; then
         1182  +  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
         1183  +  as_fn_error $? "missing argument to $ac_option"
         1184  +fi
         1185  +
         1186  +if test -n "$ac_unrecognized_opts"; then
         1187  +  case $enable_option_checking in
         1188  +    no) ;;
         1189  +    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
         1190  +    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
         1191  +  esac
         1192  +fi
         1193  +
         1194  +# Check all directory arguments for consistency.
         1195  +for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
         1196  +		datadir sysconfdir sharedstatedir localstatedir includedir \
         1197  +		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
         1198  +		libdir localedir mandir
         1199  +do
         1200  +  eval ac_val=\$$ac_var
         1201  +  # Remove trailing slashes.
         1202  +  case $ac_val in
         1203  +    */ )
         1204  +      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
         1205  +      eval $ac_var=\$ac_val;;
         1206  +  esac
         1207  +  # Be sure to have absolute directory names.
         1208  +  case $ac_val in
         1209  +    [\\/$]* | ?:[\\/]* )  continue;;
         1210  +    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
         1211  +  esac
         1212  +  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
         1213  +done
         1214  +
         1215  +# There might be people who depend on the old broken behavior: `$host'
         1216  +# used to hold the argument of --host etc.
         1217  +# FIXME: To remove some day.
         1218  +build=$build_alias
         1219  +host=$host_alias
         1220  +target=$target_alias
         1221  +
         1222  +# FIXME: To remove some day.
         1223  +if test "x$host_alias" != x; then
         1224  +  if test "x$build_alias" = x; then
         1225  +    cross_compiling=maybe
         1226  +  elif test "x$build_alias" != "x$host_alias"; then
         1227  +    cross_compiling=yes
         1228  +  fi
         1229  +fi
         1230  +
         1231  +ac_tool_prefix=
         1232  +test -n "$host_alias" && ac_tool_prefix=$host_alias-
         1233  +
         1234  +test "$silent" = yes && exec 6>/dev/null
         1235  +
         1236  +
         1237  +ac_pwd=`pwd` && test -n "$ac_pwd" &&
         1238  +ac_ls_di=`ls -di .` &&
         1239  +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
         1240  +  as_fn_error $? "working directory cannot be determined"
         1241  +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
         1242  +  as_fn_error $? "pwd does not report name of working directory"
         1243  +
         1244  +
         1245  +# Find the source files, if location was not specified.
         1246  +if test -z "$srcdir"; then
         1247  +  ac_srcdir_defaulted=yes
         1248  +  # Try the directory containing this script, then the parent directory.
         1249  +  ac_confdir=`$as_dirname -- "$as_myself" ||
         1250  +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         1251  +	 X"$as_myself" : 'X\(//\)[^/]' \| \
         1252  +	 X"$as_myself" : 'X\(//\)$' \| \
         1253  +	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
         1254  +$as_echo X"$as_myself" |
         1255  +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
         1256  +	    s//\1/
         1257  +	    q
         1258  +	  }
         1259  +	  /^X\(\/\/\)[^/].*/{
         1260  +	    s//\1/
         1261  +	    q
         1262  +	  }
         1263  +	  /^X\(\/\/\)$/{
         1264  +	    s//\1/
         1265  +	    q
         1266  +	  }
         1267  +	  /^X\(\/\).*/{
         1268  +	    s//\1/
         1269  +	    q
         1270  +	  }
         1271  +	  s/.*/./; q'`
         1272  +  srcdir=$ac_confdir
         1273  +  if test ! -r "$srcdir/$ac_unique_file"; then
         1274  +    srcdir=..
         1275  +  fi
         1276  +else
         1277  +  ac_srcdir_defaulted=no
         1278  +fi
         1279  +if test ! -r "$srcdir/$ac_unique_file"; then
         1280  +  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
         1281  +  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
         1282  +fi
         1283  +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
         1284  +ac_abs_confdir=`(
         1285  +	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
         1286  +	pwd)`
         1287  +# When building in place, set srcdir=.
         1288  +if test "$ac_abs_confdir" = "$ac_pwd"; then
         1289  +  srcdir=.
         1290  +fi
         1291  +# Remove unnecessary trailing slashes from srcdir.
         1292  +# Double slashes in file names in object file debugging info
         1293  +# mess up M-x gdb in Emacs.
         1294  +case $srcdir in
         1295  +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
         1296  +esac
         1297  +for ac_var in $ac_precious_vars; do
         1298  +  eval ac_env_${ac_var}_set=\${${ac_var}+set}
         1299  +  eval ac_env_${ac_var}_value=\$${ac_var}
         1300  +  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
         1301  +  eval ac_cv_env_${ac_var}_value=\$${ac_var}
         1302  +done
         1303  +
         1304  +#
         1305  +# Report the --help message.
         1306  +#
         1307  +if test "$ac_init_help" = "long"; then
         1308  +  # Omit some internal or obsolete options to make the list less imposing.
         1309  +  # This message is too long to be a string in the A/UX 3.1 sh.
         1310  +  cat <<_ACEOF
         1311  +\`configure' configures aem 1.0 to adapt to many kinds of systems.
         1312  +
         1313  +Usage: $0 [OPTION]... [VAR=VALUE]...
         1314  +
         1315  +To assign environment variables (e.g., CC, CFLAGS...), specify them as
         1316  +VAR=VALUE.  See below for descriptions of some of the useful variables.
         1317  +
         1318  +Defaults for the options are specified in brackets.
         1319  +
         1320  +Configuration:
         1321  +  -h, --help              display this help and exit
         1322  +      --help=short        display options specific to this package
         1323  +      --help=recursive    display the short help of all the included packages
         1324  +  -V, --version           display version information and exit
         1325  +  -q, --quiet, --silent   do not print \`checking ...' messages
         1326  +      --cache-file=FILE   cache test results in FILE [disabled]
         1327  +  -C, --config-cache      alias for \`--cache-file=config.cache'
         1328  +  -n, --no-create         do not create output files
         1329  +      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
         1330  +
         1331  +Installation directories:
         1332  +  --prefix=PREFIX         install architecture-independent files in PREFIX
         1333  +                          [$ac_default_prefix]
         1334  +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
         1335  +                          [PREFIX]
         1336  +
         1337  +By default, \`make install' will install all the files in
         1338  +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
         1339  +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
         1340  +for instance \`--prefix=\$HOME'.
         1341  +
         1342  +For better control, use the options below.
         1343  +
         1344  +Fine tuning of the installation directories:
         1345  +  --bindir=DIR            user executables [EPREFIX/bin]
         1346  +  --sbindir=DIR           system admin executables [EPREFIX/sbin]
         1347  +  --libexecdir=DIR        program executables [EPREFIX/libexec]
         1348  +  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
         1349  +  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
         1350  +  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
         1351  +  --libdir=DIR            object code libraries [EPREFIX/lib]
         1352  +  --includedir=DIR        C header files [PREFIX/include]
         1353  +  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
         1354  +  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
         1355  +  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
         1356  +  --infodir=DIR           info documentation [DATAROOTDIR/info]
         1357  +  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
         1358  +  --mandir=DIR            man documentation [DATAROOTDIR/man]
         1359  +  --docdir=DIR            documentation root [DATAROOTDIR/doc/aem]
         1360  +  --htmldir=DIR           html documentation [DOCDIR]
         1361  +  --dvidir=DIR            dvi documentation [DOCDIR]
         1362  +  --pdfdir=DIR            pdf documentation [DOCDIR]
         1363  +  --psdir=DIR             ps documentation [DOCDIR]
         1364  +_ACEOF
         1365  +
         1366  +  cat <<\_ACEOF
         1367  +
         1368  +X features:
         1369  +  --x-includes=DIR    X include files are in DIR
         1370  +  --x-libraries=DIR   X library files are in DIR
         1371  +_ACEOF
         1372  +fi
         1373  +
         1374  +if test -n "$ac_init_help"; then
         1375  +  case $ac_init_help in
         1376  +     short | recursive ) echo "Configuration of aem 1.0:";;
         1377  +   esac
         1378  +  cat <<\_ACEOF
         1379  +
         1380  +Optional Features:
         1381  +  --disable-option-checking  ignore unrecognized --enable/--with options
         1382  +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
         1383  +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
         1384  +  --enable-threads        build with threads
         1385  +  --enable-shared         build and link with shared libraries (default: on)
         1386  +  --enable-64bit          enable 64bit support (default: off)
         1387  +  --enable-64bit-vis      enable 64bit Sparc VIS support (default: off)
         1388  +  --disable-rpath         disable rpath support (default: on)
         1389  +  --enable-wince          enable Win/CE support (where applicable)
         1390  +  --enable-load           allow dynamic loading and "load" command (default:
         1391  +                          on)
         1392  +  --enable-symbols        build with debugging symbols (default: off)
         1393  +
         1394  +Optional Packages:
         1395  +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
         1396  +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
         1397  +  --with-tcl              directory containing tcl configuration
         1398  +                          (tclConfig.sh)
         1399  +  --with-tk               directory containing tk configuration (tkConfig.sh)
         1400  +  --with-tclinclude       directory containing the public Tcl header files
         1401  +  --with-tkinclude        directory containing the public Tk header files
         1402  +  --with-x                use the X Window System
         1403  +  --with-celib=DIR        use Windows/CE support library from DIR
         1404  +
         1405  +Some influential environment variables:
         1406  +  CC          C compiler command
         1407  +  CFLAGS      C compiler flags
         1408  +  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
         1409  +              nonstandard directory <lib dir>
         1410  +  LIBS        libraries to pass to the linker, e.g. -l<library>
         1411  +  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
         1412  +              you have headers in a nonstandard directory <include dir>
         1413  +  CPP         C preprocessor
         1414  +  XMKMF       Path to xmkmf, Makefile generator for X Window System
         1415  +
         1416  +Use these variables to override the choices made by `configure' or to help
         1417  +it to find libraries and programs with nonstandard names/locations.
         1418  +
         1419  +Report bugs to the package provider.
         1420  +_ACEOF
         1421  +ac_status=$?
         1422  +fi
         1423  +
         1424  +if test "$ac_init_help" = "recursive"; then
         1425  +  # If there are subdirs, report their specific --help.
         1426  +  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
         1427  +    test -d "$ac_dir" ||
         1428  +      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
         1429  +      continue
         1430  +    ac_builddir=.
         1431  +
         1432  +case "$ac_dir" in
         1433  +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
         1434  +*)
         1435  +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
         1436  +  # A ".." for each directory in $ac_dir_suffix.
         1437  +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
         1438  +  case $ac_top_builddir_sub in
         1439  +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
         1440  +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
         1441  +  esac ;;
         1442  +esac
         1443  +ac_abs_top_builddir=$ac_pwd
         1444  +ac_abs_builddir=$ac_pwd$ac_dir_suffix
         1445  +# for backward compatibility:
         1446  +ac_top_builddir=$ac_top_build_prefix
         1447  +
         1448  +case $srcdir in
         1449  +  .)  # We are building in place.
         1450  +    ac_srcdir=.
         1451  +    ac_top_srcdir=$ac_top_builddir_sub
         1452  +    ac_abs_top_srcdir=$ac_pwd ;;
         1453  +  [\\/]* | ?:[\\/]* )  # Absolute name.
         1454  +    ac_srcdir=$srcdir$ac_dir_suffix;
         1455  +    ac_top_srcdir=$srcdir
         1456  +    ac_abs_top_srcdir=$srcdir ;;
         1457  +  *) # Relative name.
         1458  +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
         1459  +    ac_top_srcdir=$ac_top_build_prefix$srcdir
         1460  +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
         1461  +esac
         1462  +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
         1463  +
         1464  +    cd "$ac_dir" || { ac_status=$?; continue; }
         1465  +    # Check for guested configure.
         1466  +    if test -f "$ac_srcdir/configure.gnu"; then
         1467  +      echo &&
         1468  +      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
         1469  +    elif test -f "$ac_srcdir/configure"; then
         1470  +      echo &&
         1471  +      $SHELL "$ac_srcdir/configure" --help=recursive
         1472  +    else
         1473  +      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
         1474  +    fi || ac_status=$?
         1475  +    cd "$ac_pwd" || { ac_status=$?; break; }
         1476  +  done
         1477  +fi
         1478  +
         1479  +test -n "$ac_init_help" && exit $ac_status
         1480  +if $ac_init_version; then
         1481  +  cat <<\_ACEOF
         1482  +aem configure 1.0
         1483  +generated by GNU Autoconf 2.69
         1484  +
         1485  +Copyright (C) 2012 Free Software Foundation, Inc.
         1486  +This configure script is free software; the Free Software Foundation
         1487  +gives unlimited permission to copy, distribute and modify it.
         1488  +_ACEOF
         1489  +  exit
         1490  +fi
         1491  +
         1492  +## ------------------------ ##
         1493  +## Autoconf initialization. ##
         1494  +## ------------------------ ##
         1495  +
         1496  +# ac_fn_c_try_compile LINENO
         1497  +# --------------------------
         1498  +# Try to compile conftest.$ac_ext, and return whether this succeeded.
         1499  +ac_fn_c_try_compile ()
         1500  +{
         1501  +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
         1502  +  rm -f conftest.$ac_objext
         1503  +  if { { ac_try="$ac_compile"
         1504  +case "(($ac_try" in
         1505  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         1506  +  *) ac_try_echo=$ac_try;;
         1507  +esac
         1508  +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
         1509  +$as_echo "$ac_try_echo"; } >&5
         1510  +  (eval "$ac_compile") 2>conftest.err
         1511  +  ac_status=$?
         1512  +  if test -s conftest.err; then
         1513  +    grep -v '^ *+' conftest.err >conftest.er1
         1514  +    cat conftest.er1 >&5
         1515  +    mv -f conftest.er1 conftest.err
         1516  +  fi
         1517  +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
         1518  +  test $ac_status = 0; } && {
         1519  +	 test -z "$ac_c_werror_flag" ||
         1520  +	 test ! -s conftest.err
         1521  +       } && test -s conftest.$ac_objext; then :
         1522  +  ac_retval=0
         1523  +else
         1524  +  $as_echo "$as_me: failed program was:" >&5
         1525  +sed 's/^/| /' conftest.$ac_ext >&5
         1526  +
         1527  +	ac_retval=1
         1528  +fi
         1529  +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
         1530  +  as_fn_set_status $ac_retval
         1531  +
         1532  +} # ac_fn_c_try_compile
         1533  +
         1534  +# ac_fn_c_try_cpp LINENO
         1535  +# ----------------------
         1536  +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
         1537  +ac_fn_c_try_cpp ()
         1538  +{
         1539  +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
         1540  +  if { { ac_try="$ac_cpp conftest.$ac_ext"
         1541  +case "(($ac_try" in
         1542  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         1543  +  *) ac_try_echo=$ac_try;;
         1544  +esac
         1545  +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
         1546  +$as_echo "$ac_try_echo"; } >&5
         1547  +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
         1548  +  ac_status=$?
         1549  +  if test -s conftest.err; then
         1550  +    grep -v '^ *+' conftest.err >conftest.er1
         1551  +    cat conftest.er1 >&5
         1552  +    mv -f conftest.er1 conftest.err
         1553  +  fi
         1554  +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
         1555  +  test $ac_status = 0; } > conftest.i && {
         1556  +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
         1557  +	 test ! -s conftest.err
         1558  +       }; then :
         1559  +  ac_retval=0
         1560  +else
         1561  +  $as_echo "$as_me: failed program was:" >&5
         1562  +sed 's/^/| /' conftest.$ac_ext >&5
         1563  +
         1564  +    ac_retval=1
         1565  +fi
         1566  +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
         1567  +  as_fn_set_status $ac_retval
         1568  +
         1569  +} # ac_fn_c_try_cpp
         1570  +
         1571  +# ac_fn_c_try_run LINENO
         1572  +# ----------------------
         1573  +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
         1574  +# that executables *can* be run.
         1575  +ac_fn_c_try_run ()
         1576  +{
         1577  +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
         1578  +  if { { ac_try="$ac_link"
         1579  +case "(($ac_try" in
         1580  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         1581  +  *) ac_try_echo=$ac_try;;
         1582  +esac
         1583  +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
         1584  +$as_echo "$ac_try_echo"; } >&5
         1585  +  (eval "$ac_link") 2>&5
         1586  +  ac_status=$?
         1587  +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
         1588  +  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
         1589  +  { { case "(($ac_try" in
         1590  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         1591  +  *) ac_try_echo=$ac_try;;
         1592  +esac
         1593  +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
         1594  +$as_echo "$ac_try_echo"; } >&5
         1595  +  (eval "$ac_try") 2>&5
         1596  +  ac_status=$?
         1597  +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
         1598  +  test $ac_status = 0; }; }; then :
         1599  +  ac_retval=0
         1600  +else
         1601  +  $as_echo "$as_me: program exited with status $ac_status" >&5
         1602  +       $as_echo "$as_me: failed program was:" >&5
         1603  +sed 's/^/| /' conftest.$ac_ext >&5
         1604  +
         1605  +       ac_retval=$ac_status
         1606  +fi
         1607  +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
         1608  +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
         1609  +  as_fn_set_status $ac_retval
         1610  +
         1611  +} # ac_fn_c_try_run
         1612  +
         1613  +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
         1614  +# -------------------------------------------------------
         1615  +# Tests whether HEADER exists and can be compiled using the include files in
         1616  +# INCLUDES, setting the cache variable VAR accordingly.
         1617  +ac_fn_c_check_header_compile ()
         1618  +{
         1619  +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
         1620  +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
         1621  +$as_echo_n "checking for $2... " >&6; }
         1622  +if eval \${$3+:} false; then :
         1623  +  $as_echo_n "(cached) " >&6
         1624  +else
         1625  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         1626  +/* end confdefs.h.  */
         1627  +$4
         1628  +#include <$2>
         1629  +_ACEOF
         1630  +if ac_fn_c_try_compile "$LINENO"; then :
         1631  +  eval "$3=yes"
         1632  +else
         1633  +  eval "$3=no"
         1634  +fi
         1635  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         1636  +fi
         1637  +eval ac_res=\$$3
         1638  +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
         1639  +$as_echo "$ac_res" >&6; }
         1640  +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
         1641  +
         1642  +} # ac_fn_c_check_header_compile
         1643  +
         1644  +# ac_fn_c_try_link LINENO
         1645  +# -----------------------
         1646  +# Try to link conftest.$ac_ext, and return whether this succeeded.
         1647  +ac_fn_c_try_link ()
         1648  +{
         1649  +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
         1650  +  rm -f conftest.$ac_objext conftest$ac_exeext
         1651  +  if { { ac_try="$ac_link"
         1652  +case "(($ac_try" in
         1653  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         1654  +  *) ac_try_echo=$ac_try;;
         1655  +esac
         1656  +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
         1657  +$as_echo "$ac_try_echo"; } >&5
         1658  +  (eval "$ac_link") 2>conftest.err
         1659  +  ac_status=$?
         1660  +  if test -s conftest.err; then
         1661  +    grep -v '^ *+' conftest.err >conftest.er1
         1662  +    cat conftest.er1 >&5
         1663  +    mv -f conftest.er1 conftest.err
         1664  +  fi
         1665  +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
         1666  +  test $ac_status = 0; } && {
         1667  +	 test -z "$ac_c_werror_flag" ||
         1668  +	 test ! -s conftest.err
         1669  +       } && test -s conftest$ac_exeext && {
         1670  +	 test "$cross_compiling" = yes ||
         1671  +	 test -x conftest$ac_exeext
         1672  +       }; then :
         1673  +  ac_retval=0
         1674  +else
         1675  +  $as_echo "$as_me: failed program was:" >&5
         1676  +sed 's/^/| /' conftest.$ac_ext >&5
         1677  +
         1678  +	ac_retval=1
         1679  +fi
         1680  +  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
         1681  +  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
         1682  +  # interfere with the next link command; also delete a directory that is
         1683  +  # left behind by Apple's compiler.  We do this before executing the actions.
         1684  +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
         1685  +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
         1686  +  as_fn_set_status $ac_retval
         1687  +
         1688  +} # ac_fn_c_try_link
         1689  +
         1690  +# ac_fn_c_check_func LINENO FUNC VAR
         1691  +# ----------------------------------
         1692  +# Tests whether FUNC exists, setting the cache variable VAR accordingly
         1693  +ac_fn_c_check_func ()
         1694  +{
         1695  +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
         1696  +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
         1697  +$as_echo_n "checking for $2... " >&6; }
         1698  +if eval \${$3+:} false; then :
         1699  +  $as_echo_n "(cached) " >&6
         1700  +else
         1701  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         1702  +/* end confdefs.h.  */
         1703  +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
         1704  +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
         1705  +#define $2 innocuous_$2
         1706  +
         1707  +/* System header to define __stub macros and hopefully few prototypes,
         1708  +    which can conflict with char $2 (); below.
         1709  +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
         1710  +    <limits.h> exists even on freestanding compilers.  */
         1711  +
         1712  +#ifdef __STDC__
         1713  +# include <limits.h>
         1714  +#else
         1715  +# include <assert.h>
         1716  +#endif
         1717  +
         1718  +#undef $2
         1719  +
         1720  +/* Override any GCC internal prototype to avoid an error.
         1721  +   Use char because int might match the return type of a GCC
         1722  +   builtin and then its argument prototype would still apply.  */
         1723  +#ifdef __cplusplus
         1724  +extern "C"
         1725  +#endif
         1726  +char $2 ();
         1727  +/* The GNU C library defines this for functions which it implements
         1728  +    to always fail with ENOSYS.  Some functions are actually named
         1729  +    something starting with __ and the normal name is an alias.  */
         1730  +#if defined __stub_$2 || defined __stub___$2
         1731  +choke me
         1732  +#endif
         1733  +
         1734  +int
         1735  +main ()
         1736  +{
         1737  +return $2 ();
         1738  +  ;
         1739  +  return 0;
         1740  +}
         1741  +_ACEOF
         1742  +if ac_fn_c_try_link "$LINENO"; then :
         1743  +  eval "$3=yes"
         1744  +else
         1745  +  eval "$3=no"
         1746  +fi
         1747  +rm -f core conftest.err conftest.$ac_objext \
         1748  +    conftest$ac_exeext conftest.$ac_ext
         1749  +fi
         1750  +eval ac_res=\$$3
         1751  +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
         1752  +$as_echo "$ac_res" >&6; }
         1753  +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
         1754  +
         1755  +} # ac_fn_c_check_func
         1756  +
         1757  +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
         1758  +# -------------------------------------------------------
         1759  +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
         1760  +# the include files in INCLUDES and setting the cache variable VAR
         1761  +# accordingly.
         1762  +ac_fn_c_check_header_mongrel ()
         1763  +{
         1764  +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
         1765  +  if eval \${$3+:} false; then :
         1766  +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
         1767  +$as_echo_n "checking for $2... " >&6; }
         1768  +if eval \${$3+:} false; then :
         1769  +  $as_echo_n "(cached) " >&6
         1770  +fi
         1771  +eval ac_res=\$$3
         1772  +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
         1773  +$as_echo "$ac_res" >&6; }
         1774  +else
         1775  +  # Is the header compilable?
         1776  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
         1777  +$as_echo_n "checking $2 usability... " >&6; }
         1778  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         1779  +/* end confdefs.h.  */
         1780  +$4
         1781  +#include <$2>
         1782  +_ACEOF
         1783  +if ac_fn_c_try_compile "$LINENO"; then :
         1784  +  ac_header_compiler=yes
         1785  +else
         1786  +  ac_header_compiler=no
         1787  +fi
         1788  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         1789  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
         1790  +$as_echo "$ac_header_compiler" >&6; }
         1791  +
         1792  +# Is the header present?
         1793  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
         1794  +$as_echo_n "checking $2 presence... " >&6; }
         1795  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         1796  +/* end confdefs.h.  */
         1797  +#include <$2>
         1798  +_ACEOF
         1799  +if ac_fn_c_try_cpp "$LINENO"; then :
         1800  +  ac_header_preproc=yes
         1801  +else
         1802  +  ac_header_preproc=no
         1803  +fi
         1804  +rm -f conftest.err conftest.i conftest.$ac_ext
         1805  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
         1806  +$as_echo "$ac_header_preproc" >&6; }
         1807  +
         1808  +# So?  What about this header?
         1809  +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
         1810  +  yes:no: )
         1811  +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
         1812  +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
         1813  +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
         1814  +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
         1815  +    ;;
         1816  +  no:yes:* )
         1817  +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
         1818  +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
         1819  +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
         1820  +$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
         1821  +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
         1822  +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
         1823  +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
         1824  +$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
         1825  +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
         1826  +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
         1827  +    ;;
         1828  +esac
         1829  +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
         1830  +$as_echo_n "checking for $2... " >&6; }
         1831  +if eval \${$3+:} false; then :
         1832  +  $as_echo_n "(cached) " >&6
         1833  +else
         1834  +  eval "$3=\$ac_header_compiler"
         1835  +fi
         1836  +eval ac_res=\$$3
         1837  +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
         1838  +$as_echo "$ac_res" >&6; }
         1839  +fi
         1840  +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
         1841  +
         1842  +} # ac_fn_c_check_header_mongrel
         1843  +cat >config.log <<_ACEOF
         1844  +This file contains any messages produced by compilers while
         1845  +running configure, to aid debugging if configure makes a mistake.
         1846  +
         1847  +It was created by aem $as_me 1.0, which was
         1848  +generated by GNU Autoconf 2.69.  Invocation command line was
         1849  +
         1850  +  $ $0 $@
         1851  +
         1852  +_ACEOF
         1853  +exec 5>>config.log
         1854  +{
         1855  +cat <<_ASUNAME
         1856  +## --------- ##
         1857  +## Platform. ##
         1858  +## --------- ##
         1859  +
         1860  +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
         1861  +uname -m = `(uname -m) 2>/dev/null || echo unknown`
         1862  +uname -r = `(uname -r) 2>/dev/null || echo unknown`
         1863  +uname -s = `(uname -s) 2>/dev/null || echo unknown`
         1864  +uname -v = `(uname -v) 2>/dev/null || echo unknown`
         1865  +
         1866  +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
         1867  +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
         1868  +
         1869  +/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
         1870  +/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
         1871  +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
         1872  +/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
         1873  +/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
         1874  +/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
         1875  +/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
         1876  +
         1877  +_ASUNAME
         1878  +
         1879  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         1880  +for as_dir in $PATH
         1881  +do
         1882  +  IFS=$as_save_IFS
         1883  +  test -z "$as_dir" && as_dir=.
         1884  +    $as_echo "PATH: $as_dir"
         1885  +  done
         1886  +IFS=$as_save_IFS
         1887  +
         1888  +} >&5
         1889  +
         1890  +cat >&5 <<_ACEOF
         1891  +
         1892  +
         1893  +## ----------- ##
         1894  +## Core tests. ##
         1895  +## ----------- ##
         1896  +
         1897  +_ACEOF
         1898  +
         1899  +
         1900  +# Keep a trace of the command line.
         1901  +# Strip out --no-create and --no-recursion so they do not pile up.
         1902  +# Strip out --silent because we don't want to record it for future runs.
         1903  +# Also quote any args containing shell meta-characters.
         1904  +# Make two passes to allow for proper duplicate-argument suppression.
         1905  +ac_configure_args=
         1906  +ac_configure_args0=
         1907  +ac_configure_args1=
         1908  +ac_must_keep_next=false
         1909  +for ac_pass in 1 2
         1910  +do
         1911  +  for ac_arg
         1912  +  do
         1913  +    case $ac_arg in
         1914  +    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
         1915  +    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
         1916  +    | -silent | --silent | --silen | --sile | --sil)
         1917  +      continue ;;
         1918  +    *\'*)
         1919  +      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
         1920  +    esac
         1921  +    case $ac_pass in
         1922  +    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
         1923  +    2)
         1924  +      as_fn_append ac_configure_args1 " '$ac_arg'"
         1925  +      if test $ac_must_keep_next = true; then
         1926  +	ac_must_keep_next=false # Got value, back to normal.
         1927  +      else
         1928  +	case $ac_arg in
         1929  +	  *=* | --config-cache | -C | -disable-* | --disable-* \
         1930  +	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
         1931  +	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
         1932  +	  | -with-* | --with-* | -without-* | --without-* | --x)
         1933  +	    case "$ac_configure_args0 " in
         1934  +	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
         1935  +	    esac
         1936  +	    ;;
         1937  +	  -* ) ac_must_keep_next=true ;;
         1938  +	esac
         1939  +      fi
         1940  +      as_fn_append ac_configure_args " '$ac_arg'"
         1941  +      ;;
         1942  +    esac
         1943  +  done
         1944  +done
         1945  +{ ac_configure_args0=; unset ac_configure_args0;}
         1946  +{ ac_configure_args1=; unset ac_configure_args1;}
         1947  +
         1948  +# When interrupted or exit'd, cleanup temporary files, and complete
         1949  +# config.log.  We remove comments because anyway the quotes in there
         1950  +# would cause problems or look ugly.
         1951  +# WARNING: Use '\'' to represent an apostrophe within the trap.
         1952  +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
         1953  +trap 'exit_status=$?
         1954  +  # Save into config.log some information that might help in debugging.
         1955  +  {
         1956  +    echo
         1957  +
         1958  +    $as_echo "## ---------------- ##
         1959  +## Cache variables. ##
         1960  +## ---------------- ##"
         1961  +    echo
         1962  +    # The following way of writing the cache mishandles newlines in values,
         1963  +(
         1964  +  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
         1965  +    eval ac_val=\$$ac_var
         1966  +    case $ac_val in #(
         1967  +    *${as_nl}*)
         1968  +      case $ac_var in #(
         1969  +      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
         1970  +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
         1971  +      esac
         1972  +      case $ac_var in #(
         1973  +      _ | IFS | as_nl) ;; #(
         1974  +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
         1975  +      *) { eval $ac_var=; unset $ac_var;} ;;
         1976  +      esac ;;
         1977  +    esac
         1978  +  done
         1979  +  (set) 2>&1 |
         1980  +    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
         1981  +    *${as_nl}ac_space=\ *)
         1982  +      sed -n \
         1983  +	"s/'\''/'\''\\\\'\'''\''/g;
         1984  +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
         1985  +      ;; #(
         1986  +    *)
         1987  +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
         1988  +      ;;
         1989  +    esac |
         1990  +    sort
         1991  +)
         1992  +    echo
         1993  +
         1994  +    $as_echo "## ----------------- ##
         1995  +## Output variables. ##
         1996  +## ----------------- ##"
         1997  +    echo
         1998  +    for ac_var in $ac_subst_vars
         1999  +    do
         2000  +      eval ac_val=\$$ac_var
         2001  +      case $ac_val in
         2002  +      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
         2003  +      esac
         2004  +      $as_echo "$ac_var='\''$ac_val'\''"
         2005  +    done | sort
         2006  +    echo
         2007  +
         2008  +    if test -n "$ac_subst_files"; then
         2009  +      $as_echo "## ------------------- ##
         2010  +## File substitutions. ##
         2011  +## ------------------- ##"
         2012  +      echo
         2013  +      for ac_var in $ac_subst_files
         2014  +      do
         2015  +	eval ac_val=\$$ac_var
         2016  +	case $ac_val in
         2017  +	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
         2018  +	esac
         2019  +	$as_echo "$ac_var='\''$ac_val'\''"
         2020  +      done | sort
         2021  +      echo
         2022  +    fi
         2023  +
         2024  +    if test -s confdefs.h; then
         2025  +      $as_echo "## ----------- ##
         2026  +## confdefs.h. ##
         2027  +## ----------- ##"
         2028  +      echo
         2029  +      cat confdefs.h
         2030  +      echo
         2031  +    fi
         2032  +    test "$ac_signal" != 0 &&
         2033  +      $as_echo "$as_me: caught signal $ac_signal"
         2034  +    $as_echo "$as_me: exit $exit_status"
         2035  +  } >&5
         2036  +  rm -f core *.core core.conftest.* &&
         2037  +    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
         2038  +    exit $exit_status
         2039  +' 0
         2040  +for ac_signal in 1 2 13 15; do
         2041  +  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
         2042  +done
         2043  +ac_signal=0
         2044  +
         2045  +# confdefs.h avoids OS command line length limits that DEFS can exceed.
         2046  +rm -f -r conftest* confdefs.h
         2047  +
         2048  +$as_echo "/* confdefs.h */" > confdefs.h
         2049  +
         2050  +# Predefined preprocessor variables.
         2051  +
         2052  +cat >>confdefs.h <<_ACEOF
         2053  +#define PACKAGE_NAME "$PACKAGE_NAME"
         2054  +_ACEOF
         2055  +
         2056  +cat >>confdefs.h <<_ACEOF
         2057  +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
         2058  +_ACEOF
         2059  +
         2060  +cat >>confdefs.h <<_ACEOF
         2061  +#define PACKAGE_VERSION "$PACKAGE_VERSION"
         2062  +_ACEOF
         2063  +
         2064  +cat >>confdefs.h <<_ACEOF
         2065  +#define PACKAGE_STRING "$PACKAGE_STRING"
         2066  +_ACEOF
         2067  +
         2068  +cat >>confdefs.h <<_ACEOF
         2069  +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
         2070  +_ACEOF
         2071  +
         2072  +cat >>confdefs.h <<_ACEOF
         2073  +#define PACKAGE_URL "$PACKAGE_URL"
         2074  +_ACEOF
         2075  +
         2076  +
         2077  +# Let the site file select an alternate cache file if it wants to.
         2078  +# Prefer an explicitly selected file to automatically selected ones.
         2079  +ac_site_file1=NONE
         2080  +ac_site_file2=NONE
         2081  +if test -n "$CONFIG_SITE"; then
         2082  +  # We do not want a PATH search for config.site.
         2083  +  case $CONFIG_SITE in #((
         2084  +    -*)  ac_site_file1=./$CONFIG_SITE;;
         2085  +    */*) ac_site_file1=$CONFIG_SITE;;
         2086  +    *)   ac_site_file1=./$CONFIG_SITE;;
         2087  +  esac
         2088  +elif test "x$prefix" != xNONE; then
         2089  +  ac_site_file1=$prefix/share/config.site
         2090  +  ac_site_file2=$prefix/etc/config.site
         2091  +else
         2092  +  ac_site_file1=$ac_default_prefix/share/config.site
         2093  +  ac_site_file2=$ac_default_prefix/etc/config.site
         2094  +fi
         2095  +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
         2096  +do
         2097  +  test "x$ac_site_file" = xNONE && continue
         2098  +  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
         2099  +    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
         2100  +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
         2101  +    sed 's/^/| /' "$ac_site_file" >&5
         2102  +    . "$ac_site_file" \
         2103  +      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
         2104  +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
         2105  +as_fn_error $? "failed to load site script $ac_site_file
         2106  +See \`config.log' for more details" "$LINENO" 5; }
         2107  +  fi
         2108  +done
         2109  +
         2110  +if test -r "$cache_file"; then
         2111  +  # Some versions of bash will fail to source /dev/null (special files
         2112  +  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
         2113  +  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
         2114  +    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
         2115  +$as_echo "$as_me: loading cache $cache_file" >&6;}
         2116  +    case $cache_file in
         2117  +      [\\/]* | ?:[\\/]* ) . "$cache_file";;
         2118  +      *)                      . "./$cache_file";;
         2119  +    esac
         2120  +  fi
         2121  +else
         2122  +  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
         2123  +$as_echo "$as_me: creating cache $cache_file" >&6;}
         2124  +  >$cache_file
         2125  +fi
         2126  +
         2127  +# Check that the precious variables saved in the cache have kept the same
         2128  +# value.
         2129  +ac_cache_corrupted=false
         2130  +for ac_var in $ac_precious_vars; do
         2131  +  eval ac_old_set=\$ac_cv_env_${ac_var}_set
         2132  +  eval ac_new_set=\$ac_env_${ac_var}_set
         2133  +  eval ac_old_val=\$ac_cv_env_${ac_var}_value
         2134  +  eval ac_new_val=\$ac_env_${ac_var}_value
         2135  +  case $ac_old_set,$ac_new_set in
         2136  +    set,)
         2137  +      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
         2138  +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
         2139  +      ac_cache_corrupted=: ;;
         2140  +    ,set)
         2141  +      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
         2142  +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
         2143  +      ac_cache_corrupted=: ;;
         2144  +    ,);;
         2145  +    *)
         2146  +      if test "x$ac_old_val" != "x$ac_new_val"; then
         2147  +	# differences in whitespace do not lead to failure.
         2148  +	ac_old_val_w=`echo x $ac_old_val`
         2149  +	ac_new_val_w=`echo x $ac_new_val`
         2150  +	if test "$ac_old_val_w" != "$ac_new_val_w"; then
         2151  +	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
         2152  +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
         2153  +	  ac_cache_corrupted=:
         2154  +	else
         2155  +	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
         2156  +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
         2157  +	  eval $ac_var=\$ac_old_val
         2158  +	fi
         2159  +	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
         2160  +$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
         2161  +	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
         2162  +$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
         2163  +      fi;;
         2164  +  esac
         2165  +  # Pass precious variables to config.status.
         2166  +  if test "$ac_new_set" = set; then
         2167  +    case $ac_new_val in
         2168  +    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
         2169  +    *) ac_arg=$ac_var=$ac_new_val ;;
         2170  +    esac
         2171  +    case " $ac_configure_args " in
         2172  +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
         2173  +      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
         2174  +    esac
         2175  +  fi
         2176  +done
         2177  +if $ac_cache_corrupted; then
         2178  +  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
         2179  +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
         2180  +  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
         2181  +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
         2182  +  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
         2183  +fi
         2184  +## -------------------- ##
         2185  +## Main body of script. ##
         2186  +## -------------------- ##
         2187  +
         2188  +ac_ext=c
         2189  +ac_cpp='$CPP $CPPFLAGS'
         2190  +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
         2191  +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
         2192  +ac_compiler_gnu=$ac_cv_c_compiler_gnu
         2193  +
         2194  +
         2195  +
         2196  +if test "`uname -s`" != "Darwin" -o \
         2197  +	"`uname -r | awk -F. '{print $1}'`" -lt 9; then
         2198  +    as_fn_error $? "Mac OS X 10.5 or later required!" "$LINENO" 5
         2199  +fi
         2200  +
         2201  +#--------------------------------------------------------------------
         2202  +# Call TEA_INIT as the first TEA_ macro to set up initial vars.
         2203  +# This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
         2204  +# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
         2205  +#--------------------------------------------------------------------
         2206  +
         2207  +
         2208  +    # TEA extensions pass this us the version of TEA they think they
         2209  +    # are compatible with.
         2210  +    TEA_VERSION="3.7"
         2211  +
         2212  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct TEA configuration" >&5
         2213  +$as_echo_n "checking for correct TEA configuration... " >&6; }
         2214  +    if test x"${PACKAGE_NAME}" = x ; then
         2215  +	as_fn_error $? "
         2216  +The PACKAGE_NAME variable must be defined by your TEA configure.in" "$LINENO" 5
         2217  +    fi
         2218  +    if test x"3.7" = x ; then
         2219  +	as_fn_error $? "
         2220  +TEA version not specified." "$LINENO" 5
         2221  +    elif test "3.7" != "${TEA_VERSION}" ; then
         2222  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: warning: requested TEA version \"3.7\", have \"${TEA_VERSION}\"" >&5
         2223  +$as_echo "warning: requested TEA version \"3.7\", have \"${TEA_VERSION}\"" >&6; }
         2224  +    else
         2225  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
         2226  +$as_echo "ok (TEA ${TEA_VERSION})" >&6; }
         2227  +    fi
         2228  +    case "`uname -s`" in
         2229  +	*win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*MINGW32_*)
         2230  +	    # Extract the first word of "cygpath", so it can be a program name with args.
         2231  +set dummy cygpath; ac_word=$2
         2232  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
         2233  +$as_echo_n "checking for $ac_word... " >&6; }
         2234  +if ${ac_cv_prog_CYGPATH+:} false; then :
         2235  +  $as_echo_n "(cached) " >&6
         2236  +else
         2237  +  if test -n "$CYGPATH"; then
         2238  +  ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
         2239  +else
         2240  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         2241  +for as_dir in $PATH
         2242  +do
         2243  +  IFS=$as_save_IFS
         2244  +  test -z "$as_dir" && as_dir=.
         2245  +    for ac_exec_ext in '' $ac_executable_extensions; do
         2246  +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
         2247  +    ac_cv_prog_CYGPATH="cygpath -w"
         2248  +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
         2249  +    break 2
         2250  +  fi
         2251  +done
         2252  +  done
         2253  +IFS=$as_save_IFS
         2254  +
         2255  +  test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
         2256  +fi
         2257  +fi
         2258  +CYGPATH=$ac_cv_prog_CYGPATH
         2259  +if test -n "$CYGPATH"; then
         2260  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
         2261  +$as_echo "$CYGPATH" >&6; }
         2262  +else
         2263  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         2264  +$as_echo "no" >&6; }
         2265  +fi
         2266  +
         2267  +
         2268  +	    EXEEXT=".exe"
         2269  +	    TEA_PLATFORM="windows"
         2270  +	    ;;
         2271  +	*)
         2272  +	    CYGPATH=echo
         2273  +	    EXEEXT=""
         2274  +	    TEA_PLATFORM="unix"
         2275  +	    ;;
         2276  +    esac
         2277  +
         2278  +    # Check if exec_prefix is set. If not use fall back to prefix.
         2279  +    # Note when adjusted, so that TEA_PREFIX can correct for this.
         2280  +    # This is needed for recursive configures, since autoconf propagates
         2281  +    # $prefix, but not $exec_prefix (doh!).
         2282  +    if test x$exec_prefix = xNONE ; then
         2283  +	exec_prefix_default=yes
         2284  +	exec_prefix=$prefix
         2285  +    fi
         2286  +
         2287  +
         2288  +
         2289  +
         2290  +    # This package name must be replaced statically for AC_SUBST to work
         2291  +
         2292  +    # Substitute STUB_LIB_FILE in case package creates a stub library too.
         2293  +
         2294  +
         2295  +    # We AC_SUBST these here to ensure they are subst'ed,
         2296  +    # in case the user doesn't call TEA_ADD_...
         2297  +
         2298  +
         2299  +
         2300  +
         2301  +
         2302  +
         2303  +
         2304  +
         2305  +
         2306  +ac_aux_dir=
         2307  +for ac_dir in tclconfig "$srcdir"/tclconfig; do
         2308  +  if test -f "$ac_dir/install-sh"; then
         2309  +    ac_aux_dir=$ac_dir
         2310  +    ac_install_sh="$ac_aux_dir/install-sh -c"
         2311  +    break
         2312  +  elif test -f "$ac_dir/install.sh"; then
         2313  +    ac_aux_dir=$ac_dir
         2314  +    ac_install_sh="$ac_aux_dir/install.sh -c"
         2315  +    break
         2316  +  elif test -f "$ac_dir/shtool"; then
         2317  +    ac_aux_dir=$ac_dir
         2318  +    ac_install_sh="$ac_aux_dir/shtool install -c"
         2319  +    break
         2320  +  fi
         2321  +done
         2322  +if test -z "$ac_aux_dir"; then
         2323  +  as_fn_error $? "cannot find install-sh, install.sh, or shtool in tclconfig \"$srcdir\"/tclconfig" "$LINENO" 5
         2324  +fi
         2325  +
         2326  +# These three variables are undocumented and unsupported,
         2327  +# and are intended to be withdrawn in a future Autoconf release.
         2328  +# They can cause serious problems if a builder's source tree is in a directory
         2329  +# whose full name contains unusual characters.
         2330  +ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
         2331  +ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
         2332  +ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
         2333  +
         2334  +
         2335  +
         2336  +#--------------------------------------------------------------------
         2337  +# Load the tclConfig.sh file
         2338  +#--------------------------------------------------------------------
         2339  +
         2340  +
         2341  +
         2342  +    #
         2343  +    # Ok, lets find the tcl configuration
         2344  +    # First, look for one uninstalled.
         2345  +    # the alternative search directory is invoked by --with-tcl
         2346  +    #
         2347  +
         2348  +    if test x"${no_tcl}" = x ; then
         2349  +	# we reset no_tcl in case something fails here
         2350  +	no_tcl=true
         2351  +
         2352  +# Check whether --with-tcl was given.
         2353  +if test "${with_tcl+set}" = set; then :
         2354  +  withval=$with_tcl; with_tclconfig=${withval}
         2355  +fi
         2356  +
         2357  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
         2358  +$as_echo_n "checking for Tcl configuration... " >&6; }
         2359  +	if ${ac_cv_c_tclconfig+:} false; then :
         2360  +  $as_echo_n "(cached) " >&6
         2361  +else
         2362  +
         2363  +
         2364  +	    # First check to see if --with-tcl was specified.
         2365  +	    if test x"${with_tclconfig}" != x ; then
         2366  +		case ${with_tclconfig} in
         2367  +		    */tclConfig.sh )
         2368  +			if test -f ${with_tclconfig}; then
         2369  +			    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
         2370  +$as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
         2371  +			    with_tclconfig=`echo ${with_tclconfig} | sed 's!/tclConfig\.sh$!!'`
         2372  +			fi ;;
         2373  +		esac
         2374  +		if test -f "${with_tclconfig}/tclConfig.sh" ; then
         2375  +		    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
         2376  +		else
         2377  +		    as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
         2378  +		fi
         2379  +	    fi
         2380  +
         2381  +	    # then check for a private Tcl installation
         2382  +	    if test x"${ac_cv_c_tclconfig}" = x ; then
         2383  +		for i in \
         2384  +			../tcl \
         2385  +			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
         2386  +			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
         2387  +			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
         2388  +			../../tcl \
         2389  +			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
         2390  +			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
         2391  +			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
         2392  +			../../../tcl \
         2393  +			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
         2394  +			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
         2395  +			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
         2396  +		    if test "${TEA_PLATFORM}" = "windows" \
         2397  +			    -a -f "$i/win/tclConfig.sh" ; then
         2398  +			ac_cv_c_tclconfig=`(cd $i/win; pwd)`
         2399  +			break
         2400  +		    fi
         2401  +		    if test -f "$i/unix/tclConfig.sh" ; then
         2402  +			ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
         2403  +			break
         2404  +		    fi
         2405  +		done
         2406  +	    fi
         2407  +
         2408  +	    # on Darwin, check in Framework installation locations
         2409  +	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
         2410  +		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
         2411  +			`ls -d /Library/Frameworks 2>/dev/null` \
         2412  +			`ls -d /Network/Library/Frameworks 2>/dev/null` \
         2413  +			`ls -d /System/Library/Frameworks 2>/dev/null` \
         2414  +			; do
         2415  +		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
         2416  +			ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
         2417  +			break
         2418  +		    fi
         2419  +		done
         2420  +	    fi
         2421  +
         2422  +	    # TEA specific: on Windows, check in common installation locations
         2423  +	    if test "${TEA_PLATFORM}" = "windows" \
         2424  +		-a x"${ac_cv_c_tclconfig}" = x ; then
         2425  +		for i in `ls -d C:/Tcl/lib 2>/dev/null` \
         2426  +			`ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
         2427  +			; do
         2428  +		    if test -f "$i/tclConfig.sh" ; then
         2429  +			ac_cv_c_tclconfig=`(cd $i; pwd)`
         2430  +			break
         2431  +		    fi
         2432  +		done
         2433  +	    fi
         2434  +
         2435  +	    # check in a few common install locations
         2436  +	    if test x"${ac_cv_c_tclconfig}" = x ; then
         2437  +		for i in `ls -d ${libdir} 2>/dev/null` \
         2438  +			`ls -d ${exec_prefix}/lib 2>/dev/null` \
         2439  +			`ls -d ${prefix}/lib 2>/dev/null` \
         2440  +			`ls -d /usr/local/lib 2>/dev/null` \
         2441  +			`ls -d /usr/contrib/lib 2>/dev/null` \
         2442  +			`ls -d /usr/lib 2>/dev/null` \
         2443  +			; do
         2444  +		    if test -f "$i/tclConfig.sh" ; then
         2445  +			ac_cv_c_tclconfig=`(cd $i; pwd)`
         2446  +			break
         2447  +		    fi
         2448  +		done
         2449  +	    fi
         2450  +
         2451  +	    # check in a few other private locations
         2452  +	    if test x"${ac_cv_c_tclconfig}" = x ; then
         2453  +		for i in \
         2454  +			${srcdir}/../tcl \
         2455  +			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
         2456  +			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
         2457  +			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
         2458  +		    if test "${TEA_PLATFORM}" = "windows" \
         2459  +			    -a -f "$i/win/tclConfig.sh" ; then
         2460  +			ac_cv_c_tclconfig=`(cd $i/win; pwd)`
         2461  +			break
         2462  +		    fi
         2463  +		    if test -f "$i/unix/tclConfig.sh" ; then
         2464  +		    ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
         2465  +		    break
         2466  +		fi
         2467  +		done
         2468  +	    fi
         2469  +
         2470  +fi
         2471  +
         2472  +
         2473  +	if test x"${ac_cv_c_tclconfig}" = x ; then
         2474  +	    TCL_BIN_DIR="# no Tcl configs found"
         2475  +	    as_fn_error $? "Can't find Tcl configuration definitions" "$LINENO" 5
         2476  +	else
         2477  +	    no_tcl=
         2478  +	    TCL_BIN_DIR=${ac_cv_c_tclconfig}
         2479  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
         2480  +$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
         2481  +	fi
         2482  +    fi
         2483  +
         2484  +
         2485  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
         2486  +$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
         2487  +
         2488  +    if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
         2489  +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
         2490  +$as_echo "loading" >&6; }
         2491  +	. "${TCL_BIN_DIR}/tclConfig.sh"
         2492  +    else
         2493  +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
         2494  +$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
         2495  +    fi
         2496  +
         2497  +    # eval is required to do the TCL_DBGX substitution
         2498  +    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
         2499  +    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
         2500  +
         2501  +    # If the TCL_BIN_DIR is the build directory (not the install directory),
         2502  +    # then set the common variable name to the value of the build variables.
         2503  +    # For example, the variable TCL_LIB_SPEC will be set to the value
         2504  +    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
         2505  +    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
         2506  +    # installed and uninstalled version of Tcl.
         2507  +    if test -f "${TCL_BIN_DIR}/Makefile" ; then
         2508  +        TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
         2509  +        TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
         2510  +        TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
         2511  +    elif test "`uname -s`" = "Darwin"; then
         2512  +	# If Tcl was built as a framework, attempt to use the libraries
         2513  +	# from the framework at the given location so that linking works
         2514  +	# against Tcl.framework installed in an arbitrary location.
         2515  +	case ${TCL_DEFS} in
         2516  +	    *TCL_FRAMEWORK*)
         2517  +		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
         2518  +		    for i in "`cd ${TCL_BIN_DIR}; pwd`" \
         2519  +			     "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
         2520  +			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
         2521  +			    TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
         2522  +			    break
         2523  +			fi
         2524  +		    done
         2525  +		fi
         2526  +		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
         2527  +		    TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
         2528  +		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
         2529  +		fi
         2530  +		;;
         2531  +	esac
         2532  +    fi
         2533  +
         2534  +    # eval is required to do the TCL_DBGX substitution
         2535  +    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
         2536  +    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
         2537  +    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
         2538  +    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
         2539  +
         2540  +
         2541  +
         2542  +
         2543  +
         2544  +
         2545  +
         2546  +
         2547  +
         2548  +
         2549  +
         2550  +
         2551  +
         2552  +    # TEA specific:
         2553  +
         2554  +
         2555  +
         2556  +
         2557  +
         2558  +
         2559  +
         2560  +#--------------------------------------------------------------------
         2561  +# Load the tkConfig.sh file if necessary (Tk extension)
         2562  +#--------------------------------------------------------------------
         2563  +
         2564  +
         2565  +    #
         2566  +    # Ok, lets find the tk configuration
         2567  +    # First, look for one uninstalled.
         2568  +    # the alternative search directory is invoked by --with-tk
         2569  +    #
         2570  +
         2571  +    if test x"${no_tk}" = x ; then
         2572  +	# we reset no_tk in case something fails here
         2573  +	no_tk=true
         2574  +
         2575  +# Check whether --with-tk was given.
         2576  +if test "${with_tk+set}" = set; then :
         2577  +  withval=$with_tk; with_tkconfig=${withval}
         2578  +fi
         2579  +
         2580  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
         2581  +$as_echo_n "checking for Tk configuration... " >&6; }
         2582  +	if ${ac_cv_c_tkconfig+:} false; then :
         2583  +  $as_echo_n "(cached) " >&6
         2584  +else
         2585  +
         2586  +
         2587  +	    # First check to see if --with-tkconfig was specified.
         2588  +	    if test x"${with_tkconfig}" != x ; then
         2589  +		case ${with_tkconfig} in
         2590  +		    */tkConfig.sh )
         2591  +			if test -f ${with_tkconfig}; then
         2592  +			    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5
         2593  +$as_echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;}
         2594  +			    with_tkconfig=`echo ${with_tkconfig} | sed 's!/tkConfig\.sh$!!'`
         2595  +			fi ;;
         2596  +		esac
         2597  +		if test -f "${with_tkconfig}/tkConfig.sh" ; then
         2598  +		    ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
         2599  +		else
         2600  +		    as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
         2601  +		fi
         2602  +	    fi
         2603  +
         2604  +	    # then check for a private Tk library
         2605  +	    if test x"${ac_cv_c_tkconfig}" = x ; then
         2606  +		for i in \
         2607  +			../tk \
         2608  +			`ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
         2609  +			`ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
         2610  +			`ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
         2611  +			../../tk \
         2612  +			`ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
         2613  +			`ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
         2614  +			`ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
         2615  +			../../../tk \
         2616  +			`ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
         2617  +			`ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
         2618  +			`ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
         2619  +		    if test "${TEA_PLATFORM}" = "windows" \
         2620  +			    -a -f "$i/win/tkConfig.sh" ; then
         2621  +			ac_cv_c_tkconfig=`(cd $i/win; pwd)`
         2622  +			break
         2623  +		    fi
         2624  +		    if test -f "$i/unix/tkConfig.sh" ; then
         2625  +			ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
         2626  +			break
         2627  +		    fi
         2628  +		done
         2629  +	    fi
         2630  +
         2631  +	    # on Darwin, check in Framework installation locations
         2632  +	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
         2633  +		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
         2634  +			`ls -d /Library/Frameworks 2>/dev/null` \
         2635  +			`ls -d /Network/Library/Frameworks 2>/dev/null` \
         2636  +			`ls -d /System/Library/Frameworks 2>/dev/null` \
         2637  +			; do
         2638  +		    if test -f "$i/Tk.framework/tkConfig.sh" ; then
         2639  +			ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
         2640  +			break
         2641  +		    fi
         2642  +		done
         2643  +	    fi
         2644  +
         2645  +	    # check in a few common install locations
         2646  +	    if test x"${ac_cv_c_tkconfig}" = x ; then
         2647  +		for i in `ls -d ${libdir} 2>/dev/null` \
         2648  +			`ls -d ${exec_prefix}/lib 2>/dev/null` \
         2649  +			`ls -d ${prefix}/lib 2>/dev/null` \
         2650  +			`ls -d /usr/local/lib 2>/dev/null` \
         2651  +			`ls -d /usr/contrib/lib 2>/dev/null` \
         2652  +			`ls -d /usr/lib 2>/dev/null` \
         2653  +			; do
         2654  +		    if test -f "$i/tkConfig.sh" ; then
         2655  +			ac_cv_c_tkconfig=`(cd $i; pwd)`
         2656  +			break
         2657  +		    fi
         2658  +		done
         2659  +	    fi
         2660  +
         2661  +	    # TEA specific: on Windows, check in common installation locations
         2662  +	    if test "${TEA_PLATFORM}" = "windows" \
         2663  +		-a x"${ac_cv_c_tkconfig}" = x ; then
         2664  +		for i in `ls -d C:/Tcl/lib 2>/dev/null` \
         2665  +			`ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
         2666  +			; do
         2667  +		    if test -f "$i/tkConfig.sh" ; then
         2668  +			ac_cv_c_tkconfig=`(cd $i; pwd)`
         2669  +			break
         2670  +		    fi
         2671  +		done
         2672  +	    fi
         2673  +
         2674  +	    # check in a few other private locations
         2675  +	    if test x"${ac_cv_c_tkconfig}" = x ; then
         2676  +		for i in \
         2677  +			${srcdir}/../tk \
         2678  +			`ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
         2679  +			`ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
         2680  +			`ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
         2681  +		    if test "${TEA_PLATFORM}" = "windows" \
         2682  +			    -a -f "$i/win/tkConfig.sh" ; then
         2683  +			ac_cv_c_tkconfig=`(cd $i/win; pwd)`
         2684  +			break
         2685  +		    fi
         2686  +		    if test -f "$i/unix/tkConfig.sh" ; then
         2687  +			ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
         2688  +			break
         2689  +		    fi
         2690  +		done
         2691  +	    fi
         2692  +
         2693  +fi
         2694  +
         2695  +
         2696  +	if test x"${ac_cv_c_tkconfig}" = x ; then
         2697  +	    TK_BIN_DIR="# no Tk configs found"
         2698  +	    as_fn_error $? "Can't find Tk configuration definitions" "$LINENO" 5
         2699  +	else
         2700  +	    no_tk=
         2701  +	    TK_BIN_DIR=${ac_cv_c_tkconfig}
         2702  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
         2703  +$as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
         2704  +	fi
         2705  +    fi
         2706  +
         2707  +
         2708  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
         2709  +$as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
         2710  +
         2711  +    if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
         2712  +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
         2713  +$as_echo "loading" >&6; }
         2714  +	. "${TK_BIN_DIR}/tkConfig.sh"
         2715  +    else
         2716  +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
         2717  +$as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
         2718  +    fi
         2719  +
         2720  +    # eval is required to do the TK_DBGX substitution
         2721  +    eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
         2722  +    eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
         2723  +
         2724  +    # If the TK_BIN_DIR is the build directory (not the install directory),
         2725  +    # then set the common variable name to the value of the build variables.
         2726  +    # For example, the variable TK_LIB_SPEC will be set to the value
         2727  +    # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
         2728  +    # instead of TK_BUILD_LIB_SPEC since it will work with both an
         2729  +    # installed and uninstalled version of Tcl.
         2730  +    if test -f "${TK_BIN_DIR}/Makefile" ; then
         2731  +        TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
         2732  +        TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
         2733  +        TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
         2734  +    elif test "`uname -s`" = "Darwin"; then
         2735  +	# If Tk was built as a framework, attempt to use the libraries
         2736  +	# from the framework at the given location so that linking works
         2737  +	# against Tk.framework installed in an arbitrary location.
         2738  +	case ${TK_DEFS} in
         2739  +	    *TK_FRAMEWORK*)
         2740  +		if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
         2741  +		    for i in "`cd ${TK_BIN_DIR}; pwd`" \
         2742  +			     "`cd ${TK_BIN_DIR}/../..; pwd`"; do
         2743  +			if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
         2744  +			    TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
         2745  +			    break
         2746  +			fi
         2747  +		    done
         2748  +		fi
         2749  +		if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
         2750  +		    TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
         2751  +		    TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
         2752  +		fi
         2753  +		;;
         2754  +	esac
         2755  +    fi
         2756  +
         2757  +    # eval is required to do the TK_DBGX substitution
         2758  +    eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
         2759  +    eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
         2760  +    eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
         2761  +    eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
         2762  +
         2763  +    # TEA specific: Ensure windowingsystem is defined
         2764  +    if test "${TEA_PLATFORM}" = "unix" ; then
         2765  +	case ${TK_DEFS} in
         2766  +	    *MAC_OSX_TK*)
         2767  +
         2768  +$as_echo "#define MAC_OSX_TK 1" >>confdefs.h
         2769  +
         2770  +		TEA_WINDOWINGSYSTEM="aqua"
         2771  +		;;
         2772  +	    *)
         2773  +		TEA_WINDOWINGSYSTEM="x11"
         2774  +		;;
         2775  +	esac
         2776  +    elif test "${TEA_PLATFORM}" = "windows" ; then
         2777  +	TEA_WINDOWINGSYSTEM="win32"
         2778  +    fi
         2779  +
         2780  +
         2781  +
         2782  +
         2783  +
         2784  +
         2785  +
         2786  +
         2787  +
         2788  +
         2789  +
         2790  +
         2791  +
         2792  +    # TEA specific:
         2793  +
         2794  +
         2795  +
         2796  +
         2797  +#-----------------------------------------------------------------------
         2798  +# Handle the --prefix=... option by defaulting to what Tcl gave.
         2799  +# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
         2800  +#-----------------------------------------------------------------------
         2801  +
         2802  +
         2803  +    if test "${prefix}" = "NONE"; then
         2804  +	prefix_default=yes
         2805  +	if test x"${TCL_PREFIX}" != x; then
         2806  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
         2807  +$as_echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
         2808  +	    prefix=${TCL_PREFIX}
         2809  +	else
         2810  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
         2811  +$as_echo "$as_me: --prefix defaulting to /usr/local" >&6;}
         2812  +	    prefix=/usr/local
         2813  +	fi
         2814  +    fi
         2815  +    if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
         2816  +	-o x"${exec_prefix_default}" = x"yes" ; then
         2817  +	if test x"${TCL_EXEC_PREFIX}" != x; then
         2818  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
         2819  +$as_echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
         2820  +	    exec_prefix=${TCL_EXEC_PREFIX}
         2821  +	else
         2822  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
         2823  +$as_echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
         2824  +	    exec_prefix=$prefix
         2825  +	fi
         2826  +    fi
         2827  +
         2828  +
         2829  +#-----------------------------------------------------------------------
         2830  +# Standard compiler checks.
         2831  +# This sets up CC by using the CC env var, or looks for gcc otherwise.
         2832  +# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
         2833  +# the basic setup necessary to compile executables.
         2834  +#-----------------------------------------------------------------------
         2835  +
         2836  +# Find a good install program.  We prefer a C program (faster),
         2837  +# so one script is as good as another.  But avoid the broken or
         2838  +# incompatible versions:
         2839  +# SysV /etc/install, /usr/sbin/install
         2840  +# SunOS /usr/etc/install
         2841  +# IRIX /sbin/install
         2842  +# AIX /bin/install
         2843  +# AmigaOS /C/install, which installs bootblocks on floppy discs
         2844  +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
         2845  +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
         2846  +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
         2847  +# OS/2's system install, which has a completely different semantic
         2848  +# ./install, which can be erroneously created by make from ./install.sh.
         2849  +# Reject install programs that cannot install multiple files.
         2850  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
         2851  +$as_echo_n "checking for a BSD-compatible install... " >&6; }
         2852  +if test -z "$INSTALL"; then
         2853  +if ${ac_cv_path_install+:} false; then :
         2854  +  $as_echo_n "(cached) " >&6
         2855  +else
         2856  +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         2857  +for as_dir in $PATH
         2858  +do
         2859  +  IFS=$as_save_IFS
         2860  +  test -z "$as_dir" && as_dir=.
         2861  +    # Account for people who put trailing slashes in PATH elements.
         2862  +case $as_dir/ in #((
         2863  +  ./ | .// | /[cC]/* | \
         2864  +  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
         2865  +  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
         2866  +  /usr/ucb/* ) ;;
         2867  +  *)
         2868  +    # OSF1 and SCO ODT 3.0 have their own names for install.
         2869  +    # Don't use installbsd from OSF since it installs stuff as root
         2870  +    # by default.
         2871  +    for ac_prog in ginstall scoinst install; do
         2872  +      for ac_exec_ext in '' $ac_executable_extensions; do
         2873  +	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
         2874  +	  if test $ac_prog = install &&
         2875  +	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
         2876  +	    # AIX install.  It has an incompatible calling convention.
         2877  +	    :
         2878  +	  elif test $ac_prog = install &&
         2879  +	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
         2880  +	    # program-specific install script used by HP pwplus--don't use.
         2881  +	    :
         2882  +	  else
         2883  +	    rm -rf conftest.one conftest.two conftest.dir
         2884  +	    echo one > conftest.one
         2885  +	    echo two > conftest.two
         2886  +	    mkdir conftest.dir
         2887  +	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
         2888  +	      test -s conftest.one && test -s conftest.two &&
         2889  +	      test -s conftest.dir/conftest.one &&
         2890  +	      test -s conftest.dir/conftest.two
         2891  +	    then
         2892  +	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
         2893  +	      break 3
         2894  +	    fi
         2895  +	  fi
         2896  +	fi
         2897  +      done
         2898  +    done
         2899  +    ;;
         2900  +esac
         2901  +
         2902  +  done
         2903  +IFS=$as_save_IFS
         2904  +
         2905  +rm -rf conftest.one conftest.two conftest.dir
         2906  +
         2907  +fi
         2908  +  if test "${ac_cv_path_install+set}" = set; then
         2909  +    INSTALL=$ac_cv_path_install
         2910  +  else
         2911  +    # As a last resort, use the slow shell script.  Don't cache a
         2912  +    # value for INSTALL within a source directory, because that will
         2913  +    # break other packages using the cache if that directory is
         2914  +    # removed, or if the value is a relative name.
         2915  +    INSTALL=$ac_install_sh
         2916  +  fi
         2917  +fi
         2918  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
         2919  +$as_echo "$INSTALL" >&6; }
         2920  +
         2921  +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
         2922  +# It thinks the first close brace ends the variable substitution.
         2923  +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
         2924  +
         2925  +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
         2926  +
         2927  +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
         2928  +
         2929  +
         2930  +    # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
         2931  +    # in this macro, they need to go into TEA_SETUP_COMPILER instead.
         2932  +
         2933  +    # If the user did not set CFLAGS, set it now to keep
         2934  +    # the AC_PROG_CC macro from adding "-g -O2".
         2935  +    if test "${CFLAGS+set}" != "set" ; then
         2936  +	CFLAGS=""
         2937  +    fi
         2938  +
         2939  +    ac_ext=c
         2940  +ac_cpp='$CPP $CPPFLAGS'
         2941  +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
         2942  +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
         2943  +ac_compiler_gnu=$ac_cv_c_compiler_gnu
         2944  +if test -n "$ac_tool_prefix"; then
         2945  +  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
         2946  +set dummy ${ac_tool_prefix}gcc; ac_word=$2
         2947  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
         2948  +$as_echo_n "checking for $ac_word... " >&6; }
         2949  +if ${ac_cv_prog_CC+:} false; then :
         2950  +  $as_echo_n "(cached) " >&6
         2951  +else
         2952  +  if test -n "$CC"; then
         2953  +  ac_cv_prog_CC="$CC" # Let the user override the test.
         2954  +else
         2955  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         2956  +for as_dir in $PATH
         2957  +do
         2958  +  IFS=$as_save_IFS
         2959  +  test -z "$as_dir" && as_dir=.
         2960  +    for ac_exec_ext in '' $ac_executable_extensions; do
         2961  +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
         2962  +    ac_cv_prog_CC="${ac_tool_prefix}gcc"
         2963  +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
         2964  +    break 2
         2965  +  fi
         2966  +done
         2967  +  done
         2968  +IFS=$as_save_IFS
         2969  +
         2970  +fi
         2971  +fi
         2972  +CC=$ac_cv_prog_CC
         2973  +if test -n "$CC"; then
         2974  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
         2975  +$as_echo "$CC" >&6; }
         2976  +else
         2977  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         2978  +$as_echo "no" >&6; }
         2979  +fi
         2980  +
         2981  +
         2982  +fi
         2983  +if test -z "$ac_cv_prog_CC"; then
         2984  +  ac_ct_CC=$CC
         2985  +  # Extract the first word of "gcc", so it can be a program name with args.
         2986  +set dummy gcc; ac_word=$2
         2987  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
         2988  +$as_echo_n "checking for $ac_word... " >&6; }
         2989  +if ${ac_cv_prog_ac_ct_CC+:} false; then :
         2990  +  $as_echo_n "(cached) " >&6
         2991  +else
         2992  +  if test -n "$ac_ct_CC"; then
         2993  +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
         2994  +else
         2995  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         2996  +for as_dir in $PATH
         2997  +do
         2998  +  IFS=$as_save_IFS
         2999  +  test -z "$as_dir" && as_dir=.
         3000  +    for ac_exec_ext in '' $ac_executable_extensions; do
         3001  +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
         3002  +    ac_cv_prog_ac_ct_CC="gcc"
         3003  +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
         3004  +    break 2
         3005  +  fi
         3006  +done
         3007  +  done
         3008  +IFS=$as_save_IFS
         3009  +
         3010  +fi
         3011  +fi
         3012  +ac_ct_CC=$ac_cv_prog_ac_ct_CC
         3013  +if test -n "$ac_ct_CC"; then
         3014  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
         3015  +$as_echo "$ac_ct_CC" >&6; }
         3016  +else
         3017  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         3018  +$as_echo "no" >&6; }
         3019  +fi
         3020  +
         3021  +  if test "x$ac_ct_CC" = x; then
         3022  +    CC=""
         3023  +  else
         3024  +    case $cross_compiling:$ac_tool_warned in
         3025  +yes:)
         3026  +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
         3027  +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
         3028  +ac_tool_warned=yes ;;
         3029  +esac
         3030  +    CC=$ac_ct_CC
         3031  +  fi
         3032  +else
         3033  +  CC="$ac_cv_prog_CC"
         3034  +fi
         3035  +
         3036  +if test -z "$CC"; then
         3037  +          if test -n "$ac_tool_prefix"; then
         3038  +    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
         3039  +set dummy ${ac_tool_prefix}cc; ac_word=$2
         3040  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
         3041  +$as_echo_n "checking for $ac_word... " >&6; }
         3042  +if ${ac_cv_prog_CC+:} false; then :
         3043  +  $as_echo_n "(cached) " >&6
         3044  +else
         3045  +  if test -n "$CC"; then
         3046  +  ac_cv_prog_CC="$CC" # Let the user override the test.
         3047  +else
         3048  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         3049  +for as_dir in $PATH
         3050  +do
         3051  +  IFS=$as_save_IFS
         3052  +  test -z "$as_dir" && as_dir=.
         3053  +    for ac_exec_ext in '' $ac_executable_extensions; do
         3054  +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
         3055  +    ac_cv_prog_CC="${ac_tool_prefix}cc"
         3056  +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
         3057  +    break 2
         3058  +  fi
         3059  +done
         3060  +  done
         3061  +IFS=$as_save_IFS
         3062  +
         3063  +fi
         3064  +fi
         3065  +CC=$ac_cv_prog_CC
         3066  +if test -n "$CC"; then
         3067  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
         3068  +$as_echo "$CC" >&6; }
         3069  +else
         3070  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         3071  +$as_echo "no" >&6; }
         3072  +fi
         3073  +
         3074  +
         3075  +  fi
         3076  +fi
         3077  +if test -z "$CC"; then
         3078  +  # Extract the first word of "cc", so it can be a program name with args.
         3079  +set dummy cc; ac_word=$2
         3080  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
         3081  +$as_echo_n "checking for $ac_word... " >&6; }
         3082  +if ${ac_cv_prog_CC+:} false; then :
         3083  +  $as_echo_n "(cached) " >&6
         3084  +else
         3085  +  if test -n "$CC"; then
         3086  +  ac_cv_prog_CC="$CC" # Let the user override the test.
         3087  +else
         3088  +  ac_prog_rejected=no
         3089  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         3090  +for as_dir in $PATH
         3091  +do
         3092  +  IFS=$as_save_IFS
         3093  +  test -z "$as_dir" && as_dir=.
         3094  +    for ac_exec_ext in '' $ac_executable_extensions; do
         3095  +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
         3096  +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
         3097  +       ac_prog_rejected=yes
         3098  +       continue
         3099  +     fi
         3100  +    ac_cv_prog_CC="cc"
         3101  +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
         3102  +    break 2
         3103  +  fi
         3104  +done
         3105  +  done
         3106  +IFS=$as_save_IFS
         3107  +
         3108  +if test $ac_prog_rejected = yes; then
         3109  +  # We found a bogon in the path, so make sure we never use it.
         3110  +  set dummy $ac_cv_prog_CC
         3111  +  shift
         3112  +  if test $# != 0; then
         3113  +    # We chose a different compiler from the bogus one.
         3114  +    # However, it has the same basename, so the bogon will be chosen
         3115  +    # first if we set CC to just the basename; use the full file name.
         3116  +    shift
         3117  +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
         3118  +  fi
         3119  +fi
         3120  +fi
         3121  +fi
         3122  +CC=$ac_cv_prog_CC
         3123  +if test -n "$CC"; then
         3124  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
         3125  +$as_echo "$CC" >&6; }
         3126  +else
         3127  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         3128  +$as_echo "no" >&6; }
         3129  +fi
         3130  +
         3131  +
         3132  +fi
         3133  +if test -z "$CC"; then
         3134  +  if test -n "$ac_tool_prefix"; then
         3135  +  for ac_prog in cl.exe
         3136  +  do
         3137  +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
         3138  +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
         3139  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
         3140  +$as_echo_n "checking for $ac_word... " >&6; }
         3141  +if ${ac_cv_prog_CC+:} false; then :
         3142  +  $as_echo_n "(cached) " >&6
         3143  +else
         3144  +  if test -n "$CC"; then
         3145  +  ac_cv_prog_CC="$CC" # Let the user override the test.
         3146  +else
         3147  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         3148  +for as_dir in $PATH
         3149  +do
         3150  +  IFS=$as_save_IFS
         3151  +  test -z "$as_dir" && as_dir=.
         3152  +    for ac_exec_ext in '' $ac_executable_extensions; do
         3153  +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
         3154  +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
         3155  +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
         3156  +    break 2
         3157  +  fi
         3158  +done
         3159  +  done
         3160  +IFS=$as_save_IFS
         3161  +
         3162  +fi
         3163  +fi
         3164  +CC=$ac_cv_prog_CC
         3165  +if test -n "$CC"; then
         3166  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
         3167  +$as_echo "$CC" >&6; }
         3168  +else
         3169  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         3170  +$as_echo "no" >&6; }
         3171  +fi
         3172  +
         3173  +
         3174  +    test -n "$CC" && break
         3175  +  done
         3176  +fi
         3177  +if test -z "$CC"; then
         3178  +  ac_ct_CC=$CC
         3179  +  for ac_prog in cl.exe
         3180  +do
         3181  +  # Extract the first word of "$ac_prog", so it can be a program name with args.
         3182  +set dummy $ac_prog; ac_word=$2
         3183  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
         3184  +$as_echo_n "checking for $ac_word... " >&6; }
         3185  +if ${ac_cv_prog_ac_ct_CC+:} false; then :
         3186  +  $as_echo_n "(cached) " >&6
         3187  +else
         3188  +  if test -n "$ac_ct_CC"; then
         3189  +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
         3190  +else
         3191  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         3192  +for as_dir in $PATH
         3193  +do
         3194  +  IFS=$as_save_IFS
         3195  +  test -z "$as_dir" && as_dir=.
         3196  +    for ac_exec_ext in '' $ac_executable_extensions; do
         3197  +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
         3198  +    ac_cv_prog_ac_ct_CC="$ac_prog"
         3199  +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
         3200  +    break 2
         3201  +  fi
         3202  +done
         3203  +  done
         3204  +IFS=$as_save_IFS
         3205  +
         3206  +fi
         3207  +fi
         3208  +ac_ct_CC=$ac_cv_prog_ac_ct_CC
         3209  +if test -n "$ac_ct_CC"; then
         3210  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
         3211  +$as_echo "$ac_ct_CC" >&6; }
         3212  +else
         3213  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         3214  +$as_echo "no" >&6; }
         3215  +fi
         3216  +
         3217  +
         3218  +  test -n "$ac_ct_CC" && break
         3219  +done
         3220  +
         3221  +  if test "x$ac_ct_CC" = x; then
         3222  +    CC=""
         3223  +  else
         3224  +    case $cross_compiling:$ac_tool_warned in
         3225  +yes:)
         3226  +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
         3227  +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
         3228  +ac_tool_warned=yes ;;
         3229  +esac
         3230  +    CC=$ac_ct_CC
         3231  +  fi
         3232  +fi
         3233  +
         3234  +fi
         3235  +
         3236  +
         3237  +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
         3238  +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
         3239  +as_fn_error $? "no acceptable C compiler found in \$PATH
         3240  +See \`config.log' for more details" "$LINENO" 5; }
         3241  +
         3242  +# Provide some information about the compiler.
         3243  +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
         3244  +set X $ac_compile
         3245  +ac_compiler=$2
         3246  +for ac_option in --version -v -V -qversion; do
         3247  +  { { ac_try="$ac_compiler $ac_option >&5"
         3248  +case "(($ac_try" in
         3249  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3250  +  *) ac_try_echo=$ac_try;;
         3251  +esac
         3252  +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
         3253  +$as_echo "$ac_try_echo"; } >&5
         3254  +  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
         3255  +  ac_status=$?
         3256  +  if test -s conftest.err; then
         3257  +    sed '10a\
         3258  +... rest of stderr output deleted ...
         3259  +         10q' conftest.err >conftest.er1
         3260  +    cat conftest.er1 >&5
         3261  +  fi
         3262  +  rm -f conftest.er1 conftest.err
         3263  +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
         3264  +  test $ac_status = 0; }
         3265  +done
         3266  +
         3267  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         3268  +/* end confdefs.h.  */
         3269  +
         3270  +int
         3271  +main ()
         3272  +{
         3273  +
         3274  +  ;
         3275  +  return 0;
         3276  +}
         3277  +_ACEOF
         3278  +ac_clean_files_save=$ac_clean_files
         3279  +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
         3280  +# Try to create an executable without -o first, disregard a.out.
         3281  +# It will help us diagnose broken compilers, and finding out an intuition
         3282  +# of exeext.
         3283  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
         3284  +$as_echo_n "checking whether the C compiler works... " >&6; }
         3285  +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
         3286  +
         3287  +# The possible output files:
         3288  +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
         3289  +
         3290  +ac_rmfiles=
         3291  +for ac_file in $ac_files
         3292  +do
         3293  +  case $ac_file in
         3294  +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
         3295  +    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
         3296  +  esac
         3297  +done
         3298  +rm -f $ac_rmfiles
         3299  +
         3300  +if { { ac_try="$ac_link_default"
         3301  +case "(($ac_try" in
         3302  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3303  +  *) ac_try_echo=$ac_try;;
         3304  +esac
         3305  +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
         3306  +$as_echo "$ac_try_echo"; } >&5
         3307  +  (eval "$ac_link_default") 2>&5
         3308  +  ac_status=$?
         3309  +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
         3310  +  test $ac_status = 0; }; then :
         3311  +  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
         3312  +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
         3313  +# in a Makefile.  We should not override ac_cv_exeext if it was cached,
         3314  +# so that the user can short-circuit this test for compilers unknown to
         3315  +# Autoconf.
         3316  +for ac_file in $ac_files ''
         3317  +do
         3318  +  test -f "$ac_file" || continue
         3319  +  case $ac_file in
         3320  +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
         3321  +	;;
         3322  +    [ab].out )
         3323  +	# We found the default executable, but exeext='' is most
         3324  +	# certainly right.
         3325  +	break;;
         3326  +    *.* )
         3327  +	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
         3328  +	then :; else
         3329  +	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
         3330  +	fi
         3331  +	# We set ac_cv_exeext here because the later test for it is not
         3332  +	# safe: cross compilers may not add the suffix if given an `-o'
         3333  +	# argument, so we may need to know it at that point already.
         3334  +	# Even if this section looks crufty: it has the advantage of
         3335  +	# actually working.
         3336  +	break;;
         3337  +    * )
         3338  +	break;;
         3339  +  esac
         3340  +done
         3341  +test "$ac_cv_exeext" = no && ac_cv_exeext=
         3342  +
         3343  +else
         3344  +  ac_file=''
         3345  +fi
         3346  +if test -z "$ac_file"; then :
         3347  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         3348  +$as_echo "no" >&6; }
         3349  +$as_echo "$as_me: failed program was:" >&5
         3350  +sed 's/^/| /' conftest.$ac_ext >&5
         3351  +
         3352  +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
         3353  +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
         3354  +as_fn_error 77 "C compiler cannot create executables
         3355  +See \`config.log' for more details" "$LINENO" 5; }
         3356  +else
         3357  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
         3358  +$as_echo "yes" >&6; }
         3359  +fi
         3360  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
         3361  +$as_echo_n "checking for C compiler default output file name... " >&6; }
         3362  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
         3363  +$as_echo "$ac_file" >&6; }
         3364  +ac_exeext=$ac_cv_exeext
         3365  +
         3366  +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
         3367  +ac_clean_files=$ac_clean_files_save
         3368  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
         3369  +$as_echo_n "checking for suffix of executables... " >&6; }
         3370  +if { { ac_try="$ac_link"
         3371  +case "(($ac_try" in
         3372  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3373  +  *) ac_try_echo=$ac_try;;
         3374  +esac
         3375  +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
         3376  +$as_echo "$ac_try_echo"; } >&5
         3377  +  (eval "$ac_link") 2>&5
         3378  +  ac_status=$?
         3379  +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
         3380  +  test $ac_status = 0; }; then :
         3381  +  # If both `conftest.exe' and `conftest' are `present' (well, observable)
         3382  +# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
         3383  +# work properly (i.e., refer to `conftest.exe'), while it won't with
         3384  +# `rm'.
         3385  +for ac_file in conftest.exe conftest conftest.*; do
         3386  +  test -f "$ac_file" || continue
         3387  +  case $ac_file in
         3388  +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
         3389  +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
         3390  +	  break;;
         3391  +    * ) break;;
         3392  +  esac
         3393  +done
         3394  +else
         3395  +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
         3396  +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
         3397  +as_fn_error $? "cannot compute suffix of executables: cannot compile and link
         3398  +See \`config.log' for more details" "$LINENO" 5; }
         3399  +fi
         3400  +rm -f conftest conftest$ac_cv_exeext
         3401  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
         3402  +$as_echo "$ac_cv_exeext" >&6; }
         3403  +
         3404  +rm -f conftest.$ac_ext
         3405  +EXEEXT=$ac_cv_exeext
         3406  +ac_exeext=$EXEEXT
         3407  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         3408  +/* end confdefs.h.  */
         3409  +#include <stdio.h>
         3410  +int
         3411  +main ()
         3412  +{
         3413  +FILE *f = fopen ("conftest.out", "w");
         3414  + return ferror (f) || fclose (f) != 0;
         3415  +
         3416  +  ;
         3417  +  return 0;
         3418  +}
         3419  +_ACEOF
         3420  +ac_clean_files="$ac_clean_files conftest.out"
         3421  +# Check that the compiler produces executables we can run.  If not, either
         3422  +# the compiler is broken, or we cross compile.
         3423  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
         3424  +$as_echo_n "checking whether we are cross compiling... " >&6; }
         3425  +if test "$cross_compiling" != yes; then
         3426  +  { { ac_try="$ac_link"
         3427  +case "(($ac_try" in
         3428  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3429  +  *) ac_try_echo=$ac_try;;
         3430  +esac
         3431  +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
         3432  +$as_echo "$ac_try_echo"; } >&5
         3433  +  (eval "$ac_link") 2>&5
         3434  +  ac_status=$?
         3435  +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
         3436  +  test $ac_status = 0; }
         3437  +  if { ac_try='./conftest$ac_cv_exeext'
         3438  +  { { case "(($ac_try" in
         3439  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3440  +  *) ac_try_echo=$ac_try;;
         3441  +esac
         3442  +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
         3443  +$as_echo "$ac_try_echo"; } >&5
         3444  +  (eval "$ac_try") 2>&5
         3445  +  ac_status=$?
         3446  +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
         3447  +  test $ac_status = 0; }; }; then
         3448  +    cross_compiling=no
         3449  +  else
         3450  +    if test "$cross_compiling" = maybe; then
         3451  +	cross_compiling=yes
         3452  +    else
         3453  +	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
         3454  +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
         3455  +as_fn_error $? "cannot run C compiled programs.
         3456  +If you meant to cross compile, use \`--host'.
         3457  +See \`config.log' for more details" "$LINENO" 5; }
         3458  +    fi
         3459  +  fi
         3460  +fi
         3461  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
         3462  +$as_echo "$cross_compiling" >&6; }
         3463  +
         3464  +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
         3465  +ac_clean_files=$ac_clean_files_save
         3466  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
         3467  +$as_echo_n "checking for suffix of object files... " >&6; }
         3468  +if ${ac_cv_objext+:} false; then :
         3469  +  $as_echo_n "(cached) " >&6
         3470  +else
         3471  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         3472  +/* end confdefs.h.  */
         3473  +
         3474  +int
         3475  +main ()
         3476  +{
         3477  +
         3478  +  ;
         3479  +  return 0;
         3480  +}
         3481  +_ACEOF
         3482  +rm -f conftest.o conftest.obj
         3483  +if { { ac_try="$ac_compile"
         3484  +case "(($ac_try" in
         3485  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3486  +  *) ac_try_echo=$ac_try;;
         3487  +esac
         3488  +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
         3489  +$as_echo "$ac_try_echo"; } >&5
         3490  +  (eval "$ac_compile") 2>&5
         3491  +  ac_status=$?
         3492  +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
         3493  +  test $ac_status = 0; }; then :
         3494  +  for ac_file in conftest.o conftest.obj conftest.*; do
         3495  +  test -f "$ac_file" || continue;
         3496  +  case $ac_file in
         3497  +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
         3498  +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
         3499  +       break;;
         3500  +  esac
         3501  +done
         3502  +else
         3503  +  $as_echo "$as_me: failed program was:" >&5
         3504  +sed 's/^/| /' conftest.$ac_ext >&5
         3505  +
         3506  +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
         3507  +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
         3508  +as_fn_error $? "cannot compute suffix of object files: cannot compile
         3509  +See \`config.log' for more details" "$LINENO" 5; }
         3510  +fi
         3511  +rm -f conftest.$ac_cv_objext conftest.$ac_ext
         3512  +fi
         3513  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
         3514  +$as_echo "$ac_cv_objext" >&6; }
         3515  +OBJEXT=$ac_cv_objext
         3516  +ac_objext=$OBJEXT
         3517  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
         3518  +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
         3519  +if ${ac_cv_c_compiler_gnu+:} false; then :
         3520  +  $as_echo_n "(cached) " >&6
         3521  +else
         3522  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         3523  +/* end confdefs.h.  */
         3524  +
         3525  +int
         3526  +main ()
         3527  +{
         3528  +#ifndef __GNUC__
         3529  +       choke me
         3530  +#endif
         3531  +
         3532  +  ;
         3533  +  return 0;
         3534  +}
         3535  +_ACEOF
         3536  +if ac_fn_c_try_compile "$LINENO"; then :
         3537  +  ac_compiler_gnu=yes
         3538  +else
         3539  +  ac_compiler_gnu=no
         3540  +fi
         3541  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         3542  +ac_cv_c_compiler_gnu=$ac_compiler_gnu
         3543  +
         3544  +fi
         3545  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
         3546  +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
         3547  +if test $ac_compiler_gnu = yes; then
         3548  +  GCC=yes
         3549  +else
         3550  +  GCC=
         3551  +fi
         3552  +ac_test_CFLAGS=${CFLAGS+set}
         3553  +ac_save_CFLAGS=$CFLAGS
         3554  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
         3555  +$as_echo_n "checking whether $CC accepts -g... " >&6; }
         3556  +if ${ac_cv_prog_cc_g+:} false; then :
         3557  +  $as_echo_n "(cached) " >&6
         3558  +else
         3559  +  ac_save_c_werror_flag=$ac_c_werror_flag
         3560  +   ac_c_werror_flag=yes
         3561  +   ac_cv_prog_cc_g=no
         3562  +   CFLAGS="-g"
         3563  +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         3564  +/* end confdefs.h.  */
         3565  +
         3566  +int
         3567  +main ()
         3568  +{
         3569  +
         3570  +  ;
         3571  +  return 0;
         3572  +}
         3573  +_ACEOF
         3574  +if ac_fn_c_try_compile "$LINENO"; then :
         3575  +  ac_cv_prog_cc_g=yes
         3576  +else
         3577  +  CFLAGS=""
         3578  +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         3579  +/* end confdefs.h.  */
         3580  +
         3581  +int
         3582  +main ()
         3583  +{
         3584  +
         3585  +  ;
         3586  +  return 0;
         3587  +}
         3588  +_ACEOF
         3589  +if ac_fn_c_try_compile "$LINENO"; then :
         3590  +
         3591  +else
         3592  +  ac_c_werror_flag=$ac_save_c_werror_flag
         3593  +	 CFLAGS="-g"
         3594  +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         3595  +/* end confdefs.h.  */
         3596  +
         3597  +int
         3598  +main ()
         3599  +{
         3600  +
         3601  +  ;
         3602  +  return 0;
         3603  +}
         3604  +_ACEOF
         3605  +if ac_fn_c_try_compile "$LINENO"; then :
         3606  +  ac_cv_prog_cc_g=yes
         3607  +fi
         3608  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         3609  +fi
         3610  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         3611  +fi
         3612  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         3613  +   ac_c_werror_flag=$ac_save_c_werror_flag
         3614  +fi
         3615  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
         3616  +$as_echo "$ac_cv_prog_cc_g" >&6; }
         3617  +if test "$ac_test_CFLAGS" = set; then
         3618  +  CFLAGS=$ac_save_CFLAGS
         3619  +elif test $ac_cv_prog_cc_g = yes; then
         3620  +  if test "$GCC" = yes; then
         3621  +    CFLAGS="-g -O2"
         3622  +  else
         3623  +    CFLAGS="-g"
         3624  +  fi
         3625  +else
         3626  +  if test "$GCC" = yes; then
         3627  +    CFLAGS="-O2"
         3628  +  else
         3629  +    CFLAGS=
         3630  +  fi
         3631  +fi
         3632  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
         3633  +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
         3634  +if ${ac_cv_prog_cc_c89+:} false; then :
         3635  +  $as_echo_n "(cached) " >&6
         3636  +else
         3637  +  ac_cv_prog_cc_c89=no
         3638  +ac_save_CC=$CC
         3639  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         3640  +/* end confdefs.h.  */
         3641  +#include <stdarg.h>
         3642  +#include <stdio.h>
         3643  +struct stat;
         3644  +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
         3645  +struct buf { int x; };
         3646  +FILE * (*rcsopen) (struct buf *, struct stat *, int);
         3647  +static char *e (p, i)
         3648  +     char **p;
         3649  +     int i;
         3650  +{
         3651  +  return p[i];
         3652  +}
         3653  +static char *f (char * (*g) (char **, int), char **p, ...)
         3654  +{
         3655  +  char *s;
         3656  +  va_list v;
         3657  +  va_start (v,p);
         3658  +  s = g (p, va_arg (v,int));
         3659  +  va_end (v);
         3660  +  return s;
         3661  +}
         3662  +
         3663  +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
         3664  +   function prototypes and stuff, but not '\xHH' hex character constants.
         3665  +   These don't provoke an error unfortunately, instead are silently treated
         3666  +   as 'x'.  The following induces an error, until -std is added to get
         3667  +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
         3668  +   array size at least.  It's necessary to write '\x00'==0 to get something
         3669  +   that's true only with -std.  */
         3670  +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
         3671  +
         3672  +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
         3673  +   inside strings and character constants.  */
         3674  +#define FOO(x) 'x'
         3675  +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
         3676  +
         3677  +int test (int i, double x);
         3678  +struct s1 {int (*f) (int a);};
         3679  +struct s2 {int (*f) (double a);};
         3680  +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
         3681  +int argc;
         3682  +char **argv;
         3683  +int
         3684  +main ()
         3685  +{
         3686  +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
         3687  +  ;
         3688  +  return 0;
         3689  +}
         3690  +_ACEOF
         3691  +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
         3692  +	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
         3693  +do
         3694  +  CC="$ac_save_CC $ac_arg"
         3695  +  if ac_fn_c_try_compile "$LINENO"; then :
         3696  +  ac_cv_prog_cc_c89=$ac_arg
         3697  +fi
         3698  +rm -f core conftest.err conftest.$ac_objext
         3699  +  test "x$ac_cv_prog_cc_c89" != "xno" && break
         3700  +done
         3701  +rm -f conftest.$ac_ext
         3702  +CC=$ac_save_CC
         3703  +
         3704  +fi
         3705  +# AC_CACHE_VAL
         3706  +case "x$ac_cv_prog_cc_c89" in
         3707  +  x)
         3708  +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
         3709  +$as_echo "none needed" >&6; } ;;
         3710  +  xno)
         3711  +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
         3712  +$as_echo "unsupported" >&6; } ;;
         3713  +  *)
         3714  +    CC="$CC $ac_cv_prog_cc_c89"
         3715  +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
         3716  +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
         3717  +esac
         3718  +if test "x$ac_cv_prog_cc_c89" != xno; then :
         3719  +
         3720  +fi
         3721  +
         3722  +ac_ext=c
         3723  +ac_cpp='$CPP $CPPFLAGS'
         3724  +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
         3725  +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
         3726  +ac_compiler_gnu=$ac_cv_c_compiler_gnu
         3727  +
         3728  +    ac_ext=c
         3729  +ac_cpp='$CPP $CPPFLAGS'
         3730  +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
         3731  +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
         3732  +ac_compiler_gnu=$ac_cv_c_compiler_gnu
         3733  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
         3734  +$as_echo_n "checking how to run the C preprocessor... " >&6; }
         3735  +# On Suns, sometimes $CPP names a directory.
         3736  +if test -n "$CPP" && test -d "$CPP"; then
         3737  +  CPP=
         3738  +fi
         3739  +if test -z "$CPP"; then
         3740  +  if ${ac_cv_prog_CPP+:} false; then :
         3741  +  $as_echo_n "(cached) " >&6
         3742  +else
         3743  +      # Double quotes because CPP needs to be expanded
         3744  +    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
         3745  +    do
         3746  +      ac_preproc_ok=false
         3747  +for ac_c_preproc_warn_flag in '' yes
         3748  +do
         3749  +  # Use a header file that comes with gcc, so configuring glibc
         3750  +  # with a fresh cross-compiler works.
         3751  +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
         3752  +  # <limits.h> exists even on freestanding compilers.
         3753  +  # On the NeXT, cc -E runs the code through the compiler's parser,
         3754  +  # not just through cpp. "Syntax error" is here to catch this case.
         3755  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         3756  +/* end confdefs.h.  */
         3757  +#ifdef __STDC__
         3758  +# include <limits.h>
         3759  +#else
         3760  +# include <assert.h>
         3761  +#endif
         3762  +		     Syntax error
         3763  +_ACEOF
         3764  +if ac_fn_c_try_cpp "$LINENO"; then :
         3765  +
         3766  +else
         3767  +  # Broken: fails on valid input.
         3768  +continue
         3769  +fi
         3770  +rm -f conftest.err conftest.i conftest.$ac_ext
         3771  +
         3772  +  # OK, works on sane cases.  Now check whether nonexistent headers
         3773  +  # can be detected and how.
         3774  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         3775  +/* end confdefs.h.  */
         3776  +#include <ac_nonexistent.h>
         3777  +_ACEOF
         3778  +if ac_fn_c_try_cpp "$LINENO"; then :
         3779  +  # Broken: success on invalid input.
         3780  +continue
         3781  +else
         3782  +  # Passes both tests.
         3783  +ac_preproc_ok=:
         3784  +break
         3785  +fi
         3786  +rm -f conftest.err conftest.i conftest.$ac_ext
         3787  +
         3788  +done
         3789  +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
         3790  +rm -f conftest.i conftest.err conftest.$ac_ext
         3791  +if $ac_preproc_ok; then :
         3792  +  break
         3793  +fi
         3794  +
         3795  +    done
         3796  +    ac_cv_prog_CPP=$CPP
         3797  +
         3798  +fi
         3799  +  CPP=$ac_cv_prog_CPP
         3800  +else
         3801  +  ac_cv_prog_CPP=$CPP
         3802  +fi
         3803  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
         3804  +$as_echo "$CPP" >&6; }
         3805  +ac_preproc_ok=false
         3806  +for ac_c_preproc_warn_flag in '' yes
         3807  +do
         3808  +  # Use a header file that comes with gcc, so configuring glibc
         3809  +  # with a fresh cross-compiler works.
         3810  +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
         3811  +  # <limits.h> exists even on freestanding compilers.
         3812  +  # On the NeXT, cc -E runs the code through the compiler's parser,
         3813  +  # not just through cpp. "Syntax error" is here to catch this case.
         3814  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         3815  +/* end confdefs.h.  */
         3816  +#ifdef __STDC__
         3817  +# include <limits.h>
         3818  +#else
         3819  +# include <assert.h>
         3820  +#endif
         3821  +		     Syntax error
         3822  +_ACEOF
         3823  +if ac_fn_c_try_cpp "$LINENO"; then :
         3824  +
         3825  +else
         3826  +  # Broken: fails on valid input.
         3827  +continue
         3828  +fi
         3829  +rm -f conftest.err conftest.i conftest.$ac_ext
         3830  +
         3831  +  # OK, works on sane cases.  Now check whether nonexistent headers
         3832  +  # can be detected and how.
         3833  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         3834  +/* end confdefs.h.  */
         3835  +#include <ac_nonexistent.h>
         3836  +_ACEOF
         3837  +if ac_fn_c_try_cpp "$LINENO"; then :
         3838  +  # Broken: success on invalid input.
         3839  +continue
         3840  +else
         3841  +  # Passes both tests.
         3842  +ac_preproc_ok=:
         3843  +break
         3844  +fi
         3845  +rm -f conftest.err conftest.i conftest.$ac_ext
         3846  +
         3847  +done
         3848  +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
         3849  +rm -f conftest.i conftest.err conftest.$ac_ext
         3850  +if $ac_preproc_ok; then :
         3851  +
         3852  +else
         3853  +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
         3854  +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
         3855  +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
         3856  +See \`config.log' for more details" "$LINENO" 5; }
         3857  +fi
         3858  +
         3859  +ac_ext=c
         3860  +ac_cpp='$CPP $CPPFLAGS'
         3861  +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
         3862  +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
         3863  +ac_compiler_gnu=$ac_cv_c_compiler_gnu
         3864  +
         3865  +
         3866  +
         3867  +
         3868  +    #--------------------------------------------------------------------
         3869  +    # Checks to see if the make program sets the $MAKE variable.
         3870  +    #--------------------------------------------------------------------
         3871  +
         3872  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
         3873  +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
         3874  +set x ${MAKE-make}
         3875  +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
         3876  +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
         3877  +  $as_echo_n "(cached) " >&6
         3878  +else
         3879  +  cat >conftest.make <<\_ACEOF
         3880  +SHELL = /bin/sh
         3881  +all:
         3882  +	@echo '@@@%%%=$(MAKE)=@@@%%%'
         3883  +_ACEOF
         3884  +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
         3885  +case `${MAKE-make} -f conftest.make 2>/dev/null` in
         3886  +  *@@@%%%=?*=@@@%%%*)
         3887  +    eval ac_cv_prog_make_${ac_make}_set=yes;;
         3888  +  *)
         3889  +    eval ac_cv_prog_make_${ac_make}_set=no;;
         3890  +esac
         3891  +rm -f conftest.make
         3892  +fi
         3893  +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
         3894  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
         3895  +$as_echo "yes" >&6; }
         3896  +  SET_MAKE=
         3897  +else
         3898  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         3899  +$as_echo "no" >&6; }
         3900  +  SET_MAKE="MAKE=${MAKE-make}"
         3901  +fi
         3902  +
         3903  +
         3904  +    #--------------------------------------------------------------------
         3905  +    # Find ranlib
         3906  +    #--------------------------------------------------------------------
         3907  +
         3908  +    if test -n "$ac_tool_prefix"; then
         3909  +  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
         3910  +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
         3911  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
         3912  +$as_echo_n "checking for $ac_word... " >&6; }
         3913  +if ${ac_cv_prog_RANLIB+:} false; then :
         3914  +  $as_echo_n "(cached) " >&6
         3915  +else
         3916  +  if test -n "$RANLIB"; then
         3917  +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
         3918  +else
         3919  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         3920  +for as_dir in $PATH
         3921  +do
         3922  +  IFS=$as_save_IFS
         3923  +  test -z "$as_dir" && as_dir=.
         3924  +    for ac_exec_ext in '' $ac_executable_extensions; do
         3925  +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
         3926  +    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
         3927  +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
         3928  +    break 2
         3929  +  fi
         3930  +done
         3931  +  done
         3932  +IFS=$as_save_IFS
         3933  +
         3934  +fi
         3935  +fi
         3936  +RANLIB=$ac_cv_prog_RANLIB
         3937  +if test -n "$RANLIB"; then
         3938  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
         3939  +$as_echo "$RANLIB" >&6; }
         3940  +else
         3941  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         3942  +$as_echo "no" >&6; }
         3943  +fi
         3944  +
         3945  +
         3946  +fi
         3947  +if test -z "$ac_cv_prog_RANLIB"; then
         3948  +  ac_ct_RANLIB=$RANLIB
         3949  +  # Extract the first word of "ranlib", so it can be a program name with args.
         3950  +set dummy ranlib; ac_word=$2
         3951  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
         3952  +$as_echo_n "checking for $ac_word... " >&6; }
         3953  +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
         3954  +  $as_echo_n "(cached) " >&6
         3955  +else
         3956  +  if test -n "$ac_ct_RANLIB"; then
         3957  +  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
         3958  +else
         3959  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         3960  +for as_dir in $PATH
         3961  +do
         3962  +  IFS=$as_save_IFS
         3963  +  test -z "$as_dir" && as_dir=.
         3964  +    for ac_exec_ext in '' $ac_executable_extensions; do
         3965  +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
         3966  +    ac_cv_prog_ac_ct_RANLIB="ranlib"
         3967  +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
         3968  +    break 2
         3969  +  fi
         3970  +done
         3971  +  done
         3972  +IFS=$as_save_IFS
         3973  +
         3974  +fi
         3975  +fi
         3976  +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
         3977  +if test -n "$ac_ct_RANLIB"; then
         3978  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
         3979  +$as_echo "$ac_ct_RANLIB" >&6; }
         3980  +else
         3981  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         3982  +$as_echo "no" >&6; }
         3983  +fi
         3984  +
         3985  +  if test "x$ac_ct_RANLIB" = x; then
         3986  +    RANLIB=":"
         3987  +  else
         3988  +    case $cross_compiling:$ac_tool_warned in
         3989  +yes:)
         3990  +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
         3991  +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
         3992  +ac_tool_warned=yes ;;
         3993  +esac
         3994  +    RANLIB=$ac_ct_RANLIB
         3995  +  fi
         3996  +else
         3997  +  RANLIB="$ac_cv_prog_RANLIB"
         3998  +fi
         3999  +
         4000  +
         4001  +    #--------------------------------------------------------------------
         4002  +    # Determines the correct binary file extension (.o, .obj, .exe etc.)
         4003  +    #--------------------------------------------------------------------
         4004  +
         4005  +
         4006  +
         4007  +
         4008  +
         4009  +
         4010  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
         4011  +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
         4012  +if ${ac_cv_path_GREP+:} false; then :
         4013  +  $as_echo_n "(cached) " >&6
         4014  +else
         4015  +  if test -z "$GREP"; then
         4016  +  ac_path_GREP_found=false
         4017  +  # Loop through the user's path and test for each of PROGNAME-LIST
         4018  +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         4019  +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
         4020  +do
         4021  +  IFS=$as_save_IFS
         4022  +  test -z "$as_dir" && as_dir=.
         4023  +    for ac_prog in grep ggrep; do
         4024  +    for ac_exec_ext in '' $ac_executable_extensions; do
         4025  +      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
         4026  +      as_fn_executable_p "$ac_path_GREP" || continue
         4027  +# Check for GNU ac_path_GREP and select it if it is found.
         4028  +  # Check for GNU $ac_path_GREP
         4029  +case `"$ac_path_GREP" --version 2>&1` in
         4030  +*GNU*)
         4031  +  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
         4032  +*)
         4033  +  ac_count=0
         4034  +  $as_echo_n 0123456789 >"conftest.in"
         4035  +  while :
         4036  +  do
         4037  +    cat "conftest.in" "conftest.in" >"conftest.tmp"
         4038  +    mv "conftest.tmp" "conftest.in"
         4039  +    cp "conftest.in" "conftest.nl"
         4040  +    $as_echo 'GREP' >> "conftest.nl"
         4041  +    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
         4042  +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
         4043  +    as_fn_arith $ac_count + 1 && ac_count=$as_val
         4044  +    if test $ac_count -gt ${ac_path_GREP_max-0}; then
         4045  +      # Best one so far, save it but keep looking for a better one
         4046  +      ac_cv_path_GREP="$ac_path_GREP"
         4047  +      ac_path_GREP_max=$ac_count
         4048  +    fi
         4049  +    # 10*(2^10) chars as input seems more than enough
         4050  +    test $ac_count -gt 10 && break
         4051  +  done
         4052  +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
         4053  +esac
         4054  +
         4055  +      $ac_path_GREP_found && break 3
         4056  +    done
         4057  +  done
         4058  +  done
         4059  +IFS=$as_save_IFS
         4060  +  if test -z "$ac_cv_path_GREP"; then
         4061  +    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
         4062  +  fi
         4063  +else
         4064  +  ac_cv_path_GREP=$GREP
         4065  +fi
         4066  +
         4067  +fi
         4068  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
         4069  +$as_echo "$ac_cv_path_GREP" >&6; }
         4070  + GREP="$ac_cv_path_GREP"
         4071  +
         4072  +
         4073  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
         4074  +$as_echo_n "checking for egrep... " >&6; }
         4075  +if ${ac_cv_path_EGREP+:} false; then :
         4076  +  $as_echo_n "(cached) " >&6
         4077  +else
         4078  +  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
         4079  +   then ac_cv_path_EGREP="$GREP -E"
         4080  +   else
         4081  +     if test -z "$EGREP"; then
         4082  +  ac_path_EGREP_found=false
         4083  +  # Loop through the user's path and test for each of PROGNAME-LIST
         4084  +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         4085  +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
         4086  +do
         4087  +  IFS=$as_save_IFS
         4088  +  test -z "$as_dir" && as_dir=.
         4089  +    for ac_prog in egrep; do
         4090  +    for ac_exec_ext in '' $ac_executable_extensions; do
         4091  +      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
         4092  +      as_fn_executable_p "$ac_path_EGREP" || continue
         4093  +# Check for GNU ac_path_EGREP and select it if it is found.
         4094  +  # Check for GNU $ac_path_EGREP
         4095  +case `"$ac_path_EGREP" --version 2>&1` in
         4096  +*GNU*)
         4097  +  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
         4098  +*)
         4099  +  ac_count=0
         4100  +  $as_echo_n 0123456789 >"conftest.in"
         4101  +  while :
         4102  +  do
         4103  +    cat "conftest.in" "conftest.in" >"conftest.tmp"
         4104  +    mv "conftest.tmp" "conftest.in"
         4105  +    cp "conftest.in" "conftest.nl"
         4106  +    $as_echo 'EGREP' >> "conftest.nl"
         4107  +    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
         4108  +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
         4109  +    as_fn_arith $ac_count + 1 && ac_count=$as_val
         4110  +    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
         4111  +      # Best one so far, save it but keep looking for a better one
         4112  +      ac_cv_path_EGREP="$ac_path_EGREP"
         4113  +      ac_path_EGREP_max=$ac_count
         4114  +    fi
         4115  +    # 10*(2^10) chars as input seems more than enough
         4116  +    test $ac_count -gt 10 && break
         4117  +  done
         4118  +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
         4119  +esac
         4120  +
         4121  +      $ac_path_EGREP_found && break 3
         4122  +    done
         4123  +  done
         4124  +  done
         4125  +IFS=$as_save_IFS
         4126  +  if test -z "$ac_cv_path_EGREP"; then
         4127  +    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
         4128  +  fi
         4129  +else
         4130  +  ac_cv_path_EGREP=$EGREP
         4131  +fi
         4132  +
         4133  +   fi
         4134  +fi
         4135  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
         4136  +$as_echo "$ac_cv_path_EGREP" >&6; }
         4137  + EGREP="$ac_cv_path_EGREP"
         4138  +
         4139  +
         4140  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
         4141  +$as_echo_n "checking for ANSI C header files... " >&6; }
         4142  +if ${ac_cv_header_stdc+:} false; then :
         4143  +  $as_echo_n "(cached) " >&6
         4144  +else
         4145  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4146  +/* end confdefs.h.  */
         4147  +#include <stdlib.h>
         4148  +#include <stdarg.h>
         4149  +#include <string.h>
         4150  +#include <float.h>
         4151  +
         4152  +int
         4153  +main ()
         4154  +{
         4155  +
         4156  +  ;
         4157  +  return 0;
         4158  +}
         4159  +_ACEOF
         4160  +if ac_fn_c_try_compile "$LINENO"; then :
         4161  +  ac_cv_header_stdc=yes
         4162  +else
         4163  +  ac_cv_header_stdc=no
         4164  +fi
         4165  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         4166  +
         4167  +if test $ac_cv_header_stdc = yes; then
         4168  +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
         4169  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4170  +/* end confdefs.h.  */
         4171  +#include <string.h>
         4172  +
         4173  +_ACEOF
         4174  +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
         4175  +  $EGREP "memchr" >/dev/null 2>&1; then :
         4176  +
         4177  +else
         4178  +  ac_cv_header_stdc=no
         4179  +fi
         4180  +rm -f conftest*
         4181  +
         4182  +fi
         4183  +
         4184  +if test $ac_cv_header_stdc = yes; then
         4185  +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
         4186  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4187  +/* end confdefs.h.  */
         4188  +#include <stdlib.h>
         4189  +
         4190  +_ACEOF
         4191  +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
         4192  +  $EGREP "free" >/dev/null 2>&1; then :
         4193  +
         4194  +else
         4195  +  ac_cv_header_stdc=no
         4196  +fi
         4197  +rm -f conftest*
         4198  +
         4199  +fi
         4200  +
         4201  +if test $ac_cv_header_stdc = yes; then
         4202  +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
         4203  +  if test "$cross_compiling" = yes; then :
         4204  +  :
         4205  +else
         4206  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4207  +/* end confdefs.h.  */
         4208  +#include <ctype.h>
         4209  +#include <stdlib.h>
         4210  +#if ((' ' & 0x0FF) == 0x020)
         4211  +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
         4212  +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
         4213  +#else
         4214  +# define ISLOWER(c) \
         4215  +		   (('a' <= (c) && (c) <= 'i') \
         4216  +		     || ('j' <= (c) && (c) <= 'r') \
         4217  +		     || ('s' <= (c) && (c) <= 'z'))
         4218  +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
         4219  +#endif
         4220  +
         4221  +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
         4222  +int
         4223  +main ()
         4224  +{
         4225  +  int i;
         4226  +  for (i = 0; i < 256; i++)
         4227  +    if (XOR (islower (i), ISLOWER (i))
         4228  +	|| toupper (i) != TOUPPER (i))
         4229  +      return 2;
         4230  +  return 0;
         4231  +}
         4232  +_ACEOF
         4233  +if ac_fn_c_try_run "$LINENO"; then :
         4234  +
         4235  +else
         4236  +  ac_cv_header_stdc=no
         4237  +fi
         4238  +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
         4239  +  conftest.$ac_objext conftest.beam conftest.$ac_ext
         4240  +fi
         4241  +
         4242  +fi
         4243  +fi
         4244  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
         4245  +$as_echo "$ac_cv_header_stdc" >&6; }
         4246  +if test $ac_cv_header_stdc = yes; then
         4247  +
         4248  +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
         4249  +
         4250  +fi
         4251  +
         4252  +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
         4253  +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
         4254  +		  inttypes.h stdint.h unistd.h
         4255  +do :
         4256  +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
         4257  +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
         4258  +"
         4259  +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
         4260  +  cat >>confdefs.h <<_ACEOF
         4261  +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
         4262  +_ACEOF
         4263  +
         4264  +fi
         4265  +
         4266  +done
         4267  +
         4268  +
         4269  +
         4270  +    # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
         4271  +
         4272  +
         4273  +    #------------------------------------------------------------------------
         4274  +    # If we're using GCC, see if the compiler understands -pipe. If so, use it.
         4275  +    # It makes compiling go faster.  (This is only a performance feature.)
         4276  +    #------------------------------------------------------------------------
         4277  +
         4278  +    if test -z "$no_pipe" -a -n "$GCC"; then
         4279  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
         4280  +$as_echo_n "checking if the compiler understands -pipe... " >&6; }
         4281  +if ${tcl_cv_cc_pipe+:} false; then :
         4282  +  $as_echo_n "(cached) " >&6
         4283  +else
         4284  +
         4285  +	    hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
         4286  +	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4287  +/* end confdefs.h.  */
         4288  +
         4289  +int
         4290  +main ()
         4291  +{
         4292  +
         4293  +  ;
         4294  +  return 0;
         4295  +}
         4296  +_ACEOF
         4297  +if ac_fn_c_try_compile "$LINENO"; then :
         4298  +  tcl_cv_cc_pipe=yes
         4299  +else
         4300  +  tcl_cv_cc_pipe=no
         4301  +fi
         4302  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         4303  +	    CFLAGS=$hold_cflags
         4304  +fi
         4305  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
         4306  +$as_echo "$tcl_cv_cc_pipe" >&6; }
         4307  +	if test $tcl_cv_cc_pipe = yes; then
         4308  +	    CFLAGS="$CFLAGS -pipe"
         4309  +	fi
         4310  +    fi
         4311  +
         4312  +    #--------------------------------------------------------------------
         4313  +    # Common compiler flag setup
         4314  +    #--------------------------------------------------------------------
         4315  +
         4316  +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
         4317  +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
         4318  +if ${ac_cv_c_bigendian+:} false; then :
         4319  +  $as_echo_n "(cached) " >&6
         4320  +else
         4321  +  ac_cv_c_bigendian=unknown
         4322  +    # See if we're dealing with a universal compiler.
         4323  +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4324  +/* end confdefs.h.  */
         4325  +#ifndef __APPLE_CC__
         4326  +	       not a universal capable compiler
         4327  +	     #endif
         4328  +	     typedef int dummy;
         4329  +
         4330  +_ACEOF
         4331  +if ac_fn_c_try_compile "$LINENO"; then :
         4332  +
         4333  +	# Check for potential -arch flags.  It is not universal unless
         4334  +	# there are at least two -arch flags with different values.
         4335  +	ac_arch=
         4336  +	ac_prev=
         4337  +	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
         4338  +	 if test -n "$ac_prev"; then
         4339  +	   case $ac_word in
         4340  +	     i?86 | x86_64 | ppc | ppc64)
         4341  +	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
         4342  +		 ac_arch=$ac_word
         4343  +	       else
         4344  +		 ac_cv_c_bigendian=universal
         4345  +		 break
         4346  +	       fi
         4347  +	       ;;
         4348  +	   esac
         4349  +	   ac_prev=
         4350  +	 elif test "x$ac_word" = "x-arch"; then
         4351  +	   ac_prev=arch
         4352  +	 fi
         4353  +       done
         4354  +fi
         4355  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         4356  +    if test $ac_cv_c_bigendian = unknown; then
         4357  +      # See if sys/param.h defines the BYTE_ORDER macro.
         4358  +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4359  +/* end confdefs.h.  */
         4360  +#include <sys/types.h>
         4361  +	     #include <sys/param.h>
         4362  +
         4363  +int
         4364  +main ()
         4365  +{
         4366  +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
         4367  +		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
         4368  +		     && LITTLE_ENDIAN)
         4369  +	      bogus endian macros
         4370  +	     #endif
         4371  +
         4372  +  ;
         4373  +  return 0;
         4374  +}
         4375  +_ACEOF
         4376  +if ac_fn_c_try_compile "$LINENO"; then :
         4377  +  # It does; now see whether it defined to BIG_ENDIAN or not.
         4378  +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4379  +/* end confdefs.h.  */
         4380  +#include <sys/types.h>
         4381  +		#include <sys/param.h>
         4382  +
         4383  +int
         4384  +main ()
         4385  +{
         4386  +#if BYTE_ORDER != BIG_ENDIAN
         4387  +		 not big endian
         4388  +		#endif
         4389  +
         4390  +  ;
         4391  +  return 0;
         4392  +}
         4393  +_ACEOF
         4394  +if ac_fn_c_try_compile "$LINENO"; then :
         4395  +  ac_cv_c_bigendian=yes
         4396  +else
         4397  +  ac_cv_c_bigendian=no
         4398  +fi
         4399  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         4400  +fi
         4401  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         4402  +    fi
         4403  +    if test $ac_cv_c_bigendian = unknown; then
         4404  +      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
         4405  +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4406  +/* end confdefs.h.  */
         4407  +#include <limits.h>
         4408  +
         4409  +int
         4410  +main ()
         4411  +{
         4412  +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
         4413  +	      bogus endian macros
         4414  +	     #endif
         4415  +
         4416  +  ;
         4417  +  return 0;
         4418  +}
         4419  +_ACEOF
         4420  +if ac_fn_c_try_compile "$LINENO"; then :
         4421  +  # It does; now see whether it defined to _BIG_ENDIAN or not.
         4422  +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4423  +/* end confdefs.h.  */
         4424  +#include <limits.h>
         4425  +
         4426  +int
         4427  +main ()
         4428  +{
         4429  +#ifndef _BIG_ENDIAN
         4430  +		 not big endian
         4431  +		#endif
         4432  +
         4433  +  ;
         4434  +  return 0;
         4435  +}
         4436  +_ACEOF
         4437  +if ac_fn_c_try_compile "$LINENO"; then :
         4438  +  ac_cv_c_bigendian=yes
         4439  +else
         4440  +  ac_cv_c_bigendian=no
         4441  +fi
         4442  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         4443  +fi
         4444  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         4445  +    fi
         4446  +    if test $ac_cv_c_bigendian = unknown; then
         4447  +      # Compile a test program.
         4448  +      if test "$cross_compiling" = yes; then :
         4449  +  # Try to guess by grepping values from an object file.
         4450  +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4451  +/* end confdefs.h.  */
         4452  +short int ascii_mm[] =
         4453  +		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
         4454  +		short int ascii_ii[] =
         4455  +		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
         4456  +		int use_ascii (int i) {
         4457  +		  return ascii_mm[i] + ascii_ii[i];
         4458  +		}
         4459  +		short int ebcdic_ii[] =
         4460  +		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
         4461  +		short int ebcdic_mm[] =
         4462  +		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
         4463  +		int use_ebcdic (int i) {
         4464  +		  return ebcdic_mm[i] + ebcdic_ii[i];
         4465  +		}
         4466  +		extern int foo;
         4467  +
         4468  +int
         4469  +main ()
         4470  +{
         4471  +return use_ascii (foo) == use_ebcdic (foo);
         4472  +  ;
         4473  +  return 0;
         4474  +}
         4475  +_ACEOF
         4476  +if ac_fn_c_try_compile "$LINENO"; then :
         4477  +  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
         4478  +	      ac_cv_c_bigendian=yes
         4479  +	    fi
         4480  +	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
         4481  +	      if test "$ac_cv_c_bigendian" = unknown; then
         4482  +		ac_cv_c_bigendian=no
         4483  +	      else
         4484  +		# finding both strings is unlikely to happen, but who knows?
         4485  +		ac_cv_c_bigendian=unknown
         4486  +	      fi
         4487  +	    fi
         4488  +fi
         4489  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         4490  +else
         4491  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4492  +/* end confdefs.h.  */
         4493  +$ac_includes_default
         4494  +int
         4495  +main ()
         4496  +{
         4497  +
         4498  +	     /* Are we little or big endian?  From Harbison&Steele.  */
         4499  +	     union
         4500  +	     {
         4501  +	       long int l;
         4502  +	       char c[sizeof (long int)];
         4503  +	     } u;
         4504  +	     u.l = 1;
         4505  +	     return u.c[sizeof (long int) - 1] == 1;
         4506  +
         4507  +  ;
         4508  +  return 0;
         4509  +}
         4510  +_ACEOF
         4511  +if ac_fn_c_try_run "$LINENO"; then :
         4512  +  ac_cv_c_bigendian=no
         4513  +else
         4514  +  ac_cv_c_bigendian=yes
         4515  +fi
         4516  +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
         4517  +  conftest.$ac_objext conftest.beam conftest.$ac_ext
         4518  +fi
         4519  +
         4520  +    fi
         4521  +fi
         4522  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
         4523  +$as_echo "$ac_cv_c_bigendian" >&6; }
         4524  + case $ac_cv_c_bigendian in #(
         4525  +   yes)
         4526  +     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
         4527  +;; #(
         4528  +   no)
         4529  +      ;; #(
         4530  +   universal)
         4531  +
         4532  +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
         4533  +
         4534  +     ;; #(
         4535  +   *)
         4536  +     as_fn_error $? "unknown endianness
         4537  + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
         4538  + esac
         4539  +
         4540  +    if test "${TEA_PLATFORM}" = "unix" ; then
         4541  +
         4542  +    #--------------------------------------------------------------------
         4543  +    # On a few very rare systems, all of the libm.a stuff is
         4544  +    # already in libc.a.  Set compiler flags accordingly.
         4545  +    # Also, Linux requires the "ieee" library for math to work
         4546  +    # right (and it must appear before "-lm").
         4547  +    #--------------------------------------------------------------------
         4548  +
         4549  +    ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
         4550  +if test "x$ac_cv_func_sin" = xyes; then :
         4551  +  MATH_LIBS=""
         4552  +else
         4553  +  MATH_LIBS="-lm"
         4554  +fi
         4555  +
         4556  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5
         4557  +$as_echo_n "checking for main in -lieee... " >&6; }
         4558  +if ${ac_cv_lib_ieee_main+:} false; then :
         4559  +  $as_echo_n "(cached) " >&6
         4560  +else
         4561  +  ac_check_lib_save_LIBS=$LIBS
         4562  +LIBS="-lieee  $LIBS"
         4563  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4564  +/* end confdefs.h.  */
         4565  +
         4566  +
         4567  +int
         4568  +main ()
         4569  +{
         4570  +return main ();
         4571  +  ;
         4572  +  return 0;
         4573  +}
         4574  +_ACEOF
         4575  +if ac_fn_c_try_link "$LINENO"; then :
         4576  +  ac_cv_lib_ieee_main=yes
         4577  +else
         4578  +  ac_cv_lib_ieee_main=no
         4579  +fi
         4580  +rm -f core conftest.err conftest.$ac_objext \
         4581  +    conftest$ac_exeext conftest.$ac_ext
         4582  +LIBS=$ac_check_lib_save_LIBS
         4583  +fi
         4584  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5
         4585  +$as_echo "$ac_cv_lib_ieee_main" >&6; }
         4586  +if test "x$ac_cv_lib_ieee_main" = xyes; then :
         4587  +  MATH_LIBS="-lieee $MATH_LIBS"
         4588  +fi
         4589  +
         4590  +
         4591  +    #--------------------------------------------------------------------
         4592  +    # Interactive UNIX requires -linet instead of -lsocket, plus it
         4593  +    # needs net/errno.h to define the socket-related error codes.
         4594  +    #--------------------------------------------------------------------
         4595  +
         4596  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
         4597  +$as_echo_n "checking for main in -linet... " >&6; }
         4598  +if ${ac_cv_lib_inet_main+:} false; then :
         4599  +  $as_echo_n "(cached) " >&6
         4600  +else
         4601  +  ac_check_lib_save_LIBS=$LIBS
         4602  +LIBS="-linet  $LIBS"
         4603  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4604  +/* end confdefs.h.  */
         4605  +
         4606  +
         4607  +int
         4608  +main ()
         4609  +{
         4610  +return main ();
         4611  +  ;
         4612  +  return 0;
         4613  +}
         4614  +_ACEOF
         4615  +if ac_fn_c_try_link "$LINENO"; then :
         4616  +  ac_cv_lib_inet_main=yes
         4617  +else
         4618  +  ac_cv_lib_inet_main=no
         4619  +fi
         4620  +rm -f core conftest.err conftest.$ac_objext \
         4621  +    conftest$ac_exeext conftest.$ac_ext
         4622  +LIBS=$ac_check_lib_save_LIBS
         4623  +fi
         4624  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
         4625  +$as_echo "$ac_cv_lib_inet_main" >&6; }
         4626  +if test "x$ac_cv_lib_inet_main" = xyes; then :
         4627  +  LIBS="$LIBS -linet"
         4628  +fi
         4629  +
         4630  +    ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
         4631  +if test "x$ac_cv_header_net_errno_h" = xyes; then :
         4632  +
         4633  +
         4634  +$as_echo "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
         4635  +
         4636  +fi
         4637  +
         4638  +
         4639  +
         4640  +    #--------------------------------------------------------------------
         4641  +    #	Check for the existence of the -lsocket and -lnsl libraries.
         4642  +    #	The order here is important, so that they end up in the right
         4643  +    #	order in the command line generated by make.  Here are some
         4644  +    #	special considerations:
         4645  +    #	1. Use "connect" and "accept" to check for -lsocket, and
         4646  +    #	   "gethostbyname" to check for -lnsl.
         4647  +    #	2. Use each function name only once:  can't redo a check because
         4648  +    #	   autoconf caches the results of the last check and won't redo it.
         4649  +    #	3. Use -lnsl and -lsocket only if they supply procedures that
         4650  +    #	   aren't already present in the normal libraries.  This is because
         4651  +    #	   IRIX 5.2 has libraries, but they aren't needed and they're
         4652  +    #	   bogus:  they goof up name resolution if used.
         4653  +    #	4. On some SVR4 systems, can't use -lsocket without -lnsl too.
         4654  +    #	   To get around this problem, check for both libraries together
         4655  +    #	   if -lsocket doesn't work by itself.
         4656  +    #--------------------------------------------------------------------
         4657  +
         4658  +    tcl_checkBoth=0
         4659  +    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
         4660  +if test "x$ac_cv_func_connect" = xyes; then :
         4661  +  tcl_checkSocket=0
         4662  +else
         4663  +  tcl_checkSocket=1
         4664  +fi
         4665  +
         4666  +    if test "$tcl_checkSocket" = 1; then
         4667  +	ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
         4668  +if test "x$ac_cv_func_setsockopt" = xyes; then :
         4669  +
         4670  +else
         4671  +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
         4672  +$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
         4673  +if ${ac_cv_lib_socket_setsockopt+:} false; then :
         4674  +  $as_echo_n "(cached) " >&6
         4675  +else
         4676  +  ac_check_lib_save_LIBS=$LIBS
         4677  +LIBS="-lsocket  $LIBS"
         4678  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4679  +/* end confdefs.h.  */
         4680  +
         4681  +/* Override any GCC internal prototype to avoid an error.
         4682  +   Use char because int might match the return type of a GCC
         4683  +   builtin and then its argument prototype would still apply.  */
         4684  +#ifdef __cplusplus
         4685  +extern "C"
         4686  +#endif
         4687  +char setsockopt ();
         4688  +int
         4689  +main ()
         4690  +{
         4691  +return setsockopt ();
         4692  +  ;
         4693  +  return 0;
         4694  +}
         4695  +_ACEOF
         4696  +if ac_fn_c_try_link "$LINENO"; then :
         4697  +  ac_cv_lib_socket_setsockopt=yes
         4698  +else
         4699  +  ac_cv_lib_socket_setsockopt=no
         4700  +fi
         4701  +rm -f core conftest.err conftest.$ac_objext \
         4702  +    conftest$ac_exeext conftest.$ac_ext
         4703  +LIBS=$ac_check_lib_save_LIBS
         4704  +fi
         4705  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
         4706  +$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
         4707  +if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
         4708  +  LIBS="$LIBS -lsocket"
         4709  +else
         4710  +  tcl_checkBoth=1
         4711  +fi
         4712  +
         4713  +fi
         4714  +
         4715  +    fi
         4716  +    if test "$tcl_checkBoth" = 1; then
         4717  +	tk_oldLibs=$LIBS
         4718  +	LIBS="$LIBS -lsocket -lnsl"
         4719  +	ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
         4720  +if test "x$ac_cv_func_accept" = xyes; then :
         4721  +  tcl_checkNsl=0
         4722  +else
         4723  +  LIBS=$tk_oldLibs
         4724  +fi
         4725  +
         4726  +    fi
         4727  +    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
         4728  +if test "x$ac_cv_func_gethostbyname" = xyes; then :
         4729  +
         4730  +else
         4731  +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
         4732  +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
         4733  +if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
         4734  +  $as_echo_n "(cached) " >&6
         4735  +else
         4736  +  ac_check_lib_save_LIBS=$LIBS
         4737  +LIBS="-lnsl  $LIBS"
         4738  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4739  +/* end confdefs.h.  */
         4740  +
         4741  +/* Override any GCC internal prototype to avoid an error.
         4742  +   Use char because int might match the return type of a GCC
         4743  +   builtin and then its argument prototype would still apply.  */
         4744  +#ifdef __cplusplus
         4745  +extern "C"
         4746  +#endif
         4747  +char gethostbyname ();
         4748  +int
         4749  +main ()
         4750  +{
         4751  +return gethostbyname ();
         4752  +  ;
         4753  +  return 0;
         4754  +}
         4755  +_ACEOF
         4756  +if ac_fn_c_try_link "$LINENO"; then :
         4757  +  ac_cv_lib_nsl_gethostbyname=yes
         4758  +else
         4759  +  ac_cv_lib_nsl_gethostbyname=no
         4760  +fi
         4761  +rm -f core conftest.err conftest.$ac_objext \
         4762  +    conftest$ac_exeext conftest.$ac_ext
         4763  +LIBS=$ac_check_lib_save_LIBS
         4764  +fi
         4765  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
         4766  +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
         4767  +if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
         4768  +  LIBS="$LIBS -lnsl"
         4769  +fi
         4770  +
         4771  +fi
         4772  +
         4773  +
         4774  +    # TEA specific: Don't perform the eval of the libraries here because
         4775  +    # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS
         4776  +
         4777  +    TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
         4778  +
         4779  +
         4780  +
         4781  +
         4782  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5
         4783  +$as_echo_n "checking dirent.h... " >&6; }
         4784  +if ${tcl_cv_dirent_h+:} false; then :
         4785  +  $as_echo_n "(cached) " >&6
         4786  +else
         4787  +
         4788  +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4789  +/* end confdefs.h.  */
         4790  +#include <sys/types.h>
         4791  +#include <dirent.h>
         4792  +int
         4793  +main ()
         4794  +{
         4795  +
         4796  +#ifndef _POSIX_SOURCE
         4797  +#   ifdef __Lynx__
         4798  +	/*
         4799  +	 * Generate compilation error to make the test fail:  Lynx headers
         4800  +	 * are only valid if really in the POSIX environment.
         4801  +	 */
         4802  +
         4803  +	missing_procedure();
         4804  +#   endif
         4805  +#endif
         4806  +DIR *d;
         4807  +struct dirent *entryPtr;
         4808  +char *p;
         4809  +d = opendir("foobar");
         4810  +entryPtr = readdir(d);
         4811  +p = entryPtr->d_name;
         4812  +closedir(d);
         4813  +
         4814  +  ;
         4815  +  return 0;
         4816  +}
         4817  +_ACEOF
         4818  +if ac_fn_c_try_link "$LINENO"; then :
         4819  +  tcl_cv_dirent_h=yes
         4820  +else
         4821  +  tcl_cv_dirent_h=no
         4822  +fi
         4823  +rm -f core conftest.err conftest.$ac_objext \
         4824  +    conftest$ac_exeext conftest.$ac_ext
         4825  +fi
         4826  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5
         4827  +$as_echo "$tcl_cv_dirent_h" >&6; }
         4828  +
         4829  +    if test $tcl_cv_dirent_h = no; then
         4830  +
         4831  +$as_echo "#define NO_DIRENT_H 1" >>confdefs.h
         4832  +
         4833  +    fi
         4834  +
         4835  +    # TEA specific:
         4836  +    ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
         4837  +if test "x$ac_cv_header_errno_h" = xyes; then :
         4838  +
         4839  +else
         4840  +
         4841  +$as_echo "#define NO_ERRNO_H 1" >>confdefs.h
         4842  +
         4843  +fi
         4844  +
         4845  +
         4846  +    ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
         4847  +if test "x$ac_cv_header_float_h" = xyes; then :
         4848  +
         4849  +else
         4850  +
         4851  +$as_echo "#define NO_FLOAT_H 1" >>confdefs.h
         4852  +
         4853  +fi
         4854  +
         4855  +
         4856  +    ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
         4857  +if test "x$ac_cv_header_values_h" = xyes; then :
         4858  +
         4859  +else
         4860  +
         4861  +$as_echo "#define NO_VALUES_H 1" >>confdefs.h
         4862  +
         4863  +fi
         4864  +
         4865  +
         4866  +    ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
         4867  +if test "x$ac_cv_header_limits_h" = xyes; then :
         4868  +
         4869  +$as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h
         4870  +
         4871  +else
         4872  +
         4873  +$as_echo "#define NO_LIMITS_H 1" >>confdefs.h
         4874  +
         4875  +fi
         4876  +
         4877  +
         4878  +    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
         4879  +if test "x$ac_cv_header_stdlib_h" = xyes; then :
         4880  +  tcl_ok=1
         4881  +else
         4882  +  tcl_ok=0
         4883  +fi
         4884  +
         4885  +
         4886  +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4887  +/* end confdefs.h.  */
         4888  +#include <stdlib.h>
         4889  +
         4890  +_ACEOF
         4891  +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
         4892  +  $EGREP "strtol" >/dev/null 2>&1; then :
         4893  +
         4894  +else
         4895  +  tcl_ok=0
         4896  +fi
         4897  +rm -f conftest*
         4898  +
         4899  +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4900  +/* end confdefs.h.  */
         4901  +#include <stdlib.h>
         4902  +
         4903  +_ACEOF
         4904  +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
         4905  +  $EGREP "strtoul" >/dev/null 2>&1; then :
         4906  +
         4907  +else
         4908  +  tcl_ok=0
         4909  +fi
         4910  +rm -f conftest*
         4911  +
         4912  +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4913  +/* end confdefs.h.  */
         4914  +#include <stdlib.h>
         4915  +
         4916  +_ACEOF
         4917  +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
         4918  +  $EGREP "strtod" >/dev/null 2>&1; then :
         4919  +
         4920  +else
         4921  +  tcl_ok=0
         4922  +fi
         4923  +rm -f conftest*
         4924  +
         4925  +    if test $tcl_ok = 0; then
         4926  +
         4927  +$as_echo "#define NO_STDLIB_H 1" >>confdefs.h
         4928  +
         4929  +    fi
         4930  +    ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
         4931  +if test "x$ac_cv_header_string_h" = xyes; then :
         4932  +  tcl_ok=1
         4933  +else
         4934  +  tcl_ok=0
         4935  +fi
         4936  +
         4937  +
         4938  +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4939  +/* end confdefs.h.  */
         4940  +#include <string.h>
         4941  +
         4942  +_ACEOF
         4943  +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
         4944  +  $EGREP "strstr" >/dev/null 2>&1; then :
         4945  +
         4946  +else
         4947  +  tcl_ok=0
         4948  +fi
         4949  +rm -f conftest*
         4950  +
         4951  +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         4952  +/* end confdefs.h.  */
         4953  +#include <string.h>
         4954  +
         4955  +_ACEOF
         4956  +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
         4957  +  $EGREP "strerror" >/dev/null 2>&1; then :
         4958  +
         4959  +else
         4960  +  tcl_ok=0
         4961  +fi
         4962  +rm -f conftest*
         4963  +
         4964  +
         4965  +    # See also memmove check below for a place where NO_STRING_H can be
         4966  +    # set and why.
         4967  +
         4968  +    if test $tcl_ok = 0; then
         4969  +
         4970  +$as_echo "#define NO_STRING_H 1" >>confdefs.h
         4971  +
         4972  +    fi
         4973  +
         4974  +    ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
         4975  +if test "x$ac_cv_header_sys_wait_h" = xyes; then :
         4976  +
         4977  +else
         4978  +
         4979  +$as_echo "#define NO_SYS_WAIT_H 1" >>confdefs.h
         4980  +
         4981  +fi
         4982  +
         4983  +
         4984  +    ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
         4985  +if test "x$ac_cv_header_dlfcn_h" = xyes; then :
         4986  +
         4987  +else
         4988  +
         4989  +$as_echo "#define NO_DLFCN_H 1" >>confdefs.h
         4990  +
         4991  +fi
         4992  +
         4993  +
         4994  +
         4995  +    # OS/390 lacks sys/param.h (and doesn't need it, by chance).
         4996  +    for ac_header in sys/param.h
         4997  +do :
         4998  +  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
         4999  +if test "x$ac_cv_header_sys_param_h" = xyes; then :
         5000  +  cat >>confdefs.h <<_ACEOF
         5001  +#define HAVE_SYS_PARAM_H 1
         5002  +_ACEOF
         5003  +
         5004  +fi
         5005  +
         5006  +done
         5007  +
         5008  +
         5009  +	# Let the user call this, because if it triggers, they will
         5010  +	# need a compat/strtod.c that is correct.  Users can also
         5011  +	# use Tcl_GetDouble(FromObj) instead.
         5012  +	#TEA_BUGGY_STRTOD
         5013  +    fi
         5014  +
         5015  +
         5016  +#-----------------------------------------------------------------------
         5017  +# __CHANGE__
         5018  +# Specify the C source files to compile in TEA_ADD_SOURCES,
         5019  +# public headers that need to be installed in TEA_ADD_HEADERS,
         5020  +# stub library C source files to compile in TEA_ADD_STUB_SOURCES,
         5021  +# and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
         5022  +# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
         5023  +# and PKG_TCL_SOURCES.
         5024  +#-----------------------------------------------------------------------
         5025  +
         5026  +
         5027  +    vars="macosx/aem.c"
         5028  +    for i in $vars; do
         5029  +	case $i in
         5030  +	    \$*)
         5031  +		# allow $-var names
         5032  +		PKG_SOURCES="$PKG_SOURCES $i"
         5033  +		PKG_OBJECTS="$PKG_OBJECTS $i"
         5034  +		;;
         5035  +	    *)
         5036  +		# check for existence - allows for generic/win/unix VPATH
         5037  +		# To add more dirs here (like 'src'), you have to update VPATH
         5038  +		# in Makefile.in as well
         5039  +		if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
         5040  +		    -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
         5041  +		    ; then
         5042  +		    as_fn_error $? "could not find source file '$i'" "$LINENO" 5
         5043  +		fi
         5044  +		PKG_SOURCES="$PKG_SOURCES $i"
         5045  +		# this assumes it is in a VPATH dir
         5046  +		i=`basename $i`
         5047  +		# handle user calling this before or after TEA_SETUP_COMPILER
         5048  +		if test x"${OBJEXT}" != x ; then
         5049  +		    j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
         5050  +		else
         5051  +		    j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
         5052  +		fi
         5053  +		PKG_OBJECTS="$PKG_OBJECTS $j"
         5054  +		;;
         5055  +	esac
         5056  +    done
         5057  +
         5058  +
         5059  +
         5060  +
         5061  +    vars=""
         5062  +    for i in $vars; do
         5063  +	# check for existence, be strict because it is installed
         5064  +	if test ! -f "${srcdir}/$i" ; then
         5065  +	    as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
         5066  +	fi
         5067  +	PKG_HEADERS="$PKG_HEADERS $i"
         5068  +    done
         5069  +
         5070  +
         5071  +
         5072  +    vars=""
         5073  +    for i in $vars; do
         5074  +	PKG_INCLUDES="$PKG_INCLUDES $i"
         5075  +    done
         5076  +
         5077  +
         5078  +
         5079  +    vars="-framework Cocoa -framework CoreFoundation -framework CoreServices -framework Carbon"
         5080  +    for i in $vars; do
         5081  +	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
         5082  +	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
         5083  +	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
         5084  +	fi
         5085  +	PKG_LIBS="$PKG_LIBS $i"
         5086  +    done
         5087  +
         5088  +
         5089  +
         5090  +    PKG_CFLAGS="$PKG_CFLAGS -std=gnu99 "
         5091  +
         5092  +
         5093  +
         5094  +    vars=""
         5095  +    for i in $vars; do
         5096  +	# check for existence - allows for generic/win/unix VPATH
         5097  +	if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
         5098  +	    -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
         5099  +	    ; then
         5100  +	    as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
         5101  +	fi
         5102  +	PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
         5103  +	# this assumes it is in a VPATH dir
         5104  +	i=`basename $i`
         5105  +	# handle user calling this before or after TEA_SETUP_COMPILER
         5106  +	if test x"${OBJEXT}" != x ; then
         5107  +	    j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
         5108  +	else
         5109  +	    j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
         5110  +	fi
         5111  +	PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
         5112  +    done
         5113  +
         5114  +
         5115  +
         5116  +
         5117  +#--------------------------------------------------------------------
         5118  +# __CHANGE__
         5119  +# A few miscellaneous platform-specific items:
         5120  +#
         5121  +# Define a special symbol for Windows (BUILD_tkWebView in this case) so
         5122  +# that we create the export library with the dll.
         5123  +#
         5124  +# Windows creates a few extra files that need to be cleaned up.
         5125  +# You can add more files to clean if your extension creates any extra
         5126  +# files.
         5127  +#
         5128  +# TEA_ADD_* any platform specific compiler/build info here.
         5129  +#--------------------------------------------------------------------
         5130  +
         5131  +# Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure
         5132  +# and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var.
         5133  +#CLEANFILES="pkgIndex.tcl"
         5134  +if test "${TEA_PLATFORM}" = "windows" ; then
         5135  +
         5136  +$as_echo "#define BUILD_tkWebView 1" >>confdefs.h
         5137  +
         5138  +    CLEANFILES="$CLEANFILES *.lib *.dll *.exp *.ilk *.pdb vc*.pch"
         5139  +    #TEA_ADD_SOURCES([win/winFile.c])
         5140  +    #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"])
         5141  +else
         5142  +    # Ensure no empty else clauses
         5143  +    :
         5144  +    #TEA_ADD_SOURCES([unix/unixFile.c])
         5145  +    #TEA_ADD_LIBS([-lsuperfly])
         5146  +fi
         5147  +
         5148  +
         5149  +#--------------------------------------------------------------------
         5150  +# __CHANGE__
         5151  +# Choose which headers you need.  Extension authors should try very
         5152  +# hard to only rely on the Tcl public header files.  Internal headers
         5153  +# contain private data structures and are subject to change without
         5154  +# notice.
         5155  +# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
         5156  +#--------------------------------------------------------------------
         5157  +
         5158  +
         5159  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
         5160  +$as_echo_n "checking for Tcl public headers... " >&6; }
         5161  +
         5162  +
         5163  +# Check whether --with-tclinclude was given.
         5164  +if test "${with_tclinclude+set}" = set; then :
         5165  +  withval=$with_tclinclude; with_tclinclude=${withval}
         5166  +fi
         5167  +
         5168  +
         5169  +    if ${ac_cv_c_tclh+:} false; then :
         5170  +  $as_echo_n "(cached) " >&6
         5171  +else
         5172  +
         5173  +	# Use the value from --with-tclinclude, if it was given
         5174  +
         5175  +	if test x"${with_tclinclude}" != x ; then
         5176  +	    if test -f "${with_tclinclude}/tcl.h" ; then
         5177  +		ac_cv_c_tclh=${with_tclinclude}
         5178  +	    else
         5179  +		as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
         5180  +	    fi
         5181  +	else
         5182  +	    list=""
         5183  +	    if test "`uname -s`" = "Darwin"; then
         5184  +		# If Tcl was built as a framework, attempt to use
         5185  +		# the framework's Headers directory
         5186  +		case ${TCL_DEFS} in
         5187  +		    *TCL_FRAMEWORK*)
         5188  +			list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
         5189  +			;;
         5190  +		esac
         5191  +	    fi
         5192  +
         5193  +	    # Look in the source dir only if Tcl is not installed,
         5194  +	    # and in that situation, look there before installed locations.
         5195  +	    if test -f "${TCL_BIN_DIR}/Makefile" ; then
         5196  +		list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
         5197  +	    fi
         5198  +
         5199  +	    # Check order: pkg --prefix location, Tcl's --prefix location,
         5200  +	    # relative to directory of tclConfig.sh.
         5201  +
         5202  +	    eval "temp_includedir=${includedir}"
         5203  +	    list="$list \
         5204  +		`ls -d ${temp_includedir}        2>/dev/null` \
         5205  +		`ls -d ${TCL_PREFIX}/include     2>/dev/null` \
         5206  +		`ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
         5207  +	    if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
         5208  +		list="$list /usr/local/include /usr/include"
         5209  +		if test x"${TCL_INCLUDE_SPEC}" != x ; then
         5210  +		    d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
         5211  +		    list="$list `ls -d ${d} 2>/dev/null`"
         5212  +		fi
         5213  +	    fi
         5214  +	    for i in $list ; do
         5215  +		if test -f "$i/tcl.h" ; then
         5216  +		    ac_cv_c_tclh=$i
         5217  +		    break
         5218  +		fi
         5219  +	    done
         5220  +	fi
         5221  +
         5222  +fi
         5223  +
         5224  +
         5225  +    # Print a message based on how we determined the include path
         5226  +
         5227  +    if test x"${ac_cv_c_tclh}" = x ; then
         5228  +	as_fn_error $? "tcl.h not found.  Please specify its location with --with-tclinclude" "$LINENO" 5
         5229  +    else
         5230  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
         5231  +$as_echo "${ac_cv_c_tclh}" >&6; }
         5232  +    fi
         5233  +
         5234  +    # Convert to a native path and substitute into the output files.
         5235  +
         5236  +    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
         5237  +
         5238  +    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
         5239  +
         5240  +
         5241  +
         5242  +#TEA_PRIVATE_TCL_HEADERS
         5243  +
         5244  +
         5245  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk public headers" >&5
         5246  +$as_echo_n "checking for Tk public headers... " >&6; }
         5247  +
         5248  +
         5249  +# Check whether --with-tkinclude was given.
         5250  +if test "${with_tkinclude+set}" = set; then :
         5251  +  withval=$with_tkinclude; with_tkinclude=${withval}
         5252  +fi
         5253  +
         5254  +
         5255  +    if ${ac_cv_c_tkh+:} false; then :
         5256  +  $as_echo_n "(cached) " >&6
         5257  +else
         5258  +
         5259  +	# Use the value from --with-tkinclude, if it was given
         5260  +
         5261  +	if test x"${with_tkinclude}" != x ; then
         5262  +	    if test -f "${with_tkinclude}/tk.h" ; then
         5263  +		ac_cv_c_tkh=${with_tkinclude}
         5264  +	    else
         5265  +		as_fn_error $? "${with_tkinclude} directory does not contain tk.h" "$LINENO" 5
         5266  +	    fi
         5267  +	else
         5268  +	    list=""
         5269  +	    if test "`uname -s`" = "Darwin"; then
         5270  +		# If Tk was built as a framework, attempt to use
         5271  +		# the framework's Headers directory.
         5272  +		case ${TK_DEFS} in
         5273  +		    *TK_FRAMEWORK*)
         5274  +			list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`"
         5275  +			;;
         5276  +		esac
         5277  +	    fi
         5278  +
         5279  +	    # Look in the source dir only if Tk is not installed,
         5280  +	    # and in that situation, look there before installed locations.
         5281  +	    if test -f "${TK_BIN_DIR}/Makefile" ; then
         5282  +		list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`"
         5283  +	    fi
         5284  +
         5285  +	    # Check order: pkg --prefix location, Tk's --prefix location,
         5286  +	    # relative to directory of tkConfig.sh, Tcl's --prefix location,
         5287  +	    # relative to directory of tclConfig.sh.
         5288  +
         5289  +	    eval "temp_includedir=${includedir}"
         5290  +	    list="$list \
         5291  +		`ls -d ${temp_includedir}        2>/dev/null` \
         5292  +		`ls -d ${TK_PREFIX}/include      2>/dev/null` \
         5293  +		`ls -d ${TK_BIN_DIR}/../include  2>/dev/null` \
         5294  +		`ls -d ${TCL_PREFIX}/include     2>/dev/null` \
         5295  +		`ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
         5296  +	    if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
         5297  +		list="$list /usr/local/include /usr/include"
         5298  +		if test x"${TK_INCLUDE_SPEC}" != x ; then
         5299  +		    d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'`
         5300  +		    list="$list `ls -d ${d} 2>/dev/null`"
         5301  +		fi
         5302  +	    fi
         5303  +	    for i in $list ; do
         5304  +		if test -f "$i/tk.h" ; then
         5305  +		    ac_cv_c_tkh=$i
         5306  +		    break
         5307  +		fi
         5308  +	    done
         5309  +	fi
         5310  +
         5311  +fi
         5312  +
         5313  +
         5314  +    # Print a message based on how we determined the include path
         5315  +
         5316  +    if test x"${ac_cv_c_tkh}" = x ; then
         5317  +	as_fn_error $? "tk.h not found.  Please specify its location with --with-tkinclude" "$LINENO" 5
         5318  +    else
         5319  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tkh}" >&5
         5320  +$as_echo "${ac_cv_c_tkh}" >&6; }
         5321  +    fi
         5322  +
         5323  +    # Convert to a native path and substitute into the output files.
         5324  +
         5325  +    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}`
         5326  +
         5327  +    TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
         5328  +
         5329  +
         5330  +
         5331  +    if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then
         5332  +	# On Windows and Aqua, we need the X compat headers
         5333  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5
         5334  +$as_echo_n "checking for X11 header files... " >&6; }
         5335  +	if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then
         5336  +	    INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`"
         5337  +	    TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
         5338  +
         5339  +	fi
         5340  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${INCLUDE_DIR_NATIVE}" >&5
         5341  +$as_echo "${INCLUDE_DIR_NATIVE}" >&6; }
         5342  +    fi
         5343  +
         5344  +
         5345  +    # Allow for --with-tkinclude to take effect and define ${ac_cv_c_tkh}
         5346  +
         5347  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private include files" >&5
         5348  +$as_echo_n "checking for Tk private include files... " >&6; }
         5349  +
         5350  +    TK_SRC_DIR_NATIVE=`${CYGPATH} ${TK_SRC_DIR}`
         5351  +    TK_TOP_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}\"
         5352  +
         5353  +    # Check to see if tk<Plat>Port.h isn't already with the public headers
         5354  +    # Don't look for tkInt.h because that resides with tk.h in the core
         5355  +    # sources, but the <plat>Port headers are in a different directory
         5356  +    if test "${TEA_PLATFORM}" = "windows" -a \
         5357  +	-f "${ac_cv_c_tkh}/tkWinPort.h"; then
         5358  +	result="private headers found with public headers"
         5359  +    elif test "${TEA_PLATFORM}" = "unix" -a \
         5360  +	-f "${ac_cv_c_tkh}/tkUnixPort.h"; then
         5361  +	result="private headers found with public headers"
         5362  +    else
         5363  +	TK_GENERIC_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/generic\"
         5364  +	TK_XLIB_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/xlib\"
         5365  +	if test "${TEA_PLATFORM}" = "windows"; then
         5366  +	    TK_PLATFORM_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/win\"
         5367  +	else
         5368  +	    TK_PLATFORM_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/unix\"
         5369  +	fi
         5370  +	# Overwrite the previous TK_INCLUDES as this should capture both
         5371  +	# public and private headers in the same set.
         5372  +	# We want to ensure these are substituted so as not to require
         5373  +	# any *_NATIVE vars be defined in the Makefile
         5374  +	TK_INCLUDES="-I${TK_GENERIC_DIR_NATIVE} -I${TK_PLATFORM_DIR_NATIVE}"
         5375  +	# Detect and add ttk subdir
         5376  +	if test -d "${TK_SRC_DIR}/generic/ttk"; then
         5377  +	   TK_INCLUDES="${TK_INCLUDES} -I\"${TK_SRC_DIR_NATIVE}/generic/ttk\""
         5378  +	fi
         5379  +	if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then
         5380  +	   TK_INCLUDES="${TK_INCLUDES} -I\"${TK_XLIB_DIR_NATIVE}\""
         5381  +	fi
         5382  +	if test "${TEA_WINDOWINGSYSTEM}" = "aqua"; then
         5383  +	   TK_INCLUDES="${TK_INCLUDES} -I\"${TK_SRC_DIR_NATIVE}/macosx\""
         5384  +	fi
         5385  +	if test "`uname -s`" = "Darwin"; then
         5386  +	    # If Tk was built as a framework, attempt to use
         5387  +	    # the framework's Headers and PrivateHeaders directories
         5388  +	    case ${TK_DEFS} in
         5389  +		*TK_FRAMEWORK*)
         5390  +			if test -d "${TK_BIN_DIR}/Headers" -a \
         5391  +				-d "${TK_BIN_DIR}/PrivateHeaders"; then
         5392  +			    TK_INCLUDES="-I\"${TK_BIN_DIR}/Headers\" -I\"${TK_BIN_DIR}/PrivateHeaders\" ${TK_INCLUDES}"
         5393  +			else
         5394  +			    TK_INCLUDES="${TK_INCLUDES} ${TK_INCLUDE_SPEC} `echo "${TK_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`"
         5395  +			fi
         5396  +			;;
         5397  +	    esac
         5398  +	    result="Using ${TK_INCLUDES}"
         5399  +	else
         5400  +	    if test ! -f "${TK_SRC_DIR}/generic/tkInt.h" ; then
         5401  +	       as_fn_error $? "Cannot find private header tkInt.h in ${TK_SRC_DIR}" "$LINENO" 5
         5402  +	    fi
         5403  +	    result="Using srcdir found in tkConfig.sh: ${TK_SRC_DIR}"
         5404  +	fi
         5405  +    fi
         5406  +
         5407  +
         5408  +
         5409  +
         5410  +
         5411  +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${result}" >&5
         5412  +$as_echo "${result}" >&6; }
         5413  +
         5414  +
         5415  +    if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then
         5416  +
         5417  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
         5418  +$as_echo_n "checking for X... " >&6; }
         5419  +
         5420  +
         5421  +# Check whether --with-x was given.
         5422  +if test "${with_x+set}" = set; then :
         5423  +  withval=$with_x;
         5424  +fi
         5425  +
         5426  +# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
         5427  +if test "x$with_x" = xno; then
         5428  +  # The user explicitly disabled X.
         5429  +  have_x=disabled
         5430  +else
         5431  +  case $x_includes,$x_libraries in #(
         5432  +    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
         5433  +    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
         5434  +  $as_echo_n "(cached) " >&6
         5435  +else
         5436  +  # One or both of the vars are not set, and there is no cached value.
         5437  +ac_x_includes=no ac_x_libraries=no
         5438  +rm -f -r conftest.dir
         5439  +if mkdir conftest.dir; then
         5440  +  cd conftest.dir
         5441  +  cat >Imakefile <<'_ACEOF'
         5442  +incroot:
         5443  +	@echo incroot='${INCROOT}'
         5444  +usrlibdir:
         5445  +	@echo usrlibdir='${USRLIBDIR}'
         5446  +libdir:
         5447  +	@echo libdir='${LIBDIR}'
         5448  +_ACEOF
         5449  +  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
         5450  +    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
         5451  +    for ac_var in incroot usrlibdir libdir; do
         5452  +      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
         5453  +    done
         5454  +    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
         5455  +    for ac_extension in a so sl dylib la dll; do
         5456  +      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
         5457  +	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
         5458  +	ac_im_usrlibdir=$ac_im_libdir; break
         5459  +      fi
         5460  +    done
         5461  +    # Screen out bogus values from the imake configuration.  They are
         5462  +    # bogus both because they are the default anyway, and because
         5463  +    # using them would break gcc on systems where it needs fixed includes.
         5464  +    case $ac_im_incroot in
         5465  +	/usr/include) ac_x_includes= ;;
         5466  +	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
         5467  +    esac
         5468  +    case $ac_im_usrlibdir in
         5469  +	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
         5470  +	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
         5471  +    esac
         5472  +  fi
         5473  +  cd ..
         5474  +  rm -f -r conftest.dir
         5475  +fi
         5476  +
         5477  +# Standard set of common directories for X headers.
         5478  +# Check X11 before X11Rn because it is often a symlink to the current release.
         5479  +ac_x_header_dirs='
         5480  +/usr/X11/include
         5481  +/usr/X11R7/include
         5482  +/usr/X11R6/include
         5483  +/usr/X11R5/include
         5484  +/usr/X11R4/include
         5485  +
         5486  +/usr/include/X11
         5487  +/usr/include/X11R7
         5488  +/usr/include/X11R6
         5489  +/usr/include/X11R5
         5490  +/usr/include/X11R4
         5491  +
         5492  +/usr/local/X11/include
         5493  +/usr/local/X11R7/include
         5494  +/usr/local/X11R6/include
         5495  +/usr/local/X11R5/include
         5496  +/usr/local/X11R4/include
         5497  +
         5498  +/usr/local/include/X11
         5499  +/usr/local/include/X11R7
         5500  +/usr/local/include/X11R6
         5501  +/usr/local/include/X11R5
         5502  +/usr/local/include/X11R4
         5503  +
         5504  +/usr/X386/include
         5505  +/usr/x386/include
         5506  +/usr/XFree86/include/X11
         5507  +
         5508  +/usr/include
         5509  +/usr/local/include
         5510  +/usr/unsupported/include
         5511  +/usr/athena/include
         5512  +/usr/local/x11r5/include
         5513  +/usr/lpp/Xamples/include
         5514  +
         5515  +/usr/openwin/include
         5516  +/usr/openwin/share/include'
         5517  +
         5518  +if test "$ac_x_includes" = no; then
         5519  +  # Guess where to find include files, by looking for Xlib.h.
         5520  +  # First, try using that file with no special directory specified.
         5521  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         5522  +/* end confdefs.h.  */
         5523  +#include <X11/Xlib.h>
         5524  +_ACEOF
         5525  +if ac_fn_c_try_cpp "$LINENO"; then :
         5526  +  # We can compile using X headers with no special include directory.
         5527  +ac_x_includes=
         5528  +else
         5529  +  for ac_dir in $ac_x_header_dirs; do
         5530  +  if test -r "$ac_dir/X11/Xlib.h"; then
         5531  +    ac_x_includes=$ac_dir
         5532  +    break
         5533  +  fi
         5534  +done
         5535  +fi
         5536  +rm -f conftest.err conftest.i conftest.$ac_ext
         5537  +fi # $ac_x_includes = no
         5538  +
         5539  +if test "$ac_x_libraries" = no; then
         5540  +  # Check for the libraries.
         5541  +  # See if we find them without any special options.
         5542  +  # Don't add to $LIBS permanently.
         5543  +  ac_save_LIBS=$LIBS
         5544  +  LIBS="-lX11 $LIBS"
         5545  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         5546  +/* end confdefs.h.  */
         5547  +#include <X11/Xlib.h>
         5548  +int
         5549  +main ()
         5550  +{
         5551  +XrmInitialize ()
         5552  +  ;
         5553  +  return 0;
         5554  +}
         5555  +_ACEOF
         5556  +if ac_fn_c_try_link "$LINENO"; then :
         5557  +  LIBS=$ac_save_LIBS
         5558  +# We can link X programs with no special library path.
         5559  +ac_x_libraries=
         5560  +else
         5561  +  LIBS=$ac_save_LIBS
         5562  +for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
         5563  +do
         5564  +  # Don't even attempt the hair of trying to link an X program!
         5565  +  for ac_extension in a so sl dylib la dll; do
         5566  +    if test -r "$ac_dir/libX11.$ac_extension"; then
         5567  +      ac_x_libraries=$ac_dir
         5568  +      break 2
         5569  +    fi
         5570  +  done
         5571  +done
         5572  +fi
         5573  +rm -f core conftest.err conftest.$ac_objext \
         5574  +    conftest$ac_exeext conftest.$ac_ext
         5575  +fi # $ac_x_libraries = no
         5576  +
         5577  +case $ac_x_includes,$ac_x_libraries in #(
         5578  +  no,* | *,no | *\'*)
         5579  +    # Didn't find X, or a directory has "'" in its name.
         5580  +    ac_cv_have_x="have_x=no";; #(
         5581  +  *)
         5582  +    # Record where we found X for the cache.
         5583  +    ac_cv_have_x="have_x=yes\
         5584  +	ac_x_includes='$ac_x_includes'\
         5585  +	ac_x_libraries='$ac_x_libraries'"
         5586  +esac
         5587  +fi
         5588  +;; #(
         5589  +    *) have_x=yes;;
         5590  +  esac
         5591  +  eval "$ac_cv_have_x"
         5592  +fi # $with_x != no
         5593  +
         5594  +if test "$have_x" != yes; then
         5595  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
         5596  +$as_echo "$have_x" >&6; }
         5597  +  no_x=yes
         5598  +else
         5599  +  # If each of the values was on the command line, it overrides each guess.
         5600  +  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
         5601  +  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
         5602  +  # Update the cache value to reflect the command line values.
         5603  +  ac_cv_have_x="have_x=yes\
         5604  +	ac_x_includes='$x_includes'\
         5605  +	ac_x_libraries='$x_libraries'"
         5606  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
         5607  +$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
         5608  +fi
         5609  +
         5610  +    not_really_there=""
         5611  +    if test "$no_x" = ""; then
         5612  +	if test "$x_includes" = ""; then
         5613  +	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         5614  +/* end confdefs.h.  */
         5615  +#include <X11/XIntrinsic.h>
         5616  +_ACEOF
         5617  +if ac_fn_c_try_cpp "$LINENO"; then :
         5618  +
         5619  +else
         5620  +  not_really_there="yes"
         5621  +fi
         5622  +rm -f conftest.err conftest.i conftest.$ac_ext
         5623  +	else
         5624  +	    if test ! -r $x_includes/X11/Intrinsic.h; then
         5625  +		not_really_there="yes"
         5626  +	    fi
         5627  +	fi
         5628  +    fi
         5629  +    if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
         5630  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5
         5631  +$as_echo_n "checking for X11 header files... " >&6; }
         5632  +	found_xincludes="no"
         5633  +	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         5634  +/* end confdefs.h.  */
         5635  +#include <X11/Intrinsic.h>
         5636  +_ACEOF
         5637  +if ac_fn_c_try_cpp "$LINENO"; then :
         5638  +  found_xincludes="yes"
         5639  +else
         5640  +  found_xincludes="no"
         5641  +fi
         5642  +rm -f conftest.err conftest.i conftest.$ac_ext
         5643  +	if test "$found_xincludes" = "no"; then
         5644  +	    dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include"
         5645  +	    for i in $dirs ; do
         5646  +		if test -r $i/X11/Intrinsic.h; then
         5647  +		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
         5648  +$as_echo "$i" >&6; }
         5649  +		    XINCLUDES=" -I$i"
         5650  +		    found_xincludes="yes"
         5651  +		    break
         5652  +		fi
         5653  +	    done
         5654  +	fi
         5655  +    else
         5656  +	if test "$x_includes" != ""; then
         5657  +	    XINCLUDES="-I$x_includes"
         5658  +	    found_xincludes="yes"
         5659  +	fi
         5660  +    fi
         5661  +    if test found_xincludes = "no"; then
         5662  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: couldn't find any!" >&5
         5663  +$as_echo "couldn't find any!" >&6; }
         5664  +    fi
         5665  +
         5666  +    if test "$no_x" = yes; then
         5667  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 libraries" >&5
         5668  +$as_echo_n "checking for X11 libraries... " >&6; }
         5669  +	XLIBSW=nope
         5670  +	dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
         5671  +	for i in $dirs ; do
         5672  +	    if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then
         5673  +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
         5674  +$as_echo "$i" >&6; }
         5675  +		XLIBSW="-L$i -lX11"
         5676  +		x_libraries="$i"
         5677  +		break
         5678  +	    fi
         5679  +	done
         5680  +    else
         5681  +	if test "$x_libraries" = ""; then
         5682  +	    XLIBSW=-lX11
         5683  +	else
         5684  +	    XLIBSW="-L$x_libraries -lX11"
         5685  +	fi
         5686  +    fi
         5687  +    if test "$XLIBSW" = nope ; then
         5688  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateWindow in -lXwindow" >&5
         5689  +$as_echo_n "checking for XCreateWindow in -lXwindow... " >&6; }
         5690  +if ${ac_cv_lib_Xwindow_XCreateWindow+:} false; then :
         5691  +  $as_echo_n "(cached) " >&6
         5692  +else
         5693  +  ac_check_lib_save_LIBS=$LIBS
         5694  +LIBS="-lXwindow  $LIBS"
         5695  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         5696  +/* end confdefs.h.  */
         5697  +
         5698  +/* Override any GCC internal prototype to avoid an error.
         5699  +   Use char because int might match the return type of a GCC
         5700  +   builtin and then its argument prototype would still apply.  */
         5701  +#ifdef __cplusplus
         5702  +extern "C"
         5703  +#endif
         5704  +char XCreateWindow ();
         5705  +int
         5706  +main ()
         5707  +{
         5708  +return XCreateWindow ();
         5709  +  ;
         5710  +  return 0;
         5711  +}
         5712  +_ACEOF
         5713  +if ac_fn_c_try_link "$LINENO"; then :
         5714  +  ac_cv_lib_Xwindow_XCreateWindow=yes
         5715  +else
         5716  +  ac_cv_lib_Xwindow_XCreateWindow=no
         5717  +fi
         5718  +rm -f core conftest.err conftest.$ac_objext \
         5719  +    conftest$ac_exeext conftest.$ac_ext
         5720  +LIBS=$ac_check_lib_save_LIBS
         5721  +fi
         5722  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5
         5723  +$as_echo "$ac_cv_lib_Xwindow_XCreateWindow" >&6; }
         5724  +if test "x$ac_cv_lib_Xwindow_XCreateWindow" = xyes; then :
         5725  +  XLIBSW=-lXwindow
         5726  +fi
         5727  +
         5728  +    fi
         5729  +    if test "$XLIBSW" = nope ; then
         5730  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find any!  Using -lX11." >&5
         5731  +$as_echo "could not find any!  Using -lX11." >&6; }
         5732  +	XLIBSW=-lX11
         5733  +    fi
         5734  +    # TEA specific:
         5735  +    if test x"${XLIBSW}" != x ; then
         5736  +	PKG_LIBS="${PKG_LIBS} ${XLIBSW}"
         5737  +    fi
         5738  +
         5739  +    fi
         5740  +
         5741  +
         5742  +#--------------------------------------------------------------------
         5743  +# Check whether --enable-threads or --disable-threads was given.
         5744  +# This auto-enables if Tcl was compiled threaded.
         5745  +#--------------------------------------------------------------------
         5746  +
         5747  +
         5748  +    # Check whether --enable-threads was given.
         5749  +if test "${enable_threads+set}" = set; then :
         5750  +  enableval=$enable_threads; tcl_ok=$enableval
         5751  +else
         5752  +  tcl_ok=yes
         5753  +fi
         5754  +
         5755  +
         5756  +    if test "${enable_threads+set}" = set; then
         5757  +	enableval="$enable_threads"
         5758  +	tcl_ok=$enableval
         5759  +    else
         5760  +	tcl_ok=yes
         5761  +    fi
         5762  +
         5763  +    if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
         5764  +	TCL_THREADS=1
         5765  +
         5766  +	if test "${TEA_PLATFORM}" != "windows" ; then
         5767  +	    # We are always OK on Windows, so check what this platform wants:
         5768  +
         5769  +	    # USE_THREAD_ALLOC tells us to try the special thread-based
         5770  +	    # allocator that significantly reduces lock contention
         5771  +
         5772  +$as_echo "#define USE_THREAD_ALLOC 1" >>confdefs.h
         5773  +
         5774  +
         5775  +$as_echo "#define _REENTRANT 1" >>confdefs.h
         5776  +
         5777  +	    if test "`uname -s`" = "SunOS" ; then
         5778  +
         5779  +$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
         5780  +
         5781  +	    fi
         5782  +
         5783  +$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
         5784  +
         5785  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
         5786  +$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
         5787  +if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
         5788  +  $as_echo_n "(cached) " >&6
         5789  +else
         5790  +  ac_check_lib_save_LIBS=$LIBS
         5791  +LIBS="-lpthread  $LIBS"
         5792  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         5793  +/* end confdefs.h.  */
         5794  +
         5795  +/* Override any GCC internal prototype to avoid an error.
         5796  +   Use char because int might match the return type of a GCC
         5797  +   builtin and then its argument prototype would still apply.  */
         5798  +#ifdef __cplusplus
         5799  +extern "C"
         5800  +#endif
         5801  +char pthread_mutex_init ();
         5802  +int
         5803  +main ()
         5804  +{
         5805  +return pthread_mutex_init ();
         5806  +  ;
         5807  +  return 0;
         5808  +}
         5809  +_ACEOF
         5810  +if ac_fn_c_try_link "$LINENO"; then :
         5811  +  ac_cv_lib_pthread_pthread_mutex_init=yes
         5812  +else
         5813  +  ac_cv_lib_pthread_pthread_mutex_init=no
         5814  +fi
         5815  +rm -f core conftest.err conftest.$ac_objext \
         5816  +    conftest$ac_exeext conftest.$ac_ext
         5817  +LIBS=$ac_check_lib_save_LIBS
         5818  +fi
         5819  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
         5820  +$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
         5821  +if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
         5822  +  tcl_ok=yes
         5823  +else
         5824  +  tcl_ok=no
         5825  +fi
         5826  +
         5827  +	    if test "$tcl_ok" = "no"; then
         5828  +		# Check a little harder for __pthread_mutex_init in the same
         5829  +		# library, as some systems hide it there until pthread.h is
         5830  +		# defined.  We could alternatively do an AC_TRY_COMPILE with
         5831  +		# pthread.h, but that will work with libpthread really doesn't
         5832  +		# exist, like AIX 4.2.  [Bug: 4359]
         5833  +		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
         5834  +$as_echo_n "checking for __pthread_mutex_init in -lpthread... " >&6; }
         5835  +if ${ac_cv_lib_pthread___pthread_mutex_init+:} false; then :
         5836  +  $as_echo_n "(cached) " >&6
         5837  +else
         5838  +  ac_check_lib_save_LIBS=$LIBS
         5839  +LIBS="-lpthread  $LIBS"
         5840  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         5841  +/* end confdefs.h.  */
         5842  +
         5843  +/* Override any GCC internal prototype to avoid an error.
         5844  +   Use char because int might match the return type of a GCC
         5845  +   builtin and then its argument prototype would still apply.  */
         5846  +#ifdef __cplusplus
         5847  +extern "C"
         5848  +#endif
         5849  +char __pthread_mutex_init ();
         5850  +int
         5851  +main ()
         5852  +{
         5853  +return __pthread_mutex_init ();
         5854  +  ;
         5855  +  return 0;
         5856  +}
         5857  +_ACEOF
         5858  +if ac_fn_c_try_link "$LINENO"; then :
         5859  +  ac_cv_lib_pthread___pthread_mutex_init=yes
         5860  +else
         5861  +  ac_cv_lib_pthread___pthread_mutex_init=no
         5862  +fi
         5863  +rm -f core conftest.err conftest.$ac_objext \
         5864  +    conftest$ac_exeext conftest.$ac_ext
         5865  +LIBS=$ac_check_lib_save_LIBS
         5866  +fi
         5867  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
         5868  +$as_echo "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
         5869  +if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes; then :
         5870  +  tcl_ok=yes
         5871  +else
         5872  +  tcl_ok=no
         5873  +fi
         5874  +
         5875  +	    fi
         5876  +
         5877  +	    if test "$tcl_ok" = "yes"; then
         5878  +		# The space is needed
         5879  +		THREADS_LIBS=" -lpthread"
         5880  +	    else
         5881  +		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
         5882  +$as_echo_n "checking for pthread_mutex_init in -lpthreads... " >&6; }
         5883  +if ${ac_cv_lib_pthreads_pthread_mutex_init+:} false; then :
         5884  +  $as_echo_n "(cached) " >&6
         5885  +else
         5886  +  ac_check_lib_save_LIBS=$LIBS
         5887  +LIBS="-lpthreads  $LIBS"
         5888  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         5889  +/* end confdefs.h.  */
         5890  +
         5891  +/* Override any GCC internal prototype to avoid an error.
         5892  +   Use char because int might match the return type of a GCC
         5893  +   builtin and then its argument prototype would still apply.  */
         5894  +#ifdef __cplusplus
         5895  +extern "C"
         5896  +#endif
         5897  +char pthread_mutex_init ();
         5898  +int
         5899  +main ()
         5900  +{
         5901  +return pthread_mutex_init ();
         5902  +  ;
         5903  +  return 0;
         5904  +}
         5905  +_ACEOF
         5906  +if ac_fn_c_try_link "$LINENO"; then :
         5907  +  ac_cv_lib_pthreads_pthread_mutex_init=yes
         5908  +else
         5909  +  ac_cv_lib_pthreads_pthread_mutex_init=no
         5910  +fi
         5911  +rm -f core conftest.err conftest.$ac_objext \
         5912  +    conftest$ac_exeext conftest.$ac_ext
         5913  +LIBS=$ac_check_lib_save_LIBS
         5914  +fi
         5915  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
         5916  +$as_echo "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
         5917  +if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes; then :
         5918  +  tcl_ok=yes
         5919  +else
         5920  +  tcl_ok=no
         5921  +fi
         5922  +
         5923  +		if test "$tcl_ok" = "yes"; then
         5924  +		    # The space is needed
         5925  +		    THREADS_LIBS=" -lpthreads"
         5926  +		else
         5927  +		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
         5928  +$as_echo_n "checking for pthread_mutex_init in -lc... " >&6; }
         5929  +if ${ac_cv_lib_c_pthread_mutex_init+:} false; then :
         5930  +  $as_echo_n "(cached) " >&6
         5931  +else
         5932  +  ac_check_lib_save_LIBS=$LIBS
         5933  +LIBS="-lc  $LIBS"
         5934  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         5935  +/* end confdefs.h.  */
         5936  +
         5937  +/* Override any GCC internal prototype to avoid an error.
         5938  +   Use char because int might match the return type of a GCC
         5939  +   builtin and then its argument prototype would still apply.  */
         5940  +#ifdef __cplusplus
         5941  +extern "C"
         5942  +#endif
         5943  +char pthread_mutex_init ();
         5944  +int
         5945  +main ()
         5946  +{
         5947  +return pthread_mutex_init ();
         5948  +  ;
         5949  +  return 0;
         5950  +}
         5951  +_ACEOF
         5952  +if ac_fn_c_try_link "$LINENO"; then :
         5953  +  ac_cv_lib_c_pthread_mutex_init=yes
         5954  +else
         5955  +  ac_cv_lib_c_pthread_mutex_init=no
         5956  +fi
         5957  +rm -f core conftest.err conftest.$ac_objext \
         5958  +    conftest$ac_exeext conftest.$ac_ext
         5959  +LIBS=$ac_check_lib_save_LIBS
         5960  +fi
         5961  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
         5962  +$as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; }
         5963  +if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then :
         5964  +  tcl_ok=yes
         5965  +else
         5966  +  tcl_ok=no
         5967  +fi
         5968  +
         5969  +		    if test "$tcl_ok" = "no"; then
         5970  +			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
         5971  +$as_echo_n "checking for pthread_mutex_init in -lc_r... " >&6; }
         5972  +if ${ac_cv_lib_c_r_pthread_mutex_init+:} false; then :
         5973  +  $as_echo_n "(cached) " >&6
         5974  +else
         5975  +  ac_check_lib_save_LIBS=$LIBS
         5976  +LIBS="-lc_r  $LIBS"
         5977  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         5978  +/* end confdefs.h.  */
         5979  +
         5980  +/* Override any GCC internal prototype to avoid an error.
         5981  +   Use char because int might match the return type of a GCC
         5982  +   builtin and then its argument prototype would still apply.  */
         5983  +#ifdef __cplusplus
         5984  +extern "C"
         5985  +#endif
         5986  +char pthread_mutex_init ();
         5987  +int
         5988  +main ()
         5989  +{
         5990  +return pthread_mutex_init ();
         5991  +  ;
         5992  +  return 0;
         5993  +}
         5994  +_ACEOF
         5995  +if ac_fn_c_try_link "$LINENO"; then :
         5996  +  ac_cv_lib_c_r_pthread_mutex_init=yes
         5997  +else
         5998  +  ac_cv_lib_c_r_pthread_mutex_init=no
         5999  +fi
         6000  +rm -f core conftest.err conftest.$ac_objext \
         6001  +    conftest$ac_exeext conftest.$ac_ext
         6002  +LIBS=$ac_check_lib_save_LIBS
         6003  +fi
         6004  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
         6005  +$as_echo "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
         6006  +if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes; then :
         6007  +  tcl_ok=yes
         6008  +else
         6009  +  tcl_ok=no
         6010  +fi
         6011  +
         6012  +			if test "$tcl_ok" = "yes"; then
         6013  +			    # The space is needed
         6014  +			    THREADS_LIBS=" -pthread"
         6015  +			else
         6016  +			    TCL_THREADS=0
         6017  +			    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
         6018  +$as_echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
         6019  +			fi
         6020  +		    fi
         6021  +		fi
         6022  +	    fi
         6023  +	fi
         6024  +    else
         6025  +	TCL_THREADS=0
         6026  +    fi
         6027  +    # Do checking message here to not mess up interleaved configure output
         6028  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
         6029  +$as_echo_n "checking for building with threads... " >&6; }
         6030  +    if test "${TCL_THREADS}" = 1; then
         6031  +
         6032  +$as_echo "#define TCL_THREADS 1" >>confdefs.h
         6033  +
         6034  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
         6035  +$as_echo "yes (default)" >&6; }
         6036  +    else
         6037  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         6038  +$as_echo "no" >&6; }
         6039  +    fi
         6040  +    # TCL_THREADS sanity checking.  See if our request for building with
         6041  +    # threads is the same as the way Tcl was built.  If not, warn the user.
         6042  +    case ${TCL_DEFS} in
         6043  +	*THREADS=1*)
         6044  +	    if test "${TCL_THREADS}" = "0"; then
         6045  +		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
         6046  +    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
         6047  +    that IS thread-enabled.  It is recommended to use --enable-threads." >&5
         6048  +$as_echo "$as_me: WARNING:
         6049  +    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
         6050  +    that IS thread-enabled.  It is recommended to use --enable-threads." >&2;}
         6051  +	    fi
         6052  +	    ;;
         6053  +	*)
         6054  +	    if test "${TCL_THREADS}" = "1"; then
         6055  +		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
         6056  +    --enable-threads requested, but building against a Tcl that is NOT
         6057  +    thread-enabled.  This is an OK configuration that will also run in
         6058  +    a thread-enabled core." >&5
         6059  +$as_echo "$as_me: WARNING:
         6060  +    --enable-threads requested, but building against a Tcl that is NOT
         6061  +    thread-enabled.  This is an OK configuration that will also run in
         6062  +    a thread-enabled core." >&2;}
         6063  +	    fi
         6064  +	    ;;
         6065  +    esac
         6066  +
         6067  +
         6068  +
         6069  +#--------------------------------------------------------------------
         6070  +# The statement below defines a collection of symbols related to
         6071  +# building as a shared library instead of a static library.
         6072  +#--------------------------------------------------------------------
         6073  +
         6074  +
         6075  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
         6076  +$as_echo_n "checking how to build libraries... " >&6; }
         6077  +    # Check whether --enable-shared was given.
         6078  +if test "${enable_shared+set}" = set; then :
         6079  +  enableval=$enable_shared; tcl_ok=$enableval
         6080  +else
         6081  +  tcl_ok=yes
         6082  +fi
         6083  +
         6084  +
         6085  +    if test "${enable_shared+set}" = set; then
         6086  +	enableval="$enable_shared"
         6087  +	tcl_ok=$enableval
         6088  +    else
         6089  +	tcl_ok=yes
         6090  +    fi
         6091  +
         6092  +    if test "$tcl_ok" = "yes" ; then
         6093  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
         6094  +$as_echo "shared" >&6; }
         6095  +	SHARED_BUILD=1
         6096  +    else
         6097  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
         6098  +$as_echo "static" >&6; }
         6099  +	SHARED_BUILD=0
         6100  +
         6101  +$as_echo "#define STATIC_BUILD 1" >>confdefs.h
         6102  +
         6103  +    fi
         6104  +
         6105  +
         6106  +
         6107  +#--------------------------------------------------------------------
         6108  +# This macro figures out what flags to use with the compiler/linker
         6109  +# when building shared/static debug/optimized objects.  This information
         6110  +# can be taken from the tclConfig.sh file, but this figures it all out.
         6111  +#--------------------------------------------------------------------
         6112  +
         6113  +
         6114  +
         6115  +
         6116  +    # Step 0.a: Enable 64 bit support?
         6117  +
         6118  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
         6119  +$as_echo_n "checking if 64bit support is requested... " >&6; }
         6120  +    # Check whether --enable-64bit was given.
         6121  +if test "${enable_64bit+set}" = set; then :
         6122  +  enableval=$enable_64bit; do64bit=$enableval
         6123  +else
         6124  +  do64bit=no
         6125  +fi
         6126  +
         6127  +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
         6128  +$as_echo "$do64bit" >&6; }
         6129  +
         6130  +    # Step 0.b: Enable Solaris 64 bit VIS support?
         6131  +
         6132  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
         6133  +$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
         6134  +    # Check whether --enable-64bit-vis was given.
         6135  +if test "${enable_64bit_vis+set}" = set; then :
         6136  +  enableval=$enable_64bit_vis; do64bitVIS=$enableval
         6137  +else
         6138  +  do64bitVIS=no
         6139  +fi
         6140  +
         6141  +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
         6142  +$as_echo "$do64bitVIS" >&6; }
         6143  +    # Force 64bit on with VIS
         6144  +    if test "$do64bitVIS" = "yes"; then :
         6145  +  do64bit=yes
         6146  +fi
         6147  +
         6148  +    # Step 0.c: Check if visibility support is available. Do this here so
         6149  +    # that platform specific alternatives can be used below if this fails.
         6150  +
         6151  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
         6152  +$as_echo_n "checking if compiler supports visibility \"hidden\"... " >&6; }
         6153  +if ${tcl_cv_cc_visibility_hidden+:} false; then :
         6154  +  $as_echo_n "(cached) " >&6
         6155  +else
         6156  +
         6157  +	hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
         6158  +	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         6159  +/* end confdefs.h.  */
         6160  +
         6161  +	    extern __attribute__((__visibility__("hidden"))) void f(void);
         6162  +	    void f(void) {}
         6163  +int
         6164  +main ()
         6165  +{
         6166  +f();
         6167  +  ;
         6168  +  return 0;
         6169  +}
         6170  +_ACEOF
         6171  +if ac_fn_c_try_link "$LINENO"; then :
         6172  +  tcl_cv_cc_visibility_hidden=yes
         6173  +else
         6174  +  tcl_cv_cc_visibility_hidden=no
         6175  +fi
         6176  +rm -f core conftest.err conftest.$ac_objext \
         6177  +    conftest$ac_exeext conftest.$ac_ext
         6178  +	CFLAGS=$hold_cflags
         6179  +fi
         6180  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
         6181  +$as_echo "$tcl_cv_cc_visibility_hidden" >&6; }
         6182  +    if test $tcl_cv_cc_visibility_hidden = yes; then :
         6183  +
         6184  +
         6185  +$as_echo "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
         6186  +
         6187  +
         6188  +fi
         6189  +
         6190  +    # Step 0.d: Disable -rpath support?
         6191  +
         6192  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
         6193  +$as_echo_n "checking if rpath support is requested... " >&6; }
         6194  +    # Check whether --enable-rpath was given.
         6195  +if test "${enable_rpath+set}" = set; then :
         6196  +  enableval=$enable_rpath; doRpath=$enableval
         6197  +else
         6198  +  doRpath=yes
         6199  +fi
         6200  +
         6201  +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
         6202  +$as_echo "$doRpath" >&6; }
         6203  +
         6204  +    # TEA specific: Cross-compiling options for Windows/CE builds?
         6205  +
         6206  +    if test "${TEA_PLATFORM}" = windows; then :
         6207  +
         6208  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Windows/CE build is requested" >&5
         6209  +$as_echo_n "checking if Windows/CE build is requested... " >&6; }
         6210  +	# Check whether --enable-wince was given.
         6211  +if test "${enable_wince+set}" = set; then :
         6212  +  enableval=$enable_wince; doWince=$enableval
         6213  +else
         6214  +  doWince=no
         6215  +fi
         6216  +
         6217  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $doWince" >&5
         6218  +$as_echo "$doWince" >&6; }
         6219  +
         6220  +fi
         6221  +
         6222  +    # Step 1: set the variable "system" to hold the name and version number
         6223  +    # for the system.
         6224  +
         6225  +
         6226  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
         6227  +$as_echo_n "checking system version... " >&6; }
         6228  +if ${tcl_cv_sys_version+:} false; then :
         6229  +  $as_echo_n "(cached) " >&6
         6230  +else
         6231  +
         6232  +	# TEA specific:
         6233  +	if test "${TEA_PLATFORM}" = "windows" ; then
         6234  +	    tcl_cv_sys_version=windows
         6235  +	elif test -f /usr/lib/NextStep/software_version; then
         6236  +	    tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
         6237  +	else
         6238  +	    tcl_cv_sys_version=`uname -s`-`uname -r`
         6239  +	    if test "$?" -ne 0 ; then
         6240  +		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
         6241  +$as_echo "$as_me: WARNING: can't find uname command" >&2;}
         6242  +		tcl_cv_sys_version=unknown
         6243  +	    else
         6244  +		# Special check for weird MP-RAS system (uname returns weird
         6245  +		# results, and the version is kept in special file).
         6246  +
         6247  +		if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
         6248  +		    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
         6249  +		fi
         6250  +		if test "`uname -s`" = "AIX" ; then
         6251  +		    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
         6252  +		fi
         6253  +	    fi
         6254  +	fi
         6255  +
         6256  +fi
         6257  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
         6258  +$as_echo "$tcl_cv_sys_version" >&6; }
         6259  +    system=$tcl_cv_sys_version
         6260  +
         6261  +
         6262  +    # Step 2: check for existence of -ldl library.  This is needed because
         6263  +    # Linux can use either -ldl or -ldld for dynamic loading.
         6264  +
         6265  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
         6266  +$as_echo_n "checking for dlopen in -ldl... " >&6; }
         6267  +if ${ac_cv_lib_dl_dlopen+:} false; then :
         6268  +  $as_echo_n "(cached) " >&6
         6269  +else
         6270  +  ac_check_lib_save_LIBS=$LIBS
         6271  +LIBS="-ldl  $LIBS"
         6272  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         6273  +/* end confdefs.h.  */
         6274  +
         6275  +/* Override any GCC internal prototype to avoid an error.
         6276  +   Use char because int might match the return type of a GCC
         6277  +   builtin and then its argument prototype would still apply.  */
         6278  +#ifdef __cplusplus
         6279  +extern "C"
         6280  +#endif
         6281  +char dlopen ();
         6282  +int
         6283  +main ()
         6284  +{
         6285  +return dlopen ();
         6286  +  ;
         6287  +  return 0;
         6288  +}
         6289  +_ACEOF
         6290  +if ac_fn_c_try_link "$LINENO"; then :
         6291  +  ac_cv_lib_dl_dlopen=yes
         6292  +else
         6293  +  ac_cv_lib_dl_dlopen=no
         6294  +fi
         6295  +rm -f core conftest.err conftest.$ac_objext \
         6296  +    conftest$ac_exeext conftest.$ac_ext
         6297  +LIBS=$ac_check_lib_save_LIBS
         6298  +fi
         6299  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
         6300  +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
         6301  +if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
         6302  +  have_dl=yes
         6303  +else
         6304  +  have_dl=no
         6305  +fi
         6306  +
         6307  +
         6308  +    # Require ranlib early so we can override it in special cases below.
         6309  +
         6310  +
         6311  +
         6312  +    # Step 3: set configuration options based on system name and version.
         6313  +    # This is similar to Tcl's unix/tcl.m4 except that we've added a
         6314  +    # "windows" case.
         6315  +
         6316  +    do64bit_ok=no
         6317  +    LDFLAGS_ORIG="$LDFLAGS"
         6318  +    # When ld needs options to work in 64-bit mode, put them in
         6319  +    # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
         6320  +    # is disabled by the user. [Bug 1016796]
         6321  +    LDFLAGS_ARCH=""
         6322  +    TCL_EXPORT_FILE_SUFFIX=""
         6323  +    UNSHARED_LIB_SUFFIX=""
         6324  +    # TEA specific: use PACKAGE_VERSION instead of VERSION
         6325  +    TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
         6326  +    ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
         6327  +    TCL_LIB_VERSIONS_OK=ok
         6328  +    CFLAGS_DEBUG=-g
         6329  +    CFLAGS_OPTIMIZE=-O
         6330  +    if test "$GCC" = yes; then :
         6331  +
         6332  +	# TEA specific:
         6333  +	CFLAGS_OPTIMIZE=-O2
         6334  +	CFLAGS_WARNING="-Wall"
         6335  +
         6336  +else
         6337  +  CFLAGS_WARNING=""
         6338  +fi
         6339  +    TCL_NEEDS_EXP_FILE=0
         6340  +    TCL_BUILD_EXP_FILE=""
         6341  +    TCL_EXP_FILE=""
         6342  +    # Extract the first word of "ar", so it can be a program name with args.
         6343  +set dummy ar; ac_word=$2
         6344  +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
         6345  +$as_echo_n "checking for $ac_word... " >&6; }
         6346  +if ${ac_cv_prog_AR+:} false; then :
         6347  +  $as_echo_n "(cached) " >&6
         6348  +else
         6349  +  if test -n "$AR"; then
         6350  +  ac_cv_prog_AR="$AR" # Let the user override the test.
         6351  +else
         6352  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         6353  +for as_dir in $PATH
         6354  +do
         6355  +  IFS=$as_save_IFS
         6356  +  test -z "$as_dir" && as_dir=.
         6357  +    for ac_exec_ext in '' $ac_executable_extensions; do
         6358  +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
         6359  +    ac_cv_prog_AR="ar"
         6360  +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
         6361  +    break 2
         6362  +  fi
         6363  +done
         6364  +  done
         6365  +IFS=$as_save_IFS
         6366  +
         6367  +fi
         6368  +fi
         6369  +AR=$ac_cv_prog_AR
         6370  +if test -n "$AR"; then
         6371  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
         6372  +$as_echo "$AR" >&6; }
         6373  +else
         6374  +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         6375  +$as_echo "no" >&6; }
         6376  +fi
         6377  +
         6378  +
         6379  +    STLIB_LD='${AR} cr'
         6380  +    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
         6381  +    if test "x$SHLIB_VERSION" = x; then :
         6382  +  SHLIB_VERSION="1.0"
         6383  +fi
         6384  +    case $system in
         6385  +	# TEA specific:
         6386  +	windows)
         6387  +	    # This is a 2-stage check to make sure we have the 64-bit SDK
         6388  +	    # We have to know where the SDK is installed.
         6389  +	    # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
         6390  +	    # MACHINE is IX86 for LINK, but this is used by the manifest,
         6391  +	    # which requires x86|amd64|ia64.
         6392  +	    MACHINE="X86"
         6393  +	    if test "$do64bit" != "no" ; then
         6394  +		if test "x${MSSDK}x" = "xx" ; then
         6395  +		    MSSDK="C:/Progra~1/Microsoft Platform SDK"
         6396  +		fi
         6397  +		MSSDK=`echo "$MSSDK" | sed -e  's!\\\!/!g'`
         6398  +		PATH64=""
         6399  +		case "$do64bit" in
         6400  +		    amd64|x64|yes)
         6401  +			MACHINE="AMD64" ; # default to AMD64 64-bit build
         6402  +			PATH64="${MSSDK}/Bin/Win64/x86/AMD64"
         6403  +			;;
         6404  +		    ia64)
         6405  +			MACHINE="IA64"
         6406  +			PATH64="${MSSDK}/Bin/Win64"
         6407  +			;;
         6408  +		esac
         6409  +		if test ! -d "${PATH64}" ; then
         6410  +		    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5
         6411  +$as_echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;}
         6412  +		    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ensure latest Platform SDK is installed" >&5
         6413  +$as_echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;}
         6414  +		    do64bit="no"
         6415  +		else
         6416  +		    { $as_echo "$as_me:${as_lineno-$LINENO}: result:    Using 64-bit $MACHINE mode" >&5
         6417  +$as_echo "   Using 64-bit $MACHINE mode" >&6; }
         6418  +		    do64bit_ok="yes"
         6419  +		fi
         6420  +	    fi
         6421  +
         6422  +	    if test "$doWince" != "no" ; then
         6423  +		if test "$do64bit" != "no" ; then
         6424  +		    as_fn_error $? "Windows/CE and 64-bit builds incompatible" "$LINENO" 5
         6425  +		fi
         6426  +		if test "$GCC" = "yes" ; then
         6427  +		    as_fn_error $? "Windows/CE and GCC builds incompatible" "$LINENO" 5
         6428  +		fi
         6429  +
         6430  +    # First, look for one uninstalled.
         6431  +    # the alternative search directory is invoked by --with-celib
         6432  +
         6433  +    if test x"${no_celib}" = x ; then
         6434  +	# we reset no_celib in case something fails here
         6435  +	no_celib=true
         6436  +
         6437  +# Check whether --with-celib was given.
         6438  +if test "${with_celib+set}" = set; then :
         6439  +  withval=$with_celib; with_celibconfig=${withval}
         6440  +fi
         6441  +
         6442  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows/CE celib directory" >&5
         6443  +$as_echo_n "checking for Windows/CE celib directory... " >&6; }
         6444  +	if ${ac_cv_c_celibconfig+:} false; then :
         6445  +  $as_echo_n "(cached) " >&6
         6446  +else
         6447  +
         6448  +	    # First check to see if --with-celibconfig was specified.
         6449  +	    if test x"${with_celibconfig}" != x ; then
         6450  +		if test -d "${with_celibconfig}/inc" ; then
         6451  +		    ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
         6452  +		else
         6453  +		    as_fn_error $? "${with_celibconfig} directory doesn't contain inc directory" "$LINENO" 5
         6454  +		fi
         6455  +	    fi
         6456  +
         6457  +	    # then check for a celib library
         6458  +	    if test x"${ac_cv_c_celibconfig}" = x ; then
         6459  +		for i in \
         6460  +			../celib-palm-3.0 \
         6461  +			../celib \
         6462  +			../../celib-palm-3.0 \
         6463  +			../../celib \
         6464  +			`ls -dr ../celib-*3.[0-9]* 2>/dev/null` \
         6465  +			${srcdir}/../celib-palm-3.0 \
         6466  +			${srcdir}/../celib \
         6467  +			`ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \
         6468  +			; do
         6469  +		    if test -d "$i/inc" ; then
         6470  +			ac_cv_c_celibconfig=`(cd $i; pwd)`
         6471  +			break
         6472  +		    fi
         6473  +		done
         6474  +	    fi
         6475  +
         6476  +fi
         6477  +
         6478  +	if test x"${ac_cv_c_celibconfig}" = x ; then
         6479  +	    as_fn_error $? "Cannot find celib support library directory" "$LINENO" 5
         6480  +	else
         6481  +	    no_celib=
         6482  +	    CELIB_DIR=${ac_cv_c_celibconfig}
         6483  +	    CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
         6484  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $CELIB_DIR" >&5
         6485  +$as_echo "found $CELIB_DIR" >&6; }
         6486  +	fi
         6487  +    fi
         6488  +
         6489  +		# Set defaults for common evc4/PPC2003 setup
         6490  +		# Currently Tcl requires 300+, possibly 420+ for sockets
         6491  +		CEVERSION=420; 		# could be 211 300 301 400 420 ...
         6492  +		TARGETCPU=ARMV4;	# could be ARMV4 ARM MIPS SH3 X86 ...
         6493  +		ARCH=ARM;		# could be ARM MIPS X86EM ...
         6494  +		PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
         6495  +		if test "$doWince" != "yes"; then
         6496  +		    # If !yes then the user specified something
         6497  +		    # Reset ARCH to allow user to skip specifying it
         6498  +		    ARCH=
         6499  +		    eval `echo $doWince | awk -F, '{ \
         6500  +	    if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \
         6501  +	    if ($1 < 400)   { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
         6502  +	    if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \
         6503  +	    if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \
         6504  +	    if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \
         6505  +		    }'`
         6506  +		    if test "x${ARCH}" = "x" ; then
         6507  +			ARCH=$TARGETCPU;
         6508  +		    fi
         6509  +		fi
         6510  +		OSVERSION=WCE$CEVERSION;
         6511  +	    	if test "x${WCEROOT}" = "x" ; then
         6512  +			WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
         6513  +		    if test ! -d "${WCEROOT}" ; then
         6514  +			WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
         6515  +		    fi
         6516  +		fi
         6517  +		if test "x${SDKROOT}" = "x" ; then
         6518  +		    SDKROOT="C:/Program Files/Windows CE Tools"
         6519  +		    if test ! -d "${SDKROOT}" ; then
         6520  +			SDKROOT="C:/Windows CE Tools"
         6521  +		    fi
         6522  +		fi
         6523  +		WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'`
         6524  +		SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'`
         6525  +		if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \
         6526  +		    -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
         6527  +		    as_fn_error $? "could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" "$LINENO" 5
         6528  +		    doWince="no"
         6529  +		else
         6530  +		    # We could PATH_NOSPACE these, but that's not important,
         6531  +		    # as long as we quote them when used.
         6532  +		    CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
         6533  +		    if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
         6534  +			CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
         6535  +		    fi
         6536  +		    CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
         6537  +    		fi
         6538  +	    fi
         6539  +
         6540  +	    if test "$GCC" != "yes" ; then
         6541  +	        if test "${SHARED_BUILD}" = "0" ; then
         6542  +		    runtime=-MT
         6543  +	        else
         6544  +		    runtime=-MD
         6545  +	        fi
         6546  +
         6547  +                if test "$do64bit" != "no" ; then
         6548  +		    # All this magic is necessary for the Win64 SDK RC1 - hobbs
         6549  +		    CC="\"${PATH64}/cl.exe\""
         6550  +		    CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\""
         6551  +		    RC="\"${MSSDK}/bin/rc.exe\""
         6552  +		    lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
         6553  +		    LINKBIN="\"${PATH64}/link.exe\""
         6554  +		    CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
         6555  +		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
         6556  +		    # Avoid 'unresolved external symbol __security_cookie'
         6557  +		    # errors, c.f. http://support.microsoft.com/?id=894573
         6558  +
         6559  +    vars="bufferoverflowU.lib"
         6560  +    for i in $vars; do
         6561  +	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
         6562  +	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
         6563  +	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
         6564  +	fi
         6565  +	PKG_LIBS="$PKG_LIBS $i"
         6566  +    done
         6567  +
         6568  +
         6569  +		elif test "$doWince" != "no" ; then
         6570  +		    CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
         6571  +		    if test "${TARGETCPU}" = "X86"; then
         6572  +			CC="\"${CEBINROOT}/cl.exe\""
         6573  +		    else
         6574  +			CC="\"${CEBINROOT}/cl${ARCH}.exe\""
         6575  +		    fi
         6576  +		    CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
         6577  +		    RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\""
         6578  +		    arch=`echo ${ARCH} | awk '{print tolower($0)}'`
         6579  +		    defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS"
         6580  +		    if test "${SHARED_BUILD}" = "1" ; then
         6581  +			# Static CE builds require static celib as well
         6582  +		    	defs="${defs} _DLL"
         6583  +		    fi
         6584  +		    for i in $defs ; do
         6585  +
         6586  +cat >>confdefs.h <<_ACEOF
         6587  +#define $i 1
         6588  +_ACEOF
         6589  +
         6590  +		    done
         6591  +
         6592  +cat >>confdefs.h <<_ACEOF
         6593  +#define _WIN32_WCE $CEVERSION
         6594  +_ACEOF
         6595  +
         6596  +
         6597  +cat >>confdefs.h <<_ACEOF
         6598  +#define UNDER_CE $CEVERSION
         6599  +_ACEOF
         6600  +
         6601  +		    CFLAGS_DEBUG="-nologo -Zi -Od"
         6602  +		    CFLAGS_OPTIMIZE="-nologo -Ox"
         6603  +		    lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
         6604  +		    lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
         6605  +		    LINKBIN="\"${CEBINROOT}/link.exe\""
         6606  +
         6607  +		else
         6608  +		    RC="rc"
         6609  +		    lflags="-nologo"
         6610  +    		    LINKBIN="link"
         6611  +		    CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
         6612  +		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
         6613  +		fi
         6614  +	    fi
         6615  +
         6616  +	    if test "$GCC" = "yes"; then
         6617  +		# mingw gcc mode
         6618  +		RC="windres"
         6619  +		CFLAGS_DEBUG="-g"
         6620  +		CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
         6621  +		SHLIB_LD="$CC -shared"
         6622  +		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
         6623  +		LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
         6624  +		LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
         6625  +	    else
         6626  +		SHLIB_LD="${LINKBIN} -dll ${lflags}"
         6627  +		# link -lib only works when -lib is the first arg
         6628  +		STLIB_LD="${LINKBIN} -lib ${lflags}"
         6629  +		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
         6630  +		PATHTYPE=-w
         6631  +		# For information on what debugtype is most useful, see:
         6632  +		# http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
         6633  +		# and also
         6634  +		# http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
         6635  +		# This essentially turns it all on.
         6636  +		LDFLAGS_DEBUG="-debug -debugtype:cv"
         6637  +		LDFLAGS_OPTIMIZE="-release"
         6638  +		if test "$doWince" != "no" ; then
         6639  +		    LDFLAGS_CONSOLE="-link ${lflags}"
         6640  +		    LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
         6641  +		else
         6642  +		    LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
         6643  +		    LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
         6644  +		fi
         6645  +	    fi
         6646  +
         6647  +	    SHLIB_LD_LIBS='${LIBS}'
         6648  +	    SHLIB_SUFFIX=".dll"
         6649  +	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
         6650  +
         6651  +	    TCL_LIB_VERSIONS_OK=nodots
         6652  +	    # Bogus to avoid getting this turned off
         6653  +	    DL_OBJS="tclLoadNone.obj"
         6654  +    	    ;;
         6655  +	AIX-*)
         6656  +	    if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then :
         6657  +
         6658  +		# AIX requires the _r compiler when gcc isn't being used
         6659  +		case "${CC}" in
         6660  +		    *_r|*_r\ *)
         6661  +			# ok ...
         6662  +			;;
         6663  +		    *)
         6664  +			# Make sure only first arg gets _r
         6665  +		    	CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
         6666  +			;;
         6667  +		esac
         6668  +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
         6669  +$as_echo "Using $CC for compiling with threads" >&6; }
         6670  +
         6671  +fi
         6672  +	    LIBS="$LIBS -lc"
         6673  +	    SHLIB_CFLAGS=""
         6674  +	    SHLIB_LD_LIBS='${LIBS}'
         6675  +	    SHLIB_SUFFIX=".so"
         6676  +
         6677  +	    DL_OBJS="tclLoadDl.o"
         6678  +	    LD_LIBRARY_PATH_VAR="LIBPATH"
         6679  +
         6680  +	    # Check to enable 64-bit flags for compiler/linker on AIX 4+
         6681  +	    if test "$do64bit" = yes -a "`uname -v`" -gt 3; then :
         6682  +
         6683  +		if test "$GCC" = yes; then :
         6684  +
         6685  +		    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
         6686  +$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
         6687  +
         6688  +else
         6689  +
         6690  +		    do64bit_ok=yes
         6691  +		    CFLAGS="$CFLAGS -q64"
         6692  +		    LDFLAGS_ARCH="-q64"
         6693  +		    RANLIB="${RANLIB} -X64"
         6694  +		    AR="${AR} -X64"
         6695  +		    SHLIB_LD_FLAGS="-b64"
         6696  +
         6697  +fi
         6698  +
         6699  +fi
         6700  +
         6701  +	    if test "`uname -m`" = ia64; then :
         6702  +
         6703  +		# AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
         6704  +		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
         6705  +		# AIX-5 has dl* in libc.so
         6706  +		DL_LIBS=""
         6707  +		if test "$GCC" = yes; then :
         6708  +
         6709  +		    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
         6710  +
         6711  +else
         6712  +
         6713  +		    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
         6714  +
         6715  +fi
         6716  +		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
         6717  +
         6718  +else
         6719  +
         6720  +		if test "$GCC" = yes; then :
         6721  +  SHLIB_LD='${CC} -shared'
         6722  +else
         6723  +
         6724  +		    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
         6725  +
         6726  +fi
         6727  +		SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
         6728  +		DL_LIBS="-ldl"
         6729  +		CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
         6730  +		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
         6731  +		TCL_NEEDS_EXP_FILE=1
         6732  +		# TEA specific: use PACKAGE_VERSION instead of VERSION
         6733  +		TCL_EXPORT_FILE_SUFFIX='${PACKAGE_VERSION}.exp'
         6734  +
         6735  +fi
         6736  +
         6737  +	    # AIX v<=4.1 has some different flags than 4.2+
         6738  +	    if test "$system" = "AIX-4.1" -o "`uname -v`" -lt 4; then :
         6739  +
         6740  +		case " $LIBOBJS " in
         6741  +  *" tclLoadAix.$ac_objext "* ) ;;
         6742  +  *) LIBOBJS="$LIBOBJS tclLoadAix.$ac_objext"
         6743  + ;;
         6744  +esac
         6745  +
         6746  +		DL_LIBS="-lld"
         6747  +
         6748  +fi
         6749  +
         6750  +	    # On AIX <=v4 systems, libbsd.a has to be linked in to support
         6751  +	    # non-blocking file IO.  This library has to be linked in after
         6752  +	    # the MATH_LIBS or it breaks the pow() function.  The way to
         6753  +	    # insure proper sequencing, is to add it to the tail of MATH_LIBS.
         6754  +	    # This library also supplies gettimeofday.
         6755  +	    #
         6756  +	    # AIX does not have a timezone field in struct tm. When the AIX
         6757  +	    # bsd library is used, the timezone global and the gettimeofday
         6758  +	    # methods are to be avoided for timezone deduction instead, we
         6759  +	    # deduce the timezone by comparing the localtime result on a
         6760  +	    # known GMT value.
         6761  +
         6762  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
         6763  +$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
         6764  +if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
         6765  +  $as_echo_n "(cached) " >&6
         6766  +else
         6767  +  ac_check_lib_save_LIBS=$LIBS
         6768  +LIBS="-lbsd  $LIBS"
         6769  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         6770  +/* end confdefs.h.  */
         6771  +
         6772  +/* Override any GCC internal prototype to avoid an error.
         6773  +   Use char because int might match the return type of a GCC
         6774  +   builtin and then its argument prototype would still apply.  */
         6775  +#ifdef __cplusplus
         6776  +extern "C"
         6777  +#endif
         6778  +char gettimeofday ();
         6779  +int
         6780  +main ()
         6781  +{
         6782  +return gettimeofday ();
         6783  +  ;
         6784  +  return 0;
         6785  +}
         6786  +_ACEOF
         6787  +if ac_fn_c_try_link "$LINENO"; then :
         6788  +  ac_cv_lib_bsd_gettimeofday=yes
         6789  +else
         6790  +  ac_cv_lib_bsd_gettimeofday=no
         6791  +fi
         6792  +rm -f core conftest.err conftest.$ac_objext \
         6793  +    conftest$ac_exeext conftest.$ac_ext
         6794  +LIBS=$ac_check_lib_save_LIBS
         6795  +fi
         6796  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
         6797  +$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
         6798  +if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
         6799  +  libbsd=yes
         6800  +else
         6801  +  libbsd=no
         6802  +fi
         6803  +
         6804  +	    if test $libbsd = yes; then :
         6805  +
         6806  +	    	MATH_LIBS="$MATH_LIBS -lbsd"
         6807  +
         6808  +$as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
         6809  +
         6810  +
         6811  +fi
         6812  +	    ;;
         6813  +	BeOS*)
         6814  +	    SHLIB_CFLAGS="-fPIC"
         6815  +	    SHLIB_LD='${CC} -nostart'
         6816  +	    SHLIB_LD_LIBS='${LIBS}'
         6817  +	    SHLIB_SUFFIX=".so"
         6818  +	    DL_OBJS="tclLoadDl.o"
         6819  +	    DL_LIBS="-ldl"
         6820  +
         6821  +	    #-----------------------------------------------------------
         6822  +	    # Check for inet_ntoa in -lbind, for BeOS (which also needs
         6823  +	    # -lsocket, even if the network functions are in -lnet which
         6824  +	    # is always linked to, for compatibility.
         6825  +	    #-----------------------------------------------------------
         6826  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
         6827  +$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
         6828  +if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
         6829  +  $as_echo_n "(cached) " >&6
         6830  +else
         6831  +  ac_check_lib_save_LIBS=$LIBS
         6832  +LIBS="-lbind  $LIBS"
         6833  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         6834  +/* end confdefs.h.  */
         6835  +
         6836  +/* Override any GCC internal prototype to avoid an error.
         6837  +   Use char because int might match the return type of a GCC
         6838  +   builtin and then its argument prototype would still apply.  */
         6839  +#ifdef __cplusplus
         6840  +extern "C"
         6841  +#endif
         6842  +char inet_ntoa ();
         6843  +int
         6844  +main ()
         6845  +{
         6846  +return inet_ntoa ();
         6847  +  ;
         6848  +  return 0;
         6849  +}
         6850  +_ACEOF
         6851  +if ac_fn_c_try_link "$LINENO"; then :
         6852  +  ac_cv_lib_bind_inet_ntoa=yes
         6853  +else
         6854  +  ac_cv_lib_bind_inet_ntoa=no
         6855  +fi
         6856  +rm -f core conftest.err conftest.$ac_objext \
         6857  +    conftest$ac_exeext conftest.$ac_ext
         6858  +LIBS=$ac_check_lib_save_LIBS
         6859  +fi
         6860  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
         6861  +$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
         6862  +if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
         6863  +  LIBS="$LIBS -lbind -lsocket"
         6864  +fi
         6865  +
         6866  +	    ;;
         6867  +	BSD/OS-2.1*|BSD/OS-3*)
         6868  +	    SHLIB_CFLAGS=""
         6869  +	    SHLIB_LD="shlicc -r"
         6870  +	    SHLIB_LD_LIBS='${LIBS}'
         6871  +	    SHLIB_SUFFIX=".so"
         6872  +	    DL_OBJS="tclLoadDl.o"
         6873  +	    DL_LIBS="-ldl"
         6874  +	    CC_SEARCH_FLAGS=""
         6875  +	    LD_SEARCH_FLAGS=""
         6876  +	    ;;
         6877  +	BSD/OS-4.*)
         6878  +	    SHLIB_CFLAGS="-export-dynamic -fPIC"
         6879  +	    SHLIB_LD='${CC} -shared'
         6880  +	    SHLIB_LD_LIBS='${LIBS}'
         6881  +	    SHLIB_SUFFIX=".so"
         6882  +	    DL_OBJS="tclLoadDl.o"
         6883  +	    DL_LIBS="-ldl"
         6884  +	    LDFLAGS="$LDFLAGS -export-dynamic"
         6885  +	    CC_SEARCH_FLAGS=""
         6886  +	    LD_SEARCH_FLAGS=""
         6887  +	    ;;
         6888  +	dgux*)
         6889  +	    SHLIB_CFLAGS="-K PIC"
         6890  +	    SHLIB_LD='${CC} -G'
         6891  +	    SHLIB_LD_LIBS=""
         6892  +	    SHLIB_SUFFIX=".so"
         6893  +	    DL_OBJS="tclLoadDl.o"
         6894  +	    DL_LIBS="-ldl"
         6895  +	    CC_SEARCH_FLAGS=""
         6896  +	    LD_SEARCH_FLAGS=""
         6897  +	    ;;
         6898  +	HP-UX-*.11.*)
         6899  +	    # Use updated header definitions where possible
         6900  +
         6901  +$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
         6902  +
         6903  +	    # TEA specific: Needed by Tcl, but not most extensions
         6904  +	    #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
         6905  +	    #LIBS="$LIBS -lxnet"               # Use the XOPEN network library
         6906  +
         6907  +	    if test "`uname -m`" = ia64; then :
         6908  +
         6909  +		SHLIB_SUFFIX=".so"
         6910  +		# Use newer C++ library for C++ extensions
         6911  +		#if test "$GCC" != "yes" ; then
         6912  +		#   CPPFLAGS="-AA"
         6913  +		#fi
         6914  +
         6915  +else
         6916  +
         6917  +		SHLIB_SUFFIX=".sl"
         6918  +
         6919  +fi
         6920  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
         6921  +$as_echo_n "checking for shl_load in -ldld... " >&6; }
         6922  +if ${ac_cv_lib_dld_shl_load+:} false; then :
         6923  +  $as_echo_n "(cached) " >&6
         6924  +else
         6925  +  ac_check_lib_save_LIBS=$LIBS
         6926  +LIBS="-ldld  $LIBS"
         6927  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         6928  +/* end confdefs.h.  */
         6929  +
         6930  +/* Override any GCC internal prototype to avoid an error.
         6931  +   Use char because int might match the return type of a GCC
         6932  +   builtin and then its argument prototype would still apply.  */
         6933  +#ifdef __cplusplus
         6934  +extern "C"
         6935  +#endif
         6936  +char shl_load ();
         6937  +int
         6938  +main ()
         6939  +{
         6940  +return shl_load ();
         6941  +  ;
         6942  +  return 0;
         6943  +}
         6944  +_ACEOF
         6945  +if ac_fn_c_try_link "$LINENO"; then :
         6946  +  ac_cv_lib_dld_shl_load=yes
         6947  +else
         6948  +  ac_cv_lib_dld_shl_load=no
         6949  +fi
         6950  +rm -f core conftest.err conftest.$ac_objext \
         6951  +    conftest$ac_exeext conftest.$ac_ext
         6952  +LIBS=$ac_check_lib_save_LIBS
         6953  +fi
         6954  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
         6955  +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
         6956  +if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
         6957  +  tcl_ok=yes
         6958  +else
         6959  +  tcl_ok=no
         6960  +fi
         6961  +
         6962  +	    if test "$tcl_ok" = yes; then :
         6963  +
         6964  +		SHLIB_LD_LIBS='${LIBS}'
         6965  +		DL_OBJS="tclLoadShl.o"
         6966  +		DL_LIBS="-ldld"
         6967  +		LDFLAGS="$LDFLAGS -E"
         6968  +		CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
         6969  +		LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
         6970  +		LD_LIBRARY_PATH_VAR="SHLIB_PATH"
         6971  +
         6972  +fi
         6973  +	    if test "$GCC" = yes; then :
         6974  +
         6975  +		SHLIB_LD='${CC} -shared'
         6976  +		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
         6977  +
         6978  +else
         6979  +
         6980  +		CFLAGS="$CFLAGS -z"
         6981  +		# Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
         6982  +		#CFLAGS="$CFLAGS +DAportable"
         6983  +		SHLIB_CFLAGS="+z"
         6984  +		SHLIB_LD="ld -b"
         6985  +
         6986  +fi
         6987  +
         6988  +	    # Check to enable 64-bit flags for compiler/linker
         6989  +	    if test "$do64bit" = "yes"; then :
         6990  +
         6991  +		if test "$GCC" = yes; then :
         6992  +
         6993  +		    case `${CC} -dumpmachine` in
         6994  +			hppa64*)
         6995  +			    # 64-bit gcc in use.  Fix flags for GNU ld.
         6996  +			    do64bit_ok=yes
         6997  +			    SHLIB_LD='${CC} -shared'
         6998  +			    SHLIB_LD_LIBS='${LIBS}'
         6999  +			    if test $doRpath = yes; then :
         7000  +
         7001  +				CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
         7002  +fi
         7003  +			    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
         7004  +			    ;;
         7005  +			*)
         7006  +			    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
         7007  +$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
         7008  +			    ;;
         7009  +		    esac
         7010  +
         7011  +else
         7012  +
         7013  +		    do64bit_ok=yes
         7014  +		    CFLAGS="$CFLAGS +DD64"
         7015  +		    LDFLAGS_ARCH="+DD64"
         7016  +
         7017  +fi
         7018  +
         7019  +fi ;;
         7020  +	HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
         7021  +	    SHLIB_SUFFIX=".sl"
         7022  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
         7023  +$as_echo_n "checking for shl_load in -ldld... " >&6; }
         7024  +if ${ac_cv_lib_dld_shl_load+:} false; then :
         7025  +  $as_echo_n "(cached) " >&6
         7026  +else
         7027  +  ac_check_lib_save_LIBS=$LIBS
         7028  +LIBS="-ldld  $LIBS"
         7029  +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         7030  +/* end confdefs.h.  */
         7031  +
         7032  +/* Override any GCC internal prototype to avoid an error.
         7033  +   Use char because int might match the return type of a GCC
         7034  +   builtin and then its argument prototype would still apply.  */
         7035  +#ifdef __cplusplus
         7036  +extern "C"
         7037  +#endif
         7038  +char shl_load ();
         7039  +int
         7040  +main ()
         7041  +{
         7042  +return shl_load ();
         7043  +  ;
         7044  +  return 0;
         7045  +}
         7046  +_ACEOF
         7047  +if ac_fn_c_try_link "$LINENO"; then :
         7048  +  ac_cv_lib_dld_shl_load=yes
         7049  +else
         7050  +  ac_cv_lib_dld_shl_load=no
         7051  +fi
         7052  +rm -f core conftest.err conftest.$ac_objext \
         7053  +    conftest$ac_exeext conftest.$ac_ext
         7054  +LIBS=$ac_check_lib_save_LIBS
         7055  +fi
         7056  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
         7057  +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
         7058  +if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
         7059  +  tcl_ok=yes
         7060  +else
         7061  +  tcl_ok=no
         7062  +fi
         7063  +
         7064  +	    if test "$tcl_ok" = yes; then :
         7065  +
         7066  +		SHLIB_CFLAGS="+z"
         7067  +		SHLIB_LD="ld -b"
         7068  +		SHLIB_LD_LIBS=""
         7069  +		DL_OBJS="tclLoadShl.o"
         7070  +		DL_LIBS="-ldld"
         7071  +		LDFLAGS="$LDFLAGS -Wl,-E"
         7072  +		CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
         7073  +		LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
         7074  +		LD_LIBRARY_PATH_VAR="SHLIB_PATH"
         7075  +
         7076  +fi ;;
         7077  +	IRIX-5.*)
         7078  +	    SHLIB_CFLAGS=""
         7079  +	    SHLIB_LD="ld -shared -rdata_shared"
         7080  +	    SHLIB_LD_LIBS='${LIBS}'
         7081  +	    SHLIB_SUFFIX=".so"
         7082  +	    DL_OBJS="tclLoadDl.o"
         7083  +	    DL_LIBS=""
         7084  +	    if test $doRpath = yes; then :
         7085  +
         7086  +		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
         7087  +		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
         7088  +fi
         7089  +	    ;;
         7090  +	IRIX-6.*)
         7091  +	    SHLIB_CFLAGS=""
         7092  +	    SHLIB_LD="ld -n32 -shared -rdata_shared"
         7093  +	    SHLIB_LD_LIBS='${LIBS}'
         7094  +	    SHLIB_SUFFIX=".so"
         7095  +	    DL_OBJS="tclLoadDl.o"
         7096  +	    DL_LIBS=""
         7097  +	    if test $doRpath = yes; then :
         7098  +
         7099  +		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
         7100  +		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
         7101  +fi
         7102  +	    if test "$GCC" = yes; then :
         7103  +
         7104  +		CFLAGS="$CFLAGS -mabi=n32"
         7105  +		LDFLAGS="$LDFLAGS -mabi=n32"
         7106  +
         7107  +else
         7108  +
         7109  +		case $system in
         7110  +		    IRIX-6.3)
         7111  +			# Use to build 6.2 compatible binaries on 6.3.
         7112  +			CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
         7113  +			;;
         7114  +		    *)
         7115  +			CFLAGS="$CFLAGS -n32"
         7116  +			;;
         7117  +		esac
         7118  +		LDFLAGS="$LDFLAGS -n32"
         7119  +
         7120  +fi
         7121  +	    ;;
         7122  +	IRIX64-6.*)
         7123  +	    SHLIB_CFLAGS=""
         7124  +	    SHLIB_LD="ld -n32 -shared -rdata_shared"
         7125  +	    SHLIB_LD_LIBS='${LIBS}'
         7126  +	    SHLIB_SUFFIX=".so"
         7127  +	    DL_OBJS="tclLoadDl.o"
         7128  +	    DL_LIBS=""
         7129  +	    if test $doRpath = yes; then :
         7130  +
         7131  +		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
         7132  +		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
         7133  +fi
         7134  +
         7135  +	    # Check to enable 64-bit flags for compiler/linker
         7136  +
         7137  +	    if test "$do64bit" = yes; then :
         7138  +
         7139  +	        if test "$GCC" = yes; then :
         7140  +
         7141  +	            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
         7142  +$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
         7143  +
         7144  +else
         7145  +
         7146  +	            do64bit_ok=yes
         7147  +	            SHLIB_LD="ld -64 -shared -rdata_shared"
         7148  +	            CFLAGS="$CFLAGS -64"
         7149  +	            LDFLAGS_ARCH="-64"
         7150  +
         7151  +fi
         7152  +
         7153  +fi
         7154  +	    ;;
         7155  +	Linux*)
         7156  +	    SHLIB_CFLAGS="-fPIC"
         7157  +	    SHLIB_LD_LIBS='${LIBS}'
         7158  +	    SHLIB_SUFFIX=".so"
         7159  +
         7160  +	    # TEA specific:
         7161  +	    CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
         7162  +	    # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
         7163  +	    # when you inline the string and math operations.  Turn this off to
         7164  +	    # get rid of the warnings.
         7165  +	    #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
         7166  +
         7167  +	    # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
         7168  +	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}'
         7169  +	    DL_OBJS="tclLoadDl.o"
         7170  +	    DL_LIBS="-ldl"
         7171  +	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
         7172  +	    if test $doRpath = yes; then :
         7173  +
         7174  +		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
         7175  +fi
         7176  +	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
         7177  +	    if test "`uname -m`" = "alpha"; then :
         7178  +  CFLAGS="$CFLAGS -mieee"
         7179  +fi
         7180  +	    if test $do64bit = yes; then :
         7181  +
         7182  +		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
         7183  +$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
         7184  +if ${tcl_cv_cc_m64+:} false; then :
         7185  +  $as_echo_n "(cached) " >&6
         7186  +else
         7187  +
         7188  +		    hold_cflags=$CFLAGS
         7189  +		    CFLAGS="$CFLAGS -m64"
         7190  +		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         7191  +/* end confdefs.h.  */
         7192  +
         7193  +int
         7194  +main ()
         7195  +{
         7196  +
         7197  +  ;
         7198  +  return 0;
         7199  +}
         7200  +_ACEOF
         7201  +if ac_fn_c_try_link "$LINENO"; then :
         7202  +  tcl_cv_cc_m64=yes
         7203  +else
         7204  +  tcl_cv_cc_m64=no
         7205  +fi
         7206  +rm -f core conftest.err conftest.$ac_objext \
         7207  +    conftest$ac_exeext conftest.$ac_ext
         7208  +		    CFLAGS=$hold_cflags
         7209  +fi
         7210  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
         7211  +$as_echo "$tcl_cv_cc_m64" >&6; }
         7212  +		if test $tcl_cv_cc_m64 = yes; then :
         7213  +
         7214  +		    CFLAGS="$CFLAGS -m64"
         7215  +		    do64bit_ok=yes
         7216  +
         7217  +fi
         7218  +
         7219  +fi
         7220  +
         7221  +	    # The combo of gcc + glibc has a bug related to inlining of
         7222  +	    # functions like strtod(). The -fno-builtin flag should address
         7223  +	    # this problem but it does not work. The -fno-inline flag is kind
         7224  +	    # of overkill but it works. Disable inlining only when one of the
         7225  +	    # files in compat/*.c is being linked in.
         7226  +
         7227  +	    if test x"${USE_COMPAT}" != x; then :
         7228  +  CFLAGS="$CFLAGS -fno-inline"
         7229  +fi
         7230  +
         7231  +	    ;;
         7232  +	GNU*)
         7233  +	    SHLIB_CFLAGS="-fPIC"
         7234  +	    SHLIB_LD_LIBS='${LIBS}'
         7235  +	    SHLIB_SUFFIX=".so"
         7236  +
         7237  +	    SHLIB_LD='${CC} -shared'
         7238  +	    DL_OBJS=""
         7239  +	    DL_LIBS="-ldl"
         7240  +	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
         7241  +	    CC_SEARCH_FLAGS=""
         7242  +	    LD_SEARCH_FLAGS=""
         7243  +	    if test "`uname -m`" = "alpha"; then :
         7244  +  CFLAGS="$CFLAGS -mieee"
         7245  +fi
         7246  +	    ;;
         7247  +	Lynx*)
         7248  +	    SHLIB_CFLAGS="-fPIC"
         7249  +	    SHLIB_LD_LIBS='${LIBS}'
         7250  +	    SHLIB_SUFFIX=".so"
         7251  +	    CFLAGS_OPTIMIZE=-02
         7252  +	    SHLIB_LD='${CC} -shared'
         7253  +	    DL_OBJS="tclLoadDl.o"
         7254  +	    DL_LIBS="-mshared -ldl"
         7255  +	    LD_FLAGS="-Wl,--export-dynamic"
         7256  +	    if test $doRpath = yes; then :
         7257  +
         7258  +		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
         7259  +		LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
         7260  +fi
         7261  +	    ;;
         7262  +	MP-RAS-02*)
         7263  +	    SHLIB_CFLAGS="-K PIC"
         7264  +	    SHLIB_LD='${CC} -G'
         7265  +	    SHLIB_LD_LIBS=""
         7266  +	    SHLIB_SUFFIX=".so"
         7267  +	    DL_OBJS="tclLoadDl.o"
         7268  +	    DL_LIBS="-ldl"
         7269  +	    CC_SEARCH_FLAGS=""
         7270  +	    LD_SEARCH_FLAGS=""
         7271  +	    ;;
         7272  +	MP-RAS-*)
         7273  +	    SHLIB_CFLAGS="-K PIC"
         7274  +	    SHLIB_LD='${CC} -G'
         7275  +	    SHLIB_LD_LIBS=""
         7276  +	    SHLIB_SUFFIX=".so"
         7277  +	    DL_OBJS="tclLoadDl.o"
         7278  +	    DL_LIBS="-ldl"
         7279  +	    LDFLAGS="$LDFLAGS -Wl,-Bexport"
         7280  +	    CC_SEARCH_FLAGS=""
         7281  +	    LD_SEARCH_FLAGS=""
         7282  +	    ;;
         7283  +	NetBSD-1.*|FreeBSD-[1-2].*)
         7284  +	    SHLIB_CFLAGS="-fPIC"
         7285  +	    SHLIB_LD="ld -Bshareable -x"
         7286  +	    SHLIB_LD_LIBS='${LIBS}'
         7287  +	    SHLIB_SUFFIX=".so"
         7288  +	    DL_OBJS="tclLoadDl.o"
         7289  +	    DL_LIBS=""
         7290  +	    if test $doRpath = yes; then :
         7291  +
         7292  +		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
         7293  +		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
         7294  +fi
         7295  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
         7296  +$as_echo_n "checking for ELF... " >&6; }
         7297  +if ${tcl_cv_ld_elf+:} false; then :
         7298  +  $as_echo_n "(cached) " >&6
         7299  +else
         7300  +
         7301  +		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         7302  +/* end confdefs.h.  */
         7303  +
         7304  +#ifdef __ELF__
         7305  +	yes
         7306  +#endif
         7307  +
         7308  +_ACEOF
         7309  +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
         7310  +  $EGREP "yes" >/dev/null 2>&1; then :
         7311  +  tcl_cv_ld_elf=yes
         7312  +else
         7313  +  tcl_cv_ld_elf=no
         7314  +fi
         7315  +rm -f conftest*
         7316  +
         7317  +fi
         7318  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
         7319  +$as_echo "$tcl_cv_ld_elf" >&6; }
         7320  +	    if test $tcl_cv_ld_elf = yes; then :
         7321  +
         7322  +		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
         7323  +
         7324  +else
         7325  +
         7326  +		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
         7327  +
         7328  +fi
         7329  +
         7330  +	    # Ancient FreeBSD doesn't handle version numbers with dots.
         7331  +
         7332  +	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
         7333  +	    TCL_LIB_VERSIONS_OK=nodots
         7334  +	    ;;
         7335  +	OpenBSD-*)
         7336  +	    SHLIB_CFLAGS="-fPIC"
         7337  +	    SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
         7338  +	    SHLIB_LD_LIBS='${LIBS}'
         7339  +	    SHLIB_SUFFIX=".so"
         7340  +	    DL_OBJS="tclLoadDl.o"
         7341  +	    DL_LIBS=""
         7342  +	    if test $doRpath = yes; then :
         7343  +
         7344  +		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
         7345  +fi
         7346  +	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
         7347  +	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
         7348  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
         7349  +$as_echo_n "checking for ELF... " >&6; }
         7350  +if ${tcl_cv_ld_elf+:} false; then :
         7351  +  $as_echo_n "(cached) " >&6
         7352  +else
         7353  +
         7354  +		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         7355  +/* end confdefs.h.  */
         7356  +
         7357  +#ifdef __ELF__
         7358  +	yes
         7359  +#endif
         7360  +
         7361  +_ACEOF
         7362  +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
         7363  +  $EGREP "yes" >/dev/null 2>&1; then :
         7364  +  tcl_cv_ld_elf=yes
         7365  +else
         7366  +  tcl_cv_ld_elf=no
         7367  +fi
         7368  +rm -f conftest*
         7369  +
         7370  +fi
         7371  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
         7372  +$as_echo "$tcl_cv_ld_elf" >&6; }
         7373  +	    if test $tcl_cv_ld_elf = yes; then :
         7374  +
         7375  +		LDFLAGS=-Wl,-export-dynamic
         7376  +
         7377  +else
         7378  +  LDFLAGS=""
         7379  +fi
         7380  +
         7381  +	    # OpenBSD doesn't do version numbers with dots.
         7382  +	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
         7383  +	    TCL_LIB_VERSIONS_OK=nodots
         7384  +	    ;;
         7385  +	NetBSD-*|FreeBSD-*)
         7386  +	    # FreeBSD 3.* and greater have ELF.
         7387  +	    # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs
         7388  +	    SHLIB_CFLAGS="-fPIC"
         7389  +	    SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
         7390  +	    SHLIB_LD_LIBS='${LIBS}'
         7391  +	    SHLIB_SUFFIX=".so"
         7392  +	    DL_OBJS="tclLoadDl.o"
         7393  +	    DL_LIBS=""
         7394  +	    LDFLAGS="$LDFLAGS -export-dynamic"
         7395  +	    if test $doRpath = yes; then :
         7396  +
         7397  +		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
         7398  +fi
         7399  +	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
         7400  +	    if test "${TCL_THREADS}" = "1"; then :
         7401  +
         7402  +		# The -pthread needs to go in the CFLAGS, not LIBS
         7403  +		LIBS=`echo $LIBS | sed s/-pthread//`
         7404  +		CFLAGS="$CFLAGS -pthread"
         7405  +	    	LDFLAGS="$LDFLAGS -pthread"
         7406  +
         7407  +fi
         7408  +	    case $system in
         7409  +	    FreeBSD-3.*)
         7410  +	    	# FreeBSD-3 doesn't handle version numbers with dots.
         7411  +	    	UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
         7412  +	    	SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
         7413  +	    	TCL_LIB_VERSIONS_OK=nodots
         7414  +		;;
         7415  +	    esac
         7416  +	    ;;
         7417  +	Darwin-*)
         7418  +	    CFLAGS_OPTIMIZE="-Os"
         7419  +	    SHLIB_CFLAGS="-fno-common"
         7420  +	    # To avoid discrepancies between what headers configure sees during
         7421  +	    # preprocessing tests and compiling tests, move any -isysroot and
         7422  +	    # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
         7423  +	    CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
         7424  +		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
         7425  +		if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
         7426  +	    CFLAGS="`echo " ${CFLAGS}" | \
         7427  +		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
         7428  +		if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
         7429  +	    if test $do64bit = yes; then :
         7430  +
         7431  +		case `arch` in
         7432  +		    ppc)
         7433  +			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
         7434  +$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
         7435  +if ${tcl_cv_cc_arch_ppc64+:} false; then :
         7436  +  $as_echo_n "(cached) " >&6
         7437  +else
         7438  +
         7439  +			    hold_cflags=$CFLAGS
         7440  +			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
         7441  +			    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         7442  +/* end confdefs.h.  */
         7443  +
         7444  +int
         7445  +main ()
         7446  +{
         7447  +
         7448  +  ;
         7449  +  return 0;
         7450  +}
         7451  +_ACEOF
         7452  +if ac_fn_c_try_link "$LINENO"; then :
         7453  +  tcl_cv_cc_arch_ppc64=yes
         7454  +else
         7455  +  tcl_cv_cc_arch_ppc64=no
         7456  +fi
         7457  +rm -f core conftest.err conftest.$ac_objext \
         7458  +    conftest$ac_exeext conftest.$ac_ext
         7459  +			    CFLAGS=$hold_cflags
         7460  +fi
         7461  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
         7462  +$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
         7463  +			if test $tcl_cv_cc_arch_ppc64 = yes; then :
         7464  +
         7465  +			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
         7466  +			    do64bit_ok=yes
         7467  +
         7468  +fi;;
         7469  +		    i386)
         7470  +			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
         7471  +$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
         7472  +if ${tcl_cv_cc_arch_x86_64+:} false; then :
         7473  +  $as_echo_n "(cached) " >&6
         7474  +else
         7475  +
         7476  +			    hold_cflags=$CFLAGS
         7477  +			    CFLAGS="$CFLAGS -arch x86_64"
         7478  +			    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         7479  +/* end confdefs.h.  */
         7480  +
         7481  +int
         7482  +main ()
         7483  +{
         7484  +
         7485  +  ;
         7486  +  return 0;
         7487  +}
         7488  +_ACEOF
         7489  +if ac_fn_c_try_link "$LINENO"; then :
         7490  +  tcl_cv_cc_arch_x86_64=yes
         7491  +else
         7492  +  tcl_cv_cc_arch_x86_64=no
         7493  +fi
         7494  +rm -f core conftest.err conftest.$ac_objext \
         7495  +    conftest$ac_exeext conftest.$ac_ext
         7496  +			    CFLAGS=$hold_cflags
         7497  +fi
         7498  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
         7499  +$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
         7500  +			if test $tcl_cv_cc_arch_x86_64 = yes; then :
         7501  +
         7502  +			    CFLAGS="$CFLAGS -arch x86_64"
         7503  +			    do64bit_ok=yes
         7504  +
         7505  +fi;;
         7506  +		    *)
         7507  +			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
         7508  +$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
         7509  +		esac
         7510  +
         7511  +else
         7512  +
         7513  +		# Check for combined 32-bit and 64-bit fat build
         7514  +		if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
         7515  +		    && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then :
         7516  +
         7517  +		    fat_32_64=yes
         7518  +fi
         7519  +
         7520  +fi
         7521  +	    # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
         7522  +	    SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
         7523  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
         7524  +$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
         7525  +if ${tcl_cv_ld_single_module+:} false; then :
         7526  +  $as_echo_n "(cached) " >&6
         7527  +else
         7528  +
         7529  +		hold_ldflags=$LDFLAGS
         7530  +		LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
         7531  +		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         7532  +/* end confdefs.h.  */
         7533  +
         7534  +int
         7535  +main ()
         7536  +{
         7537  +int i;
         7538  +  ;
         7539  +  return 0;
         7540  +}
         7541  +_ACEOF
         7542  +if ac_fn_c_try_link "$LINENO"; then :
         7543  +  tcl_cv_ld_single_module=yes
         7544  +else
         7545  +  tcl_cv_ld_single_module=no
         7546  +fi
         7547  +rm -f core conftest.err conftest.$ac_objext \
         7548  +    conftest$ac_exeext conftest.$ac_ext
         7549  +		LDFLAGS=$hold_ldflags
         7550  +fi
         7551  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
         7552  +$as_echo "$tcl_cv_ld_single_module" >&6; }
         7553  +	    if test $tcl_cv_ld_single_module = yes; then :
         7554  +
         7555  +		SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
         7556  +
         7557  +fi
         7558  +	    # TEA specific: link shlib with current and compatiblity version flags
         7559  +	    vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
         7560  +	    SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
         7561  +	    SHLIB_LD_LIBS='${LIBS}'
         7562  +	    SHLIB_SUFFIX=".dylib"
         7563  +	    DL_OBJS="tclLoadDyld.o"
         7564  +	    DL_LIBS=""
         7565  +	    # Don't use -prebind when building for Mac OS X 10.4 or later only:
         7566  +	    if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
         7567  +		"`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then :
         7568  +
         7569  +		LDFLAGS="$LDFLAGS -prebind"
         7570  +fi
         7571  +	    LDFLAGS="$LDFLAGS -headerpad_max_install_names"
         7572  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
         7573  +$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
         7574  +if ${tcl_cv_ld_search_paths_first+:} false; then :
         7575  +  $as_echo_n "(cached) " >&6
         7576  +else
         7577  +
         7578  +		hold_ldflags=$LDFLAGS
         7579  +		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
         7580  +		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         7581  +/* end confdefs.h.  */
         7582  +
         7583  +int
         7584  +main ()
         7585  +{
         7586  +int i;
         7587  +  ;
         7588  +  return 0;
         7589  +}
         7590  +_ACEOF
         7591  +if ac_fn_c_try_link "$LINENO"; then :
         7592  +  tcl_cv_ld_search_paths_first=yes
         7593  +else
         7594  +  tcl_cv_ld_search_paths_first=no
         7595  +fi
         7596  +rm -f core conftest.err conftest.$ac_objext \
         7597  +    conftest$ac_exeext conftest.$ac_ext
         7598  +		LDFLAGS=$hold_ldflags
         7599  +fi
         7600  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
         7601  +$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
         7602  +	    if test $tcl_cv_ld_search_paths_first = yes; then :
         7603  +
         7604  +		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
         7605  +
         7606  +fi
         7607  +	    if test "$tcl_cv_cc_visibility_hidden" != yes; then :
         7608  +
         7609  +
         7610  +$as_echo "#define MODULE_SCOPE __private_extern__" >>confdefs.h
         7611  +
         7612  +
         7613  +fi
         7614  +	    CC_SEARCH_FLAGS=""
         7615  +	    LD_SEARCH_FLAGS=""
         7616  +	    LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
         7617  +	    # TEA specific: for combined 32 & 64 bit fat builds of Tk
         7618  +	    # extensions, verify that 64-bit build is possible.
         7619  +	    if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then :
         7620  +
         7621  +		if test "${TEA_WINDOWINGSYSTEM}" = x11; then :
         7622  +
         7623  +		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
         7624  +$as_echo_n "checking for 64-bit X11... " >&6; }
         7625  +if ${tcl_cv_lib_x11_64+:} false; then :
         7626  +  $as_echo_n "(cached) " >&6
         7627  +else
         7628  +
         7629  +			for v in CFLAGS CPPFLAGS LDFLAGS; do
         7630  +			    eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
         7631  +			done
         7632  +			CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
         7633  +			LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
         7634  +			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         7635  +/* end confdefs.h.  */
         7636  +#include <X11/Xlib.h>
         7637  +int
         7638  +main ()
         7639  +{
         7640  +XrmInitialize();
         7641  +  ;
         7642  +  return 0;
         7643  +}
         7644  +_ACEOF
         7645  +if ac_fn_c_try_link "$LINENO"; then :
         7646  +  tcl_cv_lib_x11_64=yes
         7647  +else
         7648  +  tcl_cv_lib_x11_64=no
         7649  +fi
         7650  +rm -f core conftest.err conftest.$ac_objext \
         7651  +    conftest$ac_exeext conftest.$ac_ext
         7652  +			for v in CFLAGS CPPFLAGS LDFLAGS; do
         7653  +			    eval $v'="$hold_'$v'"'
         7654  +			done
         7655  +fi
         7656  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
         7657  +$as_echo "$tcl_cv_lib_x11_64" >&6; }
         7658  +
         7659  +fi
         7660  +		if test "${TEA_WINDOWINGSYSTEM}" = aqua; then :
         7661  +
         7662  +		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
         7663  +$as_echo_n "checking for 64-bit Tk... " >&6; }
         7664  +if ${tcl_cv_lib_tk_64+:} false; then :
         7665  +  $as_echo_n "(cached) " >&6
         7666  +else
         7667  +
         7668  +			for v in CFLAGS CPPFLAGS LDFLAGS; do
         7669  +			    eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
         7670  +			done
         7671  +			CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
         7672  +			LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
         7673  +			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         7674  +/* end confdefs.h.  */
         7675  +#include <tk.h>
         7676  +int
         7677  +main ()
         7678  +{
         7679  +Tk_InitStubs(NULL, "", 0);
         7680  +  ;
         7681  +  return 0;
         7682  +}
         7683  +_ACEOF
         7684  +if ac_fn_c_try_link "$LINENO"; then :
         7685  +  tcl_cv_lib_tk_64=yes
         7686  +else
         7687  +  tcl_cv_lib_tk_64=no
         7688  +fi
         7689  +rm -f core conftest.err conftest.$ac_objext \
         7690  +    conftest$ac_exeext conftest.$ac_ext
         7691  +			for v in CFLAGS CPPFLAGS LDFLAGS; do
         7692  +			    eval $v'="$hold_'$v'"'
         7693  +			done
         7694  +fi
         7695  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
         7696  +$as_echo "$tcl_cv_lib_tk_64" >&6; }
         7697  +
         7698  +fi
         7699  +		# remove 64-bit arch flags from CFLAGS et al. if configuration
         7700  +		# does not support 64-bit.
         7701  +		if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then :
         7702  +
         7703  +		    { $as_echo "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
         7704  +$as_echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
         7705  +		    for v in CFLAGS CPPFLAGS LDFLAGS; do
         7706  +			eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
         7707  +		    done
         7708  +fi
         7709  +
         7710  +fi
         7711  +	    ;;
         7712  +	NEXTSTEP-*)
         7713  +	    SHLIB_CFLAGS=""
         7714  +	    SHLIB_LD='${CC} -nostdlib -r'
         7715  +	    SHLIB_LD_LIBS=""
         7716  +	    SHLIB_SUFFIX=".so"
         7717  +	    DL_OBJS="tclLoadNext.o"
         7718  +	    DL_LIBS=""
         7719  +	    CC_SEARCH_FLAGS=""
         7720  +	    LD_SEARCH_FLAGS=""
         7721  +	    ;;
         7722  +	OS/390-*)
         7723  +	    CFLAGS_OPTIMIZE=""		# Optimizer is buggy
         7724  +
         7725  +$as_echo "#define _OE_SOCKETS 1" >>confdefs.h
         7726  +
         7727  +	    ;;
         7728  +	OSF1-1.0|OSF1-1.1|OSF1-1.2)
         7729  +	    # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
         7730  +	    SHLIB_CFLAGS=""
         7731  +	    # Hack: make package name same as library name
         7732  +	    SHLIB_LD='ld -R -export :'
         7733  +	    SHLIB_LD_LIBS=""
         7734  +	    SHLIB_SUFFIX=".so"
         7735  +	    DL_OBJS="tclLoadOSF.o"
         7736  +	    DL_LIBS=""
         7737  +	    CC_SEARCH_FLAGS=""
         7738  +	    LD_SEARCH_FLAGS=""
         7739  +	    ;;
         7740  +	OSF1-1.*)
         7741  +	    # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
         7742  +	    SHLIB_CFLAGS="-fPIC"
         7743  +	    if test "$SHARED_BUILD" = 1; then :
         7744  +  SHLIB_LD="ld -shared"
         7745  +else
         7746  +
         7747  +	        SHLIB_LD="ld -non_shared"
         7748  +
         7749  +fi
         7750  +	    SHLIB_LD_LIBS=""
         7751  +	    SHLIB_SUFFIX=".so"
         7752  +	    DL_OBJS="tclLoadDl.o"
         7753  +	    DL_LIBS=""
         7754  +	    CC_SEARCH_FLAGS=""
         7755  +	    LD_SEARCH_FLAGS=""
         7756  +	    ;;
         7757  +	OSF1-V*)
         7758  +	    # Digital OSF/1
         7759  +	    SHLIB_CFLAGS=""
         7760  +	    if test "$SHARED_BUILD" = 1; then :
         7761  +
         7762  +	        SHLIB_LD='ld -shared -expect_unresolved "*"'
         7763  +
         7764  +else
         7765  +
         7766  +	        SHLIB_LD='ld -non_shared -expect_unresolved "*"'
         7767  +
         7768  +fi
         7769  +	    SHLIB_LD_LIBS=""
         7770  +	    SHLIB_SUFFIX=".so"
         7771  +	    DL_OBJS="tclLoadDl.o"
         7772  +	    DL_LIBS=""
         7773  +	    if test $doRpath = yes; then :
         7774  +
         7775  +		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
         7776  +		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
         7777  +fi
         7778  +	    if test "$GCC" = yes; then :
         7779  +  CFLAGS="$CFLAGS -mieee"
         7780  +else
         7781  +
         7782  +		CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
         7783  +fi
         7784  +	    # see pthread_intro(3) for pthread support on osf1, k.furukawa
         7785  +	    if test "${TCL_THREADS}" = 1; then :
         7786  +
         7787  +		CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
         7788  +		CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
         7789  +		LIBS=`echo $LIBS | sed s/-lpthreads//`
         7790  +		if test "$GCC" = yes; then :
         7791  +
         7792  +		    LIBS="$LIBS -lpthread -lmach -lexc"
         7793  +
         7794  +else
         7795  +
         7796  +		    CFLAGS="$CFLAGS -pthread"
         7797  +		    LDFLAGS="$LDFLAGS -pthread"
         7798  +
         7799  +fi
         7800  +
         7801  +fi
         7802  +	    ;;
         7803  +	QNX-6*)
         7804  +	    # QNX RTP
         7805  +	    # This may work for all QNX, but it was only reported for v6.
         7806  +	    SHLIB_CFLAGS="-fPIC"
         7807  +	    SHLIB_LD="ld -Bshareable -x"
         7808  +	    SHLIB_LD_LIBS=""
         7809  +	    SHLIB_SUFFIX=".so"
         7810  +	    DL_OBJS="tclLoadDl.o"
         7811  +	    # dlopen is in -lc on QNX
         7812  +	    DL_LIBS=""
         7813  +	    CC_SEARCH_FLAGS=""
         7814  +	    LD_SEARCH_FLAGS=""
         7815  +	    ;;
         7816  +	SCO_SV-3.2*)
         7817  +	    # Note, dlopen is available only on SCO 3.2.5 and greater. However,
         7818  +	    # this test works, since "uname -s" was non-standard in 3.2.4 and
         7819  +	    # below.
         7820  +	    if test "$GCC" = yes; then :
         7821  +
         7822  +	    	SHLIB_CFLAGS="-fPIC -melf"
         7823  +	    	LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
         7824  +
         7825  +else
         7826  +
         7827  +	    	SHLIB_CFLAGS="-Kpic -belf"
         7828  +	    	LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
         7829  +
         7830  +fi
         7831  +	    SHLIB_LD="ld -G"
         7832  +	    SHLIB_LD_LIBS=""
         7833  +	    SHLIB_SUFFIX=".so"
         7834  +	    DL_OBJS="tclLoadDl.o"
         7835  +	    DL_LIBS=""
         7836  +	    CC_SEARCH_FLAGS=""
         7837  +	    LD_SEARCH_FLAGS=""
         7838  +	    ;;
         7839  +	SINIX*5.4*)
         7840  +	    SHLIB_CFLAGS="-K PIC"
         7841  +	    SHLIB_LD='${CC} -G'
         7842  +	    SHLIB_LD_LIBS=""
         7843  +	    SHLIB_SUFFIX=".so"
         7844  +	    DL_OBJS="tclLoadDl.o"
         7845  +	    DL_LIBS="-ldl"
         7846  +	    CC_SEARCH_FLAGS=""
         7847  +	    LD_SEARCH_FLAGS=""
         7848  +	    ;;
         7849  +	SunOS-4*)
         7850  +	    SHLIB_CFLAGS="-PIC"
         7851  +	    SHLIB_LD="ld"
         7852  +	    SHLIB_LD_LIBS=""
         7853  +	    SHLIB_SUFFIX=".so"
         7854  +	    DL_OBJS="tclLoadDl.o"
         7855  +	    DL_LIBS="-ldl"
         7856  +	    CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
         7857  +	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
         7858  +
         7859  +	    # SunOS can't handle version numbers with dots in them in library
         7860  +	    # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
         7861  +	    # requires an extra version number at the end of .so file names.
         7862  +	    # So, the library has to have a name like libtcl75.so.1.0
         7863  +
         7864  +	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
         7865  +	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
         7866  +	    TCL_LIB_VERSIONS_OK=nodots
         7867  +	    ;;
         7868  +	SunOS-5.[0-6])
         7869  +	    # Careful to not let 5.10+ fall into this case
         7870  +
         7871  +	    # Note: If _REENTRANT isn't defined, then Solaris
         7872  +	    # won't define thread-safe library routines.
         7873  +
         7874  +
         7875  +$as_echo "#define _REENTRANT 1" >>confdefs.h
         7876  +
         7877  +
         7878  +$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
         7879  +
         7880  +
         7881  +	    SHLIB_CFLAGS="-KPIC"
         7882  +
         7883  +	    # Note: need the LIBS below, otherwise Tk won't find Tcl's
         7884  +	    # symbols when dynamically loaded into tclsh.
         7885  +
         7886  +	    SHLIB_LD_LIBS='${LIBS}'
         7887  +	    SHLIB_SUFFIX=".so"
         7888  +	    DL_OBJS="tclLoadDl.o"
         7889  +	    DL_LIBS="-ldl"
         7890  +	    if test "$GCC" = yes; then :
         7891  +
         7892  +		SHLIB_LD='${CC} -shared'
         7893  +		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
         7894  +		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
         7895  +
         7896  +else
         7897  +
         7898  +		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
         7899  +		CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
         7900  +		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
         7901  +
         7902  +fi
         7903  +	    ;;
         7904  +	SunOS-5*)
         7905  +	    # Note: If _REENTRANT isn't defined, then Solaris
         7906  +	    # won't define thread-safe library routines.
         7907  +
         7908  +
         7909  +$as_echo "#define _REENTRANT 1" >>confdefs.h
         7910  +
         7911  +
         7912  +$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
         7913  +
         7914  +
         7915  +	    SHLIB_CFLAGS="-KPIC"
         7916  +
         7917  +	    # Check to enable 64-bit flags for compiler/linker
         7918  +	    if test "$do64bit" = yes; then :
         7919  +
         7920  +		arch=`isainfo`
         7921  +		if test "$arch" = "sparcv9 sparc"; then :
         7922  +
         7923  +		    if test "$GCC" = yes; then :
         7924  +
         7925  +			if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then :
         7926  +
         7927  +			    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
         7928  +$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
         7929  +
         7930  +else
         7931  +
         7932  +			    do64bit_ok=yes
         7933  +			    CFLAGS="$CFLAGS -m64 -mcpu=v9"
         7934  +			    LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
         7935  +			    SHLIB_CFLAGS="-fPIC"
         7936  +
         7937  +fi
         7938  +
         7939  +else
         7940  +
         7941  +			do64bit_ok=yes
         7942  +			if test "$do64bitVIS" = yes; then :
         7943  +
         7944  +			    CFLAGS="$CFLAGS -xarch=v9a"
         7945  +			    LDFLAGS_ARCH="-xarch=v9a"
         7946  +
         7947  +else
         7948  +
         7949  +			    CFLAGS="$CFLAGS -xarch=v9"
         7950  +			    LDFLAGS_ARCH="-xarch=v9"
         7951  +
         7952  +fi
         7953  +			# Solaris 64 uses this as well
         7954  +			#LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
         7955  +
         7956  +fi
         7957  +
         7958  +else
         7959  +  if test "$arch" = "amd64 i386"; then :
         7960  +
         7961  +		    if test "$GCC" = yes; then :
         7962  +
         7963  +			case $system in
         7964  +			    SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
         7965  +				do64bit_ok=yes
         7966  +				CFLAGS="$CFLAGS -m64"
         7967  +				LDFLAGS="$LDFLAGS -m64";;
         7968  +			    *)
         7969  +				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
         7970  +$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
         7971  +			esac
         7972  +
         7973  +else
         7974  +
         7975  +			do64bit_ok=yes
         7976  +			case $system in
         7977  +			    SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
         7978  +				CFLAGS="$CFLAGS -m64"
         7979  +				LDFLAGS="$LDFLAGS -m64";;
         7980  +			    *)
         7981  +				CFLAGS="$CFLAGS -xarch=amd64"
         7982  +				LDFLAGS="$LDFLAGS -xarch=amd64";;
         7983  +			esac
         7984  +
         7985  +fi
         7986  +
         7987  +else
         7988  +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
         7989  +$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
         7990  +fi
         7991  +fi
         7992  +
         7993  +fi
         7994  +
         7995  +	    # Note: need the LIBS below, otherwise Tk won't find Tcl's
         7996  +	    # symbols when dynamically loaded into tclsh.
         7997  +
         7998  +	    SHLIB_LD_LIBS='${LIBS}'
         7999  +	    SHLIB_SUFFIX=".so"
         8000  +	    DL_OBJS="tclLoadDl.o"
         8001  +	    DL_LIBS="-ldl"
         8002  +	    if test "$GCC" = yes; then :
         8003  +
         8004  +		SHLIB_LD='${CC} -shared'
         8005  +		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
         8006  +		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
         8007  +		if test "$do64bit_ok" = yes; then :
         8008  +
         8009  +		    if test "$arch" = "sparcv9 sparc"; then :
         8010  +
         8011  +			# We need to specify -static-libgcc or we need to
         8012  +			# add the path to the sparv9 libgcc.
         8013  +			# JH: static-libgcc is necessary for core Tcl, but may
         8014  +			# not be necessary for extensions.
         8015  +			SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
         8016  +			# for finding sparcv9 libgcc, get the regular libgcc
         8017  +			# path, remove so name and append 'sparcv9'
         8018  +			#v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
         8019  +			#CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
         8020  +
         8021  +else
         8022  +  if test "$arch" = "amd64 i386"; then :
         8023  +
         8024  +			# JH: static-libgcc is necessary for core Tcl, but may
         8025  +			# not be necessary for extensions.
         8026  +			SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
         8027  +
         8028  +fi
         8029  +fi
         8030  +
         8031  +fi
         8032  +
         8033  +else
         8034  +
         8035  +		case $system in
         8036  +		    SunOS-5.[1-9][0-9]*)
         8037  +			# TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
         8038  +			SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
         8039  +		    *)
         8040  +			SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
         8041  +		esac
         8042  +		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
         8043  +		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
         8044  +
         8045  +fi
         8046  +	    ;;
         8047  +	UNIX_SV* | UnixWare-5*)
         8048  +	    SHLIB_CFLAGS="-KPIC"
         8049  +	    SHLIB_LD='${CC} -G'
         8050  +	    SHLIB_LD_LIBS=""
         8051  +	    SHLIB_SUFFIX=".so"
         8052  +	    DL_OBJS="tclLoadDl.o"
         8053  +	    DL_LIBS="-ldl"
         8054  +	    # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
         8055  +	    # that don't grok the -Bexport option.  Test that it does.
         8056  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
         8057  +$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
         8058  +if ${tcl_cv_ld_Bexport+:} false; then :
         8059  +  $as_echo_n "(cached) " >&6
         8060  +else
         8061  +
         8062  +		hold_ldflags=$LDFLAGS
         8063  +		LDFLAGS="$LDFLAGS -Wl,-Bexport"
         8064  +		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         8065  +/* end confdefs.h.  */
         8066  +
         8067  +int
         8068  +main ()
         8069  +{
         8070  +int i;
         8071  +  ;
         8072  +  return 0;
         8073  +}
         8074  +_ACEOF
         8075  +if ac_fn_c_try_link "$LINENO"; then :
         8076  +  tcl_cv_ld_Bexport=yes
         8077  +else
         8078  +  tcl_cv_ld_Bexport=no
         8079  +fi
         8080  +rm -f core conftest.err conftest.$ac_objext \
         8081  +    conftest$ac_exeext conftest.$ac_ext
         8082  +	        LDFLAGS=$hold_ldflags
         8083  +fi
         8084  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
         8085  +$as_echo "$tcl_cv_ld_Bexport" >&6; }
         8086  +	    if test $tcl_cv_ld_Bexport = yes; then :
         8087  +
         8088  +		LDFLAGS="$LDFLAGS -Wl,-Bexport"
         8089  +
         8090  +fi
         8091  +	    CC_SEARCH_FLAGS=""
         8092  +	    LD_SEARCH_FLAGS=""
         8093  +	    ;;
         8094  +    esac
         8095  +
         8096  +    if test "$do64bit" = yes -a "$do64bit_ok" = no; then :
         8097  +
         8098  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
         8099  +$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
         8100  +
         8101  +fi
         8102  +
         8103  +
         8104  +
         8105  +    # Step 4: disable dynamic loading if requested via a command-line switch.
         8106  +
         8107  +    # Check whether --enable-load was given.
         8108  +if test "${enable_load+set}" = set; then :
         8109  +  enableval=$enable_load; tcl_ok=$enableval
         8110  +else
         8111  +  tcl_ok=yes
         8112  +fi
         8113  +
         8114  +    if test "$tcl_ok" = no; then :
         8115  +  DL_OBJS=""
         8116  +fi
         8117  +
         8118  +    if test "x$DL_OBJS" != x; then :
         8119  +  BUILD_DLTEST="\$(DLTEST_TARGETS)"
         8120  +else
         8121  +
         8122  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&5
         8123  +$as_echo "$as_me: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&2;}
         8124  +	SHLIB_CFLAGS=""
         8125  +	SHLIB_LD=""
         8126  +	SHLIB_SUFFIX=""
         8127  +	DL_OBJS="tclLoadNone.o"
         8128  +	DL_LIBS=""
         8129  +	LDFLAGS="$LDFLAGS_ORIG"
         8130  +	CC_SEARCH_FLAGS=""
         8131  +	LD_SEARCH_FLAGS=""
         8132  +	BUILD_DLTEST=""
         8133  +
         8134  +fi
         8135  +    LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
         8136  +
         8137  +    # If we're running gcc, then change the C flags for compiling shared
         8138  +    # libraries to the right flags for gcc, instead of those for the
         8139  +    # standard manufacturer compiler.
         8140  +
         8141  +    if test "$DL_OBJS" != "tclLoadNone.o" -a "$GCC" = yes; then :
         8142  +
         8143  +	case $system in
         8144  +	    AIX-*) ;;
         8145  +	    BSD/OS*) ;;
         8146  +	    IRIX*) ;;
         8147  +	    NetBSD-*|FreeBSD-*) ;;
         8148  +	    Darwin-*) ;;
         8149  +	    SCO_SV-3.2*) ;;
         8150  +	    windows) ;;
         8151  +	    *) SHLIB_CFLAGS="-fPIC" ;;
         8152  +	esac
         8153  +fi
         8154  +
         8155  +    if test "$SHARED_LIB_SUFFIX" = ""; then :
         8156  +
         8157  +	# TEA specific: use PACKAGE_VERSION instead of VERSION
         8158  +	SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
         8159  +fi
         8160  +    if test "$UNSHARED_LIB_SUFFIX" = ""; then :
         8161  +
         8162  +	# TEA specific: use PACKAGE_VERSION instead of VERSION
         8163  +	UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
         8164  +fi
         8165  +
         8166  +
         8167  +
         8168  +
         8169  +
         8170  +
         8171  +
         8172  +
         8173  +
         8174  +
         8175  +
         8176  +
         8177  +
         8178  +
         8179  +
         8180  +    # These must be called after we do the basic CFLAGS checks and
         8181  +    # verify any possible 64-bit or similar switches are necessary
         8182  +
         8183  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
         8184  +$as_echo_n "checking for required early compiler flags... " >&6; }
         8185  +    tcl_flags=""
         8186  +
         8187  +    if ${tcl_cv_flag__isoc99_source+:} false; then :
         8188  +  $as_echo_n "(cached) " >&6
         8189  +else
         8190  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         8191  +/* end confdefs.h.  */
         8192  +#include <stdlib.h>
         8193  +int
         8194  +main ()
         8195  +{
         8196  +char *p = (char *)strtoll; char *q = (char *)strtoull;
         8197  +  ;
         8198  +  return 0;
         8199  +}
         8200  +_ACEOF
         8201  +if ac_fn_c_try_compile "$LINENO"; then :
         8202  +  tcl_cv_flag__isoc99_source=no
         8203  +else
         8204  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         8205  +/* end confdefs.h.  */
         8206  +#define _ISOC99_SOURCE 1
         8207  +#include <stdlib.h>
         8208  +int
         8209  +main ()
         8210  +{
         8211  +char *p = (char *)strtoll; char *q = (char *)strtoull;
         8212  +  ;
         8213  +  return 0;
         8214  +}
         8215  +_ACEOF
         8216  +if ac_fn_c_try_compile "$LINENO"; then :
         8217  +  tcl_cv_flag__isoc99_source=yes
         8218  +else
         8219  +  tcl_cv_flag__isoc99_source=no
         8220  +fi
         8221  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         8222  +fi
         8223  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         8224  +fi
         8225  +
         8226  +    if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
         8227  +
         8228  +$as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h
         8229  +
         8230  +	tcl_flags="$tcl_flags _ISOC99_SOURCE"
         8231  +    fi
         8232  +
         8233  +
         8234  +    if ${tcl_cv_flag__largefile64_source+:} false; then :
         8235  +  $as_echo_n "(cached) " >&6
         8236  +else
         8237  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         8238  +/* end confdefs.h.  */
         8239  +#include <sys/stat.h>
         8240  +int
         8241  +main ()
         8242  +{
         8243  +struct stat64 buf; int i = stat64("/", &buf);
         8244  +  ;
         8245  +  return 0;
         8246  +}
         8247  +_ACEOF
         8248  +if ac_fn_c_try_compile "$LINENO"; then :
         8249  +  tcl_cv_flag__largefile64_source=no
         8250  +else
         8251  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         8252  +/* end confdefs.h.  */
         8253  +#define _LARGEFILE64_SOURCE 1
         8254  +#include <sys/stat.h>
         8255  +int
         8256  +main ()
         8257  +{
         8258  +struct stat64 buf; int i = stat64("/", &buf);
         8259  +  ;
         8260  +  return 0;
         8261  +}
         8262  +_ACEOF
         8263  +if ac_fn_c_try_compile "$LINENO"; then :
         8264  +  tcl_cv_flag__largefile64_source=yes
         8265  +else
         8266  +  tcl_cv_flag__largefile64_source=no
         8267  +fi
         8268  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         8269  +fi
         8270  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         8271  +fi
         8272  +
         8273  +    if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
         8274  +
         8275  +$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
         8276  +
         8277  +	tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
         8278  +    fi
         8279  +
         8280  +
         8281  +    if ${tcl_cv_flag__largefile_source64+:} false; then :
         8282  +  $as_echo_n "(cached) " >&6
         8283  +else
         8284  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         8285  +/* end confdefs.h.  */
         8286  +#include <sys/stat.h>
         8287  +int
         8288  +main ()
         8289  +{
         8290  +char *p = (char *)open64;
         8291  +  ;
         8292  +  return 0;
         8293  +}
         8294  +_ACEOF
         8295  +if ac_fn_c_try_compile "$LINENO"; then :
         8296  +  tcl_cv_flag__largefile_source64=no
         8297  +else
         8298  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         8299  +/* end confdefs.h.  */
         8300  +#define _LARGEFILE_SOURCE64 1
         8301  +#include <sys/stat.h>
         8302  +int
         8303  +main ()
         8304  +{
         8305  +char *p = (char *)open64;
         8306  +  ;
         8307  +  return 0;
         8308  +}
         8309  +_ACEOF
         8310  +if ac_fn_c_try_compile "$LINENO"; then :
         8311  +  tcl_cv_flag__largefile_source64=yes
         8312  +else
         8313  +  tcl_cv_flag__largefile_source64=no
         8314  +fi
         8315  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         8316  +fi
         8317  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         8318  +fi
         8319  +
         8320  +    if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
         8321  +
         8322  +$as_echo "#define _LARGEFILE_SOURCE64 1" >>confdefs.h
         8323  +
         8324  +	tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
         8325  +    fi
         8326  +
         8327  +    if test "x${tcl_flags}" = "x" ; then
         8328  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
         8329  +$as_echo "none" >&6; }
         8330  +    else
         8331  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
         8332  +$as_echo "${tcl_flags}" >&6; }
         8333  +    fi
         8334  +
         8335  +
         8336  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
         8337  +$as_echo_n "checking for 64-bit integer type... " >&6; }
         8338  +    if ${tcl_cv_type_64bit+:} false; then :
         8339  +  $as_echo_n "(cached) " >&6
         8340  +else
         8341  +
         8342  +	tcl_cv_type_64bit=none
         8343  +	# See if the compiler knows natively about __int64
         8344  +	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         8345  +/* end confdefs.h.  */
         8346  +
         8347  +int
         8348  +main ()
         8349  +{
         8350  +__int64 value = (__int64) 0;
         8351  +  ;
         8352  +  return 0;
         8353  +}
         8354  +_ACEOF
         8355  +if ac_fn_c_try_compile "$LINENO"; then :
         8356  +  tcl_type_64bit=__int64
         8357  +else
         8358  +  tcl_type_64bit="long long"
         8359  +fi
         8360  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         8361  +	# See if we should use long anyway  Note that we substitute in the
         8362  +	# type that is our current guess for a 64-bit type inside this check
         8363  +	# program, so it should be modified only carefully...
         8364  +        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         8365  +/* end confdefs.h.  */
         8366  +
         8367  +int
         8368  +main ()
         8369  +{
         8370  +switch (0) {
         8371  +            case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
         8372  +        }
         8373  +  ;
         8374  +  return 0;
         8375  +}
         8376  +_ACEOF
         8377  +if ac_fn_c_try_compile "$LINENO"; then :
         8378  +  tcl_cv_type_64bit=${tcl_type_64bit}
         8379  +fi
         8380  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         8381  +fi
         8382  +
         8383  +    if test "${tcl_cv_type_64bit}" = none ; then
         8384  +
         8385  +$as_echo "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
         8386  +
         8387  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using long" >&5
         8388  +$as_echo "using long" >&6; }
         8389  +    elif test "${tcl_cv_type_64bit}" = "__int64" \
         8390  +		-a "${TEA_PLATFORM}" = "windows" ; then
         8391  +	# TEA specific: We actually want to use the default tcl.h checks in
         8392  +	# this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
         8393  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
         8394  +$as_echo "using Tcl header defaults" >&6; }
         8395  +    else
         8396  +
         8397  +cat >>confdefs.h <<_ACEOF
         8398  +#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
         8399  +_ACEOF
         8400  +
         8401  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
         8402  +$as_echo "${tcl_cv_type_64bit}" >&6; }
         8403  +
         8404  +	# Now check for auxiliary declarations
         8405  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
         8406  +$as_echo_n "checking for struct dirent64... " >&6; }
         8407  +if ${tcl_cv_struct_dirent64+:} false; then :
         8408  +  $as_echo_n "(cached) " >&6
         8409  +else
         8410  +
         8411  +	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         8412  +/* end confdefs.h.  */
         8413  +#include <sys/types.h>
         8414  +#include <sys/dirent.h>
         8415  +int
         8416  +main ()
         8417  +{
         8418  +struct dirent64 p;
         8419  +  ;
         8420  +  return 0;
         8421  +}
         8422  +_ACEOF
         8423  +if ac_fn_c_try_compile "$LINENO"; then :
         8424  +  tcl_cv_struct_dirent64=yes
         8425  +else
         8426  +  tcl_cv_struct_dirent64=no
         8427  +fi
         8428  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         8429  +fi
         8430  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
         8431  +$as_echo "$tcl_cv_struct_dirent64" >&6; }
         8432  +	if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
         8433  +
         8434  +$as_echo "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
         8435  +
         8436  +	fi
         8437  +
         8438  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
         8439  +$as_echo_n "checking for struct stat64... " >&6; }
         8440  +if ${tcl_cv_struct_stat64+:} false; then :
         8441  +  $as_echo_n "(cached) " >&6
         8442  +else
         8443  +
         8444  +	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         8445  +/* end confdefs.h.  */
         8446  +#include <sys/stat.h>
         8447  +int
         8448  +main ()
         8449  +{
         8450  +struct stat64 p;
         8451  +
         8452  +  ;
         8453  +  return 0;
         8454  +}
         8455  +_ACEOF
         8456  +if ac_fn_c_try_compile "$LINENO"; then :
         8457  +  tcl_cv_struct_stat64=yes
         8458  +else
         8459  +  tcl_cv_struct_stat64=no
         8460  +fi
         8461  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         8462  +fi
         8463  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
         8464  +$as_echo "$tcl_cv_struct_stat64" >&6; }
         8465  +	if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
         8466  +
         8467  +$as_echo "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
         8468  +
         8469  +	fi
         8470  +
         8471  +	for ac_func in open64 lseek64
         8472  +do :
         8473  +  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
         8474  +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
         8475  +if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
         8476  +  cat >>confdefs.h <<_ACEOF
         8477  +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
         8478  +_ACEOF
         8479  +
         8480  +fi
         8481  +done
         8482  +
         8483  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
         8484  +$as_echo_n "checking for off64_t... " >&6; }
         8485  +	if ${tcl_cv_type_off64_t+:} false; then :
         8486  +  $as_echo_n "(cached) " >&6
         8487  +else
         8488  +
         8489  +	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         8490  +/* end confdefs.h.  */
         8491  +#include <sys/types.h>
         8492  +int
         8493  +main ()
         8494  +{
         8495  +off64_t offset;
         8496  +
         8497  +  ;
         8498  +  return 0;
         8499  +}
         8500  +_ACEOF
         8501  +if ac_fn_c_try_compile "$LINENO"; then :
         8502  +  tcl_cv_type_off64_t=yes
         8503  +else
         8504  +  tcl_cv_type_off64_t=no
         8505  +fi
         8506  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         8507  +fi
         8508  +
         8509  +			if test "x${tcl_cv_type_off64_t}" = "xyes" && \
         8510  +	        test "x${ac_cv_func_lseek64}" = "xyes" && \
         8511  +	        test "x${ac_cv_func_open64}" = "xyes" ; then
         8512  +
         8513  +$as_echo "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
         8514  +
         8515  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
         8516  +$as_echo "yes" >&6; }
         8517  +	else
         8518  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         8519  +$as_echo "no" >&6; }
         8520  +	fi
         8521  +    fi
         8522  +
         8523  +
         8524  +
         8525  +#--------------------------------------------------------------------
         8526  +# Set the default compiler switches based on the --enable-symbols option.
         8527  +#--------------------------------------------------------------------
         8528  +
         8529  +
         8530  +
         8531  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
         8532  +$as_echo_n "checking for build with symbols... " >&6; }
         8533  +    # Check whether --enable-symbols was given.
         8534  +if test "${enable_symbols+set}" = set; then :
         8535  +  enableval=$enable_symbols; tcl_ok=$enableval
         8536  +else
         8537  +  tcl_ok=no
         8538  +fi
         8539  +
         8540  +    DBGX=""
         8541  +    if test "$tcl_ok" = "no"; then
         8542  +	CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}"
         8543  +	LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
         8544  +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
         8545  +$as_echo "no" >&6; }
         8546  +    else
         8547  +	CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
         8548  +	LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
         8549  +	if test "$tcl_ok" = "yes"; then
         8550  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
         8551  +$as_echo "yes (standard debugging)" >&6; }
         8552  +	fi
         8553  +    fi
         8554  +    # TEA specific:
         8555  +    if test "${TEA_PLATFORM}" != "windows" ; then
         8556  +	LDFLAGS_DEFAULT="${LDFLAGS}"
         8557  +    fi
         8558  +
         8559  +
         8560  +
         8561  +
         8562  +    if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
         8563  +
         8564  +$as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
         8565  +
         8566  +    fi
         8567  +
         8568  +    if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
         8569  +	if test "$tcl_ok" = "all"; then
         8570  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
         8571  +$as_echo "enabled symbols mem debugging" >&6; }
         8572  +	else
         8573  +	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
         8574  +$as_echo "enabled $tcl_ok debugging" >&6; }
         8575  +	fi
         8576  +    fi
         8577  +
         8578  +
         8579  +#--------------------------------------------------------------------
         8580  +# Everyone should be linking against the Tcl stub library.  If you
         8581  +# can't for some reason, remove this definition.  If you aren't using
         8582  +# stubs, you also need to modify the SHLIB_LD_LIBS setting below to
         8583  +# link against the non-stubbed Tcl library.  Add Tk too if necessary.
         8584  +#--------------------------------------------------------------------
         8585  +
         8586  +
         8587  +$as_echo "#define USE_TCL_STUBS 1" >>confdefs.h
         8588  +
         8589  +
         8590  +$as_echo "#define USE_TK_STUBS 1" >>confdefs.h
         8591  +
         8592  +
         8593  +#--------------------------------------------------------------------
         8594  +# This macro generates a line to use when building a library.  It
         8595  +# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
         8596  +# and TEA_LOAD_TCLCONFIG macros above.
         8597  +#--------------------------------------------------------------------
         8598  +
         8599  +
         8600  +    if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
         8601  +	MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
         8602  +	MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)"
         8603  +	MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)"
         8604  +    else
         8605  +	MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
         8606  +	MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
         8607  +	MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
         8608  +    fi
         8609  +
         8610  +    if test "${SHARED_BUILD}" = "1" ; then
         8611  +	MAKE_LIB="${MAKE_SHARED_LIB} "
         8612  +    else
         8613  +	MAKE_LIB="${MAKE_STATIC_LIB} "
         8614  +    fi
         8615  +
         8616  +    #--------------------------------------------------------------------
         8617  +    # Shared libraries and static libraries have different names.
         8618  +    # Use the double eval to make sure any variables in the suffix is
         8619  +    # substituted. (@@@ Might not be necessary anymore)
         8620  +    #--------------------------------------------------------------------
         8621  +
         8622  +    if test "${TEA_PLATFORM}" = "windows" ; then
         8623  +	if test "${SHARED_BUILD}" = "1" ; then
         8624  +	    # We force the unresolved linking of symbols that are really in
         8625  +	    # the private libraries of Tcl and Tk.
         8626  +	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
         8627  +	    if test x"${TK_BIN_DIR}" != x ; then
         8628  +		SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
         8629  +	    fi
         8630  +	    eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
         8631  +	else
         8632  +	    eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
         8633  +	fi
         8634  +	# Some packages build their own stubs libraries
         8635  +	eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
         8636  +	if test "$GCC" = "yes"; then
         8637  +	    PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
         8638  +	fi
         8639  +	# These aren't needed on Windows (either MSVC or gcc)
         8640  +	RANLIB=:
         8641  +	RANLIB_STUB=:
         8642  +    else
         8643  +	RANLIB_STUB="${RANLIB}"
         8644  +	if test "${SHARED_BUILD}" = "1" ; then
         8645  +	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
         8646  +	    if test x"${TK_BIN_DIR}" != x ; then
         8647  +		SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
         8648  +	    fi
         8649  +	    eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
         8650  +	    RANLIB=:
         8651  +	else
         8652  +	    eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
         8653  +	fi
         8654  +	# Some packages build their own stubs libraries
         8655  +	eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
         8656  +    fi
         8657  +
         8658  +    # These are escaped so that only CFLAGS is picked up at configure time.
         8659  +    # The other values will be substituted at make time.
         8660  +    CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
         8661  +    if test "${SHARED_BUILD}" = "1" ; then
         8662  +	CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
         8663  +    fi
         8664  +
         8665  +
         8666  +
         8667  +
         8668  +
         8669  +
         8670  +
         8671  +
         8672  +#--------------------------------------------------------------------
         8673  +# Determine the name of the tclsh and/or wish executables in the
         8674  +# Tcl and Tk build directories or the location they were installed
         8675  +# into. These paths are used to support running test cases only,
         8676  +# the Makefile should not be making use of these paths to generate
         8677  +# a pkgIndex.tcl file or anything else at extension build time.
         8678  +#--------------------------------------------------------------------
         8679  +
         8680  +
         8681  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
         8682  +$as_echo_n "checking for tclsh... " >&6; }
         8683  +    if test -f "${TCL_BIN_DIR}/Makefile" ; then
         8684  +        # tclConfig.sh is in Tcl build directory
         8685  +        if test "${TEA_PLATFORM}" = "windows"; then
         8686  +            TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
         8687  +        else
         8688  +            TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
         8689  +        fi
         8690  +    else
         8691  +        # tclConfig.sh is in install location
         8692  +        if test "${TEA_PLATFORM}" = "windows"; then
         8693  +            TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
         8694  +        else
         8695  +            TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}"
         8696  +        fi
         8697  +        list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
         8698  +              `ls -d ${TCL_BIN_DIR}/..     2>/dev/null` \
         8699  +              `ls -d ${TCL_PREFIX}/bin     2>/dev/null`"
         8700  +        for i in $list ; do
         8701  +            if test -f "$i/${TCLSH_PROG}" ; then
         8702  +                REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
         8703  +                break
         8704  +            fi
         8705  +        done
         8706  +        TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
         8707  +    fi
         8708  +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
         8709  +$as_echo "${TCLSH_PROG}" >&6; }
         8710  +
         8711  +
         8712  +
         8713  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wish" >&5
         8714  +$as_echo_n "checking for wish... " >&6; }
         8715  +    if test -f "${TK_BIN_DIR}/Makefile" ; then
         8716  +        # tkConfig.sh is in Tk build directory
         8717  +        if test "${TEA_PLATFORM}" = "windows"; then
         8718  +            WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}"
         8719  +        else
         8720  +            WISH_PROG="${TK_BIN_DIR}/wish"
         8721  +        fi
         8722  +    else
         8723  +        # tkConfig.sh is in install location
         8724  +        if test "${TEA_PLATFORM}" = "windows"; then
         8725  +            WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}"
         8726  +        else
         8727  +            WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}"
         8728  +        fi
         8729  +        list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \
         8730  +              `ls -d ${TK_BIN_DIR}/..     2>/dev/null` \
         8731  +              `ls -d ${TK_PREFIX}/bin     2>/dev/null`"
         8732  +        for i in $list ; do
         8733  +            if test -f "$i/${WISH_PROG}" ; then
         8734  +                REAL_TK_BIN_DIR="`cd "$i"; pwd`/"
         8735  +                break
         8736  +            fi
         8737  +        done
         8738  +        WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}"
         8739  +    fi
         8740  +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WISH_PROG}" >&5
         8741  +$as_echo "${WISH_PROG}" >&6; }
         8742  +
         8743  +
         8744  +
         8745  +#--------------------------------------------------------------------
         8746  +# Finally, substitute all of the various values into the Makefile.
         8747  +# You may alternatively have a special pkgIndex.tcl.in or other files
         8748  +# which require substituting th AC variables in.  Include these here.
         8749  +#--------------------------------------------------------------------
         8750  +
         8751  +ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
         8752  +
         8753  +cat >confcache <<\_ACEOF
         8754  +# This file is a shell script that caches the results of configure
         8755  +# tests run on this system so they can be shared between configure
         8756  +# scripts and configure runs, see configure's option --config-cache.
         8757  +# It is not useful on other systems.  If it contains results you don't
         8758  +# want to keep, you may remove or edit it.
         8759  +#
         8760  +# config.status only pays attention to the cache file if you give it
         8761  +# the --recheck option to rerun configure.
         8762  +#
         8763  +# `ac_cv_env_foo' variables (set or unset) will be overridden when
         8764  +# loading this file, other *unset* `ac_cv_foo' will be assigned the
         8765  +# following values.
         8766  +
         8767  +_ACEOF
         8768  +
         8769  +# The following way of writing the cache mishandles newlines in values,
         8770  +# but we know of no workaround that is simple, portable, and efficient.
         8771  +# So, we kill variables containing newlines.
         8772  +# Ultrix sh set writes to stderr and can't be redirected directly,
         8773  +# and sets the high bit in the cache file unless we assign to the vars.
         8774  +(
         8775  +  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
         8776  +    eval ac_val=\$$ac_var
         8777  +    case $ac_val in #(
         8778  +    *${as_nl}*)
         8779  +      case $ac_var in #(
         8780  +      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
         8781  +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
         8782  +      esac
         8783  +      case $ac_var in #(
         8784  +      _ | IFS | as_nl) ;; #(
         8785  +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
         8786  +      *) { eval $ac_var=; unset $ac_var;} ;;
         8787  +      esac ;;
         8788  +    esac
         8789  +  done
         8790  +
         8791  +  (set) 2>&1 |
         8792  +    case $as_nl`(ac_space=' '; set) 2>&1` in #(
         8793  +    *${as_nl}ac_space=\ *)
         8794  +      # `set' does not quote correctly, so add quotes: double-quote
         8795  +      # substitution turns \\\\ into \\, and sed turns \\ into \.
         8796  +      sed -n \
         8797  +	"s/'/'\\\\''/g;
         8798  +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
         8799  +      ;; #(
         8800  +    *)
         8801  +      # `set' quotes correctly as required by POSIX, so do not add quotes.
         8802  +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
         8803  +      ;;
         8804  +    esac |
         8805  +    sort
         8806  +) |
         8807  +  sed '
         8808  +     /^ac_cv_env_/b end
         8809  +     t clear
         8810  +     :clear
         8811  +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
         8812  +     t end
         8813  +     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
         8814  +     :end' >>confcache
         8815  +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
         8816  +  if test -w "$cache_file"; then
         8817  +    if test "x$cache_file" != "x/dev/null"; then
         8818  +      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
         8819  +$as_echo "$as_me: updating cache $cache_file" >&6;}
         8820  +      if test ! -f "$cache_file" || test -h "$cache_file"; then
         8821  +	cat confcache >"$cache_file"
         8822  +      else
         8823  +        case $cache_file in #(
         8824  +        */* | ?:*)
         8825  +	  mv -f confcache "$cache_file"$$ &&
         8826  +	  mv -f "$cache_file"$$ "$cache_file" ;; #(
         8827  +        *)
         8828  +	  mv -f confcache "$cache_file" ;;
         8829  +	esac
         8830  +      fi
         8831  +    fi
         8832  +  else
         8833  +    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
         8834  +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
         8835  +  fi
         8836  +fi
         8837  +rm -f confcache
         8838  +
         8839  +test "x$prefix" = xNONE && prefix=$ac_default_prefix
         8840  +# Let make expand exec_prefix.
         8841  +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
         8842  +
         8843  +# Transform confdefs.h into DEFS.
         8844  +# Protect against shell expansion while executing Makefile rules.
         8845  +# Protect against Makefile macro expansion.
         8846  +#
         8847  +# If the first sed substitution is executed (which looks for macros that
         8848  +# take arguments), then branch to the quote section.  Otherwise,
         8849  +# look for a macro that doesn't take arguments.
         8850  +ac_script='
         8851  +:mline
         8852  +/\\$/{
         8853  + N
         8854  + s,\\\n,,
         8855  + b mline
         8856  +}
         8857  +t clear
         8858  +:clear
         8859  +s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
         8860  +t quote
         8861  +s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
         8862  +t quote
         8863  +b any
         8864  +:quote
         8865  +s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
         8866  +s/\[/\\&/g
         8867  +s/\]/\\&/g
         8868  +s/\$/$$/g
         8869  +H
         8870  +:any
         8871  +${
         8872  +	g
         8873  +	s/^\n//
         8874  +	s/\n/ /g
         8875  +	p
         8876  +}
         8877  +'
         8878  +DEFS=`sed -n "$ac_script" confdefs.h`
         8879  +
         8880  +
         8881  +ac_libobjs=
         8882  +ac_ltlibobjs=
         8883  +U=
         8884  +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
         8885  +  # 1. Remove the extension, and $U if already installed.
         8886  +  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
         8887  +  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
         8888  +  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
         8889  +  #    will be set to the directory where LIBOBJS objects are built.
         8890  +  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
         8891  +  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
         8892  +done
         8893  +LIBOBJS=$ac_libobjs
         8894  +
         8895  +LTLIBOBJS=$ac_ltlibobjs
         8896  +
         8897  +
         8898  +
         8899  +CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
         8900  +
         8901  +: "${CONFIG_STATUS=./config.status}"
         8902  +ac_write_fail=0
         8903  +ac_clean_files_save=$ac_clean_files
         8904  +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
         8905  +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
         8906  +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
         8907  +as_write_fail=0
         8908  +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
         8909  +#! $SHELL
         8910  +# Generated by $as_me.
         8911  +# Run this file to recreate the current configuration.
         8912  +# Compiler output produced by configure, useful for debugging
         8913  +# configure, is in config.log if it exists.
         8914  +
         8915  +debug=false
         8916  +ac_cs_recheck=false
         8917  +ac_cs_silent=false
         8918  +
         8919  +SHELL=\${CONFIG_SHELL-$SHELL}
         8920  +export SHELL
         8921  +_ASEOF
         8922  +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
         8923  +## -------------------- ##
         8924  +## M4sh Initialization. ##
         8925  +## -------------------- ##
         8926  +
         8927  +# Be more Bourne compatible
         8928  +DUALCASE=1; export DUALCASE # for MKS sh
         8929  +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
         8930  +  emulate sh
         8931  +  NULLCMD=:
         8932  +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
         8933  +  # is contrary to our usage.  Disable this feature.
         8934  +  alias -g '${1+"$@"}'='"$@"'
         8935  +  setopt NO_GLOB_SUBST
         8936  +else
         8937  +  case `(set -o) 2>/dev/null` in #(
         8938  +  *posix*) :
         8939  +    set -o posix ;; #(
         8940  +  *) :
         8941  +     ;;
         8942  +esac
         8943  +fi
         8944  +
         8945  +
         8946  +as_nl='
         8947  +'
         8948  +export as_nl
         8949  +# Printing a long string crashes Solaris 7 /usr/bin/printf.
         8950  +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
         8951  +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
         8952  +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
         8953  +# Prefer a ksh shell builtin over an external printf program on Solaris,
         8954  +# but without wasting forks for bash or zsh.
         8955  +if test -z "$BASH_VERSION$ZSH_VERSION" \
         8956  +    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
         8957  +  as_echo='print -r --'
         8958  +  as_echo_n='print -rn --'
         8959  +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
         8960  +  as_echo='printf %s\n'
         8961  +  as_echo_n='printf %s'
         8962  +else
         8963  +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
         8964  +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
         8965  +    as_echo_n='/usr/ucb/echo -n'
         8966  +  else
         8967  +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
         8968  +    as_echo_n_body='eval
         8969  +      arg=$1;
         8970  +      case $arg in #(
         8971  +      *"$as_nl"*)
         8972  +	expr "X$arg" : "X\\(.*\\)$as_nl";
         8973  +	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
         8974  +      esac;
         8975  +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
         8976  +    '
         8977  +    export as_echo_n_body
         8978  +    as_echo_n='sh -c $as_echo_n_body as_echo'
         8979  +  fi
         8980  +  export as_echo_body
         8981  +  as_echo='sh -c $as_echo_body as_echo'
         8982  +fi
         8983  +
         8984  +# The user is always right.
         8985  +if test "${PATH_SEPARATOR+set}" != set; then
         8986  +  PATH_SEPARATOR=:
         8987  +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
         8988  +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
         8989  +      PATH_SEPARATOR=';'
         8990  +  }
         8991  +fi
         8992  +
         8993  +
         8994  +# IFS
         8995  +# We need space, tab and new line, in precisely that order.  Quoting is
         8996  +# there to prevent editors from complaining about space-tab.
         8997  +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
         8998  +# splitting by setting IFS to empty value.)
         8999  +IFS=" ""	$as_nl"
         9000  +
         9001  +# Find who we are.  Look in the path if we contain no directory separator.
         9002  +as_myself=
         9003  +case $0 in #((
         9004  +  *[\\/]* ) as_myself=$0 ;;
         9005  +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         9006  +for as_dir in $PATH
         9007  +do
         9008  +  IFS=$as_save_IFS
         9009  +  test -z "$as_dir" && as_dir=.
         9010  +    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
         9011  +  done
         9012  +IFS=$as_save_IFS
         9013  +
         9014  +     ;;
         9015  +esac
         9016  +# We did not find ourselves, most probably we were run as `sh COMMAND'
         9017  +# in which case we are not to be found in the path.
         9018  +if test "x$as_myself" = x; then
         9019  +  as_myself=$0
         9020  +fi
         9021  +if test ! -f "$as_myself"; then
         9022  +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
         9023  +  exit 1
         9024  +fi
         9025  +
         9026  +# Unset variables that we do not need and which cause bugs (e.g. in
         9027  +# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
         9028  +# suppresses any "Segmentation fault" message there.  '((' could
         9029  +# trigger a bug in pdksh 5.2.14.
         9030  +for as_var in BASH_ENV ENV MAIL MAILPATH
         9031  +do eval test x\${$as_var+set} = xset \
         9032  +  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
         9033  +done
         9034  +PS1='$ '
         9035  +PS2='> '
         9036  +PS4='+ '
         9037  +
         9038  +# NLS nuisances.
         9039  +LC_ALL=C
         9040  +export LC_ALL
         9041  +LANGUAGE=C
         9042  +export LANGUAGE
         9043  +
         9044  +# CDPATH.
         9045  +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
         9046  +
         9047  +
         9048  +# as_fn_error STATUS ERROR [LINENO LOG_FD]
         9049  +# ----------------------------------------
         9050  +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
         9051  +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
         9052  +# script with STATUS, using 1 if that was 0.
         9053  +as_fn_error ()
         9054  +{
         9055  +  as_status=$1; test $as_status -eq 0 && as_status=1
         9056  +  if test "$4"; then
         9057  +    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
         9058  +    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
         9059  +  fi
         9060  +  $as_echo "$as_me: error: $2" >&2
         9061  +  as_fn_exit $as_status
         9062  +} # as_fn_error
         9063  +
         9064  +
         9065  +# as_fn_set_status STATUS
         9066  +# -----------------------
         9067  +# Set $? to STATUS, without forking.
         9068  +as_fn_set_status ()
         9069  +{
         9070  +  return $1
         9071  +} # as_fn_set_status
         9072  +
         9073  +# as_fn_exit STATUS
         9074  +# -----------------
         9075  +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
         9076  +as_fn_exit ()
         9077  +{
         9078  +  set +e
         9079  +  as_fn_set_status $1
         9080  +  exit $1
         9081  +} # as_fn_exit
         9082  +
         9083  +# as_fn_unset VAR
         9084  +# ---------------
         9085  +# Portably unset VAR.
         9086  +as_fn_unset ()
         9087  +{
         9088  +  { eval $1=; unset $1;}
         9089  +}
         9090  +as_unset=as_fn_unset
         9091  +# as_fn_append VAR VALUE
         9092  +# ----------------------
         9093  +# Append the text in VALUE to the end of the definition contained in VAR. Take
         9094  +# advantage of any shell optimizations that allow amortized linear growth over
         9095  +# repeated appends, instead of the typical quadratic growth present in naive
         9096  +# implementations.
         9097  +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
         9098  +  eval 'as_fn_append ()
         9099  +  {
         9100  +    eval $1+=\$2
         9101  +  }'
         9102  +else
         9103  +  as_fn_append ()
         9104  +  {
         9105  +    eval $1=\$$1\$2
         9106  +  }
         9107  +fi # as_fn_append
         9108  +
         9109  +# as_fn_arith ARG...
         9110  +# ------------------
         9111  +# Perform arithmetic evaluation on the ARGs, and store the result in the
         9112  +# global $as_val. Take advantage of shells that can avoid forks. The arguments
         9113  +# must be portable across $(()) and expr.
         9114  +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
         9115  +  eval 'as_fn_arith ()
         9116  +  {
         9117  +    as_val=$(( $* ))
         9118  +  }'
         9119  +else
         9120  +  as_fn_arith ()
         9121  +  {
         9122  +    as_val=`expr "$@" || test $? -eq 1`
         9123  +  }
         9124  +fi # as_fn_arith
         9125  +
         9126  +
         9127  +if expr a : '\(a\)' >/dev/null 2>&1 &&
         9128  +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
         9129  +  as_expr=expr
         9130  +else
         9131  +  as_expr=false
         9132  +fi
         9133  +
         9134  +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
         9135  +  as_basename=basename
         9136  +else
         9137  +  as_basename=false
         9138  +fi
         9139  +
         9140  +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
         9141  +  as_dirname=dirname
         9142  +else
         9143  +  as_dirname=false
         9144  +fi
         9145  +
         9146  +as_me=`$as_basename -- "$0" ||
         9147  +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
         9148  +	 X"$0" : 'X\(//\)$' \| \
         9149  +	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
         9150  +$as_echo X/"$0" |
         9151  +    sed '/^.*\/\([^/][^/]*\)\/*$/{
         9152  +	    s//\1/
         9153  +	    q
         9154  +	  }
         9155  +	  /^X\/\(\/\/\)$/{
         9156  +	    s//\1/
         9157  +	    q
         9158  +	  }
         9159  +	  /^X\/\(\/\).*/{
         9160  +	    s//\1/
         9161  +	    q
         9162  +	  }
         9163  +	  s/.*/./; q'`
         9164  +
         9165  +# Avoid depending upon Character Ranges.
         9166  +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
         9167  +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
         9168  +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
         9169  +as_cr_digits='0123456789'
         9170  +as_cr_alnum=$as_cr_Letters$as_cr_digits
         9171  +
         9172  +ECHO_C= ECHO_N= ECHO_T=
         9173  +case `echo -n x` in #(((((
         9174  +-n*)
         9175  +  case `echo 'xy\c'` in
         9176  +  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
         9177  +  xy)  ECHO_C='\c';;
         9178  +  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
         9179  +       ECHO_T='	';;
         9180  +  esac;;
         9181  +*)
         9182  +  ECHO_N='-n';;
         9183  +esac
         9184  +
         9185  +rm -f conf$$ conf$$.exe conf$$.file
         9186  +if test -d conf$$.dir; then
         9187  +  rm -f conf$$.dir/conf$$.file
         9188  +else
         9189  +  rm -f conf$$.dir
         9190  +  mkdir conf$$.dir 2>/dev/null
         9191  +fi
         9192  +if (echo >conf$$.file) 2>/dev/null; then
         9193  +  if ln -s conf$$.file conf$$ 2>/dev/null; then
         9194  +    as_ln_s='ln -s'
         9195  +    # ... but there are two gotchas:
         9196  +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
         9197  +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
         9198  +    # In both cases, we have to default to `cp -pR'.
         9199  +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
         9200  +      as_ln_s='cp -pR'
         9201  +  elif ln conf$$.file conf$$ 2>/dev/null; then
         9202  +    as_ln_s=ln
         9203  +  else
         9204  +    as_ln_s='cp -pR'
         9205  +  fi
         9206  +else
         9207  +  as_ln_s='cp -pR'
         9208  +fi
         9209  +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
         9210  +rmdir conf$$.dir 2>/dev/null
         9211  +
         9212  +
         9213  +# as_fn_mkdir_p
         9214  +# -------------
         9215  +# Create "$as_dir" as a directory, including parents if necessary.
         9216  +as_fn_mkdir_p ()
         9217  +{
         9218  +
         9219  +  case $as_dir in #(
         9220  +  -*) as_dir=./$as_dir;;
         9221  +  esac
         9222  +  test -d "$as_dir" || eval $as_mkdir_p || {
         9223  +    as_dirs=
         9224  +    while :; do
         9225  +      case $as_dir in #(
         9226  +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
         9227  +      *) as_qdir=$as_dir;;
         9228  +      esac
         9229  +      as_dirs="'$as_qdir' $as_dirs"
         9230  +      as_dir=`$as_dirname -- "$as_dir" ||
         9231  +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         9232  +	 X"$as_dir" : 'X\(//\)[^/]' \| \
         9233  +	 X"$as_dir" : 'X\(//\)$' \| \
         9234  +	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
         9235  +$as_echo X"$as_dir" |
         9236  +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
         9237  +	    s//\1/
         9238  +	    q
         9239  +	  }
         9240  +	  /^X\(\/\/\)[^/].*/{
         9241  +	    s//\1/
         9242  +	    q
         9243  +	  }
         9244  +	  /^X\(\/\/\)$/{
         9245  +	    s//\1/
         9246  +	    q
         9247  +	  }
         9248  +	  /^X\(\/\).*/{
         9249  +	    s//\1/
         9250  +	    q
         9251  +	  }
         9252  +	  s/.*/./; q'`
         9253  +      test -d "$as_dir" && break
         9254  +    done
         9255  +    test -z "$as_dirs" || eval "mkdir $as_dirs"
         9256  +  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
         9257  +
         9258  +
         9259  +} # as_fn_mkdir_p
         9260  +if mkdir -p . 2>/dev/null; then
         9261  +  as_mkdir_p='mkdir -p "$as_dir"'
         9262  +else
         9263  +  test -d ./-p && rmdir ./-p
         9264  +  as_mkdir_p=false
         9265  +fi
         9266  +
         9267  +
         9268  +# as_fn_executable_p FILE
         9269  +# -----------------------
         9270  +# Test if FILE is an executable regular file.
         9271  +as_fn_executable_p ()
         9272  +{
         9273  +  test -f "$1" && test -x "$1"
         9274  +} # as_fn_executable_p
         9275  +as_test_x='test -x'
         9276  +as_executable_p=as_fn_executable_p
         9277  +
         9278  +# Sed expression to map a string onto a valid CPP name.
         9279  +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
         9280  +
         9281  +# Sed expression to map a string onto a valid variable name.
         9282  +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
         9283  +
         9284  +
         9285  +exec 6>&1
         9286  +## ----------------------------------- ##
         9287  +## Main body of $CONFIG_STATUS script. ##
         9288  +## ----------------------------------- ##
         9289  +_ASEOF
         9290  +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
         9291  +
         9292  +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
         9293  +# Save the log message, to keep $0 and so on meaningful, and to
         9294  +# report actual input values of CONFIG_FILES etc. instead of their
         9295  +# values after options handling.
         9296  +ac_log="
         9297  +This file was extended by aem $as_me 1.0, which was
         9298  +generated by GNU Autoconf 2.69.  Invocation command line was
         9299  +
         9300  +  CONFIG_FILES    = $CONFIG_FILES
         9301  +  CONFIG_HEADERS  = $CONFIG_HEADERS
         9302  +  CONFIG_LINKS    = $CONFIG_LINKS
         9303  +  CONFIG_COMMANDS = $CONFIG_COMMANDS
         9304  +  $ $0 $@
         9305  +
         9306  +on `(hostname || uname -n) 2>/dev/null | sed 1q`
         9307  +"
         9308  +
         9309  +_ACEOF
         9310  +
         9311  +case $ac_config_files in *"
         9312  +"*) set x $ac_config_files; shift; ac_config_files=$*;;
         9313  +esac
         9314  +
         9315  +
         9316  +
         9317  +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
         9318  +# Files that config.status was made for.
         9319  +config_files="$ac_config_files"
         9320  +
         9321  +_ACEOF
         9322  +
         9323  +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
         9324  +ac_cs_usage="\
         9325  +\`$as_me' instantiates files and other configuration actions
         9326  +from templates according to the current configuration.  Unless the files
         9327  +and actions are specified as TAGs, all are instantiated by default.
         9328  +
         9329  +Usage: $0 [OPTION]... [TAG]...
         9330  +
         9331  +  -h, --help       print this help, then exit
         9332  +  -V, --version    print version number and configuration settings, then exit
         9333  +      --config     print configuration, then exit
         9334  +  -q, --quiet, --silent
         9335  +                   do not print progress messages
         9336  +  -d, --debug      don't remove temporary files
         9337  +      --recheck    update $as_me by reconfiguring in the same conditions
         9338  +      --file=FILE[:TEMPLATE]
         9339  +                   instantiate the configuration file FILE
         9340  +
         9341  +Configuration files:
         9342  +$config_files
         9343  +
         9344  +Report bugs to the package provider."
         9345  +
         9346  +_ACEOF
         9347  +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
         9348  +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
         9349  +ac_cs_version="\\
         9350  +aem config.status 1.0
         9351  +configured by $0, generated by GNU Autoconf 2.69,
         9352  +  with options \\"\$ac_cs_config\\"
         9353  +
         9354  +Copyright (C) 2012 Free Software Foundation, Inc.
         9355  +This config.status script is free software; the Free Software Foundation
         9356  +gives unlimited permission to copy, distribute and modify it."
         9357  +
         9358  +ac_pwd='$ac_pwd'
         9359  +srcdir='$srcdir'
         9360  +INSTALL='$INSTALL'
         9361  +test -n "\$AWK" || AWK=awk
         9362  +_ACEOF
         9363  +
         9364  +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
         9365  +# The default lists apply if the user does not specify any file.
         9366  +ac_need_defaults=:
         9367  +while test $# != 0
         9368  +do
         9369  +  case $1 in
         9370  +  --*=?*)
         9371  +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
         9372  +    ac_optarg=`expr "X