libtcl.m4 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. dnl libtcl.m4
  2. dnl macros autoconf uses when building configure from configure.in
  3. dnl These are taken from Eggdrop
  4. dnl
  5. dnl EGG_TCL_OPTIONS()
  6. dnl
  7. AC_DEFUN([EGG_TCL_OPTIONS],
  8. [
  9. AC_ARG_WITH(tcllib, [AS_HELP_STRING([--with-tcllib=PATH],[full path to Tcl library])], [tcllibname="$withval"])
  10. AC_ARG_WITH(tclinc, [AS_HELP_STRING([--with-tclinc=PATH],[full path to Tcl header])], [tclincname="$withval"])
  11. MY_ARG_DISABLE([script_tcl], [TCL Script])
  12. WARN=0
  13. # Make sure either both or neither $tcllibname and $tclincname are set
  14. if test "x$tcllibname" != x; then
  15. if test "x$tclincname" = x; then
  16. WARN=1
  17. tcllibname=""
  18. TCLLIB=""
  19. TCLINC=""
  20. fi
  21. else
  22. if test "x$tclincname" != x; then
  23. WARN=1
  24. tclincname=""
  25. TCLLIB=""
  26. TCLINC=""
  27. fi
  28. fi
  29. if test "$WARN" = 1; then
  30. cat << 'EOF' >&2
  31. configure: WARNING:
  32. You must specify both --with-tcllib and --with-tclinc for either to work.
  33. configure will now attempt to autodetect both the Tcl library and header.
  34. EOF
  35. fi
  36. ])
  37. dnl EGG_TCL_ENV()
  38. dnl
  39. AC_DEFUN([EGG_TCL_ENV],
  40. [
  41. WARN=0
  42. # Make sure either both or neither $TCLLIB and $TCLINC are set
  43. if test "x$TCLLIB" != x; then
  44. if test "x$TCLINC" = x; then
  45. WARN=1
  46. WVAR1=TCLLIB
  47. WVAR2=TCLINC
  48. TCLLIB=""
  49. fi
  50. else
  51. if test "x$TCLINC" != x; then
  52. WARN=1
  53. WVAR1=TCLINC
  54. WVAR2=TCLLIB
  55. TCLINC=""
  56. fi
  57. fi
  58. if test "$WARN" = 1; then
  59. cat << EOF >&2
  60. configure: WARNING:
  61. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  62. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  63. configure will now attempt to autodetect both the Tcl library and header.
  64. EOF
  65. fi
  66. ])
  67. dnl EGG_TCL_WITH_TCLLIB()
  68. dnl
  69. AC_DEFUN([EGG_TCL_WITH_TCLLIB],
  70. [
  71. # Look for Tcl library: if $tcllibname is set, check there first
  72. if test "x$tcllibname" != x; then
  73. if test -f "$tcllibname" && test -r "$tcllibname"; then
  74. TCLLIB=`echo $tcllibname | sed 's%/[[^/]][[^/]]*$%%'`
  75. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  76. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split([$]1, i, "."); print i[[j]]}'`"
  77. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  78. else
  79. cat << EOF >&2
  80. configure: WARNING:
  81. The file '$tcllibname' given to option --with-tcllib is not valid.
  82. configure will now attempt to autodetect both the Tcl library and header.
  83. EOF
  84. tcllibname=""
  85. tclincname=""
  86. TCLLIB=""
  87. TCLLIBFN=""
  88. TCLINC=""
  89. TCLINCFN=""
  90. fi
  91. fi
  92. ])
  93. dnl EGG_TCL_WITH_TCLINC()
  94. dnl
  95. AC_DEFUN([EGG_TCL_WITH_TCLINC],
  96. [
  97. # Look for Tcl header: if $tclincname is set, check there first
  98. if test "x$tclincname" != x; then
  99. if test -f "$tclincname" && test -r "$tclincname"; then
  100. TCLINC=`echo $tclincname | sed 's%/[[^/]][[^/]]*$%%'`
  101. TCLINCFN=`$BASENAME $tclincname`
  102. else
  103. cat << EOF >&2
  104. configure: WARNING:
  105. The file '$tclincname' given to option --with-tclinc is not valid.
  106. configure will now attempt to autodetect both the Tcl library and header.
  107. EOF
  108. tcllibname=""
  109. tclincname=""
  110. TCLLIB=""
  111. TCLLIBFN=""
  112. TCLINC=""
  113. TCLINCFN=""
  114. fi
  115. fi
  116. ])
  117. dnl EGG_TCL_FIND_LIBRARY()
  118. dnl
  119. AC_DEFUN([EGG_TCL_FIND_LIBRARY],
  120. [
  121. # Look for Tcl library: if $TCLLIB is set, check there first
  122. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  123. if test -d "$TCLLIB"; then
  124. for tcllibfns in $tcllibnames; do
  125. for tcllibext in $tcllibextensions; do
  126. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  127. TCLLIBFN="${tcllibfns}${tcllibext}"
  128. TCLLIBEXT="$tcllibext"
  129. TCLLIBFNS="$tcllibfns"
  130. break 2
  131. fi
  132. done
  133. done
  134. fi
  135. if test "x$TCLLIBFN" = x; then
  136. cat << 'EOF' >&2
  137. configure: WARNING:
  138. Environment variable TCLLIB was set, but incorrectly.
  139. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  140. configure will now attempt to autodetect both the Tcl library and header.
  141. EOF
  142. TCLLIB=""
  143. TCLLIBFN=""
  144. TCLINC=""
  145. TCLINCFN=""
  146. fi
  147. fi
  148. ])
  149. dnl EGG_TCL_FIND_HEADER()
  150. dnl
  151. AC_DEFUN([EGG_TCL_FIND_HEADER],
  152. [
  153. # Look for Tcl header: if $TCLINC is set, check there first
  154. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  155. if test -d "$TCLINC"; then
  156. for tclheaderfn in $tclheadernames; do
  157. if test -r "${TCLINC}/${tclheaderfn}"; then
  158. TCLINCFN="$tclheaderfn"
  159. break
  160. fi
  161. done
  162. fi
  163. if test "x$TCLINCFN" = x; then
  164. cat << 'EOF' >&2
  165. configure: WARNING:
  166. Environment variable TCLINC was set, but incorrectly.
  167. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  168. configure will now attempt to autodetect both the Tcl library and header.
  169. EOF
  170. TCLLIB=""
  171. TCLLIBFN=""
  172. TCLINC=""
  173. TCLINCFN=""
  174. fi
  175. fi
  176. ])
  177. dnl EGG_TCL_CHECK_LIBRARY()
  178. dnl
  179. AC_DEFUN([EGG_TCL_CHECK_LIBRARY],
  180. [
  181. if test "$enable_script_tcl" = "yes"; then
  182. AC_MSG_CHECKING([for Tcl library])
  183. # Attempt autodetect for $TCLLIBFN if it's not set
  184. if test "x$TCLLIBFN" != x; then
  185. AC_MSG_RESULT([using ${TCLLIB}/lib${TCLLIBFN}])
  186. else
  187. for tcllibfns in $tcllibnames; do
  188. for tcllibext in $tcllibextensions; do
  189. for tcllibpath in $tcllibpaths; do
  190. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  191. AC_MSG_RESULT([found ${tcllibpath}/lib${tcllibfns}${tcllibext}])
  192. TCLLIB="$tcllibpath"
  193. TCLLIBFN="${tcllibfns}${tcllibext}"
  194. TCLLIBEXT="$tcllibext"
  195. TCLLIBFNS="$tcllibfns"
  196. break 3
  197. fi
  198. done
  199. done
  200. done
  201. fi
  202. # Show if $TCLLIBFN wasn't found
  203. if test "x$TCLLIBFN" = x; then
  204. AC_MSG_RESULT([not found])
  205. fi
  206. fi
  207. AC_SUBST(TCLLIB)
  208. AC_SUBST(TCLLIBFN)
  209. ])
  210. dnl EGG_TCL_CHECK_HEADER()
  211. dnl
  212. AC_DEFUN([EGG_TCL_CHECK_HEADER],
  213. [
  214. if test "$enable_script_tcl" = "yes"; then
  215. AC_MSG_CHECKING([for Tcl header])
  216. # Attempt autodetect for $TCLINCFN if it's not set
  217. if test "x$TCLINCFN" != x; then
  218. AC_MSG_RESULT([using ${TCLINC}/${TCLINCFN}])
  219. else
  220. for tclheaderpath in $tclheaderpaths; do
  221. for tclheaderfn in $tclheadernames; do
  222. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  223. AC_MSG_RESULT([found ${tclheaderpath}/${tclheaderfn}])
  224. TCLINC="$tclheaderpath"
  225. TCLINCFN="$tclheaderfn"
  226. break 2
  227. fi
  228. done
  229. done
  230. # FreeBSD hack ...
  231. if test "x$TCLINCFN" = x; then
  232. for tcllibfns in $tcllibnames; do
  233. for tclheaderpath in $tclheaderpaths; do
  234. for tclheaderfn in $tclheadernames; do
  235. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  236. AC_MSG_RESULT([found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}])
  237. TCLINC="${tclheaderpath}/${tcllibfns}"
  238. TCLINCFN="$tclheaderfn"
  239. break 3
  240. fi
  241. done
  242. done
  243. done
  244. fi
  245. fi
  246. TCL_INCLUDES=""
  247. if ! test "x$TCLINC" = x; then
  248. TCL_INCLUDES="-I$TCLINC"
  249. fi
  250. if test "x$TCLINCFN" = x; then
  251. AC_MSG_RESULT([not found])
  252. fi
  253. fi
  254. AC_SUBST(TCL_INCLUDES)
  255. AC_SUBST(TCLINCFN)
  256. ])
  257. dnl EGG_CACHE_UNSET(CACHE-ID)
  258. dnl
  259. dnl Unsets a certain cache item. Typically called before using the AC_CACHE_*()
  260. dnl macros.
  261. dnl
  262. AC_DEFUN([EGG_CACHE_UNSET], [unset $1])
  263. dnl EGG_TCL_DETECT_CHANGE()
  264. dnl
  265. dnl Detect whether the Tcl system has changed since our last configure run.
  266. dnl Set egg_tcl_changed accordingly.
  267. dnl
  268. dnl Tcl related feature and version checks should re-run their checks as soon
  269. dnl as egg_tcl_changed is set to "yes".
  270. dnl
  271. AC_DEFUN([EGG_TCL_DETECT_CHANGE],
  272. [
  273. if test "$enable_script_tcl" = "yes"; then
  274. dnl NOTE: autoconf 2.50+ disables config.cache by default.
  275. dnl These checks don't do us much good if cache is disabled.
  276. AC_MSG_CHECKING([whether the Tcl system has changed])
  277. egg_tcl_changed="yes"
  278. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  279. if test "$egg_tcl_id" != ":::"; then
  280. egg_tcl_cached="yes"
  281. AC_CACHE_VAL(egg_cv_var_tcl_id, [
  282. egg_cv_var_tcl_id="$egg_tcl_id"
  283. egg_tcl_cached="no"
  284. ])
  285. if test "$egg_tcl_cached" = yes; then
  286. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  287. egg_tcl_changed="no"
  288. else
  289. egg_cv_var_tcl_id="$egg_tcl_id"
  290. fi
  291. fi
  292. fi
  293. if test "$egg_tcl_changed" = yes; then
  294. AC_MSG_RESULT([yes])
  295. else
  296. AC_MSG_RESULT([no])
  297. fi
  298. fi
  299. ])
  300. dnl EGG_TCL_CHECK_VERSION()
  301. dnl
  302. AC_DEFUN([EGG_TCL_CHECK_VERSION],
  303. [
  304. if test "$enable_script_tcl" = "yes"; then
  305. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  306. TCL_FOUND=0
  307. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  308. TCL_FOUND=1
  309. # Check Tcl's version
  310. if test "$egg_tcl_changed" = yes; then
  311. EGG_CACHE_UNSET(egg_cv_var_tcl_version)
  312. fi
  313. AC_MSG_CHECKING([for Tcl version])
  314. AC_CACHE_VAL(egg_cv_var_tcl_version, [
  315. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", [$]3); print [$]3}'`
  316. ])
  317. if test "x$egg_cv_var_tcl_version" != x; then
  318. AC_MSG_RESULT([$egg_cv_var_tcl_version])
  319. else
  320. AC_MSG_RESULT([not found])
  321. TCL_FOUND=0
  322. fi
  323. # Check Tcl's patch level (if available)
  324. if test "$egg_tcl_changed" = yes; then
  325. EGG_CACHE_UNSET(egg_cv_var_tcl_patch_level)
  326. fi
  327. AC_MSG_CHECKING([for Tcl patch level])
  328. AC_CACHE_VAL(egg_cv_var_tcl_patch_level, [
  329. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", [$]3); print [$]3}'`"
  330. ])
  331. if test "x$egg_cv_var_tcl_patch_level" != x; then
  332. AC_MSG_RESULT([$egg_cv_var_tcl_patch_level])
  333. else
  334. egg_cv_var_tcl_patch_level="unknown"
  335. AC_MSG_RESULT([unknown])
  336. fi
  337. fi
  338. # Check if we found Tcl's version
  339. if test "$TCL_FOUND" = 0; then
  340. cat << 'EOF' >&2
  341. configure: error:
  342. Tcl cannot be found on this system.
  343. Tcl is not required. Wraith will be compiled without TCL support. If you
  344. already have Tcl installed on this system, please specify the path by
  345. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  346. --with-tclinc='/path/to/tcl.h' options.
  347. EOF
  348. enable_script_tcl="no"
  349. else
  350. AC_DEFINE(HAVE_LIBTCL, 1, [Define if you have support for libtcl])
  351. fi
  352. fi
  353. ])
  354. dnl EGG_TCL_CHECK_PRE70()
  355. dnl
  356. AC_DEFUN([EGG_TCL_CHECK_PRE70],
  357. [
  358. if test "$enable_script_tcl" = "yes"; then
  359. # Is this version of Tcl too old for us to use ?
  360. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split([$]1, i, "."); if (i[[1]] < 7) print "yes"; else print "no"}'`
  361. if test "$TCL_VER_PRE70" = yes; then
  362. cat << EOF >&2
  363. configure: error:
  364. Your Tcl version is much too old for Wraith to use. You should
  365. download and compile a more recent version. The most reliable
  366. current version is $tclrecommendver and can be downloaded from
  367. ${tclrecommendsite}.
  368. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  369. for more information.
  370. EOF
  371. exit 1
  372. fi
  373. fi
  374. ])
  375. dnl EGG_TCL_TESTLIBS()
  376. dnl
  377. AC_DEFUN([EGG_TCL_TESTLIBS],
  378. [
  379. # Set variables for Tcl library tests
  380. TCL_TEST_LIB="$TCLLIBFNS"
  381. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  382. if test "x$ac_cv_lib_pthread" != x; then
  383. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  384. fi
  385. ])
  386. dnl EGG_TCL_CHECK_FREE()
  387. dnl
  388. AC_DEFUN([EGG_TCL_CHECK_FREE],
  389. [
  390. if test "$enable_script_tcl" = "yes"; then
  391. if test "$egg_tcl_changed" = yes; then
  392. EGG_CACHE_UNSET(egg_cv_var_tcl_free)
  393. fi
  394. # Check for Tcl_Free()
  395. AC_CHECK_LIB($TCL_TEST_LIB, Tcl_Free, [egg_cv_var_tcl_free="yes"], [egg_cv_var_tcl_free="no"], $TCL_TEST_OTHERLIBS)
  396. if test "$egg_cv_var_tcl_free" = yes; then
  397. AC_DEFINE(HAVE_TCL_FREE, 1, [Define for Tcl that has Tcl_Free() (7.5p1 and later).])
  398. fi
  399. fi
  400. ])
  401. dnl EGG_TCL_CHECK_GETCURRENTTHREAD
  402. dnl
  403. AC_DEFUN([EGG_TCL_CHECK_GETCURRENTTHREAD],
  404. [
  405. if test "$enable_script_tcl" = "yes"; then
  406. if test "$egg_tcl_changed" = yes; then
  407. EGG_CACHE_UNSET(egg_cv_var_tcl_getcurrentthread)
  408. fi
  409. # Check for Tcl_GetCurrentThread()
  410. AC_CHECK_LIB($TCL_TEST_LIB, Tcl_GetCurrentThread, [egg_cv_var_tcl_getcurrentthread="yes"], [egg_cv_var_tcl_getcurrentthread="no"], $TCL_TEST_OTHERLIBS)
  411. if test "$egg_cv_var_tcl_getcurrentthread" = yes; then
  412. AC_DEFINE(HAVE_TCL_GETCURRENTTHREAD, 1, [Define for Tcl that has Tcl_GetCurrentThread() (8.1a2 and later).])
  413. # Add pthread library to $LIBS if we need it for threaded Tcl
  414. if test "x$ac_cv_lib_pthread" != x; then
  415. EGG_APPEND_VAR(LIBS, $ac_cv_lib_pthread)
  416. fi
  417. fi
  418. fi
  419. ])
  420. dnl EGG_TCL_CHECK_GETTHREADDATA
  421. dnl
  422. AC_DEFUN([EGG_TCL_CHECK_GETTHREADDATA],
  423. [
  424. if test "$enable_script_tcl" = "yes"; then
  425. if test "$egg_tcl_changed" = yes; then
  426. EGG_CACHE_UNSET(egg_cv_var_tcl_getthreaddata)
  427. fi
  428. # Check for Tcl_GetThreadData()
  429. AC_CHECK_LIB($TCL_TEST_LIB, Tcl_GetThreadData, [egg_cv_var_tcl_getthreaddata="yes"], [egg_cv_var_tcl_getthreaddata="no"], $TCL_TEST_OTHERLIBS)
  430. if test "$egg_cv_var_tcl_getthreaddata" = yes; then
  431. AC_DEFINE(HAVE_TCL_GETTHREADDATA, 1, [Define for Tcl that has Tcl_GetThreadData() (8.1a2 and later).])
  432. fi
  433. fi
  434. ])
  435. dnl EGG_TCL_CHECK_SETNOTIFIER
  436. dnl
  437. AC_DEFUN([EGG_TCL_CHECK_SETNOTIFIER],
  438. [
  439. if test "$enable_script_tcl" = "yes"; then
  440. if test "$egg_tcl_changed" = yes; then
  441. EGG_CACHE_UNSET(egg_cv_var_tcl_setnotifier)
  442. fi
  443. # Check for Tcl_SetNotifier()
  444. AC_CHECK_LIB($TCL_TEST_LIB, Tcl_SetNotifier, [egg_cv_var_tcl_setnotifier="yes"], [egg_cv_var_tcl_setnotifier="no"], $TCL_TEST_OTHERLIBS)
  445. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  446. AC_DEFINE(HAVE_TCL_SETNOTIFIER, 1, [Define for Tcl that has Tcl_SetNotifier() (8.2b1 and later).])
  447. fi
  448. fi
  449. ])
  450. dnl EGG_TCL_LIB_REQS()
  451. dnl
  452. AC_DEFUN([EGG_TCL_LIB_REQS],
  453. [
  454. if test "$enable_script_tcl" = "yes"; then
  455. if test "$EGG_CYGWIN" = yes; then
  456. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  457. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  458. else
  459. if test "$TCLLIBEXT" != ".a"; then
  460. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  461. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  462. else
  463. # Set default make as static for unshared Tcl library
  464. if test "$DEFAULT_MAKE" != static; then
  465. cat << 'EOF' >&2
  466. configure: WARNING:
  467. Your Tcl library is not a shared lib.
  468. configure will now set default make type to static.
  469. EOF
  470. DEFAULT_MAKE="static"
  471. AC_SUBST(DEFAULT_MAKE)
  472. fi
  473. # Are we using a pre 7.4 Tcl version ?
  474. TCL_VER_PRE74=`echo $egg_cv_var_tcl_version | $AWK '{split([$]1, i, "."); if (((i[[1]] == 7) && (i[[2]] < 4)) || (i[[1]] < 7)) print "yes"; else print "no"}'`
  475. if test "$TCL_VER_PRE74" = no; then
  476. # Was the --with-tcllib option given ?
  477. if test "x$tcllibname" != x; then
  478. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  479. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  480. else
  481. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  482. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  483. fi
  484. else
  485. cat << EOF >&2
  486. configure: WARNING:
  487. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  488. There are known problems, but we will attempt to work around them.
  489. EOF
  490. TCL_REQS="libtcle.a"
  491. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  492. fi
  493. fi
  494. fi
  495. fi
  496. AC_SUBST(TCL_REQS)
  497. AC_SUBST(TCL_LIBS)
  498. ])