3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
19 --enable-install-libgui Install libgui.a and library header files"
21 --enable-ide Enable IDE support"
23 --with-tclconfig directory containing tcl configuration (tclConfig.sh)"
25 --with-tkconfig directory containing tk configuration (tkConfig.sh)"
27 --with-tclinclude directory where tcl headers are"
29 --with-tkinclude directory where tk headers are"
31 --with-itclconfig directory containing itcl configuration (itclConfig.sh)"
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file=./config.cache
46 program_transform_name=s,x,x,
55 bindir='${exec_prefix}/bin'
56 sbindir='${exec_prefix}/sbin'
57 libexecdir='${exec_prefix}/libexec'
58 datadir='${prefix}/share'
59 sysconfdir='${prefix}/etc'
60 sharedstatedir='${prefix}/com'
61 localstatedir='${prefix}/var'
62 libdir='${exec_prefix}/lib'
63 includedir='${prefix}/include'
64 oldincludedir='/usr/include'
65 infodir='${prefix}/info'
66 mandir='${prefix}/man'
68 # Initialize some other variables.
71 SHELL=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
100 -build | --build | --buil | --bui | --bu)
102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103 build="$ac_optarg" ;;
105 -cache-file | --cache-file | --cache-fil | --cache-fi \
106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107 ac_prev=cache_file ;;
108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110 cache_file="$ac_optarg" ;;
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116 datadir="$ac_optarg" ;;
118 -disable-* | --disable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* | --enable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142 | --exec | --exe | --ex)
143 ac_prev=exec_prefix ;;
144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146 | --exec=* | --exe=* | --ex=*)
147 exec_prefix="$ac_optarg" ;;
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
153 -help | --help | --hel | --he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --site-file=FILE use FILE as the site file
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
209 -host | --host | --hos | --ho)
211 -host=* | --host=* | --hos=* | --ho=*)
214 -includedir | --includedir | --includedi | --included | --include \
215 | --includ | --inclu | --incl | --inc)
216 ac_prev=includedir ;;
217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218 | --includ=* | --inclu=* | --incl=* | --inc=*)
219 includedir="$ac_optarg" ;;
221 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224 infodir="$ac_optarg" ;;
226 -libdir | --libdir | --libdi | --libd)
228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
229 libdir="$ac_optarg" ;;
231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232 | --libexe | --libex | --libe)
233 ac_prev=libexecdir ;;
234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235 | --libexe=* | --libex=* | --libe=*)
236 libexecdir="$ac_optarg" ;;
238 -localstatedir | --localstatedir | --localstatedi | --localstated \
239 | --localstate | --localstat | --localsta | --localst \
240 | --locals | --local | --loca | --loc | --lo)
241 ac_prev=localstatedir ;;
242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245 localstatedir="$ac_optarg" ;;
247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250 mandir="$ac_optarg" ;;
253 # Obsolete; use --without-fp.
256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266 | --oldin | --oldi | --old | --ol | --o)
267 ac_prev=oldincludedir ;;
268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271 oldincludedir="$ac_optarg" ;;
273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276 prefix="$ac_optarg" ;;
278 -program-prefix | --program-prefix | --program-prefi | --program-pref \
279 | --program-pre | --program-pr | --program-p)
280 ac_prev=program_prefix ;;
281 -program-prefix=* | --program-prefix=* | --program-prefi=* \
282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283 program_prefix="$ac_optarg" ;;
285 -program-suffix | --program-suffix | --program-suffi | --program-suff \
286 | --program-suf | --program-su | --program-s)
287 ac_prev=program_suffix ;;
288 -program-suffix=* | --program-suffix=* | --program-suffi=* \
289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290 program_suffix="$ac_optarg" ;;
292 -program-transform-name | --program-transform-name \
293 | --program-transform-nam | --program-transform-na \
294 | --program-transform-n | --program-transform- \
295 | --program-transform | --program-transfor \
296 | --program-transfo | --program-transf \
297 | --program-trans | --program-tran \
298 | --progr-tra | --program-tr | --program-t)
299 ac_prev=program_transform_name ;;
300 -program-transform-name=* | --program-transform-name=* \
301 | --program-transform-nam=* | --program-transform-na=* \
302 | --program-transform-n=* | --program-transform-=* \
303 | --program-transform=* | --program-transfor=* \
304 | --program-transfo=* | --program-transf=* \
305 | --program-trans=* | --program-tran=* \
306 | --progr-tra=* | --program-tr=* | --program-t=*)
307 program_transform_name="$ac_optarg" ;;
309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310 | -silent | --silent | --silen | --sile | --sil)
313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 sbindir="$ac_optarg" ;;
319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321 | --sharedst | --shareds | --shared | --share | --shar \
323 ac_prev=sharedstatedir ;;
324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 sharedstatedir="$ac_optarg" ;;
330 -site | --site | --sit)
332 -site=* | --site=* | --sit=*)
335 -site-file | --site-file | --site-fil | --site-fi | --site-f)
337 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
338 sitefile="$ac_optarg" ;;
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346 | --syscon | --sysco | --sysc | --sys | --sy)
347 ac_prev=sysconfdir ;;
348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350 sysconfdir="$ac_optarg" ;;
352 -target | --target | --targe | --targ | --tar | --ta | --t)
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.13"
365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* | --without-*)
378 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391 | --x-incl | --x-inc | --x-in | --x-i)
392 ac_prev=x_includes ;;
393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395 x_includes="$ac_optarg" ;;
397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399 ac_prev=x_libraries ;;
400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402 x_libraries="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c) ;;
454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file=src/subcommand.h
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$sitefile"; then
506 if test -z "$CONFIG_SITE"; then
507 if test "x$prefix" != xNONE; then
508 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
510 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 CONFIG_SITE="$sitefile"
516 for ac_site_file in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp='$CPP $CPPFLAGS'
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling=$ac_cv_prog_cc_cross
540 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
549 ac_n= ac_c='\c' ac_t=
554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
555 if test -f $ac_dir/install-sh; then
557 ac_install_sh="$ac_aux_dir/install-sh -c"
559 elif test -f $ac_dir/install.sh; then
561 ac_install_sh="$ac_aux_dir/install.sh -c"
565 if test -z "$ac_aux_dir"; then
566 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
568 ac_config_guess=$ac_aux_dir/config.guess
569 ac_config_sub=$ac_aux_dir/config.sub
570 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
572 # Find a good install program. We prefer a C program (faster),
573 # so one script is as good as another. But avoid the broken or
574 # incompatible versions:
575 # SysV /etc/install, /usr/sbin/install
576 # SunOS /usr/etc/install
579 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
582 # ./install, which can be erroneously created by make from ./install.sh.
583 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
584 echo "configure:585: checking for a BSD compatible install" >&5
585 if test -z "$INSTALL"; then
586 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
587 echo $ac_n "(cached) $ac_c" 1>&6
589 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
590 for ac_dir in $PATH; do
591 # Account for people who put trailing slashes in PATH elements.
593 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
595 # OSF1 and SCO ODT 3.0 have their own names for install.
596 # Don't use installbsd from OSF since it installs stuff as root
598 for ac_prog in ginstall scoinst install; do
599 if test -f $ac_dir/$ac_prog; then
600 if test $ac_prog = install &&
601 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
602 # AIX install. It has an incompatible calling convention.
605 ac_cv_path_install="$ac_dir/$ac_prog -c"
616 if test "${ac_cv_path_install+set}" = set; then
617 INSTALL="$ac_cv_path_install"
619 # As a last resort, use the slow shell script. We don't cache a
620 # path for INSTALL within a source directory, because that will
621 # break other packages using the cache if that directory is
622 # removed, or if the path is relative.
623 INSTALL="$ac_install_sh"
626 echo "$ac_t""$INSTALL" 1>&6
628 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
629 # It thinks the first close brace ends the variable substitution.
630 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
632 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
634 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
636 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
637 echo "configure:638: checking whether build environment is sane" >&5
640 echo timestamp > conftestfile
641 # Do `set' in a subshell so we don't clobber the current shell's
642 # arguments. Must try -L first in case configure is actually a
643 # symlink; some systems play weird games with the mod time of symlinks
644 # (eg FreeBSD returns the mod time of the symlink's containing
647 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
648 if test "$*" = "X"; then
650 set X `ls -t $srcdir/configure conftestfile`
652 if test "$*" != "X $srcdir/configure conftestfile" \
653 && test "$*" != "X conftestfile $srcdir/configure"; then
655 # If neither matched, then we have a broken ls. This can happen
656 # if, for instance, CONFIG_SHELL is bash and it inherits a
657 # broken ls alias from the environment. This has actually
658 # happened. Such a system could not be considered "sane".
659 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
660 alias in your environment" 1>&2; exit 1; }
663 test "$2" = conftestfile
669 { echo "configure: error: newly created file is older than distributed files!
670 Check your system clock" 1>&2; exit 1; }
673 echo "$ac_t""yes" 1>&6
674 if test "$program_transform_name" = s,x,x,; then
675 program_transform_name=
677 # Double any \ or $. echo might interpret backslashes.
678 cat <<\EOF_SED > conftestsed
679 s,\\,\\\\,g; s,\$,$$,g
681 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
684 test "$program_prefix" != NONE &&
685 program_transform_name="s,^,${program_prefix},; $program_transform_name"
686 # Use a double $ so make ignores it.
687 test "$program_suffix" != NONE &&
688 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
690 # sed with no file args requires a program.
691 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
693 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
694 echo "configure:695: checking whether ${MAKE-make} sets \${MAKE}" >&5
695 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
696 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 cat > conftestmake <<\EOF
701 @echo 'ac_maketemp="${MAKE}"'
703 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
704 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
705 if test -n "$ac_maketemp"; then
706 eval ac_cv_prog_make_${ac_make}_set=yes
708 eval ac_cv_prog_make_${ac_make}_set=no
712 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
713 echo "$ac_t""yes" 1>&6
716 echo "$ac_t""no" 1>&6
717 SET_MAKE="MAKE=${MAKE-make}"
725 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
726 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
728 cat >> confdefs.h <<EOF
729 #define PACKAGE "$PACKAGE"
732 cat >> confdefs.h <<EOF
733 #define VERSION "$VERSION"
738 missing_dir=`cd $ac_aux_dir && pwd`
739 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
740 echo "configure:741: checking for working aclocal" >&5
741 # Run test in a subshell; some versions of sh will print an error if
742 # an executable is not found, even if stderr is redirected.
743 # Redirect stdin to placate older versions of autoconf. Sigh.
744 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
746 echo "$ac_t""found" 1>&6
748 ACLOCAL="$missing_dir/missing aclocal"
749 echo "$ac_t""missing" 1>&6
752 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
753 echo "configure:754: checking for working autoconf" >&5
754 # Run test in a subshell; some versions of sh will print an error if
755 # an executable is not found, even if stderr is redirected.
756 # Redirect stdin to placate older versions of autoconf. Sigh.
757 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
759 echo "$ac_t""found" 1>&6
761 AUTOCONF="$missing_dir/missing autoconf"
762 echo "$ac_t""missing" 1>&6
765 echo $ac_n "checking for working automake""... $ac_c" 1>&6
766 echo "configure:767: checking for working automake" >&5
767 # Run test in a subshell; some versions of sh will print an error if
768 # an executable is not found, even if stderr is redirected.
769 # Redirect stdin to placate older versions of autoconf. Sigh.
770 if (automake --version) < /dev/null > /dev/null 2>&1; then
772 echo "$ac_t""found" 1>&6
774 AUTOMAKE="$missing_dir/missing automake"
775 echo "$ac_t""missing" 1>&6
778 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
779 echo "configure:780: checking for working autoheader" >&5
780 # Run test in a subshell; some versions of sh will print an error if
781 # an executable is not found, even if stderr is redirected.
782 # Redirect stdin to placate older versions of autoconf. Sigh.
783 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
784 AUTOHEADER=autoheader
785 echo "$ac_t""found" 1>&6
787 AUTOHEADER="$missing_dir/missing autoheader"
788 echo "$ac_t""missing" 1>&6
791 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
792 echo "configure:793: checking for working makeinfo" >&5
793 # Run test in a subshell; some versions of sh will print an error if
794 # an executable is not found, even if stderr is redirected.
795 # Redirect stdin to placate older versions of autoconf. Sigh.
796 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
798 echo "$ac_t""found" 1>&6
800 MAKEINFO="$missing_dir/missing makeinfo"
801 echo "$ac_t""missing" 1>&6
808 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
809 echo "configure:810: checking whether to enable maintainer-specific portions of Makefiles" >&5
810 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
811 if test "${enable_maintainer_mode+set}" = set; then
812 enableval="$enable_maintainer_mode"
813 USE_MAINTAINER_MODE=$enableval
815 USE_MAINTAINER_MODE=no
818 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
821 if test $USE_MAINTAINER_MODE = yes; then
822 MAINTAINER_MODE_TRUE=
823 MAINTAINER_MODE_FALSE='#'
825 MAINTAINER_MODE_TRUE='#'
826 MAINTAINER_MODE_FALSE=
828 MAINT=$MAINTAINER_MODE_TRUE
831 # Extract the first word of "gcc", so it can be a program name with args.
832 set dummy gcc; ac_word=$2
833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
834 echo "configure:835: checking for $ac_word" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 if test -n "$CC"; then
839 ac_cv_prog_CC="$CC" # Let the user override the test.
841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
843 for ac_dir in $ac_dummy; do
844 test -z "$ac_dir" && ac_dir=.
845 if test -f $ac_dir/$ac_word; then
854 if test -n "$CC"; then
855 echo "$ac_t""$CC" 1>&6
857 echo "$ac_t""no" 1>&6
860 if test -z "$CC"; then
861 # Extract the first word of "cc", so it can be a program name with args.
862 set dummy cc; ac_word=$2
863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
864 echo "configure:865: checking for $ac_word" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 if test -n "$CC"; then
869 ac_cv_prog_CC="$CC" # Let the user override the test.
871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
874 for ac_dir in $ac_dummy; do
875 test -z "$ac_dir" && ac_dir=.
876 if test -f $ac_dir/$ac_word; then
877 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
886 if test $ac_prog_rejected = yes; then
887 # We found a bogon in the path, so make sure we never use it.
888 set dummy $ac_cv_prog_CC
890 if test $# -gt 0; then
891 # We chose a different compiler from the bogus one.
892 # However, it has the same basename, so the bogon will be chosen
893 # first if we set CC to just the basename; use the full file name.
895 set dummy "$ac_dir/$ac_word" "$@"
903 if test -n "$CC"; then
904 echo "$ac_t""$CC" 1>&6
906 echo "$ac_t""no" 1>&6
909 if test -z "$CC"; then
912 # Extract the first word of "cl", so it can be a program name with args.
913 set dummy cl; ac_word=$2
914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
915 echo "configure:916: checking for $ac_word" >&5
916 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 if test -n "$CC"; then
920 ac_cv_prog_CC="$CC" # Let the user override the test.
922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
924 for ac_dir in $ac_dummy; do
925 test -z "$ac_dir" && ac_dir=.
926 if test -f $ac_dir/$ac_word; then
935 if test -n "$CC"; then
936 echo "$ac_t""$CC" 1>&6
938 echo "$ac_t""no" 1>&6
943 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
946 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
947 echo "configure:948: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
951 ac_cpp='$CPP $CPPFLAGS'
952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
954 cross_compiling=$ac_cv_prog_cc_cross
956 cat > conftest.$ac_ext << EOF
958 #line 959 "configure"
959 #include "confdefs.h"
963 if { (eval echo configure:964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
964 ac_cv_prog_cc_works=yes
965 # If we can't run a trivial program, we are probably using a cross compiler.
966 if (./conftest; exit) 2>/dev/null; then
967 ac_cv_prog_cc_cross=no
969 ac_cv_prog_cc_cross=yes
972 echo "configure: failed program was:" >&5
973 cat conftest.$ac_ext >&5
974 ac_cv_prog_cc_works=no
978 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
979 ac_cpp='$CPP $CPPFLAGS'
980 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
981 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
982 cross_compiling=$ac_cv_prog_cc_cross
984 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
985 if test $ac_cv_prog_cc_works = no; then
986 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
988 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
989 echo "configure:990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
990 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
991 cross_compiling=$ac_cv_prog_cc_cross
993 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
994 echo "configure:995: checking whether we are using GNU C" >&5
995 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
998 cat > conftest.c <<EOF
1003 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1010 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1012 if test $ac_cv_prog_gcc = yes; then
1018 ac_test_CFLAGS="${CFLAGS+set}"
1019 ac_save_CFLAGS="$CFLAGS"
1021 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1022 echo "configure:1023: checking whether ${CC-cc} accepts -g" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 echo 'void f(){}' > conftest.c
1027 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1036 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1037 if test "$ac_test_CFLAGS" = set; then
1038 CFLAGS="$ac_save_CFLAGS"
1039 elif test $ac_cv_prog_cc_g = yes; then
1040 if test "$GCC" = yes; then
1046 if test "$GCC" = yes; then
1053 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1054 echo "configure:1055: checking for Cygwin environment" >&5
1055 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1056 echo $ac_n "(cached) $ac_c" 1>&6
1058 cat > conftest.$ac_ext <<EOF
1059 #line 1060 "configure"
1060 #include "confdefs.h"
1065 #define __CYGWIN__ __CYGWIN32__
1070 if { (eval echo configure:1071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1074 echo "configure: failed program was:" >&5
1075 cat conftest.$ac_ext >&5
1083 echo "$ac_t""$ac_cv_cygwin" 1>&6
1085 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1086 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1087 echo "configure:1088: checking for mingw32 environment" >&5
1088 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1091 cat > conftest.$ac_ext <<EOF
1092 #line 1093 "configure"
1093 #include "confdefs.h"
1099 if { (eval echo configure:1100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1112 echo "$ac_t""$ac_cv_mingw32" 1>&6
1114 test "$ac_cv_mingw32" = yes && MINGW32=yes
1117 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1118 echo "configure:1119: checking for executable suffix" >&5
1119 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1126 echo 'int main () { return 0; }' > conftest.$ac_ext
1128 if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1129 for file in conftest.*; do
1131 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1132 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1136 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1139 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1144 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1145 echo "$ac_t""${ac_cv_exeext}" 1>&6
1148 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1149 echo "configure:1150: checking for object suffix" >&5
1150 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1154 echo 'int i = 1;' > conftest.$ac_ext
1155 if { (eval echo configure:1156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1156 for ac_file in conftest.*; do
1159 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1163 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1168 echo "$ac_t""$ac_cv_objext" 1>&6
1169 OBJEXT=$ac_cv_objext
1170 ac_objext=$ac_cv_objext
1172 # Check whether --enable-install-libgui or --disable-install-libgui was given.
1173 if test "${enable_install_libgui+set}" = set; then
1174 enableval="$enable_install_libgui"
1180 if test x$cross_compiling = xyes; then
1181 CROSS_COMPILING_TRUE=
1182 CROSS_COMPILING_FALSE='#'
1184 CROSS_COMPILING_TRUE='#'
1185 CROSS_COMPILING_FALSE=
1189 if test x$enable_install_libgui = xyes; then
1190 INSTALL_LIBGUI_TRUE=
1191 INSTALL_LIBGUI_FALSE='#'
1193 INSTALL_LIBGUI_TRUE='#'
1194 INSTALL_LIBGUI_FALSE=
1196 # Extract the first word of "ranlib", so it can be a program name with args.
1197 set dummy ranlib; ac_word=$2
1198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1199 echo "configure:1200: checking for $ac_word" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 if test -n "$RANLIB"; then
1204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1208 for ac_dir in $ac_dummy; do
1209 test -z "$ac_dir" && ac_dir=.
1210 if test -f $ac_dir/$ac_word; then
1211 ac_cv_prog_RANLIB="ranlib"
1216 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1219 RANLIB="$ac_cv_prog_RANLIB"
1220 if test -n "$RANLIB"; then
1221 echo "$ac_t""$RANLIB" 1>&6
1223 echo "$ac_t""no" 1>&6
1227 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1228 echo "configure:1229: checking how to run the C preprocessor" >&5
1229 # On Suns, sometimes $CPP names a directory.
1230 if test -n "$CPP" && test -d "$CPP"; then
1233 if test -z "$CPP"; then
1234 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 # This must be in double quotes, not single quotes, because CPP may get
1238 # substituted into the Makefile and "${CC-cc}" will confuse make.
1240 # On the NeXT, cc -E runs the code through the compiler's parser,
1241 # not just through cpp.
1242 cat > conftest.$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1249 { (eval echo configure:1250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1251 if test -z "$ac_err"; then
1255 echo "configure: failed program was:" >&5
1256 cat conftest.$ac_ext >&5
1258 CPP="${CC-cc} -E -traditional-cpp"
1259 cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1266 { (eval echo configure:1267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1268 if test -z "$ac_err"; then
1272 echo "configure: failed program was:" >&5
1273 cat conftest.$ac_ext >&5
1275 CPP="${CC-cc} -nologo -E"
1276 cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1283 { (eval echo configure:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1285 if test -z "$ac_err"; then
1289 echo "configure: failed program was:" >&5
1290 cat conftest.$ac_ext >&5
1299 ac_cv_prog_CPP="$CPP"
1301 CPP="$ac_cv_prog_CPP"
1303 ac_cv_prog_CPP="$CPP"
1305 echo "$ac_t""$CPP" 1>&6
1307 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1308 # for constant arguments. Useless!
1309 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1310 echo "configure:1311: checking for working alloca.h" >&5
1311 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1314 cat > conftest.$ac_ext <<EOF
1315 #line 1316 "configure"
1316 #include "confdefs.h"
1319 char *p = alloca(2 * sizeof(int));
1322 if { (eval echo configure:1323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1324 ac_cv_header_alloca_h=yes
1326 echo "configure: failed program was:" >&5
1327 cat conftest.$ac_ext >&5
1329 ac_cv_header_alloca_h=no
1334 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1335 if test $ac_cv_header_alloca_h = yes; then
1336 cat >> confdefs.h <<\EOF
1337 #define HAVE_ALLOCA_H 1
1342 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1343 echo "configure:1344: checking for alloca" >&5
1344 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 cat > conftest.$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1352 # define alloca __builtin_alloca
1355 # include <malloc.h>
1356 # define alloca _alloca
1359 # include <alloca.h>
1364 # ifndef alloca /* predefined by HP cc +Olibcalls */
1373 char *p = (char *) alloca(1);
1376 if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1378 ac_cv_func_alloca_works=yes
1380 echo "configure: failed program was:" >&5
1381 cat conftest.$ac_ext >&5
1383 ac_cv_func_alloca_works=no
1388 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1389 if test $ac_cv_func_alloca_works = yes; then
1390 cat >> confdefs.h <<\EOF
1391 #define HAVE_ALLOCA 1
1396 if test $ac_cv_func_alloca_works = no; then
1397 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1398 # that cause trouble. Some versions do not even contain alloca or
1399 # contain a buggy version. If you still want to use their alloca,
1400 # use ar to extract alloca.o from them instead of compiling alloca.c.
1401 ALLOCA=alloca.${ac_objext}
1402 cat >> confdefs.h <<\EOF
1407 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1408 echo "configure:1409: checking whether alloca needs Cray hooks" >&5
1409 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1412 cat > conftest.$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1415 #if defined(CRAY) && ! defined(CRAY2)
1422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1423 egrep "webecray" >/dev/null 2>&1; then
1434 echo "$ac_t""$ac_cv_os_cray" 1>&6
1435 if test $ac_cv_os_cray = yes; then
1436 for ac_func in _getb67 GETB67 getb67; do
1437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1438 echo "configure:1439: checking for $ac_func" >&5
1439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1442 cat > conftest.$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1445 /* System header to define __stub macros and hopefully few prototypes,
1446 which can conflict with char $ac_func(); below. */
1448 /* Override any gcc2 internal prototype to avoid an error. */
1449 /* We use char because int might match the return type of a gcc2
1450 builtin and then its argument prototype would still apply. */
1455 /* The GNU C library defines this for functions which it implements
1456 to always fail with ENOSYS. Some functions are actually named
1457 something starting with __ and the normal name is an alias. */
1458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1466 if { (eval echo configure:1467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1468 eval "ac_cv_func_$ac_func=yes"
1470 echo "configure: failed program was:" >&5
1471 cat conftest.$ac_ext >&5
1473 eval "ac_cv_func_$ac_func=no"
1478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1479 echo "$ac_t""yes" 1>&6
1480 cat >> confdefs.h <<EOF
1481 #define CRAY_STACKSEG_END $ac_func
1486 echo "$ac_t""no" 1>&6
1492 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1493 echo "configure:1494: checking stack direction for C alloca" >&5
1494 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 if test "$cross_compiling" = yes; then
1498 ac_cv_c_stack_direction=0
1500 cat > conftest.$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1503 find_stack_direction ()
1505 static char *addr = 0;
1510 return find_stack_direction ();
1513 return (&dummy > addr) ? 1 : -1;
1517 exit (find_stack_direction() < 0);
1520 if { (eval echo configure:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1522 ac_cv_c_stack_direction=1
1524 echo "configure: failed program was:" >&5
1525 cat conftest.$ac_ext >&5
1527 ac_cv_c_stack_direction=-1
1534 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1535 cat >> confdefs.h <<EOF
1536 #define STACK_DIRECTION $ac_cv_c_stack_direction
1541 for ac_hdr in stddef.h stdlib.h getopt.h unistd.h fcntl.h sys/file.h sys/wait.h string.h strings.h
1543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1545 echo "configure:1546: checking for $ac_hdr" >&5
1546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1549 cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1555 { (eval echo configure:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1557 if test -z "$ac_err"; then
1559 eval "ac_cv_header_$ac_safe=yes"
1562 echo "configure: failed program was:" >&5
1563 cat conftest.$ac_ext >&5
1565 eval "ac_cv_header_$ac_safe=no"
1569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1570 echo "$ac_t""yes" 1>&6
1571 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1572 cat >> confdefs.h <<EOF
1573 #define $ac_tr_hdr 1
1577 echo "$ac_t""no" 1>&6
1581 for ac_func in raise strdup
1583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1584 echo "configure:1585: checking for $ac_func" >&5
1585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591 /* System header to define __stub macros and hopefully few prototypes,
1592 which can conflict with char $ac_func(); below. */
1594 /* Override any gcc2 internal prototype to avoid an error. */
1595 /* We use char because int might match the return type of a gcc2
1596 builtin and then its argument prototype would still apply. */
1601 /* The GNU C library defines this for functions which it implements
1602 to always fail with ENOSYS. Some functions are actually named
1603 something starting with __ and the normal name is an alias. */
1604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1612 if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1614 eval "ac_cv_func_$ac_func=yes"
1616 echo "configure: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1619 eval "ac_cv_func_$ac_func=no"
1624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1625 echo "$ac_t""yes" 1>&6
1626 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1627 cat >> confdefs.h <<EOF
1628 #define $ac_tr_func 1
1632 echo "$ac_t""no" 1>&6
1637 # Check whether --enable-ide or --disable-ide was given.
1638 if test "${enable_ide+set}" = set; then
1639 enableval="$enable_ide"
1640 case "${enableval}" in
1643 *) { echo "configure: error: bad value ${enableval} for enable-ide option" 1>&2; exit 1; } ;;
1651 if test x$ide = xyes; then
1653 IDE_ENABLED_FALSE='#'
1655 IDE_ENABLED_TRUE='#'
1658 if test x$ide = xyes; then
1659 cat >> confdefs.h <<\EOF
1660 #define IDE_ENABLED 1
1665 # If we have random, assume we have srandom. If we have drand48,
1666 # assume we have srand48. If we have rand, assume we have srand.
1667 for ac_func in random drand48 rand
1669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1670 echo "configure:1671: checking for $ac_func" >&5
1671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 /* System header to define __stub macros and hopefully few prototypes,
1678 which can conflict with char $ac_func(); below. */
1680 /* Override any gcc2 internal prototype to avoid an error. */
1681 /* We use char because int might match the return type of a gcc2
1682 builtin and then its argument prototype would still apply. */
1687 /* The GNU C library defines this for functions which it implements
1688 to always fail with ENOSYS. Some functions are actually named
1689 something starting with __ and the normal name is an alias. */
1690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1698 if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1700 eval "ac_cv_func_$ac_func=yes"
1702 echo "configure: failed program was:" >&5
1703 cat conftest.$ac_ext >&5
1705 eval "ac_cv_func_$ac_func=no"
1710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1711 echo "$ac_t""yes" 1>&6
1712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1713 cat >> confdefs.h <<EOF
1714 #define $ac_tr_func 1
1718 echo "$ac_t""no" 1>&6
1723 cat > conftest.$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1729 egrep "strncasecmp" >/dev/null 2>&1; then
1731 cat >> confdefs.h <<\EOF
1732 #define HAVE_STRNCASECMP_DECL 1
1739 # Tcl8.1 requires writable strings for gcc
1741 if test "$GCC" = "yes"; then
1742 LIBGUI_CFLAGS=-fwritable-strings
1748 echo $ac_n "checking for cygwin32""... $ac_c" 1>&6
1749 echo "configure:1750: checking for cygwin32" >&5
1750 if eval "test \"`echo '$''{'ide_cv_os_cygwin32'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1762 egrep "lose" >/dev/null 2>&1; then
1764 ide_cv_os_cygwin32=yes
1767 ide_cv_os_cygwin32=no
1773 echo "$ac_t""$ide_cv_os_cygwin32" 1>&6
1775 if test x$ide_cv_os_cygwin32 = xyes; then
1779 tmp="`cd $srcdir/library; pwd`"
1780 if test x"$ac_cv_prog_CC" = xcl ; then
1781 tmp2="`cygpath --windows $tmp`"
1782 LIBGUI_LIBRARY_DIR="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
1784 LIBGUI_LIBRARY_DIR=$tmp
1788 # Find the init.tcl file.
1790 echo $ac_n "checking for init.tcl""... $ac_c" 1>&6
1791 echo "configure:1792: checking for init.tcl" >&5
1792 if eval "test \"`echo '$''{'ac_cv_c_tcl_libdir'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1796 if test -f $srcdir/../tcl/library/init.tcl ; then
1797 ac_cv_c_tcl_libdir=`cd $srcdir/../tcl/library; pwd`
1798 elif test -f $srcdir/../tcl8.1/library/init.tcl; then
1799 ac_cv_c_tcl_libdir=`cd $srcdir/../tcl8.1/library; pwd`
1804 echo "$ac_t""${ac_cv_c_tcl_libdir}" 1>&6
1806 if test x"$ac_cv_prog_CC" = xcl; then
1807 tmp2="`cygpath --windows $ac_cv_c_tcl_libdir`"
1808 TCL_LIBRARY="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
1810 TCL_LIBRARY=$ac_cv_c_tcl_libdir
1814 # Check for Tcl and Tk.
1816 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1817 if test x"${no_tcl}" = x ; then
1819 # Check whether --with-tclconfig or --without-tclconfig was given.
1820 if test "${with_tclconfig+set}" = set; then
1821 withval="$with_tclconfig"
1822 with_tclconfig=${withval}
1825 echo $ac_n "checking for Tcl configuration script""... $ac_c" 1>&6
1826 echo "configure:1827: checking for Tcl configuration script" >&5
1827 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1832 if test x"${with_tclconfig}" != x ; then
1833 if test -f "${with_tclconfig}/tclConfig.sh" ; then
1834 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
1836 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
1840 if test x"${ac_cv_c_tclconfig}" = x ; then
1841 for i in $dirlist; do
1842 if test -f $srcdir/$i/unix/tclConfig.sh ; then
1843 ac_cv_c_tclconfig=`(cd $srcdir/$i/unix; pwd)`
1848 if test x"${ac_cv_c_tclconfig}" = x ; then
1849 for i in $dirlist; do
1850 if test -n "`ls -dr $i/tcl* 2>/dev/null`" ; then
1856 for i in `ls -dr $tclconfpath/tcl* 2>/dev/null ` ; do
1857 if test -f $i/unix/tclConfig.sh ; then
1858 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
1864 if test x"${ac_cv_c_tclconfig}" = x ; then
1865 ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/lib
1866 if test -f $ccpath/tclConfig.sh; then
1867 ac_cv_c_tclconfig=$ccpath
1873 if test x"${ac_cv_c_tclconfig}" = x ; then
1875 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
1878 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
1879 echo "$ac_t""${TCLCONFIG}" 1>&6
1908 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1909 if test x"${no_tk}" = x ; then
1911 # Check whether --with-tkconfig or --without-tkconfig was given.
1912 if test "${with_tkconfig+set}" = set; then
1913 withval="$with_tkconfig"
1914 with_tkconfig=${withval}
1917 echo $ac_n "checking for Tk configuration script""... $ac_c" 1>&6
1918 echo "configure:1919: checking for Tk configuration script" >&5
1919 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1924 if test x"${with_tkconfig}" != x ; then
1925 if test -f "${with_tkconfig}/tkConfig.sh" ; then
1926 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
1928 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
1932 if test x"${ac_cv_c_tkconfig}" = x ; then
1933 for i in $dirlist; do
1934 if test -f $srcdir/$i/unix/tkConfig.sh ; then
1935 ac_cv_c_tkconfig=`(cd $srcdir/$i/unix; pwd)`
1940 if test x"${ac_cv_c_tkconfig}" = x ; then
1941 for i in $dirlist; do
1942 if test -n "`ls -dr $i/tk* 2>/dev/null`" ; then
1948 for i in `ls -dr $tkconfpath/tk* 2>/dev/null ` ; do
1949 if test -f $i/unix/tkConfig.sh ; then
1950 ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
1956 if test x"${ac_cv_c_tkconfig}" = x ; then
1957 ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/lib
1958 if test -f $ccpath/tkConfig.sh; then
1959 ac_cv_c_tkconfig=$ccpath
1965 if test x"${ac_cv_c_tkconfig}" = x ; then
1967 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
1970 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
1971 echo "$ac_t""${TKCONFIG}" 1>&6
1977 if test -f "$TKCONFIG" ; then
1995 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1997 echo $ac_n "checking for Tcl headers in the source tree""... $ac_c" 1>&6
1998 echo "configure:1999: checking for Tcl headers in the source tree" >&5
1999 # Check whether --with-tclinclude or --without-tclinclude was given.
2000 if test "${with_tclinclude+set}" = set; then
2001 withval="$with_tclinclude"
2002 with_tclinclude=${withval}
2005 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2009 if test x"${with_tclinclude}" != x ; then
2010 if test -f ${with_tclinclude}/tcl.h ; then
2011 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
2012 elif test -f ${with_tclinclude}/generic/tcl.h ; then
2013 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
2015 { echo "configure: error: ${with_tclinclude} directory doesn't contain headers" 1>&2; exit 1; }
2019 if test x"${ac_cv_c_tclconfig}" != x ; then
2020 for i in $dirlist; do
2021 if test -f $ac_cv_c_tclconfig/$i/generic/tcl.h ; then
2022 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/$i/generic; pwd)`
2028 if test x"${ac_cv_c_tclh}" = x ; then
2029 for i in $dirlist; do
2030 if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
2036 for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
2037 if test -f $i/generic/tcl.h ; then
2038 ac_cv_c_tclh=`(cd $i/generic; pwd)`
2044 if test x"${ac_cv_c_tclh}" = x ; then
2045 ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/include
2046 if test -f $ccpath/tcl.h; then
2047 ac_cv_c_tclh=$ccpath
2051 if test x"${ac_cv_c_tclh}" = x ; then
2052 echo "$ac_t""none" 1>&6
2053 ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
2054 echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
2055 echo "configure:2056: checking for tcl.h" >&5
2056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2059 cat > conftest.$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2065 { (eval echo configure:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2067 if test -z "$ac_err"; then
2069 eval "ac_cv_header_$ac_safe=yes"
2072 echo "configure: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2075 eval "ac_cv_header_$ac_safe=no"
2079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2080 echo "$ac_t""yes" 1>&6
2081 ac_cv_c_tclh=installed
2083 echo "$ac_t""no" 1>&6
2088 echo "$ac_t""${ac_cv_c_tclh}" 1>&6
2094 if test x"${ac_cv_c_tclh}" = x ; then
2095 { echo "configure: error: Can't find any Tcl headers" 1>&2; exit 1; }
2097 if test x"${ac_cv_c_tclh}" != x ; then
2099 if test x"${ac_cv_c_tclh}" != x"installed" ; then
2100 if test x"${CC}" = xcl ; then
2101 tmp="`cygpath --windows ${ac_cv_c_tclh}`"
2102 ac_cv_c_tclh="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
2104 echo "$ac_t""${ac_cv_c_tclh}" 1>&6
2105 TCLHDIR="-I${ac_cv_c_tclh}"
2111 # FIXME: consider only doing this if --with-x given.
2114 # Ok, lets find the tk source trees so we can use the headers
2115 # If the directory (presumably symlink) named "tk" exists, use that one
2116 # in preference to any others. Same logic is used when choosing library
2117 # and again with Tcl. The search order is the best place to look first, then in
2118 # decreasing significance. The loop breaks if the trigger file is found.
2119 # Note the gross little conversion here of srcdir by cd'ing to the found
2120 # directory. This converts the path from a relative to an absolute, so
2121 # recursive cache variables for the path will work right. We check all
2122 # the possible paths in one loop rather than many seperate loops to speed
2124 # the alternative search directory is involked by --with-tkinclude
2126 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
2128 echo $ac_n "checking for Tk headers in the source tree""... $ac_c" 1>&6
2129 echo "configure:2130: checking for Tk headers in the source tree" >&5
2130 # Check whether --with-tkinclude or --without-tkinclude was given.
2131 if test "${with_tkinclude+set}" = set; then
2132 withval="$with_tkinclude"
2133 with_tkinclude=${withval}
2136 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2140 if test x"${with_tkinclude}" != x ; then
2141 if test -f ${with_tkinclude}/tk.h ; then
2142 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
2143 elif test -f ${with_tkinclude}/generic/tk.h ; then
2144 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
2146 { echo "configure: error: ${with_tkinclude} directory doesn't contain headers" 1>&2; exit 1; }
2150 if test x"${ac_cv_c_tkconfig}" != x ; then
2151 for i in $dirlist; do
2152 if test -f $ac_cv_c_tkconfig/$i/generic/tk.h ; then
2153 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/$i/generic; pwd)`
2159 if test x"${ac_cv_c_tkh}" = x ; then
2160 for i in $dirlist; do
2161 if test -n "`ls -dr $srcdir/$i/tk* 2>/dev/null`" ; then
2167 for i in `ls -dr $tkpath/tk* 2>/dev/null ` ; do
2168 if test -f $i/generic/tk.h ; then
2169 ac_cv_c_tkh=`(cd $i/generic; pwd)`
2175 if test x"${ac_cv_c_tkh}" = x ; then
2176 echo "$ac_t""none" 1>&6
2177 ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/include
2178 if test -f $ccpath/tk.h; then
2182 echo "$ac_t""${ac_cv_c_tkh}" 1>&6
2188 if test x"${ac_cv_c_tkh}" = x ; then
2189 { echo "configure: error: Can't find any Tk headers" 1>&2; exit 1; }
2191 if test x"${ac_cv_c_tkh}" != x ; then
2193 if test x"${ac_cv_c_tkh}" != x"installed" ; then
2194 if test x"${CC}" = xcl ; then
2195 tmp="`cygpath --windows ${ac_cv_c_tkh}`"
2196 ac_cv_c_tkh="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
2198 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
2199 TKHDIR="-I${ac_cv_c_tkh}"
2207 # Ok, lets find the itcl configuration
2208 # First, look for one uninstalled.
2209 # the alternative search directory is invoked by --with-itclconfig
2212 if test x"${no_itcl}" = x ; then
2213 # we reset no_itcl in case something fails here
2215 # Check whether --with-itclconfig or --without-itclconfig was given.
2216 if test "${with_itclconfig+set}" = set; then
2217 withval="$with_itclconfig"
2218 with_itclconfig=${withval}
2221 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
2222 echo "configure:2223: checking for Itcl configuration" >&5
2223 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2228 # First check to see if --with-itclconfig was specified.
2229 if test x"${with_itclconfig}" != x ; then
2230 if test -f "${with_itclconfig}/itclConfig.sh" ; then
2231 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
2233 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
2237 # then check for a private itcl library
2238 if test x"${ac_cv_c_itclconfig}" = x ; then
2241 `ls -dr ../itcl/itcl[3]* 2>/dev/null` \
2243 `ls -dr ../../itcl/itcl[3]* 2>/dev/null` \
2244 ../../../itcl/itcl \
2245 `ls -dr ../../../itcl/itcl[3]* 2>/dev/null` ; do
2246 if test -f "$i/itclConfig.sh" ; then
2247 ac_cv_c_itclconfig=`(cd $i; pwd)`
2252 # check in a few common install locations
2253 if test x"${ac_cv_c_itclconfig}" = x ; then
2254 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
2255 if test -f "$i/itclConfig.sh" ; then
2256 ac_cv_c_itclconfig=`(cd $i; pwd)`
2261 # check in a few other private locations
2262 if test x"${ac_cv_c_itclconfig}" = x ; then
2264 ${srcdir}/../itcl/itcl \
2265 `ls -dr ${srcdir}/../itcl/itcl[3]* 2>/dev/null` ; do
2266 if test -f "$i/itcl/itclConfig.sh" ; then
2267 ac_cv_c_itclconfig=`(cd $i; pwd)`
2275 if test x"${ac_cv_c_itclconfig}" = x ; then
2276 ITCLCONFIG="# no itcl configs found"
2277 echo "configure: warning: Can't find itcl configuration definitions" 1>&2
2280 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
2281 echo "$ac_t""found $ITCLCONFIG" 1>&6
2287 if test -f "$ITCLCONFIG" ; then
2299 # Make sure we can run config.sub.
2300 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
2301 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2304 echo $ac_n "checking host system type""... $ac_c" 1>&6
2305 echo "configure:2306: checking host system type" >&5
2308 case "$host_alias" in
2312 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2313 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2315 *) host_alias=$nonopt ;;
2319 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2320 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2321 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2322 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2323 echo "$ac_t""$host" 1>&6
2326 *cygwin*) ITCL_DIR=itcl/itcl/win ;;
2327 *) ITCL_DIR=itcl/itcl/unix ;;
2343 if test x$TCL_SHARED_BUILD = x1; then
2345 TCL_SHARED_FALSE='#'
2354 cat > confcache <<\EOF
2355 # This file is a shell script that caches the results of configure
2356 # tests run on this system so they can be shared between configure
2357 # scripts and configure runs. It is not useful on other systems.
2358 # If it contains results you don't want to keep, you may remove or edit it.
2360 # By default, configure uses ./config.cache as the cache file,
2361 # creating it if it does not exist already. You can give configure
2362 # the --cache-file=FILE option to use a different cache file; that is
2363 # what configure does when it calls configure scripts in
2364 # subdirectories, so they share the cache.
2365 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2366 # config.status only pays attention to the cache file if you give it the
2367 # --recheck option to rerun configure.
2370 # The following way of writing the cache mishandles newlines in values,
2371 # but we know of no workaround that is simple, portable, and efficient.
2372 # So, don't put newlines in cache variables' values.
2373 # Ultrix sh set writes to stderr and can't be redirected directly,
2374 # and sets the high bit in the cache file unless we assign to the vars.
2376 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2378 # `set' does not quote correctly, so add quotes (double-quote substitution
2379 # turns \\\\ into \\, and sed turns \\ into \).
2381 -e "s/'/'\\\\''/g" \
2382 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2385 # `set' quotes correctly as required by POSIX, so do not add quotes.
2386 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2389 if cmp -s $cache_file confcache; then
2392 if test -w $cache_file; then
2393 echo "updating cache $cache_file"
2394 cat confcache > $cache_file
2396 echo "not updating unwritable cache $cache_file"
2401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2404 # Let make expand exec_prefix.
2405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2407 # Any assignment to VPATH causes Sun make to only execute
2408 # the first set of double-colon rules, so remove it if not needed.
2409 # If there is a colon in the path, we need to keep it.
2410 if test "x$srcdir" = x.; then
2411 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2414 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2416 DEFS=-DHAVE_CONFIG_H
2418 # Without the "./", some shells look in PATH for config.status.
2419 : ${CONFIG_STATUS=./config.status}
2421 echo creating $CONFIG_STATUS
2422 rm -f $CONFIG_STATUS
2423 cat > $CONFIG_STATUS <<EOF
2425 # Generated automatically by configure.
2426 # Run this file to recreate the current configuration.
2427 # This directory was configured as follows,
2428 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2430 # $0 $ac_configure_args
2432 # Compiler output produced by configure, useful for debugging
2433 # configure, is in ./config.log if it exists.
2435 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2438 case "\$ac_option" in
2439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2440 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2441 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2442 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2443 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2445 -help | --help | --hel | --he | --h)
2446 echo "\$ac_cs_usage"; exit 0 ;;
2447 *) echo "\$ac_cs_usage"; exit 1 ;;
2451 ac_given_srcdir=$srcdir
2452 ac_given_INSTALL="$INSTALL"
2454 trap 'rm -fr `echo "Makefile library/Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2456 cat >> $CONFIG_STATUS <<EOF
2458 # Protect against being on the right side of a sed subst in config.status.
2459 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2460 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2464 s%@CFLAGS@%$CFLAGS%g
2465 s%@CPPFLAGS@%$CPPFLAGS%g
2466 s%@CXXFLAGS@%$CXXFLAGS%g
2467 s%@FFLAGS@%$FFLAGS%g
2469 s%@LDFLAGS@%$LDFLAGS%g
2471 s%@exec_prefix@%$exec_prefix%g
2472 s%@prefix@%$prefix%g
2473 s%@program_transform_name@%$program_transform_name%g
2474 s%@bindir@%$bindir%g
2475 s%@sbindir@%$sbindir%g
2476 s%@libexecdir@%$libexecdir%g
2477 s%@datadir@%$datadir%g
2478 s%@sysconfdir@%$sysconfdir%g
2479 s%@sharedstatedir@%$sharedstatedir%g
2480 s%@localstatedir@%$localstatedir%g
2481 s%@libdir@%$libdir%g
2482 s%@includedir@%$includedir%g
2483 s%@oldincludedir@%$oldincludedir%g
2484 s%@infodir@%$infodir%g
2485 s%@mandir@%$mandir%g
2486 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2487 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2488 s%@INSTALL_DATA@%$INSTALL_DATA%g
2489 s%@PACKAGE@%$PACKAGE%g
2490 s%@VERSION@%$VERSION%g
2491 s%@ACLOCAL@%$ACLOCAL%g
2492 s%@AUTOCONF@%$AUTOCONF%g
2493 s%@AUTOMAKE@%$AUTOMAKE%g
2494 s%@AUTOHEADER@%$AUTOHEADER%g
2495 s%@MAKEINFO@%$MAKEINFO%g
2496 s%@SET_MAKE@%$SET_MAKE%g
2497 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2498 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2501 s%@EXEEXT@%$EXEEXT%g
2502 s%@OBJEXT@%$OBJEXT%g
2503 s%@CROSS_COMPILING_TRUE@%$CROSS_COMPILING_TRUE%g
2504 s%@CROSS_COMPILING_FALSE@%$CROSS_COMPILING_FALSE%g
2505 s%@INSTALL_LIBGUI_TRUE@%$INSTALL_LIBGUI_TRUE%g
2506 s%@INSTALL_LIBGUI_FALSE@%$INSTALL_LIBGUI_FALSE%g
2507 s%@RANLIB@%$RANLIB%g
2509 s%@ALLOCA@%$ALLOCA%g
2510 s%@IDE_ENABLED_TRUE@%$IDE_ENABLED_TRUE%g
2511 s%@IDE_ENABLED_FALSE@%$IDE_ENABLED_FALSE%g
2512 s%@LIBGUI_CFLAGS@%$LIBGUI_CFLAGS%g
2513 s%@LIBGUI_LIBRARY_DIR@%$LIBGUI_LIBRARY_DIR%g
2514 s%@TCL_LIBRARY@%$TCL_LIBRARY%g
2515 s%@TCLCONFIG@%$TCLCONFIG%g
2516 s%@TCL_DEFS@%$TCL_DEFS%g
2517 s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
2518 s%@TCL_LIB_FULL_PATH@%$TCL_LIB_FULL_PATH%g
2519 s%@TCL_LIBS@%$TCL_LIBS%g
2520 s%@TCL_CFLAGS@%$TCL_CFLAGS%g
2521 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
2522 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
2523 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
2524 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
2525 s%@TCL_RANLIB@%$TCL_RANLIB%g
2526 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
2527 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
2528 s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
2529 s%@TKCONFIG@%$TKCONFIG%g
2530 s%@TK_VERSION@%$TK_VERSION%g
2531 s%@TK_DEFS@%$TK_DEFS%g
2532 s%@TK_LIB_FILE@%$TK_LIB_FILE%g
2533 s%@TK_LIB_FULL_PATH@%$TK_LIB_FULL_PATH%g
2534 s%@TK_LIBS@%$TK_LIBS%g
2535 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
2536 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
2537 s%@TK_XLIBSW@%$TK_XLIBSW%g
2538 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
2539 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
2540 s%@TCLHDIR@%$TCLHDIR%g
2541 s%@TKHDIR@%$TKHDIR%g
2542 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
2543 s%@ITCL_SH@%$ITCL_SH%g
2544 s%@ITCL_LIB_FILE@%$ITCL_LIB_FILE%g
2545 s%@ITCL_LIB_FULL_PATH@%$ITCL_LIB_FULL_PATH%g
2547 s%@host_alias@%$host_alias%g
2548 s%@host_cpu@%$host_cpu%g
2549 s%@host_vendor@%$host_vendor%g
2550 s%@host_os@%$host_os%g
2551 s%@ITCL_DIR@%$ITCL_DIR%g
2552 s%@TCL_SHARED_TRUE@%$TCL_SHARED_TRUE%g
2553 s%@TCL_SHARED_FALSE@%$TCL_SHARED_FALSE%g
2554 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
2559 cat >> $CONFIG_STATUS <<\EOF
2561 # Split the substitutions into bite-sized pieces for seds with
2562 # small command number limits, like on Digital OSF/1 and HP-UX.
2563 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2564 ac_file=1 # Number of current file.
2565 ac_beg=1 # First line for current file.
2566 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2569 while $ac_more_lines; do
2570 if test $ac_beg -gt 1; then
2571 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2573 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2575 if test ! -s conftest.s$ac_file; then
2577 rm -f conftest.s$ac_file
2579 if test -z "$ac_sed_cmds"; then
2580 ac_sed_cmds="sed -f conftest.s$ac_file"
2582 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2584 ac_file=`expr $ac_file + 1`
2586 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2589 if test -z "$ac_sed_cmds"; then
2594 cat >> $CONFIG_STATUS <<EOF
2596 CONFIG_FILES=\${CONFIG_FILES-"Makefile library/Makefile src/Makefile"}
2598 cat >> $CONFIG_STATUS <<\EOF
2599 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2600 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2602 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2603 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2604 *) ac_file_in="${ac_file}.in" ;;
2607 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2609 # Remove last slash and all that follows it. Not all systems have dirname.
2610 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2611 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2612 # The file is in a subdirectory.
2613 test ! -d "$ac_dir" && mkdir "$ac_dir"
2614 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2615 # A "../" for each directory in $ac_dir_suffix.
2616 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2618 ac_dir_suffix= ac_dots=
2621 case "$ac_given_srcdir" in
2623 if test -z "$ac_dots"; then top_srcdir=.
2624 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2625 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2627 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2628 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2631 case "$ac_given_INSTALL" in
2632 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2633 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2636 echo creating "$ac_file"
2638 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2640 *Makefile*) ac_comsub="1i\\
2641 # $configure_input" ;;
2645 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2647 s%@configure_input@%$configure_input%g
2648 s%@srcdir@%$srcdir%g
2649 s%@top_srcdir@%$top_srcdir%g
2650 s%@INSTALL@%$INSTALL%g
2651 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2655 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2656 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2658 # ac_d sets the value in "#define NAME VALUE" lines.
2659 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2660 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2663 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2664 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2665 ac_uB='\([ ]\)%\1#\2define\3'
2668 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2669 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2670 ac_eB='$%\1#\2define\3'
2674 if test "${CONFIG_HEADERS+set}" != set; then
2676 cat >> $CONFIG_STATUS <<EOF
2677 CONFIG_HEADERS="config.h"
2679 cat >> $CONFIG_STATUS <<\EOF
2681 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2684 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2685 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2686 *) ac_file_in="${ac_file}.in" ;;
2689 echo creating $ac_file
2691 rm -f conftest.frag conftest.in conftest.out
2692 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2693 cat $ac_file_inputs > conftest.in
2697 # Transform confdefs.h into a sed script conftest.vals that substitutes
2698 # the proper values into config.h.in to produce config.h. And first:
2699 # Protect against being on the right side of a sed subst in config.status.
2700 # Protect against being in an unquoted here document in config.status.
2702 cat > conftest.hdr <<\EOF
2705 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2709 sed -n -f conftest.hdr confdefs.h > conftest.vals
2712 # This sed command replaces #undef with comments. This is necessary, for
2713 # example, in the case of _POSIX_SOURCE, which is predefined and required
2714 # on some systems where configure will not decide to define it.
2715 cat >> conftest.vals <<\EOF
2716 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2719 # Break up conftest.vals because some shells have a limit on
2720 # the size of here documents, and old seds have small limits too.
2725 ac_lines=`grep -c . conftest.vals`
2726 # grep -c gives empty output for an empty file on some AIX systems.
2727 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2728 # Write a limited-size here document to conftest.frag.
2729 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2730 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2732 sed -f conftest.frag conftest.in > conftest.out
2734 mv conftest.out conftest.in
2736 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2738 mv conftest.tail conftest.vals
2742 cat >> $CONFIG_STATUS <<\EOF
2743 rm -f conftest.frag conftest.h
2744 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2745 cat conftest.in >> conftest.h
2747 if cmp -s $ac_file conftest.h 2>/dev/null; then
2748 echo "$ac_file is unchanged"
2751 # Remove last slash and all that follows it. Not all systems have dirname.
2752 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2753 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2754 # The file is in a subdirectory.
2755 test ! -d "$ac_dir" && mkdir "$ac_dir"
2758 mv conftest.h $ac_file
2763 cat >> $CONFIG_STATUS <<EOF
2767 cat >> $CONFIG_STATUS <<\EOF
2768 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2772 chmod +x $CONFIG_STATUS
2773 rm -fr confdefs* $ac_clean_files
2774 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1