Artifact
00e446188b2d2bc0976a9ba0cf291b9e9c5e4ab0:
0000: 64 6e 6c 20 44 65 66 69 6e 65 20 6f 75 72 73 65 dnl Define ourse
0010: 6c 76 65 73 0a 41 43 5f 49 4e 49 54 28 74 63 6c lves.AC_INIT(tcl
0020: 74 6c 73 2c 20 40 40 56 45 52 53 40 40 29 0a 0a tls, @@VERS@@)..
0030: 64 6e 6c 20 43 68 65 63 6b 73 20 66 6f 72 20 70 dnl Checks for p
0040: 72 6f 67 72 61 6d 73 2e 0a 41 43 5f 50 52 4f 47 rograms..AC_PROG
0050: 5f 43 43 0a 41 43 5f 50 52 4f 47 5f 4d 41 4b 45 _CC.AC_PROG_MAKE
0060: 5f 53 45 54 0a 41 43 5f 50 52 4f 47 5f 49 4e 53 _SET.AC_PROG_INS
0070: 54 41 4c 4c 0a 41 43 5f 47 4e 55 5f 53 4f 55 52 TALL.AC_GNU_SOUR
0080: 43 45 0a 0a 64 6e 6c 20 44 65 74 65 72 6d 69 6e CE..dnl Determin
0090: 65 20 73 79 73 74 65 6d 20 69 6e 66 6f 72 6d 61 e system informa
00a0: 74 69 6f 6e 0a 44 43 5f 43 48 4b 5f 4f 53 5f 49 tion.DC_CHK_OS_I
00b0: 4e 46 4f 0a 0a 64 6e 6c 20 4c 6f 6f 6b 20 66 6f NFO..dnl Look fo
00c0: 72 20 61 70 70 72 6f 70 72 69 61 74 65 20 68 65 r appropriate he
00d0: 61 64 65 72 73 0a 41 43 5f 43 48 45 43 4b 5f 48 aders.AC_CHECK_H
00e0: 45 41 44 45 52 53 28 75 6e 69 73 74 64 2e 68 20 EADERS(unistd.h
00f0: 73 74 64 6c 69 62 2e 68 20 73 74 72 69 6e 67 2e stdlib.h string.
0100: 68 20 73 74 72 69 6e 67 73 2e 68 29 0a 0a 64 6e h strings.h)..dn
0110: 6c 20 50 65 72 66 6f 72 6d 20 54 63 6c 20 45 78 l Perform Tcl Ex
0120: 74 65 6e 73 69 6f 6e 20 72 65 71 75 69 72 65 64 tension required
0130: 20 73 74 75 66 66 0a 54 43 4c 45 58 54 5f 49 4e stuff.TCLEXT_IN
0140: 49 54 0a 0a 69 66 20 74 65 73 74 20 22 24 54 43 IT..if test "$TC
0150: 4c 45 58 54 5f 42 55 49 4c 44 22 20 21 3d 20 27 LEXT_BUILD" != '
0160: 73 74 61 74 69 63 27 3b 20 74 68 65 6e 0a 09 64 static'; then..d
0170: 6e 6c 20 44 65 74 65 72 6d 69 6e 65 20 68 6f 77 nl Determine how
0180: 20 74 6f 20 6d 61 6b 65 20 73 68 61 72 65 64 20 to make shared
0190: 6f 62 6a 65 63 74 73 0a 09 44 43 5f 47 45 54 5f objects..DC_GET_
01a0: 53 48 4f 42 4a 46 4c 41 47 53 0a 0a 09 45 58 54 SHOBJFLAGS...EXT
01b0: 45 4e 53 49 4f 4e 5f 54 41 52 47 45 54 3d 22 74 ENSION_TARGET="t
01c0: 63 6c 74 6c 73 2e 24 7b 53 48 4f 42 4a 45 58 54 cltls.${SHOBJEXT
01d0: 7d 22 0a 65 6c 73 65 0a 09 41 43 5f 43 48 45 43 }".else..AC_CHEC
01e0: 4b 5f 54 4f 4f 4c 28 5b 41 52 5d 2c 20 5b 61 72 K_TOOL([AR], [ar
01f0: 5d 2c 20 5b 66 61 6c 73 65 5d 29 0a 09 41 43 5f ], [false])..AC_
0200: 43 48 45 43 4b 5f 54 4f 4f 4c 28 5b 52 41 4e 4c CHECK_TOOL([RANL
0210: 49 42 5d 2c 20 5b 72 61 6e 6c 69 62 5d 2c 20 5b IB], [ranlib], [
0220: 3a 5d 29 0a 09 45 58 54 45 4e 53 49 4f 4e 5f 54 :])..EXTENSION_T
0230: 41 52 47 45 54 3d 22 74 63 6c 74 6c 73 2e 61 22 ARGET="tcltls.a"
0240: 0a 66 69 0a 41 43 5f 53 55 42 53 54 28 45 58 54 .fi.AC_SUBST(EXT
0250: 45 4e 53 49 4f 4e 5f 54 41 52 47 45 54 29 0a 0a ENSION_TARGET)..
0260: 64 6e 6c 20 50 72 6f 64 75 63 65 20 6f 75 74 70 dnl Produce outp
0270: 75 74 0a 41 43 5f 4f 55 54 50 55 54 28 4d 61 6b ut.AC_OUTPUT(Mak
0280: 65 66 69 6c 65 20 70 6b 67 49 6e 64 65 78 2e 74 efile pkgIndex.t
0290: 63 6c 29 0a cl).