Artifact
96dc026b76940e61c9b952719e059d3259e8a0bc:
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 41 C_INIT(tls.h)..A
01e0: 43 5f 43 4f 4e 46 49 47 5f 41 55 58 5f 44 49 52 C_CONFIG_AUX_DIR
01f0: 28 63 6f 6e 66 69 67 29 0a 43 4f 4e 46 49 47 44 (config).CONFIGD
0200: 49 52 3d 24 7b 73 72 63 64 69 72 7d 2f 63 6f 6e IR=${srcdir}/con
0210: 66 69 67 0a 41 43 5f 53 55 42 53 54 28 43 4f 4e fig.AC_SUBST(CON
0220: 46 49 47 44 49 52 29 0a 0a 23 2d 2d 2d 2d 2d 2d FIGDIR)..#------
0230: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0240: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0250: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0260: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 --------------.#
0270: 20 53 65 74 20 70 61 63 6b 61 67 65 20 6e 61 6d Set package nam
0280: 65 20 61 6e 64 20 76 65 72 73 69 6f 6e 20 6e 75 e and version nu
0290: 6d 62 65 72 73 20 68 65 72 65 2e 20 20 54 68 65 mbers here. The
02a0: 20 4e 4f 44 4f 54 5f 56 45 52 53 49 4f 4e 20 69 NODOT_VERSION i
02b0: 73 0a 23 20 72 65 71 75 69 72 65 64 20 66 6f 72 s.# required for
02c0: 20 63 6f 6e 73 74 72 75 63 74 69 6e 67 20 74 68 constructing th
02d0: 65 20 6c 69 62 72 61 72 79 20 6e 61 6d 65 20 6f e library name o
02e0: 6e 20 73 79 73 74 65 6d 73 20 74 68 61 74 20 64 n systems that d
02f0: 6f 6e 27 74 0a 23 20 6c 69 6b 65 20 64 6f 74 73 on't.# like dots
0300: 20 69 6e 20 23 20 6c 69 62 72 61 72 79 20 6e 61 in # library na
0310: 6d 65 73 20 28 57 69 6e 64 6f 77 73 29 2e 20 20 mes (Windows).
0320: 54 68 65 20 56 45 52 53 49 4f 4e 20 76 61 72 69 The VERSION vari
0330: 61 62 6c 65 20 69 73 0a 23 20 75 73 65 64 20 6f able is.# used o
0340: 6e 20 74 68 65 20 6f 74 68 65 72 20 73 79 73 74 n the other syst
0350: 65 6d 73 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ems..#----------
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 2d 2d 2d ----------------
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 0a 0a 50 41 43 4b ----------..PACK
03a0: 41 47 45 3d 74 6c 73 0a 0a 4d 41 4a 4f 52 5f 56 AGE=tls..MAJOR_V
03b0: 45 52 53 49 4f 4e 3d 31 0a 4d 49 4e 4f 52 5f 56 ERSION=1.MINOR_V
03c0: 45 52 53 49 4f 4e 3d 33 0a 50 41 54 43 48 4c 45 ERSION=3.PATCHLE
03d0: 56 45 4c 3d 0a 0a 56 45 52 53 49 4f 4e 3d 24 7b VEL=..VERSION=${
03e0: 4d 41 4a 4f 52 5f 56 45 52 53 49 4f 4e 7d 2e 24 MAJOR_VERSION}.$
03f0: 7b 4d 49 4e 4f 52 5f 56 45 52 53 49 4f 4e 7d 24 {MINOR_VERSION}$
0400: 7b 50 41 54 43 48 4c 45 56 45 4c 7d 0a 4e 4f 44 {PATCHLEVEL}.NOD
0410: 4f 54 5f 56 45 52 53 49 4f 4e 3d 24 7b 4d 41 4a OT_VERSION=${MAJ
0420: 4f 52 5f 56 45 52 53 49 4f 4e 7d 24 7b 4d 49 4e OR_VERSION}${MIN
0430: 4f 52 5f 56 45 52 53 49 4f 4e 7d 0a 0a 41 43 5f OR_VERSION}..AC_
0440: 53 55 42 53 54 28 50 41 43 4b 41 47 45 29 0a 41 SUBST(PACKAGE).A
0450: 43 5f 53 55 42 53 54 28 56 45 52 53 49 4f 4e 29 C_SUBST(VERSION)
0460: 0a 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ...#------------
0470: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
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 0a 23 20 57 65 20 70 75 --------.# We pu
04b0: 74 20 74 68 69 73 20 68 65 72 65 20 73 6f 20 74 t this here so t
04c0: 68 61 74 20 79 6f 75 20 63 61 6e 20 63 6f 6d 70 hat you can comp
04d0: 69 6c 65 20 77 69 74 68 20 2d 44 56 45 52 53 49 ile with -DVERSI
04e0: 4f 4e 3d 22 31 2e 32 22 20 74 6f 0a 23 20 65 6e ON="1.2" to.# en
04f0: 63 6f 64 65 20 74 68 65 20 70 61 63 6b 61 67 65 code the package
0500: 20 76 65 72 73 69 6f 6e 20 64 69 72 65 63 74 6c version directl
0510: 79 20 69 6e 74 6f 20 74 68 65 20 73 6f 75 72 63 y into the sourc
0520: 65 20 66 69 6c 65 73 2e 0a 23 2d 2d 2d 2d 2d 2d e files..#------
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 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 0a 0a --------------..
0570: 65 76 61 6c 20 41 43 5f 44 45 46 49 4e 45 5f 55 eval AC_DEFINE_U
0580: 4e 51 55 4f 54 45 44 28 56 45 52 53 49 4f 4e 2c NQUOTED(VERSION,
0590: 20 22 24 7b 56 45 52 53 49 4f 4e 7d 22 29 0a 65 "${VERSION}").e
05a0: 76 61 6c 20 41 43 5f 44 45 46 49 4e 45 5f 55 4e val AC_DEFINE_UN
05b0: 51 55 4f 54 45 44 28 50 41 43 4b 41 47 45 2c 20 QUOTED(PACKAGE,
05c0: 22 24 7b 50 41 43 4b 41 47 45 7d 22 29 0a 0a 0a "${PACKAGE}")...
05d0: 23 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 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0610: 2d 2d 2d 2d 2d 0a 23 20 45 73 74 61 62 6c 69 73 -----.# Establis
0620: 68 20 74 68 65 20 6c 6f 63 61 74 69 6f 6e 20 6f h the location o
0630: 66 20 74 68 65 20 72 6f 6f 74 20 64 69 72 65 63 f the root direc
0640: 74 6f 72 79 20 66 6f 72 20 4f 70 65 6e 53 53 4c tory for OpenSSL
0650: 2e 0a 23 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 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0690: 2d 2d 2d 2d 2d 2d 2d 0a 0a 53 53 4c 5f 44 49 52 -------..SSL_DIR
06a0: 3d 27 2f 75 73 72 2f 6c 6f 63 61 6c 2f 6f 70 65 ='/usr/local/ope
06b0: 6e 73 73 6c 27 0a 0a 41 43 5f 41 52 47 5f 57 49 nssl'..AC_ARG_WI
06c0: 54 48 28 73 73 6c 2d 64 69 72 2c 20 5b 20 20 2d TH(ssl-dir, [ -
06d0: 2d 77 69 74 68 2d 73 73 6c 2d 64 69 72 3d 44 49 -with-ssl-dir=DI
06e0: 52 20 20 53 53 4c 20 72 6f 6f 74 20 64 69 72 65 R SSL root dire
06f0: 63 74 6f 72 79 5d 2c 20 53 53 4c 5f 44 49 52 3d ctory], SSL_DIR=
0700: 24 77 69 74 68 76 61 6c 29 0a 0a 69 66 20 74 65 $withval)..if te
0710: 73 74 20 2d 7a 20 22 24 7b 53 53 4c 5f 44 49 52 st -z "${SSL_DIR
0720: 7d 22 3b 20 74 68 65 6e 0a 20 20 20 20 41 43 5f }"; then. AC_
0730: 45 52 52 4f 52 28 6d 75 73 74 20 73 70 65 63 69 ERROR(must speci
0740: 66 79 20 53 53 4c 20 64 69 72 65 63 74 6f 72 79 fy SSL directory
0750: 29 0a 66 69 0a 69 66 20 74 65 73 74 20 21 20 2d ).fi.if test ! -
0760: 66 20 22 24 7b 53 53 4c 5f 44 49 52 7d 2f 69 6e f "${SSL_DIR}/in
0770: 63 6c 75 64 65 2f 6f 70 65 6e 73 73 6c 2f 6f 70 clude/openssl/op
0780: 65 6e 73 73 6c 76 2e 68 22 3b 20 74 68 65 6e 0a ensslv.h"; then.
0790: 20 20 20 20 41 43 5f 45 52 52 4f 52 28 62 61 64 AC_ERROR(bad
07a0: 20 73 73 6c 2d 64 69 72 3a 20 63 61 6e 74 20 66 ssl-dir: cant f
07b0: 69 6e 64 20 6f 70 65 6e 73 73 6c 76 2e 68 20 75 ind opensslv.h u
07c0: 6e 64 65 72 20 24 7b 53 53 4c 5f 44 49 52 7d 29 nder ${SSL_DIR})
07d0: 0a 66 69 0a 0a 53 53 4c 5f 4c 49 42 5f 44 49 52 .fi..SSL_LIB_DIR
07e0: 3d 24 7b 53 53 4c 5f 44 49 52 7d 2f 6c 69 62 0a =${SSL_DIR}/lib.
07f0: 53 53 4c 5f 49 4e 43 4c 55 44 45 5f 44 49 52 3d SSL_INCLUDE_DIR=
0800: 24 7b 53 53 4c 5f 44 49 52 7d 2f 69 6e 63 6c 75 ${SSL_DIR}/inclu
0810: 64 65 0a 0a 41 43 5f 53 55 42 53 54 28 53 53 4c de..AC_SUBST(SSL
0820: 5f 44 49 52 29 0a 41 43 5f 53 55 42 53 54 28 53 _DIR).AC_SUBST(S
0830: 53 4c 5f 4c 49 42 5f 44 49 52 29 0a 41 43 5f 53 SL_LIB_DIR).AC_S
0840: 55 42 53 54 28 53 53 4c 5f 49 4e 43 4c 55 44 45 UBST(SSL_INCLUDE
0850: 5f 44 49 52 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d _DIR)..#--------
0860: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0870: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0880: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0890: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 43 ------------.# C
08a0: 68 65 63 6b 20 77 68 65 74 68 65 72 20 2d 2d 65 heck whether --e
08b0: 6e 61 62 6c 65 2d 67 63 63 20 6f 72 20 2d 2d 64 nable-gcc or --d
08c0: 69 73 61 62 6c 65 2d 67 63 63 20 77 61 73 20 67 isable-gcc was g
08d0: 69 76 65 6e 2e 20 20 44 6f 20 74 68 69 73 20 0a iven. Do this .
08e0: 23 20 62 65 66 6f 72 65 20 41 43 5f 43 59 47 57 # before AC_CYGW
08f0: 49 4e 20 69 73 20 63 61 6c 6c 65 64 20 73 6f 20 IN is called so
0900: 74 68 65 20 63 6f 6d 70 69 6c 65 72 20 63 61 6e the compiler can
0910: 20 62 65 20 66 75 6c 6c 79 20 74 65 73 74 65 64 be fully tested
0920: 20 62 79 0a 23 20 62 75 69 6c 74 2d 69 6e 20 61 by.# built-in a
0930: 75 74 6f 63 6f 6e 66 20 74 6f 6f 6c 73 2e 20 20 utoconf tools.
0940: 54 68 69 73 20 6d 61 63 72 6f 20 61 6c 73 6f 20 This macro also
0950: 63 61 6c 6c 73 20 41 43 5f 50 52 4f 47 5f 43 43 calls AC_PROG_CC
0960: 20 74 6f 20 73 65 74 0a 23 20 74 68 65 20 63 6f to set.# the co
0970: 6d 70 69 6c 65 72 20 69 66 20 2d 2d 65 6e 61 62 mpiler if --enab
0980: 6c 65 2d 67 63 63 20 77 61 73 20 6e 6f 74 20 75 le-gcc was not u
0990: 73 65 64 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d sed..#----------
09a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
09b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
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 0a 0a 53 43 5f 45 ----------..SC_E
09e0: 4e 41 42 4c 45 5f 47 43 43 0a 41 43 5f 50 52 4f NABLE_GCC.AC_PRO
09f0: 47 5f 49 4e 53 54 41 4c 4c 0a 0a 23 2d 2d 2d 2d G_INSTALL..#----
0a00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0a10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0a20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0a30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0a40: 0a 23 20 49 66 20 6f 70 65 6e 73 73 6c 20 77 61 .# If openssl wa
0a50: 73 20 62 75 69 6c 74 20 77 69 74 68 20 67 63 63 s built with gcc
0a60: 20 74 68 65 6e 20 74 68 65 72 65 20 6d 61 79 20 then there may
0a70: 62 65 20 73 6f 6d 65 20 73 79 6d 62 6f 6c 73 20 be some symbols
0a80: 74 68 61 74 20 6e 65 65 64 0a 23 20 72 65 73 6f that need.# reso
0a90: 6c 76 69 6e 67 20 62 65 66 6f 72 65 20 77 65 20 lving before we
0aa0: 63 61 6e 20 6c 6f 61 64 20 69 74 20 69 6e 74 6f can load it into
0ab0: 20 74 63 6c 73 68 20 28 5f 5f 75 64 69 76 64 33 tclsh (__udivd3
0ac0: 69 20 6f 6e 20 73 6f 6c 61 72 69 73 2e 20 20 4c i on solaris. L
0ad0: 65 74 20 74 68 65 0a 23 20 75 73 65 72 20 73 70 et the.# user sp
0ae0: 65 63 69 66 79 20 69 66 20 77 65 20 6e 65 65 64 ecify if we need
0af0: 20 74 6f 20 61 64 64 20 6c 69 62 67 63 63 20 74 to add libgcc t
0b00: 6f 20 74 68 65 20 6c 69 6e 6b 20 6c 69 6e 65 20 o the link line
0b10: 74 6f 20 72 65 73 6f 6c 76 65 20 74 68 65 73 65 to resolve these
0b20: 0a 23 20 73 79 6d 62 6f 6c 73 2e 0a 23 2d 2d 2d .# symbols..#---
0b30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
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 0a 0a 41 43 5f 4d 53 47 5f 43 48 45 43 4b 49 -..AC_MSG_CHECKI
0b80: 4e 47 28 69 66 20 6c 69 62 67 63 63 20 69 73 20 NG(if libgcc is
0b90: 6e 65 65 64 65 64 20 74 6f 20 72 65 73 6f 6c 76 needed to resolv
0ba0: 65 20 6f 70 65 6e 73 73 6c 20 73 79 6d 62 6f 6c e openssl symbol
0bb0: 73 29 0a 0a 41 43 5f 41 52 47 5f 57 49 54 48 28 s)..AC_ARG_WITH(
0bc0: 67 63 63 6c 69 62 2c 20 5b 20 20 2d 2d 77 69 74 gcclib, [ --wit
0bd0: 68 2d 67 63 63 6c 69 62 20 20 20 20 20 20 20 20 h-gcclib
0be0: 20 6c 69 6e 6b 20 77 69 74 68 20 6c 69 62 67 63 link with libgc
0bf0: 63 20 74 6f 20 72 65 73 6f 6c 76 65 20 73 79 6d c to resolve sym
0c00: 62 6f 6c 73 20 69 6e 20 61 20 67 63 63 2d 62 75 bols in a gcc-bu
0c10: 69 6c 74 20 6f 70 65 6e 73 73 6c 20 6c 69 62 72 ilt openssl libr
0c20: 61 72 79 5d 2c 20 47 43 43 4c 49 42 3d 22 2d 6c ary], GCCLIB="-l
0c30: 67 63 63 22 2c 20 47 43 43 4c 49 42 3d 22 22 29 gcc", GCCLIB="")
0c40: 0a 0a 69 66 20 74 65 73 74 20 22 78 24 7b 47 43 ..if test "x${GC
0c50: 43 4c 49 42 7d 22 20 3d 20 22 78 22 20 3b 20 74 CLIB}" = "x" ; t
0c60: 68 65 6e 0a 20 20 20 20 41 43 5f 4d 53 47 5f 52 hen. AC_MSG_R
0c70: 45 53 55 4c 54 28 6e 6f 29 0a 65 6c 73 65 0a 20 ESULT(no).else.
0c80: 20 20 20 41 43 5f 4d 53 47 5f 52 45 53 55 4c 54 AC_MSG_RESULT
0c90: 28 79 65 73 29 0a 20 20 20 20 41 43 5f 4d 53 47 (yes). AC_MSG
0ca0: 5f 43 48 45 43 4b 49 4e 47 28 66 6f 72 20 67 63 _CHECKING(for gc
0cb0: 63 20 6c 69 62 72 61 72 79 20 6c 6f 63 61 74 69 c library locati
0cc0: 6f 6e 29 0a 20 20 20 20 47 43 43 50 41 54 48 3d on). GCCPATH=
0cd0: 60 24 7b 43 43 7d 20 2d 70 72 69 6e 74 2d 6c 69 `${CC} -print-li
0ce0: 62 67 63 63 2d 66 69 6c 65 2d 6e 61 6d 65 20 7c bgcc-file-name |
0cf0: 20 73 65 64 20 2d 65 20 27 73 23 5b 5e 2f 5d 2a sed -e 's#[^/]*
0d00: 24 23 23 27 60 0a 20 20 20 20 47 43 43 50 41 54 $##'`. GCCPAT
0d10: 48 3d 22 2d 4c 24 7b 47 43 43 50 41 54 48 7d 22 H="-L${GCCPATH}"
0d20: 0a 20 20 20 20 41 43 5f 4d 53 47 5f 52 45 53 55 . AC_MSG_RESU
0d30: 4c 54 28 24 7b 47 43 43 50 41 54 48 7d 29 0a 66 LT(${GCCPATH}).f
0d40: 69 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d i..#------------
0d50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0d60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0d70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0d80: 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 43 68 65 63 6b --------.# Check
0d90: 73 20 74 6f 20 73 65 65 20 69 66 20 74 68 65 20 s to see if the
0da0: 6d 61 6b 65 20 70 72 6f 67 72 61 6d 20 73 65 74 make program set
0db0: 73 20 74 68 65 20 24 4d 41 4b 45 20 76 61 72 69 s the $MAKE vari
0dc0: 61 62 6c 65 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d able..#---------
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 0a 0a 41 43 5f -----------..AC_
0e10: 50 52 4f 47 5f 4d 41 4b 45 5f 53 45 54 0a 0a 23 PROG_MAKE_SET..#
0e20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0e30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
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 0a 23 20 46 69 6e 64 20 72 61 6e 6c ----.# Find ranl
0e70: 69 62 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ib.#------------
0e80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0e90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0ea0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0eb0: 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f 50 52 4f --------..AC_PRO
0ec0: 47 5f 52 41 4e 4c 49 42 0a 0a 23 2d 2d 2d 2d 2d G_RANLIB..#-----
0ed0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0ee0: 2d 2d 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 0a ---------------.
0f10: 23 20 54 68 69 73 20 6d 61 63 72 6f 20 70 65 72 # This macro per
0f20: 66 6f 72 6d 73 20 61 64 64 69 74 69 6f 6e 61 6c forms additional
0f30: 20 63 6f 6d 70 69 6c 65 72 20 74 65 73 74 73 2e compiler tests.
0f40: 0a 23 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 2d 2d 2d 2d 2d 2d ----------------
0f60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0f70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0f80: 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f 43 59 47 57 49 ------..AC_CYGWI
0f90: 4e 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d N..#------------
0fa0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0fb0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0fc0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0fd0: 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 44 65 74 65 72 --------.# Deter
0fe0: 6d 69 6e 65 73 20 74 68 65 20 63 6f 72 72 65 63 mines the correc
0ff0: 74 20 62 69 6e 61 72 79 20 66 69 6c 65 20 65 78 t binary file ex
1000: 74 65 6e 73 69 6f 6e 20 28 2e 6f 2c 20 2e 6f 62 tension (.o, .ob
1010: 6a 2c 20 2e 65 78 65 20 65 74 63 2e 29 0a 23 2d j, .exe etc.).#-
1020: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1030: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1040: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1050: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1060: 2d 2d 2d 0a 0a 41 43 5f 4f 42 4a 45 58 54 0a 41 ---..AC_OBJEXT.A
1070: 43 5f 45 58 45 45 58 54 0a 0a 23 2d 2d 2d 2d 2d C_EXEEXT..#-----
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 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 0a ---------------.
10c0: 23 20 22 63 79 67 70 61 74 68 22 20 69 73 20 75 # "cygpath" is u
10d0: 73 65 64 20 6f 6e 20 77 69 6e 64 6f 77 73 20 74 sed on windows t
10e0: 6f 20 67 65 6e 65 72 61 74 65 20 6e 61 74 69 76 o generate nativ
10f0: 65 20 70 61 74 68 20 6e 61 6d 65 73 20 66 6f 72 e path names for
1100: 0a 23 20 69 6e 63 6c 75 64 65 20 66 69 6c 65 73 .# include files
1110: 2e 20 20 54 68 65 73 65 20 76 61 72 69 61 62 6c . These variabl
1120: 65 73 20 73 68 6f 75 6c 64 20 6f 6e 6c 79 20 62 es should only b
1130: 65 20 75 73 65 64 20 77 69 74 68 20 74 68 65 0a e used with the.
1140: 23 20 63 6f 6d 70 69 6c 65 72 20 61 6e 64 20 6c # compiler and l
1150: 69 6e 6b 65 72 20 73 69 6e 63 65 20 23 20 74 68 inker since # th
1160: 65 79 20 67 65 6e 65 72 61 74 65 20 6e 61 74 69 ey generate nati
1170: 76 65 20 70 61 74 68 20 6e 61 6d 65 73 2e 0a 23 ve path names..#
1180: 0a 23 20 55 6e 69 78 20 74 63 6c 43 6f 6e 66 69 .# Unix tclConfi
1190: 67 2e 73 68 20 70 6f 69 6e 74 73 20 53 52 43 5f g.sh points SRC_
11a0: 44 49 52 20 61 74 20 74 68 65 20 74 6f 70 2d 6c DIR at the top-l
11b0: 65 76 65 6c 20 64 69 72 65 63 74 6f 72 79 20 6f evel directory o
11c0: 66 0a 23 20 74 68 65 20 54 63 6c 20 73 6f 75 72 f.# the Tcl sour
11d0: 63 65 73 2c 20 77 68 69 6c 65 20 74 68 65 20 57 ces, while the W
11e0: 69 6e 64 6f 77 73 20 74 63 6c 43 6f 6e 66 69 67 indows tclConfig
11f0: 2e 73 68 20 70 6f 69 6e 74 73 20 53 52 43 5f 44 .sh points SRC_D
1200: 49 52 20 61 74 0a 23 20 74 68 65 20 77 69 6e 20 IR at.# the win
1210: 73 75 62 64 69 72 65 63 74 6f 72 79 2e 20 20 48 subdirectory. H
1220: 65 6e 63 65 20 74 68 65 20 64 69 66 66 65 72 65 ence the differe
1230: 6e 74 20 75 73 61 67 65 73 20 6f 66 20 53 52 43 nt usages of SRC
1240: 5f 44 49 52 20 62 65 6c 6f 77 2e 0a 23 0a 23 20 _DIR below..#.#
1250: 54 68 69 73 20 6d 75 73 74 20 62 65 20 64 6f 6e This must be don
1260: 65 20 62 65 66 6f 72 65 20 63 61 6c 6c 69 6e 67 e before calling
1270: 20 53 43 5f 50 55 42 4c 49 43 5f 54 43 4c 5f 48 SC_PUBLIC_TCL_H
1280: 45 41 44 45 52 53 20 6f 72 0a 23 20 53 43 5f 50 EADERS or.# SC_P
1290: 52 49 56 41 54 45 5f 54 43 4c 5f 48 45 41 44 45 RIVATE_TCL_HEADE
12a0: 52 53 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d RS..#-----------
12b0: 2d 2d 2d 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 0a 0a 63 61 73 65 20 ---------..case
12f0: 22 60 75 6e 61 6d 65 20 2d 73 60 22 20 69 6e 0a "`uname -s`" in.
1300: 20 20 20 20 2a 77 69 6e 33 32 2a 20 7c 20 2a 57 *win32* | *W
1310: 49 4e 33 32 2a 20 7c 20 2a 43 59 47 57 49 4e 5f IN32* | *CYGWIN_
1320: 4e 54 2a 7c 2a 43 59 47 57 49 4e 5f 39 38 2a 7c NT*|*CYGWIN_98*|
1330: 2a 43 59 47 57 49 4e 5f 39 35 2a 29 0a 09 43 59 *CYGWIN_95*)..CY
1340: 47 50 41 54 48 3d 22 63 79 67 70 61 74 68 20 2d GPATH="cygpath -
1350: 77 22 0a 09 52 45 4c 50 41 54 48 3d 22 2e 2e 20 w"..RELPATH="..
1360: 2e 2e 20 62 69 6e 22 0a 20 20 20 20 3b 3b 0a 20 .. bin". ;;.
1370: 20 20 20 2a 29 0a 09 43 59 47 50 41 54 48 3d 65 *)..CYGPATH=e
1380: 63 68 6f 0a 09 52 45 4c 50 41 54 48 3d 22 2e 2e cho..RELPATH="..
1390: 22 0a 20 20 20 20 3b 3b 0a 65 73 61 63 0a 0a 41 ". ;;.esac..A
13a0: 43 5f 53 55 42 53 54 28 43 59 47 50 41 54 48 29 C_SUBST(CYGPATH)
13b0: 0a 41 43 5f 53 55 42 53 54 28 52 45 4c 50 41 54 .AC_SUBST(RELPAT
13c0: 48 29 0a 0a 53 53 4c 5f 49 4e 43 4c 55 44 45 5f H)..SSL_INCLUDE_
13d0: 44 49 52 5f 4e 41 54 49 56 45 3d 5c 22 60 24 7b DIR_NATIVE=\"`${
13e0: 43 59 47 50 41 54 48 7d 20 24 7b 53 53 4c 5f 49 CYGPATH} ${SSL_I
13f0: 4e 43 4c 55 44 45 5f 44 49 52 7d 60 5c 22 0a 41 NCLUDE_DIR}`\".A
1400: 43 5f 53 55 42 53 54 28 53 53 4c 5f 49 4e 43 4c C_SUBST(SSL_INCL
1410: 55 44 45 5f 44 49 52 5f 4e 41 54 49 56 45 29 0a UDE_DIR_NATIVE).
1420: 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ..#-------------
1430: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1440: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1450: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1460: 2d 2d 2d 2d 2d 2d 2d 0a 23 20 4c 6f 61 64 20 74 -------.# Load t
1470: 68 65 20 74 63 6c 43 6f 6e 66 69 67 2e 73 68 20 he tclConfig.sh
1480: 66 69 6c 65 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d file.#----------
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 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
14c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 53 43 5f 50 ----------..SC_P
14d0: 41 54 48 5f 54 43 4c 43 4f 4e 46 49 47 0a 53 43 ATH_TCLCONFIG.SC
14e0: 5f 4c 4f 41 44 5f 54 43 4c 43 4f 4e 46 49 47 0a _LOAD_TCLCONFIG.
14f0: 0a 53 43 5f 50 52 49 56 41 54 45 5f 54 43 4c 5f .SC_PRIVATE_TCL_
1500: 48 45 41 44 45 52 53 0a 0a 23 2d 2d 2d 2d 2d 2d HEADERS..#------
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 0a 23 --------------.#
1550: 20 41 20 66 65 77 20 6d 69 73 63 65 6c 6c 61 6e A few miscellan
1560: 65 6f 75 73 20 70 6c 61 74 66 6f 72 6d 2d 73 70 eous platform-sp
1570: 65 63 69 66 69 63 20 69 74 65 6d 73 3a 0a 23 0a ecific items:.#.
1580: 23 20 44 65 66 69 6e 65 20 61 20 73 70 65 63 69 # Define a speci
1590: 61 6c 20 73 79 6d 62 6f 6c 20 66 6f 72 20 57 69 al symbol for Wi
15a0: 6e 64 6f 77 73 20 28 42 55 49 4c 44 5f 74 6c 73 ndows (BUILD_tls
15b0: 20 69 6e 20 74 68 69 73 20 63 61 73 65 29 20 73 in this case) s
15c0: 6f 0a 23 20 74 68 61 74 20 77 65 20 63 72 65 61 o.# that we crea
15d0: 74 65 20 74 68 65 20 65 78 70 6f 72 74 20 6c 69 te the export li
15e0: 62 72 61 72 79 20 77 69 74 68 20 74 68 65 20 64 brary with the d
15f0: 6c 6c 2e 0a 23 0a 23 20 43 6c 65 61 6e 20 75 70 ll..#.# Clean up
1600: 20 61 6e 79 20 65 78 74 72 61 20 66 69 6c 65 73 any extra files
1610: 20 74 68 61 74 20 57 69 6e 64 6f 77 73 20 63 72 that Windows cr
1620: 65 61 74 65 73 2e 0a 23 0a 23 20 44 65 66 69 6e eates..#.# Defin
1630: 65 20 61 6e 79 20 65 78 74 72 61 20 63 6f 6d 70 e any extra comp
1640: 69 6c 65 72 20 66 6c 61 67 73 20 69 6e 20 74 68 iler flags in th
1650: 65 20 50 41 43 4b 41 47 45 5f 43 46 4c 41 47 53 e PACKAGE_CFLAGS
1660: 20 76 61 72 69 61 62 6c 65 2e 0a 23 20 54 68 65 variable..# The
1670: 73 65 20 77 69 6c 6c 20 62 65 20 61 70 70 65 6e se will be appen
1680: 64 65 64 20 74 6f 20 74 68 65 20 63 75 72 72 65 ded to the curre
1690: 6e 74 20 73 65 74 20 6f 66 20 63 6f 6d 70 69 6c nt set of compil
16a0: 65 72 20 66 6c 61 67 73 20 66 6f 72 0a 23 20 79 er flags for.# y
16b0: 6f 75 72 20 73 79 73 74 65 6d 2e 0a 23 2d 2d 2d our system..#---
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 2d 2d 2d 2d ----------------
1700: 2d 0a 0a 63 61 73 65 20 22 60 75 6e 61 6d 65 20 -..case "`uname
1710: 2d 73 60 22 20 69 6e 0a 20 20 20 20 2a 77 69 6e -s`" in. *win
1720: 33 32 2a 20 7c 20 2a 57 49 4e 33 32 2a 20 7c 20 32* | *WIN32* |
1730: 2a 43 59 47 57 49 4e 5f 4e 54 2a 7c 2a 43 59 47 *CYGWIN_NT*|*CYG
1740: 57 49 4e 5f 39 38 2a 7c 2a 43 59 47 57 49 4e 5f WIN_98*|*CYGWIN_
1750: 39 35 2a 29 0a 09 41 43 5f 44 45 46 49 4e 45 5f 95*)..AC_DEFINE_
1760: 55 4e 51 55 4f 54 45 44 28 42 55 49 4c 44 5f 24 UNQUOTED(BUILD_$
1770: 7b 50 41 43 4b 41 47 45 7d 29 0a 09 43 4c 45 41 {PACKAGE})..CLEA
1780: 4e 46 49 4c 45 53 3d 22 2a 2e 6c 69 62 20 2a 2e NFILES="*.lib *.
1790: 64 6c 6c 20 2a 2e 65 78 70 20 2a 2e 69 6c 6b 20 dll *.exp *.ilk
17a0: 2a 2e 70 64 62 20 76 63 35 30 2e 70 63 68 22 0a *.pdb vc50.pch".
17b0: 09 41 43 5f 53 55 42 53 54 28 43 4c 45 41 4e 46 .AC_SUBST(CLEANF
17c0: 49 4c 45 53 29 0a 20 20 20 20 3b 3b 0a 20 20 20 ILES). ;;.
17d0: 20 2a 29 0a 09 43 4c 45 41 4e 46 49 4c 45 53 3d *)..CLEANFILES=
17e0: 0a 20 20 20 20 3b 3b 0a 65 73 61 63 0a 0a 23 2d . ;;.esac..#-
17f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1800: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1810: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1820: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1830: 2d 2d 2d 0a 23 20 43 68 65 63 6b 20 77 68 65 74 ---.# Check whet
1840: 68 65 72 20 2d 2d 65 6e 61 62 6c 65 2d 74 68 72 her --enable-thr
1850: 65 61 64 73 20 6f 72 20 2d 2d 64 69 73 61 62 6c eads or --disabl
1860: 65 2d 74 68 72 65 61 64 73 20 77 61 73 20 67 69 e-threads was gi
1870: 76 65 6e 2e 0a 23 20 53 6f 20 66 61 72 20 6f 6e ven..# So far on
1880: 6c 79 20 54 63 6c 20 72 65 73 70 6f 6e 64 73 20 ly Tcl responds
1890: 74 6f 20 74 68 69 73 20 6f 6e 65 2e 0a 23 2d 2d to this one..#--
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 2d 2d 2d 2d 2d 2d 2d 2d ----------------
18d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
18e0: 2d 2d 0a 0a 53 43 5f 45 4e 41 42 4c 45 5f 54 48 --..SC_ENABLE_TH
18f0: 52 45 41 44 53 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d READS..#--------
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 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 0a 23 20 54 ------------.# T
1940: 68 65 20 73 74 61 74 65 6d 65 6e 74 20 62 65 6c he statement bel
1950: 6f 77 20 64 65 66 69 6e 65 73 20 61 20 63 6f 6c ow defines a col
1960: 6c 65 63 74 69 6f 6e 20 6f 66 20 73 79 6d 62 6f lection of symbo
1970: 6c 73 20 72 65 6c 61 74 65 64 20 74 6f 0a 23 20 ls related to.#
1980: 62 75 69 6c 64 69 6e 67 20 61 73 20 61 20 73 68 building as a sh
1990: 61 72 65 64 20 6c 69 62 72 61 72 79 20 69 6e 73 ared library ins
19a0: 74 65 61 64 20 6f 66 20 61 20 73 74 61 74 69 63 tead of a static
19b0: 20 6c 69 62 72 61 72 79 2e 0a 23 2d 2d 2d 2d 2d library..#-----
19c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
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 0a ---------------.
1a00: 0a 53 43 5f 45 4e 41 42 4c 45 5f 53 48 41 52 45 .SC_ENABLE_SHARE
1a10: 44 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d D..#------------
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 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1a50: 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 54 68 69 73 20 --------.# This
1a60: 6d 61 63 72 6f 20 66 69 67 75 72 65 73 20 6f 75 macro figures ou
1a70: 74 20 77 68 61 74 20 66 6c 61 67 73 20 74 6f 20 t what flags to
1a80: 75 73 65 20 77 69 74 68 20 74 68 65 20 63 6f 6d use with the com
1a90: 70 69 6c 65 72 2f 6c 69 6e 6b 65 72 0a 23 20 77 piler/linker.# w
1aa0: 68 65 6e 20 62 75 69 6c 64 69 6e 67 20 73 68 61 hen building sha
1ab0: 72 65 64 2f 73 74 61 74 69 63 20 64 65 62 75 67 red/static debug
1ac0: 2f 6f 70 74 69 6d 69 7a 65 64 20 6f 62 6a 65 63 /optimized objec
1ad0: 74 73 2e 20 20 54 68 69 73 20 69 6e 66 6f 72 6d ts. This inform
1ae0: 61 74 69 6f 6e 0a 23 20 69 73 20 61 6c 6c 20 74 ation.# is all t
1af0: 61 6b 65 6e 20 66 72 6f 6d 20 74 68 65 20 74 63 aken from the tc
1b00: 6c 43 6f 6e 66 69 67 2e 73 68 20 66 69 6c 65 2e lConfig.sh file.
1b10: 0a 23 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 2d 2d ----------------
1b50: 2d 2d 2d 2d 2d 2d 0a 0a 43 46 4c 41 47 53 5f 44 ------..CFLAGS_D
1b60: 45 42 55 47 3d 24 7b 54 43 4c 5f 43 46 4c 41 47 EBUG=${TCL_CFLAG
1b70: 53 5f 44 45 42 55 47 7d 0a 43 46 4c 41 47 53 5f S_DEBUG}.CFLAGS_
1b80: 4f 50 54 49 4d 49 5a 45 3d 24 7b 54 43 4c 5f 43 OPTIMIZE=${TCL_C
1b90: 46 4c 41 47 53 5f 4f 50 54 49 4d 49 5a 45 7d 0a FLAGS_OPTIMIZE}.
1ba0: 4c 44 46 4c 41 47 53 5f 44 45 42 55 47 3d 24 7b LDFLAGS_DEBUG=${
1bb0: 54 43 4c 5f 4c 44 46 4c 41 47 53 5f 44 45 42 55 TCL_LDFLAGS_DEBU
1bc0: 47 7d 0a 4c 44 46 4c 41 47 53 5f 4f 50 54 49 4d G}.LDFLAGS_OPTIM
1bd0: 49 5a 45 3d 24 7b 54 43 4c 5f 4c 44 46 4c 41 47 IZE=${TCL_LDFLAG
1be0: 53 5f 4f 50 54 49 4d 49 5a 45 7d 0a 53 48 4c 49 S_OPTIMIZE}.SHLI
1bf0: 42 5f 4c 44 3d 24 7b 54 43 4c 5f 53 48 4c 49 42 B_LD=${TCL_SHLIB
1c00: 5f 4c 44 7d 0a 53 54 4c 49 42 5f 4c 44 3d 24 7b _LD}.STLIB_LD=${
1c10: 54 43 4c 5f 53 54 4c 49 42 5f 4c 44 7d 0a 53 48 TCL_STLIB_LD}.SH
1c20: 4c 49 42 5f 43 46 4c 41 47 53 3d 24 7b 54 43 4c LIB_CFLAGS=${TCL
1c30: 5f 53 48 4c 49 42 5f 43 46 4c 41 47 53 7d 0a 0a _SHLIB_CFLAGS}..
1c40: 41 43 5f 53 55 42 53 54 28 43 46 4c 41 47 53 5f AC_SUBST(CFLAGS_
1c50: 44 45 42 55 47 29 0a 41 43 5f 53 55 42 53 54 28 DEBUG).AC_SUBST(
1c60: 43 46 4c 41 47 53 5f 4f 50 54 49 4d 49 5a 45 29 CFLAGS_OPTIMIZE)
1c70: 0a 41 43 5f 53 55 42 53 54 28 53 54 4c 49 42 5f .AC_SUBST(STLIB_
1c80: 4c 44 29 0a 41 43 5f 53 55 42 53 54 28 53 48 4c LD).AC_SUBST(SHL
1c90: 49 42 5f 4c 44 29 0a 41 43 5f 53 55 42 53 54 28 IB_LD).AC_SUBST(
1ca0: 53 48 4c 49 42 5f 43 46 4c 41 47 53 29 0a 41 43 SHLIB_CFLAGS).AC
1cb0: 5f 53 55 42 53 54 28 53 48 4c 49 42 5f 4c 44 46 _SUBST(SHLIB_LDF
1cc0: 4c 41 47 53 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d LAGS)..#--------
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 0a 23 20 53 ------------.# S
1d10: 65 74 20 74 68 65 20 64 65 66 61 75 6c 74 20 63 et the default c
1d20: 6f 6d 70 69 6c 65 72 20 73 77 69 74 63 68 65 73 ompiler switches
1d30: 20 62 61 73 65 64 20 6f 6e 20 74 68 65 20 2d 2d based on the --
1d40: 65 6e 61 62 6c 65 2d 73 79 6d 62 6f 6c 73 20 0a enable-symbols .
1d50: 23 20 6f 70 74 69 6f 6e 2e 0a 23 2d 2d 2d 2d 2d # option..#-----
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 0a ---------------.
1da0: 0a 53 43 5f 45 4e 41 42 4c 45 5f 53 59 4d 42 4f .SC_ENABLE_SYMBO
1db0: 4c 53 0a 0a 69 66 20 74 65 73 74 20 22 24 7b 53 LS..if test "${S
1dc0: 48 41 52 45 44 5f 42 55 49 4c 44 7d 22 20 3d 20 HARED_BUILD}" =
1dd0: 22 31 22 20 3b 20 74 68 65 6e 0a 20 20 20 20 43 "1" ; then. C
1de0: 46 4c 41 47 53 3d 27 24 7b 43 46 4c 41 47 53 5f FLAGS='${CFLAGS_
1df0: 44 45 46 41 55 4c 54 7d 20 24 7b 43 46 4c 41 47 DEFAULT} ${CFLAG
1e00: 53 5f 57 41 52 4e 49 4e 47 7d 20 24 7b 53 48 4c S_WARNING} ${SHL
1e10: 49 42 5f 43 46 4c 41 47 53 7d 27 0a 65 6c 73 65 IB_CFLAGS}'.else
1e20: 0a 20 20 20 20 43 46 4c 41 47 53 3d 27 24 7b 43 . CFLAGS='${C
1e30: 46 4c 41 47 53 5f 44 45 46 41 55 4c 54 7d 20 24 FLAGS_DEFAULT} $
1e40: 7b 43 46 4c 41 47 53 5f 57 41 52 4e 49 4e 47 7d {CFLAGS_WARNING}
1e50: 27 0a 66 69 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d '.fi..#---------
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 2d 2d 2d 2d 2d 2d 2d 0a 23 20 45 76 -----------.# Ev
1ea0: 65 72 79 6f 6e 65 20 73 68 6f 75 6c 64 20 62 65 eryone should be
1eb0: 20 6c 69 6e 6b 69 6e 67 20 61 67 61 69 6e 73 74 linking against
1ec0: 20 74 68 65 20 54 63 6c 20 73 74 75 62 20 6c 69 the Tcl stub li
1ed0: 62 72 61 72 79 2e 20 20 49 66 20 79 6f 75 0a 23 brary. If you.#
1ee0: 20 63 61 6e 27 74 20 66 6f 72 20 73 6f 6d 65 20 can't for some
1ef0: 72 65 61 73 6f 6e 2c 20 72 65 6d 6f 76 65 20 74 reason, remove t
1f00: 68 69 73 20 64 65 66 69 6e 69 74 69 6f 6e 2e 20 his definition.
1f10: 20 49 66 20 79 6f 75 20 61 72 65 6e 27 74 20 75 If you aren't u
1f20: 73 69 6e 67 0a 23 20 73 74 75 62 73 2c 20 79 6f sing.# stubs, yo
1f30: 75 20 61 6c 73 6f 20 6e 65 65 64 20 74 6f 20 6d u also need to m
1f40: 6f 64 69 66 79 20 74 68 65 20 53 48 4c 49 42 5f odify the SHLIB_
1f50: 4c 44 5f 4c 49 42 53 20 73 65 74 74 69 6e 67 20 LD_LIBS setting
1f60: 62 65 6c 6f 77 20 74 6f 0a 23 20 6c 69 6e 6b 20 below to.# link
1f70: 61 67 61 69 6e 73 74 20 74 68 65 20 6e 6f 6e 2d against the non-
1f80: 73 74 75 62 62 65 64 20 54 63 6c 20 6c 69 62 72 stubbed Tcl libr
1f90: 61 72 79 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ary..#----------
1fa0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1fb0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1fc0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
1fd0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f 44 ----------..AC_D
1fe0: 45 46 49 4e 45 28 55 53 45 5f 54 43 4c 5f 53 54 EFINE(USE_TCL_ST
1ff0: 55 42 53 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d UBS)..#---------
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 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 54 68 -----------.# Th
2040: 69 73 20 6d 61 63 72 6f 20 67 65 6e 65 72 61 74 is macro generat
2050: 65 73 20 61 20 6c 69 6e 65 20 74 6f 20 75 73 65 es a line to use
2060: 20 77 68 65 6e 20 62 75 69 6c 64 69 6e 67 20 61 when building a
2070: 20 6c 69 62 72 61 72 79 2e 20 20 49 74 0a 23 20 library. It.#
2080: 64 65 70 65 6e 64 73 20 6f 6e 20 76 61 6c 75 65 depends on value
2090: 73 20 73 65 74 20 62 79 20 74 68 65 20 53 43 5f s set by the SC_
20a0: 45 4e 41 42 4c 45 5f 53 48 41 52 45 44 2c 20 53 ENABLE_SHARED, S
20b0: 43 5f 45 4e 41 42 4c 45 5f 53 59 4d 42 4f 4c 53 C_ENABLE_SYMBOLS
20c0: 2c 0a 23 20 61 6e 64 20 53 43 5f 4c 4f 41 44 5f ,.# and SC_LOAD_
20d0: 54 43 4c 43 4f 4e 46 49 47 20 6d 61 63 72 6f 73 TCLCONFIG macros
20e0: 20 61 62 6f 76 65 2e 0a 23 2d 2d 2d 2d 2d 2d 2d above..#-------
20f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2100: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2110: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2120: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 53 -------------..S
2130: 43 5f 4d 41 4b 45 5f 4c 49 42 0a 0a 23 2d 2d 2d C_MAKE_LIB..#---
2140: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2150: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2160: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2170: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2180: 2d 0a 23 20 65 76 61 6c 20 74 68 65 73 65 20 74 -.# eval these t
2190: 77 6f 20 76 61 6c 75 65 73 20 74 6f 20 64 65 72 wo values to der
21a0: 65 66 65 72 65 6e 63 65 20 74 68 65 20 24 7b 44 eference the ${D
21b0: 42 47 58 7d 20 76 61 72 69 61 62 6c 65 2e 0a 23 BGX} variable..#
21c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
21d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
21e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
21f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2200: 2d 2d 2d 2d 0a 0a 65 76 61 6c 20 22 53 48 41 52 ----..eval "SHAR
2210: 45 44 5f 4c 49 42 5f 53 55 46 46 49 58 3d 24 7b ED_LIB_SUFFIX=${
2220: 54 43 4c 5f 53 48 41 52 45 44 5f 4c 49 42 5f 53 TCL_SHARED_LIB_S
2230: 55 46 46 49 58 7d 22 0a 65 76 61 6c 20 22 55 4e UFFIX}".eval "UN
2240: 53 48 41 52 45 44 5f 4c 49 42 5f 53 55 46 46 49 SHARED_LIB_SUFFI
2250: 58 3d 24 7b 54 43 4c 5f 55 4e 53 48 41 52 45 44 X=${TCL_UNSHARED
2260: 5f 4c 49 42 5f 53 55 46 46 49 58 7d 22 0a 0a 23 _LIB_SUFFIX}"..#
2270: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2280: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2290: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
22a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
22b0: 2d 2d 2d 2d 0a 23 20 53 68 61 72 65 64 20 6c 69 ----.# Shared li
22c0: 62 72 61 72 69 65 73 20 61 6e 64 20 73 74 61 74 braries and stat
22d0: 69 63 20 6c 69 62 72 61 72 69 65 73 20 68 61 76 ic libraries hav
22e0: 65 20 64 69 66 66 65 72 65 6e 74 20 6e 61 6d 65 e different name
22f0: 73 2e 0a 23 20 41 6c 73 6f 2c 20 77 69 6e 64 6f s..# Also, windo
2300: 77 73 20 6c 69 62 72 61 72 69 65 73 20 61 6e 64 ws libraries and
2310: 20 75 6e 69 78 20 6c 69 62 72 61 72 69 65 73 20 unix libraries
2320: 68 61 76 65 20 64 69 66 66 65 72 65 6e 74 20 6e have different n
2330: 61 6d 65 73 2e 0a 23 20 28 49 20 63 68 6f 73 65 ames..# (I chose
2340: 20 74 6f 20 75 73 65 20 74 68 65 20 6e 61 6d 65 to use the name
2350: 73 20 74 68 61 74 20 4f 70 65 6e 53 53 4c 20 75 s that OpenSSL u
2360: 73 65 73 20 61 73 20 69 74 73 20 64 65 66 61 75 ses as its defau
2370: 6c 74 20 6e 61 6d 65 73 2e 29 0a 23 2d 2d 2d 2d lt names.).#----
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 2d 2d 2d 2d 2d 2d ----------------
23b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
23c0: 0a 0a 63 61 73 65 20 22 60 75 6e 61 6d 65 20 2d ..case "`uname -
23d0: 73 60 22 20 69 6e 0a 20 20 20 20 2a 77 69 6e 33 s`" in. *win3
23e0: 32 2a 20 7c 20 2a 57 49 4e 33 32 2a 20 7c 20 2a 2* | *WIN32* | *
23f0: 43 59 47 57 49 4e 5f 4e 54 2a 7c 2a 43 59 47 57 CYGWIN_NT*|*CYGW
2400: 49 4e 5f 39 38 2a 7c 2a 43 59 47 57 49 4e 5f 39 IN_98*|*CYGWIN_9
2410: 35 2a 29 0a 09 69 66 20 74 65 73 74 20 22 24 7b 5*)..if test "${
2420: 53 48 41 52 45 44 5f 42 55 49 4c 44 7d 22 20 3d SHARED_BUILD}" =
2430: 20 22 31 22 20 3b 20 74 68 65 6e 0a 09 20 20 20 "1" ; then..
2440: 20 53 48 4c 49 42 5f 4c 44 5f 4c 49 42 53 3d 22 SHLIB_LD_LIBS="
2450: 5c 22 60 24 7b 43 59 47 50 41 54 48 7d 20 24 7b \"`${CYGPATH} ${
2460: 54 43 4c 5f 42 49 4e 5f 44 49 52 7d 2f 24 7b 54 TCL_BIN_DIR}/${T
2470: 43 4c 5f 53 54 55 42 5f 4c 49 42 5f 46 49 4c 45 CL_STUB_LIB_FILE
2480: 7d 60 5c 22 20 24 7b 54 43 4c 5f 53 48 4c 49 42 }`\" ${TCL_SHLIB
2490: 5f 4c 44 5f 4c 49 42 53 7d 20 5c 22 60 24 7b 43 _LD_LIBS} \"`${C
24a0: 59 47 50 41 54 48 7d 20 24 7b 53 53 4c 5f 4c 49 YGPATH} ${SSL_LI
24b0: 42 5f 44 49 52 7d 2f 73 73 6c 65 61 79 33 32 2e B_DIR}/ssleay32.
24c0: 6c 69 62 60 5c 22 20 5c 22 60 24 7b 43 59 47 50 lib`\" \"`${CYGP
24d0: 41 54 48 7d 20 24 7b 53 53 4c 5f 4c 49 42 5f 44 ATH} ${SSL_LIB_D
24e0: 49 52 7d 2f 6c 69 62 65 61 79 33 32 2e 6c 69 62 IR}/libeay32.lib
24f0: 60 5c 22 22 0a 09 20 20 20 20 65 76 61 6c 20 22 `\"".. eval "
2500: 24 7b 50 41 43 4b 41 47 45 7d 5f 4c 49 42 5f 46 ${PACKAGE}_LIB_F
2510: 49 4c 45 3d 24 7b 50 41 43 4b 41 47 45 7d 24 7b ILE=${PACKAGE}${
2520: 53 48 41 52 45 44 5f 4c 49 42 5f 53 55 46 46 49 SHARED_LIB_SUFFI
2530: 58 7d 22 0a 09 20 20 20 20 52 41 4e 4c 49 42 3d X}".. RANLIB=
2540: 3a 0a 09 65 6c 73 65 0a 09 20 20 20 20 65 76 61 :..else.. eva
2550: 6c 20 22 24 7b 50 41 43 4b 41 47 45 7d 5f 4c 49 l "${PACKAGE}_LI
2560: 42 5f 46 49 4c 45 3d 24 7b 50 41 43 4b 41 47 45 B_FILE=${PACKAGE
2570: 7d 24 7b 55 4e 53 48 41 52 45 44 5f 4c 49 42 5f }${UNSHARED_LIB_
2580: 53 55 46 46 49 58 7d 22 0a 09 66 69 0a 09 3b 3b SUFFIX}"..fi..;;
2590: 0a 20 20 20 20 2a 29 0a 09 69 66 20 74 65 73 74 . *)..if test
25a0: 20 22 24 7b 53 48 41 52 45 44 5f 42 55 49 4c 44 "${SHARED_BUILD
25b0: 7d 22 20 3d 20 22 31 22 20 3b 20 74 68 65 6e 0a }" = "1" ; then.
25c0: 09 20 20 20 20 53 48 4c 49 42 5f 4c 44 5f 4c 49 . SHLIB_LD_LI
25d0: 42 53 3d 22 24 7b 54 43 4c 5f 53 54 55 42 5f 4c BS="${TCL_STUB_L
25e0: 49 42 5f 53 50 45 43 7d 20 2d 4c 24 7b 53 53 4c IB_SPEC} -L${SSL
25f0: 5f 4c 49 42 5f 44 49 52 7d 20 2d 6c 73 73 6c 20 _LIB_DIR} -lssl
2600: 2d 4c 24 7b 53 53 4c 5f 4c 49 42 5f 44 49 52 7d -L${SSL_LIB_DIR}
2610: 20 2d 6c 63 72 79 70 74 6f 20 24 7b 47 43 43 50 -lcrypto ${GCCP
2620: 41 54 48 7d 20 24 7b 47 43 43 4c 49 42 7d 22 0a ATH} ${GCCLIB}".
2630: 09 20 20 20 20 65 76 61 6c 20 22 24 7b 50 41 43 . eval "${PAC
2640: 4b 41 47 45 7d 5f 4c 49 42 5f 46 49 4c 45 3d 6c KAGE}_LIB_FILE=l
2650: 69 62 24 7b 50 41 43 4b 41 47 45 7d 24 7b 53 48 ib${PACKAGE}${SH
2660: 41 52 45 44 5f 4c 49 42 5f 53 55 46 46 49 58 7d ARED_LIB_SUFFIX}
2670: 22 0a 09 20 20 20 20 52 41 4e 4c 49 42 3d 3a 0a ".. RANLIB=:.
2680: 09 65 6c 73 65 0a 09 20 20 20 20 65 76 61 6c 20 .else.. eval
2690: 22 24 7b 50 41 43 4b 41 47 45 7d 5f 4c 49 42 5f "${PACKAGE}_LIB_
26a0: 46 49 4c 45 3d 6c 69 62 24 7b 50 41 43 4b 41 47 FILE=lib${PACKAG
26b0: 45 7d 24 7b 55 4e 53 48 41 52 45 44 5f 4c 49 42 E}${UNSHARED_LIB
26c0: 5f 53 55 46 46 49 58 7d 22 0a 09 66 69 0a 09 3b _SUFFIX}"..fi..;
26d0: 3b 0a 65 73 61 63 0a 0a 0a 41 43 5f 53 55 42 53 ;.esac...AC_SUBS
26e0: 54 28 74 6c 73 5f 4c 49 42 5f 46 49 4c 45 29 0a T(tls_LIB_FILE).
26f0: 41 43 5f 53 55 42 53 54 28 53 48 4c 49 42 5f 4c AC_SUBST(SHLIB_L
2700: 44 5f 4c 49 42 53 29 0a 0a 23 2d 2d 2d 2d 2d 2d D_LIBS)..#------
2710: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2720: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2730: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2740: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 --------------.#
2750: 20 46 69 6e 64 20 74 63 6c 73 68 20 73 6f 20 74 Find tclsh so t
2760: 68 61 74 20 77 65 20 63 61 6e 20 72 75 6e 20 70 hat we can run p
2770: 6b 67 5f 6d 6b 49 6e 64 65 78 20 74 6f 20 67 65 kg_mkIndex to ge
2780: 6e 65 72 61 74 65 20 74 68 65 20 70 6b 67 49 6e nerate the pkgIn
2790: 64 65 78 2e 74 63 6c 0a 23 20 66 69 6c 65 20 64 dex.tcl.# file d
27a0: 75 72 69 6e 67 20 74 68 65 20 69 6e 73 74 61 6c uring the instal
27b0: 6c 20 70 72 6f 63 65 73 73 2e 20 20 44 6f 6e 27 l process. Don'
27c0: 74 20 72 75 6e 20 74 68 65 20 54 43 4c 53 48 5f t run the TCLSH_
27d0: 50 52 4f 47 20 74 68 72 6f 75 67 68 0a 23 20 24 PROG through.# $
27e0: 7b 43 59 47 50 41 54 48 7d 20 62 65 63 61 75 73 {CYGPATH} becaus
27f0: 65 20 69 74 27 73 20 62 65 69 6e 67 20 75 73 65 e it's being use
2800: 64 20 64 69 72 65 63 74 6c 79 20 62 79 20 6d 61 d directly by ma
2810: 6b 65 2e 0a 23 20 52 65 71 75 69 72 65 20 74 68 ke..# Require th
2820: 61 74 20 77 65 20 75 73 65 20 61 20 74 63 6c 73 at we use a tcls
2830: 68 20 73 68 65 6c 6c 20 76 65 72 73 69 6f 6e 20 h shell version
2840: 38 2e 32 20 6f 72 20 6c 61 74 65 72 20 73 69 6e 8.2 or later sin
2850: 63 65 20 65 61 72 6c 69 65 72 0a 23 20 76 65 72 ce earlier.# ver
2860: 73 69 6f 6e 73 20 68 61 76 65 20 62 75 67 73 20 sions have bugs
2870: 69 6e 20 74 68 65 20 70 6b 67 5f 6d 6b 49 6e 64 in the pkg_mkInd
2880: 65 78 20 72 6f 75 74 69 6e 65 2e 0a 23 2d 2d 2d ex routine..#---
2890: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
28a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
28b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
28c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
28d0: 2d 0a 0a 53 43 5f 50 52 4f 47 5f 54 43 4c 53 48 -..SC_PROG_TCLSH
28e0: 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ..#-------------
28f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2900: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2910: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2920: 2d 2d 2d 2d 2d 2d 2d 0a 23 20 46 69 6e 61 6c 6c -------.# Finall
2930: 79 2c 20 73 75 62 73 74 69 74 75 74 65 20 61 6c y, substitute al
2940: 6c 20 6f 66 20 74 68 65 20 76 61 72 69 6f 75 73 l of the various
2950: 20 76 61 6c 75 65 73 20 69 6e 74 6f 20 74 68 65 values into the
2960: 20 4d 61 6b 65 66 69 6c 65 2e 0a 23 2d 2d 2d 2d Makefile..#----
2970: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2980: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
2990: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
29a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
29b0: 0a 0a 41 43 5f 4f 55 54 50 55 54 28 5b 4d 61 6b ..AC_OUTPUT([Mak
29c0: 65 66 69 6c 65 20 5c 0a 09 70 6b 67 49 6e 64 65 efile \..pkgInde
29d0: 78 2e 74 63 6c 5d 29 0a x.tcl]).