tdbc::mysql

Check-in [39b518f8c9]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

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

Overview
Comment:Update to latest TEA. DONT_TD_VOID was removed from unixODBC in version 2.3.1, 2011/11/28.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 39b518f8c930b21b7a6f093d9df40449c37bd62a54413cc94c595d4245915560
User & Date: stu 2018-07-01 05:15:35
Context
2018-10-16
15:31
Bump to version 1.1.0 for release. check-in: 8a0d36467b user: dgp tags: trunk
2018-07-01
05:15
Update to latest TEA. DONT_TD_VOID was removed from unixODBC in version 2.3.1, 2011/11/28. check-in: 39b518f8c9 user: stu tags: trunk
2018-01-05
06:50
Merge stu-pkgIndex. Companion to https://core.tcl.tk/tdbc/info/2386d26cfb8a34c3. check-in: e1cffb24c6 user: stu tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Makefile.in.

     7      7   #	replaced in the actual Makefile.
     8      8   #
     9      9   # Copyright (c) 1999 Scriptics Corporation.
    10     10   # Copyright (c) 2002-2005 ActiveState Corporation.
    11     11   #
    12     12   # See the file "license.terms" for information on usage and redistribution
    13     13   # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
           14  +
           15  +#========================================================================
           16  +# Add additional lines to handle any additional AC_SUBST cases that
           17  +# have been added in a customized configure script.
           18  +#========================================================================
           19  +
           20  +#SAMPLE_NEW_VAR	= @[email protected]
    14     21   
    15     22   #========================================================================
    16     23   # Nothing of the variables below this line should need to be changed.
    17     24   # Please check the TARGETS section below to make sure the make targets
    18     25   # are correct.
    19     26   #========================================================================
    20     27   
................................................................................
    24     31   # This will be used when a dist target is added to the Makefile.
    25     32   # It is not important to specify the directory, as long as it is the
    26     33   # $(srcdir) or in the generic, win or unix subdirectory.
    27     34   #========================================================================
    28     35   
    29     36   PKG_SOURCES	= @[email protected]
    30     37   PKG_OBJECTS	= @[email protected]
           38  +
           39  +PKG_STUB_SOURCES = @[email protected]
           40  +PKG_STUB_OBJECTS = @[email protected]
    31     41   
    32     42   #========================================================================
    33     43   # PKG_TCL_SOURCES identifies Tcl runtime files that are associated with
    34     44   # this package that need to be installed, if any.
    35     45   #========================================================================
    36     46   
    37     47   PKG_TCL_SOURCES = @[email protected]
................................................................................
    44     54   
    45     55   #========================================================================
    46     56   # "PKG_LIB_FILE" refers to the library (dynamic or static as per
    47     57   # configuration options) composed of the named objects.
    48     58   #========================================================================
    49     59   
    50     60   PKG_LIB_FILE	= @[email protected]
           61  +PKG_STUB_LIB_FILE = @[email protected]
    51     62   
    52     63   lib_BINARIES	= $(PKG_LIB_FILE)
    53     64   BINARIES	= $(lib_BINARIES)
    54     65   
    55     66   SHELL		= @[email protected]
    56     67   
    57     68   srcdir		= @[email protected]
................................................................................
    68     79   DESTDIR		=
    69     80   
    70     81   PKG_DIR		= $(PACKAGE_NAME)$(PACKAGE_VERSION)
    71     82   pkgdatadir	= $(datadir)/$(PKG_DIR)
    72     83   pkglibdir	= $(libdir)/$(PKG_DIR)
    73     84   pkgincludedir	= $(includedir)/$(PKG_DIR)
    74     85   
    75         -top_builddir	= .
           86  +top_builddir	= @[email protected]
    76     87   
    77     88   INSTALL_OPTIONS	=
    78     89   INSTALL		= @[email protected] $(INSTALL_OPTIONS)
    79     90   INSTALL_DATA_DIR = @[email protected]
    80     91   INSTALL_DATA	= @[email protected]
    81     92   INSTALL_PROGRAM	= @[email protected]
    82     93   INSTALL_SCRIPT	= @[email protected]
................................................................................
   120    131   # to test against an uninstalled Tcl.  Add special env vars that you
   121    132   # require for testing here (like TCLX_LIBRARY).
   122    133   #========================================================================
   123    134   
   124    135   EXTRA_PATH	= $(top_builddir):$(TCL_BIN_DIR)
   125    136   #EXTRA_PATH	= $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR)
   126    137   TCLLIBPATH	= $(top_builddir) $(TDBC_BIN_DIR)
   127         -TCLSH_ENV	= TCL_LIBRARY=`@[email protected] $(TCL_SRC_DIR)/library` \
   128         -		  TDBC_LIBRARY=`@[email protected] @[email protected]`
          138  +TCLSH_ENV	= TCL_LIBRARY=`@[email protected] $(TCL_SRC_DIR)/library`
   129    139   PKG_ENV		= @[email protected]="$(EXTRA_PATH):$(@[email protected])" \
   130    140   		  PATH="$(EXTRA_PATH):$(PATH)" \
   131         -		  TCLLIBPATH="$(TCLLIBPATH)" \
   132         -		  TDBCMYSQL_LIBRARY=`@[email protected] $(srcdir)/library`
          141  +		  TDBC_LIBRARY=`@[email protected] @[email protected]` \
          142  +		  TDBCMYSQL_LIBRARY=`@[email protected] $(srcdir)/library` \
          143  +		  TCLLIBPATH="$(TCLLIBPATH)"
   133    144   
   134    145   TCLSH_PROG	= @[email protected]
   135         -TCLSH		= $(PKG_ENV) $(TCLSH_ENV) $(TCLSH_PROG)
          146  +TCLSH		= $(TCLSH_ENV) $(PKG_ENV) $(TCLSH_PROG)
   136    147   
   137    148   #WISH_ENV	= TK_LIBRARY=`@[email protected] $(TK_SRC_DIR)/library`
   138    149   #WISH_PROG	= @[email protected]
   139         -#WISH		= $(PKG_ENV) $(TCLSH_ENV) $(WISH_ENV) $(WISH_PROG)
          150  +#WISH		= $(TCLSH_ENV) $(WISH_ENV) $(PKG_ENV) $(WISH_PROG)
   140    151   
   141    152   SHARED_BUILD	= @[email protected]
   142    153   
   143    154   INCLUDES	= @[email protected] @[email protected]
   144    155   #INCLUDES	= @[email protected] @[email protected] @[email protected] @[email protected]
   145    156   
   146    157   PKG_CFLAGS	= @[email protected]
................................................................................
   159    170   
   160    171   CPPFLAGS	= @[email protected]
   161    172   LIBS		= @[email protected] @[email protected]
   162    173   AR		= @[email protected]
   163    174   CFLAGS		= @[email protected]
   164    175   COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
   165    176   
          177  +GDB		= gdb
          178  +VALGRIND	= valgrind
          179  +VALGRINDARGS	= --tool=memcheck --num-callers=8 --leak-resolution=high \
          180  +		  --leak-check=yes --show-reachable=yes -v
          181  +
   166    182   .SUFFIXES: .c .$(OBJEXT)
   167    183   
   168    184   #========================================================================
   169    185   # Start of user-definable TARGETS section
   170    186   #========================================================================
   171    187   
   172    188   #========================================================================
................................................................................
   233    249   		-load "package ifneeded tdbc::mysql $(PACKAGE_VERSION) \
   234    250   			[list source `@[email protected] $(srcdir)/library/tdbcmysql.tcl`]\;[list load `@[email protected] $(PKG_LIB_FILE)` $(PACKAGE_NAME)]"
   235    251   
   236    252   shell: binaries libraries
   237    253   	@$(TCLSH) $(SCRIPT)
   238    254   
   239    255   gdb:
   240         -	$(TCLSH_ENV) $(PKG_ENV) gdb $(TCLSH_PROG) $(SCRIPT)
          256  +	$(TCLSH_ENV) $(PKG_ENV) $(GDB) $(TCLSH_PROG) $(SCRIPT)
   241    257   
   242         -VALGRINDARGS =	--tool=memcheck --num-callers=8 --leak-resolution=high \
   243         -		--leak-check=yes --show-reachable=yes -v
          258  +gdb-test: binaries libraries 
          259  +	$(TCLSH_ENV) $(PKG_ENV) $(GDB) \
          260  +	    --args $(TCLSH_PROG) `@[email protected] $(srcdir)/tests/all.tcl` \
          261  +	    $(TESTFLAGS) -singleproc 1 \
          262  +	    -load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
          263  +		[list load `@[email protected] $(PKG_LIB_FILE)` $(PACKAGE_NAME)]"
   244    264   
   245    265   valgrind: binaries libraries
   246         -	$(TCLSH_ENV) valgrind $(VALGRINDARGS) $(TCLSH_PROG) \
   247         -		`@[email protected] $(srcdir)/tests/all.tcl` $(TESTFLAGS)
          266  +	$(TCLSH_ENV) $(PKG_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) \
          267  +	    `@[email protected] $(srcdir)/tests/all.tcl` $(TESTFLAGS)
   248    268   
   249    269   valgrindshell: binaries libraries
   250         -	$(TCLSH_ENV) valgrind $(VALGRINDARGS) $(TCLSH_PROG) $(SCRIPT)
          270  +	$(TCLSH_ENV) $(PKG_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) $(SCRIPT)
   251    271   
   252    272   depend:
   253    273   
   254    274   #========================================================================
   255    275   # $(PKG_LIB_FILE) should be listed as part of the BINARIES variable
   256    276   # mentioned above.  That will ensure that this target is built when you
   257    277   # run "make binaries".
