Tk-Components

Hex Artifact Content
Login

Artifact 94a82c24e2af9d42e01b41b0839f28ab15435b40:


0000: 23 21 2f 62 69 6e 2f 62 61 73 68 20 2d 6e 6f 72  #!/bin/bash -nor
0010: 63 0a 64 6e 6c 09 54 68 69 73 20 66 69 6c 65 20  c.dnl.This file 
0020: 69 73 20 61 6e 20 69 6e 70 75 74 20 66 69 6c 65  is an input file
0030: 20 75 73 65 64 20 62 79 20 74 68 65 20 47 4e 55   used by the GNU
0040: 20 22 61 75 74 6f 63 6f 6e 66 22 20 70 72 6f 67   "autoconf" prog
0050: 72 61 6d 20 74 6f 0a 64 6e 6c 09 67 65 6e 65 72  ram to.dnl.gener
0060: 61 74 65 20 74 68 65 20 66 69 6c 65 20 22 63 6f  ate the file "co
0070: 6e 66 69 67 75 72 65 22 2c 20 77 68 69 63 68 20  nfigure", which 
0080: 69 73 20 72 75 6e 20 64 75 72 69 6e 67 20 54 63  is run during Tc
0090: 6c 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 0a 64  l installation.d
00a0: 6e 6c 09 74 6f 20 63 6f 6e 66 69 67 75 72 65 20  nl.to configure 
00b0: 74 68 65 20 73 79 73 74 65 6d 20 66 6f 72 20 74  the system for t
00c0: 68 65 20 6c 6f 63 61 6c 20 65 6e 76 69 72 6f 6e  he local environ
00d0: 6d 65 6e 74 2e 0a 23 0a 23 20 52 43 53 3a 20 40  ment..#.# RCS: @
00e0: 28 23 29 20 24 49 64 3a 20 63 6f 6e 66 69 67 75  (#) $Id: configu
00f0: 72 65 2e 69 6e 2c 76 20 31 2e 34 38 20 32 30 30  re.in,v 1.48 200
0100: 38 2f 31 31 2f 30 35 20 30 30 3a 31 33 3a 30 30  8/11/05 00:13:00
0110: 20 68 6f 62 62 73 20 45 78 70 20 24 0a 0a 23 2d   hobbs Exp $..#-
0120: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0130: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0140: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0150: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0160: 2d 2d 2d 2d 2d 2d 0a 23 20 5f 5f 43 48 41 4e 47  ------.# __CHANG
0170: 45 5f 5f 0a 23 20 53 65 74 20 79 6f 75 72 20 70  E__.# Set your p
0180: 61 63 6b 61 67 65 20 6e 61 6d 65 20 61 6e 64 20  ackage name and 
0190: 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 73 20  version numbers 
01a0: 68 65 72 65 2e 0a 23 0a 23 20 54 68 69 73 20 69  here..#.# This i
01b0: 6e 69 74 69 61 6c 69 7a 65 73 20 74 68 65 20 65  nitializes the e
01c0: 6e 76 69 72 6f 6e 6d 65 6e 74 20 77 69 74 68 20  nvironment with 
01d0: 50 41 43 4b 41 47 45 5f 4e 41 4d 45 20 61 6e 64  PACKAGE_NAME and
01e0: 20 50 41 43 4b 41 47 45 5f 56 45 52 53 49 4f 4e   PACKAGE_VERSION
01f0: 0a 23 20 73 65 74 20 61 73 20 70 72 6f 76 69 64  .# set as provid
0200: 65 64 2e 20 20 54 68 65 73 65 20 77 69 6c 6c 20  ed.  These will 
0210: 61 6c 73 6f 20 62 65 20 61 64 64 65 64 20 61 73  also be added as
0220: 20 2d 44 20 64 65 66 73 20 69 6e 20 79 6f 75 72   -D defs in your
0230: 20 4d 61 6b 65 66 69 6c 65 0a 23 20 73 6f 20 79   Makefile.# so y
0240: 6f 75 20 63 61 6e 20 65 6e 63 6f 64 65 20 74 68  ou can encode th
0250: 65 20 70 61 63 6b 61 67 65 20 76 65 72 73 69 6f  e package versio
0260: 6e 20 64 69 72 65 63 74 6c 79 20 69 6e 74 6f 20  n directly into 
0270: 74 68 65 20 73 6f 75 72 63 65 20 66 69 6c 65 73  the source files
0280: 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ..#-------------
0290: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
02a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
02b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
02c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f 49  ----------..AC_I
02d0: 4e 49 54 28 5b 6d 61 63 74 6f 6f 6c 62 61 72 5d  NIT([mactoolbar]
02e0: 2c 20 5b 31 2e 30 5d 29 0a 0a 69 66 20 74 65 73  , [1.0])..if tes
02f0: 74 20 22 60 75 6e 61 6d 65 20 2d 73 60 22 20 21  t "`uname -s`" !
0300: 3d 20 22 44 61 72 77 69 6e 22 20 2d 6f 20 5c 0a  = "Darwin" -o \.
0310: 09 22 60 75 6e 61 6d 65 20 2d 72 20 7c 20 61 77  ."`uname -r | aw
0320: 6b 20 2d 46 2e 20 27 7b 70 72 69 6e 74 20 5b 24  k -F. '{print [$
0330: 5d 31 7d 27 60 22 20 2d 6c 74 20 39 3b 20 74 68  ]1}'`" -lt 9; th
0340: 65 6e 0a 20 20 20 20 41 43 5f 4d 53 47 5f 45 52  en.    AC_MSG_ER
0350: 52 4f 52 28 5b 4d 61 63 20 4f 53 20 58 20 31 30  ROR([Mac OS X 10
0360: 2e 35 20 6f 72 20 6c 61 74 65 72 20 72 65 71 75  .5 or later requ
0370: 69 72 65 64 21 5d 29 0a 66 69 0a 0a 23 2d 2d 2d  ired!]).fi..#---
0380: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0390: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
03a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
03b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
03c0: 2d 0a 23 20 43 61 6c 6c 20 54 45 41 5f 49 4e 49  -.# Call TEA_INI
03d0: 54 20 61 73 20 74 68 65 20 66 69 72 73 74 20 54  T as the first T
03e0: 45 41 5f 20 6d 61 63 72 6f 20 74 6f 20 73 65 74  EA_ macro to set
03f0: 20 75 70 20 69 6e 69 74 69 61 6c 20 76 61 72 73   up initial vars
0400: 2e 0a 23 20 54 68 69 73 20 77 69 6c 6c 20 64 65  ..# This will de
0410: 66 69 6e 65 20 61 20 24 7b 54 45 41 5f 50 4c 41  fine a ${TEA_PLA
0420: 54 46 4f 52 4d 7d 20 76 61 72 69 61 62 6c 65 20  TFORM} variable 
0430: 3d 3d 20 22 75 6e 69 78 22 20 6f 72 20 22 77 69  == "unix" or "wi
0440: 6e 64 6f 77 73 22 0a 23 20 61 73 20 77 65 6c 6c  ndows".# as well
0450: 20 61 73 20 50 4b 47 5f 4c 49 42 5f 46 49 4c 45   as PKG_LIB_FILE
0460: 20 61 6e 64 20 50 4b 47 5f 53 54 55 42 5f 4c 49   and PKG_STUB_LI
0470: 42 5f 46 49 4c 45 2e 0a 23 2d 2d 2d 2d 2d 2d 2d  B_FILE..#-------
0480: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0490: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
04a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
04b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 54  -------------..T
04c0: 45 41 5f 49 4e 49 54 28 5b 33 2e 37 5d 29 0a 0a  EA_INIT([3.7])..
04d0: 41 43 5f 43 4f 4e 46 49 47 5f 41 55 58 5f 44 49  AC_CONFIG_AUX_DI
04e0: 52 28 74 63 6c 63 6f 6e 66 69 67 29 0a 0a 23 2d  R(tclconfig)..#-
04f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0500: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0510: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0520: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0530: 2d 2d 2d 0a 23 20 4c 6f 61 64 20 74 68 65 20 74  ---.# Load the t
0540: 63 6c 43 6f 6e 66 69 67 2e 73 68 20 66 69 6c 65  clConfig.sh file
0550: 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .#--------------
0560: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0570: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0580: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0590: 2d 2d 2d 2d 2d 2d 0a 0a 54 45 41 5f 50 41 54 48  ------..TEA_PATH
05a0: 5f 54 43 4c 43 4f 4e 46 49 47 0a 54 45 41 5f 4c  _TCLCONFIG.TEA_L
05b0: 4f 41 44 5f 54 43 4c 43 4f 4e 46 49 47 0a 0a 23  OAD_TCLCONFIG..#
05c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
05d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
05e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
05f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0600: 2d 2d 2d 2d 0a 23 20 4c 6f 61 64 20 74 68 65 20  ----.# Load the 
0610: 74 6b 43 6f 6e 66 69 67 2e 73 68 20 66 69 6c 65  tkConfig.sh file
0620: 20 69 66 20 6e 65 63 65 73 73 61 72 79 20 28 54   if necessary (T
0630: 6b 20 65 78 74 65 6e 73 69 6f 6e 29 0a 23 2d 2d  k extension).#--
0640: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0650: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0660: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0670: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0680: 2d 2d 0a 0a 54 45 41 5f 50 41 54 48 5f 54 4b 43  --..TEA_PATH_TKC
0690: 4f 4e 46 49 47 0a 54 45 41 5f 4c 4f 41 44 5f 54  ONFIG.TEA_LOAD_T
06a0: 4b 43 4f 4e 46 49 47 0a 0a 23 2d 2d 2d 2d 2d 2d  KCONFIG..#------
06b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
06c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
06d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
06e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
06f0: 2d 0a 23 20 48 61 6e 64 6c 65 20 74 68 65 20 2d  -.# Handle the -
0700: 2d 70 72 65 66 69 78 3d 2e 2e 2e 20 6f 70 74 69  -prefix=... opti
0710: 6f 6e 20 62 79 20 64 65 66 61 75 6c 74 69 6e 67  on by defaulting
0720: 20 74 6f 20 77 68 61 74 20 54 63 6c 20 67 61 76   to what Tcl gav
0730: 65 2e 0a 23 20 4d 75 73 74 20 62 65 20 63 61 6c  e..# Must be cal
0740: 6c 65 64 20 61 66 74 65 72 20 54 45 41 5f 4c 4f  led after TEA_LO
0750: 41 44 5f 54 43 4c 43 4f 4e 46 49 47 20 61 6e 64  AD_TCLCONFIG and
0760: 20 62 65 66 6f 72 65 20 54 45 41 5f 53 45 54 55   before TEA_SETU
0770: 50 5f 43 4f 4d 50 49 4c 45 52 2e 0a 23 2d 2d 2d  P_COMPILER..#---
0780: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0790: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07c0: 2d 2d 2d 2d 0a 0a 54 45 41 5f 50 52 45 46 49 58  ----..TEA_PREFIX
07d0: 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ..#-------------
07e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0800: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0810: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 53 74 61  ----------.# Sta
0820: 6e 64 61 72 64 20 63 6f 6d 70 69 6c 65 72 20 63  ndard compiler c
0830: 68 65 63 6b 73 2e 0a 23 20 54 68 69 73 20 73 65  hecks..# This se
0840: 74 73 20 75 70 20 43 43 20 62 79 20 75 73 69 6e  ts up CC by usin
0850: 67 20 74 68 65 20 43 43 20 65 6e 76 20 76 61 72  g the CC env var
0860: 2c 20 6f 72 20 6c 6f 6f 6b 73 20 66 6f 72 20 67  , or looks for g
0870: 63 63 20 6f 74 68 65 72 77 69 73 65 2e 0a 23 20  cc otherwise..# 
0880: 54 68 69 73 20 61 6c 73 6f 20 63 61 6c 6c 73 20  This also calls 
0890: 41 43 5f 50 52 4f 47 5f 43 43 2c 20 41 43 5f 50  AC_PROG_CC, AC_P
08a0: 52 4f 47 5f 49 4e 53 54 41 4c 4c 20 61 6e 64 20  ROG_INSTALL and 
08b0: 61 20 66 65 77 20 6f 74 68 65 72 73 20 74 6f 20  a few others to 
08c0: 63 72 65 61 74 65 0a 23 20 74 68 65 20 62 61 73  create.# the bas
08d0: 69 63 20 73 65 74 75 70 20 6e 65 63 65 73 73 61  ic setup necessa
08e0: 72 79 20 74 6f 20 63 6f 6d 70 69 6c 65 20 65 78  ry to compile ex
08f0: 65 63 75 74 61 62 6c 65 73 2e 0a 23 2d 2d 2d 2d  ecutables..#----
0900: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0910: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0920: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0930: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0940: 2d 2d 2d 0a 0a 54 45 41 5f 53 45 54 55 50 5f 43  ---..TEA_SETUP_C
0950: 4f 4d 50 49 4c 45 52 0a 0a 23 2d 2d 2d 2d 2d 2d  OMPILER..#------
0960: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0970: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0980: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0990: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09a0: 2d 0a 23 20 5f 5f 43 48 41 4e 47 45 5f 5f 0a 23  -.# __CHANGE__.#
09b0: 20 53 70 65 63 69 66 79 20 74 68 65 20 43 20 73   Specify the C s
09c0: 6f 75 72 63 65 20 66 69 6c 65 73 20 74 6f 20 63  ource files to c
09d0: 6f 6d 70 69 6c 65 20 69 6e 20 54 45 41 5f 41 44  ompile in TEA_AD
09e0: 44 5f 53 4f 55 52 43 45 53 2c 0a 23 20 70 75 62  D_SOURCES,.# pub
09f0: 6c 69 63 20 68 65 61 64 65 72 73 20 74 68 61 74  lic headers that
0a00: 20 6e 65 65 64 20 74 6f 20 62 65 20 69 6e 73 74   need to be inst
0a10: 61 6c 6c 65 64 20 69 6e 20 54 45 41 5f 41 44 44  alled in TEA_ADD
0a20: 5f 48 45 41 44 45 52 53 2c 0a 23 20 73 74 75 62  _HEADERS,.# stub
0a30: 20 6c 69 62 72 61 72 79 20 43 20 73 6f 75 72 63   library C sourc
0a40: 65 20 66 69 6c 65 73 20 74 6f 20 63 6f 6d 70 69  e files to compi
0a50: 6c 65 20 69 6e 20 54 45 41 5f 41 44 44 5f 53 54  le in TEA_ADD_ST
0a60: 55 42 5f 53 4f 55 52 43 45 53 2c 0a 23 20 61 6e  UB_SOURCES,.# an
0a70: 64 20 72 75 6e 74 69 6d 65 20 54 63 6c 20 6c 69  d runtime Tcl li
0a80: 62 72 61 72 79 20 66 69 6c 65 73 20 69 6e 20 54  brary files in T
0a90: 45 41 5f 41 44 44 5f 54 43 4c 5f 53 4f 55 52 43  EA_ADD_TCL_SOURC
0aa0: 45 53 2e 0a 23 20 54 68 69 73 20 64 65 66 69 6e  ES..# This defin
0ab0: 65 73 20 50 4b 47 28 5f 53 54 55 42 29 5f 53 4f  es PKG(_STUB)_SO
0ac0: 55 52 43 45 53 2c 20 50 4b 47 28 5f 53 54 55 42  URCES, PKG(_STUB
0ad0: 29 5f 4f 42 4a 45 43 54 53 2c 20 50 4b 47 5f 48  )_OBJECTS, PKG_H
0ae0: 45 41 44 45 52 53 0a 23 20 61 6e 64 20 50 4b 47  EADERS.# and PKG
0af0: 5f 54 43 4c 5f 53 4f 55 52 43 45 53 2e 0a 23 2d  _TCL_SOURCES..#-
0b00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b40: 2d 2d 2d 2d 2d 2d 0a 0a 54 45 41 5f 41 44 44 5f  ------..TEA_ADD_
0b50: 53 4f 55 52 43 45 53 28 5b 6d 61 63 6f 73 78 2f  SOURCES([macosx/
0b60: 6d 61 63 74 6f 6f 6c 62 61 72 2e 6d 5d 29 0a 54  mactoolbar.m]).T
0b70: 45 41 5f 41 44 44 5f 48 45 41 44 45 52 53 28 5b  EA_ADD_HEADERS([
0b80: 5d 29 0a 54 45 41 5f 41 44 44 5f 49 4e 43 4c 55  ]).TEA_ADD_INCLU
0b90: 44 45 53 28 5b 5d 29 0a 54 45 41 5f 41 44 44 5f  DES([]).TEA_ADD_
0ba0: 4c 49 42 53 28 5b 2d 66 72 61 6d 65 77 6f 72 6b  LIBS([-framework
0bb0: 20 43 6f 63 6f 61 20 5d 29 0a 54 45 41 5f 41 44   Cocoa ]).TEA_AD
0bc0: 44 5f 43 46 4c 41 47 53 28 5b 2d 73 74 64 3d 67  D_CFLAGS([-std=g
0bd0: 6e 75 39 39 20 2d 66 6f 62 6a 63 2d 67 63 5d 29  nu99 -fobjc-gc])
0be0: 0a 54 45 41 5f 41 44 44 5f 53 54 55 42 5f 53 4f  .TEA_ADD_STUB_SO
0bf0: 55 52 43 45 53 28 5b 5d 29 0a 0a 23 2d 2d 2d 2d  URCES([])..#----
0c00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0c10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0c20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0c30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0c40: 0a 23 20 5f 5f 43 48 41 4e 47 45 5f 5f 0a 23 20  .# __CHANGE__.# 
0c50: 41 20 66 65 77 20 6d 69 73 63 65 6c 6c 61 6e 65  A few miscellane
0c60: 6f 75 73 20 70 6c 61 74 66 6f 72 6d 2d 73 70 65  ous platform-spe
0c70: 63 69 66 69 63 20 69 74 65 6d 73 3a 0a 23 0a 23  cific items:.#.#
0c80: 20 44 65 66 69 6e 65 20 61 20 73 70 65 63 69 61   Define a specia
0c90: 6c 20 73 79 6d 62 6f 6c 20 66 6f 72 20 57 69 6e  l symbol for Win
0ca0: 64 6f 77 73 20 28 42 55 49 4c 44 5f 74 6b 57 65  dows (BUILD_tkWe
0cb0: 62 56 69 65 77 20 69 6e 20 74 68 69 73 20 63 61  bView in this ca
0cc0: 73 65 29 20 73 6f 0a 23 20 74 68 61 74 20 77 65  se) so.# that we
0cd0: 20 63 72 65 61 74 65 20 74 68 65 20 65 78 70 6f   create the expo
0ce0: 72 74 20 6c 69 62 72 61 72 79 20 77 69 74 68 20  rt library with 
0cf0: 74 68 65 20 64 6c 6c 2e 0a 23 0a 23 20 57 69 6e  the dll..#.# Win
0d00: 64 6f 77 73 20 63 72 65 61 74 65 73 20 61 20 66  dows creates a f
0d10: 65 77 20 65 78 74 72 61 20 66 69 6c 65 73 20 74  ew extra files t
0d20: 68 61 74 20 6e 65 65 64 20 74 6f 20 62 65 20 63  hat need to be c
0d30: 6c 65 61 6e 65 64 20 75 70 2e 0a 23 20 59 6f 75  leaned up..# You
0d40: 20 63 61 6e 20 61 64 64 20 6d 6f 72 65 20 66 69   can add more fi
0d50: 6c 65 73 20 74 6f 20 63 6c 65 61 6e 20 69 66 20  les to clean if 
0d60: 79 6f 75 72 20 65 78 74 65 6e 73 69 6f 6e 20 63  your extension c
0d70: 72 65 61 74 65 73 20 61 6e 79 20 65 78 74 72 61  reates any extra
0d80: 0a 23 20 66 69 6c 65 73 2e 0a 23 0a 23 20 54 45  .# files..#.# TE
0d90: 41 5f 41 44 44 5f 2a 20 61 6e 79 20 70 6c 61 74  A_ADD_* any plat
0da0: 66 6f 72 6d 20 73 70 65 63 69 66 69 63 20 63 6f  form specific co
0db0: 6d 70 69 6c 65 72 2f 62 75 69 6c 64 20 69 6e 66  mpiler/build inf
0dc0: 6f 20 68 65 72 65 2e 0a 23 2d 2d 2d 2d 2d 2d 2d  o here..#-------
0dd0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0de0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0df0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 23  -------------..#
0e10: 20 41 64 64 20 70 6b 67 49 6e 64 65 78 2e 74 63   Add pkgIndex.tc
0e20: 6c 20 69 66 20 69 74 20 69 73 20 67 65 6e 65 72  l if it is gener
0e30: 61 74 65 64 20 69 6e 20 74 68 65 20 4d 61 6b 65  ated in the Make
0e40: 66 69 6c 65 20 69 6e 73 74 65 61 64 20 6f 66 20  file instead of 
0e50: 2e 2f 63 6f 6e 66 69 67 75 72 65 0a 23 20 61 6e  ./configure.# an
0e60: 64 20 63 68 61 6e 67 65 20 4d 61 6b 65 66 69 6c  d change Makefil
0e70: 65 2e 69 6e 20 74 6f 20 6d 6f 76 65 20 69 74 20  e.in to move it 
0e80: 66 72 6f 6d 20 43 4f 4e 46 49 47 5f 43 4c 45 41  from CONFIG_CLEA
0e90: 4e 5f 46 49 4c 45 53 20 74 6f 20 42 49 4e 41 52  N_FILES to BINAR
0ea0: 49 45 53 20 76 61 72 2e 0a 23 43 4c 45 41 4e 46  IES var..#CLEANF
0eb0: 49 4c 45 53 3d 22 70 6b 67 49 6e 64 65 78 2e 74  ILES="pkgIndex.t
0ec0: 63 6c 22 0a 69 66 20 74 65 73 74 20 22 24 7b 54  cl".if test "${T
0ed0: 45 41 5f 50 4c 41 54 46 4f 52 4d 7d 22 20 3d 20  EA_PLATFORM}" = 
0ee0: 22 77 69 6e 64 6f 77 73 22 20 3b 20 74 68 65 6e  "windows" ; then
0ef0: 0a 20 20 20 20 41 43 5f 44 45 46 49 4e 45 28 42  .    AC_DEFINE(B
0f00: 55 49 4c 44 5f 74 6b 57 65 62 56 69 65 77 2c 20  UILD_tkWebView, 
0f10: 31 2c 20 5b 42 75 69 6c 64 20 77 69 6e 64 6f 77  1, [Build window
0f20: 73 20 65 78 70 6f 72 74 20 64 6c 6c 5d 29 0a 20  s export dll]). 
0f30: 20 20 20 43 4c 45 41 4e 46 49 4c 45 53 3d 22 24     CLEANFILES="$
0f40: 43 4c 45 41 4e 46 49 4c 45 53 20 2a 2e 6c 69 62  CLEANFILES *.lib
0f50: 20 2a 2e 64 6c 6c 20 2a 2e 65 78 70 20 2a 2e 69   *.dll *.exp *.i
0f60: 6c 6b 20 2a 2e 70 64 62 20 76 63 2a 2e 70 63 68  lk *.pdb vc*.pch
0f70: 22 0a 20 20 20 20 23 54 45 41 5f 41 44 44 5f 53  ".    #TEA_ADD_S
0f80: 4f 55 52 43 45 53 28 5b 77 69 6e 2f 77 69 6e 46  OURCES([win/winF
0f90: 69 6c 65 2e 63 5d 29 0a 20 20 20 20 23 54 45 41  ile.c]).    #TEA
0fa0: 5f 41 44 44 5f 49 4e 43 4c 55 44 45 53 28 5b 2d  _ADD_INCLUDES([-
0fb0: 49 5c 22 24 28 24 7b 43 59 47 50 41 54 48 7d 20  I\"$(${CYGPATH} 
0fc0: 24 7b 73 72 63 64 69 72 7d 2f 77 69 6e 29 5c 22  ${srcdir}/win)\"
0fd0: 5d 29 0a 65 6c 73 65 0a 20 20 20 20 23 20 45 6e  ]).else.    # En
0fe0: 73 75 72 65 20 6e 6f 20 65 6d 70 74 79 20 65 6c  sure no empty el
0ff0: 73 65 20 63 6c 61 75 73 65 73 0a 20 20 20 20 3a  se clauses.    :
1000: 0a 20 20 20 20 23 54 45 41 5f 41 44 44 5f 53 4f  .    #TEA_ADD_SO
1010: 55 52 43 45 53 28 5b 75 6e 69 78 2f 75 6e 69 78  URCES([unix/unix
1020: 46 69 6c 65 2e 63 5d 29 0a 20 20 20 20 23 54 45  File.c]).    #TE
1030: 41 5f 41 44 44 5f 4c 49 42 53 28 5b 2d 6c 73 75  A_ADD_LIBS([-lsu
1040: 70 65 72 66 6c 79 5d 29 0a 66 69 0a 41 43 5f 53  perfly]).fi.AC_S
1050: 55 42 53 54 28 43 4c 45 41 4e 46 49 4c 45 53 29  UBST(CLEANFILES)
1060: 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ..#-------------
1070: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1080: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1090: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
10a0: 2d 2d 2d 2d 2d 2d 2d 0a 23 20 5f 5f 43 48 41 4e  -------.# __CHAN
10b0: 47 45 5f 5f 0a 23 20 43 68 6f 6f 73 65 20 77 68  GE__.# Choose wh
10c0: 69 63 68 20 68 65 61 64 65 72 73 20 79 6f 75 20  ich headers you 
10d0: 6e 65 65 64 2e 20 20 45 78 74 65 6e 73 69 6f 6e  need.  Extension
10e0: 20 61 75 74 68 6f 72 73 20 73 68 6f 75 6c 64 20   authors should 
10f0: 74 72 79 20 76 65 72 79 0a 23 20 68 61 72 64 20  try very.# hard 
1100: 74 6f 20 6f 6e 6c 79 20 72 65 6c 79 20 6f 6e 20  to only rely on 
1110: 74 68 65 20 54 63 6c 20 70 75 62 6c 69 63 20 68  the Tcl public h
1120: 65 61 64 65 72 20 66 69 6c 65 73 2e 20 20 49 6e  eader files.  In
1130: 74 65 72 6e 61 6c 20 68 65 61 64 65 72 73 0a 23  ternal headers.#
1140: 20 63 6f 6e 74 61 69 6e 20 70 72 69 76 61 74 65   contain private
1150: 20 64 61 74 61 20 73 74 72 75 63 74 75 72 65 73   data structures
1160: 20 61 6e 64 20 61 72 65 20 73 75 62 6a 65 63 74   and are subject
1170: 20 74 6f 20 63 68 61 6e 67 65 20 77 69 74 68 6f   to change witho
1180: 75 74 0a 23 20 6e 6f 74 69 63 65 2e 0a 23 20 54  ut.# notice..# T
1190: 68 69 73 20 4d 55 53 54 20 62 65 20 63 61 6c 6c  his MUST be call
11a0: 65 64 20 61 66 74 65 72 20 54 45 41 5f 4c 4f 41  ed after TEA_LOA
11b0: 44 5f 54 43 4c 43 4f 4e 46 49 47 20 2f 20 54 45  D_TCLCONFIG / TE
11c0: 41 5f 4c 4f 41 44 5f 54 4b 43 4f 4e 46 49 47 0a  A_LOAD_TKCONFIG.
11d0: 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  #---------------
11e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
11f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1200: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1210: 2d 2d 2d 2d 2d 0a 0a 54 45 41 5f 50 55 42 4c 49  -----..TEA_PUBLI
1220: 43 5f 54 43 4c 5f 48 45 41 44 45 52 53 0a 23 54  C_TCL_HEADERS.#T
1230: 45 41 5f 50 52 49 56 41 54 45 5f 54 43 4c 5f 48  EA_PRIVATE_TCL_H
1240: 45 41 44 45 52 53 0a 0a 54 45 41 5f 50 55 42 4c  EADERS..TEA_PUBL
1250: 49 43 5f 54 4b 5f 48 45 41 44 45 52 53 0a 54 45  IC_TK_HEADERS.TE
1260: 41 5f 50 52 49 56 41 54 45 5f 54 4b 5f 48 45 41  A_PRIVATE_TK_HEA
1270: 44 45 52 53 0a 54 45 41 5f 50 41 54 48 5f 58 0a  DERS.TEA_PATH_X.
1280: 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .#--------------
1290: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12c0: 2d 2d 2d 2d 2d 2d 0a 23 20 43 68 65 63 6b 20 77  ------.# Check w
12d0: 68 65 74 68 65 72 20 2d 2d 65 6e 61 62 6c 65 2d  hether --enable-
12e0: 74 68 72 65 61 64 73 20 6f 72 20 2d 2d 64 69 73  threads or --dis
12f0: 61 62 6c 65 2d 74 68 72 65 61 64 73 20 77 61 73  able-threads was
1300: 20 67 69 76 65 6e 2e 0a 23 20 54 68 69 73 20 61   given..# This a
1310: 75 74 6f 2d 65 6e 61 62 6c 65 73 20 69 66 20 54  uto-enables if T
1320: 63 6c 20 77 61 73 20 63 6f 6d 70 69 6c 65 64 20  cl was compiled 
1330: 74 68 72 65 61 64 65 64 2e 0a 23 2d 2d 2d 2d 2d  threaded..#-----
1340: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1350: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1360: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1370: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a  ---------------.
1380: 0a 54 45 41 5f 45 4e 41 42 4c 45 5f 54 48 52 45  .TEA_ENABLE_THRE
1390: 41 44 53 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ADS..#----------
13a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
13b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
13c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
13d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 54 68 65  ----------.# The
13e0: 20 73 74 61 74 65 6d 65 6e 74 20 62 65 6c 6f 77   statement below
13f0: 20 64 65 66 69 6e 65 73 20 61 20 63 6f 6c 6c 65   defines a colle
1400: 63 74 69 6f 6e 20 6f 66 20 73 79 6d 62 6f 6c 73  ction of symbols
1410: 20 72 65 6c 61 74 65 64 20 74 6f 0a 23 20 62 75   related to.# bu
1420: 69 6c 64 69 6e 67 20 61 73 20 61 20 73 68 61 72  ilding as a shar
1430: 65 64 20 6c 69 62 72 61 72 79 20 69 6e 73 74 65  ed library inste
1440: 61 64 20 6f 66 20 61 20 73 74 61 74 69 63 20 6c  ad of a static l
1450: 69 62 72 61 72 79 2e 0a 23 2d 2d 2d 2d 2d 2d 2d  ibrary..#-------
1460: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1470: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1480: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1490: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 54  -------------..T
14a0: 45 41 5f 45 4e 41 42 4c 45 5f 53 48 41 52 45 44  EA_ENABLE_SHARED
14b0: 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ..#-------------
14c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
14d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
14e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
14f0: 2d 2d 2d 2d 2d 2d 2d 0a 23 20 54 68 69 73 20 6d  -------.# This m
1500: 61 63 72 6f 20 66 69 67 75 72 65 73 20 6f 75 74  acro figures out
1510: 20 77 68 61 74 20 66 6c 61 67 73 20 74 6f 20 75   what flags to u
1520: 73 65 20 77 69 74 68 20 74 68 65 20 63 6f 6d 70  se with the comp
1530: 69 6c 65 72 2f 6c 69 6e 6b 65 72 0a 23 20 77 68  iler/linker.# wh
1540: 65 6e 20 62 75 69 6c 64 69 6e 67 20 73 68 61 72  en building shar
1550: 65 64 2f 73 74 61 74 69 63 20 64 65 62 75 67 2f  ed/static debug/
1560: 6f 70 74 69 6d 69 7a 65 64 20 6f 62 6a 65 63 74  optimized object
1570: 73 2e 20 20 54 68 69 73 20 69 6e 66 6f 72 6d 61  s.  This informa
1580: 74 69 6f 6e 0a 23 20 63 61 6e 20 62 65 20 74 61  tion.# can be ta
1590: 6b 65 6e 20 66 72 6f 6d 20 74 68 65 20 74 63 6c  ken from the tcl
15a0: 43 6f 6e 66 69 67 2e 73 68 20 66 69 6c 65 2c 20  Config.sh file, 
15b0: 62 75 74 20 74 68 69 73 20 66 69 67 75 72 65 73  but this figures
15c0: 20 69 74 20 61 6c 6c 20 6f 75 74 2e 0a 23 2d 2d   it all out..#--
15d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
15e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
15f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1600: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1610: 2d 2d 0a 0a 54 45 41 5f 43 4f 4e 46 49 47 5f 43  --..TEA_CONFIG_C
1620: 46 4c 41 47 53 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  FLAGS..#--------
1630: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1640: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1650: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1660: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 53  ------------.# S
1670: 65 74 20 74 68 65 20 64 65 66 61 75 6c 74 20 63  et the default c
1680: 6f 6d 70 69 6c 65 72 20 73 77 69 74 63 68 65 73  ompiler switches
1690: 20 62 61 73 65 64 20 6f 6e 20 74 68 65 20 2d 2d   based on the --
16a0: 65 6e 61 62 6c 65 2d 73 79 6d 62 6f 6c 73 20 6f  enable-symbols o
16b0: 70 74 69 6f 6e 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  ption..#--------
16c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
16d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
16e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
16f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 54 45  ------------..TE
1700: 41 5f 45 4e 41 42 4c 45 5f 53 59 4d 42 4f 4c 53  A_ENABLE_SYMBOLS
1710: 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ..#-------------
1720: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1730: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1740: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1750: 2d 2d 2d 2d 2d 2d 2d 0a 23 20 45 76 65 72 79 6f  -------.# Everyo
1760: 6e 65 20 73 68 6f 75 6c 64 20 62 65 20 6c 69 6e  ne should be lin
1770: 6b 69 6e 67 20 61 67 61 69 6e 73 74 20 74 68 65  king against the
1780: 20 54 63 6c 20 73 74 75 62 20 6c 69 62 72 61 72   Tcl stub librar
1790: 79 2e 20 20 49 66 20 79 6f 75 0a 23 20 63 61 6e  y.  If you.# can
17a0: 27 74 20 66 6f 72 20 73 6f 6d 65 20 72 65 61 73  't for some reas
17b0: 6f 6e 2c 20 72 65 6d 6f 76 65 20 74 68 69 73 20  on, remove this 
17c0: 64 65 66 69 6e 69 74 69 6f 6e 2e 20 20 49 66 20  definition.  If 
17d0: 79 6f 75 20 61 72 65 6e 27 74 20 75 73 69 6e 67  you aren't using
17e0: 0a 23 20 73 74 75 62 73 2c 20 79 6f 75 20 61 6c  .# stubs, you al
17f0: 73 6f 20 6e 65 65 64 20 74 6f 20 6d 6f 64 69 66  so need to modif
1800: 79 20 74 68 65 20 53 48 4c 49 42 5f 4c 44 5f 4c  y the SHLIB_LD_L
1810: 49 42 53 20 73 65 74 74 69 6e 67 20 62 65 6c 6f  IBS setting belo
1820: 77 20 74 6f 0a 23 20 6c 69 6e 6b 20 61 67 61 69  w to.# link agai
1830: 6e 73 74 20 74 68 65 20 6e 6f 6e 2d 73 74 75 62  nst the non-stub
1840: 62 65 64 20 54 63 6c 20 6c 69 62 72 61 72 79 2e  bed Tcl library.
1850: 20 20 41 64 64 20 54 6b 20 74 6f 6f 20 69 66 20    Add Tk too if 
1860: 6e 65 63 65 73 73 61 72 79 2e 0a 23 2d 2d 2d 2d  necessary..#----
1870: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1880: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1890: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
18a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
18b0: 0a 0a 41 43 5f 44 45 46 49 4e 45 28 55 53 45 5f  ..AC_DEFINE(USE_
18c0: 54 43 4c 5f 53 54 55 42 53 2c 20 31 2c 20 5b 55  TCL_STUBS, 1, [U
18d0: 73 65 20 54 63 6c 20 73 74 75 62 73 5d 29 0a 41  se Tcl stubs]).A
18e0: 43 5f 44 45 46 49 4e 45 28 55 53 45 5f 54 4b 5f  C_DEFINE(USE_TK_
18f0: 53 54 55 42 53 2c 20 31 2c 20 5b 55 73 65 20 54  STUBS, 1, [Use T
1900: 6b 20 73 74 75 62 73 5d 29 0a 0a 23 2d 2d 2d 2d  k stubs])..#----
1910: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1920: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1930: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1940: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1950: 0a 23 20 54 68 69 73 20 6d 61 63 72 6f 20 67 65  .# This macro ge
1960: 6e 65 72 61 74 65 73 20 61 20 6c 69 6e 65 20 74  nerates a line t
1970: 6f 20 75 73 65 20 77 68 65 6e 20 62 75 69 6c 64  o use when build
1980: 69 6e 67 20 61 20 6c 69 62 72 61 72 79 2e 20 20  ing a library.  
1990: 49 74 0a 23 20 64 65 70 65 6e 64 73 20 6f 6e 20  It.# depends on 
19a0: 76 61 6c 75 65 73 20 73 65 74 20 62 79 20 74 68  values set by th
19b0: 65 20 54 45 41 5f 45 4e 41 42 4c 45 5f 53 48 41  e TEA_ENABLE_SHA
19c0: 52 45 44 2c 20 54 45 41 5f 45 4e 41 42 4c 45 5f  RED, TEA_ENABLE_
19d0: 53 59 4d 42 4f 4c 53 2c 0a 23 20 61 6e 64 20 54  SYMBOLS,.# and T
19e0: 45 41 5f 4c 4f 41 44 5f 54 43 4c 43 4f 4e 46 49  EA_LOAD_TCLCONFI
19f0: 47 20 6d 61 63 72 6f 73 20 61 62 6f 76 65 2e 0a  G macros above..
1a00: 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  #---------------
1a10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a40: 2d 2d 2d 2d 2d 0a 0a 54 45 41 5f 4d 41 4b 45 5f  -----..TEA_MAKE_
1a50: 4c 49 42 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  LIB..#----------
1a60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 44 65 74  ----------.# Det
1aa0: 65 72 6d 69 6e 65 20 74 68 65 20 6e 61 6d 65 20  ermine the name 
1ab0: 6f 66 20 74 68 65 20 74 63 6c 73 68 20 61 6e 64  of the tclsh and
1ac0: 2f 6f 72 20 77 69 73 68 20 65 78 65 63 75 74 61  /or wish executa
1ad0: 62 6c 65 73 20 69 6e 20 74 68 65 0a 23 20 54 63  bles in the.# Tc
1ae0: 6c 20 61 6e 64 20 54 6b 20 62 75 69 6c 64 20 64  l and Tk build d
1af0: 69 72 65 63 74 6f 72 69 65 73 20 6f 72 20 74 68  irectories or th
1b00: 65 20 6c 6f 63 61 74 69 6f 6e 20 74 68 65 79 20  e location they 
1b10: 77 65 72 65 20 69 6e 73 74 61 6c 6c 65 64 0a 23  were installed.#
1b20: 20 69 6e 74 6f 2e 20 54 68 65 73 65 20 70 61 74   into. These pat
1b30: 68 73 20 61 72 65 20 75 73 65 64 20 74 6f 20 73  hs are used to s
1b40: 75 70 70 6f 72 74 20 72 75 6e 6e 69 6e 67 20 74  upport running t
1b50: 65 73 74 20 63 61 73 65 73 20 6f 6e 6c 79 2c 0a  est cases only,.
1b60: 23 20 74 68 65 20 4d 61 6b 65 66 69 6c 65 20 73  # the Makefile s
1b70: 68 6f 75 6c 64 20 6e 6f 74 20 62 65 20 6d 61 6b  hould not be mak
1b80: 69 6e 67 20 75 73 65 20 6f 66 20 74 68 65 73 65  ing use of these
1b90: 20 70 61 74 68 73 20 74 6f 20 67 65 6e 65 72 61   paths to genera
1ba0: 74 65 0a 23 20 61 20 70 6b 67 49 6e 64 65 78 2e  te.# a pkgIndex.
1bb0: 74 63 6c 20 66 69 6c 65 20 6f 72 20 61 6e 79 74  tcl file or anyt
1bc0: 68 69 6e 67 20 65 6c 73 65 20 61 74 20 65 78 74  hing else at ext
1bd0: 65 6e 73 69 6f 6e 20 62 75 69 6c 64 20 74 69 6d  ension build tim
1be0: 65 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  e..#------------
1bf0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c20: 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 54 45 41 5f 50 52  --------..TEA_PR
1c30: 4f 47 5f 54 43 4c 53 48 0a 54 45 41 5f 50 52 4f  OG_TCLSH.TEA_PRO
1c40: 47 5f 57 49 53 48 0a 0a 23 2d 2d 2d 2d 2d 2d 2d  G_WISH..#-------
1c50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20  -------------.# 
1c90: 46 69 6e 61 6c 6c 79 2c 20 73 75 62 73 74 69 74  Finally, substit
1ca0: 75 74 65 20 61 6c 6c 20 6f 66 20 74 68 65 20 76  ute all of the v
1cb0: 61 72 69 6f 75 73 20 76 61 6c 75 65 73 20 69 6e  arious values in
1cc0: 74 6f 20 74 68 65 20 4d 61 6b 65 66 69 6c 65 2e  to the Makefile.
1cd0: 0a 23 20 59 6f 75 20 6d 61 79 20 61 6c 74 65 72  .# You may alter
1ce0: 6e 61 74 69 76 65 6c 79 20 68 61 76 65 20 61 20  natively have a 
1cf0: 73 70 65 63 69 61 6c 20 70 6b 67 49 6e 64 65 78  special pkgIndex
1d00: 2e 74 63 6c 2e 69 6e 20 6f 72 20 6f 74 68 65 72  .tcl.in or other
1d10: 20 66 69 6c 65 73 0a 23 20 77 68 69 63 68 20 72   files.# which r
1d20: 65 71 75 69 72 65 20 73 75 62 73 74 69 74 75 74  equire substitut
1d30: 69 6e 67 20 74 68 20 41 43 20 76 61 72 69 61 62  ing th AC variab
1d40: 6c 65 73 20 69 6e 2e 20 20 49 6e 63 6c 75 64 65  les in.  Include
1d50: 20 74 68 65 73 65 20 68 65 72 65 2e 0a 23 2d 2d   these here..#--
1d60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1d70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1d80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1d90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1da0: 2d 2d 0a 0a 41 43 5f 4f 55 54 50 55 54 28 5b 4d  --..AC_OUTPUT([M
1db0: 61 6b 65 66 69 6c 65 20 70 6b 67 49 6e 64 65 78  akefile pkgIndex
1dc0: 2e 74 63 6c 5d 29 0a                             .tcl]).