Hex Artifact Content

Artifact d745a1d41ae46dcf1ac59197cb14a61e370072d2:


0000: 0a 64 6e 6c 20 22 63 6f 6e 66 69 67 75 72 65 2e  .dnl "configure.
0010: 69 6e 22 20 66 6f 72 20 74 68 65 20 22 74 6c 73  in" for the "tls
0020: 22 20 54 63 6c 20 65 78 74 65 6e 73 69 6f 6e 2e  " Tcl extension.
0030: 0a 64 6e 6c 20 0a 64 6e 6c 20 54 68 69 73 20 66  .dnl .dnl This f
0040: 69 6c 65 20 69 73 20 61 6e 20 69 6e 70 75 74 20  ile is an input 
0050: 66 69 6c 65 20 75 73 65 64 20 62 79 20 74 68 65  file used by the
0060: 20 47 4e 55 20 22 61 75 74 6f 63 6f 6e 66 22 20   GNU "autoconf" 
0070: 70 72 6f 67 72 61 6d 20 74 6f 0a 64 6e 6c 20 67  program to.dnl g
0080: 65 6e 65 72 61 74 65 20 74 68 65 20 66 69 6c 65  enerate the file
0090: 20 22 63 6f 6e 66 69 67 75 72 65 22 2c 20 77 68   "configure", wh
00a0: 69 63 68 20 69 73 20 72 75 6e 20 64 75 72 69 6e  ich is run durin
00b0: 67 20 54 63 6c 0a 64 6e 6c 20 69 6e 73 74 61 6c  g Tcl.dnl instal
00c0: 6c 61 74 69 6f 6e 20 74 6f 20 63 6f 6e 66 69 67  lation to config
00d0: 75 72 65 20 74 68 65 20 73 79 73 74 65 6d 20 66  ure the system f
00e0: 6f 72 20 74 68 65 20 6c 6f 63 61 6c 20 65 6e 76  or the local env
00f0: 69 72 6f 6e 6d 65 6e 74 2e 0a 0a 0a 23 2d 2d 2d  ironment....#---
0100: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0110: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
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 0a 23 20 6d 61 63 72 6f 20 75 73 65 64 20 74  -.# macro used t
0150: 6f 20 76 65 72 69 66 79 20 74 68 61 74 20 74 68  o verify that th
0160: 65 20 63 6f 6e 66 69 67 75 72 65 20 73 63 72 69  e configure scri
0170: 70 74 20 63 61 6e 20 66 69 6e 64 20 74 68 65 20  pt can find the 
0180: 73 6f 75 72 63 65 73 0a 23 2d 2d 2d 2d 2d 2d 2d  sources.#-------
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 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
01c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41  -------------..A
01d0: 43 5f 49 4e 49 54 28 74 6c 73 2e 68 29 0a 0a 0a  C_INIT(tls.h)...
01e0: 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  #---------------
01f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0200: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0210: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0220: 2d 2d 2d 2d 2d 0a 23 20 53 65 74 20 70 61 63 6b  -----.# Set pack
0230: 61 67 65 20 6e 61 6d 65 20 61 6e 64 20 76 65 72  age name and ver
0240: 73 69 6f 6e 20 6e 75 6d 62 65 72 73 20 68 65 72  sion numbers her
0250: 65 2e 20 20 54 68 65 20 4e 4f 44 4f 54 5f 56 45  e.  The NODOT_VE
0260: 52 53 49 4f 4e 20 69 73 0a 23 20 72 65 71 75 69  RSION is.# requi
0270: 72 65 64 20 66 6f 72 20 63 6f 6e 73 74 72 75 63  red for construc
0280: 74 69 6e 67 20 74 68 65 20 6c 69 62 72 61 72 79  ting the library
0290: 20 6e 61 6d 65 20 6f 6e 20 73 79 73 74 65 6d 73   name on systems
02a0: 20 74 68 61 74 20 64 6f 6e 27 74 0a 23 20 6c 69   that don't.# li
02b0: 6b 65 20 64 6f 74 73 20 69 6e 20 23 20 6c 69 62  ke dots in # lib
02c0: 72 61 72 79 20 6e 61 6d 65 73 20 28 57 69 6e 64  rary names (Wind
02d0: 6f 77 73 29 2e 20 20 54 68 65 20 56 45 52 53 49  ows).  The VERSI
02e0: 4f 4e 20 76 61 72 69 61 62 6c 65 20 69 73 0a 23  ON variable is.#
02f0: 20 75 73 65 64 20 6f 6e 20 74 68 65 20 6f 74 68   used on the oth
0300: 65 72 20 73 79 73 74 65 6d 73 2e 0a 23 2d 2d 2d  er systems..#---
0310: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0320: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0330: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0340: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0350: 2d 0a 0a 50 41 43 4b 41 47 45 3d 74 6c 73 0a 0a  -..PACKAGE=tls..
0360: 4d 41 4a 4f 52 5f 56 45 52 53 49 4f 4e 3d 31 0a  MAJOR_VERSION=1.
0370: 4d 49 4e 4f 52 5f 56 45 52 53 49 4f 4e 3d 33 0a  MINOR_VERSION=3.
0380: 50 41 54 43 48 4c 45 56 45 4c 3d 0a 0a 56 45 52  PATCHLEVEL=..VER
0390: 53 49 4f 4e 3d 24 7b 4d 41 4a 4f 52 5f 56 45 52  SION=${MAJOR_VER
03a0: 53 49 4f 4e 7d 2e 24 7b 4d 49 4e 4f 52 5f 56 45  SION}.${MINOR_VE
03b0: 52 53 49 4f 4e 7d 24 7b 50 41 54 43 48 4c 45 56  RSION}${PATCHLEV
03c0: 45 4c 7d 0a 4e 4f 44 4f 54 5f 56 45 52 53 49 4f  EL}.NODOT_VERSIO
03d0: 4e 3d 24 7b 4d 41 4a 4f 52 5f 56 45 52 53 49 4f  N=${MAJOR_VERSIO
03e0: 4e 7d 24 7b 4d 49 4e 4f 52 5f 56 45 52 53 49 4f  N}${MINOR_VERSIO
03f0: 4e 7d 0a 0a 41 43 5f 53 55 42 53 54 28 50 41 43  N}..AC_SUBST(PAC
0400: 4b 41 47 45 29 0a 41 43 5f 53 55 42 53 54 28 56  KAGE).AC_SUBST(V
0410: 45 52 53 49 4f 4e 29 0a 0a 0a 23 2d 2d 2d 2d 2d  ERSION)...#-----
0420: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0430: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
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 0a  ---------------.
0460: 23 20 57 65 20 70 75 74 20 74 68 69 73 20 68 65  # We put this he
0470: 72 65 20 73 6f 20 74 68 61 74 20 79 6f 75 20 63  re so that you c
0480: 61 6e 20 63 6f 6d 70 69 6c 65 20 77 69 74 68 20  an compile with 
0490: 2d 44 56 45 52 53 49 4f 4e 3d 22 31 2e 32 22 20  -DVERSION="1.2" 
04a0: 74 6f 0a 23 20 65 6e 63 6f 64 65 20 74 68 65 20  to.# encode the 
04b0: 70 61 63 6b 61 67 65 20 76 65 72 73 69 6f 6e 20  package version 
04c0: 64 69 72 65 63 74 6c 79 20 69 6e 74 6f 20 74 68  directly into th
04d0: 65 20 73 6f 75 72 63 65 20 66 69 6c 65 73 2e 0a  e source files..
04e0: 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  #---------------
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 0a 0a 65 76 61 6c 20 41 43 5f 44  -----..eval AC_D
0530: 45 46 49 4e 45 5f 55 4e 51 55 4f 54 45 44 28 56  EFINE_UNQUOTED(V
0540: 45 52 53 49 4f 4e 2c 20 22 24 7b 56 45 52 53 49  ERSION, "${VERSI
0550: 4f 4e 7d 22 29 0a 65 76 61 6c 20 41 43 5f 44 45  ON}").eval AC_DE
0560: 46 49 4e 45 5f 55 4e 51 55 4f 54 45 44 28 50 41  FINE_UNQUOTED(PA
0570: 43 4b 41 47 45 2c 20 22 24 7b 50 41 43 4b 41 47  CKAGE, "${PACKAG
0580: 45 7d 22 29 0a 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  E}")...#--------
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: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 45  ------------.# E
05d0: 73 74 61 62 6c 69 73 68 20 74 68 65 20 6c 6f 63  stablish the loc
05e0: 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 72 6f 6f  ation of the roo
05f0: 74 20 64 69 72 65 63 74 6f 72 79 20 66 6f 72 20  t directory for 
0600: 4f 70 65 6e 53 53 4c 2e 0a 23 2d 2d 2d 2d 2d 2d  OpenSSL..#------
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 2d 2d  ----------------
0640: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a  --------------..
0650: 53 53 4c 5f 44 49 52 3d 27 2f 75 73 72 2f 6c 6f  SSL_DIR='/usr/lo
0660: 63 61 6c 2f 6f 70 65 6e 73 73 6c 27 0a 0a 41 43  cal/openssl'..AC
0670: 5f 41 52 47 5f 57 49 54 48 28 73 73 6c 2d 64 69  _ARG_WITH(ssl-di
0680: 72 2c 20 5b 20 20 2d 2d 77 69 74 68 2d 73 73 6c  r, [  --with-ssl
0690: 2d 64 69 72 3d 44 49 52 20 20 53 53 4c 20 72 6f  -dir=DIR  SSL ro
06a0: 6f 74 20 64 69 72 65 63 74 6f 72 79 5d 2c 20 53  ot directory], S
06b0: 53 4c 5f 44 49 52 3d 24 77 69 74 68 76 61 6c 29  SL_DIR=$withval)
06c0: 0a 0a 69 66 20 74 65 73 74 20 2d 7a 20 22 24 7b  ..if test -z "${
06d0: 53 53 4c 5f 44 49 52 7d 22 3b 20 74 68 65 6e 0a  SSL_DIR}"; then.
06e0: 20 20 20 20 41 43 5f 45 52 52 4f 52 28 6d 75 73      AC_ERROR(mus
06f0: 74 20 73 70 65 63 69 66 79 20 53 53 4c 20 64 69  t specify SSL di
0700: 72 65 63 74 6f 72 79 29 0a 66 69 0a 69 66 20 74  rectory).fi.if t
0710: 65 73 74 20 21 20 2d 66 20 22 24 7b 53 53 4c 5f  est ! -f "${SSL_
0720: 44 49 52 7d 2f 69 6e 63 6c 75 64 65 2f 6f 70 65  DIR}/include/ope
0730: 6e 73 73 6c 2f 6f 70 65 6e 73 73 6c 76 2e 68 22  nssl/opensslv.h"
0740: 3b 20 74 68 65 6e 0a 20 20 20 20 41 43 5f 45 52  ; then.    AC_ER
0750: 52 4f 52 28 62 61 64 20 73 73 6c 2d 64 69 72 3a  ROR(bad ssl-dir:
0760: 20 63 61 6e 74 20 66 69 6e 64 20 6f 70 65 6e 73   cant find opens
0770: 73 6c 76 2e 68 20 75 6e 64 65 72 20 24 7b 53 53  slv.h under ${SS
0780: 4c 5f 44 49 52 7d 29 0a 66 69 0a 0a 53 53 4c 5f  L_DIR}).fi..SSL_
0790: 4c 49 42 5f 44 49 52 3d 24 7b 53 53 4c 5f 44 49  LIB_DIR=${SSL_DI
07a0: 52 7d 2f 6c 69 62 0a 53 53 4c 5f 49 4e 43 4c 55  R}/lib.SSL_INCLU
07b0: 44 45 5f 44 49 52 3d 24 7b 53 53 4c 5f 44 49 52  DE_DIR=${SSL_DIR
07c0: 7d 2f 69 6e 63 6c 75 64 65 0a 0a 41 43 5f 53 55  }/include..AC_SU
07d0: 42 53 54 28 53 53 4c 5f 44 49 52 29 0a 41 43 5f  BST(SSL_DIR).AC_
07e0: 53 55 42 53 54 28 53 53 4c 5f 4c 49 42 5f 44 49  SUBST(SSL_LIB_DI
07f0: 52 29 0a 41 43 5f 53 55 42 53 54 28 53 53 4c 5f  R).AC_SUBST(SSL_
0800: 49 4e 43 4c 55 44 45 5f 44 49 52 29 0a 0a 0a 23  INCLUDE_DIR)...#
0810: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0820: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0830: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0840: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0850: 2d 2d 2d 2d 0a 23 20 43 68 65 63 6b 20 77 68 65  ----.# Check whe
0860: 74 68 65 72 20 2d 2d 65 6e 61 62 6c 65 2d 67 63  ther --enable-gc
0870: 63 20 6f 72 20 2d 2d 64 69 73 61 62 6c 65 2d 67  c or --disable-g
0880: 63 63 20 77 61 73 20 67 69 76 65 6e 2e 20 20 44  cc was given.  D
0890: 6f 20 74 68 69 73 20 0a 23 20 62 65 66 6f 72 65  o this .# before
08a0: 20 41 43 5f 43 59 47 57 49 4e 20 69 73 20 63 61   AC_CYGWIN is ca
08b0: 6c 6c 65 64 20 73 6f 20 74 68 65 20 63 6f 6d 70  lled so the comp
08c0: 69 6c 65 72 20 63 61 6e 20 62 65 20 66 75 6c 6c  iler can be full
08d0: 79 20 74 65 73 74 65 64 20 62 79 0a 23 20 62 75  y tested by.# bu
08e0: 69 6c 74 2d 69 6e 20 61 75 74 6f 63 6f 6e 66 20  ilt-in autoconf 
08f0: 74 6f 6f 6c 73 2e 20 20 54 68 69 73 20 6d 61 63  tools.  This mac
0900: 72 6f 20 61 6c 73 6f 20 63 61 6c 6c 73 20 41 43  ro also calls AC
0910: 5f 50 52 4f 47 5f 43 43 20 74 6f 20 73 65 74 0a  _PROG_CC to set.
0920: 23 20 74 68 65 20 63 6f 6d 70 69 6c 65 72 20 69  # the compiler i
0930: 66 20 2d 2d 65 6e 61 62 6c 65 2d 67 63 63 20 77  f --enable-gcc w
0940: 61 73 20 6e 6f 74 20 75 73 65 64 2e 0a 23 2d 2d  as not used..#--
0950: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
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 0a 0a 53 43 5f 45 4e 41 42 4c 45 5f 47 43  --..SC_ENABLE_GC
09a0: 43 0a 41 43 5f 50 52 4f 47 5f 49 4e 53 54 41 4c  C.AC_PROG_INSTAL
09b0: 4c 0a 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  L...#-----------
09c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 43 68 65 63  ---------.# Chec
0a00: 6b 73 20 74 6f 20 73 65 65 20 69 66 20 74 68 65  ks to see if the
0a10: 20 6d 61 6b 65 20 70 72 6f 67 72 61 6d 20 73 65   make program se
0a20: 74 73 20 74 68 65 20 24 4d 41 4b 45 20 76 61 72  ts the $MAKE var
0a30: 69 61 62 6c 65 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  iable..#--------
0a40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0a50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0a60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0a70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43  ------------..AC
0a80: 5f 50 52 4f 47 5f 4d 41 4b 45 5f 53 45 54 0a 0a  _PROG_MAKE_SET..
0a90: 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  #---------------
0aa0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ab0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ac0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ad0: 2d 2d 2d 2d 2d 0a 23 20 46 69 6e 64 20 72 61 6e  -----.# Find ran
0ae0: 6c 69 62 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  lib.#-----------
0af0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
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 0a 0a 41 43 5f 50 52  ---------..AC_PR
0b30: 4f 47 5f 52 41 4e 4c 49 42 0a 0a 23 2d 2d 2d 2d  OG_RANLIB..#----
0b40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b80: 0a 23 20 54 68 69 73 20 6d 61 63 72 6f 20 70 65  .# This macro pe
0b90: 72 66 6f 72 6d 73 20 61 64 64 69 74 69 6f 6e 61  rforms additiona
0ba0: 6c 20 63 6f 6d 70 69 6c 65 72 20 74 65 73 74 73  l compiler tests
0bb0: 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ..#-------------
0bc0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0bd0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0be0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0bf0: 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f 43 59 47 57  -------..AC_CYGW
0c00: 49 4e 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  IN..#-----------
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: 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 44 65 74 65  ---------.# Dete
0c50: 72 6d 69 6e 65 73 20 74 68 65 20 63 6f 72 72 65  rmines the corre
0c60: 63 74 20 62 69 6e 61 72 79 20 66 69 6c 65 20 65  ct binary file e
0c70: 78 74 65 6e 73 69 6f 6e 20 28 2e 6f 2c 20 2e 6f  xtension (.o, .o
0c80: 62 6a 2c 20 2e 65 78 65 20 65 74 63 2e 29 0a 23  bj, .exe etc.).#
0c90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ca0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0cb0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0cc0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0cd0: 2d 2d 2d 2d 0a 0a 41 43 5f 4f 42 4a 45 58 54 0a  ----..AC_OBJEXT.
0ce0: 41 43 5f 45 58 45 45 58 54 0a 0a 23 2d 2d 2d 2d  AC_EXEEXT..#----
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 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0d20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0d30: 0a 23 20 22 63 79 67 70 61 74 68 22 20 69 73 20  .# "cygpath" is 
0d40: 75 73 65 64 20 6f 6e 20 77 69 6e 64 6f 77 73 20  used on windows 
0d50: 74 6f 20 67 65 6e 65 72 61 74 65 20 6e 61 74 69  to generate nati
0d60: 76 65 20 70 61 74 68 20 6e 61 6d 65 73 20 66 6f  ve path names fo
0d70: 72 0a 23 20 69 6e 63 6c 75 64 65 20 66 69 6c 65  r.# include file
0d80: 73 2e 20 20 54 68 65 73 65 20 76 61 72 69 61 62  s.  These variab
0d90: 6c 65 73 20 73 68 6f 75 6c 64 20 6f 6e 6c 79 20  les should only 
0da0: 62 65 20 75 73 65 64 20 77 69 74 68 20 74 68 65  be used with the
0db0: 0a 23 20 63 6f 6d 70 69 6c 65 72 20 61 6e 64 20  .# compiler and 
0dc0: 6c 69 6e 6b 65 72 20 73 69 6e 63 65 20 23 20 74  linker since # t
0dd0: 68 65 79 20 67 65 6e 65 72 61 74 65 20 6e 61 74  hey generate nat
0de0: 69 76 65 20 70 61 74 68 20 6e 61 6d 65 73 2e 0a  ive path names..
0df0: 23 0a 23 20 55 6e 69 78 20 74 63 6c 43 6f 6e 66  #.# Unix tclConf
0e00: 69 67 2e 73 68 20 70 6f 69 6e 74 73 20 53 52 43  ig.sh points SRC
0e10: 5f 44 49 52 20 61 74 20 74 68 65 20 74 6f 70 2d  _DIR at the top-
0e20: 6c 65 76 65 6c 20 64 69 72 65 63 74 6f 72 79 20  level directory 
0e30: 6f 66 0a 23 20 74 68 65 20 54 63 6c 20 73 6f 75  of.# the Tcl sou
0e40: 72 63 65 73 2c 20 77 68 69 6c 65 20 74 68 65 20  rces, while the 
0e50: 57 69 6e 64 6f 77 73 20 74 63 6c 43 6f 6e 66 69  Windows tclConfi
0e60: 67 2e 73 68 20 70 6f 69 6e 74 73 20 53 52 43 5f  g.sh points SRC_
0e70: 44 49 52 20 61 74 0a 23 20 74 68 65 20 77 69 6e  DIR at.# the win
0e80: 20 73 75 62 64 69 72 65 63 74 6f 72 79 2e 20 20   subdirectory.  
0e90: 48 65 6e 63 65 20 74 68 65 20 64 69 66 66 65 72  Hence the differ
0ea0: 65 6e 74 20 75 73 61 67 65 73 20 6f 66 20 53 52  ent usages of SR
0eb0: 43 5f 44 49 52 20 62 65 6c 6f 77 2e 0a 23 0a 23  C_DIR below..#.#
0ec0: 20 54 68 69 73 20 6d 75 73 74 20 62 65 20 64 6f   This must be do
0ed0: 6e 65 20 62 65 66 6f 72 65 20 63 61 6c 6c 69 6e  ne before callin
0ee0: 67 20 53 43 5f 50 55 42 4c 49 43 5f 54 43 4c 5f  g SC_PUBLIC_TCL_
0ef0: 48 45 41 44 45 52 53 20 6f 72 0a 23 20 53 43 5f  HEADERS or.# SC_
0f00: 50 52 49 56 41 54 45 5f 54 43 4c 5f 48 45 41 44  PRIVATE_TCL_HEAD
0f10: 45 52 53 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ERS..#----------
0f20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 63 61 73 65  ----------..case
0f60: 20 22 60 75 6e 61 6d 65 20 2d 73 60 22 20 69 6e   "`uname -s`" in
0f70: 0a 20 20 20 20 2a 77 69 6e 33 32 2a 20 7c 20 2a  .    *win32* | *
0f80: 57 49 4e 33 32 2a 20 7c 20 2a 43 59 47 57 49 4e  WIN32* | *CYGWIN
0f90: 5f 4e 54 2a 7c 2a 43 59 47 57 49 4e 5f 39 38 2a  _NT*|*CYGWIN_98*
0fa0: 7c 2a 43 59 47 57 49 4e 5f 39 35 2a 29 0a 09 43  |*CYGWIN_95*)..C
0fb0: 59 47 50 41 54 48 3d 22 63 79 67 70 61 74 68 20  YGPATH="cygpath 
0fc0: 2d 77 22 0a 09 52 45 4c 50 41 54 48 3d 22 2e 2e  -w"..RELPATH="..
0fd0: 20 2e 2e 20 62 69 6e 22 0a 20 20 20 20 3b 3b 0a   .. bin".    ;;.
0fe0: 20 20 20 20 2a 29 0a 09 43 59 47 50 41 54 48 3d      *)..CYGPATH=
0ff0: 65 63 68 6f 0a 09 52 45 4c 50 41 54 48 3d 22 2e  echo..RELPATH=".
1000: 2e 22 0a 20 20 20 20 3b 3b 0a 65 73 61 63 0a 0a  .".    ;;.esac..
1010: 41 43 5f 53 55 42 53 54 28 43 59 47 50 41 54 48  AC_SUBST(CYGPATH
1020: 29 0a 41 43 5f 53 55 42 53 54 28 52 45 4c 50 41  ).AC_SUBST(RELPA
1030: 54 48 29 0a 0a 53 53 4c 5f 49 4e 43 4c 55 44 45  TH)..SSL_INCLUDE
1040: 5f 44 49 52 5f 4e 41 54 49 56 45 3d 5c 22 60 24  _DIR_NATIVE=\"`$
1050: 7b 43 59 47 50 41 54 48 7d 20 24 7b 53 53 4c 5f  {CYGPATH} ${SSL_
1060: 49 4e 43 4c 55 44 45 5f 44 49 52 7d 60 5c 22 0a  INCLUDE_DIR}`\".
1070: 41 43 5f 53 55 42 53 54 28 53 53 4c 5f 49 4e 43  AC_SUBST(SSL_INC
1080: 4c 55 44 45 5f 44 49 52 5f 4e 41 54 49 56 45 29  LUDE_DIR_NATIVE)
1090: 0a 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ...#------------
10a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
10b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
10c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
10d0: 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 4c 6f 61 64 20  --------.# Load 
10e0: 74 68 65 20 74 63 6c 43 6f 6e 66 69 67 2e 73 68  the tclConfig.sh
10f0: 20 66 69 6c 65 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d   file.#---------
1100: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1110: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1120: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1130: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 53 43 5f  -----------..SC_
1140: 50 41 54 48 5f 54 43 4c 43 4f 4e 46 49 47 0a 53  PATH_TCLCONFIG.S
1150: 43 5f 4c 4f 41 44 5f 54 43 4c 43 4f 4e 46 49 47  C_LOAD_TCLCONFIG
1160: 0a 0a 53 43 5f 50 52 49 56 41 54 45 5f 54 43 4c  ..SC_PRIVATE_TCL
1170: 5f 48 45 41 44 45 52 53 0a 0a 23 2d 2d 2d 2d 2d  _HEADERS..#-----
1180: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1190: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
11a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
11b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a  ---------------.
11c0: 23 20 41 20 66 65 77 20 6d 69 73 63 65 6c 6c 61  # A few miscella
11d0: 6e 65 6f 75 73 20 70 6c 61 74 66 6f 72 6d 2d 73  neous platform-s
11e0: 70 65 63 69 66 69 63 20 69 74 65 6d 73 3a 0a 23  pecific items:.#
11f0: 0a 23 20 44 65 66 69 6e 65 20 61 20 73 70 65 63  .# Define a spec
1200: 69 61 6c 20 73 79 6d 62 6f 6c 20 66 6f 72 20 57  ial symbol for W
1210: 69 6e 64 6f 77 73 20 28 42 55 49 4c 44 5f 74 6c  indows (BUILD_tl
1220: 73 20 69 6e 20 74 68 69 73 20 63 61 73 65 29 20  s in this case) 
1230: 73 6f 0a 23 20 74 68 61 74 20 77 65 20 63 72 65  so.# that we cre
1240: 61 74 65 20 74 68 65 20 65 78 70 6f 72 74 20 6c  ate the export l
1250: 69 62 72 61 72 79 20 77 69 74 68 20 74 68 65 20  ibrary with the 
1260: 64 6c 6c 2e 0a 23 0a 23 20 43 6c 65 61 6e 20 75  dll..#.# Clean u
1270: 70 20 61 6e 79 20 65 78 74 72 61 20 66 69 6c 65  p any extra file
1280: 73 20 74 68 61 74 20 57 69 6e 64 6f 77 73 20 63  s that Windows c
1290: 72 65 61 74 65 73 2e 0a 23 0a 23 20 44 65 66 69  reates..#.# Defi
12a0: 6e 65 20 61 6e 79 20 65 78 74 72 61 20 63 6f 6d  ne any extra com
12b0: 70 69 6c 65 72 20 66 6c 61 67 73 20 69 6e 20 74  piler flags in t
12c0: 68 65 20 50 41 43 4b 41 47 45 5f 43 46 4c 41 47  he PACKAGE_CFLAG
12d0: 53 20 76 61 72 69 61 62 6c 65 2e 0a 23 20 54 68  S variable..# Th
12e0: 65 73 65 20 77 69 6c 6c 20 62 65 20 61 70 70 65  ese will be appe
12f0: 6e 64 65 64 20 74 6f 20 74 68 65 20 63 75 72 72  nded to the curr
1300: 65 6e 74 20 73 65 74 20 6f 66 20 63 6f 6d 70 69  ent set of compi
1310: 6c 65 72 20 66 6c 61 67 73 20 66 6f 72 0a 23 20  ler flags for.# 
1320: 79 6f 75 72 20 73 79 73 74 65 6d 2e 0a 23 2d 2d  your system..#--
1330: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
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 0a 0a 63 61 73 65 20 22 60 75 6e 61 6d 65  --..case "`uname
1380: 20 2d 73 60 22 20 69 6e 0a 20 20 20 20 2a 77 69   -s`" in.    *wi
1390: 6e 33 32 2a 20 7c 20 2a 57 49 4e 33 32 2a 20 7c  n32* | *WIN32* |
13a0: 20 2a 43 59 47 57 49 4e 5f 4e 54 2a 7c 2a 43 59   *CYGWIN_NT*|*CY
13b0: 47 57 49 4e 5f 39 38 2a 7c 2a 43 59 47 57 49 4e  GWIN_98*|*CYGWIN
13c0: 5f 39 35 2a 29 0a 09 41 43 5f 44 45 46 49 4e 45  _95*)..AC_DEFINE
13d0: 5f 55 4e 51 55 4f 54 45 44 28 42 55 49 4c 44 5f  _UNQUOTED(BUILD_
13e0: 24 7b 50 41 43 4b 41 47 45 7d 29 0a 09 43 4c 45  ${PACKAGE})..CLE
13f0: 41 4e 46 49 4c 45 53 3d 22 2a 2e 6c 69 62 20 2a  ANFILES="*.lib *
1400: 2e 64 6c 6c 20 2a 2e 65 78 70 20 2a 2e 69 6c 6b  .dll *.exp *.ilk
1410: 20 2a 2e 70 64 62 20 76 63 35 30 2e 70 63 68 22   *.pdb vc50.pch"
1420: 0a 09 41 43 5f 53 55 42 53 54 28 43 4c 45 41 4e  ..AC_SUBST(CLEAN
1430: 46 49 4c 45 53 29 0a 20 20 20 20 3b 3b 0a 20 20  FILES).    ;;.  
1440: 20 20 2a 29 0a 09 43 4c 45 41 4e 46 49 4c 45 53    *)..CLEANFILES
1450: 3d 0a 20 20 20 20 3b 3b 0a 65 73 61 63 0a 0a 23  =.    ;;.esac..#
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 2d 2d 2d  ----------------
14a0: 2d 2d 2d 2d 0a 23 20 43 68 65 63 6b 20 77 68 65  ----.# Check whe
14b0: 74 68 65 72 20 2d 2d 65 6e 61 62 6c 65 2d 74 68  ther --enable-th
14c0: 72 65 61 64 73 20 6f 72 20 2d 2d 64 69 73 61 62  reads or --disab
14d0: 6c 65 2d 74 68 72 65 61 64 73 20 77 61 73 20 67  le-threads was g
14e0: 69 76 65 6e 2e 0a 23 20 53 6f 20 66 61 72 20 6f  iven..# So far o
14f0: 6e 6c 79 20 54 63 6c 20 72 65 73 70 6f 6e 64 73  nly Tcl responds
1500: 20 74 6f 20 74 68 69 73 20 6f 6e 65 2e 0a 23 2d   to this one..#-
1510: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1520: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1530: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1540: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1550: 2d 2d 2d 0a 0a 53 43 5f 45 4e 41 42 4c 45 5f 54  ---..SC_ENABLE_T
1560: 48 52 45 41 44 53 0a 0a 23 2d 2d 2d 2d 2d 2d 2d  HREADS..#-------
1570: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1580: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1590: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
15a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20  -------------.# 
15b0: 54 68 65 20 73 74 61 74 65 6d 65 6e 74 20 62 65  The statement be
15c0: 6c 6f 77 20 64 65 66 69 6e 65 73 20 61 20 63 6f  low defines a co
15d0: 6c 6c 65 63 74 69 6f 6e 20 6f 66 20 73 79 6d 62  llection of symb
15e0: 6f 6c 73 20 72 65 6c 61 74 65 64 20 74 6f 0a 23  ols related to.#
15f0: 20 62 75 69 6c 64 69 6e 67 20 61 73 20 61 20 73   building as a s
1600: 68 61 72 65 64 20 6c 69 62 72 61 72 79 20 69 6e  hared library in
1610: 73 74 65 61 64 20 6f 66 20 61 20 73 74 61 74 69  stead of a stati
1620: 63 20 6c 69 62 72 61 72 79 2e 0a 23 2d 2d 2d 2d  c library..#----
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 2d 2d 2d 2d  ----------------
1670: 0a 0a 53 43 5f 45 4e 41 42 4c 45 5f 53 48 41 52  ..SC_ENABLE_SHAR
1680: 45 44 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ED..#-----------
1690: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
16a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
16b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
16c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 54 68 69 73  ---------.# This
16d0: 20 6d 61 63 72 6f 20 66 69 67 75 72 65 73 20 6f   macro figures o
16e0: 75 74 20 77 68 61 74 20 66 6c 61 67 73 20 74 6f  ut what flags to
16f0: 20 75 73 65 20 77 69 74 68 20 74 68 65 20 63 6f   use with the co
1700: 6d 70 69 6c 65 72 2f 6c 69 6e 6b 65 72 0a 23 20  mpiler/linker.# 
1710: 77 68 65 6e 20 62 75 69 6c 64 69 6e 67 20 73 68  when building sh
1720: 61 72 65 64 2f 73 74 61 74 69 63 20 64 65 62 75  ared/static debu
1730: 67 2f 6f 70 74 69 6d 69 7a 65 64 20 6f 62 6a 65  g/optimized obje
1740: 63 74 73 2e 20 20 54 68 69 73 20 69 6e 66 6f 72  cts.  This infor
1750: 6d 61 74 69 6f 6e 0a 23 20 69 73 20 61 6c 6c 20  mation.# is all 
1760: 74 61 6b 65 6e 20 66 72 6f 6d 20 74 68 65 20 74  taken from the t
1770: 63 6c 43 6f 6e 66 69 67 2e 73 68 20 66 69 6c 65  clConfig.sh file
1780: 2e 0a 23 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 2d 2d 2d  ----------------
17b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
17c0: 2d 2d 2d 2d 2d 2d 2d 0a 0a 43 46 4c 41 47 53 5f  -------..CFLAGS_
17d0: 44 45 42 55 47 3d 24 7b 54 43 4c 5f 43 46 4c 41  DEBUG=${TCL_CFLA
17e0: 47 53 5f 44 45 42 55 47 7d 0a 43 46 4c 41 47 53  GS_DEBUG}.CFLAGS
17f0: 5f 4f 50 54 49 4d 49 5a 45 3d 24 7b 54 43 4c 5f  _OPTIMIZE=${TCL_
1800: 43 46 4c 41 47 53 5f 4f 50 54 49 4d 49 5a 45 7d  CFLAGS_OPTIMIZE}
1810: 0a 4c 44 46 4c 41 47 53 5f 44 45 42 55 47 3d 24  .LDFLAGS_DEBUG=$
1820: 7b 54 43 4c 5f 4c 44 46 4c 41 47 53 5f 44 45 42  {TCL_LDFLAGS_DEB
1830: 55 47 7d 0a 4c 44 46 4c 41 47 53 5f 4f 50 54 49  UG}.LDFLAGS_OPTI
1840: 4d 49 5a 45 3d 24 7b 54 43 4c 5f 4c 44 46 4c 41  MIZE=${TCL_LDFLA
1850: 47 53 5f 4f 50 54 49 4d 49 5a 45 7d 0a 53 48 4c  GS_OPTIMIZE}.SHL
1860: 49 42 5f 4c 44 3d 24 7b 54 43 4c 5f 53 48 4c 49  IB_LD=${TCL_SHLI
1870: 42 5f 4c 44 7d 0a 53 54 4c 49 42 5f 4c 44 3d 24  B_LD}.STLIB_LD=$
1880: 7b 54 43 4c 5f 53 54 4c 49 42 5f 4c 44 7d 0a 53  {TCL_STLIB_LD}.S
1890: 48 4c 49 42 5f 43 46 4c 41 47 53 3d 24 7b 54 43  HLIB_CFLAGS=${TC
18a0: 4c 5f 53 48 4c 49 42 5f 43 46 4c 41 47 53 7d 0a  L_SHLIB_CFLAGS}.
18b0: 0a 41 43 5f 53 55 42 53 54 28 43 46 4c 41 47 53  .AC_SUBST(CFLAGS
18c0: 5f 44 45 42 55 47 29 0a 41 43 5f 53 55 42 53 54  _DEBUG).AC_SUBST
18d0: 28 43 46 4c 41 47 53 5f 4f 50 54 49 4d 49 5a 45  (CFLAGS_OPTIMIZE
18e0: 29 0a 41 43 5f 53 55 42 53 54 28 53 54 4c 49 42  ).AC_SUBST(STLIB
18f0: 5f 4c 44 29 0a 41 43 5f 53 55 42 53 54 28 53 48  _LD).AC_SUBST(SH
1900: 4c 49 42 5f 4c 44 29 0a 41 43 5f 53 55 42 53 54  LIB_LD).AC_SUBST
1910: 28 53 48 4c 49 42 5f 43 46 4c 41 47 53 29 0a 41  (SHLIB_CFLAGS).A
1920: 43 5f 53 55 42 53 54 28 53 48 4c 49 42 5f 4c 44  C_SUBST(SHLIB_LD
1930: 46 4c 41 47 53 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d  FLAGS)..#-------
1940: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1950: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1960: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1970: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20  -------------.# 
1980: 53 65 74 20 74 68 65 20 64 65 66 61 75 6c 74 20  Set the default 
1990: 63 6f 6d 70 69 6c 65 72 20 73 77 69 74 63 68 65  compiler switche
19a0: 73 20 62 61 73 65 64 20 6f 6e 20 74 68 65 20 2d  s based on the -
19b0: 2d 65 6e 61 62 6c 65 2d 73 79 6d 62 6f 6c 73 20  -enable-symbols 
19c0: 0a 23 20 6f 70 74 69 6f 6e 2e 0a 23 2d 2d 2d 2d  .# option..#----
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 2d  ----------------
1a10: 0a 0a 53 43 5f 45 4e 41 42 4c 45 5f 53 59 4d 42  ..SC_ENABLE_SYMB
1a20: 4f 4c 53 0a 0a 69 66 20 74 65 73 74 20 22 24 7b  OLS..if test "${
1a30: 53 48 41 52 45 44 5f 42 55 49 4c 44 7d 22 20 3d  SHARED_BUILD}" =
1a40: 20 22 31 22 20 3b 20 74 68 65 6e 0a 20 20 20 20   "1" ; then.    
1a50: 43 46 4c 41 47 53 3d 27 24 7b 43 46 4c 41 47 53  CFLAGS='${CFLAGS
1a60: 5f 44 45 46 41 55 4c 54 7d 20 24 7b 43 46 4c 41  _DEFAULT} ${CFLA
1a70: 47 53 5f 57 41 52 4e 49 4e 47 7d 20 24 7b 53 48  GS_WARNING} ${SH
1a80: 4c 49 42 5f 43 46 4c 41 47 53 7d 27 0a 65 6c 73  LIB_CFLAGS}'.els
1a90: 65 0a 20 20 20 20 43 46 4c 41 47 53 3d 27 24 7b  e.    CFLAGS='${
1aa0: 43 46 4c 41 47 53 5f 44 45 46 41 55 4c 54 7d 20  CFLAGS_DEFAULT} 
1ab0: 24 7b 43 46 4c 41 47 53 5f 57 41 52 4e 49 4e 47  ${CFLAGS_WARNING
1ac0: 7d 27 0a 66 69 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  }'.fi..#--------
1ad0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ae0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1af0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1b00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 45  ------------.# E
1b10: 76 65 72 79 6f 6e 65 20 73 68 6f 75 6c 64 20 62  veryone should b
1b20: 65 20 6c 69 6e 6b 69 6e 67 20 61 67 61 69 6e 73  e linking agains
1b30: 74 20 74 68 65 20 54 63 6c 20 73 74 75 62 20 6c  t the Tcl stub l
1b40: 69 62 72 61 72 79 2e 20 20 49 66 20 79 6f 75 0a  ibrary.  If you.
1b50: 23 20 63 61 6e 27 74 20 66 6f 72 20 73 6f 6d 65  # can't for some
1b60: 20 72 65 61 73 6f 6e 2c 20 72 65 6d 6f 76 65 20   reason, remove 
1b70: 74 68 69 73 20 64 65 66 69 6e 69 74 69 6f 6e 2e  this definition.
1b80: 20 20 49 66 20 79 6f 75 20 61 72 65 6e 27 74 20    If you aren't 
1b90: 75 73 69 6e 67 0a 23 20 73 74 75 62 73 2c 20 79  using.# stubs, y
1ba0: 6f 75 20 61 6c 73 6f 20 6e 65 65 64 20 74 6f 20  ou also need to 
1bb0: 6d 6f 64 69 66 79 20 74 68 65 20 53 48 4c 49 42  modify the SHLIB
1bc0: 5f 4c 44 5f 4c 49 42 53 20 73 65 74 74 69 6e 67  _LD_LIBS setting
1bd0: 20 62 65 6c 6f 77 20 74 6f 0a 23 20 6c 69 6e 6b   below to.# link
1be0: 20 61 67 61 69 6e 73 74 20 74 68 65 20 6e 6f 6e   against the non
1bf0: 2d 73 74 75 62 62 65 64 20 54 63 6c 20 6c 69 62  -stubbed Tcl lib
1c00: 72 61 72 79 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d  rary..#---------
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 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f  -----------..AC_
1c50: 44 45 46 49 4e 45 28 55 53 45 5f 54 43 4c 5f 53  DEFINE(USE_TCL_S
1c60: 54 55 42 53 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  TUBS)..#--------
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 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 0a 23 20 54  ------------.# T
1cb0: 68 69 73 20 6d 61 63 72 6f 20 67 65 6e 65 72 61  his macro genera
1cc0: 74 65 73 20 61 20 6c 69 6e 65 20 74 6f 20 75 73  tes a line to us
1cd0: 65 20 77 68 65 6e 20 62 75 69 6c 64 69 6e 67 20  e when building 
1ce0: 61 20 6c 69 62 72 61 72 79 2e 20 20 49 74 0a 23  a library.  It.#
1cf0: 20 64 65 70 65 6e 64 73 20 6f 6e 20 76 61 6c 75   depends on valu
1d00: 65 73 20 73 65 74 20 62 79 20 74 68 65 20 53 43  es set by the SC
1d10: 5f 45 4e 41 42 4c 45 5f 53 48 41 52 45 44 2c 20  _ENABLE_SHARED, 
1d20: 53 43 5f 45 4e 41 42 4c 45 5f 53 59 4d 42 4f 4c  SC_ENABLE_SYMBOL
1d30: 53 2c 0a 23 20 61 6e 64 20 53 43 5f 4c 4f 41 44  S,.# and SC_LOAD
1d40: 5f 54 43 4c 43 4f 4e 46 49 47 20 6d 61 63 72 6f  _TCLCONFIG macro
1d50: 73 20 61 62 6f 76 65 2e 0a 23 2d 2d 2d 2d 2d 2d  s above..#------
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 0a 0a  --------------..
1da0: 53 43 5f 4d 41 4b 45 5f 4c 49 42 0a 0a 23 2d 2d  SC_MAKE_LIB..#--
1db0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1dc0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1dd0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1de0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1df0: 2d 2d 0a 23 20 65 76 61 6c 20 74 68 65 73 65 20  --.# eval these 
1e00: 74 77 6f 20 76 61 6c 75 65 73 20 74 6f 20 64 65  two values to de
1e10: 72 65 66 65 72 65 6e 63 65 20 74 68 65 20 24 7b  reference the ${
1e20: 44 42 47 58 7d 20 76 61 72 69 61 62 6c 65 2e 0a  DBGX} variable..
1e30: 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  #---------------
1e40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
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 0a 0a 65 76 61 6c 20 22 53 48 41  -----..eval "SHA
1e80: 52 45 44 5f 4c 49 42 5f 53 55 46 46 49 58 3d 24  RED_LIB_SUFFIX=$
1e90: 7b 54 43 4c 5f 53 48 41 52 45 44 5f 4c 49 42 5f  {TCL_SHARED_LIB_
1ea0: 53 55 46 46 49 58 7d 22 0a 65 76 61 6c 20 22 55  SUFFIX}".eval "U
1eb0: 4e 53 48 41 52 45 44 5f 4c 49 42 5f 53 55 46 46  NSHARED_LIB_SUFF
1ec0: 49 58 3d 24 7b 54 43 4c 5f 55 4e 53 48 41 52 45  IX=${TCL_UNSHARE
1ed0: 44 5f 4c 49 42 5f 53 55 46 46 49 58 7d 22 0a 0a  D_LIB_SUFFIX}"..
1ee0: 23 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 2d 2d 2d 2d 2d 2d 2d  ----------------
1f00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1f10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1f20: 2d 2d 2d 2d 2d 0a 23 20 53 68 61 72 65 64 20 6c  -----.# Shared l
1f30: 69 62 72 61 72 69 65 73 20 61 6e 64 20 73 74 61  ibraries and sta
1f40: 74 69 63 20 6c 69 62 72 61 72 69 65 73 20 68 61  tic libraries ha
1f50: 76 65 20 64 69 66 66 65 72 65 6e 74 20 6e 61 6d  ve different nam
1f60: 65 73 2e 0a 23 20 41 6c 73 6f 2c 20 77 69 6e 64  es..# Also, wind
1f70: 6f 77 73 20 6c 69 62 72 61 72 69 65 73 20 61 6e  ows libraries an
1f80: 64 20 75 6e 69 78 20 6c 69 62 72 61 72 69 65 73  d unix libraries
1f90: 20 68 61 76 65 20 64 69 66 66 65 72 65 6e 74 20   have different 
1fa0: 6e 61 6d 65 73 2e 0a 23 20 28 49 20 63 68 6f 73  names..# (I chos
1fb0: 65 20 74 6f 20 75 73 65 20 74 68 65 20 6e 61 6d  e to use the nam
1fc0: 65 73 20 74 68 61 74 20 4f 70 65 6e 53 53 4c 20  es that OpenSSL 
1fd0: 75 73 65 73 20 61 73 20 69 74 73 20 64 65 66 61  uses as its defa
1fe0: 75 6c 74 20 6e 61 6d 65 73 2e 29 0a 23 2d 2d 2d  ult names.).#---
1ff0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2000: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2010: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2020: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2030: 2d 0a 0a 63 61 73 65 20 22 60 75 6e 61 6d 65 20  -..case "`uname 
2040: 2d 73 60 22 20 69 6e 0a 20 20 20 20 2a 77 69 6e  -s`" in.    *win
2050: 33 32 2a 20 7c 20 2a 57 49 4e 33 32 2a 20 7c 20  32* | *WIN32* | 
2060: 2a 43 59 47 57 49 4e 5f 4e 54 2a 7c 2a 43 59 47  *CYGWIN_NT*|*CYG
2070: 57 49 4e 5f 39 38 2a 7c 2a 43 59 47 57 49 4e 5f  WIN_98*|*CYGWIN_
2080: 39 35 2a 29 0a 09 69 66 20 74 65 73 74 20 22 24  95*)..if test "$
2090: 7b 53 48 41 52 45 44 5f 42 55 49 4c 44 7d 22 20  {SHARED_BUILD}" 
20a0: 3d 20 22 31 22 20 3b 20 74 68 65 6e 0a 09 20 20  = "1" ; then..  
20b0: 20 20 53 48 4c 49 42 5f 4c 44 5f 4c 49 42 53 3d    SHLIB_LD_LIBS=
20c0: 22 5c 22 60 24 7b 43 59 47 50 41 54 48 7d 20 24  "\"`${CYGPATH} $
20d0: 7b 54 43 4c 5f 42 49 4e 5f 44 49 52 7d 2f 24 7b  {TCL_BIN_DIR}/${
20e0: 54 43 4c 5f 53 54 55 42 5f 4c 49 42 5f 46 49 4c  TCL_STUB_LIB_FIL
20f0: 45 7d 60 5c 22 20 24 7b 54 43 4c 5f 53 48 4c 49  E}`\" ${TCL_SHLI
2100: 42 5f 4c 44 5f 4c 49 42 53 7d 20 5c 22 60 24 7b  B_LD_LIBS} \"`${
2110: 43 59 47 50 41 54 48 7d 20 24 7b 53 53 4c 5f 4c  CYGPATH} ${SSL_L
2120: 49 42 5f 44 49 52 7d 2f 73 73 6c 65 61 79 33 32  IB_DIR}/ssleay32
2130: 2e 6c 69 62 60 5c 22 20 5c 22 60 24 7b 43 59 47  .lib`\" \"`${CYG
2140: 50 41 54 48 7d 20 24 7b 53 53 4c 5f 4c 49 42 5f  PATH} ${SSL_LIB_
2150: 44 49 52 7d 2f 6c 69 62 65 61 79 33 32 2e 6c 69  DIR}/libeay32.li
2160: 62 60 5c 22 22 0a 09 20 20 20 20 65 76 61 6c 20  b`\""..    eval 
2170: 22 24 7b 50 41 43 4b 41 47 45 7d 5f 4c 49 42 5f  "${PACKAGE}_LIB_
2180: 46 49 4c 45 3d 24 7b 50 41 43 4b 41 47 45 7d 24  FILE=${PACKAGE}$
2190: 7b 53 48 41 52 45 44 5f 4c 49 42 5f 53 55 46 46  {SHARED_LIB_SUFF
21a0: 49 58 7d 22 0a 09 20 20 20 20 52 41 4e 4c 49 42  IX}"..    RANLIB
21b0: 3d 3a 0a 09 65 6c 73 65 0a 09 20 20 20 20 65 76  =:..else..    ev
21c0: 61 6c 20 22 24 7b 50 41 43 4b 41 47 45 7d 5f 4c  al "${PACKAGE}_L
21d0: 49 42 5f 46 49 4c 45 3d 24 7b 50 41 43 4b 41 47  IB_FILE=${PACKAG
21e0: 45 7d 24 7b 55 4e 53 48 41 52 45 44 5f 4c 49 42  E}${UNSHARED_LIB
21f0: 5f 53 55 46 46 49 58 7d 22 0a 09 66 69 0a 09 3b  _SUFFIX}"..fi..;
2200: 3b 0a 20 20 20 20 2a 29 0a 09 69 66 20 74 65 73  ;.    *)..if tes
2210: 74 20 22 24 7b 53 48 41 52 45 44 5f 42 55 49 4c  t "${SHARED_BUIL
2220: 44 7d 22 20 3d 20 22 31 22 20 3b 20 74 68 65 6e  D}" = "1" ; then
2230: 0a 09 20 20 20 20 53 48 4c 49 42 5f 4c 44 5f 4c  ..    SHLIB_LD_L
2240: 49 42 53 3d 22 24 7b 54 43 4c 5f 53 54 55 42 5f  IBS="${TCL_STUB_
2250: 4c 49 42 5f 53 50 45 43 7d 20 2d 4c 24 7b 53 53  LIB_SPEC} -L${SS
2260: 4c 5f 4c 49 42 5f 44 49 52 7d 20 2d 6c 73 73 6c  L_LIB_DIR} -lssl
2270: 20 2d 4c 24 7b 53 53 4c 5f 4c 49 42 5f 44 49 52   -L${SSL_LIB_DIR
2280: 7d 20 2d 6c 63 72 79 70 74 6f 22 0a 09 20 20 20  } -lcrypto"..   
2290: 20 65 76 61 6c 20 22 24 7b 50 41 43 4b 41 47 45   eval "${PACKAGE
22a0: 7d 5f 4c 49 42 5f 46 49 4c 45 3d 6c 69 62 24 7b  }_LIB_FILE=lib${
22b0: 50 41 43 4b 41 47 45 7d 24 7b 53 48 41 52 45 44  PACKAGE}${SHARED
22c0: 5f 4c 49 42 5f 53 55 46 46 49 58 7d 22 0a 09 20  _LIB_SUFFIX}".. 
22d0: 20 20 20 52 41 4e 4c 49 42 3d 3a 0a 09 65 6c 73     RANLIB=:..els
22e0: 65 0a 09 20 20 20 20 65 76 61 6c 20 22 24 7b 50  e..    eval "${P
22f0: 41 43 4b 41 47 45 7d 5f 4c 49 42 5f 46 49 4c 45  ACKAGE}_LIB_FILE
2300: 3d 6c 69 62 24 7b 50 41 43 4b 41 47 45 7d 24 7b  =lib${PACKAGE}${
2310: 55 4e 53 48 41 52 45 44 5f 4c 49 42 5f 53 55 46  UNSHARED_LIB_SUF
2320: 46 49 58 7d 22 0a 09 66 69 0a 09 3b 3b 0a 65 73  FIX}"..fi..;;.es
2330: 61 63 0a 0a 0a 41 43 5f 53 55 42 53 54 28 74 6c  ac...AC_SUBST(tl
2340: 73 5f 4c 49 42 5f 46 49 4c 45 29 0a 41 43 5f 53  s_LIB_FILE).AC_S
2350: 55 42 53 54 28 53 48 4c 49 42 5f 4c 44 5f 4c 49  UBST(SHLIB_LD_LI
2360: 42 53 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  BS)..#----------
2370: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2380: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2390: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
23a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 46 69 6e  ----------.# Fin
23b0: 64 20 74 63 6c 73 68 20 73 6f 20 74 68 61 74 20  d tclsh so that 
23c0: 77 65 20 63 61 6e 20 72 75 6e 20 70 6b 67 5f 6d  we can run pkg_m
23d0: 6b 49 6e 64 65 78 20 74 6f 20 67 65 6e 65 72 61  kIndex to genera
23e0: 74 65 20 74 68 65 20 70 6b 67 49 6e 64 65 78 2e  te the pkgIndex.
23f0: 74 63 6c 0a 23 20 66 69 6c 65 20 64 75 72 69 6e  tcl.# file durin
2400: 67 20 74 68 65 20 69 6e 73 74 61 6c 6c 20 70 72  g the install pr
2410: 6f 63 65 73 73 2e 20 20 44 6f 6e 27 74 20 72 75  ocess.  Don't ru
2420: 6e 20 74 68 65 20 54 43 4c 53 48 5f 50 52 4f 47  n the TCLSH_PROG
2430: 20 74 68 72 6f 75 67 68 0a 23 20 24 7b 43 59 47   through.# ${CYG
2440: 50 41 54 48 7d 20 62 65 63 61 75 73 65 20 69 74  PATH} because it
2450: 27 73 20 62 65 69 6e 67 20 75 73 65 64 20 64 69  's being used di
2460: 72 65 63 74 6c 79 20 62 79 20 6d 61 6b 65 2e 0a  rectly by make..
2470: 23 20 52 65 71 75 69 72 65 20 74 68 61 74 20 77  # Require that w
2480: 65 20 75 73 65 20 61 20 74 63 6c 73 68 20 73 68  e use a tclsh sh
2490: 65 6c 6c 20 76 65 72 73 69 6f 6e 20 38 2e 32 20  ell version 8.2 
24a0: 6f 72 20 6c 61 74 65 72 20 73 69 6e 63 65 20 65  or later since e
24b0: 61 72 6c 69 65 72 0a 23 20 76 65 72 73 69 6f 6e  arlier.# version
24c0: 73 20 68 61 76 65 20 62 75 67 73 20 69 6e 20 74  s have bugs in t
24d0: 68 65 20 70 6b 67 5f 6d 6b 49 6e 64 65 78 20 72  he pkg_mkIndex r
24e0: 6f 75 74 69 6e 65 2e 0a 23 2d 2d 2d 2d 2d 2d 2d  outine..#-------
24f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2500: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2510: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2520: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 53  -------------..S
2530: 43 5f 50 52 4f 47 5f 54 43 4c 53 48 0a 0a 23 2d  C_PROG_TCLSH..#-
2540: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2550: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2560: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2570: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2580: 2d 2d 2d 0a 23 20 46 69 6e 61 6c 6c 79 2c 20 73  ---.# Finally, s
2590: 75 62 73 74 69 74 75 74 65 20 61 6c 6c 20 6f 66  ubstitute all of
25a0: 20 74 68 65 20 76 61 72 69 6f 75 73 20 76 61 6c   the various val
25b0: 75 65 73 20 69 6e 74 6f 20 74 68 65 20 4d 61 6b  ues into the Mak
25c0: 65 66 69 6c 65 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  efile..#--------
25d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
25e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
25f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2600: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43  ------------..AC
2610: 5f 4f 55 54 50 55 54 28 5b 4d 61 6b 65 66 69 6c  _OUTPUT([Makefil
2620: 65 20 5c 0a 09 70 6b 67 49 6e 64 65 78 2e 74 63  e \..pkgIndex.tc
2630: 6c 5d 29 0a                                      l]).