................................................................................
   261    281   # source files above.
   262    282   #========================================================================
   263    283   
   264    284   $(PKG_LIB_FILE): $(PKG_OBJECTS)
   265    285   	-rm -f $(PKG_LIB_FILE)
   266    286   	${MAKE_LIB}
   267    287   	$(RANLIB) $(PKG_LIB_FILE)
          288  +
          289  +$(PKG_STUB_LIB_FILE): $(PKG_STUB_OBJECTS)
          290  +	-rm -f $(PKG_STUB_LIB_FILE)
          291  +	${MAKE_STUB_LIB}
          292  +	$(RANLIB_STUB) $(PKG_STUB_LIB_FILE)
   268    293   
   269    294   #========================================================================
   270    295   # We need to enumerate the list of .c to .o lines here.
   271    296   #
   272    297   # In the following lines, $(srcdir) refers to the toplevel directory
   273    298   # containing your extension.  If your sources are in a subdirectory,
   274    299   # you will have to modify the paths to reflect this:
................................................................................
   300    325   DIST_INSTALL_SCRIPT	= CPPROG='cp -p' $(INSTALL) -m 755
   301    326   
   302    327   dist-clean:
   303    328   	rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).tar.*
   304    329   
   305    330   dist: dist-clean
   306    331   	$(INSTALL_DATA_DIR) $(DIST_DIR)
   307         -	$(DIST_INSTALL_DATA) $(srcdir)/license.terms \
   308         -		$(srcdir)/ChangeLog $(srcdir)/README \
   309         -		$(srcdir)/aclocal.m4 $(srcdir)/configure.ac \
   310         -		$(srcdir)/Makefile.in $(srcdir)/pkgIndex.tcl.in \
   311         -		$(DIST_DIR)/
          332  +
          333  +	# TEA files
          334  +	$(DIST_INSTALL_DATA) $(srcdir)/Makefile.in \
          335  +	    $(srcdir)/aclocal.m4 $(srcdir)/configure.ac \
          336  +	    $(DIST_DIR)/
   312    337   	$(DIST_INSTALL_SCRIPT) $(srcdir)/configure $(DIST_DIR)/
   313    338   
   314         -	for i in $(srcdir)/*.[ch]; do \
   315         -	    if [ -f $$i ]; then \
   316         -		$(DIST_INSTALL_DATA) $$i $(DIST_DIR)/ ; \
   317         -	    fi; \
   318         -	done;
   319         -
   320    339   	$(INSTALL_DATA_DIR) $(DIST_DIR)/tclconfig
   321    340   	$(DIST_INSTALL_DATA) $(srcdir)/tclconfig/README.txt \
   322         -		$(srcdir)/tclconfig/tcl.m4 $(srcdir)/tclconfig/install-sh \
   323         -		$(DIST_DIR)/tclconfig/
          341  +	    $(srcdir)/tclconfig/tcl.m4 $(srcdir)/tclconfig/install-sh \
          342  +	    $(DIST_DIR)/tclconfig/
          343  +
          344  +	# Extension files
          345  +	$(DIST_INSTALL_DATA) \
          346  +	    $(srcdir)/ChangeLog \
          347  +	    $(srcdir)/license.terms \
          348  +	    $(srcdir)/README \
          349  +	    $(srcdir)/pkgIndex.tcl.in \
          350  +	    $(DIST_DIR)/
   324    351   
   325    352   	$(INSTALL_DATA_DIR) $(DIST_DIR)/doc
   326    353   	$(DIST_INSTALL_DATA) $(srcdir)/doc/tdbc_mysql.n $(DIST_DIR)/doc/
   327    354   
   328    355   	$(INSTALL_DATA_DIR) $(DIST_DIR)/generic
   329    356   	$(DIST_INSTALL_DATA) \
   330    357   		$(srcdir)/generic/fakemysql.h \
................................................................................
   395    422   
   396    423   install-lib-binaries: binaries
   397    424   	@$(INSTALL_DATA_DIR) $(DESTDIR)$(pkglibdir)
   398    425   	@list='$(lib_BINARIES)'; for p in $$list; do \
   399    426   	  if test -f $$p; then \
   400    427   	    echo " $(INSTALL_LIBRARY) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
   401    428   	    $(INSTALL_LIBRARY) $$p $(DESTDIR)$(pkglibdir)/$$p; \
   402         -	    stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \
   403         -	    if test "x$$stub" = "xstub"; then \
   404         -		echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \
   405         -		$(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \
   406         -	    else \
   407         -		echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \
   408         -		$(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \
   409         -	    fi; \
   410    429   	    ext=`echo $$p|sed -e "s/.*\.//"`; \
   411    430   	    if test "x$$ext" = "xdll"; then \
   412    431   		lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
   413    432   		if test -f $$lib; then \
   414    433   		    echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \
   415    434   	            $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \
   416    435   		fi; \
................................................................................
   460    479   	  rm -f $(DESTDIR)$(pkglibdir)/$$p; \
   461    480   	done
   462    481   	list='$(bin_BINARIES)'; for p in $$list; do \
   463    482   	  rm -f $(DESTDIR)$(bindir)/$$p; \
   464    483   	done
   465    484   
   466    485   .PHONY: all binaries clean depend distclean doc install libraries test
          486  +.PHONY: gdb gdb-test valgrind valgrindshell
   467    487   
   468    488   # Tell versions [3.59,3.63) of GNU make to not export all variables.
   469    489   # Otherwise a system limit (for SysV at least) may be exceeded.
   470    490   .NOEXPORT:

Changes to configure.

   644    644   AR
   645    645   STUBS_BUILD
   646    646   SHARED_BUILD
   647    647   TCL_THREADS
   648    648   TCL_INCLUDES
   649    649   PKG_OBJECTS
   650    650   PKG_SOURCES
   651         -MATH_LIBS
   652    651   EGREP
   653    652   GREP
   654    653   RANLIB
   655    654   SET_MAKE
   656         -INSTALL_LIBRARY
   657         -INSTALL_SCRIPT
   658         -INSTALL_PROGRAM
   659         -INSTALL_DATA
   660         -INSTALL_DATA_DIR
   661         -INSTALL
   662    655   CPP
   663    656   TDBC_LIB_FILE
   664    657   TDBC_VERSION
   665    658   tdbc_LIBRARY_PATH
   666    659   tdbc_STUB_LIB_PATH
   667    660   tdbc_STUB_LIB_SPEC
   668    661   tdbc_STUB_LIB_FILE
................................................................................
   690    683   TCL_LIB_SPEC
   691    684   TCL_LIB_FLAG
   692    685   TCL_LIB_FILE
   693    686   TCL_SRC_DIR
   694    687   TCL_BIN_DIR
   695    688   TCL_PATCH_LEVEL
   696    689   TCL_VERSION
          690  +INSTALL_LIBRARY
          691  +INSTALL_SCRIPT
          692  +INSTALL_PROGRAM
          693  +INSTALL_DATA
          694  +INSTALL_DATA_DIR
          695  +INSTALL
   697    696   PKG_CFLAGS
   698    697   PKG_LIBS
   699    698   PKG_INCLUDES
   700    699   PKG_HEADERS
   701    700   PKG_TCL_SOURCES
   702    701   PKG_STUB_OBJECTS
   703    702   PKG_STUB_SOURCES
................................................................................
  1630   1629   eval ac_res=\$$3
  1631   1630   	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1632   1631   $as_echo "$ac_res" >&6; }
  1633   1632     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1634   1633   
  1635   1634   } # ac_fn_c_check_header_compile
  1636   1635   
  1637         -# ac_fn_c_try_link LINENO
  1638         -# -----------------------
  1639         -# Try to link conftest.$ac_ext, and return whether this succeeded.
  1640         -ac_fn_c_try_link ()
  1641         -{
  1642         -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1643         -  rm -f conftest.$ac_objext conftest$ac_exeext
  1644         -  if { { ac_try="$ac_link"
  1645         -case "(($ac_try" in
  1646         -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1647         -  *) ac_try_echo=$ac_try;;
  1648         -esac
  1649         -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1650         -$as_echo "$ac_try_echo"; } >&5
  1651         -  (eval "$ac_link") 2>conftest.err
  1652         -  ac_status=$?
  1653         -  if test -s conftest.err; then
  1654         -    grep -v '^ *+' conftest.err >conftest.er1
  1655         -    cat conftest.er1 >&5
  1656         -    mv -f conftest.er1 conftest.err
  1657         -  fi
  1658         -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1659         -  test $ac_status = 0; } && {
  1660         -	 test -z "$ac_c_werror_flag" ||
  1661         -	 test ! -s conftest.err
  1662         -       } && test -s conftest$ac_exeext && {
  1663         -	 test "$cross_compiling" = yes ||
  1664         -	 test -x conftest$ac_exeext
  1665         -       }; then :
  1666         -  ac_retval=0
  1667         -else
  1668         -  $as_echo "$as_me: failed program was:" >&5
  1669         -sed 's/^/| /' conftest.$ac_ext >&5
  1670         -
  1671         -	ac_retval=1
  1672         -fi
  1673         -  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1674         -  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1675         -  # interfere with the next link command; also delete a directory that is
  1676         -  # left behind by Apple's compiler.  We do this before executing the actions.
  1677         -  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1678         -  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1679         -  as_fn_set_status $ac_retval
  1680         -
  1681         -} # ac_fn_c_try_link
  1682         -
  1683         -# ac_fn_c_check_func LINENO FUNC VAR
  1684         -# ----------------------------------
  1685         -# Tests whether FUNC exists, setting the cache variable VAR accordingly
  1686         -ac_fn_c_check_func ()
  1687         -{
  1688         -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1689         -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1690         -$as_echo_n "checking for $2... " >&6; }
  1691         -if eval \${$3+:} false; then :
  1692         -  $as_echo_n "(cached) " >&6
  1693         -else
  1694         -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1695         -/* end confdefs.h.  */
  1696         -/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1697         -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1698         -#define $2 innocuous_$2
  1699         -
  1700         -/* System header to define __stub macros and hopefully few prototypes,
  1701         -    which can conflict with char $2 (); below.
  1702         -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1703         -    <limits.h> exists even on freestanding compilers.  */
  1704         -
  1705         -#ifdef __STDC__
  1706         -# include <limits.h>
  1707         -#else
  1708         -# include <assert.h>
  1709         -#endif
  1710         -
  1711         -#undef $2
  1712         -
  1713         -/* Override any GCC internal prototype to avoid an error.
  1714         -   Use char because int might match the return type of a GCC
  1715         -   builtin and then its argument prototype would still apply.  */
  1716         -#ifdef __cplusplus
  1717         -extern "C"
  1718         -#endif
  1719         -char $2 ();
  1720         -/* The GNU C library defines this for functions which it implements
  1721         -    to always fail with ENOSYS.  Some functions are actually named
  1722         -    something starting with __ and the normal name is an alias.  */
  1723         -#if defined __stub_$2 || defined __stub___$2
  1724         -choke me
  1725         -#endif
  1726         -
  1727         -int
  1728         -main ()
  1729         -{
  1730         -return $2 ();
  1731         -  ;
  1732         -  return 0;
  1733         -}
  1734         -_ACEOF
  1735         -if ac_fn_c_try_link "$LINENO"; then :
  1736         -  eval "$3=yes"
  1737         -else
  1738         -  eval "$3=no"
  1739         -fi
  1740         -rm -f core conftest.err conftest.$ac_objext \
  1741         -    conftest$ac_exeext conftest.$ac_ext
  1742         -fi
  1743         -eval ac_res=\$$3
  1744         -	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1745         -$as_echo "$ac_res" >&6; }
  1746         -  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1747         -
  1748         -} # ac_fn_c_check_func
  1749         -
  1750         -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1751         -# -------------------------------------------------------
  1752         -# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1753         -# the include files in INCLUDES and setting the cache variable VAR
  1754         -# accordingly.
  1755         -ac_fn_c_check_header_mongrel ()
  1756         -{
  1757         -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1758         -  if eval \${$3+:} false; then :
  1759         -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1760         -$as_echo_n "checking for $2... " >&6; }
  1761         -if eval \${$3+:} false; then :
  1762         -  $as_echo_n "(cached) " >&6
  1763         -fi
  1764         -eval ac_res=\$$3
  1765         -	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1766         -$as_echo "$ac_res" >&6; }
  1767         -else
  1768         -  # Is the header compilable?
  1769         -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1770         -$as_echo_n "checking $2 usability... " >&6; }
  1771         -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1772         -/* end confdefs.h.  */
  1773         -$4
  1774         -#include <$2>
  1775         -_ACEOF
  1776         -if ac_fn_c_try_compile "$LINENO"; then :
  1777         -  ac_header_compiler=yes
  1778         -else
  1779         -  ac_header_compiler=no
  1780         -fi
  1781         -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1782         -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1783         -$as_echo "$ac_header_compiler" >&6; }
  1784         -
  1785         -# Is the header present?
  1786         -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1787         -$as_echo_n "checking $2 presence... " >&6; }
  1788         -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1789         -/* end confdefs.h.  */
  1790         -#include <$2>
  1791         -_ACEOF
  1792         -if ac_fn_c_try_cpp "$LINENO"; then :
  1793         -  ac_header_preproc=yes
  1794         -else
  1795         -  ac_header_preproc=no
  1796         -fi
  1797         -rm -f conftest.err conftest.i conftest.$ac_ext
  1798         -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1799         -$as_echo "$ac_header_preproc" >&6; }
  1800         -
  1801         -# So?  What about this header?
  1802         -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1803         -  yes:no: )
  1804         -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1805         -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1806         -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1807         -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1808         -    ;;
  1809         -  no:yes:* )
  1810         -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1811         -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1812         -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1813         -$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1814         -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1815         -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1816         -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1817         -$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1818         -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1819         -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1820         -    ;;
  1821         -esac
  1822         -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1823         -$as_echo_n "checking for $2... " >&6; }
  1824         -if eval \${$3+:} false; then :
  1825         -  $as_echo_n "(cached) " >&6
  1826         -else
  1827         -  eval "$3=\$ac_header_compiler"
  1828         -fi
  1829         -eval ac_res=\$$3
  1830         -	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1831         -$as_echo "$ac_res" >&6; }
  1832         -fi
  1833         -  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1834         -
  1835         -} # ac_fn_c_check_header_mongrel
  1836         -
  1837   1636   # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1838   1637   # -------------------------------------------
  1839   1638   # Tests whether TYPE exists after having included INCLUDES, setting cache
  1840   1639   # variable VAR accordingly.
  1841   1640   ac_fn_c_check_type ()
  1842   1641   {
  1843   1642     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
................................................................................
  2066   1865   rm -f conftest.val
  2067   1866   
  2068   1867     fi
  2069   1868     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2070   1869     as_fn_set_status $ac_retval
  2071   1870   
  2072   1871   } # ac_fn_c_compute_int
         1872  +
         1873  +# ac_fn_c_try_link LINENO
         1874  +# -----------------------
         1875  +# Try to link conftest.$ac_ext, and return whether this succeeded.
         1876  +ac_fn_c_try_link ()
         1877  +{
         1878  +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
         1879  +  rm -f conftest.$ac_objext conftest$ac_exeext
         1880  +  if { { ac_try="$ac_link"
         1881  +case "(($ac_try" in
         1882  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         1883  +  *) ac_try_echo=$ac_try;;
         1884  +esac
         1885  +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
         1886  +$as_echo "$ac_try_echo"; } >&5
         1887  +  (eval "$ac_link") 2>conftest.err
         1888  +  ac_status=$?
         1889  +  if test -s conftest.err; then
         1890  +    grep -v '^ *+' conftest.err >conftest.er1
         1891  +    cat conftest.er1 >&5
         1892  +    mv -f conftest.er1 conftest.err
         1893  +  fi
         1894  +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
         1895  +  test $ac_status = 0; } && {
         1896  +	 test -z "$ac_c_werror_flag" ||
         1897  +	 test ! -s conftest.err
         1898  +       } && test -s conftest$ac_exeext && {
         1899  +	 test "$cross_compiling" = yes ||
         1900  +	 test -x conftest$ac_exeext
         1901  +       }; then :
         1902  +  ac_retval=0
         1903  +else
         1904  +  $as_echo "$as_me: failed program was:" >&5
         1905  +sed 's/^/| /' conftest.$ac_ext >&5
         1906  +
         1907  +	ac_retval=1
         1908  +fi
         1909  +  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
         1910  +  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
         1911  +  # interfere with the next link command; also delete a directory that is
         1912  +  # left behind by Apple's compiler.  We do this before executing the actions.
         1913  +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
         1914  +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
         1915  +  as_fn_set_status $ac_retval
         1916  +
         1917  +} # ac_fn_c_try_link
         1918  +
         1919  +# ac_fn_c_check_func LINENO FUNC VAR
         1920  +# ----------------------------------
         1921  +# Tests whether FUNC exists, setting the cache variable VAR accordingly
         1922  +ac_fn_c_check_func ()
         1923  +{
         1924  +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
         1925  +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
         1926  +$as_echo_n "checking for $2... " >&6; }
         1927  +if eval \${$3+:} false; then :
         1928  +  $as_echo_n "(cached) " >&6
         1929  +else
         1930  +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
         1931  +/* end confdefs.h.  */
         1932  +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
         1933  +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
         1934  +#define $2 innocuous_$2
         1935  +
         1936  +/* System header to define __stub macros and hopefully few prototypes,
         1937  +    which can conflict with char $2 (); below.
         1938  +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
         1939  +    <limits.h> exists even on freestanding compilers.  */
         1940  +
         1941  +#ifdef __STDC__
         1942  +# include <limits.h>
         1943  +#else
         1944  +# include <assert.h>
         1945  +#endif
         1946  +
         1947  +#undef $2
         1948  +
         1949  +/* Override any GCC internal prototype to avoid an error.
         1950  +   Use char because int might match the return type of a GCC
         1951  +   builtin and then its argument prototype would still apply.  */
         1952  +#ifdef __cplusplus
         1953  +extern "C"
         1954  +#endif
         1955  +char $2 ();
         1956  +/* The GNU C library defines this for functions which it implements
         1957  +    to always fail with ENOSYS.  Some functions are actually named
         1958  +    something starting with __ and the normal name is an alias.  */
         1959  +#if defined __stub_$2 || defined __stub___$2
         1960  +choke me
         1961  +#endif
         1962  +
         1963  +int
         1964  +main ()
         1965  +{
         1966  +return $2 ();
         1967  +  ;
         1968  +  return 0;
         1969  +}
         1970  +_ACEOF
         1971  +if ac_fn_c_try_link "$LINENO"; then :
         1972  +  eval "$3=yes"
         1973  +else
         1974  +  eval "$3=no"
         1975  +fi
         1976  +rm -f core conftest.err conftest.$ac_objext \
         1977  +    conftest$ac_exeext conftest.$ac_ext
         1978  +fi
         1979  +eval ac_res=\$$3
         1980  +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
         1981  +$as_echo "$ac_res" >&6; }
         1982  +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
         1983  +
         1984  +} # ac_fn_c_check_func
  2073   1985   cat >config.log <<_ACEOF
  2074   1986   This file contains any messages produced by compilers while
  2075   1987   running configure, to aid debugging if configure makes a mistake.
  2076   1988   
  2077   1989   It was created by tdbcmysql $as_me 1.0.6, which was
  2078   1990   generated by GNU Autoconf 2.69.  Invocation command line was
  2079   1991   
