Tcl Extension Architecture (TEA) Sample Extension

Check-in [93bad0be42]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to tclconference@googlegroups.com
or submit via the online form by Sep 9.

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

Overview
Comment:Stop using AC_OUPUT in its deprecated form. Add *Config.sh.in setup example (commented-out). Pull in bits from latest tclconfig.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:93bad0be42be55602880ff0daa5b8a5f994f4a54545dfc06eb116e30d8817f92
User & Date: stu 2018-07-21 21:05:19
Context
2018-08-13
08:30
Replace broken autoconf tokens. Untangle CFLAGS_DEFAULT, CFLAGS_WARNING, and SHLIB_CFLAGS from CFLAGS. Leaf check-in: 4767411521 user: pooryorick tags: trunk
2018-07-21
21:05
Stop using AC_OUPUT in its deprecated form. Add *Config.sh.in setup example (commented-out). Pull in bits from latest tclconfig. check-in: 93bad0be42 user: stu tags: trunk
2018-06-19
04:02
Make wish invocation like tclsh invocation. check-in: 1ccd8dcd1b user: stu tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to configure.

  2355   2355   
  2356   2356   	    # on Darwin, check in Framework installation locations
  2357   2357   	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
  2358   2358   		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
  2359   2359   			`ls -d /Library/Frameworks 2>/dev/null` \
  2360   2360   			`ls -d /Network/Library/Frameworks 2>/dev/null` \
  2361   2361   			`ls -d /System/Library/Frameworks 2>/dev/null` \
         2362  +			`ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks/Tcl.framework 2>/dev/null` \
         2363  +			`ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Network/Library/Frameworks/Tcl.framework 2>/dev/null` \
         2364  +			`ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework 2>/dev/null` \
  2362   2365   			; do
  2363   2366   		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
  2364   2367   			ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
  2365   2368   			break
  2366   2369   		    fi
  2367   2370   		done
  2368   2371   	    fi
................................................................................
  2381   2384   	    fi
  2382   2385   
  2383   2386   	    # check in a few common install locations
  2384   2387   	    if test x"${ac_cv_c_tclconfig}" = x ; then
  2385   2388   		for i in `ls -d ${libdir} 2>/dev/null` \
  2386   2389   			`ls -d ${exec_prefix}/lib 2>/dev/null` \
  2387   2390   			`ls -d ${prefix}/lib 2>/dev/null` \
  2388         -			`ls -d /usr/contrib/lib 2>/dev/null` \
  2389   2391   			`ls -d /usr/local/lib 2>/dev/null` \
         2392  +			`ls -d /usr/contrib/lib 2>/dev/null` \
  2390   2393   			`ls -d /usr/pkg/lib 2>/dev/null` \
  2391   2394   			`ls -d /usr/lib 2>/dev/null` \
  2392   2395   			`ls -d /usr/lib64 2>/dev/null` \
  2393   2396   			`ls -d /usr/lib/tcl8.6 2>/dev/null` \
  2394   2397   			`ls -d /usr/lib/tcl8.5 2>/dev/null` \
  2395   2398   			`ls -d /usr/local/lib/tcl8.6 2>/dev/null` \
  2396   2399   			`ls -d /usr/local/lib/tcl8.5 2>/dev/null` \
................................................................................
  8137   8140       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
  8138   8141   $as_echo "${TCLSH_PROG}" >&6; }
  8139   8142   
  8140   8143   
  8141   8144   #TEA_PROG_WISH
  8142   8145   
  8143   8146   #--------------------------------------------------------------------
  8144         -# Finally, substitute all of the various values into the Makefile.
  8145         -# You may alternatively have a special pkgIndex.tcl.in or other files
  8146         -# which require substituting the AC variables in. Include these here.
         8147  +# Setup a *Config.sh.in configuration file.
         8148  +#--------------------------------------------------------------------
         8149  +
         8150  +#TEA_EXPORT_CONFIG([sample])
         8151  +#AC_SUBST(SAMPLE_VAR)
         8152  +
         8153  +#--------------------------------------------------------------------
         8154  +# Specify files to substitute AC variables in. You may alternatively
         8155  +# have a special pkgIndex.tcl.in or other files which require
         8156  +# substituting the AC variables in. Include these here.
  8147   8157   #--------------------------------------------------------------------
  8148   8158   
  8149   8159   ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
  8150   8160   
         8161  +#AC_CONFIG_FILES([sampleConfig.sh])
         8162  +
         8163  +#--------------------------------------------------------------------
         8164  +# Finally, substitute all of the various values into the files
         8165  +# specified with AC_CONFIG_FILES.
         8166  +#--------------------------------------------------------------------
         8167  +
  8151   8168   cat >confcache <<\_ACEOF
  8152   8169   # This file is a shell script that caches the results of configure
  8153   8170   # tests run on this system so they can be shared between configure
  8154   8171   # scripts and configure runs, see configure's option --config-cache.
  8155   8172   # It is not useful on other systems.  If it contains results you don't
  8156   8173   # want to keep, you may remove or edit it.
  8157   8174   #

Changes to configure.ac.

   164    164   # a pkgIndex.tcl file or anything else at extension build time.
   165    165   #--------------------------------------------------------------------
   166    166   
   167    167   TEA_PROG_TCLSH
   168    168   #TEA_PROG_WISH
   169    169   
   170    170   #--------------------------------------------------------------------
   171         -# Finally, substitute all of the various values into the Makefile.
   172         -# You may alternatively have a special pkgIndex.tcl.in or other files
   173         -# which require substituting the AC variables in. Include these here.
          171  +# Setup a *Config.sh.in configuration file.
          172  +#--------------------------------------------------------------------
          173  +
          174  +#TEA_EXPORT_CONFIG([sample])
          175  +#AC_SUBST(SAMPLE_VAR)
          176  +
          177  +#--------------------------------------------------------------------
          178  +# Specify files to substitute AC variables in. You may alternatively
          179  +# have a special pkgIndex.tcl.in or other files which require
          180  +# substituting the AC variables in. Include these here.
          181  +#--------------------------------------------------------------------
          182  +
          183  +AC_CONFIG_FILES([Makefile pkgIndex.tcl])
          184  +#AC_CONFIG_FILES([sampleConfig.sh])
          185  +
          186  +#--------------------------------------------------------------------
          187  +# Finally, substitute all of the various values into the files
          188  +# specified with AC_CONFIG_FILES.
   174    189   #--------------------------------------------------------------------
   175    190   
   176         -AC_OUTPUT([Makefile pkgIndex.tcl])
          191  +AC_OUTPUT()