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 # Initialize some variables set by options.
23 # The variables have the same names as the options, with
24 # dashes changed to underlines.
26 cache_file=./config.cache
35 program_transform_name=s,x,x,
43 bindir='${exec_prefix}/bin'
44 sbindir='${exec_prefix}/sbin'
45 libexecdir='${exec_prefix}/libexec'
46 datadir='${prefix}/share'
47 sysconfdir='${prefix}/etc'
48 sharedstatedir='${prefix}/com'
49 localstatedir='${prefix}/var'
50 libdir='${exec_prefix}/lib'
51 includedir='${prefix}/include'
52 oldincludedir='/usr/include'
53 infodir='${prefix}/info'
54 mandir='${prefix}/man'
56 # Initialize some other variables.
59 SHELL=${CONFIG_SHELL-/bin/sh}
60 # Maximum number of lines to put in a shell here document.
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
75 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 # Accept the important Cygnus configure options, so we can diagnose typos.
83 -bindir | --bindir | --bindi | --bind | --bin | --bi)
85 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86 bindir="$ac_optarg" ;;
88 -build | --build | --buil | --bui | --bu)
90 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
93 -cache-file | --cache-file | --cache-fil | --cache-fi \
94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98 cache_file="$ac_optarg" ;;
100 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104 datadir="$ac_optarg" ;;
106 -disable-* | --disable-*)
107 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
115 -enable-* | --enable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130 | --exec | --exe | --ex)
131 ac_prev=exec_prefix ;;
132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134 | --exec=* | --exe=* | --ex=*)
135 exec_prefix="$ac_optarg" ;;
137 -gas | --gas | --ga | --g)
138 # Obsolete; use --with-gas.
141 -help | --help | --hel | --he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
196 -host | --host | --hos | --ho)
198 -host=* | --host=* | --hos=* | --ho=*)
201 -includedir | --includedir | --includedi | --included | --include \
202 | --includ | --inclu | --incl | --inc)
203 ac_prev=includedir ;;
204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205 | --includ=* | --inclu=* | --incl=* | --inc=*)
206 includedir="$ac_optarg" ;;
208 -infodir | --infodir | --infodi | --infod | --info | --inf)
210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211 infodir="$ac_optarg" ;;
213 -libdir | --libdir | --libdi | --libd)
215 -libdir=* | --libdir=* | --libdi=* | --libd=*)
216 libdir="$ac_optarg" ;;
218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219 | --libexe | --libex | --libe)
220 ac_prev=libexecdir ;;
221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222 | --libexe=* | --libex=* | --libe=*)
223 libexecdir="$ac_optarg" ;;
225 -localstatedir | --localstatedir | --localstatedi | --localstated \
226 | --localstate | --localstat | --localsta | --localst \
227 | --locals | --local | --loca | --loc | --lo)
228 ac_prev=localstatedir ;;
229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
231 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232 localstatedir="$ac_optarg" ;;
234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237 mandir="$ac_optarg" ;;
240 # Obsolete; use --without-fp.
243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
253 | --oldin | --oldi | --old | --ol | --o)
254 ac_prev=oldincludedir ;;
255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258 oldincludedir="$ac_optarg" ;;
260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263 prefix="$ac_optarg" ;;
265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
266 | --program-pre | --program-pr | --program-p)
267 ac_prev=program_prefix ;;
268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270 program_prefix="$ac_optarg" ;;
272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
273 | --program-suf | --program-su | --program-s)
274 ac_prev=program_suffix ;;
275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277 program_suffix="$ac_optarg" ;;
279 -program-transform-name | --program-transform-name \
280 | --program-transform-nam | --program-transform-na \
281 | --program-transform-n | --program-transform- \
282 | --program-transform | --program-transfor \
283 | --program-transfo | --program-transf \
284 | --program-trans | --program-tran \
285 | --progr-tra | --program-tr | --program-t)
286 ac_prev=program_transform_name ;;
287 -program-transform-name=* | --program-transform-name=* \
288 | --program-transform-nam=* | --program-transform-na=* \
289 | --program-transform-n=* | --program-transform-=* \
290 | --program-transform=* | --program-transfor=* \
291 | --program-transfo=* | --program-transf=* \
292 | --program-trans=* | --program-tran=* \
293 | --progr-tra=* | --program-tr=* | --program-t=*)
294 program_transform_name="$ac_optarg" ;;
296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297 | -silent | --silent | --silen | --sile | --sil)
300 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304 sbindir="$ac_optarg" ;;
306 -sharedstatedir | --sharedstatedir | --sharedstatedi \
307 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308 | --sharedst | --shareds | --shared | --share | --shar \
310 ac_prev=sharedstatedir ;;
311 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315 sharedstatedir="$ac_optarg" ;;
317 -site | --site | --sit)
319 -site=* | --site=* | --sit=*)
322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325 srcdir="$ac_optarg" ;;
327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328 | --syscon | --sysco | --sysc | --sys | --sy)
329 ac_prev=sysconfdir ;;
330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332 sysconfdir="$ac_optarg" ;;
334 -target | --target | --targe | --targ | --tar | --ta | --t)
336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337 target="$ac_optarg" ;;
339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
342 -version | --version | --versio | --versi | --vers)
343 echo "configure generated by autoconf version 2.13"
347 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352 ac_package=`echo $ac_package| sed 's/-/_/g'`
357 eval "with_${ac_package}='$ac_optarg'" ;;
359 -without-* | --without-*)
360 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
369 # Obsolete; use --with-x.
372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373 | --x-incl | --x-inc | --x-in | --x-i)
374 ac_prev=x_includes ;;
375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377 x_includes="$ac_optarg" ;;
379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381 ac_prev=x_libraries ;;
382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384 x_libraries="$ac_optarg" ;;
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
393 if test "x$nonopt" != xNONE; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408 # File descriptor usage:
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435 | --no-cr | --no-c) ;;
436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
445 # Only set these to C if already set. These must not be set unconditionally
446 # because not all systems understand e.g. LANG=C (notably SCO).
447 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448 # Non-C LC_CTYPE values break the ctype check.
449 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
450 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
451 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
452 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
455 rm -rf conftest* confdefs.h
456 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 # A filename unique to this package, relative to the directory that
460 # configure is in, which we can look for to find out if srcdir is correct.
461 ac_unique_file=eCosStd.cpp
463 # Find the source files, if location was not specified.
464 if test -z "$srcdir"; then
465 ac_srcdir_defaulted=yes
466 # Try the directory containing this script, then its parent.
468 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471 if test ! -r $srcdir/$ac_unique_file; then
475 ac_srcdir_defaulted=no
477 if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486 # Prefer explicitly selected file to automatically selected ones.
487 if test -z "$CONFIG_SITE"; then
488 if test "x$prefix" != xNONE; then
489 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
494 for ac_site_file in $CONFIG_SITE; do
495 if test -r "$ac_site_file"; then
496 echo "loading site script $ac_site_file"
501 if test -r "$cache_file"; then
502 echo "loading cache $cache_file"
505 echo "creating cache $cache_file"
510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511 ac_cpp='$CPP $CPPFLAGS'
512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514 cross_compiling=$ac_cv_prog_cc_cross
518 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527 ac_n= ac_c='\c' ac_t=
533 for ac_dir in ../../../../acsupport $srcdir/../../../../acsupport; do
534 if test -f $ac_dir/install-sh; then
536 ac_install_sh="$ac_aux_dir/install-sh -c"
538 elif test -f $ac_dir/install.sh; then
540 ac_install_sh="$ac_aux_dir/install.sh -c"
544 if test -z "$ac_aux_dir"; then
545 { echo "configure: error: can not find install-sh or install.sh in ../../../../acsupport $srcdir/../../../../acsupport" 1>&2; exit 1; }
547 ac_config_guess=$ac_aux_dir/config.guess
548 ac_config_sub=$ac_aux_dir/config.sub
549 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
553 # Make sure we can run config.sub.
554 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
555 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
558 echo $ac_n "checking host system type""... $ac_c" 1>&6
559 echo "configure:560: checking host system type" >&5
562 case "$host_alias" in
566 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
567 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
569 *) host_alias=$nonopt ;;
573 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
574 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
575 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
576 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
577 echo "$ac_t""$host" 1>&6
580 # Find a good install program. We prefer a C program (faster),
581 # so one script is as good as another. But avoid the broken or
582 # incompatible versions:
583 # SysV /etc/install, /usr/sbin/install
584 # SunOS /usr/etc/install
587 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
590 # ./install, which can be erroneously created by make from ./install.sh.
591 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
592 echo "configure:593: checking for a BSD compatible install" >&5
593 if test -z "$INSTALL"; then
594 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
595 echo $ac_n "(cached) $ac_c" 1>&6
597 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
598 for ac_dir in $PATH; do
599 # Account for people who put trailing slashes in PATH elements.
601 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
603 # OSF1 and SCO ODT 3.0 have their own names for install.
604 # Don't use installbsd from OSF since it installs stuff as root
606 for ac_prog in ginstall scoinst install; do
607 if test -f $ac_dir/$ac_prog; then
608 if test $ac_prog = install &&
609 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
610 # AIX install. It has an incompatible calling convention.
613 ac_cv_path_install="$ac_dir/$ac_prog -c"
624 if test "${ac_cv_path_install+set}" = set; then
625 INSTALL="$ac_cv_path_install"
627 # As a last resort, use the slow shell script. We don't cache a
628 # path for INSTALL within a source directory, because that will
629 # break other packages using the cache if that directory is
630 # removed, or if the path is relative.
631 INSTALL="$ac_install_sh"
634 echo "$ac_t""$INSTALL" 1>&6
636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
637 # It thinks the first close brace ends the variable substitution.
638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
644 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
645 echo "configure:646: checking whether build environment is sane" >&5
648 echo timestamp > conftestfile
649 # Do `set' in a subshell so we don't clobber the current shell's
650 # arguments. Must try -L first in case configure is actually a
651 # symlink; some systems play weird games with the mod time of symlinks
652 # (eg FreeBSD returns the mod time of the symlink's containing
655 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
656 if test "$*" = "X"; then
658 set X `ls -t $srcdir/configure conftestfile`
660 if test "$*" != "X $srcdir/configure conftestfile" \
661 && test "$*" != "X conftestfile $srcdir/configure"; then
663 # If neither matched, then we have a broken ls. This can happen
664 # if, for instance, CONFIG_SHELL is bash and it inherits a
665 # broken ls alias from the environment. This has actually
666 # happened. Such a system could not be considered "sane".
667 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
668 alias in your environment" 1>&2; exit 1; }
671 test "$2" = conftestfile
677 { echo "configure: error: newly created file is older than distributed files!
678 Check your system clock" 1>&2; exit 1; }
681 echo "$ac_t""yes" 1>&6
682 if test "$program_transform_name" = s,x,x,; then
683 program_transform_name=
685 # Double any \ or $. echo might interpret backslashes.
686 cat <<\EOF_SED > conftestsed
687 s,\\,\\\\,g; s,\$,$$,g
689 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
692 test "$program_prefix" != NONE &&
693 program_transform_name="s,^,${program_prefix},; $program_transform_name"
694 # Use a double $ so make ignores it.
695 test "$program_suffix" != NONE &&
696 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
698 # sed with no file args requires a program.
699 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
701 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
702 echo "configure:703: checking whether ${MAKE-make} sets \${MAKE}" >&5
703 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
704 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
705 echo $ac_n "(cached) $ac_c" 1>&6
707 cat > conftestmake <<\EOF
709 @echo 'ac_maketemp="${MAKE}"'
711 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
712 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
713 if test -n "$ac_maketemp"; then
714 eval ac_cv_prog_make_${ac_make}_set=yes
716 eval ac_cv_prog_make_${ac_make}_set=no
720 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
721 echo "$ac_t""yes" 1>&6
724 echo "$ac_t""no" 1>&6
725 SET_MAKE="MAKE=${MAKE-make}"
733 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
734 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
736 cat >> confdefs.h <<EOF
737 #define PACKAGE "$PACKAGE"
740 cat >> confdefs.h <<EOF
741 #define VERSION "$VERSION"
746 missing_dir=`cd $ac_aux_dir && pwd`
747 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
748 echo "configure:749: checking for working aclocal" >&5
749 # Run test in a subshell; some versions of sh will print an error if
750 # an executable is not found, even if stderr is redirected.
751 # Redirect stdin to placate older versions of autoconf. Sigh.
752 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
754 echo "$ac_t""found" 1>&6
756 ACLOCAL="$missing_dir/missing aclocal"
757 echo "$ac_t""missing" 1>&6
760 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
761 echo "configure:762: checking for working autoconf" >&5
762 # Run test in a subshell; some versions of sh will print an error if
763 # an executable is not found, even if stderr is redirected.
764 # Redirect stdin to placate older versions of autoconf. Sigh.
765 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
767 echo "$ac_t""found" 1>&6
769 AUTOCONF="$missing_dir/missing autoconf"
770 echo "$ac_t""missing" 1>&6
773 echo $ac_n "checking for working automake""... $ac_c" 1>&6
774 echo "configure:775: checking for working automake" >&5
775 # Run test in a subshell; some versions of sh will print an error if
776 # an executable is not found, even if stderr is redirected.
777 # Redirect stdin to placate older versions of autoconf. Sigh.
778 if (automake --version) < /dev/null > /dev/null 2>&1; then
780 echo "$ac_t""found" 1>&6
782 AUTOMAKE="$missing_dir/missing automake"
783 echo "$ac_t""missing" 1>&6
786 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
787 echo "configure:788: checking for working autoheader" >&5
788 # Run test in a subshell; some versions of sh will print an error if
789 # an executable is not found, even if stderr is redirected.
790 # Redirect stdin to placate older versions of autoconf. Sigh.
791 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
792 AUTOHEADER=autoheader
793 echo "$ac_t""found" 1>&6
795 AUTOHEADER="$missing_dir/missing autoheader"
796 echo "$ac_t""missing" 1>&6
799 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
800 echo "configure:801: checking for working makeinfo" >&5
801 # Run test in a subshell; some versions of sh will print an error if
802 # an executable is not found, even if stderr is redirected.
803 # Redirect stdin to placate older versions of autoconf. Sigh.
804 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
806 echo "$ac_t""found" 1>&6
808 MAKEINFO="$missing_dir/missing makeinfo"
809 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
814 echo "configure:815: checking whether to enable maintainer-specific portions of Makefiles" >&5
815 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
816 if test "${enable_maintainer_mode+set}" = set; then
817 enableval="$enable_maintainer_mode"
818 USE_MAINTAINER_MODE=$enableval
820 USE_MAINTAINER_MODE=no
823 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
826 if test $USE_MAINTAINER_MODE = yes; then
827 MAINTAINER_MODE_TRUE=
828 MAINTAINER_MODE_FALSE='#'
830 MAINTAINER_MODE_TRUE='#'
831 MAINTAINER_MODE_FALSE=
833 MAINT=$MAINTAINER_MODE_TRUE
837 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
838 echo "configure:839: checking whether ${MAKE-make} sets \${MAKE}" >&5
839 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
840 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 cat > conftestmake <<\EOF
845 @echo 'ac_maketemp="${MAKE}"'
847 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
848 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
849 if test -n "$ac_maketemp"; then
850 eval ac_cv_prog_make_${ac_make}_set=yes
852 eval ac_cv_prog_make_${ac_make}_set=no
856 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
857 echo "$ac_t""yes" 1>&6
860 echo "$ac_t""no" 1>&6
861 SET_MAKE="MAKE=${MAKE-make}"
864 # Extract the first word of "gcc", so it can be a program name with args.
865 set dummy gcc; ac_word=$2
866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
867 echo "configure:868: checking for $ac_word" >&5
868 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 if test -n "$CC"; then
872 ac_cv_prog_CC="$CC" # Let the user override the test.
874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
876 for ac_dir in $ac_dummy; do
877 test -z "$ac_dir" && ac_dir=.
878 if test -f $ac_dir/$ac_word; then
887 if test -n "$CC"; then
888 echo "$ac_t""$CC" 1>&6
890 echo "$ac_t""no" 1>&6
893 if test -z "$CC"; then
894 # Extract the first word of "cc", so it can be a program name with args.
895 set dummy cc; ac_word=$2
896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
897 echo "configure:898: checking for $ac_word" >&5
898 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
901 if test -n "$CC"; then
902 ac_cv_prog_CC="$CC" # Let the user override the test.
904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
907 for ac_dir in $ac_dummy; do
908 test -z "$ac_dir" && ac_dir=.
909 if test -f $ac_dir/$ac_word; then
910 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
919 if test $ac_prog_rejected = yes; then
920 # We found a bogon in the path, so make sure we never use it.
921 set dummy $ac_cv_prog_CC
923 if test $# -gt 0; then
924 # We chose a different compiler from the bogus one.
925 # However, it has the same basename, so the bogon will be chosen
926 # first if we set CC to just the basename; use the full file name.
928 set dummy "$ac_dir/$ac_word" "$@"
936 if test -n "$CC"; then
937 echo "$ac_t""$CC" 1>&6
939 echo "$ac_t""no" 1>&6
942 if test -z "$CC"; then
945 # Extract the first word of "cl", so it can be a program name with args.
946 set dummy cl; ac_word=$2
947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
948 echo "configure:949: checking for $ac_word" >&5
949 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
952 if test -n "$CC"; then
953 ac_cv_prog_CC="$CC" # Let the user override the test.
955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
957 for ac_dir in $ac_dummy; do
958 test -z "$ac_dir" && ac_dir=.
959 if test -f $ac_dir/$ac_word; then
968 if test -n "$CC"; then
969 echo "$ac_t""$CC" 1>&6
971 echo "$ac_t""no" 1>&6
976 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
979 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
980 echo "configure:981: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
984 ac_cpp='$CPP $CPPFLAGS'
985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
987 cross_compiling=$ac_cv_prog_cc_cross
989 cat > conftest.$ac_ext << EOF
991 #line 992 "configure"
992 #include "confdefs.h"
996 if { (eval echo configure:997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
997 ac_cv_prog_cc_works=yes
998 # If we can't run a trivial program, we are probably using a cross compiler.
999 if (./conftest; exit) 2>/dev/null; then
1000 ac_cv_prog_cc_cross=no
1002 ac_cv_prog_cc_cross=yes
1005 echo "configure: failed program was:" >&5
1006 cat conftest.$ac_ext >&5
1007 ac_cv_prog_cc_works=no
1011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1012 ac_cpp='$CPP $CPPFLAGS'
1013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1015 cross_compiling=$ac_cv_prog_cc_cross
1017 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1018 if test $ac_cv_prog_cc_works = no; then
1019 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1021 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1022 echo "configure:1023: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1023 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1024 cross_compiling=$ac_cv_prog_cc_cross
1026 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether we are using GNU C" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 cat > conftest.c <<EOF
1036 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1043 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1045 if test $ac_cv_prog_gcc = yes; then
1051 ac_test_CFLAGS="${CFLAGS+set}"
1052 ac_save_CFLAGS="$CFLAGS"
1054 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1055 echo "configure:1056: checking whether ${CC-cc} accepts -g" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 echo 'void f(){}' > conftest.c
1060 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1069 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1070 if test "$ac_test_CFLAGS" = set; then
1071 CFLAGS="$ac_save_CFLAGS"
1072 elif test $ac_cv_prog_cc_g = yes; then
1073 if test "$GCC" = yes; then
1079 if test "$GCC" = yes; then
1086 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1088 # Extract the first word of "$ac_prog", so it can be a program name with args.
1089 set dummy $ac_prog; ac_word=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 if test -n "$CXX"; then
1096 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1100 for ac_dir in $ac_dummy; do
1101 test -z "$ac_dir" && ac_dir=.
1102 if test -f $ac_dir/$ac_word; then
1103 ac_cv_prog_CXX="$ac_prog"
1110 CXX="$ac_cv_prog_CXX"
1111 if test -n "$CXX"; then
1112 echo "$ac_t""$CXX" 1>&6
1114 echo "$ac_t""no" 1>&6
1117 test -n "$CXX" && break
1119 test -n "$CXX" || CXX="gcc"
1122 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1123 echo "configure:1124: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1127 ac_cpp='$CXXCPP $CPPFLAGS'
1128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1130 cross_compiling=$ac_cv_prog_cxx_cross
1132 cat > conftest.$ac_ext << EOF
1134 #line 1135 "configure"
1135 #include "confdefs.h"
1137 int main(){return(0);}
1139 if { (eval echo configure:1140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1140 ac_cv_prog_cxx_works=yes
1141 # If we can't run a trivial program, we are probably using a cross compiler.
1142 if (./conftest; exit) 2>/dev/null; then
1143 ac_cv_prog_cxx_cross=no
1145 ac_cv_prog_cxx_cross=yes
1148 echo "configure: failed program was:" >&5
1149 cat conftest.$ac_ext >&5
1150 ac_cv_prog_cxx_works=no
1154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1155 ac_cpp='$CPP $CPPFLAGS'
1156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1158 cross_compiling=$ac_cv_prog_cc_cross
1160 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1161 if test $ac_cv_prog_cxx_works = no; then
1162 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1164 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1165 echo "configure:1166: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1166 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1167 cross_compiling=$ac_cv_prog_cxx_cross
1169 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1170 echo "configure:1171: checking whether we are using GNU C++" >&5
1171 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 cat > conftest.C <<EOF
1179 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1186 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1188 if test $ac_cv_prog_gxx = yes; then
1194 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1195 ac_save_CXXFLAGS="$CXXFLAGS"
1197 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1198 echo "configure:1199: checking whether ${CXX-g++} accepts -g" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 echo 'void f(){}' > conftest.cc
1203 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1204 ac_cv_prog_cxx_g=yes
1212 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1213 if test "$ac_test_CXXFLAGS" = set; then
1214 CXXFLAGS="$ac_save_CXXFLAGS"
1215 elif test $ac_cv_prog_cxx_g = yes; then
1216 if test "$GXX" = yes; then
1222 if test "$GXX" = yes; then
1229 for ac_declaration in \
1231 '#include <stdlib.h>' \
1232 'extern "C" void std::exit (int) throw (); using std::exit;' \
1233 'extern "C" void std::exit (int); using std::exit;' \
1234 'extern "C" void exit (int) throw ();' \
1235 'extern "C" void exit (int);' \
1238 cat > conftest.$ac_ext <<EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1247 if { (eval echo configure:1248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1250 echo "configure: failed program was:" >&5
1251 cat conftest.$ac_ext >&5
1256 cat > conftest.$ac_ext <<EOF
1257 #line 1258 "configure"
1258 #include "confdefs.h"
1264 if { (eval echo configure:1265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1268 echo "configure: failed program was:" >&5
1269 cat conftest.$ac_ext >&5
1273 if test -n "$ac_declaration"; then
1274 echo '#ifdef __cplusplus' >>confdefs.h
1275 echo $ac_declaration >>confdefs.h
1276 echo '#endif' >>confdefs.h
1280 # Extract the first word of "ranlib", so it can be a program name with args.
1281 set dummy ranlib; ac_word=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 if test -n "$RANLIB"; then
1288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1292 for ac_dir in $ac_dummy; do
1293 test -z "$ac_dir" && ac_dir=.
1294 if test -f $ac_dir/$ac_word; then
1295 ac_cv_prog_RANLIB="ranlib"
1300 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1303 RANLIB="$ac_cv_prog_RANLIB"
1304 if test -n "$RANLIB"; then
1305 echo "$ac_t""$RANLIB" 1>&6
1307 echo "$ac_t""no" 1>&6
1310 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1311 echo "configure:1312: checking for object suffix" >&5
1312 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1316 echo 'int i = 1;' > conftest.$ac_ext
1317 if { (eval echo configure:1318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1318 for ac_file in conftest.*; do
1321 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1325 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1330 echo "$ac_t""$ac_cv_objext" 1>&6
1331 OBJEXT=$ac_cv_objext
1332 ac_objext=$ac_cv_objext
1334 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1335 echo "configure:1336: checking for Cygwin environment" >&5
1336 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1346 #define __CYGWIN__ __CYGWIN32__
1351 if { (eval echo configure:1352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1355 echo "configure: failed program was:" >&5
1356 cat conftest.$ac_ext >&5
1364 echo "$ac_t""$ac_cv_cygwin" 1>&6
1366 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1367 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1368 echo "configure:1369: checking for mingw32 environment" >&5
1369 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 cat > conftest.$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1380 if { (eval echo configure:1381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1384 echo "configure: failed program was:" >&5
1385 cat conftest.$ac_ext >&5
1393 echo "$ac_t""$ac_cv_mingw32" 1>&6
1395 test "$ac_cv_mingw32" = yes && MINGW32=yes
1398 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1399 echo "configure:1400: checking for executable suffix" >&5
1400 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1407 echo 'int main () { return 0; }' > conftest.$ac_ext
1409 if { (eval echo configure:1410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1410 for file in conftest.*; do
1412 *.c | *.o | *.obj) ;;
1413 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1417 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1420 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1425 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1426 echo "$ac_t""${ac_cv_exeext}" 1>&6
1446 echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6
1447 echo "configure:1448: checking "for Visual C++"" >&5
1449 if test "${CC}" = "cl" ; then
1452 MSVC_SRCDIR=${srcdir}
1456 if test "${MSVC}" = "yes" ; then
1457 MSVC_SRCDIR=`cygpath -w ${MSVC_SRCDIR} | tr \\\\\\\\ /`
1461 ecos_INCLUDES="${ecos_INCLUDES} \"-I${MSVC_SRCDIR}\""
1463 ecos_LIBS="advapi32.lib"
1467 if test "${MSVC}" = "yes"; then
1474 if test "${MSVC}" = "yes" ; then
1475 echo "$ac_t""unfortunately yes" 1>&6
1477 echo "$ac_t""no" 1>&6
1486 echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6
1487 echo "configure:1488: checking "the default compiler flags"" >&5
1489 ecosflags_enable_debug="no"
1490 # Check whether --enable-debug or --disable-debug was given.
1491 if test "${enable_debug+set}" = set; then
1492 enableval="$enable_debug"
1493 case "${enableval}" in
1494 yes) ecosflags_enable_debug="yes" ;;
1495 *) ecosflags_enable_debug="no" ;;
1500 ecosflags_enable_ansi="no"
1501 if test "${MSVC}" = "yes" ; then
1502 # Check whether --enable-ansi or --disable-ansi was given.
1503 if test "${enable_ansi+set}" = set; then
1504 enableval="$enable_ansi"
1505 case "${enableval}" in
1506 yes) ecosflags_enable_ansi="yes" ;;
1507 *) ecosflags_enable_ansi="no" ;;
1513 if test "${GCC}" = "yes" ; then
1514 ecos_CFLAGS="${ecos_CFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
1515 ecos_CXXFLAGS="${ecos_CXXFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual"
1516 elif test "${MSVC}" = "yes" ; then
1517 ecos_CFLAGS="${ecos_CFLAGS} -nologo -W3"
1518 ecos_CXXFLAGS="${ecos_CXXFLAGS} -nologo -W3 -GR -GX"
1520 { echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; }
1523 if test "${ecosflags_enable_debug}" = "yes" ; then
1524 if test "${GCC}" = "yes" ; then
1525 ecos_CFLAGS="${ecos_CFLAGS} -g -O0"
1526 ecos_CXXFLAGS="${ecos_CXXFLAGS} -g -O0"
1527 elif test "${MSVC}" = "yes" ; then
1528 ecos_CFLAGS="${ecos_CFLAGS} -MDd -Zi"
1529 ecos_CXXFLAGS="${ecos_CXXFLAGS} -MDd -Zi"
1532 if test "${GCC}" = "yes" ; then
1533 ecos_CFLAGS="${ecos_CFLAGS} -O0"
1534 ecos_CXXFLAGS="${ecos_CXXFLAGS} -O0"
1535 elif test "${MSVC}" = "yes" ; then
1536 ecos_CFLAGS="${ecos_CFLAGS} -MD -O2"
1537 ecos_CXXFLAGS="${ecos_CXXFLAGS} -MD -O2"
1541 CFLAGS="${ac_save_CFLAGS}"
1542 CXXFLAGS="${ac_save_CXXFLAGS}"
1544 echo "$ac_t""done" 1>&6
1548 cat > confcache <<\EOF
1549 # This file is a shell script that caches the results of configure
1550 # tests run on this system so they can be shared between configure
1551 # scripts and configure runs. It is not useful on other systems.
1552 # If it contains results you don't want to keep, you may remove or edit it.
1554 # By default, configure uses ./config.cache as the cache file,
1555 # creating it if it does not exist already. You can give configure
1556 # the --cache-file=FILE option to use a different cache file; that is
1557 # what configure does when it calls configure scripts in
1558 # subdirectories, so they share the cache.
1559 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1560 # config.status only pays attention to the cache file if you give it the
1561 # --recheck option to rerun configure.
1564 # The following way of writing the cache mishandles newlines in values,
1565 # but we know of no workaround that is simple, portable, and efficient.
1566 # So, don't put newlines in cache variables' values.
1567 # Ultrix sh set writes to stderr and can't be redirected directly,
1568 # and sets the high bit in the cache file unless we assign to the vars.
1570 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1572 # `set' does not quote correctly, so add quotes (double-quote substitution
1573 # turns \\\\ into \\, and sed turns \\ into \).
1575 -e "s/'/'\\\\''/g" \
1576 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1579 # `set' quotes correctly as required by POSIX, so do not add quotes.
1580 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1583 if cmp -s $cache_file confcache; then
1586 if test -w $cache_file; then
1587 echo "updating cache $cache_file"
1588 cat confcache > $cache_file
1590 echo "not updating unwritable cache $cache_file"
1595 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1597 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1598 # Let make expand exec_prefix.
1599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1601 # Any assignment to VPATH causes Sun make to only execute
1602 # the first set of double-colon rules, so remove it if not needed.
1603 # If there is a colon in the path, we need to keep it.
1604 if test "x$srcdir" = x.; then
1605 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1608 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1610 # Transform confdefs.h into DEFS.
1611 # Protect against shell expansion while executing Makefile rules.
1612 # Protect against Makefile macro expansion.
1613 cat > conftest.defs <<\EOF
1614 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1615 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1620 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1624 # Without the "./", some shells look in PATH for config.status.
1625 : ${CONFIG_STATUS=./config.status}
1627 echo creating $CONFIG_STATUS
1628 rm -f $CONFIG_STATUS
1629 cat > $CONFIG_STATUS <<EOF
1631 # Generated automatically by configure.
1632 # Run this file to recreate the current configuration.
1633 # This directory was configured as follows,
1634 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1636 # $0 $ac_configure_args
1638 # Compiler output produced by configure, useful for debugging
1639 # configure, is in ./config.log if it exists.
1641 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1644 case "\$ac_option" in
1645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1646 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1647 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1648 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1649 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1651 -help | --help | --hel | --he | --h)
1652 echo "\$ac_cs_usage"; exit 0 ;;
1653 *) echo "\$ac_cs_usage"; exit 1 ;;
1657 ac_given_srcdir=$srcdir
1658 ac_given_INSTALL="$INSTALL"
1660 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1662 cat >> $CONFIG_STATUS <<EOF
1664 # Protect against being on the right side of a sed subst in config.status.
1665 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1666 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1670 s%@CFLAGS@%$CFLAGS%g
1671 s%@CPPFLAGS@%$CPPFLAGS%g
1672 s%@CXXFLAGS@%$CXXFLAGS%g
1673 s%@FFLAGS@%$FFLAGS%g
1675 s%@LDFLAGS@%$LDFLAGS%g
1677 s%@exec_prefix@%$exec_prefix%g
1678 s%@prefix@%$prefix%g
1679 s%@program_transform_name@%$program_transform_name%g
1680 s%@bindir@%$bindir%g
1681 s%@sbindir@%$sbindir%g
1682 s%@libexecdir@%$libexecdir%g
1683 s%@datadir@%$datadir%g
1684 s%@sysconfdir@%$sysconfdir%g
1685 s%@sharedstatedir@%$sharedstatedir%g
1686 s%@localstatedir@%$localstatedir%g
1687 s%@libdir@%$libdir%g
1688 s%@includedir@%$includedir%g
1689 s%@oldincludedir@%$oldincludedir%g
1690 s%@infodir@%$infodir%g
1691 s%@mandir@%$mandir%g
1693 s%@host_alias@%$host_alias%g
1694 s%@host_cpu@%$host_cpu%g
1695 s%@host_vendor@%$host_vendor%g
1696 s%@host_os@%$host_os%g
1697 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1698 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1699 s%@INSTALL_DATA@%$INSTALL_DATA%g
1700 s%@PACKAGE@%$PACKAGE%g
1701 s%@VERSION@%$VERSION%g
1702 s%@ACLOCAL@%$ACLOCAL%g
1703 s%@AUTOCONF@%$AUTOCONF%g
1704 s%@AUTOMAKE@%$AUTOMAKE%g
1705 s%@AUTOHEADER@%$AUTOHEADER%g
1706 s%@MAKEINFO@%$MAKEINFO%g
1707 s%@SET_MAKE@%$SET_MAKE%g
1708 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1709 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1713 s%@RANLIB@%$RANLIB%g
1714 s%@OBJEXT@%$OBJEXT%g
1715 s%@EXEEXT@%$EXEEXT%g
1716 s%@ecos_CFLAGS@%$ecos_CFLAGS%g
1717 s%@ecos_CXXFLAGS@%$ecos_CXXFLAGS%g
1718 s%@ecos_LDADD@%$ecos_LDADD%g
1719 s%@ecos_INCLUDES@%$ecos_INCLUDES%g
1720 s%@ecos_LIBS@%$ecos_LIBS%g
1721 s%@MSVC_SRCDIR@%$MSVC_SRCDIR%g
1722 s%@MSVC_TRUE@%$MSVC_TRUE%g
1723 s%@MSVC_FALSE@%$MSVC_FALSE%g
1728 cat >> $CONFIG_STATUS <<\EOF
1730 # Split the substitutions into bite-sized pieces for seds with
1731 # small command number limits, like on Digital OSF/1 and HP-UX.
1732 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1733 ac_file=1 # Number of current file.
1734 ac_beg=1 # First line for current file.
1735 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1738 while $ac_more_lines; do
1739 if test $ac_beg -gt 1; then
1740 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1742 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1744 if test ! -s conftest.s$ac_file; then
1746 rm -f conftest.s$ac_file
1748 if test -z "$ac_sed_cmds"; then
1749 ac_sed_cmds="sed -f conftest.s$ac_file"
1751 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1753 ac_file=`expr $ac_file + 1`
1755 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1758 if test -z "$ac_sed_cmds"; then
1763 cat >> $CONFIG_STATUS <<EOF
1765 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1767 cat >> $CONFIG_STATUS <<\EOF
1768 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1771 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1772 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1773 *) ac_file_in="${ac_file}.in" ;;
1776 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1778 # Remove last slash and all that follows it. Not all systems have dirname.
1779 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1780 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1781 # The file is in a subdirectory.
1782 test ! -d "$ac_dir" && mkdir "$ac_dir"
1783 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1784 # A "../" for each directory in $ac_dir_suffix.
1785 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1787 ac_dir_suffix= ac_dots=
1790 case "$ac_given_srcdir" in
1792 if test -z "$ac_dots"; then top_srcdir=.
1793 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1794 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1796 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1797 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1800 case "$ac_given_INSTALL" in
1801 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1802 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1805 echo creating "$ac_file"
1807 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1809 *Makefile*) ac_comsub="1i\\
1810 # $configure_input" ;;
1814 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1816 s%@configure_input@%$configure_input%g
1817 s%@srcdir@%$srcdir%g
1818 s%@top_srcdir@%$top_srcdir%g
1819 s%@INSTALL@%$INSTALL%g
1820 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1825 cat >> $CONFIG_STATUS <<EOF
1828 cat >> $CONFIG_STATUS <<\EOF
1832 chmod +x $CONFIG_STATUS
1833 rm -fr confdefs* $ac_clean_files
1834 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1