................................................................................
  2426   2338   #--------------------------------------------------------------------
  2427   2339   # Call TEA_INIT as the first TEA_ macro to set up initial vars.
  2428   2340   # This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
  2429   2341   # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
  2430   2342   #--------------------------------------------------------------------
  2431   2343   
  2432   2344   
  2433         -    TEA_VERSION="3.12"
         2345  +    TEA_VERSION="3.13"
  2434   2346   
  2435   2347       { $as_echo "$as_me:${as_lineno-$LINENO}: checking TEA configuration" >&5
  2436   2348   $as_echo_n "checking TEA configuration... " >&6; }
  2437   2349       if test x"${PACKAGE_NAME}" = x ; then
  2438   2350   	as_fn_error $? "
  2439   2351   The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5
  2440   2352       fi
................................................................................
  2444   2356       # If the user did not set CFLAGS, set it now to keep macros
  2445   2357       # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
  2446   2358       if test "${CFLAGS+set}" != "set" ; then
  2447   2359   	CFLAGS=""
  2448   2360       fi
  2449   2361   
  2450   2362       case "`uname -s`" in
  2451         -	*win32*|*WIN32*|*MINGW32_*)
         2363  +	*win32*|*WIN32*|*MINGW32_*|*MINGW64_*)
  2452   2364   	    # Extract the first word of "cygpath", so it can be a program name with args.
  2453   2365   set dummy cygpath; ac_word=$2
  2454   2366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2455   2367   $as_echo_n "checking for $ac_word... " >&6; }
  2456   2368   if ${ac_cv_prog_CYGPATH+:} false; then :
  2457   2369     $as_echo_n "(cached) " >&6
  2458   2370   else
