Hex Artifact Content
Not logged in

Artifact bde59282d67916502306cd078095a5910b701711:


0000: 23 21 20 2f 62 69 6e 2f 62 61 73 68 20 2d 6e 6f  #! /bin/bash -no
0010: 72 63 0a 23 0a 23 20 52 43 53 3a 20 40 28 23 29  rc.#.# RCS: @(#)
0020: 20 24 49 64 3a 20 63 6f 6e 66 69 67 75 72 65 2e   $Id: configure.
0030: 69 6e 2c 76 20 31 2e 31 37 20 32 30 31 31 2f 30  in,v 1.17 2011/0
0040: 34 2f 30 36 20 30 30 3a 34 38 3a 35 34 20 68 6f  4/06 00:48:54 ho
0050: 62 62 73 20 45 78 70 20 24 0a 23 0a 23 2d 2d 2d  bbs Exp $.#.#---
0060: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0070: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0080: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0090: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
00a0: 2d 0a 23 20 53 61 6d 70 6c 65 20 63 6f 6e 66 69  -.# Sample confi
00b0: 67 75 72 65 2e 69 6e 20 66 6f 72 20 54 63 6c 20  gure.in for Tcl 
00c0: 45 78 74 65 6e 73 69 6f 6e 73 2e 20 20 54 68 65  Extensions.  The
00d0: 20 6f 6e 6c 79 20 70 6c 61 63 65 73 20 79 6f 75   only places you
00e0: 20 73 68 6f 75 6c 64 0a 23 20 6e 65 65 64 20 74   should.# need t
00f0: 6f 20 6d 6f 64 69 66 79 20 74 68 69 73 20 66 69  o modify this fi
0100: 6c 65 20 61 72 65 20 6d 61 72 6b 65 64 20 62 79  le are marked by
0110: 20 74 68 65 20 73 74 72 69 6e 67 20 5f 5f 43 48   the string __CH
0120: 41 4e 47 45 5f 5f 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  ANGE__.#--------
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 2d 2d 2d 2d 2d 2d 0a 0a 23 2d  ------------..#-
0170: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0180: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0190: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
01a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
01b0: 2d 2d 2d 2d 2d 2d 0a 23 20 5f 5f 43 48 41 4e 47  ------.# __CHANG
01c0: 45 5f 5f 0a 23 20 53 65 74 20 79 6f 75 72 20 70  E__.# Set your p
01d0: 61 63 6b 61 67 65 20 6e 61 6d 65 20 61 6e 64 20  ackage name and 
01e0: 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 73 20  version numbers 
01f0: 68 65 72 65 2e 0a 23 0a 23 20 54 68 69 73 20 69  here..#.# This i
0200: 6e 69 74 69 61 6c 69 7a 65 73 20 74 68 65 20 65  nitializes the e
0210: 6e 76 69 72 6f 6e 6d 65 6e 74 20 77 69 74 68 20  nvironment with 
0220: 50 41 43 4b 41 47 45 5f 4e 41 4d 45 20 61 6e 64  PACKAGE_NAME and
0230: 20 50 41 43 4b 41 47 45 5f 56 45 52 53 49 4f 4e   PACKAGE_VERSION
0240: 0a 23 20 73 65 74 20 61 73 20 70 72 6f 76 69 64  .# set as provid
0250: 65 64 2e 20 20 54 68 65 73 65 20 77 69 6c 6c 20  ed.  These will 
0260: 61 6c 73 6f 20 62 65 20 61 64 64 65 64 20 61 73  also be added as
0270: 20 2d 44 20 64 65 66 73 20 69 6e 20 79 6f 75 72   -D defs in your
0280: 20 4d 61 6b 65 66 69 6c 65 0a 23 20 73 6f 20 79   Makefile.# so y
0290: 6f 75 20 63 61 6e 20 65 6e 63 6f 64 65 20 74 68  ou can encode th
02a0: 65 20 70 61 63 6b 61 67 65 20 76 65 72 73 69 6f  e package versio
02b0: 6e 20 64 69 72 65 63 74 6c 79 20 69 6e 74 6f 20  n directly into 
02c0: 74 68 65 20 73 6f 75 72 63 65 20 66 69 6c 65 73  the source files
02d0: 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ..#-------------
02e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
02f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0300: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0310: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f 49  ----------..AC_I
0320: 4e 49 54 28 5b 54 6b 74 61 62 6c 65 5d 2c 20 5b  NIT([Tktable], [
0330: 32 2e 31 31 5d 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d  2.11])..#-------
0340: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0350: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0360: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0370: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20  -------------.# 
0380: 43 61 6c 6c 20 54 45 41 5f 49 4e 49 54 20 61 73  Call TEA_INIT as
0390: 20 74 68 65 20 66 69 72 73 74 20 54 45 41 5f 20   the first TEA_ 
03a0: 6d 61 63 72 6f 20 74 6f 20 73 65 74 20 75 70 20  macro to set up 
03b0: 69 6e 69 74 69 61 6c 20 76 61 72 73 2e 0a 23 20  initial vars..# 
03c0: 54 68 69 73 20 77 69 6c 6c 20 64 65 66 69 6e 65  This will define
03d0: 20 61 20 24 7b 54 45 41 5f 50 4c 41 54 46 4f 52   a ${TEA_PLATFOR
03e0: 4d 7d 20 76 61 72 69 61 62 6c 65 20 3d 3d 20 22  M} variable == "
03f0: 75 6e 69 78 22 20 6f 72 20 22 77 69 6e 64 6f 77  unix" or "window
0400: 73 22 0a 23 20 61 73 20 77 65 6c 6c 20 61 73 20  s".# as well as 
0410: 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 20 61 6e 64  PKG_LIB_FILE and
0420: 20 50 4b 47 5f 53 54 55 42 5f 4c 49 42 5f 46 49   PKG_STUB_LIB_FI
0430: 4c 45 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  LE..#-----------
0440: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0450: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0460: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0470: 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 54 45 41 5f 49  ---------..TEA_I
0480: 4e 49 54 28 5b 33 2e 39 5d 29 0a 0a 41 43 5f 43  NIT([3.9])..AC_C
0490: 4f 4e 46 49 47 5f 41 55 58 5f 44 49 52 28 74 63  ONFIG_AUX_DIR(tc
04a0: 6c 63 6f 6e 66 69 67 29 0a 0a 23 2d 2d 2d 2d 2d  lconfig)..#-----
04b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
04c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
04d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
04e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a  ---------------.
04f0: 23 20 4c 6f 61 64 20 74 68 65 20 74 63 6c 43 6f  # Load the tclCo
0500: 6e 66 69 67 2e 73 68 20 66 69 6c 65 0a 23 2d 2d  nfig.sh file.#--
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 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0540: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0550: 2d 2d 0a 0a 54 45 41 5f 50 41 54 48 5f 54 43 4c  --..TEA_PATH_TCL
0560: 43 4f 4e 46 49 47 0a 54 45 41 5f 4c 4f 41 44 5f  CONFIG.TEA_LOAD_
0570: 54 43 4c 43 4f 4e 46 49 47 0a 0a 23 2d 2d 2d 2d  TCLCONFIG..#----
0580: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0590: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
05a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
05b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
05c0: 0a 23 20 4c 6f 61 64 20 74 68 65 20 74 6b 43 6f  .# Load the tkCo
05d0: 6e 66 69 67 2e 73 68 20 66 69 6c 65 20 69 66 20  nfig.sh file if 
05e0: 6e 65 63 65 73 73 61 72 79 20 28 54 6b 20 65 78  necessary (Tk ex
05f0: 74 65 6e 73 69 6f 6e 29 0a 23 2d 2d 2d 2d 2d 2d  tension).#------
0600: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0610: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0620: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0630: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a  --------------..
0640: 54 45 41 5f 50 41 54 48 5f 54 4b 43 4f 4e 46 49  TEA_PATH_TKCONFI
0650: 47 0a 54 45 41 5f 4c 4f 41 44 5f 54 4b 43 4f 4e  G.TEA_LOAD_TKCON
0660: 46 49 47 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  FIG..#----------
0670: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0680: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0690: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
06a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20  -------------.# 
06b0: 48 61 6e 64 6c 65 20 74 68 65 20 2d 2d 70 72 65  Handle the --pre
06c0: 66 69 78 3d 2e 2e 2e 20 6f 70 74 69 6f 6e 20 62  fix=... option b
06d0: 79 20 64 65 66 61 75 6c 74 69 6e 67 20 74 6f 20  y defaulting to 
06e0: 77 68 61 74 20 54 63 6c 20 67 61 76 65 2e 0a 23  what Tcl gave..#
06f0: 20 4d 75 73 74 20 62 65 20 63 61 6c 6c 65 64 20   Must be called 
0700: 61 66 74 65 72 20 54 45 41 5f 4c 4f 41 44 5f 54  after TEA_LOAD_T
0710: 43 4c 43 4f 4e 46 49 47 20 61 6e 64 20 62 65 66  CLCONFIG and bef
0720: 6f 72 65 20 54 45 41 5f 53 45 54 55 50 5f 43 4f  ore TEA_SETUP_CO
0730: 4d 50 49 4c 45 52 2e 0a 23 2d 2d 2d 2d 2d 2d 2d  MPILER..#-------
0740: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0750: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0760: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0770: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0780: 0a 0a 54 45 41 5f 50 52 45 46 49 58 0a 0a 23 2d  ..TEA_PREFIX..#-
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 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07d0: 2d 2d 2d 2d 2d 2d 0a 23 20 53 74 61 6e 64 61 72  ------.# Standar
07e0: 64 20 63 6f 6d 70 69 6c 65 72 20 63 68 65 63 6b  d compiler check
07f0: 73 2e 0a 23 20 54 68 69 73 20 73 65 74 73 20 75  s..# This sets u
0800: 70 20 43 43 20 62 79 20 75 73 69 6e 67 20 74 68  p CC by using th
0810: 65 20 43 43 20 65 6e 76 20 76 61 72 2c 20 6f 72  e CC env var, or
0820: 20 6c 6f 6f 6b 73 20 66 6f 72 20 67 63 63 20 6f   looks for gcc o
0830: 74 68 65 72 77 69 73 65 2e 0a 23 20 54 68 69 73  therwise..# This
0840: 20 61 6c 73 6f 20 63 61 6c 6c 73 20 41 43 5f 50   also calls AC_P
0850: 52 4f 47 5f 43 43 2c 20 41 43 5f 50 52 4f 47 5f  ROG_CC, AC_PROG_
0860: 49 4e 53 54 41 4c 4c 20 61 6e 64 20 61 20 66 65  INSTALL and a fe
0870: 77 20 6f 74 68 65 72 73 20 74 6f 20 63 72 65 61  w others to crea
0880: 74 65 0a 23 20 74 68 65 20 62 61 73 69 63 20 73  te.# the basic s
0890: 65 74 75 70 20 6e 65 63 65 73 73 61 72 79 20 74  etup necessary t
08a0: 6f 20 63 6f 6d 70 69 6c 65 20 65 78 65 63 75 74  o compile execut
08b0: 61 62 6c 65 73 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  ables..#--------
08c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
08d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
08e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
08f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a  ---------------.
0900: 0a 54 45 41 5f 53 45 54 55 50 5f 43 4f 4d 50 49  .TEA_SETUP_COMPI
0910: 4c 45 52 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  LER..#----------
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 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0950: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20  -------------.# 
0960: 5f 5f 43 48 41 4e 47 45 5f 5f 0a 23 20 53 70 65  __CHANGE__.# Spe
0970: 63 69 66 79 20 74 68 65 20 43 20 73 6f 75 72 63  cify the C sourc
0980: 65 20 66 69 6c 65 73 20 74 6f 20 63 6f 6d 70 69  e files to compi
0990: 6c 65 20 69 6e 20 54 45 41 5f 41 44 44 5f 53 4f  le in TEA_ADD_SO
09a0: 55 52 43 45 53 2c 0a 23 20 70 75 62 6c 69 63 20  URCES,.# public 
09b0: 68 65 61 64 65 72 73 20 74 68 61 74 20 6e 65 65  headers that nee
09c0: 64 20 74 6f 20 62 65 20 69 6e 73 74 61 6c 6c 65  d to be installe
09d0: 64 20 69 6e 20 54 45 41 5f 41 44 44 5f 48 45 41  d in TEA_ADD_HEA
09e0: 44 45 52 53 2c 0a 23 20 73 74 75 62 20 6c 69 62  DERS,.# stub lib
09f0: 72 61 72 79 20 43 20 73 6f 75 72 63 65 20 66 69  rary C source fi
0a00: 6c 65 73 20 74 6f 20 63 6f 6d 70 69 6c 65 20 69  les to compile i
0a10: 6e 20 54 45 41 5f 41 44 44 5f 53 54 55 42 5f 53  n TEA_ADD_STUB_S
0a20: 4f 55 52 43 45 53 2c 0a 23 20 61 6e 64 20 72 75  OURCES,.# and ru
0a30: 6e 74 69 6d 65 20 54 63 6c 20 6c 69 62 72 61 72  ntime Tcl librar
0a40: 79 20 66 69 6c 65 73 20 69 6e 20 54 45 41 5f 41  y files in TEA_A
0a50: 44 44 5f 54 43 4c 5f 53 4f 55 52 43 45 53 2e 0a  DD_TCL_SOURCES..
0a60: 23 20 54 68 69 73 20 64 65 66 69 6e 65 73 20 50  # This defines P
0a70: 4b 47 28 5f 53 54 55 42 29 5f 53 4f 55 52 43 45  KG(_STUB)_SOURCE
0a80: 53 2c 20 50 4b 47 28 5f 53 54 55 42 29 5f 4f 42  S, PKG(_STUB)_OB
0a90: 4a 45 43 54 53 2c 20 50 4b 47 5f 48 45 41 44 45  JECTS, PKG_HEADE
0aa0: 52 53 0a 23 20 61 6e 64 20 50 4b 47 5f 54 43 4c  RS.# and PKG_TCL
0ab0: 5f 53 4f 55 52 43 45 53 2e 0a 23 2d 2d 2d 2d 2d  _SOURCES..#-----
0ac0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ad0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ae0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0af0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b00: 2d 2d 0a 0a 54 45 41 5f 41 44 44 5f 53 4f 55 52  --..TEA_ADD_SOUR
0b10: 43 45 53 28 5b 74 6b 54 61 62 6c 65 2e 63 20 74  CES([tkTable.c t
0b20: 6b 54 61 62 6c 65 57 69 6e 2e 63 20 74 6b 54 61  kTableWin.c tkTa
0b30: 62 6c 65 54 61 67 2e 63 20 74 6b 54 61 62 6c 65  bleTag.c tkTable
0b40: 45 64 69 74 2e 63 0a 09 09 20 74 6b 54 61 62 6c  Edit.c... tkTabl
0b50: 65 43 65 6c 6c 2e 63 20 74 6b 54 61 62 6c 65 43  eCell.c tkTableC
0b60: 65 6c 6c 53 6f 72 74 2e 63 20 74 6b 54 61 62 6c  ellSort.c tkTabl
0b70: 65 43 6d 64 73 2e 63 20 74 6b 54 61 62 6c 65 55  eCmds.c tkTableU
0b80: 74 69 6c 2e 63 5d 29 0a 23 20 50 6f 73 74 53 63  til.c]).# PostSc
0b90: 72 69 70 74 20 69 73 20 6f 6e 20 74 68 65 20 64  ript is on the d
0ba0: 72 61 77 69 6e 67 20 62 6f 61 72 64 0a 23 54 45  rawing board.#TE
0bb0: 41 5f 41 44 44 5f 53 4f 55 52 43 45 53 28 5b 74  A_ADD_SOURCES([t
0bc0: 6b 54 61 62 6c 65 50 73 2e 63 5d 29 0a 23 20 54  kTablePs.c]).# T
0bd0: 68 69 73 20 68 65 61 64 65 72 20 69 73 6e 27 74  his header isn't
0be0: 20 72 65 61 6c 6c 79 20 6d 65 61 6e 74 20 66 6f   really meant fo
0bf0: 72 20 64 69 73 74 72 69 62 75 74 69 6f 6e 0a 23  r distribution.#
0c00: 54 45 41 5f 41 44 44 5f 48 45 41 44 45 52 53 28  TEA_ADD_HEADERS(
0c10: 5b 67 65 6e 65 72 69 63 2f 74 6b 54 61 62 6c 65  [generic/tkTable
0c20: 2e 68 5d 29 0a 54 45 41 5f 41 44 44 5f 49 4e 43  .h]).TEA_ADD_INC
0c30: 4c 55 44 45 53 28 5b 2d 49 2e 20 2d 49 5c 22 60  LUDES([-I. -I\"`
0c40: 24 7b 43 59 47 50 41 54 48 7d 20 24 7b 73 72 63  ${CYGPATH} ${src
0c50: 64 69 72 7d 2f 67 65 6e 65 72 69 63 60 5c 22 5d  dir}/generic`\"]
0c60: 29 0a 54 45 41 5f 41 44 44 5f 43 46 4c 41 47 53  ).TEA_ADD_CFLAGS
0c70: 28 5b 5d 29 0a 54 45 41 5f 41 44 44 5f 53 54 55  ([]).TEA_ADD_STU
0c80: 42 5f 53 4f 55 52 43 45 53 28 5b 5d 29 0a 54 45  B_SOURCES([]).TE
0c90: 41 5f 41 44 44 5f 54 43 4c 5f 53 4f 55 52 43 45  A_ADD_TCL_SOURCE
0ca0: 53 28 5b 6c 69 62 72 61 72 79 2f 74 6b 54 61 62  S([library/tkTab
0cb0: 6c 65 2e 74 63 6c 20 6c 69 62 72 61 72 79 2f 74  le.tcl library/t
0cc0: 6b 74 61 62 6c 65 2e 70 79 5d 29 0a 0a 23 2d 2d  ktable.py])..#--
0cd0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ce0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0cf0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0d00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0d10: 2d 2d 0a 23 20 5f 5f 43 48 41 4e 47 45 5f 5f 0a  --.# __CHANGE__.
0d20: 23 20 43 68 6f 6f 73 65 20 77 68 69 63 68 20 68  # Choose which h
0d30: 65 61 64 65 72 73 20 79 6f 75 20 6e 65 65 64 2e  eaders you need.
0d40: 20 20 45 78 74 65 6e 73 69 6f 6e 20 61 75 74 68    Extension auth
0d50: 6f 72 73 20 73 68 6f 75 6c 64 20 74 72 79 20 76  ors should try v
0d60: 65 72 79 0a 23 20 68 61 72 64 20 74 6f 20 6f 6e  ery.# hard to on
0d70: 6c 79 20 72 65 6c 79 20 6f 6e 20 74 68 65 20 54  ly rely on the T
0d80: 63 6c 20 70 75 62 6c 69 63 20 68 65 61 64 65 72  cl public header
0d90: 20 66 69 6c 65 73 2e 20 20 49 6e 74 65 72 6e 61   files.  Interna
0da0: 6c 20 68 65 61 64 65 72 73 0a 23 20 63 6f 6e 74  l headers.# cont
0db0: 61 69 6e 20 70 72 69 76 61 74 65 20 64 61 74 61  ain private data
0dc0: 20 73 74 72 75 63 74 75 72 65 73 20 61 6e 64 20   structures and 
0dd0: 61 72 65 20 73 75 62 6a 65 63 74 20 74 6f 20 63  are subject to c
0de0: 68 61 6e 67 65 20 77 69 74 68 6f 75 74 0a 23 20  hange without.# 
0df0: 6e 6f 74 69 63 65 2e 0a 23 20 54 68 69 73 20 4d  notice..# This M
0e00: 55 53 54 20 62 65 20 63 61 6c 6c 65 64 20 61 66  UST be called af
0e10: 74 65 72 20 54 45 41 5f 50 41 54 48 5f 54 43 4c  ter TEA_PATH_TCL
0e20: 43 4f 4e 46 49 47 2f 54 45 41 5f 4c 4f 41 44 5f  CONFIG/TEA_LOAD_
0e30: 54 43 4c 43 4f 4e 46 49 47 0a 23 2d 2d 2d 2d 2d  TCLCONFIG.#-----
0e40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a  ---------------.
0e80: 0a 23 54 45 41 5f 50 55 42 4c 49 43 5f 54 43 4c  .#TEA_PUBLIC_TCL
0e90: 5f 48 45 41 44 45 52 53 0a 54 45 41 5f 50 52 49  _HEADERS.TEA_PRI
0ea0: 56 41 54 45 5f 54 43 4c 5f 48 45 41 44 45 52 53  VATE_TCL_HEADERS
0eb0: 0a 0a 54 45 41 5f 50 55 42 4c 49 43 5f 54 4b 5f  ..TEA_PUBLIC_TK_
0ec0: 48 45 41 44 45 52 53 0a 23 54 45 41 5f 50 52 49  HEADERS.#TEA_PRI
0ed0: 56 41 54 45 5f 54 4b 5f 48 45 41 44 45 52 53 0a  VATE_TK_HEADERS.
0ee0: 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .#--------------
0ef0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f20: 2d 2d 2d 2d 2d 2d 0a 23 20 46 6f 72 20 55 6e 69  ------.# For Uni
0f30: 78 2f 54 6b 20 62 75 69 6c 64 73 2c 20 6d 61 6b  x/Tk builds, mak
0f40: 65 20 73 75 72 65 20 74 68 61 74 20 74 68 65 20  e sure that the 
0f50: 58 20 6c 69 62 72 61 72 69 65 73 2f 68 65 61 64  X libraries/head
0f60: 65 72 73 20 61 72 65 20 66 6f 75 6e 64 2e 0a 23  ers are found..#
0f70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0fa0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0fb0: 2d 2d 2d 2d 0a 0a 54 45 41 5f 50 41 54 48 5f 58  ----..TEA_PATH_X
0fc0: 0a 0a 41 53 5f 49 46 28 5b 74 65 73 74 20 22 24  ..AS_IF([test "$
0fd0: 47 43 43 22 20 3d 20 79 65 73 5d 2c 20 5b 0a 0a  GCC" = yes], [..
0fe0: 23 20 4e 65 65 64 65 64 20 66 6f 72 20 70 6f 69  # Needed for poi
0ff0: 6e 74 65 72 2d 74 6f 2d 69 6e 74 20 63 6f 6e 76  nter-to-int conv
1000: 65 72 73 69 6f 6e 73 20 77 69 74 68 20 47 43 43  ersions with GCC
1010: 20 6f 6e 20 36 34 2d 62 69 74 0a 41 43 5f 43 48   on 64-bit.AC_CH
1020: 45 43 4b 5f 54 59 50 45 28 5b 69 6e 74 70 74 72  ECK_TYPE([intptr
1030: 5f 74 5d 2c 20 5b 0a 20 20 20 20 41 43 5f 44 45  _t], [.    AC_DE
1040: 46 49 4e 45 28 5b 48 41 56 45 5f 49 4e 54 50 54  FINE([HAVE_INTPT
1050: 52 5f 54 5d 2c 20 31 2c 20 5b 44 6f 20 77 65 20  R_T], 1, [Do we 
1060: 68 61 76 65 20 74 68 65 20 69 6e 74 70 74 72 5f  have the intptr_
1070: 74 20 74 79 70 65 3f 5d 29 5d 2c 20 5b 0a 20 20  t type?])], [.  
1080: 20 20 41 43 5f 43 41 43 48 45 5f 43 48 45 43 4b    AC_CACHE_CHECK
1090: 28 5b 66 6f 72 20 70 6f 69 6e 74 65 72 2d 73 69  ([for pointer-si
10a0: 7a 65 20 73 69 67 6e 65 64 20 69 6e 74 65 67 65  ze signed intege
10b0: 72 20 74 79 70 65 5d 2c 20 74 63 6c 5f 63 76 5f  r type], tcl_cv_
10c0: 69 6e 74 70 74 72 5f 74 2c 20 5b 0a 20 20 20 20  intptr_t, [.    
10d0: 66 6f 72 20 74 63 6c 5f 63 76 5f 69 6e 74 70 74  for tcl_cv_intpt
10e0: 72 5f 74 20 69 6e 20 22 69 6e 74 22 20 22 6c 6f  r_t in "int" "lo
10f0: 6e 67 22 20 22 6c 6f 6e 67 20 6c 6f 6e 67 22 20  ng" "long long" 
1100: 6e 6f 6e 65 3b 20 64 6f 0a 09 69 66 20 74 65 73  none; do..if tes
1110: 74 20 22 24 74 63 6c 5f 63 76 5f 69 6e 74 70 74  t "$tcl_cv_intpt
1120: 72 5f 74 22 20 21 3d 20 6e 6f 6e 65 3b 20 74 68  r_t" != none; th
1130: 65 6e 0a 09 20 20 20 20 41 43 5f 43 4f 4d 50 49  en..    AC_COMPI
1140: 4c 45 5f 49 46 45 4c 53 45 28 5b 41 43 5f 4c 41  LE_IFELSE([AC_LA
1150: 4e 47 5f 42 4f 4f 4c 5f 43 4f 4d 50 49 4c 45 5f  NG_BOOL_COMPILE_
1160: 54 52 59 28 5b 41 43 5f 49 4e 43 4c 55 44 45 53  TRY([AC_INCLUDES
1170: 5f 44 45 46 41 55 4c 54 5d 2c 0a 09 09 20 20 20  _DEFAULT],...   
1180: 20 5b 5b 73 69 7a 65 6f 66 20 28 76 6f 69 64 20   [[sizeof (void 
1190: 2a 29 20 3c 3d 20 73 69 7a 65 6f 66 20 28 24 74  *) <= sizeof ($t
11a0: 63 6c 5f 63 76 5f 69 6e 74 70 74 72 5f 74 29 5d  cl_cv_intptr_t)]
11b0: 5d 29 5d 2c 0a 09 09 5b 74 63 6c 5f 6f 6b 3d 79  ])],...[tcl_ok=y
11c0: 65 73 5d 2c 20 5b 74 63 6c 5f 6f 6b 3d 6e 6f 5d  es], [tcl_ok=no]
11d0: 29 0a 09 20 20 20 20 74 65 73 74 20 22 24 74 63  )..    test "$tc
11e0: 6c 5f 6f 6b 22 20 3d 20 79 65 73 20 26 26 20 62  l_ok" = yes && b
11f0: 72 65 61 6b 3b 20 66 69 0a 20 20 20 20 64 6f 6e  reak; fi.    don
1200: 65 5d 29 0a 20 20 20 20 69 66 20 74 65 73 74 20  e]).    if test 
1210: 22 24 74 63 6c 5f 63 76 5f 69 6e 74 70 74 72 5f  "$tcl_cv_intptr_
1220: 74 22 20 21 3d 20 6e 6f 6e 65 3b 20 74 68 65 6e  t" != none; then
1230: 0a 09 41 43 5f 44 45 46 49 4e 45 5f 55 4e 51 55  ..AC_DEFINE_UNQU
1240: 4f 54 45 44 28 5b 69 6e 74 70 74 72 5f 74 5d 2c  OTED([intptr_t],
1250: 20 5b 24 74 63 6c 5f 63 76 5f 69 6e 74 70 74 72   [$tcl_cv_intptr
1260: 5f 74 5d 2c 20 5b 53 69 67 6e 65 64 20 69 6e 74  _t], [Signed int
1270: 65 67 65 72 0a 09 20 20 20 74 79 70 65 20 77 69  eger..   type wi
1280: 64 65 20 65 6e 6f 75 67 68 20 74 6f 20 68 6f 6c  de enough to hol
1290: 64 20 61 20 70 6f 69 6e 74 65 72 2e 5d 29 0a 20  d a pointer.]). 
12a0: 20 20 20 66 69 0a 5d 29 0a 0a 5d 2c 20 5b 5d 29     fi.])..], [])
12b0: 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ..#-------------
12c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12f0: 2d 2d 2d 2d 2d 2d 2d 0a 23 20 5f 5f 43 48 41 4e  -------.# __CHAN
1300: 47 45 5f 5f 0a 23 20 41 20 66 65 77 20 6d 69 73  GE__.# A few mis
1310: 63 65 6c 6c 61 6e 65 6f 75 73 20 70 6c 61 74 66  cellaneous platf
1320: 6f 72 6d 2d 73 70 65 63 69 66 69 63 20 69 74 65  orm-specific ite
1330: 6d 73 3a 0a 23 0a 23 20 44 65 66 69 6e 65 20 61  ms:.#.# Define a
1340: 20 73 70 65 63 69 61 6c 20 73 79 6d 62 6f 6c 20   special symbol 
1350: 66 6f 72 20 57 69 6e 64 6f 77 73 20 28 42 55 49  for Windows (BUI
1360: 4c 44 5f 54 6b 74 61 62 6c 65 20 69 6e 20 74 68  LD_Tktable in th
1370: 69 73 20 63 61 73 65 29 20 73 6f 0a 23 20 74 68  is case) so.# th
1380: 61 74 20 77 65 20 63 72 65 61 74 65 20 74 68 65  at we create the
1390: 20 65 78 70 6f 72 74 20 6c 69 62 72 61 72 79 20   export library 
13a0: 77 69 74 68 20 74 68 65 20 64 6c 6c 2e 0a 23 0a  with the dll..#.
13b0: 23 20 57 69 6e 64 6f 77 73 20 63 72 65 61 74 65  # Windows create
13c0: 73 20 61 20 66 65 77 20 65 78 74 72 61 20 66 69  s a few extra fi
13d0: 6c 65 73 20 74 68 61 74 20 6e 65 65 64 20 74 6f  les that need to
13e0: 20 62 65 20 63 6c 65 61 6e 65 64 20 75 70 2e 0a   be cleaned up..
13f0: 23 20 59 6f 75 20 63 61 6e 20 61 64 64 20 6d 6f  # You can add mo
1400: 72 65 20 66 69 6c 65 73 20 74 6f 20 63 6c 65 61  re files to clea
1410: 6e 20 69 66 20 79 6f 75 72 20 65 78 74 65 6e 73  n if your extens
1420: 69 6f 6e 20 63 72 65 61 74 65 73 20 61 6e 79 20  ion creates any 
1430: 65 78 74 72 61 0a 23 20 66 69 6c 65 73 2e 0a 23  extra.# files..#
1440: 0a 23 20 54 45 41 5f 41 44 44 20 61 6e 79 20 65  .# TEA_ADD any e
1450: 78 74 72 61 20 63 6f 6d 70 69 6c 65 72 2f 62 75  xtra compiler/bu
1460: 69 6c 64 20 69 6e 66 6f 20 68 65 72 65 2e 0a 23  ild info here..#
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 2d 2d 2d  ----------------
14a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
14b0: 2d 2d 2d 2d 0a 0a 69 66 20 74 65 73 74 20 22 24  ----..if test "$
14c0: 7b 54 45 41 5f 50 4c 41 54 46 4f 52 4d 7d 22 20  {TEA_PLATFORM}" 
14d0: 3d 20 22 77 69 6e 64 6f 77 73 22 20 3b 20 74 68  = "windows" ; th
14e0: 65 6e 0a 20 20 20 20 54 45 41 5f 41 44 44 5f 4c  en.    TEA_ADD_L
14f0: 49 42 53 28 5b 67 64 69 33 32 2e 6c 69 62 20 75  IBS([gdi32.lib u
1500: 73 65 72 33 32 2e 6c 69 62 5d 29 0a 66 69 0a 54  ser32.lib]).fi.T
1510: 45 41 5f 41 44 44 5f 43 4c 45 41 4e 46 49 4c 45  EA_ADD_CLEANFILE
1520: 53 28 5b 70 6b 67 49 6e 64 65 78 2e 74 63 6c 20  S([pkgIndex.tcl 
1530: 74 6b 54 61 62 6c 65 2e 74 63 6c 2e 68 5d 29 0a  tkTable.tcl.h]).
1540: 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .#--------------
1550: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1560: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1570: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1580: 2d 2d 2d 2d 2d 2d 0a 23 20 43 68 65 63 6b 20 77  ------.# Check w
1590: 68 65 74 68 65 72 20 2d 2d 65 6e 61 62 6c 65 2d  hether --enable-
15a0: 74 68 72 65 61 64 73 20 6f 72 20 2d 2d 64 69 73  threads or --dis
15b0: 61 62 6c 65 2d 74 68 72 65 61 64 73 20 77 61 73  able-threads was
15c0: 20 67 69 76 65 6e 2e 0a 23 20 53 6f 20 66 61 72   given..# So far
15d0: 20 6f 6e 6c 79 20 54 63 6c 20 72 65 73 70 6f 6e   only Tcl respon
15e0: 64 73 20 74 6f 20 74 68 69 73 20 6f 6e 65 2e 0a  ds to this one..
15f0: 23 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 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1620: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1630: 2d 2d 2d 2d 2d 0a 0a 54 45 41 5f 45 4e 41 42 4c  -----..TEA_ENABL
1640: 45 5f 54 48 52 45 41 44 53 0a 0a 23 2d 2d 2d 2d  E_THREADS..#----
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 2d 2d 2d 2d  ----------------
1670: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1680: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1690: 0a 23 20 54 68 65 20 73 74 61 74 65 6d 65 6e 74  .# The statement
16a0: 20 62 65 6c 6f 77 20 64 65 66 69 6e 65 73 20 61   below defines a
16b0: 20 63 6f 6c 6c 65 63 74 69 6f 6e 20 6f 66 20 73   collection of s
16c0: 79 6d 62 6f 6c 73 20 72 65 6c 61 74 65 64 20 74  ymbols related t
16d0: 6f 0a 23 20 62 75 69 6c 64 69 6e 67 20 61 73 20  o.# building as 
16e0: 61 20 73 68 61 72 65 64 20 6c 69 62 72 61 72 79  a shared library
16f0: 20 69 6e 73 74 65 61 64 20 6f 66 20 61 20 73 74   instead of a st
1700: 61 74 69 63 20 6c 69 62 72 61 72 79 2e 0a 23 2d  atic library..#-
1710: 2d 2d 2d 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 0a 0a 54 45 41 5f 45 4e 41 42 4c 45 5f  ---..TEA_ENABLE_
1760: 53 48 41 52 45 44 0a 0a 23 2d 2d 2d 2d 2d 2d 2d  SHARED..#-------
1770: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1780: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1790: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
17a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20  -------------.# 
17b0: 54 68 69 73 20 6d 61 63 72 6f 20 66 69 67 75 72  This macro figur
17c0: 65 73 20 6f 75 74 20 77 68 61 74 20 66 6c 61 67  es out what flag
17d0: 73 20 74 6f 20 75 73 65 20 77 69 74 68 20 74 68  s to use with th
17e0: 65 20 63 6f 6d 70 69 6c 65 72 2f 6c 69 6e 6b 65  e compiler/linke
17f0: 72 0a 23 20 77 68 65 6e 20 62 75 69 6c 64 69 6e  r.# when buildin
1800: 67 20 73 68 61 72 65 64 2f 73 74 61 74 69 63 20  g shared/static 
1810: 64 65 62 75 67 2f 6f 70 74 69 6d 69 7a 65 64 20  debug/optimized 
1820: 6f 62 6a 65 63 74 73 2e 20 20 54 68 69 73 20 69  objects.  This i
1830: 6e 66 6f 72 6d 61 74 69 6f 6e 0a 23 20 63 61 6e  nformation.# can
1840: 20 62 65 20 74 61 6b 65 6e 20 66 72 6f 6d 20 74   be taken from t
1850: 68 65 20 74 63 6c 43 6f 6e 66 69 67 2e 73 68 20  he tclConfig.sh 
1860: 66 69 6c 65 2c 20 62 75 74 20 74 68 69 73 20 66  file, but this f
1870: 69 67 75 72 65 73 20 69 74 20 61 6c 6c 20 6f 75  igures it all ou
1880: 74 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  t..#------------
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: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
18c0: 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 54 45 41 5f 43 4f  --------..TEA_CO
18d0: 4e 46 49 47 5f 43 46 4c 41 47 53 0a 0a 23 2d 2d  NFIG_CFLAGS..#--
18e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
18f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1900: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1910: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1920: 2d 2d 0a 23 20 53 65 74 20 74 68 65 20 64 65 66  --.# Set the def
1930: 61 75 6c 74 20 63 6f 6d 70 69 6c 65 72 20 73 77  ault compiler sw
1940: 69 74 63 68 65 73 20 62 61 73 65 64 20 6f 6e 20  itches based on 
1950: 74 68 65 20 2d 2d 65 6e 61 62 6c 65 2d 73 79 6d  the --enable-sym
1960: 62 6f 6c 73 0a 23 20 6f 70 74 69 6f 6e 2e 0a 23  bols.# option..#
1970: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1980: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1990: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
19a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
19b0: 2d 2d 2d 2d 0a 0a 54 45 41 5f 45 4e 41 42 4c 45  ----..TEA_ENABLE
19c0: 5f 53 59 4d 42 4f 4c 53 0a 0a 23 2d 2d 2d 2d 2d  _SYMBOLS..#-----
19d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
19e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
19f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a  ---------------.
1a10: 23 20 45 76 65 72 79 6f 6e 65 20 73 68 6f 75 6c  # Everyone shoul
1a20: 64 20 62 65 20 6c 69 6e 6b 69 6e 67 20 61 67 61  d be linking aga
1a30: 69 6e 73 74 20 74 68 65 20 54 63 6c 20 73 74 75  inst the Tcl stu
1a40: 62 20 6c 69 62 72 61 72 79 2e 20 20 49 66 20 79  b library.  If y
1a50: 6f 75 0a 23 20 63 61 6e 27 74 20 66 6f 72 20 73  ou.# can't for s
1a60: 6f 6d 65 20 72 65 61 73 6f 6e 2c 20 72 65 6d 6f  ome reason, remo
1a70: 76 65 20 74 68 69 73 20 64 65 66 69 6e 69 74 69  ve this definiti
1a80: 6f 6e 2e 20 20 49 66 20 79 6f 75 20 61 72 65 6e  on.  If you aren
1a90: 27 74 20 75 73 69 6e 67 0a 23 20 73 74 75 62 73  't using.# stubs
1aa0: 2c 20 79 6f 75 20 61 6c 73 6f 20 6e 65 65 64 20  , you also need 
1ab0: 74 6f 20 6d 6f 64 69 66 79 20 74 68 65 20 53 48  to modify the SH
1ac0: 4c 49 42 5f 4c 44 5f 4c 49 42 53 20 73 65 74 74  LIB_LD_LIBS sett
1ad0: 69 6e 67 20 62 65 6c 6f 77 20 74 6f 0a 23 20 6c  ing below to.# l
1ae0: 69 6e 6b 20 61 67 61 69 6e 73 74 20 74 68 65 20  ink against the 
1af0: 6e 6f 6e 2d 73 74 75 62 62 65 64 20 54 63 6c 20  non-stubbed Tcl 
1b00: 6c 69 62 72 61 72 79 2e 0a 23 2d 2d 2d 2d 2d 2d  library..#------
1b10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1b20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1b30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1b40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a  --------------..
1b50: 41 43 5f 44 45 46 49 4e 45 28 55 53 45 5f 54 43  AC_DEFINE(USE_TC
1b60: 4c 5f 53 54 55 42 53 29 0a 41 43 5f 44 45 46 49  L_STUBS).AC_DEFI
1b70: 4e 45 28 55 53 45 5f 54 4b 5f 53 54 55 42 53 29  NE(USE_TK_STUBS)
1b80: 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ..#-------------
1b90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ba0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1bb0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1bc0: 2d 2d 2d 2d 2d 2d 2d 0a 23 20 54 68 69 73 20 6d  -------.# This m
1bd0: 61 63 72 6f 20 67 65 6e 65 72 61 74 65 73 20 61  acro generates a
1be0: 20 6c 69 6e 65 20 74 6f 20 75 73 65 20 77 68 65   line to use whe
1bf0: 6e 20 62 75 69 6c 64 69 6e 67 20 61 20 6c 69 62  n building a lib
1c00: 72 61 72 79 2e 20 20 49 74 0a 23 20 64 65 70 65  rary.  It.# depe
1c10: 6e 64 73 20 6f 6e 20 76 61 6c 75 65 73 20 73 65  nds on values se
1c20: 74 20 62 79 20 74 68 65 20 54 45 41 5f 45 4e 41  t by the TEA_ENA
1c30: 42 4c 45 5f 53 48 41 52 45 44 2c 20 54 45 41 5f  BLE_SHARED, TEA_
1c40: 45 4e 41 42 4c 45 5f 53 59 4d 42 4f 4c 53 2c 0a  ENABLE_SYMBOLS,.
1c50: 23 20 61 6e 64 20 54 45 41 5f 4c 4f 41 44 5f 54  # and TEA_LOAD_T
1c60: 43 4c 43 4f 4e 46 49 47 20 6d 61 63 72 6f 73 20  CLCONFIG macros 
1c70: 61 62 6f 76 65 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  above..#--------
1c80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ca0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1cb0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 54 45  ------------..TE
1cc0: 41 5f 4d 41 4b 45 5f 4c 49 42 0a 0a 23 2d 2d 2d  A_MAKE_LIB..#---
1cd0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ce0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1cf0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1d00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1d10: 2d 0a 23 20 46 69 6e 64 20 74 63 6c 73 68 20 73  -.# Find tclsh s
1d20: 6f 20 74 68 61 74 20 77 65 20 63 61 6e 20 72 75  o that we can ru
1d30: 6e 20 70 6b 67 5f 6d 6b 49 6e 64 65 78 20 74 6f  n pkg_mkIndex to
1d40: 20 67 65 6e 65 72 61 74 65 20 74 68 65 20 70 6b   generate the pk
1d50: 67 49 6e 64 65 78 2e 74 63 6c 0a 23 20 66 69 6c  gIndex.tcl.# fil
1d60: 65 20 64 75 72 69 6e 67 20 74 68 65 20 69 6e 73  e during the ins
1d70: 74 61 6c 6c 20 70 72 6f 63 65 73 73 2e 20 20 44  tall process.  D
1d80: 6f 6e 27 74 20 72 75 6e 20 74 68 65 20 54 43 4c  on't run the TCL
1d90: 53 48 5f 50 52 4f 47 20 74 68 72 6f 75 67 68 0a  SH_PROG through.
1da0: 23 20 24 7b 43 59 47 50 41 54 48 7d 20 62 65 63  # ${CYGPATH} bec
1db0: 61 75 73 65 20 69 74 27 73 20 62 65 69 6e 67 20  ause it's being 
1dc0: 75 73 65 64 20 64 69 72 65 63 74 6c 79 20 62 79  used directly by
1dd0: 20 6d 61 6b 65 2e 0a 23 20 52 65 71 75 69 72 65   make..# Require
1de0: 20 74 68 61 74 20 77 65 20 75 73 65 20 61 20 74   that we use a t
1df0: 63 6c 73 68 20 73 68 65 6c 6c 20 76 65 72 73 69  clsh shell versi
1e00: 6f 6e 20 38 2e 32 20 6f 72 20 6c 61 74 65 72 20  on 8.2 or later 
1e10: 73 69 6e 63 65 20 65 61 72 6c 69 65 72 0a 23 20  since earlier.# 
1e20: 76 65 72 73 69 6f 6e 73 20 68 61 76 65 20 62 75  versions have bu
1e30: 67 73 20 69 6e 20 74 68 65 20 70 6b 67 5f 6d 6b  gs in the pkg_mk
1e40: 49 6e 64 65 78 20 72 6f 75 74 69 6e 65 2e 0a 23  Index routine..#
1e50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1e60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1e70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1e80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1e90: 2d 2d 2d 2d 0a 0a 54 45 41 5f 50 52 4f 47 5f 54  ----..TEA_PROG_T
1ea0: 43 4c 53 48 0a 54 45 41 5f 50 52 4f 47 5f 57 49  CLSH.TEA_PROG_WI
1eb0: 53 48 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  SH..#-----------
1ec0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ed0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ee0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ef0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 46 69 6e 61  ---------.# Fina
1f00: 6c 6c 79 2c 20 73 75 62 73 74 69 74 75 74 65 20  lly, substitute 
1f10: 61 6c 6c 20 6f 66 20 74 68 65 20 76 61 72 69 6f  all of the vario
1f20: 75 73 20 76 61 6c 75 65 73 20 69 6e 74 6f 20 74  us values into t
1f30: 68 65 20 4d 61 6b 65 66 69 6c 65 2e 0a 23 2d 2d  he Makefile..#--
1f40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1f50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1f60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1f70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1f80: 2d 2d 0a 0a 63 61 73 65 20 24 7b 54 4b 5f 44 45  --..case ${TK_DE
1f90: 46 53 7d 20 69 6e 0a 20 20 20 20 2a 50 4c 41 54  FS} in.    *PLAT
1fa0: 46 4f 52 4d 5f 53 44 4c 2a 29 0a 09 54 45 41 5f  FORM_SDL*)..TEA_
1fb0: 41 44 44 5f 43 46 4c 41 47 53 28 5b 2d 44 50 4c  ADD_CFLAGS([-DPL
1fc0: 41 54 46 4f 52 4d 5f 53 44 4c 3d 31 5d 29 0a 09  ATFORM_SDL=1])..
1fd0: 54 45 41 5f 41 44 44 5f 49 4e 43 4c 55 44 45 53  TEA_ADD_INCLUDES
1fe0: 28 5b 2d 49 5c 22 60 24 7b 43 59 47 50 41 54 48  ([-I\"`${CYGPATH
1ff0: 7d 20 24 7b 54 4b 5f 53 52 43 5f 44 49 52 7d 2f  } ${TK_SRC_DIR}/
2000: 73 64 6c 60 5c 22 5d 29 0a 09 3b 3b 0a 65 73 61  sdl`\"])..;;.esa
2010: 63 0a 0a 41 43 5f 4f 55 54 50 55 54 28 5b 4d 61  c..AC_OUTPUT([Ma
2020: 6b 65 66 69 6c 65 5d 29 0a                       kefile]).