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"
18 --enable-debug do a debug rather than a release build"
20 --enable-ansi do an ANSI rather than a unicode build"
22 --disable-asserts disable all assertions"
24 --disable-preconditions disable a subset of the assertions"
26 --disable-postconditions disable a subset of the assertions"
28 --disable-invariants disable a subset of the assertions"
30 --disable-loopinvariants disable a subset of the assertions"
32 --disable-tracing disable tracing"
34 --disable-fntracing disable function entry/exit tracing"
36 --with-libcdl-header=<path> location of eCos libcdl headers"
38 --with-libcdl-lib=<path> location of eCos libcdl library"
40 --with-libcdl=<path> location of eCos libcdl installation"
42 --with-infra-header=<path> location of eCos infrastructure headers"
44 --with-infra-lib=<path> location of eCos infrastructure library"
46 --with-infra=<path> location of eCos infrastructure installation"
48 --with-tcl=<path> location of Tcl header and libraries"
50 --with-tcl-version=<vsn> version of Tcl to be used"
52 --with-tcl-header=<path> location of Tcl header"
54 --with-tcl-lib=<path> location of Tcl libraries"
56 # Initialize some variables set by options.
57 # The variables have the same names as the options, with
58 # dashes changed to underlines.
60 cache_file=./config.cache
69 program_transform_name=s,x,x,
77 bindir='${exec_prefix}/bin'
78 sbindir='${exec_prefix}/sbin'
79 libexecdir='${exec_prefix}/libexec'
80 datadir='${prefix}/share'
81 sysconfdir='${prefix}/etc'
82 sharedstatedir='${prefix}/com'
83 localstatedir='${prefix}/var'
84 libdir='${exec_prefix}/lib'
85 includedir='${prefix}/include'
86 oldincludedir='/usr/include'
87 infodir='${prefix}/info'
88 mandir='${prefix}/man'
90 # Initialize some other variables.
93 SHELL=${CONFIG_SHELL-/bin/sh}
94 # Maximum number of lines to put in a shell here document.
101 # If the previous option needs an argument, assign it.
102 if test -n "$ac_prev"; then
103 eval "$ac_prev=\$ac_option"
109 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 # Accept the important Cygnus configure options, so we can diagnose typos.
117 -bindir | --bindir | --bindi | --bind | --bin | --bi)
119 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
120 bindir="$ac_optarg" ;;
122 -build | --build | --buil | --bui | --bu)
124 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
125 build="$ac_optarg" ;;
127 -cache-file | --cache-file | --cache-fil | --cache-fi \
128 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
129 ac_prev=cache_file ;;
130 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
131 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
132 cache_file="$ac_optarg" ;;
134 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
136 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
138 datadir="$ac_optarg" ;;
140 -disable-* | --disable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}=no" ;;
149 -enable-* | --enable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}='$ac_optarg'" ;;
162 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
163 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
164 | --exec | --exe | --ex)
165 ac_prev=exec_prefix ;;
166 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
167 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
168 | --exec=* | --exe=* | --ex=*)
169 exec_prefix="$ac_optarg" ;;
171 -gas | --gas | --ga | --g)
172 # Obsolete; use --with-gas.
175 -help | --help | --hel | --he)
176 # Omit some internal or obsolete options to make the list less imposing.
177 # This message is too long to be a string in the A/UX 3.1 sh.
179 Usage: configure [options] [host]
180 Options: [defaults in brackets after descriptions]
182 --cache-file=FILE cache test results in FILE
183 --help print this message
184 --no-create do not create output files
185 --quiet, --silent do not print \`checking...' messages
186 --version print the version of autoconf that created configure
187 Directory and file names:
188 --prefix=PREFIX install architecture-independent files in PREFIX
190 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
192 --bindir=DIR user executables in DIR [EPREFIX/bin]
193 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
194 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
195 --datadir=DIR read-only architecture-independent data in DIR
197 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
198 --sharedstatedir=DIR modifiable architecture-independent data in DIR
200 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
201 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
202 --includedir=DIR C header files in DIR [PREFIX/include]
203 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
204 --infodir=DIR info documentation in DIR [PREFIX/info]
205 --mandir=DIR man documentation in DIR [PREFIX/man]
206 --srcdir=DIR find the sources in DIR [configure dir or ..]
207 --program-prefix=PREFIX prepend PREFIX to installed program names
208 --program-suffix=SUFFIX append SUFFIX to installed program names
209 --program-transform-name=PROGRAM
210 run sed PROGRAM on installed program names
214 --build=BUILD configure for building on BUILD [BUILD=HOST]
215 --host=HOST configure for HOST [guessed]
216 --target=TARGET configure for TARGET [TARGET=HOST]
217 Features and packages:
218 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
219 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
220 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
221 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
222 --x-includes=DIR X include files are in DIR
223 --x-libraries=DIR X library files are in DIR
225 if test -n "$ac_help"; then
226 echo "--enable and --with options recognized:$ac_help"
230 -host | --host | --hos | --ho)
232 -host=* | --host=* | --hos=* | --ho=*)
235 -includedir | --includedir | --includedi | --included | --include \
236 | --includ | --inclu | --incl | --inc)
237 ac_prev=includedir ;;
238 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
239 | --includ=* | --inclu=* | --incl=* | --inc=*)
240 includedir="$ac_optarg" ;;
242 -infodir | --infodir | --infodi | --infod | --info | --inf)
244 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
245 infodir="$ac_optarg" ;;
247 -libdir | --libdir | --libdi | --libd)
249 -libdir=* | --libdir=* | --libdi=* | --libd=*)
250 libdir="$ac_optarg" ;;
252 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
253 | --libexe | --libex | --libe)
254 ac_prev=libexecdir ;;
255 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
256 | --libexe=* | --libex=* | --libe=*)
257 libexecdir="$ac_optarg" ;;
259 -localstatedir | --localstatedir | --localstatedi | --localstated \
260 | --localstate | --localstat | --localsta | --localst \
261 | --locals | --local | --loca | --loc | --lo)
262 ac_prev=localstatedir ;;
263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
264 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
265 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
266 localstatedir="$ac_optarg" ;;
268 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
270 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
271 mandir="$ac_optarg" ;;
274 # Obsolete; use --without-fp.
277 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
281 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
282 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
285 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
286 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
287 | --oldin | --oldi | --old | --ol | --o)
288 ac_prev=oldincludedir ;;
289 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
290 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
291 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
292 oldincludedir="$ac_optarg" ;;
294 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
296 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
297 prefix="$ac_optarg" ;;
299 -program-prefix | --program-prefix | --program-prefi | --program-pref \
300 | --program-pre | --program-pr | --program-p)
301 ac_prev=program_prefix ;;
302 -program-prefix=* | --program-prefix=* | --program-prefi=* \
303 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
304 program_prefix="$ac_optarg" ;;
306 -program-suffix | --program-suffix | --program-suffi | --program-suff \
307 | --program-suf | --program-su | --program-s)
308 ac_prev=program_suffix ;;
309 -program-suffix=* | --program-suffix=* | --program-suffi=* \
310 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
311 program_suffix="$ac_optarg" ;;
313 -program-transform-name | --program-transform-name \
314 | --program-transform-nam | --program-transform-na \
315 | --program-transform-n | --program-transform- \
316 | --program-transform | --program-transfor \
317 | --program-transfo | --program-transf \
318 | --program-trans | --program-tran \
319 | --progr-tra | --program-tr | --program-t)
320 ac_prev=program_transform_name ;;
321 -program-transform-name=* | --program-transform-name=* \
322 | --program-transform-nam=* | --program-transform-na=* \
323 | --program-transform-n=* | --program-transform-=* \
324 | --program-transform=* | --program-transfor=* \
325 | --program-transfo=* | --program-transf=* \
326 | --program-trans=* | --program-tran=* \
327 | --progr-tra=* | --program-tr=* | --program-t=*)
328 program_transform_name="$ac_optarg" ;;
330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
331 | -silent | --silent | --silen | --sile | --sil)
334 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
336 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
338 sbindir="$ac_optarg" ;;
340 -sharedstatedir | --sharedstatedir | --sharedstatedi \
341 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
342 | --sharedst | --shareds | --shared | --share | --shar \
344 ac_prev=sharedstatedir ;;
345 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
346 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
347 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
349 sharedstatedir="$ac_optarg" ;;
351 -site | --site | --sit)
353 -site=* | --site=* | --sit=*)
356 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
358 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
359 srcdir="$ac_optarg" ;;
361 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
362 | --syscon | --sysco | --sysc | --sys | --sy)
363 ac_prev=sysconfdir ;;
364 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
365 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
366 sysconfdir="$ac_optarg" ;;
368 -target | --target | --targe | --targ | --tar | --ta | --t)
370 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
371 target="$ac_optarg" ;;
373 -v | -verbose | --verbose | --verbos | --verbo | --verb)
376 -version | --version | --versio | --versi | --vers)
377 echo "configure generated by autoconf version 2.13"
381 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}='$ac_optarg'" ;;
393 -without-* | --without-*)
394 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}=no" ;;
403 # Obsolete; use --with-x.
406 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
407 | --x-incl | --x-inc | --x-in | --x-i)
408 ac_prev=x_includes ;;
409 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
410 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
411 x_includes="$ac_optarg" ;;
413 -x-libraries | --x-libraries | --x-librarie | --x-librari \
414 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
415 ac_prev=x_libraries ;;
416 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
417 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
418 x_libraries="$ac_optarg" ;;
420 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
424 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
425 echo "configure: warning: $ac_option: invalid host type" 1>&2
427 if test "x$nonopt" != xNONE; then
428 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
436 if test -n "$ac_prev"; then
437 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
442 # File descriptor usage:
445 # 2 errors and warnings
446 # 3 some systems may open it to /dev/tty
447 # 4 used on the Kubota Titan
448 # 6 checking for... messages and results
449 # 5 compiler messages saved in config.log
450 if test "$silent" = yes; then
458 This file contains any messages produced by compilers while
459 running configure, to aid debugging if configure makes a mistake.
462 # Strip out --no-create and --no-recursion so they do not pile up.
463 # Also quote any args containing shell metacharacters.
468 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
469 | --no-cr | --no-c) ;;
470 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
471 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
472 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
473 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
474 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
479 # Only set these to C if already set. These must not be set unconditionally
480 # because not all systems understand e.g. LANG=C (notably SCO).
481 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482 # Non-C LC_CTYPE values break the ctype check.
483 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
484 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
485 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
486 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
489 rm -rf conftest* confdefs.h
490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
493 # A filename unique to this package, relative to the directory that
494 # configure is in, which we can look for to find out if srcdir is correct.
495 ac_unique_file=ecosconfig.cxx
497 # Find the source files, if location was not specified.
498 if test -z "$srcdir"; then
499 ac_srcdir_defaulted=yes
500 # Try the directory containing this script, then its parent.
502 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
503 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
505 if test ! -r $srcdir/$ac_unique_file; then
509 ac_srcdir_defaulted=no
511 if test ! -r $srcdir/$ac_unique_file; then
512 if test "$ac_srcdir_defaulted" = yes; then
513 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
515 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
520 # Prefer explicitly selected file to automatically selected ones.
521 if test -z "$CONFIG_SITE"; then
522 if test "x$prefix" != xNONE; then
523 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
525 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
528 for ac_site_file in $CONFIG_SITE; do
529 if test -r "$ac_site_file"; then
530 echo "loading site script $ac_site_file"
535 if test -r "$cache_file"; then
536 echo "loading cache $cache_file"
539 echo "creating cache $cache_file"
544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
545 ac_cpp='$CPP $CPPFLAGS'
546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
548 cross_compiling=$ac_cv_prog_cc_cross
552 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
553 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
561 ac_n= ac_c='\c' ac_t=
567 for ac_dir in ../../../../../acsupport $srcdir/../../../../../acsupport; do
568 if test -f $ac_dir/install-sh; then
570 ac_install_sh="$ac_aux_dir/install-sh -c"
572 elif test -f $ac_dir/install.sh; then
574 ac_install_sh="$ac_aux_dir/install.sh -c"
578 if test -z "$ac_aux_dir"; then
579 { echo "configure: error: can not find install-sh or install.sh in ../../../../../acsupport $srcdir/../../../../../acsupport" 1>&2; exit 1; }
581 ac_config_guess=$ac_aux_dir/config.guess
582 ac_config_sub=$ac_aux_dir/config.sub
583 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
587 echo $ac_n "checking that a separate build tree is being used""... $ac_c" 1>&6
588 echo "configure:589: checking that a separate build tree is being used" >&5
590 if test "${srcdir}" = "." ; then
593 if test "${ecos_cwd}" = "${srcdir}" ; then
594 echo "$ac_t""no" 1>&6
595 { echo "configure: error: This configure script should not be run inside the source tree. Instead please use a separate build tree" 1>&2; exit 1; }
597 echo "$ac_t""yes" 1>&6
601 # Make sure we can run config.sub.
602 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
603 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
606 echo $ac_n "checking host system type""... $ac_c" 1>&6
607 echo "configure:608: checking host system type" >&5
610 case "$host_alias" in
614 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
615 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
617 *) host_alias=$nonopt ;;
621 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
622 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625 echo "$ac_t""$host" 1>&6
627 # Find a good install program. We prefer a C program (faster),
628 # so one script is as good as another. But avoid the broken or
629 # incompatible versions:
630 # SysV /etc/install, /usr/sbin/install
631 # SunOS /usr/etc/install
634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
637 # ./install, which can be erroneously created by make from ./install.sh.
638 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
639 echo "configure:640: checking for a BSD compatible install" >&5
640 if test -z "$INSTALL"; then
641 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
644 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
645 for ac_dir in $PATH; do
646 # Account for people who put trailing slashes in PATH elements.
648 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
650 # OSF1 and SCO ODT 3.0 have their own names for install.
651 # Don't use installbsd from OSF since it installs stuff as root
653 for ac_prog in ginstall scoinst install; do
654 if test -f $ac_dir/$ac_prog; then
655 if test $ac_prog = install &&
656 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
657 # AIX install. It has an incompatible calling convention.
660 ac_cv_path_install="$ac_dir/$ac_prog -c"
671 if test "${ac_cv_path_install+set}" = set; then
672 INSTALL="$ac_cv_path_install"
674 # As a last resort, use the slow shell script. We don't cache a
675 # path for INSTALL within a source directory, because that will
676 # break other packages using the cache if that directory is
677 # removed, or if the path is relative.
678 INSTALL="$ac_install_sh"
681 echo "$ac_t""$INSTALL" 1>&6
683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
684 # It thinks the first close brace ends the variable substitution.
685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
691 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
692 echo "configure:693: checking whether build environment is sane" >&5
695 echo timestamp > conftestfile
696 # Do `set' in a subshell so we don't clobber the current shell's
697 # arguments. Must try -L first in case configure is actually a
698 # symlink; some systems play weird games with the mod time of symlinks
699 # (eg FreeBSD returns the mod time of the symlink's containing
702 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
703 if test "$*" = "X"; then
705 set X `ls -t $srcdir/configure conftestfile`
707 if test "$*" != "X $srcdir/configure conftestfile" \
708 && test "$*" != "X conftestfile $srcdir/configure"; then
710 # If neither matched, then we have a broken ls. This can happen
711 # if, for instance, CONFIG_SHELL is bash and it inherits a
712 # broken ls alias from the environment. This has actually
713 # happened. Such a system could not be considered "sane".
714 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
715 alias in your environment" 1>&2; exit 1; }
718 test "$2" = conftestfile
724 { echo "configure: error: newly created file is older than distributed files!
725 Check your system clock" 1>&2; exit 1; }
728 echo "$ac_t""yes" 1>&6
729 if test "$program_transform_name" = s,x,x,; then
730 program_transform_name=
732 # Double any \ or $. echo might interpret backslashes.
733 cat <<\EOF_SED > conftestsed
734 s,\\,\\\\,g; s,\$,$$,g
736 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
739 test "$program_prefix" != NONE &&
740 program_transform_name="s,^,${program_prefix},; $program_transform_name"
741 # Use a double $ so make ignores it.
742 test "$program_suffix" != NONE &&
743 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
745 # sed with no file args requires a program.
746 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
748 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
749 echo "configure:750: checking whether ${MAKE-make} sets \${MAKE}" >&5
750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
751 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftestmake <<\EOF
756 @echo 'ac_maketemp="${MAKE}"'
758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
759 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
760 if test -n "$ac_maketemp"; then
761 eval ac_cv_prog_make_${ac_make}_set=yes
763 eval ac_cv_prog_make_${ac_make}_set=no
767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
768 echo "$ac_t""yes" 1>&6
771 echo "$ac_t""no" 1>&6
772 SET_MAKE="MAKE=${MAKE-make}"
780 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
781 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
783 cat >> confdefs.h <<EOF
784 #define PACKAGE "$PACKAGE"
787 cat >> confdefs.h <<EOF
788 #define VERSION "$VERSION"
793 missing_dir=`cd $ac_aux_dir && pwd`
794 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
795 echo "configure:796: checking for working aclocal" >&5
796 # Run test in a subshell; some versions of sh will print an error if
797 # an executable is not found, even if stderr is redirected.
798 # Redirect stdin to placate older versions of autoconf. Sigh.
799 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
801 echo "$ac_t""found" 1>&6
803 ACLOCAL="$missing_dir/missing aclocal"
804 echo "$ac_t""missing" 1>&6
807 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
808 echo "configure:809: checking for working autoconf" >&5
809 # Run test in a subshell; some versions of sh will print an error if
810 # an executable is not found, even if stderr is redirected.
811 # Redirect stdin to placate older versions of autoconf. Sigh.
812 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
814 echo "$ac_t""found" 1>&6
816 AUTOCONF="$missing_dir/missing autoconf"
817 echo "$ac_t""missing" 1>&6
820 echo $ac_n "checking for working automake""... $ac_c" 1>&6
821 echo "configure:822: checking for working automake" >&5
822 # Run test in a subshell; some versions of sh will print an error if
823 # an executable is not found, even if stderr is redirected.
824 # Redirect stdin to placate older versions of autoconf. Sigh.
825 if (automake --version) < /dev/null > /dev/null 2>&1; then
827 echo "$ac_t""found" 1>&6
829 AUTOMAKE="$missing_dir/missing automake"
830 echo "$ac_t""missing" 1>&6
833 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
834 echo "configure:835: checking for working autoheader" >&5
835 # Run test in a subshell; some versions of sh will print an error if
836 # an executable is not found, even if stderr is redirected.
837 # Redirect stdin to placate older versions of autoconf. Sigh.
838 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
839 AUTOHEADER=autoheader
840 echo "$ac_t""found" 1>&6
842 AUTOHEADER="$missing_dir/missing autoheader"
843 echo "$ac_t""missing" 1>&6
846 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
847 echo "configure:848: checking for working makeinfo" >&5
848 # Run test in a subshell; some versions of sh will print an error if
849 # an executable is not found, even if stderr is redirected.
850 # Redirect stdin to placate older versions of autoconf. Sigh.
851 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
853 echo "$ac_t""found" 1>&6
855 MAKEINFO="$missing_dir/missing makeinfo"
856 echo "$ac_t""missing" 1>&6
860 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
861 echo "configure:862: checking whether to enable maintainer-specific portions of Makefiles" >&5
862 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
863 if test "${enable_maintainer_mode+set}" = set; then
864 enableval="$enable_maintainer_mode"
865 USE_MAINTAINER_MODE=$enableval
867 USE_MAINTAINER_MODE=no
870 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
873 if test $USE_MAINTAINER_MODE = yes; then
874 MAINTAINER_MODE_TRUE=
875 MAINTAINER_MODE_FALSE='#'
877 MAINTAINER_MODE_TRUE='#'
878 MAINTAINER_MODE_FALSE=
880 MAINT=$MAINTAINER_MODE_TRUE
884 # Extract the first word of "gcc", so it can be a program name with args.
885 set dummy gcc; ac_word=$2
886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
887 echo "configure:888: checking for $ac_word" >&5
888 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
891 if test -n "$CC"; then
892 ac_cv_prog_CC="$CC" # Let the user override the test.
894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
896 for ac_dir in $ac_dummy; do
897 test -z "$ac_dir" && ac_dir=.
898 if test -f $ac_dir/$ac_word; then
907 if test -n "$CC"; then
908 echo "$ac_t""$CC" 1>&6
910 echo "$ac_t""no" 1>&6
913 if test -z "$CC"; then
914 # Extract the first word of "cc", so it can be a program name with args.
915 set dummy cc; ac_word=$2
916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
917 echo "configure:918: checking for $ac_word" >&5
918 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 if test -n "$CC"; then
922 ac_cv_prog_CC="$CC" # Let the user override the test.
924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
927 for ac_dir in $ac_dummy; do
928 test -z "$ac_dir" && ac_dir=.
929 if test -f $ac_dir/$ac_word; then
930 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
939 if test $ac_prog_rejected = yes; then
940 # We found a bogon in the path, so make sure we never use it.
941 set dummy $ac_cv_prog_CC
943 if test $# -gt 0; then
944 # We chose a different compiler from the bogus one.
945 # However, it has the same basename, so the bogon will be chosen
946 # first if we set CC to just the basename; use the full file name.
948 set dummy "$ac_dir/$ac_word" "$@"
956 if test -n "$CC"; then
957 echo "$ac_t""$CC" 1>&6
959 echo "$ac_t""no" 1>&6
962 if test -z "$CC"; then
965 # Extract the first word of "cl", so it can be a program name with args.
966 set dummy cl; ac_word=$2
967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968 echo "configure:969: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 if test -n "$CC"; then
973 ac_cv_prog_CC="$CC" # Let the user override the test.
975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
977 for ac_dir in $ac_dummy; do
978 test -z "$ac_dir" && ac_dir=.
979 if test -f $ac_dir/$ac_word; then
988 if test -n "$CC"; then
989 echo "$ac_t""$CC" 1>&6
991 echo "$ac_t""no" 1>&6
996 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
999 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1000 echo "configure:1001: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1003 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1004 ac_cpp='$CPP $CPPFLAGS'
1005 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1006 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1007 cross_compiling=$ac_cv_prog_cc_cross
1009 cat > conftest.$ac_ext << EOF
1011 #line 1012 "configure"
1012 #include "confdefs.h"
1016 if { (eval echo configure:1017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1017 ac_cv_prog_cc_works=yes
1018 # If we can't run a trivial program, we are probably using a cross compiler.
1019 if (./conftest; exit) 2>/dev/null; then
1020 ac_cv_prog_cc_cross=no
1022 ac_cv_prog_cc_cross=yes
1025 echo "configure: failed program was:" >&5
1026 cat conftest.$ac_ext >&5
1027 ac_cv_prog_cc_works=no
1031 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1032 ac_cpp='$CPP $CPPFLAGS'
1033 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1034 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1035 cross_compiling=$ac_cv_prog_cc_cross
1037 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1038 if test $ac_cv_prog_cc_works = no; then
1039 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1041 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1043 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1044 cross_compiling=$ac_cv_prog_cc_cross
1046 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1047 echo "configure:1048: checking whether we are using GNU C" >&5
1048 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1051 cat > conftest.c <<EOF
1056 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1063 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1065 if test $ac_cv_prog_gcc = yes; then
1071 ac_test_CFLAGS="${CFLAGS+set}"
1072 ac_save_CFLAGS="$CFLAGS"
1074 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1075 echo "configure:1076: checking whether ${CC-cc} accepts -g" >&5
1076 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1079 echo 'void f(){}' > conftest.c
1080 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1089 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1090 if test "$ac_test_CFLAGS" = set; then
1091 CFLAGS="$ac_save_CFLAGS"
1092 elif test $ac_cv_prog_cc_g = yes; then
1093 if test "$GCC" = yes; then
1099 if test "$GCC" = yes; then
1106 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1108 # Extract the first word of "$ac_prog", so it can be a program name with args.
1109 set dummy $ac_prog; ac_word=$2
1110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1111 echo "configure:1112: checking for $ac_word" >&5
1112 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1115 if test -n "$CXX"; then
1116 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1120 for ac_dir in $ac_dummy; do
1121 test -z "$ac_dir" && ac_dir=.
1122 if test -f $ac_dir/$ac_word; then
1123 ac_cv_prog_CXX="$ac_prog"
1130 CXX="$ac_cv_prog_CXX"
1131 if test -n "$CXX"; then
1132 echo "$ac_t""$CXX" 1>&6
1134 echo "$ac_t""no" 1>&6
1137 test -n "$CXX" && break
1139 test -n "$CXX" || CXX="gcc"
1142 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1143 echo "configure:1144: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1147 ac_cpp='$CXXCPP $CPPFLAGS'
1148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1150 cross_compiling=$ac_cv_prog_cxx_cross
1152 cat > conftest.$ac_ext << EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1157 int main(){return(0);}
1159 if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1160 ac_cv_prog_cxx_works=yes
1161 # If we can't run a trivial program, we are probably using a cross compiler.
1162 if (./conftest; exit) 2>/dev/null; then
1163 ac_cv_prog_cxx_cross=no
1165 ac_cv_prog_cxx_cross=yes
1168 echo "configure: failed program was:" >&5
1169 cat conftest.$ac_ext >&5
1170 ac_cv_prog_cxx_works=no
1174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1175 ac_cpp='$CPP $CPPFLAGS'
1176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1178 cross_compiling=$ac_cv_prog_cc_cross
1180 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1181 if test $ac_cv_prog_cxx_works = no; then
1182 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1184 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1186 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1187 cross_compiling=$ac_cv_prog_cxx_cross
1189 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether we are using GNU C++" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 cat > conftest.C <<EOF
1199 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1206 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1208 if test $ac_cv_prog_gxx = yes; then
1214 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1215 ac_save_CXXFLAGS="$CXXFLAGS"
1217 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether ${CXX-g++} accepts -g" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 echo 'void f(){}' > conftest.cc
1223 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1224 ac_cv_prog_cxx_g=yes
1232 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1233 if test "$ac_test_CXXFLAGS" = set; then
1234 CXXFLAGS="$ac_save_CXXFLAGS"
1235 elif test $ac_cv_prog_cxx_g = yes; then
1236 if test "$GXX" = yes; then
1242 if test "$GXX" = yes; then
1249 for ac_declaration in \
1251 '#include <stdlib.h>' \
1252 'extern "C" void std::exit (int) throw (); using std::exit;' \
1253 'extern "C" void std::exit (int); using std::exit;' \
1254 'extern "C" void exit (int) throw ();' \
1255 'extern "C" void exit (int);' \
1258 cat > conftest.$ac_ext <<EOF
1259 #line 1260 "configure"
1260 #include "confdefs.h"
1267 if { (eval echo configure:1268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1270 echo "configure: failed program was:" >&5
1271 cat conftest.$ac_ext >&5
1276 cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1284 if { (eval echo configure:1285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1288 echo "configure: failed program was:" >&5
1289 cat conftest.$ac_ext >&5
1293 if test -n "$ac_declaration"; then
1294 echo '#ifdef __cplusplus' >>confdefs.h
1295 echo $ac_declaration >>confdefs.h
1296 echo '#endif' >>confdefs.h
1300 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1301 echo "configure:1302: checking for object suffix" >&5
1302 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1306 echo 'int i = 1;' > conftest.$ac_ext
1307 if { (eval echo configure:1308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1308 for ac_file in conftest.*; do
1311 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1315 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1320 echo "$ac_t""$ac_cv_objext" 1>&6
1321 OBJEXT=$ac_cv_objext
1322 ac_objext=$ac_cv_objext
1324 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1325 echo "configure:1326: checking for Cygwin environment" >&5
1326 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1336 #define __CYGWIN__ __CYGWIN32__
1341 if { (eval echo configure:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1354 echo "$ac_t""$ac_cv_cygwin" 1>&6
1356 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1357 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1358 echo "configure:1359: checking for mingw32 environment" >&5
1359 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1370 if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1374 echo "configure: failed program was:" >&5
1375 cat conftest.$ac_ext >&5
1383 echo "$ac_t""$ac_cv_mingw32" 1>&6
1385 test "$ac_cv_mingw32" = yes && MINGW32=yes
1388 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1389 echo "configure:1390: checking for executable suffix" >&5
1390 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1397 echo 'int main () { return 0; }' > conftest.$ac_ext
1399 if { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1400 for file in conftest.*; do
1402 *.c | *.o | *.obj) ;;
1403 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1407 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1410 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1415 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1416 echo "$ac_t""${ac_cv_exeext}" 1>&6
1436 echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6
1437 echo "configure:1438: checking "for Visual C++"" >&5
1439 if test "${CC}" = "cl" ; then
1442 MSVC_SRCDIR=${srcdir}
1446 if test "${MSVC}" = "yes" ; then
1447 MSVC_SRCDIR=`cygpath -w ${MSVC_SRCDIR} | tr \\\\\\\\ /`
1451 ecos_INCLUDES="${ecos_INCLUDES} \"-I${MSVC_SRCDIR}\""
1453 ecos_LIBS="advapi32.lib"
1457 if test "${MSVC}" = "yes"; then
1464 if test "${MSVC}" = "yes" ; then
1465 echo "$ac_t""unfortunately yes" 1>&6
1467 echo "$ac_t""no" 1>&6
1476 echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6
1477 echo "configure:1478: checking "the default compiler flags"" >&5
1479 ecosflags_enable_debug="no"
1480 # Check whether --enable-debug or --disable-debug was given.
1481 if test "${enable_debug+set}" = set; then
1482 enableval="$enable_debug"
1483 case "${enableval}" in
1484 yes) ecosflags_enable_debug="yes" ;;
1485 *) ecosflags_enable_debug="no" ;;
1490 ecosflags_enable_ansi="no"
1491 if test "${MSVC}" = "yes" ; then
1492 # Check whether --enable-ansi or --disable-ansi was given.
1493 if test "${enable_ansi+set}" = set; then
1494 enableval="$enable_ansi"
1495 case "${enableval}" in
1496 yes) ecosflags_enable_ansi="yes" ;;
1497 *) ecosflags_enable_ansi="no" ;;
1503 if test "${GCC}" = "yes" ; then
1504 ecos_CFLAGS="${ecos_CFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
1505 ecos_CXXFLAGS="${ecos_CXXFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual"
1506 elif test "${MSVC}" = "yes" ; then
1507 ecos_CFLAGS="${ecos_CFLAGS} -nologo -W3"
1508 ecos_CXXFLAGS="${ecos_CXXFLAGS} -nologo -W3 -GR -GX"
1510 { echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; }
1513 if test "${ecosflags_enable_debug}" = "yes" ; then
1514 if test "${GCC}" = "yes" ; then
1515 ecos_CFLAGS="${ecos_CFLAGS} -g -O0"
1516 ecos_CXXFLAGS="${ecos_CXXFLAGS} -g -O0"
1517 elif test "${MSVC}" = "yes" ; then
1518 ecos_CFLAGS="${ecos_CFLAGS} -MDd -Zi"
1519 ecos_CXXFLAGS="${ecos_CXXFLAGS} -MDd -Zi"
1522 if test "${GCC}" = "yes" ; then
1523 ecos_CFLAGS="${ecos_CFLAGS} -O0"
1524 ecos_CXXFLAGS="${ecos_CXXFLAGS} -O0"
1525 elif test "${MSVC}" = "yes" ; then
1526 ecos_CFLAGS="${ecos_CFLAGS} -MD -O2"
1527 ecos_CXXFLAGS="${ecos_CXXFLAGS} -MD -O2"
1531 CFLAGS="${ac_save_CFLAGS}"
1532 CXXFLAGS="${ac_save_CXXFLAGS}"
1534 echo "$ac_t""done" 1>&6
1541 if test "${ecosflags_enable_debug}" = "yes" ; then
1542 ecosinfra_asserts="yes"
1543 ecosinfra_preconditions="yes"
1544 ecosinfra_postconditions="yes"
1545 ecosinfra_invariants="yes"
1546 ecosinfra_loopinvariants="yes"
1547 ecosinfra_tracing="yes"
1548 ecosinfra_fntracing="yes"
1550 ecosinfra_asserts="no"
1551 ecosinfra_preconditions="no"
1552 ecosinfra_postconditions="no"
1553 ecosinfra_invariants="no"
1554 ecosinfra_loopinvariants="no"
1555 ecosinfra_tracing="no"
1556 ecosinfra_fntracing="no"
1559 # Check whether --enable-asserts or --disable-asserts was given.
1560 if test "${enable_asserts+set}" = set; then
1561 enableval="$enable_asserts"
1562 case "${enableval}" in
1563 yes) ecosinfra_asserts="yes" ;;
1564 no) ecosinfra_asserts="no" ;;
1565 *) { echo "configure: error: bad value ${enableval} for disable-asserts option" 1>&2; exit 1; } ;;
1569 if test "${ecosinfra_asserts}" = "yes"; then
1570 cat >> confdefs.h <<\EOF
1571 #define CYGDBG_USE_ASSERTS 1
1576 # Check whether --enable-preconditions or --disable-preconditions was given.
1577 if test "${enable_preconditions+set}" = set; then
1578 enableval="$enable_preconditions"
1579 case "${enableval}" in
1580 yes) ecosinfra_preconditions="yes" ;;
1581 no) ecosinfra_preconditions="no" ;;
1582 *) { echo "configure: error: bad value ${enableval} for disable-preconditions option" 1>&2; exit 1; } ;;
1586 if test "${ecosinfra_preconditions}" = "yes"; then
1587 cat >> confdefs.h <<\EOF
1588 #define CYGDBG_INFRA_DEBUG_PRECONDITIONS 1
1593 # Check whether --enable-postconditions or --disable-postconditions was given.
1594 if test "${enable_postconditions+set}" = set; then
1595 enableval="$enable_postconditions"
1596 case "${enableval}" in
1597 yes) ecosinfra_postconditions="yes" ;;
1598 no) ecosinfra_postconditions="no" ;;
1599 *) { echo "configure: error: bad value ${enableval} for disable-postconditions option" 1>&2; exit 1; } ;;
1603 if test "${ecosinfra_postconditions}" = "yes"; then
1604 cat >> confdefs.h <<\EOF
1605 #define CYGDBG_INFRA_DEBUG_POSTCONDITIONS 1
1610 # Check whether --enable-invariants or --disable-invariants was given.
1611 if test "${enable_invariants+set}" = set; then
1612 enableval="$enable_invariants"
1613 case "${enableval}" in
1614 yes) ecosinfra_invariants="yes" ;;
1615 no) ecosinfra_invariants="no" ;;
1616 *) { echo "configure: error: bad value ${enableval} for disable-invariants option" 1>&2; exit 1; } ;;
1620 if test "${ecosinfra_invariants}" = "yes"; then
1621 cat >> confdefs.h <<\EOF
1622 #define CYGDBG_INFRA_DEBUG_INVARIANTS 1
1627 # Check whether --enable-loopinvariants or --disable-loopinvariants was given.
1628 if test "${enable_loopinvariants+set}" = set; then
1629 enableval="$enable_loopinvariants"
1630 case "${enableval}" in
1631 yes) ecosinfra_loopinvariants="yes" ;;
1632 no) ecosinfra_loopinvariants="no" ;;
1633 *) { echo "configure: error: bad value ${enableval} for disable-loopinvariants option" 1>&2; exit 1; } ;;
1637 if test "${ecosinfra_loopinvariants}" = "yes"; then
1638 cat >> confdefs.h <<\EOF
1639 #define CYGDBG_INFRA_DEBUG_LOOP_INVARIANTS 1
1644 # Check whether --enable-tracing or --disable-tracing was given.
1645 if test "${enable_tracing+set}" = set; then
1646 enableval="$enable_tracing"
1647 case "${enableval}" in
1648 yes) ecosinfra_tracing="yes" ;;
1649 no) ecosinfra_tracing="no" ;;
1650 *) { echo "configure: error: bad value ${enableval} for disable-tracing option" 1>&2; exit 1; } ;;
1654 if test "${ecosinfra_tracing}" = "yes"; then
1655 cat >> confdefs.h <<\EOF
1656 #define CYGDBG_USE_TRACING 1
1661 # Check whether --enable-fntracing or --disable-fntracing was given.
1662 if test "${enable_fntracing+set}" = set; then
1663 enableval="$enable_fntracing"
1664 case "${enableval}" in
1665 yes) ecosinfra_fntracing="yes" ;;
1666 no) ecosinfra_fntracing=no ;;
1667 *) { echo "configure: error: bad value ${enableval} for disable-fntracing option" 1>&2; exit 1; } ;;
1671 if test "${ecosinfra_fntracing}" = "yes"; then
1672 cat >> confdefs.h <<\EOF
1673 #define CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS 1
1679 echo $ac_n "checking for libcdl""... $ac_c" 1>&6
1680 echo "configure:1681: checking for libcdl" >&5
1683 possibles="${srcdir}/.. ${srcdir}/../.. ${srcdir}/../../.. ${srcdir}/../../../.. ${srcdir}/../../../../.."
1686 for i in ${possibles}; do
1687 if test -d "$i/"libcdl""; then
1693 if test "${libcdl_srcdir}" = "" ; then
1694 possibles="${srcdir}/../host ${srcdir}/../../host ${srcdir}/../../../host ${srcdir}/../../../../host ${srcdir}/../../../../../host ${srcdir}/../../../../../../host"
1697 for i in ${possibles}; do
1698 if test -d "$i/"libcdl""; then
1705 if test "${libcdl_srcdir}" != "" ; then
1706 libcdl_srcdir="${libcdl_srcdir}/libcdl"
1707 libcdl_srcdir=`cd ${libcdl_srcdir} && /bin/pwd`
1711 possibles=".. ../.. ../../.. ../../../.. ../../../../.."
1714 for i in ${possibles}; do
1715 if test -d "$i/"libcdl""; then
1721 if test "${libcdl_builddir}" = "" ; then
1722 possibles="../host ../../host ../../../host ../../../../host ../../../../../host ../../../../../../host"
1725 for i in ${possibles}; do
1726 if test -d "$i/"libcdl""; then
1733 if test "${libcdl_builddir}" != "" ; then
1734 libcdl_builddir="${libcdl_builddir}/libcdl"
1735 libcdl_builddir=`cd ${libcdl_builddir} && /bin/pwd`
1738 ecos_libcdl_incdir=""
1739 ecos_libcdl_libdir=""
1742 # Check whether --with-libcdl-header or --without-libcdl-header was given.
1743 if test "${with_libcdl_header+set}" = set; then
1744 withval="$with_libcdl_header"
1748 # Check whether --with-libcdl-lib or --without-libcdl-lib was given.
1749 if test "${with_libcdl_lib+set}" = set; then
1750 withval="$with_libcdl_lib"
1754 # Check whether --with-libcdl or --without-libcdl was given.
1755 if test "${with_libcdl+set}" = set; then
1756 withval="$with_libcdl"
1761 if test "${with_libcdl_header+set}" = "set"; then
1762 ecos_libcdl_incdir="${with_libcdl_header}"
1763 elif test "${with_libcdl+set}" = "set"; then
1764 ecos_libcdl_incdir="${with_libcdl}/include"
1765 elif test "${libcdl_srcdir}" != "" ; then
1766 ecos_libcdl_incdir="${libcdl_srcdir}"
1768 if test \! -r "${ecos_libcdl_incdir}/cdl.hxx" ; then
1769 { echo "configure: error: libcdl headers not found" 1>&2; exit 1; }
1771 if test "${MSVC}" = "yes" ; then
1772 ecos_msvc_libcdl_incdir="${ecos_libcdl_incdir}"
1776 if test "${MSVC}" = "yes" ; then
1777 ecos_msvc_libcdl_incdir=`cygpath -w ${ecos_msvc_libcdl_incdir} | tr \\\\\\\\ /`
1780 ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_msvc_libcdl_incdir}\""
1782 ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_libcdl_incdir}"
1785 if test "${with_libcdl_lib+set}" = "set"; then
1786 ecos_libcdl_libdir="${with_libcdl_lib}"
1787 elif test "${with_libcdl+set}" = "set"; then
1788 ecos_libcdl_libdir="${with_libcdl}/lib"
1789 elif test "${libcdl_builddir}" != "" ; then
1790 ecos_libcdl_libdir="${libcdl_builddir}"
1792 { echo "configure: error: libcdl library not found" 1>&2; exit 1; }
1794 if test "${MSVC}" = "yes" ; then
1795 ecos_msvc_libcdl_libdir=${ecos_libcdl_libdir}
1799 if test "${MSVC}" = "yes" ; then
1800 ecos_msvc_libcdl_libdir=`cygpath -w ${ecos_msvc_libcdl_libdir} | tr \\\\\\\\ /`
1803 ecos_LIBS="${ecos_LIBS} cdl.lib"
1804 ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_msvc_libcdl_libdir}\""
1806 ecos_LIBS="${ecos_LIBS} -lcdl"
1807 ecos_LDADD="${ecos_LDADD} -L${ecos_libcdl_libdir}"
1812 echo "$ac_t""-I${ecos_libcdl_incdir} -L${ecos_libcdl_libdir}" 1>&6
1815 echo $ac_n "checking for eCos host-side infrastructure""... $ac_c" 1>&6
1816 echo "configure:1817: checking for eCos host-side infrastructure" >&5
1819 possibles=".. ../.. ../../.. ../../../.. ../../../../.."
1822 for i in ${possibles}; do
1823 if test -d "$i/"infra""; then
1829 if test "${infra_builddir}" = "" ; then
1830 possibles="../host ../../host ../../../host ../../../../host ../../../../../host ../../../../../../host"
1833 for i in ${possibles}; do
1834 if test -d "$i/"infra""; then
1841 if test "${infra_builddir}" != "" ; then
1842 infra_builddir="${infra_builddir}/infra"
1843 infra_builddir=`cd ${infra_builddir} && /bin/pwd`
1846 ecos_infra_incdir=""
1847 ecos_infra_libdir=""
1850 # Check whether --with-infra-header or --without-infra-header was given.
1851 if test "${with_infra_header+set}" = set; then
1852 withval="$with_infra_header"
1856 # Check whether --with-infra-lib or --without-infra-lib was given.
1857 if test "${with_infra_lib+set}" = set; then
1858 withval="$with_infra_lib"
1862 # Check whether --with-infra or --without-infra was given.
1863 if test "${with_infra+set}" = set; then
1864 withval="$with_infra"
1869 if test "${with_infra_header+set}" = "set"; then
1870 ecos_infra_incdir="${with_infra_header}"
1871 elif test "${with_infra+set}" = "set"; then
1872 ecos_infra_incdir="${with_infra}/include"
1873 elif test "${infra_builddir}" != "" ; then
1874 ecos_infra_incdir="${infra_builddir}"
1876 { echo "configure: error: infrastructure headers not found" 1>&2; exit 1; }
1878 if test "${MSVC}" = "yes" ; then
1879 ecos_msvc_infra_incdir=${ecos_infra_incdir}
1883 if test "${MSVC}" = "yes" ; then
1884 ecos_msvc_infra_incdir=`cygpath -w ${ecos_msvc_infra_incdir} | tr \\\\\\\\ /`
1887 ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_msvc_infra_incdir}\""
1889 ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_infra_incdir}"
1892 if test "${with_infra_lib+set}" = "set"; then
1893 ecos_infra_libdir="${with_infra_lib}"
1894 elif test "${with_infra+set}" = "set"; then
1895 ecos_infra_libdir="${with_infra}/lib"
1896 elif test "${infra_builddir}" != "" ; then
1897 ecos_infra_libdir="${infra_builddir}"
1899 { echo "configure: error: infrastructure library not found" 1>&2; exit 1; }
1901 if test "${MSVC}" = "yes" ; then
1902 ecos_msvc_infra_libdir=${ecos_infra_libdir}
1906 if test "${MSVC}" = "yes" ; then
1907 ecos_msvc_infra_libdir=`cygpath -w ${ecos_msvc_infra_libdir} | tr \\\\\\\\ /`
1910 ecos_LIBS="${ecos_LIBS} cyginfra.lib"
1911 ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_msvc_infra_libdir}\""
1913 ecos_LIBS="${ecos_LIBS} -lcyginfra"
1914 ecos_LDADD="${ecos_LDADD} -L${ecos_infra_libdir}"
1919 echo "$ac_t""-I${ecos_infra_incdir} -L${ecos_infra_libdir}" 1>&6
1929 echo $ac_n "checking for Tcl installation""... $ac_c" 1>&6
1930 echo "configure:1931: checking for Tcl installation" >&5
1931 # Check whether --with-tcl or --without-tcl was given.
1932 if test "${with_tcl+set}" = set; then
1937 # Check whether --with-tcl-version or --without-tcl-version was given.
1938 if test "${with_tcl_version+set}" = set; then
1939 withval="$with_tcl_version"
1944 if test "${MSVC}" = "yes" ; then
1945 # Check whether --with-tcl-header or --without-tcl-header was given.
1946 if test "${with_tcl_header+set}" = set; then
1947 withval="$with_tcl_header"
1951 # Check whether --with-tcl-lib or --without-tcl-lib was given.
1952 if test "${with_tcl_lib+set}" = set; then
1953 withval="$with_tcl_lib"
1959 if test "${with_tcl_version+set}" != set ; then
1960 { echo "configure: error: You must specify a Tcl version using --with-tcl-version=<vsn>" 1>&2; exit 1; }
1962 if test "${with_tcl_header+set}" = set ; then
1963 ecos_tcl_incdir=${with_tcl_header}
1964 elif test "${with_tcl+set}" = set ; then
1965 ecos_tcl_incdir="${with_tcl}/include"
1967 { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-header=<path>" 1>&2; exit 1; }
1969 if test "${with_tcl_lib+set}" = set; then
1970 ecos_tcl_libdir=${with_tcl_lib}
1971 elif test "${with_tcl+set}" = set; then
1972 ecos_tcl_libdir="${with_tcl}/lib"
1974 { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-lib=<path>" 1>&2; exit 1; }
1977 if test \! -r "${ecos_tcl_incdir}/tcl.h" ; then
1978 { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; }
1984 if test "${MSVC}" = "yes" ; then
1985 ecos_tcl_incdir=`cygpath -w ${ecos_tcl_incdir} | tr \\\\\\\\ /`
1991 if test "${MSVC}" = "yes" ; then
1992 ecos_tcl_libdir=`cygpath -w ${ecos_tcl_libdir} | tr \\\\\\\\ /`
1995 ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_tcl_incdir}\""
1996 ecos_LIBS="${ecos_LIBS} tcl${with_tcl_version}.lib"
1997 ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_tcl_libdir}\""
2003 if test "${with_tcl+set}" = set ; then
2004 possibles="${with_tcl}/lib"
2005 if test "${with_tcl_version+set}" = set ; then
2006 possibles="${possibles} ${with_tcl}/lib/tcl${with_tcl_version}"
2009 possibles="${possibles} ${prefix}/lib"
2010 if test "${with_tcl_version+set}" = set ; then
2011 possibles="${possibles} ${prefix}/lib/tcl${with_tcl_version}"
2013 possibles="${possibles} /usr/lib"
2014 if test "${with_tcl_version+set}" = set ; then
2015 possibles="${possibles} /usr/lib/tcl${with_tcl_version}"
2019 for i in ${possibles}; do
2020 if test -r "$i/"tclConfig.sh""; then
2026 if test \! -r "${tclconfig}/tclConfig.sh" ; then
2027 { echo "configure: error: unable to locate Tcl configuration file tclConfig.sh" 1>&2; exit 1; }
2029 . ${tclconfig}/tclConfig.sh
2031 if test -z "${TCL_INC_DIR}" ; then
2032 ecos_tcl_incdir="${TCL_PREFIX}/include"
2034 ecos_tcl_incdir="${TCL_INC_DIR}"
2036 if test \! -r "${ecos_tcl_incdir}/tcl.h" ; then
2037 { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; }
2039 if test "${ecos_tcl_incdir}" != "/usr/include" ; then
2040 ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_tcl_incdir}"
2044 if test -z "${TCL_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then
2047 for i in ${possibles}; do
2048 if test -r "$i/"libtcl${with_tcl_version}.a""; then
2054 if test -r "${libtcl}/libtcl${with_tcl_version}.a" ; then
2055 TCL_LIB_SPEC="-L${libtcl} -ltcl${with_tcl_version}"
2058 if test -z "${TCL_LIB_SPEC}" ; then
2061 for i in ${possibles}; do
2062 if test -r "$i/"libtcl.a""; then
2068 if test -r "${libtcl}/libtcl.a" ; then
2069 TCL_LIB_SPEC="-L${libtcl} -ltcl"
2072 if test -z "${TCL_LIB_SPEC}" ; then
2073 { echo "configure: error: ${tclconfig}/tclConfig.sh does not define TCL_LIB_SPEC" 1>&2; exit 1; }
2075 ecos_LIBS="${ecos_LIBS} ${TCL_LIB_SPEC}"
2077 possibles=`echo ${possibles} | sed -e 's,tcl,tk,g'`
2080 for i in ${possibles}; do
2081 if test -r "$i/"tkConfig.sh""; then
2087 if test \! -r "${tkconfig}/tkConfig.sh" ; then
2088 { echo "configure: error: unable to locate Tk config file tkConfig.sh" 1>&2; exit 1; }
2090 . ${tkconfig}/tkConfig.sh
2091 if test -z "${TK_INC_DIR}" ; then
2092 if test "${TK_PREFIX}" = "/usr" ; then
2093 ecos_tk_includes="${TK_XINCLUDES}"
2095 ecos_tk_includes="-I${TK_PREFIX}/include ${TK_XINCLUDES}"
2098 ecos_tk_includes="-I${TK_INC_DIR} ${TK_XINCLUDES}"
2101 if test -z "${TK_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then
2104 for i in ${possibles}; do
2105 if test -r "$i/"libtk${with_tcl_version}.a""; then
2111 if test -r "${libtk}/libtk${with_tcl_version}.a" ; then
2112 TK_LIB_SPEC="-L${libtk} -ltk${with_tcl_version}"
2115 if test -z "${TK_LIB_SPEC}" ; then
2118 for i in ${possibles}; do
2119 if test -r "$i/"libtk.a""; then
2125 if test -r "${libtk}/libtk.a" ; then
2126 TK_LIB_SPEC="-L${libtk} -ltk"
2129 if test -z "${TK_LIB_SPEC}" ; then
2130 { echo "configure: error: ${tkconfig}/tkConfig.sh does not define TK_LIB_SPEC" 1>&2; exit 1; }
2132 ecos_tk_libs="${TK_LIB_SPEC} ${TK_LIBS}"
2137 echo "$ac_t""-I${ecos_tcl_incdir} ${TCL_LIB_SPEC}" 1>&6
2143 cat > confcache <<\EOF
2144 # This file is a shell script that caches the results of configure
2145 # tests run on this system so they can be shared between configure
2146 # scripts and configure runs. It is not useful on other systems.
2147 # If it contains results you don't want to keep, you may remove or edit it.
2149 # By default, configure uses ./config.cache as the cache file,
2150 # creating it if it does not exist already. You can give configure
2151 # the --cache-file=FILE option to use a different cache file; that is
2152 # what configure does when it calls configure scripts in
2153 # subdirectories, so they share the cache.
2154 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2155 # config.status only pays attention to the cache file if you give it the
2156 # --recheck option to rerun configure.
2159 # The following way of writing the cache mishandles newlines in values,
2160 # but we know of no workaround that is simple, portable, and efficient.
2161 # So, don't put newlines in cache variables' values.
2162 # Ultrix sh set writes to stderr and can't be redirected directly,
2163 # and sets the high bit in the cache file unless we assign to the vars.
2165 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2167 # `set' does not quote correctly, so add quotes (double-quote substitution
2168 # turns \\\\ into \\, and sed turns \\ into \).
2170 -e "s/'/'\\\\''/g" \
2171 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2174 # `set' quotes correctly as required by POSIX, so do not add quotes.
2175 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2178 if cmp -s $cache_file confcache; then
2181 if test -w $cache_file; then
2182 echo "updating cache $cache_file"
2183 cat confcache > $cache_file
2185 echo "not updating unwritable cache $cache_file"
2190 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2192 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2193 # Let make expand exec_prefix.
2194 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2196 # Any assignment to VPATH causes Sun make to only execute
2197 # the first set of double-colon rules, so remove it if not needed.
2198 # If there is a colon in the path, we need to keep it.
2199 if test "x$srcdir" = x.; then
2200 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2203 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2205 # Transform confdefs.h into DEFS.
2206 # Protect against shell expansion while executing Makefile rules.
2207 # Protect against Makefile macro expansion.
2208 cat > conftest.defs <<\EOF
2209 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2210 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2215 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2219 # Without the "./", some shells look in PATH for config.status.
2220 : ${CONFIG_STATUS=./config.status}
2222 echo creating $CONFIG_STATUS
2223 rm -f $CONFIG_STATUS
2224 cat > $CONFIG_STATUS <<EOF
2226 # Generated automatically by configure.
2227 # Run this file to recreate the current configuration.
2228 # This directory was configured as follows,
2229 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2231 # $0 $ac_configure_args
2233 # Compiler output produced by configure, useful for debugging
2234 # configure, is in ./config.log if it exists.
2236 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2239 case "\$ac_option" in
2240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2241 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2242 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2243 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2244 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2246 -help | --help | --hel | --he | --h)
2247 echo "\$ac_cs_usage"; exit 0 ;;
2248 *) echo "\$ac_cs_usage"; exit 1 ;;
2252 ac_given_srcdir=$srcdir
2253 ac_given_INSTALL="$INSTALL"
2255 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2257 cat >> $CONFIG_STATUS <<EOF
2259 # Protect against being on the right side of a sed subst in config.status.
2260 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2261 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2265 s%@CFLAGS@%$CFLAGS%g
2266 s%@CPPFLAGS@%$CPPFLAGS%g
2267 s%@CXXFLAGS@%$CXXFLAGS%g
2268 s%@FFLAGS@%$FFLAGS%g
2270 s%@LDFLAGS@%$LDFLAGS%g
2272 s%@exec_prefix@%$exec_prefix%g
2273 s%@prefix@%$prefix%g
2274 s%@program_transform_name@%$program_transform_name%g
2275 s%@bindir@%$bindir%g
2276 s%@sbindir@%$sbindir%g
2277 s%@libexecdir@%$libexecdir%g
2278 s%@datadir@%$datadir%g
2279 s%@sysconfdir@%$sysconfdir%g
2280 s%@sharedstatedir@%$sharedstatedir%g
2281 s%@localstatedir@%$localstatedir%g
2282 s%@libdir@%$libdir%g
2283 s%@includedir@%$includedir%g
2284 s%@oldincludedir@%$oldincludedir%g
2285 s%@infodir@%$infodir%g
2286 s%@mandir@%$mandir%g
2288 s%@host_alias@%$host_alias%g
2289 s%@host_cpu@%$host_cpu%g
2290 s%@host_vendor@%$host_vendor%g
2291 s%@host_os@%$host_os%g
2292 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2293 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2294 s%@INSTALL_DATA@%$INSTALL_DATA%g
2295 s%@PACKAGE@%$PACKAGE%g
2296 s%@VERSION@%$VERSION%g
2297 s%@ACLOCAL@%$ACLOCAL%g
2298 s%@AUTOCONF@%$AUTOCONF%g
2299 s%@AUTOMAKE@%$AUTOMAKE%g
2300 s%@AUTOHEADER@%$AUTOHEADER%g
2301 s%@MAKEINFO@%$MAKEINFO%g
2302 s%@SET_MAKE@%$SET_MAKE%g
2303 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2304 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2308 s%@OBJEXT@%$OBJEXT%g
2309 s%@EXEEXT@%$EXEEXT%g
2310 s%@ecos_CFLAGS@%$ecos_CFLAGS%g
2311 s%@ecos_CXXFLAGS@%$ecos_CXXFLAGS%g
2312 s%@ecos_LDADD@%$ecos_LDADD%g
2313 s%@ecos_INCLUDES@%$ecos_INCLUDES%g
2314 s%@ecos_LIBS@%$ecos_LIBS%g
2315 s%@MSVC_SRCDIR@%$MSVC_SRCDIR%g
2316 s%@MSVC_TRUE@%$MSVC_TRUE%g
2317 s%@MSVC_FALSE@%$MSVC_FALSE%g
2318 s%@ecos_libcdl_incdir@%$ecos_libcdl_incdir%g
2319 s%@ecos_libcdl_libdir@%$ecos_libcdl_libdir%g
2320 s%@ecos_infra_incdir@%$ecos_infra_incdir%g
2321 s%@ecos_infra_libdir@%$ecos_infra_libdir%g
2322 s%@ecos_tk_includes@%$ecos_tk_includes%g
2323 s%@ecos_tk_libs@%$ecos_tk_libs%g
2328 cat >> $CONFIG_STATUS <<\EOF
2330 # Split the substitutions into bite-sized pieces for seds with
2331 # small command number limits, like on Digital OSF/1 and HP-UX.
2332 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2333 ac_file=1 # Number of current file.
2334 ac_beg=1 # First line for current file.
2335 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2338 while $ac_more_lines; do
2339 if test $ac_beg -gt 1; then
2340 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2342 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2344 if test ! -s conftest.s$ac_file; then
2346 rm -f conftest.s$ac_file
2348 if test -z "$ac_sed_cmds"; then
2349 ac_sed_cmds="sed -f conftest.s$ac_file"
2351 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2353 ac_file=`expr $ac_file + 1`
2355 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2358 if test -z "$ac_sed_cmds"; then
2363 cat >> $CONFIG_STATUS <<EOF
2365 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2367 cat >> $CONFIG_STATUS <<\EOF
2368 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2369 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2371 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2372 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2373 *) ac_file_in="${ac_file}.in" ;;
2376 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2378 # Remove last slash and all that follows it. Not all systems have dirname.
2379 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2380 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2381 # The file is in a subdirectory.
2382 test ! -d "$ac_dir" && mkdir "$ac_dir"
2383 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2384 # A "../" for each directory in $ac_dir_suffix.
2385 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2387 ac_dir_suffix= ac_dots=
2390 case "$ac_given_srcdir" in
2392 if test -z "$ac_dots"; then top_srcdir=.
2393 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2394 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2396 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2397 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2400 case "$ac_given_INSTALL" in
2401 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2402 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2405 echo creating "$ac_file"
2407 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2409 *Makefile*) ac_comsub="1i\\
2410 # $configure_input" ;;
2414 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2416 s%@configure_input@%$configure_input%g
2417 s%@srcdir@%$srcdir%g
2418 s%@top_srcdir@%$top_srcdir%g
2419 s%@INSTALL@%$INSTALL%g
2420 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2425 cat >> $CONFIG_STATUS <<EOF
2428 cat >> $CONFIG_STATUS <<\EOF
2432 chmod +x $CONFIG_STATUS
2433 rm -fr confdefs* $ac_clean_files
2434 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1