................................................................................
  2528   2440       # This package name must be replaced statically for AC_SUBST to work
  2529   2441   
  2530   2442       # Substitute STUB_LIB_FILE in case package creates a stub library too.
  2531   2443   
  2532   2444   
  2533   2445       # We AC_SUBST these here to ensure they are subst'ed,
  2534   2446       # in case the user doesn't call TEA_ADD_...
         2447  +
         2448  +
         2449  +
         2450  +
         2451  +
         2452  +
         2453  +
         2454  +
         2455  +    # Configure the installer.
         2456  +
         2457  +    INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
         2458  +    INSTALL_DATA_DIR='${INSTALL} -d -m 755'
         2459  +    INSTALL_DATA='${INSTALL} -m 644'
         2460  +    INSTALL_PROGRAM='${INSTALL} -m 755'
         2461  +    INSTALL_SCRIPT='${INSTALL} -m 755'
         2462  +
         2463  +
         2464  +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
         2465  +$as_echo_n "checking system version... " >&6; }
         2466  +if ${tcl_cv_sys_version+:} false; then :
         2467  +  $as_echo_n "(cached) " >&6
         2468  +else
         2469  +
         2470  +	# TEA specific:
         2471  +	if test "${TEA_PLATFORM}" = "windows" ; then
         2472  +	    tcl_cv_sys_version=windows
         2473  +	else
         2474  +	    tcl_cv_sys_version=`uname -s`-`uname -r`
         2475  +	    if test "$?" -ne 0 ; then
         2476  +		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
         2477  +$as_echo "$as_me: WARNING: can't find uname command" >&2;}
         2478  +		tcl_cv_sys_version=unknown
         2479  +	    else
         2480  +		if test "`uname -s`" = "AIX" ; then
         2481  +		    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
         2482  +		fi
         2483  +	    fi
         2484  +	fi
         2485  +
         2486  +fi
         2487  +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
         2488  +$as_echo "$tcl_cv_sys_version" >&6; }
         2489  +    system=$tcl_cv_sys_version
         2490  +
         2491  +    case $system in
         2492  +	HP-UX-*) INSTALL_LIBRARY='${INSTALL} -m 755' ;;
         2493  +	      *) INSTALL_LIBRARY='${INSTALL} -m 644' ;;
         2494  +    esac
         2495  +
  2535   2496   
  2536   2497   
  2537   2498   
  2538   2499   
  2539   2500   
  2540   2501   
  2541   2502   
................................................................................
  2645   2606   
  2646   2607   	    # on Darwin, check in Framework installation locations
  2647   2608   	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
  2648   2609   		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
  2649   2610   			`ls -d /Library/Frameworks 2>/dev/null` \
  2650   2611   			`ls -d /Network/Library/Frameworks 2>/dev/null` \
  2651   2612   			`ls -d /System/Library/Frameworks 2>/dev/null` \
         2613  +			`ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks/Tcl.framework 2>/dev/null` \
         2614  +			`ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Network/Library/Frameworks/Tcl.framework 2>/dev/null` \
         2615  +			`ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework 2>/dev/null` \
  2652   2616   			; do
  2653   2617   		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
  2654   2618   			ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
  2655   2619   			break
  2656   2620   		    fi
  2657   2621   		done
  2658   2622   	    fi
