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-infra-header=<path> location of eCos infrastructure headers"
38 --with-infra-lib=<path> location of eCos infrastructure library"
40 --with-infra=<path> location of eCos infrastructure installation"
42 --with-tcl=<path> location of Tcl header and libraries"
44 --with-tcl-version=<vsn> version of Tcl to be used"
46 --with-tcl-header=<path> location of Tcl header"
48 --with-tcl-lib=<path> location of Tcl libraries"
50 # Initialize some variables set by options.
51 # The variables have the same names as the options, with
52 # dashes changed to underlines.
54 cache_file=./config.cache
63 program_transform_name=s,x,x,
71 bindir='${exec_prefix}/bin'
72 sbindir='${exec_prefix}/sbin'
73 libexecdir='${exec_prefix}/libexec'
74 datadir='${prefix}/share'
75 sysconfdir='${prefix}/etc'
76 sharedstatedir='${prefix}/com'
77 localstatedir='${prefix}/var'
78 libdir='${exec_prefix}/lib'
79 includedir='${prefix}/include'
80 oldincludedir='/usr/include'
81 infodir='${prefix}/info'
82 mandir='${prefix}/man'
84 # Initialize some other variables.
87 SHELL=${CONFIG_SHELL-/bin/sh}
88 # Maximum number of lines to put in a shell here document.
95 # If the previous option needs an argument, assign it.
96 if test -n "$ac_prev"; then
97 eval "$ac_prev=\$ac_option"
103 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
107 # Accept the important Cygnus configure options, so we can diagnose typos.
111 -bindir | --bindir | --bindi | --bind | --bin | --bi)
113 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
114 bindir="$ac_optarg" ;;
116 -build | --build | --buil | --bui | --bu)
118 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
119 build="$ac_optarg" ;;
121 -cache-file | --cache-file | --cache-fil | --cache-fi \
122 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
123 ac_prev=cache_file ;;
124 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
125 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
126 cache_file="$ac_optarg" ;;
128 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
130 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
132 datadir="$ac_optarg" ;;
134 -disable-* | --disable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}=no" ;;
143 -enable-* | --enable-*)
144 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}='$ac_optarg'" ;;
156 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
157 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
158 | --exec | --exe | --ex)
159 ac_prev=exec_prefix ;;
160 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
161 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
162 | --exec=* | --exe=* | --ex=*)
163 exec_prefix="$ac_optarg" ;;
165 -gas | --gas | --ga | --g)
166 # Obsolete; use --with-gas.
169 -help | --help | --hel | --he)
170 # Omit some internal or obsolete options to make the list less imposing.
171 # This message is too long to be a string in the A/UX 3.1 sh.
173 Usage: configure [options] [host]
174 Options: [defaults in brackets after descriptions]
176 --cache-file=FILE cache test results in FILE
177 --help print this message
178 --no-create do not create output files
179 --quiet, --silent do not print \`checking...' messages
180 --version print the version of autoconf that created configure
181 Directory and file names:
182 --prefix=PREFIX install architecture-independent files in PREFIX
184 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
186 --bindir=DIR user executables in DIR [EPREFIX/bin]
187 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
188 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
189 --datadir=DIR read-only architecture-independent data in DIR
191 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
192 --sharedstatedir=DIR modifiable architecture-independent data in DIR
194 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
195 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
196 --includedir=DIR C header files in DIR [PREFIX/include]
197 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
198 --infodir=DIR info documentation in DIR [PREFIX/info]
199 --mandir=DIR man documentation in DIR [PREFIX/man]
200 --srcdir=DIR find the sources in DIR [configure dir or ..]
201 --program-prefix=PREFIX prepend PREFIX to installed program names
202 --program-suffix=SUFFIX append SUFFIX to installed program names
203 --program-transform-name=PROGRAM
204 run sed PROGRAM on installed program names
208 --build=BUILD configure for building on BUILD [BUILD=HOST]
209 --host=HOST configure for HOST [guessed]
210 --target=TARGET configure for TARGET [TARGET=HOST]
211 Features and packages:
212 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
213 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
214 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
215 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
216 --x-includes=DIR X include files are in DIR
217 --x-libraries=DIR X library files are in DIR
219 if test -n "$ac_help"; then
220 echo "--enable and --with options recognized:$ac_help"
224 -host | --host | --hos | --ho)
226 -host=* | --host=* | --hos=* | --ho=*)
229 -includedir | --includedir | --includedi | --included | --include \
230 | --includ | --inclu | --incl | --inc)
231 ac_prev=includedir ;;
232 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
233 | --includ=* | --inclu=* | --incl=* | --inc=*)
234 includedir="$ac_optarg" ;;
236 -infodir | --infodir | --infodi | --infod | --info | --inf)
238 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
239 infodir="$ac_optarg" ;;
241 -libdir | --libdir | --libdi | --libd)
243 -libdir=* | --libdir=* | --libdi=* | --libd=*)
244 libdir="$ac_optarg" ;;
246 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
247 | --libexe | --libex | --libe)
248 ac_prev=libexecdir ;;
249 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
250 | --libexe=* | --libex=* | --libe=*)
251 libexecdir="$ac_optarg" ;;
253 -localstatedir | --localstatedir | --localstatedi | --localstated \
254 | --localstate | --localstat | --localsta | --localst \
255 | --locals | --local | --loca | --loc | --lo)
256 ac_prev=localstatedir ;;
257 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
258 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
259 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
260 localstatedir="$ac_optarg" ;;
262 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
264 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
265 mandir="$ac_optarg" ;;
268 # Obsolete; use --without-fp.
271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
279 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
280 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
281 | --oldin | --oldi | --old | --ol | --o)
282 ac_prev=oldincludedir ;;
283 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
284 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
285 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
286 oldincludedir="$ac_optarg" ;;
288 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
290 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
291 prefix="$ac_optarg" ;;
293 -program-prefix | --program-prefix | --program-prefi | --program-pref \
294 | --program-pre | --program-pr | --program-p)
295 ac_prev=program_prefix ;;
296 -program-prefix=* | --program-prefix=* | --program-prefi=* \
297 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
298 program_prefix="$ac_optarg" ;;
300 -program-suffix | --program-suffix | --program-suffi | --program-suff \
301 | --program-suf | --program-su | --program-s)
302 ac_prev=program_suffix ;;
303 -program-suffix=* | --program-suffix=* | --program-suffi=* \
304 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
305 program_suffix="$ac_optarg" ;;
307 -program-transform-name | --program-transform-name \
308 | --program-transform-nam | --program-transform-na \
309 | --program-transform-n | --program-transform- \
310 | --program-transform | --program-transfor \
311 | --program-transfo | --program-transf \
312 | --program-trans | --program-tran \
313 | --progr-tra | --program-tr | --program-t)
314 ac_prev=program_transform_name ;;
315 -program-transform-name=* | --program-transform-name=* \
316 | --program-transform-nam=* | --program-transform-na=* \
317 | --program-transform-n=* | --program-transform-=* \
318 | --program-transform=* | --program-transfor=* \
319 | --program-transfo=* | --program-transf=* \
320 | --program-trans=* | --program-tran=* \
321 | --progr-tra=* | --program-tr=* | --program-t=*)
322 program_transform_name="$ac_optarg" ;;
324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
325 | -silent | --silent | --silen | --sile | --sil)
328 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
330 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
332 sbindir="$ac_optarg" ;;
334 -sharedstatedir | --sharedstatedir | --sharedstatedi \
335 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
336 | --sharedst | --shareds | --shared | --share | --shar \
338 ac_prev=sharedstatedir ;;
339 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
340 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
341 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
343 sharedstatedir="$ac_optarg" ;;
345 -site | --site | --sit)
347 -site=* | --site=* | --sit=*)
350 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
352 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
353 srcdir="$ac_optarg" ;;
355 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
356 | --syscon | --sysco | --sysc | --sys | --sy)
357 ac_prev=sysconfdir ;;
358 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
359 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
360 sysconfdir="$ac_optarg" ;;
362 -target | --target | --targe | --targ | --tar | --ta | --t)
364 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
365 target="$ac_optarg" ;;
367 -v | -verbose | --verbose | --verbos | --verbo | --verb)
370 -version | --version | --versio | --versi | --vers)
371 echo "configure generated by autoconf version 2.13"
375 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}='$ac_optarg'" ;;
387 -without-* | --without-*)
388 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
389 # Reject names that are not valid shell variable names.
390 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
391 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
394 eval "with_${ac_package}=no" ;;
397 # Obsolete; use --with-x.
400 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
401 | --x-incl | --x-inc | --x-in | --x-i)
402 ac_prev=x_includes ;;
403 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
404 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
405 x_includes="$ac_optarg" ;;
407 -x-libraries | --x-libraries | --x-librarie | --x-librari \
408 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
409 ac_prev=x_libraries ;;
410 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
411 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
412 x_libraries="$ac_optarg" ;;
414 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
418 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
419 echo "configure: warning: $ac_option: invalid host type" 1>&2
421 if test "x$nonopt" != xNONE; then
422 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
430 if test -n "$ac_prev"; then
431 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
434 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
436 # File descriptor usage:
439 # 2 errors and warnings
440 # 3 some systems may open it to /dev/tty
441 # 4 used on the Kubota Titan
442 # 6 checking for... messages and results
443 # 5 compiler messages saved in config.log
444 if test "$silent" = yes; then
452 This file contains any messages produced by compilers while
453 running configure, to aid debugging if configure makes a mistake.
456 # Strip out --no-create and --no-recursion so they do not pile up.
457 # Also quote any args containing shell metacharacters.
462 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
463 | --no-cr | --no-c) ;;
464 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
465 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
467 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
468 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
473 # Only set these to C if already set. These must not be set unconditionally
474 # because not all systems understand e.g. LANG=C (notably SCO).
475 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
476 # Non-C LC_CTYPE values break the ctype check.
477 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
478 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
479 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
480 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
482 # confdefs.h avoids OS command line length limits that DEFS can exceed.
483 rm -rf conftest* confdefs.h
484 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
487 # A filename unique to this package, relative to the directory that
488 # configure is in, which we can look for to find out if srcdir is correct.
489 ac_unique_file=cdlcore.hxx
491 # Find the source files, if location was not specified.
492 if test -z "$srcdir"; then
493 ac_srcdir_defaulted=yes
494 # Try the directory containing this script, then its parent.
496 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
497 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
499 if test ! -r $srcdir/$ac_unique_file; then
503 ac_srcdir_defaulted=no
505 if test ! -r $srcdir/$ac_unique_file; then
506 if test "$ac_srcdir_defaulted" = yes; then
507 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
509 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
512 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
514 # Prefer explicitly selected file to automatically selected ones.
515 if test -z "$CONFIG_SITE"; then
516 if test "x$prefix" != xNONE; then
517 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
519 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
522 for ac_site_file in $CONFIG_SITE; do
523 if test -r "$ac_site_file"; then
524 echo "loading site script $ac_site_file"
529 if test -r "$cache_file"; then
530 echo "loading cache $cache_file"
533 echo "creating cache $cache_file"
538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
539 ac_cpp='$CPP $CPPFLAGS'
540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
542 cross_compiling=$ac_cv_prog_cc_cross
546 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
547 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
548 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
555 ac_n= ac_c='\c' ac_t=
561 for ac_dir in ../../acsupport $srcdir/../../acsupport; do
562 if test -f $ac_dir/install-sh; then
564 ac_install_sh="$ac_aux_dir/install-sh -c"
566 elif test -f $ac_dir/install.sh; then
568 ac_install_sh="$ac_aux_dir/install.sh -c"
572 if test -z "$ac_aux_dir"; then
573 { echo "configure: error: can not find install-sh or install.sh in ../../acsupport $srcdir/../../acsupport" 1>&2; exit 1; }
575 ac_config_guess=$ac_aux_dir/config.guess
576 ac_config_sub=$ac_aux_dir/config.sub
577 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
581 echo $ac_n "checking that a separate build tree is being used""... $ac_c" 1>&6
582 echo "configure:583: checking that a separate build tree is being used" >&5
584 if test "${srcdir}" = "." ; then
587 if test "${ecos_cwd}" = "${srcdir}" ; then
588 echo "$ac_t""no" 1>&6
589 { 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; }
591 echo "$ac_t""yes" 1>&6
595 # Make sure we can run config.sub.
596 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
597 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
600 echo $ac_n "checking host system type""... $ac_c" 1>&6
601 echo "configure:602: checking host system type" >&5
604 case "$host_alias" in
608 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
609 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
611 *) host_alias=$nonopt ;;
615 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
616 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
617 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
618 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
619 echo "$ac_t""$host" 1>&6
621 # Find a good install program. We prefer a C program (faster),
622 # so one script is as good as another. But avoid the broken or
623 # incompatible versions:
624 # SysV /etc/install, /usr/sbin/install
625 # SunOS /usr/etc/install
628 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
629 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
630 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
631 # ./install, which can be erroneously created by make from ./install.sh.
632 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
633 echo "configure:634: checking for a BSD compatible install" >&5
634 if test -z "$INSTALL"; then
635 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
638 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
639 for ac_dir in $PATH; do
640 # Account for people who put trailing slashes in PATH elements.
642 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
644 # OSF1 and SCO ODT 3.0 have their own names for install.
645 # Don't use installbsd from OSF since it installs stuff as root
647 for ac_prog in ginstall scoinst install; do
648 if test -f $ac_dir/$ac_prog; then
649 if test $ac_prog = install &&
650 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
651 # AIX install. It has an incompatible calling convention.
654 ac_cv_path_install="$ac_dir/$ac_prog -c"
665 if test "${ac_cv_path_install+set}" = set; then
666 INSTALL="$ac_cv_path_install"
668 # As a last resort, use the slow shell script. We don't cache a
669 # path for INSTALL within a source directory, because that will
670 # break other packages using the cache if that directory is
671 # removed, or if the path is relative.
672 INSTALL="$ac_install_sh"
675 echo "$ac_t""$INSTALL" 1>&6
677 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
678 # It thinks the first close brace ends the variable substitution.
679 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
681 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
683 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
685 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
686 echo "configure:687: checking whether build environment is sane" >&5
689 echo timestamp > conftestfile
690 # Do `set' in a subshell so we don't clobber the current shell's
691 # arguments. Must try -L first in case configure is actually a
692 # symlink; some systems play weird games with the mod time of symlinks
693 # (eg FreeBSD returns the mod time of the symlink's containing
696 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
697 if test "$*" = "X"; then
699 set X `ls -t $srcdir/configure conftestfile`
701 if test "$*" != "X $srcdir/configure conftestfile" \
702 && test "$*" != "X conftestfile $srcdir/configure"; then
704 # If neither matched, then we have a broken ls. This can happen
705 # if, for instance, CONFIG_SHELL is bash and it inherits a
706 # broken ls alias from the environment. This has actually
707 # happened. Such a system could not be considered "sane".
708 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
709 alias in your environment" 1>&2; exit 1; }
712 test "$2" = conftestfile
718 { echo "configure: error: newly created file is older than distributed files!
719 Check your system clock" 1>&2; exit 1; }
722 echo "$ac_t""yes" 1>&6
723 if test "$program_transform_name" = s,x,x,; then
724 program_transform_name=
726 # Double any \ or $. echo might interpret backslashes.
727 cat <<\EOF_SED > conftestsed
728 s,\\,\\\\,g; s,\$,$$,g
730 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
733 test "$program_prefix" != NONE &&
734 program_transform_name="s,^,${program_prefix},; $program_transform_name"
735 # Use a double $ so make ignores it.
736 test "$program_suffix" != NONE &&
737 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
739 # sed with no file args requires a program.
740 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
742 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
743 echo "configure:744: checking whether ${MAKE-make} sets \${MAKE}" >&5
744 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
745 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
746 echo $ac_n "(cached) $ac_c" 1>&6
748 cat > conftestmake <<\EOF
750 @echo 'ac_maketemp="${MAKE}"'
752 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
753 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
754 if test -n "$ac_maketemp"; then
755 eval ac_cv_prog_make_${ac_make}_set=yes
757 eval ac_cv_prog_make_${ac_make}_set=no
761 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
762 echo "$ac_t""yes" 1>&6
765 echo "$ac_t""no" 1>&6
766 SET_MAKE="MAKE=${MAKE-make}"
774 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
775 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
777 cat >> confdefs.h <<EOF
778 #define PACKAGE "$PACKAGE"
781 cat >> confdefs.h <<EOF
782 #define VERSION "$VERSION"
787 missing_dir=`cd $ac_aux_dir && pwd`
788 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
789 echo "configure:790: checking for working aclocal" >&5
790 # Run test in a subshell; some versions of sh will print an error if
791 # an executable is not found, even if stderr is redirected.
792 # Redirect stdin to placate older versions of autoconf. Sigh.
793 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
795 echo "$ac_t""found" 1>&6
797 ACLOCAL="$missing_dir/missing aclocal"
798 echo "$ac_t""missing" 1>&6
801 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
802 echo "configure:803: checking for working autoconf" >&5
803 # Run test in a subshell; some versions of sh will print an error if
804 # an executable is not found, even if stderr is redirected.
805 # Redirect stdin to placate older versions of autoconf. Sigh.
806 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
808 echo "$ac_t""found" 1>&6
810 AUTOCONF="$missing_dir/missing autoconf"
811 echo "$ac_t""missing" 1>&6
814 echo $ac_n "checking for working automake""... $ac_c" 1>&6
815 echo "configure:816: checking for working automake" >&5
816 # Run test in a subshell; some versions of sh will print an error if
817 # an executable is not found, even if stderr is redirected.
818 # Redirect stdin to placate older versions of autoconf. Sigh.
819 if (automake --version) < /dev/null > /dev/null 2>&1; then
821 echo "$ac_t""found" 1>&6
823 AUTOMAKE="$missing_dir/missing automake"
824 echo "$ac_t""missing" 1>&6
827 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
828 echo "configure:829: checking for working autoheader" >&5
829 # Run test in a subshell; some versions of sh will print an error if
830 # an executable is not found, even if stderr is redirected.
831 # Redirect stdin to placate older versions of autoconf. Sigh.
832 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
833 AUTOHEADER=autoheader
834 echo "$ac_t""found" 1>&6
836 AUTOHEADER="$missing_dir/missing autoheader"
837 echo "$ac_t""missing" 1>&6
840 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
841 echo "configure:842: checking for working makeinfo" >&5
842 # Run test in a subshell; some versions of sh will print an error if
843 # an executable is not found, even if stderr is redirected.
844 # Redirect stdin to placate older versions of autoconf. Sigh.
845 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
847 echo "$ac_t""found" 1>&6
849 MAKEINFO="$missing_dir/missing makeinfo"
850 echo "$ac_t""missing" 1>&6
857 cat >> confdefs.h <<EOF
858 #define CYGNUM_LIBCDL_VERSION "$VERSION"
862 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
863 echo "configure:864: checking whether to enable maintainer-specific portions of Makefiles" >&5
864 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
865 if test "${enable_maintainer_mode+set}" = set; then
866 enableval="$enable_maintainer_mode"
867 USE_MAINTAINER_MODE=$enableval
869 USE_MAINTAINER_MODE=no
872 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
875 if test $USE_MAINTAINER_MODE = yes; then
876 MAINTAINER_MODE_TRUE=
877 MAINTAINER_MODE_FALSE='#'
879 MAINTAINER_MODE_TRUE='#'
880 MAINTAINER_MODE_FALSE=
882 MAINT=$MAINTAINER_MODE_TRUE
886 # Extract the first word of "gcc", so it can be a program name with args.
887 set dummy gcc; ac_word=$2
888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
889 echo "configure:890: checking for $ac_word" >&5
890 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
893 if test -n "$CC"; then
894 ac_cv_prog_CC="$CC" # Let the user override the test.
896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
898 for ac_dir in $ac_dummy; do
899 test -z "$ac_dir" && ac_dir=.
900 if test -f $ac_dir/$ac_word; then
909 if test -n "$CC"; then
910 echo "$ac_t""$CC" 1>&6
912 echo "$ac_t""no" 1>&6
915 if test -z "$CC"; then
916 # Extract the first word of "cc", so it can be a program name with args.
917 set dummy cc; ac_word=$2
918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
919 echo "configure:920: checking for $ac_word" >&5
920 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
921 echo $ac_n "(cached) $ac_c" 1>&6
923 if test -n "$CC"; then
924 ac_cv_prog_CC="$CC" # Let the user override the test.
926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
929 for ac_dir in $ac_dummy; do
930 test -z "$ac_dir" && ac_dir=.
931 if test -f $ac_dir/$ac_word; then
932 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
941 if test $ac_prog_rejected = yes; then
942 # We found a bogon in the path, so make sure we never use it.
943 set dummy $ac_cv_prog_CC
945 if test $# -gt 0; then
946 # We chose a different compiler from the bogus one.
947 # However, it has the same basename, so the bogon will be chosen
948 # first if we set CC to just the basename; use the full file name.
950 set dummy "$ac_dir/$ac_word" "$@"
958 if test -n "$CC"; then
959 echo "$ac_t""$CC" 1>&6
961 echo "$ac_t""no" 1>&6
964 if test -z "$CC"; then
967 # Extract the first word of "cl", so it can be a program name with args.
968 set dummy cl; ac_word=$2
969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
970 echo "configure:971: checking for $ac_word" >&5
971 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
974 if test -n "$CC"; then
975 ac_cv_prog_CC="$CC" # Let the user override the test.
977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
979 for ac_dir in $ac_dummy; do
980 test -z "$ac_dir" && ac_dir=.
981 if test -f $ac_dir/$ac_word; then
990 if test -n "$CC"; then
991 echo "$ac_t""$CC" 1>&6
993 echo "$ac_t""no" 1>&6
998 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1001 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1002 echo "configure:1003: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1005 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1006 ac_cpp='$CPP $CPPFLAGS'
1007 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1008 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1009 cross_compiling=$ac_cv_prog_cc_cross
1011 cat > conftest.$ac_ext << EOF
1013 #line 1014 "configure"
1014 #include "confdefs.h"
1018 if { (eval echo configure:1019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1019 ac_cv_prog_cc_works=yes
1020 # If we can't run a trivial program, we are probably using a cross compiler.
1021 if (./conftest; exit) 2>/dev/null; then
1022 ac_cv_prog_cc_cross=no
1024 ac_cv_prog_cc_cross=yes
1027 echo "configure: failed program was:" >&5
1028 cat conftest.$ac_ext >&5
1029 ac_cv_prog_cc_works=no
1033 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1034 ac_cpp='$CPP $CPPFLAGS'
1035 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1036 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1037 cross_compiling=$ac_cv_prog_cc_cross
1039 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1040 if test $ac_cv_prog_cc_works = no; then
1041 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1043 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1044 echo "configure:1045: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1045 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1046 cross_compiling=$ac_cv_prog_cc_cross
1048 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1049 echo "configure:1050: checking whether we are using GNU C" >&5
1050 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 cat > conftest.c <<EOF
1058 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1065 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1067 if test $ac_cv_prog_gcc = yes; then
1073 ac_test_CFLAGS="${CFLAGS+set}"
1074 ac_save_CFLAGS="$CFLAGS"
1076 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1077 echo "configure:1078: checking whether ${CC-cc} accepts -g" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1081 echo 'void f(){}' > conftest.c
1082 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1091 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1092 if test "$ac_test_CFLAGS" = set; then
1093 CFLAGS="$ac_save_CFLAGS"
1094 elif test $ac_cv_prog_cc_g = yes; then
1095 if test "$GCC" = yes; then
1101 if test "$GCC" = yes; then
1108 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1110 # Extract the first word of "$ac_prog", so it can be a program name with args.
1111 set dummy $ac_prog; ac_word=$2
1112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1113 echo "configure:1114: checking for $ac_word" >&5
1114 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 if test -n "$CXX"; then
1118 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1122 for ac_dir in $ac_dummy; do
1123 test -z "$ac_dir" && ac_dir=.
1124 if test -f $ac_dir/$ac_word; then
1125 ac_cv_prog_CXX="$ac_prog"
1132 CXX="$ac_cv_prog_CXX"
1133 if test -n "$CXX"; then
1134 echo "$ac_t""$CXX" 1>&6
1136 echo "$ac_t""no" 1>&6
1139 test -n "$CXX" && break
1141 test -n "$CXX" || CXX="gcc"
1144 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1148 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1149 ac_cpp='$CXXCPP $CPPFLAGS'
1150 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1151 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1152 cross_compiling=$ac_cv_prog_cxx_cross
1154 cat > conftest.$ac_ext << EOF
1156 #line 1157 "configure"
1157 #include "confdefs.h"
1159 int main(){return(0);}
1161 if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1162 ac_cv_prog_cxx_works=yes
1163 # If we can't run a trivial program, we are probably using a cross compiler.
1164 if (./conftest; exit) 2>/dev/null; then
1165 ac_cv_prog_cxx_cross=no
1167 ac_cv_prog_cxx_cross=yes
1170 echo "configure: failed program was:" >&5
1171 cat conftest.$ac_ext >&5
1172 ac_cv_prog_cxx_works=no
1176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1177 ac_cpp='$CPP $CPPFLAGS'
1178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1180 cross_compiling=$ac_cv_prog_cc_cross
1182 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1183 if test $ac_cv_prog_cxx_works = no; then
1184 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1186 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1187 echo "configure:1188: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1188 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1189 cross_compiling=$ac_cv_prog_cxx_cross
1191 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether we are using GNU C++" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 cat > conftest.C <<EOF
1201 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1208 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1210 if test $ac_cv_prog_gxx = yes; then
1216 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1217 ac_save_CXXFLAGS="$CXXFLAGS"
1219 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1220 echo "configure:1221: checking whether ${CXX-g++} accepts -g" >&5
1221 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 echo 'void f(){}' > conftest.cc
1225 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1226 ac_cv_prog_cxx_g=yes
1234 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1235 if test "$ac_test_CXXFLAGS" = set; then
1236 CXXFLAGS="$ac_save_CXXFLAGS"
1237 elif test $ac_cv_prog_cxx_g = yes; then
1238 if test "$GXX" = yes; then
1244 if test "$GXX" = yes; then
1251 for ac_declaration in \
1253 '#include <stdlib.h>' \
1254 'extern "C" void std::exit (int) throw (); using std::exit;' \
1255 'extern "C" void std::exit (int); using std::exit;' \
1256 'extern "C" void exit (int) throw ();' \
1257 'extern "C" void exit (int);' \
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1269 if { (eval echo configure:1270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1272 echo "configure: failed program was:" >&5
1273 cat conftest.$ac_ext >&5
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1286 if { (eval echo configure:1287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1290 echo "configure: failed program was:" >&5
1291 cat conftest.$ac_ext >&5
1295 if test -n "$ac_declaration"; then
1296 echo '#ifdef __cplusplus' >>confdefs.h
1297 echo $ac_declaration >>confdefs.h
1298 echo '#endif' >>confdefs.h
1302 # Extract the first word of "ranlib", so it can be a program name with args.
1303 set dummy ranlib; ac_word=$2
1304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1305 echo "configure:1306: checking for $ac_word" >&5
1306 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 if test -n "$RANLIB"; then
1310 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1314 for ac_dir in $ac_dummy; do
1315 test -z "$ac_dir" && ac_dir=.
1316 if test -f $ac_dir/$ac_word; then
1317 ac_cv_prog_RANLIB="ranlib"
1322 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1325 RANLIB="$ac_cv_prog_RANLIB"
1326 if test -n "$RANLIB"; then
1327 echo "$ac_t""$RANLIB" 1>&6
1329 echo "$ac_t""no" 1>&6
1332 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1333 echo "configure:1334: checking for object suffix" >&5
1334 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1338 echo 'int i = 1;' > conftest.$ac_ext
1339 if { (eval echo configure:1340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1340 for ac_file in conftest.*; do
1343 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1347 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1352 echo "$ac_t""$ac_cv_objext" 1>&6
1353 OBJEXT=$ac_cv_objext
1354 ac_objext=$ac_cv_objext
1356 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1357 echo "configure:1358: checking for Cygwin environment" >&5
1358 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 cat > conftest.$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1368 #define __CYGWIN__ __CYGWIN32__
1373 if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1386 echo "$ac_t""$ac_cv_cygwin" 1>&6
1388 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1389 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1390 echo "configure:1391: checking for mingw32 environment" >&5
1391 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1402 if { (eval echo configure:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1415 echo "$ac_t""$ac_cv_mingw32" 1>&6
1417 test "$ac_cv_mingw32" = yes && MINGW32=yes
1420 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1421 echo "configure:1422: checking for executable suffix" >&5
1422 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1429 echo 'int main () { return 0; }' > conftest.$ac_ext
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1432 for file in conftest.*; do
1434 *.c | *.o | *.obj) ;;
1435 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1439 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1442 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1447 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1448 echo "$ac_t""${ac_cv_exeext}" 1>&6
1468 echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6
1469 echo "configure:1470: checking "for Visual C++"" >&5
1471 if test "${CC}" = "cl" ; then
1474 MSVC_SRCDIR=${srcdir}
1478 if test "${MSVC}" = "yes" ; then
1479 MSVC_SRCDIR=`cygpath -w ${MSVC_SRCDIR} | tr \\\\\\\\ /`
1483 ecos_INCLUDES="${ecos_INCLUDES} \"-I${MSVC_SRCDIR}\""
1485 ecos_LIBS="advapi32.lib"
1489 if test "${MSVC}" = "yes"; then
1496 if test "${MSVC}" = "yes" ; then
1497 echo "$ac_t""unfortunately yes" 1>&6
1499 echo "$ac_t""no" 1>&6
1508 echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6
1509 echo "configure:1510: checking "the default compiler flags"" >&5
1511 ecosflags_enable_debug="no"
1512 # Check whether --enable-debug or --disable-debug was given.
1513 if test "${enable_debug+set}" = set; then
1514 enableval="$enable_debug"
1515 case "${enableval}" in
1516 yes) ecosflags_enable_debug="yes" ;;
1517 *) ecosflags_enable_debug="no" ;;
1522 ecosflags_enable_ansi="no"
1523 if test "${MSVC}" = "yes" ; then
1524 # Check whether --enable-ansi or --disable-ansi was given.
1525 if test "${enable_ansi+set}" = set; then
1526 enableval="$enable_ansi"
1527 case "${enableval}" in
1528 yes) ecosflags_enable_ansi="yes" ;;
1529 *) ecosflags_enable_ansi="no" ;;
1535 if test "${GCC}" = "yes" ; then
1536 ecos_CFLAGS="${ecos_CFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
1537 ecos_CXXFLAGS="${ecos_CXXFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual"
1538 elif test "${MSVC}" = "yes" ; then
1539 ecos_CFLAGS="${ecos_CFLAGS} -nologo -W3"
1540 ecos_CXXFLAGS="${ecos_CXXFLAGS} -nologo -W3 -GR -GX"
1542 { echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; }
1545 if test "${ecosflags_enable_debug}" = "yes" ; then
1546 if test "${GCC}" = "yes" ; then
1547 ecos_CFLAGS="${ecos_CFLAGS} -g -O0"
1548 ecos_CXXFLAGS="${ecos_CXXFLAGS} -g -O0"
1549 elif test "${MSVC}" = "yes" ; then
1550 ecos_CFLAGS="${ecos_CFLAGS} -MDd -Zi"
1551 ecos_CXXFLAGS="${ecos_CXXFLAGS} -MDd -Zi"
1554 if test "${GCC}" = "yes" ; then
1555 ecos_CFLAGS="${ecos_CFLAGS} -O0"
1556 ecos_CXXFLAGS="${ecos_CXXFLAGS} -O0"
1557 elif test "${MSVC}" = "yes" ; then
1558 ecos_CFLAGS="${ecos_CFLAGS} -MD -O2"
1559 ecos_CXXFLAGS="${ecos_CXXFLAGS} -MD -O2"
1563 CFLAGS="${ac_save_CFLAGS}"
1564 CXXFLAGS="${ac_save_CXXFLAGS}"
1566 echo "$ac_t""done" 1>&6
1572 if test "${ecosflags_enable_debug}" = "yes" ; then
1573 ecosinfra_asserts="yes"
1574 ecosinfra_preconditions="yes"
1575 ecosinfra_postconditions="yes"
1576 ecosinfra_invariants="yes"
1577 ecosinfra_loopinvariants="yes"
1578 ecosinfra_tracing="yes"
1579 ecosinfra_fntracing="yes"
1581 ecosinfra_asserts="no"
1582 ecosinfra_preconditions="no"
1583 ecosinfra_postconditions="no"
1584 ecosinfra_invariants="no"
1585 ecosinfra_loopinvariants="no"
1586 ecosinfra_tracing="no"
1587 ecosinfra_fntracing="no"
1590 # Check whether --enable-asserts or --disable-asserts was given.
1591 if test "${enable_asserts+set}" = set; then
1592 enableval="$enable_asserts"
1593 case "${enableval}" in
1594 yes) ecosinfra_asserts="yes" ;;
1595 no) ecosinfra_asserts="no" ;;
1596 *) { echo "configure: error: bad value ${enableval} for disable-asserts option" 1>&2; exit 1; } ;;
1600 if test "${ecosinfra_asserts}" = "yes"; then
1601 cat >> confdefs.h <<\EOF
1602 #define CYGDBG_USE_ASSERTS 1
1607 # Check whether --enable-preconditions or --disable-preconditions was given.
1608 if test "${enable_preconditions+set}" = set; then
1609 enableval="$enable_preconditions"
1610 case "${enableval}" in
1611 yes) ecosinfra_preconditions="yes" ;;
1612 no) ecosinfra_preconditions="no" ;;
1613 *) { echo "configure: error: bad value ${enableval} for disable-preconditions option" 1>&2; exit 1; } ;;
1617 if test "${ecosinfra_preconditions}" = "yes"; then
1618 cat >> confdefs.h <<\EOF
1619 #define CYGDBG_INFRA_DEBUG_PRECONDITIONS 1
1624 # Check whether --enable-postconditions or --disable-postconditions was given.
1625 if test "${enable_postconditions+set}" = set; then
1626 enableval="$enable_postconditions"
1627 case "${enableval}" in
1628 yes) ecosinfra_postconditions="yes" ;;
1629 no) ecosinfra_postconditions="no" ;;
1630 *) { echo "configure: error: bad value ${enableval} for disable-postconditions option" 1>&2; exit 1; } ;;
1634 if test "${ecosinfra_postconditions}" = "yes"; then
1635 cat >> confdefs.h <<\EOF
1636 #define CYGDBG_INFRA_DEBUG_POSTCONDITIONS 1
1641 # Check whether --enable-invariants or --disable-invariants was given.
1642 if test "${enable_invariants+set}" = set; then
1643 enableval="$enable_invariants"
1644 case "${enableval}" in
1645 yes) ecosinfra_invariants="yes" ;;
1646 no) ecosinfra_invariants="no" ;;
1647 *) { echo "configure: error: bad value ${enableval} for disable-invariants option" 1>&2; exit 1; } ;;
1651 if test "${ecosinfra_invariants}" = "yes"; then
1652 cat >> confdefs.h <<\EOF
1653 #define CYGDBG_INFRA_DEBUG_INVARIANTS 1
1658 # Check whether --enable-loopinvariants or --disable-loopinvariants was given.
1659 if test "${enable_loopinvariants+set}" = set; then
1660 enableval="$enable_loopinvariants"
1661 case "${enableval}" in
1662 yes) ecosinfra_loopinvariants="yes" ;;
1663 no) ecosinfra_loopinvariants="no" ;;
1664 *) { echo "configure: error: bad value ${enableval} for disable-loopinvariants option" 1>&2; exit 1; } ;;
1668 if test "${ecosinfra_loopinvariants}" = "yes"; then
1669 cat >> confdefs.h <<\EOF
1670 #define CYGDBG_INFRA_DEBUG_LOOP_INVARIANTS 1
1675 # Check whether --enable-tracing or --disable-tracing was given.
1676 if test "${enable_tracing+set}" = set; then
1677 enableval="$enable_tracing"
1678 case "${enableval}" in
1679 yes) ecosinfra_tracing="yes" ;;
1680 no) ecosinfra_tracing="no" ;;
1681 *) { echo "configure: error: bad value ${enableval} for disable-tracing option" 1>&2; exit 1; } ;;
1685 if test "${ecosinfra_tracing}" = "yes"; then
1686 cat >> confdefs.h <<\EOF
1687 #define CYGDBG_USE_TRACING 1
1692 # Check whether --enable-fntracing or --disable-fntracing was given.
1693 if test "${enable_fntracing+set}" = set; then
1694 enableval="$enable_fntracing"
1695 case "${enableval}" in
1696 yes) ecosinfra_fntracing="yes" ;;
1697 no) ecosinfra_fntracing=no ;;
1698 *) { echo "configure: error: bad value ${enableval} for disable-fntracing option" 1>&2; exit 1; } ;;
1702 if test "${ecosinfra_fntracing}" = "yes"; then
1703 cat >> confdefs.h <<\EOF
1704 #define CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS 1
1710 echo $ac_n "checking for eCos host-side infrastructure""... $ac_c" 1>&6
1711 echo "configure:1712: checking for eCos host-side infrastructure" >&5
1714 possibles=".. ../.. ../../.. ../../../.. ../../../../.."
1717 for i in ${possibles}; do
1718 if test -d "$i/"infra""; then
1724 if test "${infra_builddir}" = "" ; then
1725 possibles="../host ../../host ../../../host ../../../../host ../../../../../host ../../../../../../host"
1728 for i in ${possibles}; do
1729 if test -d "$i/"infra""; then
1736 if test "${infra_builddir}" != "" ; then
1737 infra_builddir="${infra_builddir}/infra"
1738 infra_builddir=`cd ${infra_builddir} && /bin/pwd`
1741 ecos_infra_incdir=""
1742 ecos_infra_libdir=""
1745 # Check whether --with-infra-header or --without-infra-header was given.
1746 if test "${with_infra_header+set}" = set; then
1747 withval="$with_infra_header"
1751 # Check whether --with-infra-lib or --without-infra-lib was given.
1752 if test "${with_infra_lib+set}" = set; then
1753 withval="$with_infra_lib"
1757 # Check whether --with-infra or --without-infra was given.
1758 if test "${with_infra+set}" = set; then
1759 withval="$with_infra"
1764 if test "${with_infra_header+set}" = "set"; then
1765 ecos_infra_incdir="${with_infra_header}"
1766 elif test "${with_infra+set}" = "set"; then
1767 ecos_infra_incdir="${with_infra}/include"
1768 elif test "${infra_builddir}" != "" ; then
1769 ecos_infra_incdir="${infra_builddir}"
1771 { echo "configure: error: infrastructure headers not found" 1>&2; exit 1; }
1773 if test "${MSVC}" = "yes" ; then
1774 ecos_msvc_infra_incdir=${ecos_infra_incdir}
1778 if test "${MSVC}" = "yes" ; then
1779 ecos_msvc_infra_incdir=`cygpath -w ${ecos_msvc_infra_incdir} | tr \\\\\\\\ /`
1782 ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_msvc_infra_incdir}\""
1784 ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_infra_incdir}"
1787 if test "${with_infra_lib+set}" = "set"; then
1788 ecos_infra_libdir="${with_infra_lib}"
1789 elif test "${with_infra+set}" = "set"; then
1790 ecos_infra_libdir="${with_infra}/lib"
1791 elif test "${infra_builddir}" != "" ; then
1792 ecos_infra_libdir="${infra_builddir}"
1794 { echo "configure: error: infrastructure library not found" 1>&2; exit 1; }
1796 if test "${MSVC}" = "yes" ; then
1797 ecos_msvc_infra_libdir=${ecos_infra_libdir}
1801 if test "${MSVC}" = "yes" ; then
1802 ecos_msvc_infra_libdir=`cygpath -w ${ecos_msvc_infra_libdir} | tr \\\\\\\\ /`
1805 ecos_LIBS="${ecos_LIBS} cyginfra.lib"
1806 ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_msvc_infra_libdir}\""
1808 ecos_LIBS="${ecos_LIBS} -lcyginfra"
1809 ecos_LDADD="${ecos_LDADD} -L${ecos_infra_libdir}"
1814 echo "$ac_t""-I${ecos_infra_incdir} -L${ecos_infra_libdir}" 1>&6
1824 echo $ac_n "checking for Tcl installation""... $ac_c" 1>&6
1825 echo "configure:1826: checking for Tcl installation" >&5
1826 # Check whether --with-tcl or --without-tcl was given.
1827 if test "${with_tcl+set}" = set; then
1832 # Check whether --with-tcl-version or --without-tcl-version was given.
1833 if test "${with_tcl_version+set}" = set; then
1834 withval="$with_tcl_version"
1839 if test "${MSVC}" = "yes" ; then
1840 # Check whether --with-tcl-header or --without-tcl-header was given.
1841 if test "${with_tcl_header+set}" = set; then
1842 withval="$with_tcl_header"
1846 # Check whether --with-tcl-lib or --without-tcl-lib was given.
1847 if test "${with_tcl_lib+set}" = set; then
1848 withval="$with_tcl_lib"
1854 if test "${with_tcl_version+set}" != set ; then
1855 { echo "configure: error: You must specify a Tcl version using --with-tcl-version=<vsn>" 1>&2; exit 1; }
1857 if test "${with_tcl_header+set}" = set ; then
1858 ecos_tcl_incdir=${with_tcl_header}
1859 elif test "${with_tcl+set}" = set ; then
1860 ecos_tcl_incdir="${with_tcl}/include"
1862 { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-header=<path>" 1>&2; exit 1; }
1864 if test "${with_tcl_lib+set}" = set; then
1865 ecos_tcl_libdir=${with_tcl_lib}
1866 elif test "${with_tcl+set}" = set; then
1867 ecos_tcl_libdir="${with_tcl}/lib"
1869 { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-lib=<path>" 1>&2; exit 1; }
1872 if test \! -r "${ecos_tcl_incdir}/tcl.h" ; then
1873 { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; }
1879 if test "${MSVC}" = "yes" ; then
1880 ecos_tcl_incdir=`cygpath -w ${ecos_tcl_incdir} | tr \\\\\\\\ /`
1886 if test "${MSVC}" = "yes" ; then
1887 ecos_tcl_libdir=`cygpath -w ${ecos_tcl_libdir} | tr \\\\\\\\ /`
1890 ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_tcl_incdir}\""
1891 ecos_LIBS="${ecos_LIBS} tcl${with_tcl_version}.lib"
1892 ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_tcl_libdir}\""
1898 if test "${with_tcl+set}" = set ; then
1899 possibles="${with_tcl}/lib"
1900 if test "${with_tcl_version+set}" = set ; then
1901 possibles="${possibles} ${with_tcl}/lib/tcl${with_tcl_version}"
1904 possibles="${possibles} ${prefix}/lib"
1905 if test "${with_tcl_version+set}" = set ; then
1906 possibles="${possibles} ${prefix}/lib/tcl${with_tcl_version}"
1908 possibles="${possibles} /usr/lib"
1909 if test "${with_tcl_version+set}" = set ; then
1910 possibles="${possibles} /usr/lib/tcl${with_tcl_version}"
1914 for i in ${possibles}; do
1915 if test -r "$i/"tclConfig.sh""; then
1921 if test \! -r "${tclconfig}/tclConfig.sh" ; then
1922 { echo "configure: error: unable to locate Tcl configuration file tclConfig.sh" 1>&2; exit 1; }
1924 . ${tclconfig}/tclConfig.sh
1926 if test -z "${TCL_INC_DIR}" ; then
1927 ecos_tcl_incdir="${TCL_PREFIX}/include"
1929 ecos_tcl_incdir="${TCL_INC_DIR}"
1931 if test \! -r "${ecos_tcl_incdir}/tcl.h" ; then
1932 { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; }
1934 if test "${ecos_tcl_incdir}" != "/usr/include" ; then
1935 ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_tcl_incdir}"
1939 if test -z "${TCL_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then
1942 for i in ${possibles}; do
1943 if test -r "$i/"libtcl${with_tcl_version}.a""; then
1949 if test -r "${libtcl}/libtcl${with_tcl_version}.a" ; then
1950 TCL_LIB_SPEC="-L${libtcl} -ltcl${with_tcl_version}"
1953 if test -z "${TCL_LIB_SPEC}" ; then
1956 for i in ${possibles}; do
1957 if test -r "$i/"libtcl.a""; then
1963 if test -r "${libtcl}/libtcl.a" ; then
1964 TCL_LIB_SPEC="-L${libtcl} -ltcl"
1967 if test -z "${TCL_LIB_SPEC}" ; then
1968 { echo "configure: error: ${tclconfig}/tclConfig.sh does not define TCL_LIB_SPEC" 1>&2; exit 1; }
1970 ecos_LIBS="${ecos_LIBS} ${TCL_LIB_SPEC}"
1972 possibles=`echo ${possibles} | sed -e 's,tcl,tk,g'`
1975 for i in ${possibles}; do
1976 if test -r "$i/"tkConfig.sh""; then
1982 if test \! -r "${tkconfig}/tkConfig.sh" ; then
1983 { echo "configure: error: unable to locate Tk config file tkConfig.sh" 1>&2; exit 1; }
1985 . ${tkconfig}/tkConfig.sh
1986 if test -z "${TK_INC_DIR}" ; then
1987 if test "${TK_PREFIX}" = "/usr" ; then
1988 ecos_tk_includes="${TK_XINCLUDES}"
1990 ecos_tk_includes="-I${TK_PREFIX}/include ${TK_XINCLUDES}"
1993 ecos_tk_includes="-I${TK_INC_DIR} ${TK_XINCLUDES}"
1996 if test -z "${TK_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then
1999 for i in ${possibles}; do
2000 if test -r "$i/"libtk${with_tcl_version}.a""; then
2006 if test -r "${libtk}/libtk${with_tcl_version}.a" ; then
2007 TK_LIB_SPEC="-L${libtk} -ltk${with_tcl_version}"
2010 if test -z "${TK_LIB_SPEC}" ; then
2013 for i in ${possibles}; do
2014 if test -r "$i/"libtk.a""; then
2020 if test -r "${libtk}/libtk.a" ; then
2021 TK_LIB_SPEC="-L${libtk} -ltk"
2024 if test -z "${TK_LIB_SPEC}" ; then
2025 { echo "configure: error: ${tkconfig}/tkConfig.sh does not define TK_LIB_SPEC" 1>&2; exit 1; }
2027 ecos_tk_libs="${TK_LIB_SPEC} ${TK_LIBS}"
2032 echo "$ac_t""-I${ecos_tcl_incdir} ${TCL_LIB_SPEC}" 1>&6
2041 cat > confcache <<\EOF
2042 # This file is a shell script that caches the results of configure
2043 # tests run on this system so they can be shared between configure
2044 # scripts and configure runs. It is not useful on other systems.
2045 # If it contains results you don't want to keep, you may remove or edit it.
2047 # By default, configure uses ./config.cache as the cache file,
2048 # creating it if it does not exist already. You can give configure
2049 # the --cache-file=FILE option to use a different cache file; that is
2050 # what configure does when it calls configure scripts in
2051 # subdirectories, so they share the cache.
2052 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2053 # config.status only pays attention to the cache file if you give it the
2054 # --recheck option to rerun configure.
2057 # The following way of writing the cache mishandles newlines in values,
2058 # but we know of no workaround that is simple, portable, and efficient.
2059 # So, don't put newlines in cache variables' values.
2060 # Ultrix sh set writes to stderr and can't be redirected directly,
2061 # and sets the high bit in the cache file unless we assign to the vars.
2063 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2065 # `set' does not quote correctly, so add quotes (double-quote substitution
2066 # turns \\\\ into \\, and sed turns \\ into \).
2068 -e "s/'/'\\\\''/g" \
2069 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2072 # `set' quotes correctly as required by POSIX, so do not add quotes.
2073 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2076 if cmp -s $cache_file confcache; then
2079 if test -w $cache_file; then
2080 echo "updating cache $cache_file"
2081 cat confcache > $cache_file
2083 echo "not updating unwritable cache $cache_file"
2088 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2090 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2091 # Let make expand exec_prefix.
2092 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2094 # Any assignment to VPATH causes Sun make to only execute
2095 # the first set of double-colon rules, so remove it if not needed.
2096 # If there is a colon in the path, we need to keep it.
2097 if test "x$srcdir" = x.; then
2098 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2101 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2103 DEFS=-DHAVE_CONFIG_H
2105 # Without the "./", some shells look in PATH for config.status.
2106 : ${CONFIG_STATUS=./config.status}
2108 echo creating $CONFIG_STATUS
2109 rm -f $CONFIG_STATUS
2110 cat > $CONFIG_STATUS <<EOF
2112 # Generated automatically by configure.
2113 # Run this file to recreate the current configuration.
2114 # This directory was configured as follows,
2115 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2117 # $0 $ac_configure_args
2119 # Compiler output produced by configure, useful for debugging
2120 # configure, is in ./config.log if it exists.
2122 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2125 case "\$ac_option" in
2126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2127 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2128 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2129 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2130 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2132 -help | --help | --hel | --he | --h)
2133 echo "\$ac_cs_usage"; exit 0 ;;
2134 *) echo "\$ac_cs_usage"; exit 1 ;;
2138 ac_given_srcdir=$srcdir
2139 ac_given_INSTALL="$INSTALL"
2141 trap 'rm -fr `echo "Makefile:Makefile.in testsuite/Makefile:testsuite/Makefile.in cdlconfig.h:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2143 cat >> $CONFIG_STATUS <<EOF
2145 # Protect against being on the right side of a sed subst in config.status.
2146 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2147 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2151 s%@CFLAGS@%$CFLAGS%g
2152 s%@CPPFLAGS@%$CPPFLAGS%g
2153 s%@CXXFLAGS@%$CXXFLAGS%g
2154 s%@FFLAGS@%$FFLAGS%g
2156 s%@LDFLAGS@%$LDFLAGS%g
2158 s%@exec_prefix@%$exec_prefix%g
2159 s%@prefix@%$prefix%g
2160 s%@program_transform_name@%$program_transform_name%g
2161 s%@bindir@%$bindir%g
2162 s%@sbindir@%$sbindir%g
2163 s%@libexecdir@%$libexecdir%g
2164 s%@datadir@%$datadir%g
2165 s%@sysconfdir@%$sysconfdir%g
2166 s%@sharedstatedir@%$sharedstatedir%g
2167 s%@localstatedir@%$localstatedir%g
2168 s%@libdir@%$libdir%g
2169 s%@includedir@%$includedir%g
2170 s%@oldincludedir@%$oldincludedir%g
2171 s%@infodir@%$infodir%g
2172 s%@mandir@%$mandir%g
2174 s%@host_alias@%$host_alias%g
2175 s%@host_cpu@%$host_cpu%g
2176 s%@host_vendor@%$host_vendor%g
2177 s%@host_os@%$host_os%g
2178 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2179 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2180 s%@INSTALL_DATA@%$INSTALL_DATA%g
2181 s%@PACKAGE@%$PACKAGE%g
2182 s%@VERSION@%$VERSION%g
2183 s%@ACLOCAL@%$ACLOCAL%g
2184 s%@AUTOCONF@%$AUTOCONF%g
2185 s%@AUTOMAKE@%$AUTOMAKE%g
2186 s%@AUTOHEADER@%$AUTOHEADER%g
2187 s%@MAKEINFO@%$MAKEINFO%g
2188 s%@SET_MAKE@%$SET_MAKE%g
2189 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2190 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2194 s%@RANLIB@%$RANLIB%g
2195 s%@OBJEXT@%$OBJEXT%g
2196 s%@EXEEXT@%$EXEEXT%g
2197 s%@ecos_CFLAGS@%$ecos_CFLAGS%g
2198 s%@ecos_CXXFLAGS@%$ecos_CXXFLAGS%g
2199 s%@ecos_LDADD@%$ecos_LDADD%g
2200 s%@ecos_INCLUDES@%$ecos_INCLUDES%g
2201 s%@ecos_LIBS@%$ecos_LIBS%g
2202 s%@MSVC_SRCDIR@%$MSVC_SRCDIR%g
2203 s%@MSVC_TRUE@%$MSVC_TRUE%g
2204 s%@MSVC_FALSE@%$MSVC_FALSE%g
2205 s%@ecos_infra_incdir@%$ecos_infra_incdir%g
2206 s%@ecos_infra_libdir@%$ecos_infra_libdir%g
2207 s%@ecos_tk_includes@%$ecos_tk_includes%g
2208 s%@ecos_tk_libs@%$ecos_tk_libs%g
2213 cat >> $CONFIG_STATUS <<\EOF
2215 # Split the substitutions into bite-sized pieces for seds with
2216 # small command number limits, like on Digital OSF/1 and HP-UX.
2217 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2218 ac_file=1 # Number of current file.
2219 ac_beg=1 # First line for current file.
2220 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2223 while $ac_more_lines; do
2224 if test $ac_beg -gt 1; then
2225 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2227 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2229 if test ! -s conftest.s$ac_file; then
2231 rm -f conftest.s$ac_file
2233 if test -z "$ac_sed_cmds"; then
2234 ac_sed_cmds="sed -f conftest.s$ac_file"
2236 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2238 ac_file=`expr $ac_file + 1`
2240 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2243 if test -z "$ac_sed_cmds"; then
2248 cat >> $CONFIG_STATUS <<EOF
2250 CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.in testsuite/Makefile:testsuite/Makefile.in"}
2252 cat >> $CONFIG_STATUS <<\EOF
2253 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2256 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2257 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2258 *) ac_file_in="${ac_file}.in" ;;
2261 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2263 # Remove last slash and all that follows it. Not all systems have dirname.
2264 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2265 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2266 # The file is in a subdirectory.
2267 test ! -d "$ac_dir" && mkdir "$ac_dir"
2268 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2269 # A "../" for each directory in $ac_dir_suffix.
2270 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2272 ac_dir_suffix= ac_dots=
2275 case "$ac_given_srcdir" in
2277 if test -z "$ac_dots"; then top_srcdir=.
2278 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2279 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2281 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2282 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2285 case "$ac_given_INSTALL" in
2286 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2287 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2290 echo creating "$ac_file"
2292 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2294 *Makefile*) ac_comsub="1i\\
2295 # $configure_input" ;;
2299 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2301 s%@configure_input@%$configure_input%g
2302 s%@srcdir@%$srcdir%g
2303 s%@top_srcdir@%$top_srcdir%g
2304 s%@INSTALL@%$INSTALL%g
2305 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2309 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2310 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2312 # ac_d sets the value in "#define NAME VALUE" lines.
2313 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2314 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2317 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2318 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2319 ac_uB='\([ ]\)%\1#\2define\3'
2322 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2323 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2324 ac_eB='$%\1#\2define\3'
2328 if test "${CONFIG_HEADERS+set}" != set; then
2330 cat >> $CONFIG_STATUS <<EOF
2331 CONFIG_HEADERS="cdlconfig.h:config.h.in"
2333 cat >> $CONFIG_STATUS <<\EOF
2335 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2336 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2338 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2339 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2340 *) ac_file_in="${ac_file}.in" ;;
2343 echo creating $ac_file
2345 rm -f conftest.frag conftest.in conftest.out
2346 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2347 cat $ac_file_inputs > conftest.in
2351 # Transform confdefs.h into a sed script conftest.vals that substitutes
2352 # the proper values into config.h.in to produce config.h. And first:
2353 # Protect against being on the right side of a sed subst in config.status.
2354 # Protect against being in an unquoted here document in config.status.
2356 cat > conftest.hdr <<\EOF
2359 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2363 sed -n -f conftest.hdr confdefs.h > conftest.vals
2366 # This sed command replaces #undef with comments. This is necessary, for
2367 # example, in the case of _POSIX_SOURCE, which is predefined and required
2368 # on some systems where configure will not decide to define it.
2369 cat >> conftest.vals <<\EOF
2370 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2373 # Break up conftest.vals because some shells have a limit on
2374 # the size of here documents, and old seds have small limits too.
2379 ac_lines=`grep -c . conftest.vals`
2380 # grep -c gives empty output for an empty file on some AIX systems.
2381 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2382 # Write a limited-size here document to conftest.frag.
2383 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2384 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2386 sed -f conftest.frag conftest.in > conftest.out
2388 mv conftest.out conftest.in
2390 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2392 mv conftest.tail conftest.vals
2396 cat >> $CONFIG_STATUS <<\EOF
2397 rm -f conftest.frag conftest.h
2398 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2399 cat conftest.in >> conftest.h
2401 if cmp -s $ac_file conftest.h 2>/dev/null; then
2402 echo "$ac_file is unchanged"
2405 # Remove last slash and all that follows it. Not all systems have dirname.
2406 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2407 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2408 # The file is in a subdirectory.
2409 test ! -d "$ac_dir" && mkdir "$ac_dir"
2412 mv conftest.h $ac_file
2417 cat >> $CONFIG_STATUS <<EOF
2421 cat >> $CONFIG_STATUS <<\EOF
2422 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2426 chmod +x $CONFIG_STATUS
2427 rm -fr confdefs* $ac_clean_files
2428 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1