Debian Codegraph @

pTk/mTk/tixUnix/itcl3.0/configure

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.14.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/localscip-shell filesystem . . `/usr/local`.
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-gcc allow use of gcc if available"
16 ac_help="$ac_help
17 --with-itcl=DIR use ITcl 3.0 source from DIR"
18 ac_help="$ac_help
19 --with-tclconfig directory containing tcl configuration (tclConfig.sh)"
20 ac_help="$ac_help
21 --with-tkconfig directory containing tk configuration (tkConfig.sh)"
22 ac_help="$ac_help
23 --with-tclinclude directory where tcl headers are"
24 ac_help="$ac_help
25 --with-tkinclude directory where tk headers are"
26 ac_help="$ac_help
27 --enable-sam build stand-alone modules"
28 ac_help="$ac_help
29 --enable-shared build libtix as a shared library"
30
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
34 build=NONE
35 cache_file=./config.cache
36 exec_prefix=NONE
37 host=NONE
38 no_create=
39 nonopt=NONE
40 no_recursion=
41 prefix=NONE
42 program_prefix=NONE
43 program_suffix=NONE
44 program_transform_name=s,x,x,
45 silent=
46 site=
47 srcdir=
48 target=NONE
49 verbose=
50 x_includes=NONE
51 x_libraries=NONE
52 bindir='${exec_prefix}/bin'
53 sbindir='${exec_prefix}/sbin'
54 libexecdir='${exec_prefix}/libexec'
55 datadir='${prefix}/share'
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 libdir='${exec_prefix}/lib'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/includescip-shell filesystem . . `/usr/include`.'
62 infodir='${prefix}/info'
63 mandir='${prefix}/man'
64
65 # Initialize some other variables.
66 subdirs=
67 MFLAGS= MAKEFLAGS=
68 SHELL=${CONFIG_SHELL-/bin/sh}
69 # Maximum number of lines to put in a shell here document.
70 ac_max_here_lines=12
71
72 ac_prev=
73 for ac_option
74 do
75
76 # If the previous option needs an argument, assign it.
77 if testscip-shell system . . test. -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
79 ac_prev=
80 continue
81 fi
82
83 case "$ac_option" in
84 -*=*) ac_optarg=`echoscip-shell system . . echo. "$ac_option" | sedscip-shell system . . sed. 's/[-_a-zA-Z0-9]*=//'` ;;
85 *) ac_optarg= ;;
86 esac
87
88 # Accept the important Cygnus configure options, so we can diagnose typos.
89
90 case "$ac_option" in
91
92 -bindir | --bindir | --bindi | --bind | --bin | --bi)
93 ac_prev=bindir ;;
94 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
95 bindir="$ac_optarg" ;;
96
97 -build | --build | --buil | --bui | --bu)
98 ac_prev=build ;;
99 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 build="$ac_optarg" ;;
101
102 -cache-file | --cache-file | --cache-fil | --cache-fi \
103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104 ac_prev=cache_file ;;
105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
107 cache_file="$ac_optarg" ;;
108
109 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
110 ac_prev=datadir ;;
111 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
112 | --da=*)
113 datadir="$ac_optarg" ;;
114
115 -disable-* | --disable-*)
116 ac_feature=`echoscip-shell system . . echo. $ac_option|sedscip-shell system . . sed. -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if testscip-shell system . . test. -n "`echoscip-shell system . . echo. $ac_feature| sedscip-shell system . . sed. 's/[-a-zA-Z0-9_]//g'`"; then
119 { echoscip-shell system . . echo. "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 fi
121 ac_feature=`echoscip-shell system . . echo. $ac_feature| sedscip-shell system . . sed. 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
123
124 -enable-* | --enable-*)
125 ac_feature=`echoscip-shell system . . echo. $ac_option|sedscip-shell system . . sed. -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if testscip-shell system . . test. -n "`echoscip-shell system . . echo. $ac_feature| sedscip-shell system . . sed. 's/[-_a-zA-Z0-9]//g'`"; then
128 { echoscip-shell system . . echo. "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 fi
130 ac_feature=`echoscip-shell system . . echo. $ac_feature| sedscip-shell system . . sed. 's/-/_/g'`
131 case "$ac_option" in
132 *=*) ;;
133 *) ac_optarg=yes ;;
134 esac
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
136
137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139 | --exec | --exe | --ex)
140 ac_prev=exec_prefix ;;
141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143 | --exec=* | --exe=* | --ex=*)
144 exec_prefix="$ac_optarg" ;;
145
146 -gas | --gas | --ga | --g)
147 # Obsolete; use --with-gas.
148 with_gas=yes ;;
149
150 -help | --help | --hel | --he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
153 catscip-shell system . . cat. << EOF
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
156 Configuration:
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
164 [$ac_default_prefix]
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 [same as prefix]
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
171 [PREFIX/share]
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 [PREFIX/com]
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
186 EOF
187 catscip-shell system . . cat. << EOF
188 Host type:
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
199 EOF
200 if testscip-shell system . . test. -n "$ac_help"; then
201 echoscip-shell system . . echo. "--enable and --with options recognized:$ac_help"
202 fi
203 exit 0 ;;
204
205 -host | --host | --hos | --ho)
206 ac_prev=host ;;
207 -host=* | --host=* | --hos=* | --ho=*)
208 host="$ac_optarg" ;;
209
210 -includedir | --includedir | --includedi | --included | --include \
211 | --includ | --inclu | --incl | --inc)
212 ac_prev=includedir ;;
213 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
214 | --includ=* | --inclu=* | --incl=* | --inc=*)
215 includedir="$ac_optarg" ;;
216
217 -infodir | --infodir | --infodi | --infod | --info | --inf)
218 ac_prev=infodir ;;
219 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
220 infodir="$ac_optarg" ;;
221
222 -libdir | --libdir | --libdi | --libd)
223 ac_prev=libdir ;;
224 -libdir=* | --libdir=* | --libdi=* | --libd=*)
225 libdir="$ac_optarg" ;;
226
227 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
228 | --libexe | --libex | --libe)
229 ac_prev=libexecdir ;;
230 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
231 | --libexe=* | --libex=* | --libe=*)
232 libexecdir="$ac_optarg" ;;
233
234 -localstatedir | --localstatedir | --localstatedi | --localstated \
235 | --localstate | --localstat | --localsta | --localst \
236 | --locals | --local | --loca | --loc | --lo)
237 ac_prev=localstatedir ;;
238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
239 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
240 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
241 localstatedir="$ac_optarg" ;;
242
243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
244 ac_prev=mandir ;;
245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
246 mandir="$ac_optarg" ;;
247
248 -nfp | --nfp | --nf)
249 # Obsolete; use --without-fp.
250 with_fp=no ;;
251
252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
253 | --no-cr | --no-c)
254 no_create=yes ;;
255
256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
258 no_recursion=yes ;;
259
260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
262 | --oldin | --oldi | --old | --ol | --o)
263 ac_prev=oldincludedir ;;
264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
267 oldincludedir="$ac_optarg" ;;
268
269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
270 ac_prev=prefix ;;
271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
272 prefix="$ac_optarg" ;;
273
274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
275 | --program-pre | --program-pr | --program-p)
276 ac_prev=program_prefix ;;
277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
279 program_prefix="$ac_optarg" ;;
280
281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
282 | --program-suf | --program-su | --program-s)
283 ac_prev=program_suffix ;;
284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
286 program_suffix="$ac_optarg" ;;
287
288 -program-transform-name | --program-transform-name \
289 | --program-transform-nam | --program-transform-na \
290 | --program-transform-n | --program-transform- \
291 | --program-transform | --program-transfor \
292 | --program-transfo | --program-transf \
293 | --program-trans | --program-tran \
294 | --progr-tra | --program-tr | --program-t)
295 ac_prev=program_transform_name ;;
296 -program-transform-name=* | --program-transform-name=* \
297 | --program-transform-nam=* | --program-transform-na=* \
298 | --program-transform-n=* | --program-transform-=* \
299 | --program-transform=* | --program-transfor=* \
300 | --program-transfo=* | --program-transf=* \
301 | --program-trans=* | --program-tran=* \
302 | --progr-tra=* | --program-tr=* | --program-t=*)
303 program_transform_name="$ac_optarg" ;;
304
305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
306 | -silent | --silent | --silen | --sile | --sil)
307 silent=yes ;;
308
309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
310 ac_prev=sbindir ;;
311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
312 | --sbi=* | --sb=*)
313 sbindir="$ac_optarg" ;;
314
315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317 | --sharedst | --shareds | --shared | --share | --shar \
318 | --sha | --sh)
319 ac_prev=sharedstatedir ;;
320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
323 | --sha=* | --sh=*)
324 sharedstatedir="$ac_optarg" ;;
325
326 -site | --site | --sit)
327 ac_prev=site ;;
328 -site=* | --site=* | --sit=*)
329 site="$ac_optarg" ;;
330
331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
332 ac_prev=srcdir ;;
333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334 srcdir="$ac_optarg" ;;
335
336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337 | --syscon | --sysco | --sysc | --sys | --sy)
338 ac_prev=sysconfdir ;;
339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341 sysconfdir="$ac_optarg" ;;
342
343 -target | --target | --targe | --targ | --tar | --ta | --t)
344 ac_prev=target ;;
345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346 target="$ac_optarg" ;;
347
348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
349 verbose=yes ;;
350
351 -version | --version | --versio | --versi | --vers)
352 echoscip-shell system . . echo. "configure generated by autoconf version 2.14.1"
353 exit 0 ;;
354
355 -with-* | --with-*)
356 ac_package=`echoscip-shell system . . echo. $ac_option|sedscip-shell system . . sed. -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if testscip-shell system . . test. -n "`echoscip-shell system . . echo. $ac_package| sedscip-shell system . . sed. 's/[-_a-zA-Z0-9]//g'`"; then
359 { echoscip-shell system . . echo. "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 fi
361 ac_package=`echoscip-shell system . . echo. $ac_package| sedscip-shell system . . sed. 's/-/_/g'`
362 case "$ac_option" in
363 *=*) ;;
364 *) ac_optarg=yes ;;
365 esac
366 eval "with_${ac_package}='$ac_optarg'" ;;
367
368 -without-* | --without-*)
369 ac_package=`echoscip-shell system . . echo. $ac_option|sedscip-shell system . . sed. -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if testscip-shell system . . test. -n "`echoscip-shell system . . echo. $ac_package| sedscip-shell system . . sed. 's/[-a-zA-Z0-9_]//g'`"; then
372 { echoscip-shell system . . echo. "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 fi
374 ac_package=`echoscip-shell system . . echo. $ac_package| sedscip-shell system . . sed. 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
376
377 --x)
378 # Obsolete; use --with-x.
379 with_x=yes ;;
380
381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382 | --x-incl | --x-inc | --x-in | --x-i)
383 ac_prev=x_includes ;;
384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386 x_includes="$ac_optarg" ;;
387
388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390 ac_prev=x_libraries ;;
391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393 x_libraries="$ac_optarg" ;;
394
395 -*) { echoscip-shell system . . echo. "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 ;;
397
398 *)
399 if testscip-shell system . . test. -n "`echoscip-shell system . . echo. $ac_option| sedscip-shell system . . sed. 's/[-a-z0-9.]//g'`"; then
400 echoscip-shell system . . echo. "configure: warning: $ac_option: invalid host type" 1>&2
401 fi
402 if testscip-shell system . . test. "x$nonopt" != xNONE; then
403 { echoscip-shell system . . echo. "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 fi
405 nonopt="$ac_option"
406 ;;
407
408 esac
409 done
410
411 if testscip-shell system . . test. -n "$ac_prev"; then
412 { echoscip-shell system . . echo. "configure: error: missing argument to --`echoscip-shell system . . echo. $ac_prev | sedscip-shell system . . sed. 's/_/-/g'`" 1>&2; exit 1; }
413 fi
414
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416
417 # File descriptor usage:
418 # 0 standard input
419 # 1 file creation
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if testscip-shell system . . test. "$silent" = yes; then
426 exec 6>/dev/nullscip-shell filesystem . . `/dev/null`.
427 else
428 exec 6>&1
429 fi
430 exec 5>./config.log
431
432 echoscip-shell system . . echo. "\
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
435 " 1>&5
436
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
439 ac_configure_args=
440 for ac_arg
441 do
442 case "$ac_arg" in
443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 | --no-cr | --no-c) ;;
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
450 esac
451 done
452
453 # NLS nuisances.
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if testscip-shell system . . test. "${LANG+set}" = set; then LANG=C; export LANG; fi
459 if testscip-shell system . . test. "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if testscip-shell system . . test. "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if testscip-shell system . . test. "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rmscip-shell system . . rm. -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
466 echoscip-shell system . . echo. > confdefs.h
467
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=../../generic/tixInit.c
471
472 # Find the source files, if location was not specified.
473 if testscip-shell system . . test. -z "$srcdir"; then
474 ac_srcdir_defaulted=yes
475 # Try the directory containing this script, then its parent.
476 ac_prog=$0
477 ac_confdir=`echoscip-shell system . . echo. $ac_prog|sedscip-shell system . . sed. 's%/[^/][^/]*$%%'`
478 testscip-shell system . . test. "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
479 srcdir=$ac_confdir
480 if testscip-shell system . . test. ! -r $srcdir/$ac_unique_file; then
481 srcdir=..
482 fi
483 else
484 ac_srcdir_defaulted=no
485 fi
486 if testscip-shell system . . test. ! -r $srcdir/$ac_unique_file; then
487 if testscip-shell system . . test. "$ac_srcdir_defaulted" = yes; then
488 { echoscip-shell system . . echo. "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 else
490 { echoscip-shell system . . echo. "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 fi
492 fi
493 srcdir=`echoscip-shell system . . echo. "${srcdir}" | sedscip-shell system . . sed. 's%\([^/]\)/*$%\1%'`
494
495 # Prefer explicitly selected file to automatically selected ones.
496 if testscip-shell system . . test. -z "$CONFIG_SITE"; then
497 if testscip-shell system . . test. "x$prefix" != xNONE; then
498 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
499 else
500 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 fi
502 fi
503 for ac_site_file in $CONFIG_SITE; do
504 if testscip-shell system . . test. -r "$ac_site_file"; then
505 echoscip-shell system . . echo. "loading site script $ac_site_file"
506 . "$ac_site_file"
507 fi
508 done
509
510 if testscip-shell system . . test. -r "$cache_file"; then
511 echoscip-shell system . . echo. "loading cache $cache_file"
512 testscip-shell system . . test. -f "$cache_file" && . $cache_file
513 else
514 echoscip-shell system . . echo. "creating cache $cache_file"
515 > $cache_file
516 fi
517
518 ac_ext=c
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp='$CPP $CPPFLAGS'
521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling=$ac_cv_prog_cc_cross
524
525 ac_exeext=
526 ac_objext=o
527 if (echoscip-shell system . . echo. "testing\c"; echoscip-shell system . . echo. 1,2,3) | grepscip-shell system . . grep. c >/dev/nullscip-shell filesystem . . `/dev/null`.; then
528 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
529 if (echoscip-shell system . . echo. -n testing; echoscip-shell system . . echo. 1,2,3) | sedscip-shell system . . sed. s/-n/xn/ | grepscip-shell system . . grep. xn >/dev/nullscip-shell filesystem . . `/dev/null`.; then
530 ac_n= ac_c='
531 ' ac_t=' '
532 else
533 ac_n=-n ac_c= ac_t=
534 fi
535 else
536 ac_n= ac_c='\c' ac_t=
537 fi
538
539
540
541 #--------------------------------------------------------------------
542 # Remove the ./config.cache file and rerun configure if
543 # the cache file belong to a different architecture
544 #----------------------------------------------------------------------
545 # Extract the first word of "uname -a", so it can be a program name with args.
546 set dummy uname -a; ac_word=$2
547 echoscip-shell system . . echo. $ac_n "checking for $ac_word""... $ac_c" 1>&6
548 echoscip-shell system . . echo. "configure:549: checking for $ac_word" >&5
549 if eval "test \"\${ac_cv_prog_UNAME+set}\" = set"; then
550 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
551 else
552 if testscip-shell system . . test. -n "$UNAME"; then
553 ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
554 else
555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
556 ac_dummy="$PATH"
557 for ac_dir in $ac_dummy; do
558 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
559 if testscip-shell system . . test. -f $ac_dir/$ac_word; then
560 ac_cv_prog_UNAME="uname -a"
561 break
562 fi
563 done
564 IFS="$ac_save_ifs"
565 testscip-shell system . . test. -z "$ac_cv_prog_UNAME" && ac_cv_prog_UNAME=""""
566 fi
567 fi
568 UNAME="$ac_cv_prog_UNAME"
569 if testscip-shell system . . test. -n "$UNAME"; then
570 echoscip-shell system . . echo. "$ac_t""$UNAME" 1>&6
571 else
572 echoscip-shell system . . echo. "$ac_t""no" 1>&6
573 fi
574
575 if testscip-shell system . . test. "$UNAME" = ""; then
576 # Extract the first word of "uname", so it can be a program name with args.
577 set dummy uname; ac_word=$2
578 echoscip-shell system . . echo. $ac_n "checking for $ac_word""... $ac_c" 1>&6
579 echoscip-shell system . . echo. "configure:580: checking for $ac_word" >&5
580 if eval "test \"\${ac_cv_prog_UNAME+set}\" = set"; then
581 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
582 else
583 if testscip-shell system . . test. -n "$UNAME"; then
584 ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
585 else
586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
587 ac_dummy="$PATH"
588 for ac_dir in $ac_dummy; do
589 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
590 if testscip-shell system . . test. -f $ac_dir/$ac_word; then
591 ac_cv_prog_UNAME="uname"
592 break
593 fi
594 done
595 IFS="$ac_save_ifs"
596 testscip-shell system . . test. -z "$ac_cv_prog_UNAME" && ac_cv_prog_UNAME=""""
597 fi
598 fi
599 UNAME="$ac_cv_prog_UNAME"
600 if testscip-shell system . . test. -n "$UNAME"; then
601 echoscip-shell system . . echo. "$ac_t""$UNAME" 1>&6
602 else
603 echoscip-shell system . . echo. "$ac_t""no" 1>&6
604 fi
605
606 fi
607
608 if testscip-shell system . . test. "$UNAME" != ""; then
609 uname=`$UNAME`
610 echoscip-shell system . . echo. $ac_n "checking cached value of \$uname""... $ac_c" 1>&6
611 echoscip-shell system . . echo. "configure:612: checking cached value of \$uname" >&5
612 if eval "test \"\${ac_cv_prog_uname+set}\" = set"; then
613 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
614 else
615 nocached=1 ac_cv_prog_uname=`$UNAME`
616 fi
617
618 if testscip-shell system . . test. "$nocached" = "1"; then
619 echoscip-shell system . . echo. "$ac_t""no" 1>&6
620 else
621 echoscip-shell system . . echo. "$ac_t""yes" 1>&6
622 fi
623
624 if testscip-shell system . . test. "$uname" != "$ac_cv_prog_uname"; then
625 echoscip-shell system . . echo. "Running on a different machine/architecture. Can't use cached values"
626 echoscip-shell system . . echo. "Removing config.cache and running configure again ..."
627 rmscip-shell system . . rm. -f config.cache
628 CMDLINE="$0 $*"
629 exec $CMDLINE
630 fi
631 fi
632
633 #----------------------------------------------------------------------
634 # We don't want to use any relative path because we need to generate
635 # Makefile's in subdirectories
636 #----------------------------------------------------------------------
637 if testscip-shell system . . test. "$INSTALL" = "./install.sh"; then
638 INSTALL=`pwdscip-shell system . . pwd.`/install.sh
639 fi
640
641 #--------------------------------------------------------------------
642 # Version information about this TIX release.
643 #--------------------------------------------------------------------
644
645 TIX_VERSION=8.1
646 TIX_MAJOR_VERSION=8
647 TIX_MINOR_VERSION=1
648
649 #--------------------------------------------------------------------
650 # See if user wants to use gcc to compile Tix. This option must
651 # be used before any checking that uses the C compiler.
652 #--------------------------------------------------------------------
653
654 # Check whether --enable-gcc or --disable-gcc was given.
655 if testscip-shell system . . test. "${enable_gcc+set}" = set; then
656 enableval="$enable_gcc"
657 tix_ok=$enableval
658 else
659 tix_ok=no
660 fi
661
662 if testscip-shell system . . test. "$tix_ok" = "yes"; then
663 # Extract the first word of "gcc", so it can be a program name with args.
664 set dummy gcc; ac_word=$2
665 echoscip-shell system . . echo. $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echoscip-shell system . . echo. "configure:667: checking for $ac_word" >&5
667 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
668 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
669 else
670 if testscip-shell system . . test. -n "$CC"; then
671 ac_cv_prog_CC="$CC" # Let the user override the test.
672 else
673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
674 ac_dummy="$PATH"
675 for ac_dir in $ac_dummy; do
676 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
677 if testscip-shell system . . test. -f $ac_dir/$ac_word; then
678 ac_cv_prog_CC="gcc"
679 break
680 fi
681 done
682 IFS="$ac_save_ifs"
683 fi
684 fi
685 CC="$ac_cv_prog_CC"
686 if testscip-shell system . . test. -n "$CC"; then
687 echoscip-shell system . . echo. "$ac_t""$CC" 1>&6
688 else
689 echoscip-shell system . . echo. "$ac_t""no" 1>&6
690 fi
691
692 if testscip-shell system . . test. -z "$CC"; then
693 # Extract the first word of "cc", so it can be a program name with args.
694 set dummy cc; ac_word=$2
695 echoscip-shell system . . echo. $ac_n "checking for $ac_word""... $ac_c" 1>&6
696 echoscip-shell system . . echo. "configure:697: checking for $ac_word" >&5
697 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
698 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
699 else
700 if testscip-shell system . . test. -n "$CC"; then
701 ac_cv_prog_CC="$CC" # Let the user override the test.
702 else
703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
704 ac_prog_rejected=no
705 ac_dummy="$PATH"
706 for ac_dir in $ac_dummy; do
707 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
708 if testscip-shell system . . test. -f $ac_dir/$ac_word; then
709 if testscip-shell system . . test. "$ac_dir/$ac_word" = "/usr/ucb/ccscip-shell filesystem . . `/usr/ucb/cc`."; then
710 ac_prog_rejected=yes
711 continue
712 fi
713 ac_cv_prog_CC="cc"
714 break
715 fi
716 done
717 IFS="$ac_save_ifs"
718 if testscip-shell system . . test. $ac_prog_rejected = yes; then
719 # We found a bogon in the path, so make sure we never use it.
720 set dummy $ac_cv_prog_CC
721 shift
722 if testscip-shell system . . test. $# -gt 0; then
723 # We chose a different compiler from the bogus one.
724 # However, it has the same basename, so the bogon will be chosen
725 # first if we set CC to just the basename; use the full file name.
726 shift
727 set dummy "$ac_dir/$ac_word" "$@"
728 shift
729 ac_cv_prog_CC="$@"
730 fi
731 fi
732 fi
733 fi
734 CC="$ac_cv_prog_CC"
735 if testscip-shell system . . test. -n "$CC"; then
736 echoscip-shell system . . echo. "$ac_t""$CC" 1>&6
737 else
738 echoscip-shell system . . echo. "$ac_t""no" 1>&6
739 fi
740
741 if testscip-shell system . . test. -z "$CC"; then
742 case "`unamescip-shell system . . uname. -s`" in
743 *win32* | *WIN32* | *CYGWIN*)
744 # Extract the first word of "cl", so it can be a program name with args.
745 set dummy cl; ac_word=$2
746 echoscip-shell system . . echo. $ac_n "checking for $ac_word""... $ac_c" 1>&6
747 echoscip-shell system . . echo. "configure:748: checking for $ac_word" >&5
748 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
749 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
750 else
751 if testscip-shell system . . test. -n "$CC"; then
752 ac_cv_prog_CC="$CC" # Let the user override the test.
753 else
754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
755 ac_dummy="$PATH"
756 for ac_dir in $ac_dummy; do
757 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
758 if testscip-shell system . . test. -f $ac_dir/$ac_word; then
759 ac_cv_prog_CC="cl"
760 break
761 fi
762 done
763 IFS="$ac_save_ifs"
764 fi
765 fi
766 CC="$ac_cv_prog_CC"
767 if testscip-shell system . . test. -n "$CC"; then
768 echoscip-shell system . . echo. "$ac_t""$CC" 1>&6
769 else
770 echoscip-shell system . . echo. "$ac_t""no" 1>&6
771 fi
772 ;;
773 esac
774 fi
775 testscip-shell system . . test. -z "$CC" && { echoscip-shell system . . echo. "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
776 fi
777
778 echoscip-shell system . . echo. $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
779 echoscip-shell system . . echo. "configure:780: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
780
781 ac_ext=c
782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
783 ac_cpp='$CPP $CPPFLAGS'
784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
786 cross_compiling=$ac_cv_prog_cc_cross
787
788 catscip-shell system . . cat. > conftest.$ac_ext << EOF
789
790 #line 791 "configure"
791 #include "confdefs.h"
792
793 main(){return(0);}
794 EOF
795 if { (eval echo configure:796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && testscip-shell system . . test. -s conftest${ac_exeext}; then
796 ac_cv_prog_cc_works=yes
797 # If we can't run a trivial program, we are probably using a cross compiler.
798 if (./conftest; exit) 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then
799 ac_cv_prog_cc_cross=no
800 else
801 ac_cv_prog_cc_cross=yes
802 fi
803 else
804 echoscip-shell system . . echo. "configure: failed program was:" >&5
805 catscip-shell system . . cat. conftest.$ac_ext >&5
806 ac_cv_prog_cc_works=no
807 fi
808 rmscip-shell system . . rm. -fr conftest*
809 ac_ext=c
810 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
811 ac_cpp='$CPP $CPPFLAGS'
812 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
813 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
814 cross_compiling=$ac_cv_prog_cc_cross
815
816 echoscip-shell system . . echo. "$ac_t""$ac_cv_prog_cc_works" 1>&6
817 if testscip-shell system . . test. $ac_cv_prog_cc_works = no; then
818 { echoscip-shell system . . echo. "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
819 fi
820 echoscip-shell system . . echo. $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
821 echoscip-shell system . . echo. "configure:822: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
822 echoscip-shell system . . echo. "$ac_t""$ac_cv_prog_cc_cross" 1>&6
823 cross_compiling=$ac_cv_prog_cc_cross
824
825 echoscip-shell system . . echo. $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
826 echoscip-shell system . . echo. "configure:827: checking whether we are using GNU C" >&5
827 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
828 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
829 else
830 catscip-shell system . . cat. > conftest.c <<EOF
831 #ifdef __GNUC__
832 yes;
833 #endif
834 EOF
835 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrepscip-shell system . . egrep. yes >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
836 ac_cv_prog_gcc=yes
837 else
838 ac_cv_prog_gcc=no
839 fi
840 fi
841
842 echoscip-shell system . . echo. "$ac_t""$ac_cv_prog_gcc" 1>&6
843
844 if testscip-shell system . . test. $ac_cv_prog_gcc = yes; then
845 GCC=yes
846 else
847 GCC=
848 fi
849
850 ac_test_CFLAGS="${CFLAGS+set}"
851 ac_save_CFLAGS="$CFLAGS"
852 CFLAGS=
853 echoscip-shell system . . echo. $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
854 echoscip-shell system . . echo. "configure:855: checking whether ${CC-cc} accepts -g" >&5
855 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
856 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
857 else
858 echoscip-shell system . . echo. 'void f(){}' > conftest.c
859 if testscip-shell system . . test. -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
860 ac_cv_prog_cc_g=yes
861 else
862 ac_cv_prog_cc_g=no
863 fi
864 rmscip-shell system . . rm. -f conftest*
865
866 fi
867
868 echoscip-shell system . . echo. "$ac_t""$ac_cv_prog_cc_g" 1>&6
869 if testscip-shell system . . test. "$ac_test_CFLAGS" = set; then
870 CFLAGS="$ac_save_CFLAGS"
871 elif testscip-shell system . . test. $ac_cv_prog_cc_g = yes; then
872 if testscip-shell system . . test. "$GCC" = yes; then
873 CFLAGS="-g -O2"
874 else
875 CFLAGS="-g"
876 fi
877 else
878 if testscip-shell system . . test. "$GCC" = yes; then
879 CFLAGS="-O2"
880 else
881 CFLAGS=
882 fi
883 fi
884
885 else
886 CC=${CC-cc}
887
888 fi
889
890 ac_aux_dir=
891 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
892 if testscip-shell system . . test. -f $ac_dir/install-sh; then
893 ac_aux_dir=$ac_dir
894 ac_install_sh="$ac_aux_dir/install-sh -c"
895 break
896 elif testscip-shell system . . test. -f $ac_dir/install.sh; then
897 ac_aux_dir=$ac_dir
898 ac_install_sh="$ac_aux_dir/install.sh -c"
899 break
900 fi
901 done
902 if testscip-shell system . . test. -z "$ac_aux_dir"; then
903 { echoscip-shell system . . echo. "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
904 fi
905 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
906 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
907 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
908
909 # Find a good install program. We prefer a C program (faster),
910 # so one script is as good as another. But avoid the broken or
911 # incompatible versions:
912 # SysV /etc/install, /usr/sbin/install
913 # SunOS /usr/etc/install
914 # IRIX /sbin/install
915 # AIX /bin/install
916 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
917 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
918 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
919 # ./install, which can be erroneously created by make from ./install.sh.
920 echoscip-shell system . . echo. $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
921 echoscip-shell system . . echo. "configure:922: checking for a BSD compatible install" >&5
922 if testscip-shell system . . test. -z "$INSTALL"; then
923 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
924 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
925 else
926 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
927 for ac_dir in $PATH; do
928 # Account for people who put trailing slashes in PATH elements.
929 case "$ac_dir/" in
930 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
931 *)
932 # OSF1 and SCO ODT 3.0 have their own names for install.
933 # Don't use installbsd from OSF since it installs stuff as root
934 # by default.
935 for ac_prog in ginstall scoinst install; do
936 if testscip-shell system . . test. -f $ac_dir/$ac_prog; then
937 if testscip-shell system . . test. $ac_prog = install &&
938 grepscip-shell system . . grep. dspmsg $ac_dir/$ac_prog >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
939 # AIX install. It has an incompatible calling convention.
940 :
941 elif testscip-shell system . . test. $ac_prog = install &&
942 grepscip-shell system . . grep. pwplus $ac_dir/$ac_prog >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
943 # program-specific install script used by HP pwplus--don't use.
944 :
945 else
946 ac_cv_path_install="$ac_dir/$ac_prog -c"
947 break 2
948 fi
949 fi
950 done
951 ;;
952 esac
953 done
954 IFS="$ac_save_IFS"
955
956 fi
957 if testscip-shell system . . test. "${ac_cv_path_install+set}" = set; then
958 INSTALL="$ac_cv_path_install"
959 else
960 # As a last resort, use the slow shell script. We don't cache a
961 # path for INSTALL within a source directory, because that will
962 # break other packages using the cache if that directory is
963 # removed, or if the path is relative.
964 INSTALL="$ac_install_sh"
965 fi
966 fi
967 echoscip-shell system . . echo. "$ac_t""$INSTALL" 1>&6
968
969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
970 # It thinks the first close brace ends the variable substitution.
971 testscip-shell system . . test. -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
972
973 testscip-shell system . . test. -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
974
975 testscip-shell system . . test. -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
976
977 # Extract the first word of "ranlib", so it can be a program name with args.
978 set dummy ranlib; ac_word=$2
979 echoscip-shell system . . echo. $ac_n "checking for $ac_word""... $ac_c" 1>&6
980 echoscip-shell system . . echo. "configure:981: checking for $ac_word" >&5
981 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
982 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
983 else
984 if testscip-shell system . . test. -n "$RANLIB"; then
985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
986 else
987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
988 ac_dummy="$PATH"
989 for ac_dir in $ac_dummy; do
990 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
991 if testscip-shell system . . test. -f $ac_dir/$ac_word; then
992 ac_cv_prog_RANLIB="ranlib"
993 break
994 fi
995 done
996 IFS="$ac_save_ifs"
997 testscip-shell system . . test. -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
998 fi
999 fi
1000 RANLIB="$ac_cv_prog_RANLIB"
1001 if testscip-shell system . . test. -n "$RANLIB"; then
1002 echoscip-shell system . . echo. "$ac_t""$RANLIB" 1>&6
1003 else
1004 echoscip-shell system . . echo. "$ac_t""no" 1>&6
1005 fi
1006
1007 echoscip-shell system . . echo. $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1008 echoscip-shell system . . echo. "configure:1009: checking how to run the C preprocessor" >&5
1009 # On Suns, sometimes $CPP names a directory.
1010 if testscip-shell system . . test. -n "$CPP" && testscip-shell system . . test. -d "$CPP"; then
1011 CPP=
1012 fi
1013 if testscip-shell system . . test. -z "$CPP"; then
1014 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1015 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
1016 else
1017 # This must be in double quotes, not single quotes, because CPP may get
1018 # substituted into the Makefile and "${CC-cc}" will confuse make.
1019 CPP="${CC-cc} -E"
1020 # On the NeXT, cc -E runs the code through the compiler's parser,
1021 # not just through cpp.
1022 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.h"
1025 #include <assert.h>
1026 Syntax Error
1027 EOF
1028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1029 { (eval echo configure:1030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1030 ac_err=`grepscip-shell system . . grep. -v '^ *+' conftest.out | grepscip-shell system . . grep. -v "^conftest.${ac_ext}\$"`
1031 if testscip-shell system . . test. -z "$ac_err"; then
1032 :
1033 else
1034 echoscip-shell system . . echo. "$ac_err" >&5
1035 echoscip-shell system . . echo. "configure: failed program was:" >&5
1036 catscip-shell system . . cat. conftest.$ac_ext >&5
1037 rmscip-shell system . . rm. -rf conftest*
1038 CPP="${CC-cc} -E -traditional-cpp"
1039 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
1040 #line 1041 "configure"
1041 #include "confdefs.h"
1042 #include <assert.h>
1043 Syntax Error
1044 EOF
1045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1046 { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1047 ac_err=`grepscip-shell system . . grep. -v '^ *+' conftest.out | grepscip-shell system . . grep. -v "^conftest.${ac_ext}\$"`
1048 if testscip-shell system . . test. -z "$ac_err"; then
1049 :
1050 else
1051 echoscip-shell system . . echo. "$ac_err" >&5
1052 echoscip-shell system . . echo. "configure: failed program was:" >&5
1053 catscip-shell system . . cat. conftest.$ac_ext >&5
1054 rmscip-shell system . . rm. -rf conftest*
1055 CPP="${CC-cc} -nologo -E"
1056 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1059 #include <assert.h>
1060 Syntax Error
1061 EOF
1062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1063 { (eval echo configure:1064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1064 ac_err=`grepscip-shell system . . grep. -v '^ *+' conftest.out | grepscip-shell system . . grep. -v "^conftest.${ac_ext}\$"`
1065 if testscip-shell system . . test. -z "$ac_err"; then
1066 :
1067 else
1068 echoscip-shell system . . echo. "$ac_err" >&5
1069 echoscip-shell system . . echo. "configure: failed program was:" >&5
1070 catscip-shell system . . cat. conftest.$ac_ext >&5
1071 rmscip-shell system . . rm. -rf conftest*
1072 CPP=/lib/cppscip-shell filesystem . . `/lib/cpp`.
1073 fi
1074 rmscip-shell system . . rm. -f conftest*
1075 fi
1076 rmscip-shell system . . rm. -f conftest*
1077 fi
1078 rmscip-shell system . . rm. -f conftest*
1079 ac_cv_prog_CPP="$CPP"
1080 fi
1081 CPP="$ac_cv_prog_CPP"
1082 else
1083 ac_cv_prog_CPP="$CPP"
1084 fi
1085 echoscip-shell system . . echo. "$ac_t""$CPP" 1>&6
1086
1087 for ac_hdr in unistd.h limits.h
1088 do
1089 ac_safe=`echoscip-shell system . . echo. "$ac_hdr" | sedscip-shell system . . sed. 'y%./+-%__p_%'`
1090 echoscip-shell system . . echo. $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1091 echoscip-shell system . . echo. "configure:1092: checking for $ac_hdr" >&5
1092 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
1093 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
1094 else
1095 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
1096 #line 1097 "configure"
1097 #include "confdefs.h"
1098 #include <$ac_hdr>
1099 EOF
1100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1101 { (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1102 ac_err=`grepscip-shell system . . grep. -v '^ *+' conftest.out | grepscip-shell system . . grep. -v "^conftest.${ac_ext}\$"`
1103 if testscip-shell system . . test. -z "$ac_err"; then
1104 rmscip-shell system . . rm. -rf conftest*
1105 eval "ac_cv_header_$ac_safe=yes"
1106 else
1107 echoscip-shell system . . echo. "$ac_err" >&5
1108 echoscip-shell system . . echo. "configure: failed program was:" >&5
1109 catscip-shell system . . cat. conftest.$ac_ext >&5
1110 rmscip-shell system . . rm. -rf conftest*
1111 eval "ac_cv_header_$ac_safe=no"
1112 fi
1113 rmscip-shell system . . rm. -f conftest*
1114 fi
1115 if eval "test \"`echoscip-shell system . . echo. '$ac_cv_header_'$ac_safe`\" = yes"; then
1116 echoscip-shell system . . echo. "$ac_t""yes" 1>&6
1117 ac_tr_hdr=HAVE_`echoscip-shell system . . echo. $ac_hdr | sedscip-shell system . . sed. 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1118 catscip-shell system . . cat. >> confdefs.h <<EOF
1119 #define $ac_tr_hdr 1
1120 EOF
1121
1122 else
1123 echoscip-shell system . . echo. "$ac_t""no" 1>&6
1124 fi
1125 done
1126
1127 echoscip-shell system . . echo. $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1128 echoscip-shell system . . echo. "configure:1129: checking whether ${MAKE-make} sets \${MAKE}" >&5
1129 set dummy ${MAKE-make}; ac_make=`echoscip-shell system . . echo. "$2" | sedscip-shell system . . sed. 'y%./+-%__p_%'`
1130 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1131 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
1132 else
1133 catscip-shell system . . cat. > conftestmake <<\EOF
1134 all:
1135 @echo 'ac_maketemp="${MAKE}"'
1136 EOF
1137 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1138 eval `${MAKE-make} -f conftestmake 2>/dev/nullscip-shell filesystem . . `/dev/null`. | grepscip-shell system . . grep. temp=`
1139 if testscip-shell system . . test. -n "$ac_maketemp"; then
1140 eval ac_cv_prog_make_${ac_make}_set=yes
1141 else
1142 eval ac_cv_prog_make_${ac_make}_set=no
1143 fi
1144 rmscip-shell system . . rm. -f conftestmake
1145 fi
1146 if eval "test \"`echoscip-shell system . . echo. '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1147 echoscip-shell system . . echo. "$ac_t""yes" 1>&6
1148 SET_MAKE=
1149 else
1150 echoscip-shell system . . echo. "$ac_t""no" 1>&6
1151 SET_MAKE="MAKE=${MAKE-make}"
1152 fi
1153
1154
1155 #--------------------------------------------------------------------
1156 # unsigned char is not supported by some non-ANSI compilers.
1157 #--------------------------------------------------------------------
1158
1159 echoscip-shell system . . echo. $ac_n "checking unsigned char""... $ac_c" 1>&6
1160 echoscip-shell system . . echo. "configure:1161: checking unsigned char" >&5
1161 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
1162 #line 1163 "configure"
1163 #include "confdefs.h"
1164 #include <stdio.h>
1165 int main() {
1166
1167 unsigned char c = 'c';
1168
1169 ; return 0; }
1170 EOF
1171 if { (eval echo configure:1172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1172 rmscip-shell system . . rm. -rf conftest*
1173 tcl_ok=supported
1174 else
1175 echoscip-shell system . . echo. "configure: failed program was:" >&5
1176 catscip-shell system . . cat. conftest.$ac_ext >&5
1177 rmscip-shell system . . rm. -rf conftest*
1178 tcl_ok=notsupported
1179 fi
1180 rmscip-shell system . . rm. -f conftest*
1181
1182 echoscip-shell system . . echo. "$ac_t""$tcl_ok" 1>&6
1183 if testscip-shell system . . test. $tcl_ok = supported; then
1184 catscip-shell system . . cat. >> confdefs.h <<\EOF
1185 #define UCHAR_SUPPORTED 1
1186 EOF
1187
1188 fi
1189
1190 #--------------------------------------------------------------------
1191 # Check whether there is an strcasecmp function on this system.
1192 # This is a bit tricky because under SCO it's in -lsocket and
1193 # under Sequent Dynix it's in -linet.
1194 #--------------------------------------------------------------------
1195
1196 echoscip-shell system . . echo. $ac_n "checking for strcasecmp""... $ac_c" 1>&6
1197 echoscip-shell system . . echo. "configure:1198: checking for strcasecmp" >&5
1198 if eval "test \"\${ac_cv_func_strcasecmp+set}\" = set"; then
1199 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
1200 else
1201 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1204 /* System header to define __stub macros and hopefully few prototypes,
1205 which can conflict with char strcasecmp(); below. */
1206 #include <assert.h>
1207 /* Override any gcc2 internal prototype to avoid an error. */
1208 /* We use char because int might match the return type of a gcc2
1209 builtin and then its argument prototype would still apply. */
1210 char strcasecmp();
1211 char (*f)();
1212
1213 int main() {
1214
1215 /* The GNU C library defines this for functions which it implements
1216 to always fail with ENOSYS. Some functions are actually named
1217 something starting with __ and the normal name is an alias. */
1218 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
1219 choke me
1220 #else
1221 f = strcasecmp;
1222 #endif
1223
1224 ; return 0; }
1225 EOF
1226 if { (eval echo configure:1227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && testscip-shell system . . test. -s conftest${ac_exeext}; then
1227 rmscip-shell system . . rm. -rf conftest*
1228 eval "ac_cv_func_strcasecmp=yes"
1229 else
1230 echoscip-shell system . . echo. "configure: failed program was:" >&5
1231 catscip-shell system . . cat. conftest.$ac_ext >&5
1232 rmscip-shell system . . rm. -rf conftest*
1233 eval "ac_cv_func_strcasecmp=no"
1234 fi
1235 rmscip-shell system . . rm. -f conftest*
1236 fi
1237
1238 if eval "test \"`echoscip-shell system . . echo. '$ac_cv_func_'strcasecmp`\" = yes"; then
1239 echoscip-shell system . . echo. "$ac_t""yes" 1>&6
1240 tcl_ok=1
1241 else
1242 echoscip-shell system . . echo. "$ac_t""no" 1>&6
1243 tcl_ok=0
1244 fi
1245
1246 if testscip-shell system . . test. "$tcl_ok" = 0; then
1247 echoscip-shell system . . echo. $ac_n "checking for strcasecmp in -lsocket""... $ac_c" 1>&6
1248 echoscip-shell system . . echo. "configure:1249: checking for strcasecmp in -lsocket" >&5
1249 ac_lib_var=`echoscip-shell system . . echo. socket'_'strcasecmp | sedscip-shell system . . sed. 'y%./+-%__p_%'`
1250 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
1251 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
1252 else
1253 ac_save_LIBS="$LIBS"
1254 LIBS="-lsocket $LIBS"
1255 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1258 /* Override any gcc2 internal prototype to avoid an error. */
1259 /* We use char because int might match the return type of a gcc2
1260 builtin and then its argument prototype would still apply. */
1261 char strcasecmp();
1262
1263 int main() {
1264 strcasecmp()
1265 ; return 0; }
1266 EOF
1267 if { (eval echo configure:1268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && testscip-shell system . . test. -s conftest${ac_exeext}; then
1268 rmscip-shell system . . rm. -rf conftest*
1269 eval "ac_cv_lib_$ac_lib_var=yes"
1270 else
1271 echoscip-shell system . . echo. "configure: failed program was:" >&5
1272 catscip-shell system . . cat. conftest.$ac_ext >&5
1273 rmscip-shell system . . rm. -rf conftest*
1274 eval "ac_cv_lib_$ac_lib_var=no"
1275 fi
1276 rmscip-shell system . . rm. -f conftest*
1277 LIBS="$ac_save_LIBS"
1278
1279 fi
1280 if eval "test \"`echoscip-shell system . . echo. '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1281 echoscip-shell system . . echo. "$ac_t""yes" 1>&6
1282 tcl_ok=1
1283 else
1284 echoscip-shell system . . echo. "$ac_t""no" 1>&6
1285 tcl_ok=0
1286 fi
1287
1288 fi
1289 if testscip-shell system . . test. "$tcl_ok" = 0; then
1290 echoscip-shell system . . echo. $ac_n "checking for strcasecmp in -linet""... $ac_c" 1>&6
1291 echoscip-shell system . . echo. "configure:1292: checking for strcasecmp in -linet" >&5
1292 ac_lib_var=`echoscip-shell system . . echo. inet'_'strcasecmp | sedscip-shell system . . sed. 'y%./+-%__p_%'`
1293 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
1294 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
1295 else
1296 ac_save_LIBS="$LIBS"
1297 LIBS="-linet $LIBS"
1298 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1301 /* Override any gcc2 internal prototype to avoid an error. */
1302 /* We use char because int might match the return type of a gcc2
1303 builtin and then its argument prototype would still apply. */
1304 char strcasecmp();
1305
1306 int main() {
1307 strcasecmp()
1308 ; return 0; }
1309 EOF
1310 if { (eval echo configure:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && testscip-shell system . . test. -s conftest${ac_exeext}; then
1311 rmscip-shell system . . rm. -rf conftest*
1312 eval "ac_cv_lib_$ac_lib_var=yes"
1313 else
1314 echoscip-shell system . . echo. "configure: failed program was:" >&5
1315 catscip-shell system . . cat. conftest.$ac_ext >&5
1316 rmscip-shell system . . rm. -rf conftest*
1317 eval "ac_cv_lib_$ac_lib_var=no"
1318 fi
1319 rmscip-shell system . . rm. -f conftest*
1320 LIBS="$ac_save_LIBS"
1321
1322 fi
1323 if eval "test \"`echoscip-shell system . . echo. '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1324 echoscip-shell system . . echo. "$ac_t""yes" 1>&6
1325 tcl_ok=1
1326 else
1327 echoscip-shell system . . echo. "$ac_t""no" 1>&6
1328 tcl_ok=0
1329 fi
1330
1331 fi
1332 if testscip-shell system . . test. "$tcl_ok" = 0; then
1333 catscip-shell system . . cat. >> confdefs.h <<\EOF
1334 #define NO_STRCASECMP 1
1335 EOF
1336
1337 fi
1338
1339 #--------------------------------------------------------------------
1340 # See if there was a command-line option for where ITcl is; if
1341 # not, assume that its top-level directory is a sibling of ours.
1342 #--------------------------------------------------------------------
1343
1344 # Check whether --with-itcl or --without-itcl was given.
1345 if testscip-shell system . . test. "${with_itcl+set}" = set; then
1346 withval="$with_itcl"
1347 val=$withval
1348 else
1349 val=""
1350 fi
1351
1352
1353 echoscip-shell system . . echo. $ac_n "checking ITcl source directory""... $ac_c" 1>&6
1354 echoscip-shell system . . echo. "configure:1355: checking ITcl source directory" >&5
1355
1356 if testscip-shell system . . test. "$val" != ""; then
1357 ITCL_SRC_DIR=$val
1358 if testscip-shell system . . test. ! -d $ITCL_SRC_DIR; then
1359 { echoscip-shell system . . echo. "configure: error: Directory $ITCL_SRC_DIR doesn't exist" 1>&2; exit 1; }
1360 { echoscip-shell system . . echo. "configure: error: Please install the source code of ITcl 3.0" 1>&2; exit 1; }
1361 exit 1
1362 fi
1363 else
1364 dirs="../../../itcl3.0.1"
1365 ITCL_SRC_DIR="no-no"
1366 for i in $dirs; do
1367 if testscip-shell system . . test. -d $i; then
1368 ITCL_SRC_DIR=`cd $i; pwdscip-shell system . . pwd.`
1369 fi
1370 done
1371
1372 if testscip-shell system . . test. ! -d $ITCL_SRC_DIR; then
1373 { echoscip-shell system . . echo. "configure: error: Cannot locate ITcl source directory in $dirs" 1>&2; exit 1; }
1374 { echoscip-shell system . . echo. "configure: error: Please install the source code of ITcl 3.0" 1>&2; exit 1; }
1375 exit 1
1376 fi
1377 fi
1378 echoscip-shell system . . echo. "$ac_t""$ITCL_SRC_DIR" 1>&6
1379
1380 ITCL_BIN_DIR=$ITCL_SRC_DIR/unix
1381
1382 ITCL_ROOT_DIR=$ITCL_SRC_DIR
1383
1384 # Check for Tcl and Tk.
1385
1386 dirlist="../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1387 if testscip-shell system . . test. x"${no_tcl}" = x ; then
1388 no_tcl=true
1389 # Check whether --with-tclconfig or --without-tclconfig was given.
1390 if testscip-shell system . . test. "${with_tclconfig+set}" = set; then
1391 withval="$with_tclconfig"
1392 with_tclconfig=${withval}
1393 fi
1394
1395 echoscip-shell system . . echo. $ac_n "checking for Tcl configuration script""... $ac_c" 1>&6
1396 echoscip-shell system . . echo. "configure:1397: checking for Tcl configuration script" >&5
1397 if eval "test \"\${ac_cv_c_tclconfig+set}\" = set"; then
1398 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
1399 else
1400
1401
1402 if testscip-shell system . . test. x"${with_tclconfig}" != x ; then
1403 if testscip-shell system . . test. -f "${with_tclconfig}/tclConfig.sh" ; then
1404 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwdscip-shell system . . pwd.)`
1405 else
1406 { echoscip-shell system . . echo. "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
1407 fi
1408 fi
1409
1410 if testscip-shell system . . test. x"${ac_cv_c_tclconfig}" = x ; then
1411 for i in $dirlist; do
1412 if testscip-shell system . . test. -f $srcdir/$i/unix/tclConfig.sh ; then
1413 ac_cv_c_tclconfig=`(cd $srcdir/$i/unix; pwdscip-shell system . . pwd.)`
1414 break
1415 fi
1416 done
1417 fi
1418 if testscip-shell system . . test. x"${ac_cv_c_tclconfig}" = x ; then
1419 for i in $dirlist; do
1420 if testscip-shell system . . test. -n "`lsscip-shell system . . ls. -dr $i/tcl* 2>/dev/nullscip-shell filesystem . . `/dev/null`.`" ; then
1421 tclconfpath=$i
1422 break
1423 fi
1424 done
1425
1426 for i in `lsscip-shell system . . ls. -dr $tclconfpath/tcl* 2>/dev/nullscip-shell filesystem . . `/dev/null`. ` ; do
1427 if testscip-shell system . . test. -f $i/unix/tclConfig.sh ; then
1428 ac_cv_c_tclconfig=`(cd $i/unix; pwdscip-shell system . . pwd.)`
1429 break
1430 fi
1431 done
1432 fi
1433
1434 if testscip-shell system . . test. x"${ac_cv_c_tclconfig}" = x ; then
1435 ccpath=`whichscip-shell system . . which. ${CC} | sedscip-shell system . . sed. -e 's:/bin/.*::'`/lib
1436 if testscip-shell system . . test. -f $ccpath/tclConfig.sh; then
1437 ac_cv_c_tclconfig=$ccpath
1438 fi
1439 fi
1440
1441 fi
1442
1443 if testscip-shell system . . test. x"${ac_cv_c_tclconfig}" = x ; then
1444 TCLCONFIG=""
1445 echoscip-shell system . . echo. "configure: warning: Can't find Tcl configuration definitions" 1>&2
1446 else
1447 no_tcl=""
1448 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
1449 echoscip-shell system . . echo. "$ac_t""${TCLCONFIG}" 1>&6
1450 fi
1451 fi
1452
1453
1454
1455 . $TCLCONFIG
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475 dirlist="../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1476 if testscip-shell system . . test. x"${no_tk}" = x ; then
1477 no_tk=true
1478 # Check whether --with-tkconfig or --without-tkconfig was given.
1479 if testscip-shell system . . test. "${with_tkconfig+set}" = set; then
1480 withval="$with_tkconfig"
1481 with_tkconfig=${withval}
1482 fi
1483
1484 echoscip-shell system . . echo. $ac_n "checking for Tk configuration script""... $ac_c" 1>&6
1485 echoscip-shell system . . echo. "configure:1486: checking for Tk configuration script" >&5
1486 if eval "test \"\${ac_cv_c_tkconfig+set}\" = set"; then
1487 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
1488 else
1489
1490
1491 if testscip-shell system . . test. x"${with_tkconfig}" != x ; then
1492 if testscip-shell system . . test. -f "${with_tkconfig}/tkConfig.sh" ; then
1493 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwdscip-shell system . . pwd.)`
1494 else
1495 { echoscip-shell system . . echo. "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
1496 fi
1497 fi
1498
1499 if testscip-shell system . . test. x"${ac_cv_c_tkconfig}" = x ; then
1500 for i in $dirlist; do
1501 if testscip-shell system . . test. -f $srcdir/$i/unix/tkConfig.sh ; then
1502 ac_cv_c_tkconfig=`(cd $srcdir/$i/unix; pwdscip-shell system . . pwd.)`
1503 break
1504 fi
1505 done
1506 fi
1507 if testscip-shell system . . test. x"${ac_cv_c_tkconfig}" = x ; then
1508 for i in $dirlist; do
1509 if testscip-shell system . . test. -n "`lsscip-shell system . . ls. -dr $i/tk* 2>/dev/nullscip-shell filesystem . . `/dev/null`.`" ; then
1510 tkconfpath=$i
1511 break
1512 fi
1513 done
1514
1515 for i in `lsscip-shell system . . ls. -dr $tkconfpath/tk* 2>/dev/nullscip-shell filesystem . . `/dev/null`. ` ; do
1516 if testscip-shell system . . test. -f $i/unix/tkConfig.sh ; then
1517 ac_cv_c_tkconfig=`(cd $i/unix; pwdscip-shell system . . pwd.)`
1518 break
1519 fi
1520 done
1521 fi
1522
1523 if testscip-shell system . . test. x"${ac_cv_c_tkconfig}" = x ; then
1524 ccpath=`whichscip-shell system . . which. ${CC} | sedscip-shell system . . sed. -e 's:/bin/.*::'`/lib
1525 if testscip-shell system . . test. -f $ccpath/tkConfig.sh; then
1526 ac_cv_c_tkconfig=$ccpath
1527 fi
1528 fi
1529
1530 fi
1531
1532 if testscip-shell system . . test. x"${ac_cv_c_tkconfig}" = x ; then
1533 TKCONFIG=""
1534 echoscip-shell system . . echo. "configure: warning: Can't find Tk configuration definitions" 1>&2
1535 else
1536 no_tk=""
1537 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
1538 echoscip-shell system . . echo. "$ac_t""${TKCONFIG}" 1>&6
1539 fi
1540 fi
1541
1542
1543
1544 if testscip-shell system . . test. -f "$TKCONFIG" ; then
1545 . $TKCONFIG
1546 fi
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561 dirlist="../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1562 no_tcl=true
1563 echoscip-shell system . . echo. $ac_n "checking for Tcl headers in the source tree""... $ac_c" 1>&6
1564 echoscip-shell system . . echo. "configure:1565: checking for Tcl headers in the source tree" >&5
1565 # Check whether --with-tclinclude or --without-tclinclude was given.
1566 if testscip-shell system . . test. "${with_tclinclude+set}" = set; then
1567 withval="$with_tclinclude"
1568 with_tclinclude=${withval}
1569 fi
1570
1571 if eval "test \"\${ac_cv_c_tclh+set}\" = set"; then
1572 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
1573 else
1574
1575 if testscip-shell system . . test. x"${with_tclinclude}" != x ; then
1576 if testscip-shell system . . test. -f ${with_tclinclude}/tcl.h ; then
1577 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwdscip-shell system . . pwd.)`
1578 elif testscip-shell system . . test. -f ${with_tclinclude}/generic/tcl.h ; then
1579 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwdscip-shell system . . pwd.)`
1580 else
1581 { echoscip-shell system . . echo. "configure: error: ${with_tclinclude} directory doesn't contain headers" 1>&2; exit 1; }
1582 fi
1583 fi
1584
1585 if testscip-shell system . . test. x"${ac_cv_c_tclconfig}" != x ; then
1586 for i in $dirlist; do
1587 if testscip-shell system . . test. -f $ac_cv_c_tclconfig/$i/generic/tcl.h ; then
1588 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/$i/generic; pwdscip-shell system . . pwd.)`
1589 break
1590 fi
1591 done
1592 fi
1593
1594 if testscip-shell system . . test. x"${ac_cv_c_tclh}" = x ; then
1595 for i in $dirlist; do
1596 if testscip-shell system . . test. -n "`lsscip-shell system . . ls. -dr $srcdir/$i/tcl* 2>/dev/nullscip-shell filesystem . . `/dev/null`.`" ; then
1597 tclpath=$srcdir/$i
1598 break
1599 fi
1600 done
1601
1602 for i in `lsscip-shell system . . ls. -dr $tclpath/tcl* 2>/dev/nullscip-shell filesystem . . `/dev/null`. ` ; do
1603 if testscip-shell system . . test. -f $i/generic/tcl.h ; then
1604 ac_cv_c_tclh=`(cd $i/generic; pwdscip-shell system . . pwd.)`
1605 break
1606 fi
1607 done
1608 fi
1609
1610 if testscip-shell system . . test. x"${ac_cv_c_tclh}" = x ; then
1611 ccpath=`whichscip-shell system . . which. ${CC} | sedscip-shell system . . sed. -e 's:/bin/.*::'`/include
1612 if testscip-shell system . . test. -f $ccpath/tcl.h; then
1613 ac_cv_c_tclh=$ccpath
1614 fi
1615 fi
1616
1617 if testscip-shell system . . test. x"${ac_cv_c_tclh}" = x ; then
1618 echoscip-shell system . . echo. "$ac_t""none" 1>&6
1619 ac_safe=`echoscip-shell system . . echo. "tcl.h" | sedscip-shell system . . sed. 'y%./+-%__p_%'`
1620 echoscip-shell system . . echo. $ac_n "checking for tcl.h""... $ac_c" 1>&6
1621 echoscip-shell system . . echo. "configure:1622: checking for tcl.h" >&5
1622 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
1623 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
1624 else
1625 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
1626 #line 1627 "configure"
1627 #include "confdefs.h"
1628 #include <tcl.h>
1629 EOF
1630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1631 { (eval echo configure:1632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1632 ac_err=`grepscip-shell system . . grep. -v '^ *+' conftest.out | grepscip-shell system . . grep. -v "^conftest.${ac_ext}\$"`
1633 if testscip-shell system . . test. -z "$ac_err"; then
1634 rmscip-shell system . . rm. -rf conftest*
1635 eval "ac_cv_header_$ac_safe=yes"
1636 else
1637 echoscip-shell system . . echo. "$ac_err" >&5
1638 echoscip-shell system . . echo. "configure: failed program was:" >&5
1639 catscip-shell system . . cat. conftest.$ac_ext >&5
1640 rmscip-shell system . . rm. -rf conftest*
1641 eval "ac_cv_header_$ac_safe=no"
1642 fi
1643 rmscip-shell system . . rm. -f conftest*
1644 fi
1645 if eval "test \"`echoscip-shell system . . echo. '$ac_cv_header_'$ac_safe`\" = yes"; then
1646 echoscip-shell system . . echo. "$ac_t""yes" 1>&6
1647 ac_cv_c_tclh=installed
1648 else
1649 echoscip-shell system . . echo. "$ac_t""no" 1>&6
1650 ac_cv_c_tclh=""
1651 fi
1652
1653 else
1654 echoscip-shell system . . echo. "$ac_t""${ac_cv_c_tclh}" 1>&6
1655 fi
1656
1657 fi
1658
1659 TCLHDIR=""
1660 if testscip-shell system . . test. x"${ac_cv_c_tclh}" = x ; then
1661 { echoscip-shell system . . echo. "configure: error: Can't find any Tcl headers" 1>&2; exit 1; }
1662 fi
1663 if testscip-shell system . . test. x"${ac_cv_c_tclh}" != x ; then
1664 no_tcl=""
1665 if testscip-shell system . . test. x"${ac_cv_c_tclh}" != x"installed" ; then
1666 if testscip-shell system . . test. x"${CC}" = xcl ; then
1667 tmp="`cygpath --windows ${ac_cv_c_tclh}`"
1668 ac_cv_c_tclh="`echoscip-shell system . . echo. $tmp | sedscip-shell system . . sed. -e s#\\\\\\\\#/#g`"
1669 fi
1670 echoscip-shell system . . echo. "$ac_t""${ac_cv_c_tclh}" 1>&6
1671 TCLHDIR="-I${ac_cv_c_tclh}"
1672 fi
1673 fi
1674
1675
1676
1677 # FIXME: consider only doing this if --with-x given.
1678
1679 #
1680 # Ok, lets find the tk source trees so we can use the headers
1681 # If the directory (presumably symlink) named "tk" exists, use that one
1682 # in preference to any others. Same logic is used when choosing library
1683 # and again with Tcl. The search order is the best place to look first, then in
1684 # decreasing significance. The loop breaks if the trigger file is found.
1685 # Note the gross little conversion here of srcdir by cd'ing to the found
1686 # directory. This converts the path from a relative to an absolute, so
1687 # recursive cache variables for the path will work right. We check all
1688 # the possible paths in one loop rather than many seperate loops to speed
1689 # things up.
1690 # the alternative search directory is involked by --with-tkinclude
1691 #
1692 dirlist="../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1693 no_tk=true
1694 echoscip-shell system . . echo. $ac_n "checking for Tk headers in the source tree""... $ac_c" 1>&6
1695 echoscip-shell system . . echo. "configure:1696: checking for Tk headers in the source tree" >&5
1696 # Check whether --with-tkinclude or --without-tkinclude was given.
1697 if testscip-shell system . . test. "${with_tkinclude+set}" = set; then
1698 withval="$with_tkinclude"
1699 with_tkinclude=${withval}
1700 fi
1701
1702 if eval "test \"\${ac_cv_c_tkh+set}\" = set"; then
1703 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
1704 else
1705
1706 if testscip-shell system . . test. x"${with_tkinclude}" != x ; then
1707 if testscip-shell system . . test. -f ${with_tkinclude}/tk.h ; then
1708 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwdscip-shell system . . pwd.)`
1709 elif testscip-shell system . . test. -f ${with_tkinclude}/generic/tk.h ; then
1710 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwdscip-shell system . . pwd.)`
1711 else
1712 { echoscip-shell system . . echo. "configure: error: ${with_tkinclude} directory doesn't contain headers" 1>&2; exit 1; }
1713 fi
1714 fi
1715
1716 if testscip-shell system . . test. x"${ac_cv_c_tkconfig}" != x ; then
1717 for i in $dirlist; do
1718 if testscip-shell system . . test. -f $ac_cv_c_tkconfig/$i/generic/tk.h ; then
1719 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/$i/generic; pwdscip-shell system . . pwd.)`
1720 break
1721 fi
1722 done
1723 fi
1724
1725 if testscip-shell system . . test. x"${ac_cv_c_tkh}" = x ; then
1726 for i in $dirlist; do
1727 if testscip-shell system . . test. -n "`lsscip-shell system . . ls. -dr $srcdir/$i/tk* 2>/dev/nullscip-shell filesystem . . `/dev/null`.`" ; then
1728 tkpath=$srcdir/$i
1729 break
1730 fi
1731 done
1732
1733 for i in `lsscip-shell system . . ls. -dr $tkpath/tk* 2>/dev/nullscip-shell filesystem . . `/dev/null`. ` ; do
1734 if testscip-shell system . . test. -f $i/generic/tk.h ; then
1735 ac_cv_c_tkh=`(cd $i/generic; pwdscip-shell system . . pwd.)`
1736 break
1737 fi
1738 done
1739 fi
1740
1741 if testscip-shell system . . test. x"${ac_cv_c_tkh}" = x ; then
1742 echoscip-shell system . . echo. "$ac_t""none" 1>&6
1743 ccpath=`whichscip-shell system . . which. ${CC} | sedscip-shell system . . sed. -e 's:/bin/.*::'`/include
1744 if testscip-shell system . . test. -f $ccpath/tk.h; then
1745 ac_cv_c_tkh=$ccpath
1746 fi
1747 else
1748 echoscip-shell system . . echo. "$ac_t""${ac_cv_c_tkh}" 1>&6
1749 fi
1750
1751 fi
1752
1753 TKHDIR=""
1754 if testscip-shell system . . test. x"${ac_cv_c_tkh}" = x ; then
1755 { echoscip-shell system . . echo. "configure: error: Can't find any Tk headers" 1>&2; exit 1; }
1756 fi
1757 if testscip-shell system . . test. x"${ac_cv_c_tkh}" != x ; then
1758 no_tk=""
1759 if testscip-shell system . . test. x"${ac_cv_c_tkh}" != x"installed" ; then
1760 if testscip-shell system . . test. x"${CC}" = xcl ; then
1761 tmp="`cygpath --windows ${ac_cv_c_tkh}`"
1762 ac_cv_c_tkh="`echoscip-shell system . . echo. $tmp | sedscip-shell system . . sed. -e s#\\\\\\\\#/#g`"
1763 fi
1764 echoscip-shell system . . echo. "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
1765 TKHDIR="-I${ac_cv_c_tkh}"
1766 fi
1767 fi
1768
1769
1770
1771
1772 BIN_VERSION=${TIX_VERSION}.${TCL_VERSION}
1773 VERSION=${BIN_VERSION}
1774
1775 #--------------------------------------------------------------------
1776 # Find out the top level source directory of the Tix package.
1777 #--------------------------------------------------------------------
1778 TIX_SRC_DIR=`cd ${srcdir}/../..; pwdscip-shell system . . pwd.`
1779
1780 #--------------------------------------------------------------------
1781 # See if we should compile SAM
1782 #--------------------------------------------------------------------
1783
1784 # Check whether --enable-sam or --disable-sam was given.
1785 if testscip-shell system . . test. "${enable_sam+set}" = set; then
1786 enableval="$enable_sam"
1787 ok=$enableval
1788 else
1789 ok=no
1790 fi
1791
1792
1793 if testscip-shell system . . test. "$ok" = "yes"; then
1794 TIX_BUILD_SAM="yes"
1795 TIX_SAM_TARGETS='$(SAM_TARGETS)'
1796 else
1797 TIX_BUILD_SAM="no"
1798 fi
1799
1800 TIX_SAM_INSTALL=_install_sam_lib_
1801
1802 catscip-shell system . . cat. >> confdefs.h <<\EOF
1803 #define ITCL_2 1
1804 EOF
1805
1806 catscip-shell system . . cat. >> confdefs.h <<\EOF
1807 #define ITCL_3 1
1808 EOF
1809
1810 IS_ITCL=1
1811 TIX_EXE_FILE=tixwish
1812 TCL_SAMEXE_FILE=satclsh
1813 TK_SAMEXE_FILE=sawish
1814 TIX_SAMEXE_FILE=satixwish
1815
1816 #--------------------------------------------------------------------
1817 # Read in configuration information generated by Tcl for shared
1818 # libraries, and arrange for it to be substituted into our
1819 # Makefile.
1820 #--------------------------------------------------------------------
1821
1822 CC=$TCL_CC
1823 SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1824 SHLIB_LD=$TCL_SHLIB_LD
1825 SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS
1826 SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
1827 SHLIB_VERSION=$TCL_SHLIB_VERSION
1828
1829 DL_LIBS=$TCL_DL_LIBS
1830 LD_FLAGS=$TCL_LD_FLAGS
1831 TIX_LD_SEARCH_FLAGS=$TK_LD_SEARCH_FLAGS
1832
1833 #--------------------------------------------------------------------
1834 # Read in configuration information generated by Tk and arrange
1835 # for it to be substituted into our Makefile.
1836 #--------------------------------------------------------------------
1837
1838 TIX_DEFS="$TK_DEFS $TCL_DEFS"
1839
1840 # Note: in the following variable, it's important to use the absolute
1841 # path name of the Tcl directory rather than "..": this is because
1842 # AIX remembers this path and will attempt to use it at run-time to look
1843 # up the Tcl library.
1844
1845 if testscip-shell system . . test. "${TCL_LIB_VERSIONS_OK}" = "ok"; then
1846 TIX_BUILD_LIB_SPEC="-L`pwdscip-shell system . . pwd.` -ltix${VERSION}"
1847 TIX_BUILD_SAM_SPEC="-L`pwdscip-shell system . . pwd.` -ltixsam${VERSION}"
1848 TCL_BUILD_SAM_SPEC="-L`pwdscip-shell system . . pwd.` -ltclsam${TCL_VERSION}"
1849 TK_BUILD_SAM_SPEC="-L`pwdscip-shell system . . pwd.` -ltksam${TK_VERSION}"
1850 TIX_LIB_SPEC="-L${exec_prefix}/lib -ltix${VERSION}"
1851 else
1852 TIX_BUILD_LIB_SPEC="-L`pwdscip-shell system . . pwd.` -ltix`echoscip-shell system . . echo. ${VERSION} | trscip-shell system . . tr. -d .`"
1853 TIX_BUILD_SAM_SPEC="-L`pwdscip-shell system . . pwd.` -ltixsam`echoscip-shell system . . echo. ${VERSION} | trscip-shell system . . tr. -d .`"
1854 TCL_BUILD_SAM_SPEC="-L`pwdscip-shell system . . pwd.` -ltclsam`echoscip-shell system . . echo. ${TCL_VERSION} | trscip-shell system . . tr. -d .`"
1855 TK_BUILD_SAM_SPEC="-L`pwdscip-shell system . . pwd.` -ltksam`echoscip-shell system . . echo. ${TK_VERSION} | trscip-shell system . . tr. -d .`"
1856 TIX_LIB_SPEC="-L${exec_prefix}/lib -ltix`echoscip-shell system . . echo. ${VERSION} | trscip-shell system . . tr. -d .`"
1857 fi
1858
1859 #--------------------------------------------------------------------
1860 # See if we should compile shared library.
1861 #--------------------------------------------------------------------
1862
1863 # Check whether --enable-shared or --disable-shared was given.
1864 if testscip-shell system . . test. "${enable_shared+set}" = set; then
1865 enableval="$enable_shared"
1866 ok=$enableval
1867 else
1868 ok=no
1869 fi
1870
1871
1872 if testscip-shell system . . test. "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then
1873 TIX_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
1874 TIX_RANLIB=":"
1875
1876 # The main Tix library
1877 #
1878 eval "TIX_LIB_FILE=libtix${TCL_SHARED_LIB_SUFFIX}"
1879 TIX_MAKE_LIB="\${SHLIB_LD} -o ${TIX_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}"
1880
1881 # The Tcl SAM library
1882 #
1883 VERSION=${TCL_VERSION}
1884 eval "TCL_SAM_FILE=libtclsam${TCL_SHARED_LIB_SUFFIX}"
1885 TCL_MAKE_SAM="\${SHLIB_LD} -o ${TCL_SAM_FILE} \${TCL_SAM_OBJS} ${SHLIB_LD_LIBS}"
1886
1887 # The Tk SAM library
1888 #
1889 VERSION=${TCL_VERSION}
1890 eval "TK_SAM_FILE=libtksam${TCL_SHARED_LIB_SUFFIX}"
1891 TK_MAKE_SAM="\${SHLIB_LD} -o ${TK_SAM_FILE} \${TK_SAM_OBJS} ${SHLIB_LD_LIBS}"
1892
1893 # The Tix SAM library
1894 #
1895 VERSION=${BIN_VERSION}
1896 eval "TIX_SAM_FILE=libtixsam${TCL_SHARED_LIB_SUFFIX}"
1897 TIX_MAKE_SAM="\${SHLIB_LD} -o ${TIX_SAM_FILE} \${TIX_SAM_OBJS} ${SHLIB_LD_LIBS}"
1898
1899 else
1900 TIX_SHLIB_CFLAGS=""
1901 TIX_RANLIB='$(RANLIB)'
1902
1903 # The main Tix library
1904 #
1905 eval "TIX_LIB_FILE=libtix${TCL_UNSHARED_LIB_SUFFIX}"
1906 TIX_MAKE_LIB="ar cr ${TIX_LIB_FILE} \${OBJS}"
1907
1908 # The Tcl SAM library
1909
1910 VERSION=${TCL_VERSION}
1911 eval "TCL_SAM_FILE=libtclsam${TCL_UNSHARED_LIB_SUFFIX}"
1912 TCL_MAKE_SAM="ar cr ${TCL_SAM_FILE} \${TCL_SAM_OBJS}"
1913
1914 # The Tk SAM library
1915 #
1916 VERSION=${TCL_VERSION}
1917 eval "TK_SAM_FILE=libtksam${TCL_UNSHARED_LIB_SUFFIX}"
1918 TK_MAKE_SAM="ar cr ${TK_SAM_FILE} \${TK_SAM_OBJS}"
1919
1920 # The Tix SAM library
1921 #
1922 VERSION=${BIN_VERSION}
1923 eval "TIX_SAM_FILE=libtixsam${TCL_UNSHARED_LIB_SUFFIX}"
1924 TIX_MAKE_SAM="ar cr ${TIX_SAM_FILE} \${TIX_SAM_OBJS}"
1925 fi
1926
1927 #--------------------------------------------------------------------
1928 # Read in configuration information generated by ITcl
1929 # and arrange for it to be substituted into our Makefile.
1930 #--------------------------------------------------------------------
1931 file=$ITCL_ROOT_DIR/itcl/unix/itclConfig.sh
1932 . $file
1933
1934 #--------------------------------------------------------------------
1935 # Read in configuration information generated by ITk
1936 # and arrange for it to be substituted into our Makefile.
1937 #--------------------------------------------------------------------
1938 file=$ITCL_ROOT_DIR/itk/unix/itkConfig.sh
1939 . $file
1940
1941
1942 #--------------------------------------------------------------------
1943 # Check for the existence of the -lsocket and -lnsl libraries.
1944 # The order here is important, so that they end up in the right
1945 # order in the command line generated by make. Here are some
1946 # special considerations:
1947 # 1. Use "connect" and "accept" to check for -lsocket, and
1948 # "gethostbyname" to check for -lnsl.
1949 # 2. Use each function name only once: can't redo a check because
1950 # autoconf caches the results of the last check and won't redo it.
1951 # 3. Use -lnsl and -lsocket only if they supply procedures that
1952 # aren't already present in the normal libraries. This is because
1953 # IRIX 5.2 has libraries, but they aren't needed and they're
1954 # bogus: they goof up name resolution if used.
1955 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
1956 # To get around this problem, check for both libraries together
1957 # if -lsocket doesn't work by itself.
1958 #--------------------------------------------------------------------
1959
1960 checked=0
1961 for i in $TK_LIBS; do
1962 if testscip-shell system . . test. "$i" = "-lsocket"; then
1963 checked=1
1964 fi
1965 done
1966
1967 if testscip-shell system . . test. "$checked" = "0"; then
1968 tcl_checkBoth=0
1969 echoscip-shell system . . echo. $ac_n "checking for connect""... $ac_c" 1>&6
1970 echoscip-shell system . . echo. "configure:1971: checking for connect" >&5
1971 if eval "test \"\${ac_cv_func_connect+set}\" = set"; then
1972 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
1973 else
1974 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
1975 #line 1976 "configure"
1976 #include "confdefs.h"
1977 /* System header to define __stub macros and hopefully few prototypes,
1978 which can conflict with char connect(); below. */
1979 #include <assert.h>
1980 /* Override any gcc2 internal prototype to avoid an error. */
1981 /* We use char because int might match the return type of a gcc2
1982 builtin and then its argument prototype would still apply. */
1983 char connect();
1984 char (*f)();
1985
1986 int main() {
1987
1988 /* The GNU C library defines this for functions which it implements
1989 to always fail with ENOSYS. Some functions are actually named
1990 something starting with __ and the normal name is an alias. */
1991 #if defined (__stub_connect) || defined (__stub___connect)
1992 choke me
1993 #else
1994 f = connect;
1995 #endif
1996
1997 ; return 0; }
1998 EOF
1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && testscip-shell system . . test. -s conftest${ac_exeext}; then
2000 rmscip-shell system . . rm. -rf conftest*
2001 eval "ac_cv_func_connect=yes"
2002 else
2003 echoscip-shell system . . echo. "configure: failed program was:" >&5
2004 catscip-shell system . . cat. conftest.$ac_ext >&5
2005 rmscip-shell system . . rm. -rf conftest*
2006 eval "ac_cv_func_connect=no"
2007 fi
2008 rmscip-shell system . . rm. -f conftest*
2009 fi
2010
2011 if eval "test \"`echoscip-shell system . . echo. '$ac_cv_func_'connect`\" = yes"; then
2012 echoscip-shell system . . echo. "$ac_t""yes" 1>&6
2013 tcl_checkSocket=0
2014 else
2015 echoscip-shell system . . echo. "$ac_t""no" 1>&6
2016 tcl_checkSocket=1
2017 fi
2018
2019 if testscip-shell system . . test. "$tcl_checkSocket" = 1; then
2020 echoscip-shell system . . echo. $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2021 echoscip-shell system . . echo. "configure:2022: checking for main in -lsocket" >&5
2022 ac_lib_var=`echoscip-shell system . . echo. socket'_'main | sedscip-shell system . . sed. 'y%./+-%__p_%'`
2023 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2024 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
2025 else
2026 ac_save_LIBS="$LIBS"
2027 LIBS="-lsocket $LIBS"
2028 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031
2032 int main() {
2033 main()
2034 ; return 0; }
2035 EOF
2036 if { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && testscip-shell system . . test. -s conftest${ac_exeext}; then
2037 rmscip-shell system . . rm. -rf conftest*
2038 eval "ac_cv_lib_$ac_lib_var=yes"
2039 else
2040 echoscip-shell system . . echo. "configure: failed program was:" >&5
2041 catscip-shell system . . cat. conftest.$ac_ext >&5
2042 rmscip-shell system . . rm. -rf conftest*
2043 eval "ac_cv_lib_$ac_lib_var=no"
2044 fi
2045 rmscip-shell system . . rm. -f conftest*
2046 LIBS="$ac_save_LIBS"
2047
2048 fi
2049 if eval "test \"`echoscip-shell system . . echo. '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2050 echoscip-shell system . . echo. "$ac_t""yes" 1>&6
2051 TK_LIBS="$TK_LIBS -lsocket"
2052 else
2053 echoscip-shell system . . echo. "$ac_t""no" 1>&6
2054 tcl_checkBoth=1
2055 fi
2056
2057 fi
2058 if testscip-shell system . . test. "$tcl_checkBoth" = 1; then
2059 tk_oldLibs=$TK_LIBS
2060 TK_LIBS="$TK_LIBS -lsocket -lnsl"
2061 echoscip-shell system . . echo. $ac_n "checking for accept""... $ac_c" 1>&6
2062 echoscip-shell system . . echo. "configure:2063: checking for accept" >&5
2063 if eval "test \"\${ac_cv_func_accept+set}\" = set"; then
2064 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
2065 else
2066 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2069 /* System header to define __stub macros and hopefully few prototypes,
2070 which can conflict with char accept(); below. */
2071 #include <assert.h>
2072 /* Override any gcc2 internal prototype to avoid an error. */
2073 /* We use char because int might match the return type of a gcc2
2074 builtin and then its argument prototype would still apply. */
2075 char accept();
2076 char (*f)();
2077
2078 int main() {
2079
2080 /* The GNU C library defines this for functions which it implements
2081 to always fail with ENOSYS. Some functions are actually named
2082 something starting with __ and the normal name is an alias. */
2083 #if defined (__stub_accept) || defined (__stub___accept)
2084 choke me
2085 #else
2086 f = accept;
2087 #endif
2088
2089 ; return 0; }
2090 EOF
2091 if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && testscip-shell system . . test. -s conftest${ac_exeext}; then
2092 rmscip-shell system . . rm. -rf conftest*
2093 eval "ac_cv_func_accept=yes"
2094 else
2095 echoscip-shell system . . echo. "configure: failed program was:" >&5
2096 catscip-shell system . . cat. conftest.$ac_ext >&5
2097 rmscip-shell system . . rm. -rf conftest*
2098 eval "ac_cv_func_accept=no"
2099 fi
2100 rmscip-shell system . . rm. -f conftest*
2101 fi
2102
2103 if eval "test \"`echoscip-shell system . . echo. '$ac_cv_func_'accept`\" = yes"; then
2104 echoscip-shell system . . echo. "$ac_t""yes" 1>&6
2105 tcl_checkNsl=0
2106 else
2107 echoscip-shell system . . echo. "$ac_t""no" 1>&6
2108 TK_LIBS=$tk_oldLibs
2109 fi
2110
2111 fi
2112 echoscip-shell system . . echo. $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2113 echoscip-shell system . . echo. "configure:2114: checking for gethostbyname" >&5
2114 if eval "test \"\${ac_cv_func_gethostbyname+set}\" = set"; then
2115 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
2116 else
2117 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2120 /* System header to define __stub macros and hopefully few prototypes,
2121 which can conflict with char gethostbyname(); below. */
2122 #include <assert.h>
2123 /* Override any gcc2 internal prototype to avoid an error. */
2124 /* We use char because int might match the return type of a gcc2
2125 builtin and then its argument prototype would still apply. */
2126 char gethostbyname();
2127 char (*f)();
2128
2129 int main() {
2130
2131 /* The GNU C library defines this for functions which it implements
2132 to always fail with ENOSYS. Some functions are actually named
2133 something starting with __ and the normal name is an alias. */
2134 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2135 choke me
2136 #else
2137 f = gethostbyname;
2138 #endif
2139
2140 ; return 0; }
2141 EOF
2142 if { (eval echo configure:2143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && testscip-shell system . . test. -s conftest${ac_exeext}; then
2143 rmscip-shell system . . rm. -rf conftest*
2144 eval "ac_cv_func_gethostbyname=yes"
2145 else
2146 echoscip-shell system . . echo. "configure: failed program was:" >&5
2147 catscip-shell system . . cat. conftest.$ac_ext >&5
2148 rmscip-shell system . . rm. -rf conftest*
2149 eval "ac_cv_func_gethostbyname=no"
2150 fi
2151 rmscip-shell system . . rm. -f conftest*
2152 fi
2153
2154 if eval "test \"`echoscip-shell system . . echo. '$ac_cv_func_'gethostbyname`\" = yes"; then
2155 echoscip-shell system . . echo. "$ac_t""yes" 1>&6
2156 :
2157 else
2158 echoscip-shell system . . echo. "$ac_t""no" 1>&6
2159 echoscip-shell system . . echo. $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2160 echoscip-shell system . . echo. "configure:2161: checking for main in -lnsl" >&5
2161 ac_lib_var=`echoscip-shell system . . echo. nsl'_'main | sedscip-shell system . . sed. 'y%./+-%__p_%'`
2162 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2163 echoscip-shell system . . echo. $ac_n "(cached) $ac_c" 1>&6
2164 else
2165 ac_save_LIBS="$LIBS"
2166 LIBS="-lnsl $LIBS"
2167 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2170
2171 int main() {
2172 main()
2173 ; return 0; }
2174 EOF
2175 if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && testscip-shell system . . test. -s conftest${ac_exeext}; then
2176 rmscip-shell system . . rm. -rf conftest*
2177 eval "ac_cv_lib_$ac_lib_var=yes"
2178 else
2179 echoscip-shell system . . echo. "configure: failed program was:" >&5
2180 catscip-shell system . . cat. conftest.$ac_ext >&5
2181 rmscip-shell system . . rm. -rf conftest*
2182 eval "ac_cv_lib_$ac_lib_var=no"
2183 fi
2184 rmscip-shell system . . rm. -f conftest*
2185 LIBS="$ac_save_LIBS"
2186
2187 fi
2188 if eval "test \"`echoscip-shell system . . echo. '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2189 echoscip-shell system . . echo. "$ac_t""yes" 1>&6
2190 TK_LIBS="$TK_LIBS -lnsl"
2191 else
2192 echoscip-shell system . . echo. "$ac_t""no" 1>&6
2193 fi
2194
2195 fi
2196
2197 fi
2198
2199 #----------------------------------------------------------------------
2200 # Substitution strings exported by TIX
2201 #----------------------------------------------------------------------
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256 # The "binary version" of Tix (see docs/Pkg.txt)
2257 TIX_VERSION_PKG=${BIN_VERSION}
2258
2259
2260 TIXSAM_PKG_FILE="[file join [file dirname \$dir] ${TIX_SAM_FILE}]"
2261 # if test "$TIX_BUILD_SAM" = "yes"; then
2262 TIX_SAM_PACKAGE_IFNEEDED="package ifneeded Tixsam ${TIX_VERSION_PKG} [list load \"${TIXSAM_PKG_FILE}\" Tixsam]"
2263 # fi
2264
2265 # The package file, usually a shared library
2266 TIX_PKG_FILE="[file join [file dirname \$dir] ${TIX_LIB_FILE}]"
2267
2268
2269
2270
2271
2272 trap '' 1 2 15
2273 catscip-shell system . . cat. > confcache <<\EOF
2274 # This file is a shell script that caches the results of configure
2275 # tests run on this system so they can be shared between configure
2276 # scripts and configure runs. It is not useful on other systems.
2277 # If it contains results you don't want to keep, you may remove or edit it.
2278 #
2279 # By default, configure uses ./config.cache as the cache file,
2280 # creating it if it does not exist already. You can give configure
2281 # the --cache-file=FILE option to use a different cache file; that is
2282 # what configure does when it calls configure scripts in
2283 # subdirectories, so they share the cache.
2284 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2285 # config.status only pays attention to the cache file if you give it the
2286 # --recheck option to rerun configure.
2287 #
2288 EOF
2289 # The following way of writing the cache mishandles newlines in values,
2290 # but we know of no workaround that is simple, portable, and efficient.
2291 # So, don't put newlines in cache variables' values.
2292 # Ultrix sh set writes to stderr and can't be redirected directly,
2293 # and sets the high bit in the cache file unless we assign to the vars.
2294 (set) 2>&1 |
2295 case `(ac_space=' '; set | grepscip-shell system . . grep. ac_space) 2>&1` in
2296 *ac_space=\ *)
2297 # `set' does not quote correctly, so add quotes (double-quote substitution
2298 # turns \\\\ into \\, and sed turns \\ into \).
2299 sedscip-shell system . . sed. -n \
2300 -e "s/'/'\\\\''/g" \
2301 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2302 ;;
2303 *)
2304 # `set' quotes correctly as required by POSIX, so do not add quotes.
2305 sedscip-shell system . . sed. -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2306 ;;
2307 esac >> confcache
2308 if cmpscip-shell system . . cmp. -s $cache_file confcache; then
2309 :
2310 else
2311 if testscip-shell system . . test. -w $cache_file; then
2312 echoscip-shell system . . echo. "updating cache $cache_file"
2313 catscip-shell system . . cat. confcache > $cache_file
2314 else
2315 echoscip-shell system . . echo. "not updating unwritable cache $cache_file"
2316 fi
2317 fi
2318 rmscip-shell system . . rm. -f confcache
2319
2320 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2321
2322 testscip-shell system . . test. "x$prefix" = xNONE && prefix=$ac_default_prefix
2323 # Let make expand exec_prefix.
2324 testscip-shell system . . test. "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2325
2326 # Any assignment to VPATH causes Sun make to only execute
2327 # the first set of double-colon rules, so remove it if not needed.
2328 # If there is a colon in the path, we need to keep it.
2329 if testscip-shell system . . test. "x$srcdir" = x.; then
2330 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/dscip-shell filesystem . . `/^[ ]*VPATH[ ]*=[^:]*$/d`.'
2331 fi
2332
2333 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2334
2335 # Transform confdefs.h into DEFS.
2336 # Protect against shell expansion while executing Makefile rules.
2337 # Protect against Makefile macro expansion.
2338 catscip-shell system . . cat. > conftest.defs <<\EOF
2339 s%#define \([^ ][^ ]*\) *\(.*\)%-D\1=\2%g
2340 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2341 s%\[%\\&%g
2342 s%\]%\\&%g
2343 s%\$%$$%g
2344 EOF
2345 DEFS=`sedscip-shell system . . sed. -f conftest.defs confdefs.h | trscip-shell system . . tr. '\012' ' '`
2346 rmscip-shell system . . rm. -f conftest.defs
2347
2348
2349 # Without the "./", some shells look in PATH for config.status.
2350 : ${CONFIG_STATUS=./config.status}
2351
2352 echoscip-shell system . . echo. creating $CONFIG_STATUS
2353 rmscip-shell system . . rm. -f $CONFIG_STATUS
2354 catscip-shell system . . cat. > $CONFIG_STATUS <<EOF
2355 #! /bin/sh
2356 # Generated automatically by configure.
2357 # Run this file to recreate the current configuration.
2358 # This directory was configured as follows,
2359 # on host `(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q`:
2360 #
2361 # $0 $ac_configure_args
2362 #
2363 # Compiler output produced by configure, useful for debugging
2364 # configure, is in ./config.log if it exists.
2365
2366 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2367 for ac_option
2368 do
2369 case "\$ac_option" in
2370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2371 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2372 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2373 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2374 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
2375 exit 0 ;;
2376 -help | --help | --hel | --he | --h)
2377 echo "\$ac_cs_usage"; exit 0 ;;
2378 *) echo "\$ac_cs_usage"; exit 1 ;;
2379 esac
2380 done
2381
2382 ac_given_srcdir=$srcdir
2383 ac_given_INSTALL="$INSTALL"
2384
2385 trap 'rm -fr `echo "Makefile pkgIndex.tcl ../../tixConfig.sh" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2386 EOF
2387 catscip-shell system . . cat. >> $CONFIG_STATUS <<EOF
2388
2389 # Protect against being on the right side of a sed subst in config.status.
2390 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2391 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2392 $ac_vpsub
2393 $extrasub
2394 s%@SHELL@%$SHELL%g
2395 s%@CFLAGS@%$CFLAGS%g
2396 s%@CPPFLAGS@%$CPPFLAGS%g
2397 s%@CXXFLAGS@%$CXXFLAGS%g
2398 s%@FFLAGS@%$FFLAGS%g
2399 s%@DEFS@%$DEFS%g
2400 s%@LDFLAGS@%$LDFLAGS%g
2401 s%@LIBS@%$LIBS%g
2402 s%@exec_prefix@%$exec_prefix%g
2403 s%@prefix@%$prefix%g
2404 s%@program_transform_name@%$program_transform_name%g
2405 s%@bindir@%$bindir%g
2406 s%@sbindir@%$sbindir%g
2407 s%@libexecdir@%$libexecdir%g
2408 s%@datadir@%$datadir%g
2409 s%@sysconfdir@%$sysconfdir%g
2410 s%@sharedstatedir@%$sharedstatedir%g
2411 s%@localstatedir@%$localstatedir%g
2412 s%@libdir@%$libdir%g
2413 s%@includedir@%$includedir%g
2414 s%@oldincludedir@%$oldincludedir%g
2415 s%@infodir@%$infodir%g
2416 s%@mandir@%$mandir%g
2417 s%@UNAME@%$UNAME%g
2418 s%@CC@%$CC%g
2419 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2420 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2421 s%@INSTALL_DATA@%$INSTALL_DATA%g
2422 s%@RANLIB@%$RANLIB%g
2423 s%@CPP@%$CPP%g
2424 s%@SET_MAKE@%$SET_MAKE%g
2425 s%@TCLCONFIG@%$TCLCONFIG%g
2426 s%@TCL_DEFS@%$TCL_DEFS%g
2427 s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
2428 s%@TCL_LIB_FULL_PATH@%$TCL_LIB_FULL_PATH%g
2429 s%@TCL_LIBS@%$TCL_LIBS%g
2430 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
2431 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
2432 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
2433 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
2434 s%@TCL_RANLIB@%$TCL_RANLIB%g
2435 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
2436 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
2437 s%@TKCONFIG@%$TKCONFIG%g
2438 s%@TK_VERSION@%$TK_VERSION%g
2439 s%@TK_DEFS@%$TK_DEFS%g
2440 s%@TK_LIBS@%$TK_LIBS%g
2441 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
2442 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
2443 s%@TK_XLIBSW@%$TK_XLIBSW%g
2444 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
2445 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
2446 s%@TCLHDIR@%$TCLHDIR%g
2447 s%@TKHDIR@%$TKHDIR%g
2448 s%@TIX_RANLIB@%$TIX_RANLIB%g
2449 s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
2450 s%@SHLIB_LD@%$SHLIB_LD%g
2451 s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
2452 s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
2453 s%@SHLIB_VERSION@%$SHLIB_VERSION%g
2454 s%@DL_LIBS@%$DL_LIBS%g
2455 s%@LD_FLAGS@%$LD_FLAGS%g
2456 s%@TCL_VERSION@%$TCL_VERSION%g
2457 s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
2458 s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
2459 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
2460 s%@TK_SRC_DIR@%$TK_SRC_DIR%g
2461 s%@TK_BIN_DIR@%$TK_BIN_DIR%g
2462 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
2463 s%@TIX_LD_SEARCH_FLAGS@%$TIX_LD_SEARCH_FLAGS%g
2464 s%@TIX_MAJOR_VERSION@%$TIX_MAJOR_VERSION%g
2465 s%@TIX_MINOR_VERSION@%$TIX_MINOR_VERSION%g
2466 s%@TIX_VERSION@%$TIX_VERSION%g
2467 s%@TIX_SRC_DIR@%$TIX_SRC_DIR%g
2468 s%@TIX_SHLIB_CFLAGS@%$TIX_SHLIB_CFLAGS%g
2469 s%@TIX_MAKE_LIB@%$TIX_MAKE_LIB%g
2470 s%@TIX_LIB_FILE@%$TIX_LIB_FILE%g
2471 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
2472 s%@TIX_LIB_SPEC@%$TIX_LIB_SPEC%g
2473 s%@TIX_EXE_FILE@%$TIX_EXE_FILE%g
2474 s%@TIX_SAM_TARGETS@%$TIX_SAM_TARGETS%g
2475 s%@TIX_SAM_INSTALL@%$TIX_SAM_INSTALL%g
2476 s%@TCL_SAM_FILE@%$TCL_SAM_FILE%g
2477 s%@TCL_MAKE_SAM@%$TCL_MAKE_SAM%g
2478 s%@TK_SAM_FILE@%$TK_SAM_FILE%g
2479 s%@TK_MAKE_SAM@%$TK_MAKE_SAM%g
2480 s%@TIX_SAM_FILE@%$TIX_SAM_FILE%g
2481 s%@TIX_MAKE_SAM@%$TIX_MAKE_SAM%g
2482 s%@TIX_DEFS@%$TIX_DEFS%g
2483 s%@TCL_SAMEXE_FILE@%$TCL_SAMEXE_FILE%g
2484 s%@TK_SAMEXE_FILE@%$TK_SAMEXE_FILE%g
2485 s%@TIX_SAMEXE_FILE@%$TIX_SAMEXE_FILE%g
2486 s%@TCL_BUILD_SAM_SPEC@%$TCL_BUILD_SAM_SPEC%g
2487 s%@TK_BUILD_SAM_SPEC@%$TK_BUILD_SAM_SPEC%g
2488 s%@TIX_BUILD_SAM_SPEC@%$TIX_BUILD_SAM_SPEC%g
2489 s%@TCL_PACKAGE_PATH@%$TCL_PACKAGE_PATH%g
2490 s%@TIX_VERSION_PKG@%$TIX_VERSION_PKG%g
2491 s%@TIX_PKG_FILE@%$TIX_PKG_FILE%g
2492 s%@TIX_SAM_PACKAGE_IFNEEDED@%$TIX_SAM_PACKAGE_IFNEEDED%g
2493 s%@ITCL_ROOT_DIR@%$ITCL_ROOT_DIR%g
2494
2495 CEOF
2496 EOF
2497
2498 catscip-shell system . . cat. >> $CONFIG_STATUS <<\EOF
2499
2500 # Split the substitutions into bite-sized pieces for seds with
2501 # small command number limits, like on Digital OSF/1 and HP-UX.
2502 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2503 ac_file=1 # Number of current file.
2504 ac_beg=1 # First line for current file.
2505 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2506 ac_more_lines=:
2507 ac_sed_cmds=""
2508 while $ac_more_lines; do
2509 if test $ac_beg -gt 1; then
2510 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2511 else
2512 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2513 fi
2514 if test ! -s conftest.s$ac_file; then
2515 ac_more_lines=false
2516 rm -f conftest.s$ac_file
2517 else
2518 if test -z "$ac_sed_cmds"; then
2519 ac_sed_cmds="sed -f conftest.s$ac_file"
2520 else
2521 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2522 fi
2523 ac_file=`expr $ac_file + 1`
2524 ac_beg=$ac_end
2525 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2526 fi
2527 done
2528 if test -z "$ac_sed_cmds"; then
2529 ac_sed_cmds=cat
2530 fi
2531 EOF
2532
2533 catscip-shell system . . cat. >> $CONFIG_STATUS <<EOF
2534
2535 CONFIG_FILES=\${CONFIG_FILES-"Makefile pkgIndex.tcl ../../tixConfig.sh"}
2536 EOF
2537 catscip-shell system . . cat. >> $CONFIG_STATUS <<\EOF
2538 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2539 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2540 case "$ac_file" in
2541 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2542 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2543 *) ac_file_in="${ac_file}.in" ;;
2544 esac
2545
2546 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2547
2548 # Remove last slash and all that follows it. Not all systems have dirname.
2549 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2550 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2551 # The file is in a subdirectory.
2552 test ! -d "$ac_dir" && mkdir "$ac_dir"
2553 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2554 # A "../" for each directory in $ac_dir_suffix.
2555 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2556 else
2557 ac_dir_suffix= ac_dots=
2558 fi
2559
2560 case "$ac_given_srcdir" in
2561 .) srcdir=.
2562 if test -z "$ac_dots"; then top_srcdir=.
2563 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2564 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2565 *) # Relative path.
2566 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2567 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2568 esac
2569
2570 case "$ac_given_INSTALL" in
2571 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2572 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2573 esac
2574
2575 echo creating "$ac_file"
2576 rm -f "$ac_file"
2577 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2578 case "$ac_file" in
2579 *Makefile*) ac_comsub="1i\\
2580 # $configure_input" ;;
2581 *) ac_comsub= ;;
2582 esac
2583
2584 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2585 sed -e "$ac_comsub
2586 s%@configure_input@%$configure_input%g
2587 s%@srcdir@%$srcdir%g
2588 s%@top_srcdir@%$top_srcdir%g
2589 s%@INSTALL@%$INSTALL%g
2590 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2591 fi; done
2592 rm -f conftest.s*
2593
2594 EOF
2595 catscip-shell system . . cat. >> $CONFIG_STATUS <<EOF
2596
2597 EOF
2598 catscip-shell system . . cat. >> $CONFIG_STATUS <<\EOF
2599
2600 exit 0
2601 EOF
2602 chmodscip-shell system . . chmod. +x $CONFIG_STATUS
2603 rmscip-shell system . . rm. -fr confdefs* $ac_clean_files
2604 testscip-shell system . . test. "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
2605
2606