................................................................................
  2671   2635   	    fi
  2672   2636   
  2673   2637   	    # check in a few common install locations
  2674   2638   	    if test x"${ac_cv_c_tclconfig}" = x ; then
  2675   2639   		for i in `ls -d ${libdir} 2>/dev/null` \
  2676   2640   			`ls -d ${exec_prefix}/lib 2>/dev/null` \
  2677   2641   			`ls -d ${prefix}/lib 2>/dev/null` \
  2678         -			`ls -d /usr/contrib/lib 2>/dev/null` \
  2679   2642   			`ls -d /usr/local/lib 2>/dev/null` \
         2643  +			`ls -d /usr/contrib/lib 2>/dev/null` \
  2680   2644   			`ls -d /usr/pkg/lib 2>/dev/null` \
  2681   2645   			`ls -d /usr/lib 2>/dev/null` \
  2682   2646   			`ls -d /usr/lib64 2>/dev/null` \
  2683   2647   			`ls -d /usr/lib/tcl8.6 2>/dev/null` \
  2684   2648   			`ls -d /usr/lib/tcl8.5 2>/dev/null` \
         2649  +			`ls -d /usr/local/lib/tcl8.6 2>/dev/null` \
         2650  +			`ls -d /usr/local/lib/tcl8.5 2>/dev/null` \
         2651  +			`ls -d /usr/local/lib/tcl/tcl8.6 2>/dev/null` \
         2652  +			`ls -d /usr/local/lib/tcl/tcl8.5 2>/dev/null` \
  2685   2653   			; do
  2686   2654   		    if test -f "$i/tclConfig.sh" ; then
  2687   2655   			ac_cv_c_tclconfig="`(cd $i; pwd)`"
  2688   2656   			break
  2689   2657   		    fi
  2690   2658   		done
  2691   2659   	    fi
................................................................................
  3778   3746   	    # check in a few common install locations
  3779   3747   	    if test x"${ac_cv_c_tdbcconfig}" = x ; then
  3780   3748   		for i in `ls -d ${libdir} 2>/dev/null` \
  3781   3749   			`ls -d ${exec_prefix}/lib 2>/dev/null` \
  3782   3750   			`ls -d ${prefix}/lib 2>/dev/null` \
  3783   3751   			`ls -d /usr/local/lib 2>/dev/null` \
  3784   3752   			`ls -d /usr/contrib/lib 2>/dev/null` \
         3753  +			`ls -d /usr/pkg/lib 2>/dev/null` \
  3785   3754   			`ls -d /usr/lib 2>/dev/null` \
  3786   3755   			`ls -d /usr/lib64 2>/dev/null` \
  3787   3756   			; do
  3788   3757   		    if test -f "$i/tdbcConfig.sh" ; then
  3789   3758   			ac_cv_c_tdbcconfig=`(cd $i; pwd)`
  3790   3759   			break
  3791   3760   		    fi
................................................................................
  4677   4646   
  4678   4647   ac_ext=c
  4679   4648   ac_cpp='$CPP $CPPFLAGS'
  4680   4649   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4681   4650   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4682   4651   ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4683   4652   
  4684         -
  4685         -    INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
  4686         -    INSTALL_DATA_DIR='${INSTALL} -d -m 755'
  4687         -    INSTALL_DATA='${INSTALL} -m 644'
  4688         -    INSTALL_PROGRAM='${INSTALL} -m 755'
  4689         -    INSTALL_SCRIPT='${INSTALL} -m 755'
  4690         -    INSTALL_LIBRARY='${INSTALL} -m 644'
  4691         -
  4692         -
  4693         -
  4694         -
  4695         -
  4696         -
  4697         -
  4698   4653   
  4699   4654       #--------------------------------------------------------------------
  4700   4655       # Checks to see if the make program sets the $MAKE variable.
  4701   4656       #--------------------------------------------------------------------
  4702   4657   
  4703   4658       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4704   4659   $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
