1 |
578 |
markom |
dnl This file is an input file used by the GNU "autoconf" program to
|
2 |
|
|
dnl generate the file "configure", which is run to configure the
|
3 |
|
|
dnl Makefile in this directory.
|
4 |
|
|
|
5 |
|
|
AC_INIT(../../generic/tixInit.c)
|
6 |
|
|
|
7 |
|
|
#--------------------------------------------------------------------
|
8 |
|
|
# Remove the ./config.cache file and rerun configure if
|
9 |
|
|
# the cache file belong to a different architecture
|
10 |
|
|
#----------------------------------------------------------------------
|
11 |
|
|
AC_CHECK_PROG(UNAME, uname -a, [uname -a], "")
|
12 |
|
|
if test "$UNAME" = ""; then
|
13 |
|
|
AC_CHECK_PROG(UNAME, uname, [uname], "")
|
14 |
|
|
fi
|
15 |
|
|
|
16 |
|
|
if test "$UNAME" != ""; then
|
17 |
|
|
uname=`$UNAME`
|
18 |
|
|
AC_MSG_CHECKING([cached value of \$uname])
|
19 |
|
|
AC_CACHE_VAL(ac_cv_prog_uname, [nocached=1 ac_cv_prog_uname=`$UNAME`])
|
20 |
|
|
if test "$nocached" = "1"; then
|
21 |
|
|
AC_MSG_RESULT(no)
|
22 |
|
|
else
|
23 |
|
|
AC_MSG_RESULT(yes)
|
24 |
|
|
fi
|
25 |
|
|
|
26 |
|
|
if test "$uname" != "$ac_cv_prog_uname"; then
|
27 |
|
|
echo "Running on a different machine/architecture. Can't use cached values"
|
28 |
|
|
echo "Removing config.cache and running configure again ..."
|
29 |
|
|
rm -f config.cache
|
30 |
|
|
CMDLINE="$0 $*"
|
31 |
|
|
exec $CMDLINE
|
32 |
|
|
fi
|
33 |
|
|
fi
|
34 |
|
|
|
35 |
|
|
#----------------------------------------------------------------------
|
36 |
|
|
# We don't want to use any relative path because we need to generate
|
37 |
|
|
# Makefile's in subdirectories
|
38 |
|
|
#----------------------------------------------------------------------
|
39 |
|
|
if test "$INSTALL" = "./install.sh"; then
|
40 |
|
|
INSTALL=`pwd`/install.sh
|
41 |
|
|
fi
|
42 |
|
|
|
43 |
|
|
#--------------------------------------------------------------------
|
44 |
|
|
# Version information about this TIX release.
|
45 |
|
|
#--------------------------------------------------------------------
|
46 |
|
|
|
47 |
|
|
TIX_VERSION=4.1
|
48 |
|
|
TIX_MAJOR_VERSION=4
|
49 |
|
|
TIX_MINOR_VERSION=1
|
50 |
|
|
|
51 |
|
|
BIN_VERSION=${TIX_VERSION}.7.6
|
52 |
|
|
|
53 |
|
|
|
54 |
|
|
VERSION=${BIN_VERSION}
|
55 |
|
|
|
56 |
|
|
#--------------------------------------------------------------------
|
57 |
|
|
# See if user wants to use gcc to compile Tix. This option must
|
58 |
|
|
# be used before any checking that uses the C compiler.
|
59 |
|
|
#--------------------------------------------------------------------
|
60 |
|
|
|
61 |
|
|
AC_ARG_ENABLE(gcc, [ --enable-gcc allow use of gcc if available],
|
62 |
|
|
[tix_ok=$enableval], [tix_ok=no])
|
63 |
|
|
if test "$tix_ok" = "yes"; then
|
64 |
|
|
AC_PROG_CC
|
65 |
|
|
else
|
66 |
|
|
CC=${CC-cc}
|
67 |
|
|
AC_SUBST(CC)
|
68 |
|
|
fi
|
69 |
|
|
|
70 |
|
|
AC_PROG_INSTALL
|
71 |
|
|
AC_PROG_RANLIB
|
72 |
|
|
AC_HAVE_HEADERS(unistd.h limits.h)
|
73 |
|
|
AC_PROG_MAKE_SET
|
74 |
|
|
|
75 |
|
|
#--------------------------------------------------------------------
|
76 |
|
|
# unsigned char is not supported by some non-ANSI compilers.
|
77 |
|
|
#--------------------------------------------------------------------
|
78 |
|
|
|
79 |
|
|
AC_MSG_CHECKING([unsigned char])
|
80 |
|
|
AC_TRY_COMPILE([#include ],[
|
81 |
|
|
unsigned char c = 'c';
|
82 |
|
|
], tcl_ok=supported, tcl_ok=not supported)
|
83 |
|
|
|
84 |
|
|
AC_MSG_RESULT($tcl_ok)
|
85 |
|
|
if test $tcl_ok = supported; then
|
86 |
|
|
AC_DEFINE(UCHAR_SUPPORTED)
|
87 |
|
|
fi
|
88 |
|
|
|
89 |
|
|
#--------------------------------------------------------------------
|
90 |
|
|
# Check whether there is an strcasecmp function on this system.
|
91 |
|
|
# This is a bit tricky because under SCO it's in -lsocket and
|
92 |
|
|
# under Sequent Dynix it's in -linet.
|
93 |
|
|
#--------------------------------------------------------------------
|
94 |
|
|
|
95 |
|
|
AC_CHECK_FUNC(strcasecmp, tcl_ok=1, tcl_ok=0)
|
96 |
|
|
if test "$tcl_ok" = 0; then
|
97 |
|
|
AC_CHECK_LIB(socket, strcasecmp, tcl_ok=1, tcl_ok=0)
|
98 |
|
|
fi
|
99 |
|
|
if test "$tcl_ok" = 0; then
|
100 |
|
|
AC_CHECK_LIB(inet, strcasecmp, tcl_ok=1, tcl_ok=0)
|
101 |
|
|
fi
|
102 |
|
|
if test "$tcl_ok" = 0; then
|
103 |
|
|
AC_DEFINE(NO_STRCASECMP)
|
104 |
|
|
fi
|
105 |
|
|
|
106 |
|
|
#--------------------------------------------------------------------
|
107 |
|
|
# See if there was a command-line option for where Tcl is; if
|
108 |
|
|
# not, assume that its top-level directory is a sibling of ours.
|
109 |
|
|
#--------------------------------------------------------------------
|
110 |
|
|
|
111 |
|
|
AC_ARG_WITH(tcl, [ --with-tcl=DIR use Tcl 7.6 source from DIR],
|
112 |
|
|
val=$withval, val="")
|
113 |
|
|
|
114 |
|
|
AC_MSG_CHECKING([Tcl source directory])
|
115 |
|
|
|
116 |
|
|
if test "$val" != ""; then
|
117 |
|
|
TCL_SRC_DIR=$val
|
118 |
|
|
if test ! -d $TCL_SRC_DIR; then
|
119 |
|
|
AC_MSG_ERROR(Directory $TCL_SRC_DIR doesn't exist)
|
120 |
|
|
AC_MSG_ERROR(Please install the source code of Tcl 7.6)
|
121 |
|
|
exit 1
|
122 |
|
|
fi
|
123 |
|
|
else
|
124 |
|
|
# CYGNUS LOCAL: Just use tcl.
|
125 |
|
|
dirs="${srcdir}/../../../tcl7.6* ${srcdir}/../../../tcl"
|
126 |
|
|
TCL_SRC_DIR="no-no"
|
127 |
|
|
for i in $dirs; do
|
128 |
|
|
if test -d $i; then
|
129 |
|
|
TCL_SRC_DIR=`cd $i; pwd`
|
130 |
|
|
fi
|
131 |
|
|
done
|
132 |
|
|
|
133 |
|
|
if test ! -d $TCL_SRC_DIR; then
|
134 |
|
|
AC_MSG_ERROR(Cannot locate Tcl source directory in $dirs)
|
135 |
|
|
AC_MSG_ERROR(Please install the source code of Tcl 7.6)
|
136 |
|
|
exit 1
|
137 |
|
|
fi
|
138 |
|
|
fi
|
139 |
|
|
AC_MSG_RESULT($TCL_SRC_DIR)
|
140 |
|
|
|
141 |
|
|
# CYGNUS LOCAL: This used to get TCL_BIN_DIR from TCL_SRC_DIR, which
|
142 |
|
|
# only works when srcdir == objdir
|
143 |
|
|
TCL_BIN_DIR=../../../tcl/unix
|
144 |
|
|
|
145 |
|
|
#--------------------------------------------------------------------
|
146 |
|
|
# See if there was a command-line option for where Tk is; if
|
147 |
|
|
# not, assume that its top-level directory is a sibling of ours.
|
148 |
|
|
#--------------------------------------------------------------------
|
149 |
|
|
|
150 |
|
|
AC_ARG_WITH(tk, [ --with-tk=DIR use Tk 4.2 source from DIR],
|
151 |
|
|
val=$withval, val="")
|
152 |
|
|
|
153 |
|
|
AC_MSG_CHECKING([Tk source directory])
|
154 |
|
|
|
155 |
|
|
if test "$val" != ""; then
|
156 |
|
|
TK_SRC_DIR=$val
|
157 |
|
|
if test ! -d $TK_SRC_DIR; then
|
158 |
|
|
AC_MSG_ERROR(Directory $TK_SRC_DIR doesn't exist)
|
159 |
|
|
AC_MSG_ERROR(Please install the source code of Tk 4.2)
|
160 |
|
|
exit 1
|
161 |
|
|
fi
|
162 |
|
|
else
|
163 |
|
|
# CYGNUS LOCAL: Just use tk
|
164 |
|
|
dirs="${srcdir}/../../../tk4.2* ${srcdir}/../../../tk"
|
165 |
|
|
TK_SRC_DIR="no-no"
|
166 |
|
|
for i in $dirs; do
|
167 |
|
|
if test -d $i; then
|
168 |
|
|
TK_SRC_DIR=`cd $i; pwd`
|
169 |
|
|
fi
|
170 |
|
|
done
|
171 |
|
|
|
172 |
|
|
if test ! -d $TK_SRC_DIR; then
|
173 |
|
|
AC_MSG_ERROR(Cannot locate Tk source directory in $dirs)
|
174 |
|
|
AC_MSG_ERROR(Please install the source code of Tk 4.2)
|
175 |
|
|
exit 1
|
176 |
|
|
fi
|
177 |
|
|
fi
|
178 |
|
|
AC_MSG_RESULT($TK_SRC_DIR)
|
179 |
|
|
|
180 |
|
|
# CYGNUS LOCAL: This used to get TK_BIN_DIR from TK_SRC_DIR, which
|
181 |
|
|
# only works when srcdir == objdir
|
182 |
|
|
TK_BIN_DIR=../../../tk/unix
|
183 |
|
|
|
184 |
|
|
#--------------------------------------------------------------------
|
185 |
|
|
# Find out the top level source directory of the Tix package.
|
186 |
|
|
#--------------------------------------------------------------------
|
187 |
|
|
TIX_SRC_DIR=`cd ${srcdir}/../..; pwd`
|
188 |
|
|
|
189 |
|
|
#--------------------------------------------------------------------
|
190 |
|
|
# See if we should compile SAM
|
191 |
|
|
#--------------------------------------------------------------------
|
192 |
|
|
|
193 |
|
|
AC_ARG_ENABLE(sam,
|
194 |
|
|
[ --enable-sam build stand-alone modules],
|
195 |
|
|
[ok=$enableval], [ok=no])
|
196 |
|
|
|
197 |
|
|
if test "$ok" = "yes"; then
|
198 |
|
|
TIX_BUILD_SAM="yes"
|
199 |
|
|
TIX_SAM_TARGETS='$(SAM_TARGETS)'
|
200 |
|
|
TIX_SAM_INSTALL=_install_sam_
|
201 |
|
|
else
|
202 |
|
|
TIX_BUILD_SAM="no"
|
203 |
|
|
fi
|
204 |
|
|
|
205 |
|
|
IS_ITCL=0
|
206 |
|
|
ITCL_BUILD_LIB_SPEC=""
|
207 |
|
|
ITK_BUILD_LIB_SPEC=""
|
208 |
|
|
TIX_EXE_FILE=tixwish
|
209 |
|
|
TCL_SAMEXE_FILE=satclsh
|
210 |
|
|
TK_SAMEXE_FILE=sawish
|
211 |
|
|
TIX_SAMEXE_FILE=satixwish
|
212 |
|
|
|
213 |
|
|
#--------------------------------------------------------------------
|
214 |
|
|
# Read in configuration information generated by Tcl for shared
|
215 |
|
|
# libraries, and arrange for it to be substituted into our
|
216 |
|
|
# Makefile.
|
217 |
|
|
#--------------------------------------------------------------------
|
218 |
|
|
|
219 |
|
|
file=$TCL_BIN_DIR/tclConfig.sh
|
220 |
|
|
. $file
|
221 |
|
|
CC=$TCL_CC
|
222 |
|
|
SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
|
223 |
|
|
SHLIB_LD=$TCL_SHLIB_LD
|
224 |
|
|
SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS
|
225 |
|
|
SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
|
226 |
|
|
SHLIB_VERSION=$TCL_SHLIB_VERSION
|
227 |
|
|
|
228 |
|
|
DL_LIBS=$TCL_DL_LIBS
|
229 |
|
|
LD_FLAGS=$TCL_LD_FLAGS
|
230 |
|
|
TIX_LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS
|
231 |
|
|
|
232 |
|
|
#--------------------------------------------------------------------
|
233 |
|
|
# Read in configuration information generated by Tk and arrange
|
234 |
|
|
# for it to be substituted into our Makefile.
|
235 |
|
|
#--------------------------------------------------------------------
|
236 |
|
|
file=$TK_BIN_DIR/tkConfig.sh
|
237 |
|
|
. $file
|
238 |
|
|
|
239 |
|
|
TIX_DEFS="$TK_DEFS $TCL_DEFS"
|
240 |
|
|
|
241 |
|
|
# Note: in the following variable, it's important to use the absolute
|
242 |
|
|
# path name of the Tcl directory rather than "..": this is because
|
243 |
|
|
# AIX remembers this path and will attempt to use it at run-time to look
|
244 |
|
|
# up the Tcl library.
|
245 |
|
|
|
246 |
|
|
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
|
247 |
|
|
TIX_BUILD_LIB_SPEC="-L`pwd` -ltix${VERSION}"
|
248 |
|
|
TIX_BUILD_SAM_SPEC="-L`pwd` -ltixsam${VERSION}"
|
249 |
|
|
TCL_BUILD_SAM_SPEC="-L`pwd` -ltclsam${TCL_VERSION}"
|
250 |
|
|
TK_BUILD_SAM_SPEC="-L`pwd` -ltksam${TK_VERSION}"
|
251 |
|
|
TIX_LIB_SPEC="-L${exec_prefix}/lib -ltix${VERSION}"
|
252 |
|
|
else
|
253 |
|
|
TIX_BUILD_LIB_SPEC="-L`pwd` -ltix`echo ${VERSION} | tr -d .`"
|
254 |
|
|
TIX_BUILD_SAM_SPEC="-L`pwd` -ltixsam`echo ${VERSION} | tr -d .`"
|
255 |
|
|
TCL_BUILD_SAM_SPEC="-L`pwd` -ltclsam`echo ${TCL_VERSION} | tr -d .`"
|
256 |
|
|
TK_BUILD_SAM_SPEC="-L`pwd` -ltksam`echo ${TK_VERSION} | tr -d .`"
|
257 |
|
|
TIX_LIB_SPEC="-L${exec_prefix}/lib -ltix`echo ${VERSION} | tr -d .`"
|
258 |
|
|
fi
|
259 |
|
|
|
260 |
|
|
#--------------------------------------------------------------------
|
261 |
|
|
# See if we should compile shared library.
|
262 |
|
|
#--------------------------------------------------------------------
|
263 |
|
|
|
264 |
|
|
AC_ARG_ENABLE(shared,
|
265 |
|
|
[ --enable-shared build libtix as a shared library],
|
266 |
|
|
[ok=$enableval], [ok=no])
|
267 |
|
|
|
268 |
|
|
if test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then
|
269 |
|
|
TIX_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
|
270 |
|
|
RANLIB=":"
|
271 |
|
|
|
272 |
|
|
# The main Tix library
|
273 |
|
|
#
|
274 |
|
|
eval "TIX_LIB_FILE=libtix${TCL_SHARED_LIB_SUFFIX}"
|
275 |
|
|
TIX_MAKE_LIB="\${SHLIB_LD} -o ${TIX_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}"
|
276 |
|
|
|
277 |
|
|
# The Tcl SAM library
|
278 |
|
|
#
|
279 |
|
|
VERSION=7.6
|
280 |
|
|
eval "TCL_SAM_FILE=libtclsam${TCL_SHARED_LIB_SUFFIX}"
|
281 |
|
|
TCL_MAKE_SAM="\${SHLIB_LD} -o ${TCL_SAM_FILE} \${TCL_SAM_OBJS} ${SHLIB_LD_LIBS}"
|
282 |
|
|
|
283 |
|
|
# The Tk SAM library
|
284 |
|
|
#
|
285 |
|
|
VERSION=4.2
|
286 |
|
|
eval "TK_SAM_FILE=libtksam${TCL_SHARED_LIB_SUFFIX}"
|
287 |
|
|
TK_MAKE_SAM="\${SHLIB_LD} -o ${TK_SAM_FILE} \${TK_SAM_OBJS} ${SHLIB_LD_LIBS}"
|
288 |
|
|
|
289 |
|
|
# The Tix SAM library
|
290 |
|
|
#
|
291 |
|
|
VERSION=${BIN_VERSION}
|
292 |
|
|
eval "TIX_SAM_FILE=libtixsam${TCL_SHARED_LIB_SUFFIX}"
|
293 |
|
|
TIX_MAKE_SAM="\${SHLIB_LD} -o ${TIX_SAM_FILE} \${TIX_SAM_OBJS} ${SHLIB_LD_LIBS}"
|
294 |
|
|
|
295 |
|
|
else
|
296 |
|
|
TIX_SHLIB_CFLAGS=""
|
297 |
|
|
|
298 |
|
|
# The main Tix library
|
299 |
|
|
#
|
300 |
|
|
eval "TIX_LIB_FILE=libtix${TCL_UNSHARED_LIB_SUFFIX}"
|
301 |
|
|
TIX_MAKE_LIB="ar cr ${TIX_LIB_FILE} \${OBJS}"
|
302 |
|
|
|
303 |
|
|
# The Tcl SAM library
|
304 |
|
|
|
305 |
|
|
VERSION=7.6
|
306 |
|
|
eval "TCL_SAM_FILE=libtclsam${TCL_UNSHARED_LIB_SUFFIX}"
|
307 |
|
|
TCL_MAKE_SAM="ar cr ${TCL_SAM_FILE} \${TCL_SAM_OBJS}"
|
308 |
|
|
|
309 |
|
|
# The Tk SAM library
|
310 |
|
|
#
|
311 |
|
|
VERSION=4.2
|
312 |
|
|
eval "TK_SAM_FILE=libtksam${TCL_UNSHARED_LIB_SUFFIX}"
|
313 |
|
|
TK_MAKE_SAM="ar cr ${TK_SAM_FILE} \${TK_SAM_OBJS}"
|
314 |
|
|
|
315 |
|
|
# The Tix SAM library
|
316 |
|
|
#
|
317 |
|
|
VERSION=${BIN_VERSION}
|
318 |
|
|
eval "TIX_SAM_FILE=libtixsam${TCL_UNSHARED_LIB_SUFFIX}"
|
319 |
|
|
TIX_MAKE_SAM="ar cr ${TIX_SAM_FILE} \${TIX_SAM_OBJS}"
|
320 |
|
|
fi
|
321 |
|
|
|
322 |
|
|
|
323 |
|
|
#--------------------------------------------------------------------
|
324 |
|
|
# Check for the existence of the -lsocket and -lnsl libraries.
|
325 |
|
|
# The order here is important, so that they end up in the right
|
326 |
|
|
# order in the command line generated by make. Here are some
|
327 |
|
|
# special considerations:
|
328 |
|
|
# 1. Use "connect" and "accept" to check for -lsocket, and
|
329 |
|
|
# "gethostbyname" to check for -lnsl.
|
330 |
|
|
# 2. Use each function name only once: can't redo a check because
|
331 |
|
|
# autoconf caches the results of the last check and won't redo it.
|
332 |
|
|
# 3. Use -lnsl and -lsocket only if they supply procedures that
|
333 |
|
|
# aren't already present in the normal libraries. This is because
|
334 |
|
|
# IRIX 5.2 has libraries, but they aren't needed and they're
|
335 |
|
|
# bogus: they goof up name resolution if used.
|
336 |
|
|
# 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
|
337 |
|
|
# To get around this problem, check for both libraries together
|
338 |
|
|
# if -lsocket doesn't work by itself.
|
339 |
|
|
#--------------------------------------------------------------------
|
340 |
|
|
|
341 |
|
|
checked=0
|
342 |
|
|
for i in $TK_LIBS; do
|
343 |
|
|
if test "$i" = "-lsocket"; then
|
344 |
|
|
checked=1
|
345 |
|
|
fi
|
346 |
|
|
done
|
347 |
|
|
|
348 |
|
|
if test "$checked" = "0"; then
|
349 |
|
|
tcl_checkBoth=0
|
350 |
|
|
AC_CHECK_FUNC(connect, tcl_checkSocket=0, tcl_checkSocket=1)
|
351 |
|
|
if test "$tcl_checkSocket" = 1; then
|
352 |
|
|
AC_CHECK_LIB(socket, main, TK_LIBS="$TK_LIBS -lsocket",
|
353 |
|
|
tcl_checkBoth=1)
|
354 |
|
|
fi
|
355 |
|
|
if test "$tcl_checkBoth" = 1; then
|
356 |
|
|
tk_oldLibs=$TK_LIBS
|
357 |
|
|
TK_LIBS="$TK_LIBS -lsocket -lnsl"
|
358 |
|
|
AC_CHECK_FUNC(accept, tcl_checkNsl=0, [TK_LIBS=$tk_oldLibs])
|
359 |
|
|
fi
|
360 |
|
|
AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main,
|
361 |
|
|
[TK_LIBS="$TK_LIBS -lnsl"]))
|
362 |
|
|
fi
|
363 |
|
|
|
364 |
|
|
#----------------------------------------------------------------------
|
365 |
|
|
# Substitution strings exported by TIX
|
366 |
|
|
#----------------------------------------------------------------------
|
367 |
|
|
AC_SUBST(CC)
|
368 |
|
|
AC_SUBST(RANLIB)
|
369 |
|
|
AC_SUBST(SHLIB_CFLAGS)
|
370 |
|
|
AC_SUBST(SHLIB_LD)
|
371 |
|
|
AC_SUBST(SHLIB_LD_LIBS)
|
372 |
|
|
AC_SUBST(SHLIB_SUFFIX)
|
373 |
|
|
AC_SUBST(SHLIB_VERSION)
|
374 |
|
|
AC_SUBST(DL_LIBS)
|
375 |
|
|
AC_SUBST(LD_FLAGS)
|
376 |
|
|
AC_SUBST(TCL_BUILD_LIB_SPEC)
|
377 |
|
|
AC_SUBST(TCL_LIBS)
|
378 |
|
|
AC_SUBST(TCL_VERSION)
|
379 |
|
|
AC_SUBST(TCL_SRC_DIR)
|
380 |
|
|
AC_SUBST(TCL_BIN_DIR)
|
381 |
|
|
AC_SUBST(TK_BUILD_LIB_SPEC)
|
382 |
|
|
AC_SUBST(TK_LIBS)
|
383 |
|
|
AC_SUBST(TK_VERSION)
|
384 |
|
|
AC_SUBST(TK_SRC_DIR)
|
385 |
|
|
AC_SUBST(TK_BIN_DIR)
|
386 |
|
|
AC_SUBST(TK_XINCLUDES)
|
387 |
|
|
AC_SUBST(TIX_LD_SEARCH_FLAGS)
|
388 |
|
|
AC_SUBST(TIX_MAJOR_VERSION)
|
389 |
|
|
AC_SUBST(TIX_MINOR_VERSION)
|
390 |
|
|
AC_SUBST(TIX_VERSION)
|
391 |
|
|
AC_SUBST(TIX_SRC_DIR)
|
392 |
|
|
AC_SUBST(TIX_SHLIB_CFLAGS)
|
393 |
|
|
AC_SUBST(TIX_MAKE_LIB)
|
394 |
|
|
AC_SUBST(TIX_LIB_FILE)
|
395 |
|
|
AC_SUBST(TIX_BUILD_LIB_SPEC)
|
396 |
|
|
AC_SUBST(TIX_LIB_SPEC)
|
397 |
|
|
AC_SUBST(TIX_EXE_FILE)
|
398 |
|
|
AC_SUBST(TIX_SAM_TARGETS)
|
399 |
|
|
AC_SUBST(TIX_SAM_INSTALL)
|
400 |
|
|
AC_SUBST(TCL_SAM_FILE)
|
401 |
|
|
AC_SUBST(TCL_MAKE_SAM)
|
402 |
|
|
AC_SUBST(TK_SAM_FILE)
|
403 |
|
|
AC_SUBST(TK_MAKE_SAM)
|
404 |
|
|
AC_SUBST(TIX_SAM_FILE)
|
405 |
|
|
AC_SUBST(TIX_MAKE_SAM)
|
406 |
|
|
AC_SUBST(TIX_DEFS)
|
407 |
|
|
AC_SUBST(ITCL_BUILD_LIB_SPEC)
|
408 |
|
|
AC_SUBST(ITK_BUILD_LIB_SPEC)
|
409 |
|
|
AC_SUBST(TCL_SAMEXE_FILE)
|
410 |
|
|
AC_SUBST(TK_SAMEXE_FILE)
|
411 |
|
|
AC_SUBST(TIX_SAMEXE_FILE)
|
412 |
|
|
AC_SUBST(TCL_BUILD_SAM_SPEC)
|
413 |
|
|
AC_SUBST(TK_BUILD_SAM_SPEC)
|
414 |
|
|
AC_SUBST(TIX_BUILD_SAM_SPEC)
|
415 |
|
|
|
416 |
|
|
# The "binary version" of Tix (see docs/Pkg.txt)
|
417 |
|
|
TIX_VERSION_PKG=${BIN_VERSION}
|
418 |
|
|
AC_SUBST(TIX_VERSION_PKG)
|
419 |
|
|
|
420 |
|
|
TIXSAM_PKG_FILE="[[file join [file dirname \$dir] ${TIX_SAM_FILE}]]"
|
421 |
|
|
if test "$TIX_BUILD_SAM" = "yes"; then
|
422 |
|
|
TIX_SAM_PACKAGE_IFNEEDED="package ifneeded Tixsam ${TIX_VERSION_PKG} [[list load \"${TIXSAM_PKG_FILE}\" Tixsam]]"
|
423 |
|
|
fi
|
424 |
|
|
|
425 |
|
|
# The package file, usually a shared library
|
426 |
|
|
TIX_PKG_FILE="[[file join [file dirname \$dir] ${TIX_LIB_FILE}]]"
|
427 |
|
|
AC_SUBST(TIX_PKG_FILE)
|
428 |
|
|
AC_SUBST(TIX_SAM_PACKAGE_IFNEEDED)
|
429 |
|
|
|
430 |
|
|
AC_OUTPUT(Makefile pkgIndex.tcl)
|
431 |
|
|
|