................................................................................
  5363   5318   
  5364   5319        ;; #(
  5365   5320      *)
  5366   5321        as_fn_error $? "unknown endianness
  5367   5322    presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5368   5323    esac
  5369   5324   
  5370         -    if test "${TEA_PLATFORM}" = "unix" ; then
  5371         -
  5372         -    #--------------------------------------------------------------------
  5373         -    # On a few very rare systems, all of the libm.a stuff is
  5374         -    # already in libc.a.  Set compiler flags accordingly.
  5375         -    # Also, Linux requires the "ieee" library for math to work
  5376         -    # right (and it must appear before "-lm").
  5377         -    #--------------------------------------------------------------------
  5378         -
  5379         -    ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  5380         -if test "x$ac_cv_func_sin" = xyes; then :
  5381         -  MATH_LIBS=""
  5382         -else
  5383         -  MATH_LIBS="-lm"
  5384         -fi
  5385         -
  5386         -    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5
  5387         -$as_echo_n "checking for main in -lieee... " >&6; }
  5388         -if ${ac_cv_lib_ieee_main+:} false; then :
  5389         -  $as_echo_n "(cached) " >&6
  5390         -else
  5391         -  ac_check_lib_save_LIBS=$LIBS
  5392         -LIBS="-lieee  $LIBS"
  5393         -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5394         -/* end confdefs.h.  */
  5395         -
  5396         -
  5397         -int
  5398         -main ()
  5399         -{
  5400         -return main ();
  5401         -  ;
  5402         -  return 0;
  5403         -}
  5404         -_ACEOF
  5405         -if ac_fn_c_try_link "$LINENO"; then :
  5406         -  ac_cv_lib_ieee_main=yes
  5407         -else
  5408         -  ac_cv_lib_ieee_main=no
  5409         -fi
  5410         -rm -f core conftest.err conftest.$ac_objext \
  5411         -    conftest$ac_exeext conftest.$ac_ext
  5412         -LIBS=$ac_check_lib_save_LIBS
  5413         -fi
  5414         -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5
  5415         -$as_echo "$ac_cv_lib_ieee_main" >&6; }
  5416         -if test "x$ac_cv_lib_ieee_main" = xyes; then :
  5417         -  MATH_LIBS="-lieee $MATH_LIBS"
  5418         -fi
  5419         -
  5420         -
  5421         -    #--------------------------------------------------------------------
  5422         -    # Interactive UNIX requires -linet instead of -lsocket, plus it
  5423         -    # needs net/errno.h to define the socket-related error codes.
  5424         -    #--------------------------------------------------------------------
  5425         -
  5426         -    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
  5427         -$as_echo_n "checking for main in -linet... " >&6; }
  5428         -if ${ac_cv_lib_inet_main+:} false; then :
  5429         -  $as_echo_n "(cached) " >&6
  5430         -else
  5431         -  ac_check_lib_save_LIBS=$LIBS
  5432         -LIBS="-linet  $LIBS"
  5433         -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5434         -/* end confdefs.h.  */
  5435         -
  5436         -
  5437         -int
  5438         -main ()
  5439         -{
  5440         -return main ();
  5441         -  ;
  5442         -  return 0;
  5443         -}
  5444         -_ACEOF
  5445         -if ac_fn_c_try_link "$LINENO"; then :
  5446         -  ac_cv_lib_inet_main=yes
  5447         -else
  5448         -  ac_cv_lib_inet_main=no
  5449         -fi
  5450         -rm -f core conftest.err conftest.$ac_objext \
  5451         -    conftest$ac_exeext conftest.$ac_ext
  5452         -LIBS=$ac_check_lib_save_LIBS
  5453         -fi
  5454         -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
  5455         -$as_echo "$ac_cv_lib_inet_main" >&6; }
  5456         -if test "x$ac_cv_lib_inet_main" = xyes; then :
  5457         -  LIBS="$LIBS -linet"
  5458         -fi
  5459         -
  5460         -    ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
  5461         -if test "x$ac_cv_header_net_errno_h" = xyes; then :
  5462         -
  5463         -
  5464         -$as_echo "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
  5465         -
  5466         -fi
  5467         -
  5468         -
  5469         -
  5470         -    #--------------------------------------------------------------------
  5471         -    #	Check for the existence of the -lsocket and -lnsl libraries.
  5472         -    #	The order here is important, so that they end up in the right
  5473         -    #	order in the command line generated by make.  Here are some
  5474         -    #	special considerations:
  5475         -    #	1. Use "connect" and "accept" to check for -lsocket, and
  5476         -    #	   "gethostbyname" to check for -lnsl.
  5477         -    #	2. Use each function name only once:  can't redo a check because
  5478         -    #	   autoconf caches the results of the last check and won't redo it.
  5479         -    #	3. Use -lnsl and -lsocket only if they supply procedures that
  5480         -    #	   aren't already present in the normal libraries.  This is because
  5481         -    #	   IRIX 5.2 has libraries, but they aren't needed and they're
  5482         -    #	   bogus:  they goof up name resolution if used.
  5483         -    #	4. On some SVR4 systems, can't use -lsocket without -lnsl too.
  5484         -    #	   To get around this problem, check for both libraries together
  5485         -    #	   if -lsocket doesn't work by itself.
  5486         -    #--------------------------------------------------------------------
  5487         -
  5488         -    tcl_checkBoth=0
  5489         -    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  5490         -if test "x$ac_cv_func_connect" = xyes; then :
  5491         -  tcl_checkSocket=0
  5492         -else
  5493         -  tcl_checkSocket=1
  5494         -fi
  5495         -
  5496         -    if test "$tcl_checkSocket" = 1; then
  5497         -	ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
  5498         -if test "x$ac_cv_func_setsockopt" = xyes; then :
  5499         -
  5500         -else
  5501         -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
  5502         -$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
  5503         -if ${ac_cv_lib_socket_setsockopt+:} false; then :
  5504         -  $as_echo_n "(cached) " >&6
  5505         -else
  5506         -  ac_check_lib_save_LIBS=$LIBS
  5507         -LIBS="-lsocket  $LIBS"
  5508         -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5509         -/* end confdefs.h.  */
  5510         -
  5511         -/* Override any GCC internal prototype to avoid an error.
  5512         -   Use char because int might match the return type of a GCC
  5513         -   builtin and then its argument prototype would still apply.  */
  5514         -#ifdef __cplusplus
  5515         -extern "C"
  5516         -#endif
  5517         -char setsockopt ();
  5518         -int
  5519         -main ()
  5520         -{
  5521         -return setsockopt ();
  5522         -  ;
  5523         -  return 0;
  5524         -}
  5525         -_ACEOF
  5526         -if ac_fn_c_try_link "$LINENO"; then :
  5527         -  ac_cv_lib_socket_setsockopt=yes
  5528         -else
  5529         -  ac_cv_lib_socket_setsockopt=no
  5530         -fi
  5531         -rm -f core conftest.err conftest.$ac_objext \
  5532         -    conftest$ac_exeext conftest.$ac_ext
  5533         -LIBS=$ac_check_lib_save_LIBS
  5534         -fi
  5535         -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
  5536         -$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
  5537         -if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
  5538         -  LIBS="$LIBS -lsocket"
  5539         -else
  5540         -  tcl_checkBoth=1
  5541         -fi
  5542         -
  5543         -fi
  5544         -
  5545         -    fi
  5546         -    if test "$tcl_checkBoth" = 1; then
  5547         -	tk_oldLibs=$LIBS
  5548         -	LIBS="$LIBS -lsocket -lnsl"
  5549         -	ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
  5550         -if test "x$ac_cv_func_accept" = xyes; then :
  5551         -  tcl_checkNsl=0
  5552         -else
  5553         -  LIBS=$tk_oldLibs
  5554         -fi
  5555         -
  5556         -    fi
  5557         -    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  5558         -if test "x$ac_cv_func_gethostbyname" = xyes; then :
  5559         -
  5560         -else
  5561         -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  5562         -$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  5563         -if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  5564         -  $as_echo_n "(cached) " >&6
  5565         -else
  5566         -  ac_check_lib_save_LIBS=$LIBS
  5567         -LIBS="-lnsl  $LIBS"
  5568         -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5569         -/* end confdefs.h.  */
  5570         -
  5571         -/* Override any GCC internal prototype to avoid an error.
  5572         -   Use char because int might match the return type of a GCC
  5573         -   builtin and then its argument prototype would still apply.  */
  5574         -#ifdef __cplusplus
  5575         -extern "C"
  5576         -#endif
  5577         -char gethostbyname ();
  5578         -int
  5579         -main ()
  5580         -{
  5581         -return gethostbyname ();
  5582         -  ;
  5583         -  return 0;
  5584         -}
  5585         -_ACEOF
  5586         -if ac_fn_c_try_link "$LINENO"; then :
  5587         -  ac_cv_lib_nsl_gethostbyname=yes
  5588         -else
  5589         -  ac_cv_lib_nsl_gethostbyname=no
  5590         -fi
  5591         -rm -f core conftest.err conftest.$ac_objext \
  5592         -    conftest$ac_exeext conftest.$ac_ext
  5593         -LIBS=$ac_check_lib_save_LIBS
  5594         -fi
  5595         -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  5596         -$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  5597         -if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  5598         -  LIBS="$LIBS -lnsl"
  5599         -fi
  5600         -
  5601         -fi
  5602         -
  5603         -
  5604         -    # TEA specific: Don't perform the eval of the libraries here because
  5605         -    # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS
  5606         -
  5607         -    TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
  5608         -
  5609         -
  5610         -
  5611         -
  5612         -    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5
  5613         -$as_echo_n "checking dirent.h... " >&6; }
  5614         -if ${tcl_cv_dirent_h+:} false; then :
  5615         -  $as_echo_n "(cached) " >&6
  5616         -else
  5617         -
  5618         -    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5619         -/* end confdefs.h.  */
  5620         -#include <sys/types.h>
  5621         -#include <dirent.h>
  5622         -int
  5623         -main ()
  5624         -{
  5625         -
  5626         -#ifndef _POSIX_SOURCE
  5627         -#   ifdef __Lynx__
  5628         -	/*
  5629         -	 * Generate compilation error to make the test fail:  Lynx headers
  5630         -	 * are only valid if really in the POSIX environment.
  5631         -	 */
  5632         -
  5633         -	missing_procedure();
  5634         -#   endif
  5635         -#endif
  5636         -DIR *d;
  5637         -struct dirent *entryPtr;
  5638         -char *p;
  5639         -d = opendir("foobar");
  5640         -entryPtr = readdir(d);
  5641         -p = entryPtr->d_name;
  5642         -closedir(d);
  5643         -
  5644         -  ;
  5645         -  return 0;
  5646         -}
  5647         -_ACEOF
  5648         -if ac_fn_c_try_link "$LINENO"; then :
  5649         -  tcl_cv_dirent_h=yes
  5650         -else
  5651         -  tcl_cv_dirent_h=no
  5652         -fi
  5653         -rm -f core conftest.err conftest.$ac_objext \
  5654         -    conftest$ac_exeext conftest.$ac_ext
  5655         -fi
  5656         -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5
  5657         -$as_echo "$tcl_cv_dirent_h" >&6; }
  5658         -
  5659         -    if test $tcl_cv_dirent_h = no; then
  5660         -
  5661         -$as_echo "#define NO_DIRENT_H 1" >>confdefs.h
  5662         -
  5663         -    fi
  5664         -
  5665         -    # TEA specific:
  5666         -    ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
  5667         -if test "x$ac_cv_header_errno_h" = xyes; then :
  5668         -
  5669         -else
  5670         -
  5671         -$as_echo "#define NO_ERRNO_H 1" >>confdefs.h
  5672         -
  5673         -fi
  5674         -
  5675         -
  5676         -    ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
  5677         -if test "x$ac_cv_header_values_h" = xyes; then :
  5678         -
  5679         -else
  5680         -
  5681         -$as_echo "#define NO_VALUES_H 1" >>confdefs.h
  5682         -
  5683         -fi
  5684         -
  5685         -
  5686         -    ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  5687         -if test "x$ac_cv_header_limits_h" = xyes; then :
  5688         -
  5689         -$as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h
  5690         -
  5691         -else
  5692         -
  5693         -$as_echo "#define NO_LIMITS_H 1" >>confdefs.h
  5694         -
  5695         -fi
  5696         -
  5697         -
  5698         -    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  5699         -if test "x$ac_cv_header_stdlib_h" = xyes; then :
  5700         -  tcl_ok=1
  5701         -else
  5702         -  tcl_ok=0
  5703         -fi
  5704         -
  5705         -
  5706         -    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5707         -/* end confdefs.h.  */
  5708         -#include <stdlib.h>
  5709         -
  5710         -_ACEOF
  5711         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5712         -  $EGREP "strtol" >/dev/null 2>&1; then :
  5713         -
  5714         -else
  5715         -  tcl_ok=0
  5716         -fi
  5717         -rm -f conftest*
  5718         -
  5719         -    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5720         -/* end confdefs.h.  */
  5721         -#include <stdlib.h>
  5722         -
  5723         -_ACEOF
  5724         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5725         -  $EGREP "strtoul" >/dev/null 2>&1; then :
  5726         -
  5727         -else
  5728         -  tcl_ok=0
  5729         -fi
  5730         -rm -f conftest*
  5731         -
  5732         -    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5733         -/* end confdefs.h.  */
  5734         -#include <stdlib.h>
  5735         -
  5736         -_ACEOF
  5737         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5738         -  $EGREP "strtod" >/dev/null 2>&1; then :
  5739         -
  5740         -else
  5741         -  tcl_ok=0
  5742         -fi
  5743         -rm -f conftest*
  5744         -
  5745         -    if test $tcl_ok = 0; then
  5746         -
  5747         -$as_echo "#define NO_STDLIB_H 1" >>confdefs.h
  5748         -
  5749         -    fi
  5750         -    ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  5751         -if test "x$ac_cv_header_string_h" = xyes; then :
  5752         -  tcl_ok=1
  5753         -else
  5754         -  tcl_ok=0
  5755         -fi
  5756         -
  5757         -
  5758         -    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5759         -/* end confdefs.h.  */
  5760         -#include <string.h>
  5761         -
  5762         -_ACEOF
  5763         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5764         -  $EGREP "strstr" >/dev/null 2>&1; then :
  5765         -
  5766         -else
  5767         -  tcl_ok=0
  5768         -fi
  5769         -rm -f conftest*
  5770         -
  5771         -    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5772         -/* end confdefs.h.  */
  5773         -#include <string.h>
  5774         -
  5775         -_ACEOF
  5776         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5777         -  $EGREP "strerror" >/dev/null 2>&1; then :
  5778         -
  5779         -else
  5780         -  tcl_ok=0
  5781         -fi
  5782         -rm -f conftest*
  5783         -
  5784         -
  5785         -    # See also memmove check below for a place where NO_STRING_H can be
  5786         -    # set and why.
  5787         -
  5788         -    if test $tcl_ok = 0; then
  5789         -
  5790         -$as_echo "#define NO_STRING_H 1" >>confdefs.h
  5791         -
  5792         -    fi
  5793         -
  5794         -    ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
  5795         -if test "x$ac_cv_header_sys_wait_h" = xyes; then :
  5796         -
  5797         -else
  5798         -
  5799         -$as_echo "#define NO_SYS_WAIT_H 1" >>confdefs.h
  5800         -
  5801         -fi
  5802         -
  5803         -
  5804         -    ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  5805         -if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  5806         -
  5807         -else
  5808         -
  5809         -$as_echo "#define NO_DLFCN_H 1" >>confdefs.h
  5810         -
  5811         -fi
  5812         -
  5813         -
  5814         -
  5815         -    # OS/390 lacks sys/param.h (and doesn't need it, by chance).
  5816         -    for ac_header in sys/param.h
  5817         -do :
  5818         -  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
  5819         -if test "x$ac_cv_header_sys_param_h" = xyes; then :
  5820         -  cat >>confdefs.h <<_ACEOF
  5821         -#define HAVE_SYS_PARAM_H 1
  5822         -_ACEOF
  5823         -
  5824         -fi
  5825         -
  5826         -done
  5827         -
  5828         -
  5829         -	# Let the user call this, because if it triggers, they will
  5830         -	# need a compat/strtod.c that is correct.  Users can also
  5831         -	# use Tcl_GetDouble(FromObj) instead.
  5832         -	#TEA_BUGGY_STRTOD
  5833         -    fi
         5325  +
         5326  +
         5327  +#-----------------------------------------------------------------------
         5328  +# Setup inlining if available. Check sizeof long long, long.
         5329  +#-----------------------------------------------------------------------
  5834   5330   
  5835   5331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  5836   5332   $as_echo_n "checking for inline... " >&6; }
  5837   5333   if ${ac_cv_c_inline+:} false; then :
  5838   5334     $as_echo_n "(cached) " >&6
  5839   5335   else
  5840   5336     ac_cv_c_inline=no
................................................................................
  5944   5440   
  5945   5441   
  5946   5442   cat >>confdefs.h <<_ACEOF
  5947   5443   #define SIZEOF_LONG $ac_cv_sizeof_long
  5948   5444   _ACEOF
  5949   5445   
  5950   5446   
  5951         -$as_echo "#define DONT_TD_VOID 1" >>confdefs.h
  5952         -
  5953   5447   
  5954   5448   #-----------------------------------------------------------------------
         5449  +# __CHANGE__
  5955   5450   # Specify the C source files to compile in TEA_ADD_SOURCES,
  5956   5451   # public headers that need to be installed in TEA_ADD_HEADERS,
  5957   5452   # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
  5958   5453   # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
  5959   5454   # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
  5960   5455   # and PKG_TCL_SOURCES.
  5961   5456   #-----------------------------------------------------------------------
................................................................................
  6101   5596   	fi
  6102   5597   	PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
  6103   5598       done
  6104   5599   
  6105   5600   
  6106   5601   
  6107   5602   #--------------------------------------------------------------------
         5603  +# __CHANGE__
  6108   5604   #
  6109   5605   # You can add more files to clean if your extension creates any extra
  6110   5606   # files by extending CLEANFILES.
  6111   5607   # Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure
  6112   5608   # and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var.
  6113   5609   #
  6114   5610   # A few miscellaneous platform-specific items:
  6115   5611   # TEA_ADD_* any platform specific compiler/build info here.
  6116   5612   #--------------------------------------------------------------------
  6117   5613   
  6118   5614   #CLEANFILES="$CLEANFILES pkgIndex.tcl"
         5615  +if test "${TEA_PLATFORM}" = "windows" ; then
         5616  +    # Ensure no empty if clauses
         5617  +    :
         5618  +    #TEA_ADD_SOURCES([win/winFile.c])
         5619  +    #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"])
         5620  +else
         5621  +    # Ensure no empty else clauses
         5622  +    :
         5623  +    #TEA_ADD_SOURCES([unix/unixFile.c])
         5624  +    #TEA_ADD_LIBS([-lsuperfly])
         5625  +fi
  6119   5626   
  6120   5627   #--------------------------------------------------------------------
         5628  +# __CHANGE__
  6121   5629   # Choose which headers you need.  Extension authors should try very
  6122   5630   # hard to only rely on the Tcl public header files.  Internal headers
  6123   5631   # contain private data structures and are subject to change without
  6124   5632   # notice.
  6125   5633   # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
  6126   5634   #--------------------------------------------------------------------
  6127   5635   
................................................................................
  6205   5713   
  6206   5714       INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
  6207   5715   
  6208   5716       TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
  6209   5717   
  6210   5718   
  6211   5719   
         5720  +#TEA_PRIVATE_TCL_HEADERS
         5721  +
         5722  +#TEA_PUBLIC_TK_HEADERS
         5723  +#TEA_PRIVATE_TK_HEADERS
         5724  +#TEA_PATH_X
  6212   5725   
  6213   5726   #--------------------------------------------------------------------
  6214   5727   # Check whether --enable-threads or --disable-threads was given.
  6215   5728   # This auto-enables if Tcl was compiled threaded.
  6216   5729   #--------------------------------------------------------------------
  6217   5730   
  6218   5731   
................................................................................
  8544   8057       # standard manufacturer compiler.
  8545   8058   
  8546   8059       if test "$GCC" = yes; then :
  8547   8060   
  8548   8061   	case $system in
  8549   8062   	    AIX-*) ;;
  8550   8063   	    BSD/OS*) ;;
  8551         -	    CYGWIN_*|MINGW32_*) ;;
         8064  +	    CYGWIN_*|MINGW32_*|MINGW64_*) ;;
  8552   8065   	    IRIX*) ;;
  8553   8066   	    NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
  8554   8067   	    Darwin-*) ;;
  8555   8068   	    SCO_SV-3.2*) ;;
  8556   8069   	    windows) ;;
  8557   8070   	    *) SHLIB_CFLAGS="-fPIC" ;;
  8558   8071   	esac
................................................................................
  9237   8750   fi
  9238   8751   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9239   8752          test -z "$ac_type" && break
  9240   8753        done
  9241   8754   fi
  9242   8755   
  9243   8756   
  9244         -
  9245         -#--------------------------------------------------------------------
  9246         -# Everyone should be linking against the Tcl stub library.  If you
  9247         -# can't for some reason, remove this definition.  If you aren't using
  9248         -# stubs, you also need to modify the SHLIB_LD_LIBS setting below to
  9249         -# link against the non-stubbed Tcl library.  Add Tk too if necessary.
  9250         -#--------------------------------------------------------------------
  9251         -
  9252         -
  9253         -$as_echo "#define USE_TCL_STUBS 1" >>confdefs.h
  9254         -
  9255   8757   
  9256   8758   #--------------------------------------------------------------------
  9257   8759   # This macro generates a line to use when building a library.  It
  9258   8760   # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
  9259   8761   # and TEA_LOAD_TCLCONFIG macros above.
  9260   8762   #--------------------------------------------------------------------
  9261   8763   
................................................................................
  9406   8908           done
  9407   8909           TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
  9408   8910       fi
  9409   8911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
  9410   8912   $as_echo "${TCLSH_PROG}" >&6; }
  9411   8913   
  9412   8914   
         8915  +#TEA_PROG_WISH
  9413   8916   
  9414   8917   #--------------------------------------------------------------------
  9415   8918   # Finally, substitute all of the various values into the Makefile.
  9416   8919   # You may alternatively have a special pkgIndex.tcl.in or other files
  9417         -# which require substituting th AC variables in.  Include these here.
         8920  +# which require substituting the AC variables in. Include these here.
  9418   8921   #--------------------------------------------------------------------
  9419   8922   
  9420   8923   ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
  9421   8924   
  9422   8925   cat >confcache <<\_ACEOF
  9423   8926   # This file is a shell script that caches the results of configure
  9424   8927   # tests run on this system so they can be shared between configure

Changes to configure.ac.

     1      1   #!/bin/bash -norc
     2      2   dnl	This file is an input file used by the GNU "autoconf" program to
     3      3   dnl	generate the file "configure", which is run during Tcl installation
     4      4   dnl	to configure the system for the local environment.
     5      5   
     6      6   #-----------------------------------------------------------------------
            7  +# Sample configure.ac for Tcl Extensions.  The only places you should
            8  +# need to modify this file are marked by the string __CHANGE__
            9  +#-----------------------------------------------------------------------
           10  +
           11  +#-----------------------------------------------------------------------
           12  +# __CHANGE__
     7     13   # Set your package name and version numbers here.
     8     14   #
     9     15   # This initializes the environment with PACKAGE_NAME and PACKAGE_VERSION
    10     16   # set as provided.  These will also be added as -D defs in your Makefile
    11     17   # so you can encode the package version directly into the source files.
           18  +# This will also define a special symbol for Windows (BUILD_<PACKAGE_NAME>
           19  +# so that we create the export library with the dll.
    12     20   #-----------------------------------------------------------------------
    13     21   
    14     22   AC_INIT([tdbcmysql], [1.0.6])
    15     23   
    16     24   #--------------------------------------------------------------------
    17     25   # Call TEA_INIT as the first TEA_ macro to set up initial vars.
    18     26   # This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
................................................................................
    81     89   # Standard compiler checks.
    82     90   # This sets up CC by using the CC env var, or looks for gcc otherwise.
    83     91   # This also calls AC_PROG_CC and a few others to create the basic setup
    84     92   # necessary to compile executables.
    85     93   #-----------------------------------------------------------------------
    86     94   
    87     95   TEA_SETUP_COMPILER
           96  +
           97  +#-----------------------------------------------------------------------
           98  +# Setup inlining if available. Check sizeof long long, long. 
           99  +#-----------------------------------------------------------------------
          100  +
    88    101   AC_C_INLINE
    89    102   AC_CHECK_TYPE([long long],[
    90    103       AC_DEFINE([HAVE_LONG_LONG],[1])
    91    104       AC_CHECK_SIZEOF([long long])
    92    105   ],[],[])
    93    106   AC_CHECK_SIZEOF([long])
    94         -AC_DEFINE([DONT_TD_VOID],[1])
    95    107   
    96    108   #-----------------------------------------------------------------------
          109  +# __CHANGE__
    97    110   # Specify the C source files to compile in TEA_ADD_SOURCES,
    98    111   # public headers that need to be installed in TEA_ADD_HEADERS,
    99    112   # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
   100    113   # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
   101    114   # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
   102    115   # and PKG_TCL_SOURCES.
   103    116   #-----------------------------------------------------------------------
................................................................................
   118    131       TEA_ADD_LIBS([${tdbc_STUB_LIB_SPEC}])
   119    132   fi
   120    133   TEA_ADD_CFLAGS([${tdbc_CFLAGS}])
   121    134   TEA_ADD_STUB_SOURCES()
   122    135   TEA_ADD_TCL_SOURCES([library/tdbcmysql.tcl])
   123    136   
   124    137   #--------------------------------------------------------------------
          138  +# __CHANGE__
   125    139   #
   126    140   # You can add more files to clean if your extension creates any extra
   127    141   # files by extending CLEANFILES.
   128    142   # Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure
   129    143   # and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var.
   130    144   #
   131    145   # A few miscellaneous platform-specific items:
   132    146   # TEA_ADD_* any platform specific compiler/build info here.
   133    147   #--------------------------------------------------------------------
   134    148   
   135    149   #CLEANFILES="$CLEANFILES pkgIndex.tcl"
          150  +if test "${TEA_PLATFORM}" = "windows" ; then
          151  +    # Ensure no empty if clauses
          152  +    :
          153  +    #TEA_ADD_SOURCES([win/winFile.c])
          154  +    #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"])
          155  +else
          156  +    # Ensure no empty else clauses
          157  +    :
          158  +    #TEA_ADD_SOURCES([unix/unixFile.c])
          159  +    #TEA_ADD_LIBS([-lsuperfly])
          160  +fi
   136    161   
   137    162   #--------------------------------------------------------------------
          163  +# __CHANGE__
   138    164   # Choose which headers you need.  Extension authors should try very
   139    165   # hard to only rely on the Tcl public header files.  Internal headers
   140    166   # contain private data structures and are subject to change without
   141    167   # notice.
   142    168   # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
   143    169   #--------------------------------------------------------------------
   144    170   
   145    171   TEA_PUBLIC_TCL_HEADERS
          172  +#TEA_PRIVATE_TCL_HEADERS
          173  +
          174  +#TEA_PUBLIC_TK_HEADERS
          175  +#TEA_PRIVATE_TK_HEADERS
          176  +#TEA_PATH_X
   146    177   
   147    178   #--------------------------------------------------------------------
   148    179   # Check whether --enable-threads or --disable-threads was given.
   149    180   # This auto-enables if Tcl was compiled threaded.
   150    181   #--------------------------------------------------------------------
   151    182   
   152    183   TEA_ENABLE_THREADS
................................................................................
   175    206   #--------------------------------------------------------------------
   176    207   # Integer pointer types used by the (U)INT2PTR / PTR2(U)INT macros.
   177    208   #--------------------------------------------------------------------
   178    209   
   179    210   AC_TYPE_INTPTR_T
   180    211   AC_TYPE_UINTPTR_T
   181    212   
   182         -#--------------------------------------------------------------------
   183         -# Everyone should be linking against the Tcl stub library.  If you
   184         -# can't for some reason, remove this definition.  If you aren't using
   185         -# stubs, you also need to modify the SHLIB_LD_LIBS setting below to
   186         -# link against the non-stubbed Tcl library.  Add Tk too if necessary.
   187         -#--------------------------------------------------------------------
   188         -
   189         -AC_DEFINE(USE_TCL_STUBS, 1, [Use Tcl stubs])
   190         -
   191    213   #--------------------------------------------------------------------
   192    214   # This macro generates a line to use when building a library.  It
   193    215   # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
   194    216   # and TEA_LOAD_TCLCONFIG macros above.
   195    217   #--------------------------------------------------------------------
   196    218   
   197    219   TEA_MAKE_LIB
................................................................................
   201    223   # Tcl and Tk build directories or the location they were installed
   202    224   # into. These paths are used to support running test cases only,
   203    225   # the Makefile should not be making use of these paths to generate
   204    226   # a pkgIndex.tcl file or anything else at extension build time.
   205    227   #--------------------------------------------------------------------
   206    228   
   207    229   TEA_PROG_TCLSH
          230  +#TEA_PROG_WISH
   208    231   
   209    232   #--------------------------------------------------------------------
   210    233   # Finally, substitute all of the various values into the Makefile.
   211    234   # You may alternatively have a special pkgIndex.tcl.in or other files
   212         -# which require substituting th AC variables in.  Include these here.
          235  +# which require substituting the AC variables in. Include these here.
   213    236   #--------------------------------------------------------------------
   214    237   
   215    238   AC_OUTPUT([Makefile pkgIndex.tcl])

Changes to pkgIndex.tcl.in.

     1         -# Package index file for tdbc::mysql
            1  +# Index file to load the TDBC MySQL package.
     2      2   
     3      3   if {[catch {package require Tcl @[email protected]}]} {
     4      4       return
     5      5   }
     6      6   package ifneeded tdbc::mysql @[email protected] \
     7      7       "[list source [file join $dir @[email protected]]]\;\
     8      8       [list load [file join $dir @[email protected]] @[email protected]]"