2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # 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.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file=".version"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name=s,x,x,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
267 -help | --help | --hel | --he | -h)
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers | -V)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CXX_set=${CXX+set}
577 ac_env_CXX_value=$CXX
578 ac_cv_env_CXX_set=${CXX+set}
579 ac_cv_env_CXX_value=$CXX
580 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
581 ac_env_CXXFLAGS_value=$CXXFLAGS
582 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
583 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CXXCPP_set=${CXXCPP+set}
593 ac_env_CXXCPP_value=$CXXCPP
594 ac_cv_env_CXXCPP_set=${CXXCPP+set}
595 ac_cv_env_CXXCPP_value=$CXXCPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
659 if test -n "$ac_init_help"; then
663 Some influential environment variables:
664 CXX C++ compiler command
665 CXXFLAGS C++ compiler flags
666 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
667 nonstandard directory <lib dir>
668 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
669 headers in a nonstandard directory <include dir>
670 CXXCPP C++ preprocessor
672 Use these variables to override the choices made by `configure' or to help
673 it to find libraries and programs with nonstandard names/locations.
678 if test "$ac_init_help" = "recursive"; then
679 # If there are subdirs, report their specific --help.
681 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
683 # A "../" for each directory in /$ac_subdir.
684 ac_dots=`echo $ac_subdir |
685 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
688 .) # No --srcdir option. We are building in place.
689 ac_sub_srcdir=$srcdir ;;
690 [\\/]* | ?:[\\/]* ) # Absolute path.
691 ac_sub_srcdir=$srcdir/$ac_subdir ;;
693 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
696 # Check for guested configure; otherwise get Cygnus style configure.
697 if test -f $ac_sub_srcdir/configure.gnu; then
699 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
700 elif test -f $ac_sub_srcdir/configure; then
702 $SHELL $ac_sub_srcdir/configure --help=recursive
703 elif test -f $ac_sub_srcdir/configure.ac ||
704 test -f $ac_sub_srcdir/configure.in; then
708 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
714 test -n "$ac_init_help" && exit 0
715 if $ac_init_version; then
718 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
719 Free Software Foundation, Inc.
720 This configure script is free software; the Free Software Foundation
721 gives unlimited permission to copy, distribute and modify it.
727 This file contains any messages produced by compilers while
728 running configure, to aid debugging if configure makes a mistake.
730 It was created by $as_me, which was
731 generated by GNU Autoconf 2.52. Invocation command line was
742 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
743 uname -m = `(uname -m) 2>/dev/null || echo unknown`
744 uname -r = `(uname -r) 2>/dev/null || echo unknown`
745 uname -s = `(uname -s) 2>/dev/null || echo unknown`
746 uname -v = `(uname -v) 2>/dev/null || echo unknown`
748 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
749 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
751 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
752 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
753 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
754 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
755 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
756 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
757 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
771 # Keep a trace of the command line.
772 # Strip out --no-create and --no-recursion so they do not pile up.
773 # Also quote any args containing shell meta-characters.
779 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
780 | --no-cr | --no-c) ;;
781 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
782 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
783 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
784 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
785 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
787 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
790 # Get rid of the leading space.
793 # When interrupted or exit'd, cleanup temporary files, and complete
794 # config.log. We remove comments because anyway the quotes in there
795 # would cause problems or look ugly.
797 # Save into config.log some information that might help in debugging.
799 echo "## ----------------- ##" >&5
800 echo "## Cache variables. ##" >&5
801 echo "## ----------------- ##" >&5
803 # The following way of writing the cache mishandles newlines in values,
806 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
809 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
810 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
814 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
818 sed "/^$/d" confdefs.h >conftest.log
819 if test -s conftest.log; then
821 echo "## ------------ ##" >&5
822 echo "## confdefs.h. ##" >&5
823 echo "## ------------ ##" >&5
828 test "$ac_signal" != 0 &&
829 echo "$as_me: caught signal $ac_signal" >&5
830 echo "$as_me: exit $exit_status" >&5
831 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
834 for ac_signal in 1 2 13 15; do
835 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
839 # confdefs.h avoids OS command line length limits that DEFS can exceed.
840 rm -rf conftest* confdefs.h
841 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
844 # Let the site file select an alternate cache file if it wants to.
845 # Prefer explicitly selected file to automatically selected ones.
846 if test -z "$CONFIG_SITE"; then
847 if test "x$prefix" != xNONE; then
848 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
850 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
853 for ac_site_file in $CONFIG_SITE; do
854 if test -r "$ac_site_file"; then
855 { echo "$as_me:855: loading site script $ac_site_file" >&5
856 echo "$as_me: loading site script $ac_site_file" >&6;}
857 cat "$ac_site_file" >&5
862 if test -r "$cache_file"; then
863 # Some versions of bash will fail to source /dev/null (special
864 # files actually), so we avoid doing that.
865 if test -f "$cache_file"; then
866 { echo "$as_me:866: loading cache $cache_file" >&5
867 echo "$as_me: loading cache $cache_file" >&6;}
869 [\\/]* | ?:[\\/]* ) . $cache_file;;
874 { echo "$as_me:874: creating cache $cache_file" >&5
875 echo "$as_me: creating cache $cache_file" >&6;}
879 # Check that the precious variables saved in the cache have kept the same
881 ac_cache_corrupted=false
882 for ac_var in `(set) 2>&1 |
883 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
884 eval ac_old_set=\$ac_cv_env_${ac_var}_set
885 eval ac_new_set=\$ac_env_${ac_var}_set
886 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
887 eval ac_new_val="\$ac_env_${ac_var}_value"
888 case $ac_old_set,$ac_new_set in
890 { echo "$as_me:890: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
891 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
892 ac_cache_corrupted=: ;;
894 { echo "$as_me:894: error: \`$ac_var' was not set in the previous run" >&5
895 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
896 ac_cache_corrupted=: ;;
899 if test "x$ac_old_val" != "x$ac_new_val"; then
900 { echo "$as_me:900: error: \`$ac_var' has changed since the previous run:" >&5
901 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
902 { echo "$as_me:902: former value: $ac_old_val" >&5
903 echo "$as_me: former value: $ac_old_val" >&2;}
904 { echo "$as_me:904: current value: $ac_new_val" >&5
905 echo "$as_me: current value: $ac_new_val" >&2;}
909 # Pass precious variables to config.status. It doesn't matter if
910 # we pass some twice (in addition to the command line arguments).
911 if test "$ac_new_set" = set; then
913 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
914 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
915 ac_configure_args="$ac_configure_args '$ac_arg'"
917 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
922 if $ac_cache_corrupted; then
923 { echo "$as_me:923: error: changes in the environment can compromise the build" >&5
924 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
925 { { echo "$as_me:925: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
926 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
927 { (exit 1); exit 1; }; }
931 ac_cpp='$CPP $CPPFLAGS'
932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
936 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
937 *c*,-n*) ECHO_N= ECHO_C='
939 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
940 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
942 echo "#! $SHELL" >conftest.sh
943 echo "exit 0" >>conftest.sh
945 if { (echo "$as_me:945: PATH=\".;.\"; conftest.sh") >&5
946 (PATH=".;."; conftest.sh) 2>&5
948 echo "$as_me:948: \$? = $ac_status" >&5
949 (exit $ac_status); }; then
950 ac_path_separator=';'
954 PATH_SEPARATOR="$ac_path_separator"
957 ac_config_headers="$ac_config_headers ddconfig.h:ddconfig_in.h"
959 for ac_prog in mawk gawk nawk awk
961 # Extract the first word of "$ac_prog", so it can be a program name with args.
962 set dummy $ac_prog; ac_word=$2
963 echo "$as_me:963: checking for $ac_word" >&5
964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
965 if test "${ac_cv_prog_AWK+set}" = set; then
966 echo $ECHO_N "(cached) $ECHO_C" >&6
968 if test -n "$AWK"; then
969 ac_cv_prog_AWK="$AWK" # Let the user override the test.
971 ac_save_IFS=$IFS; IFS=$ac_path_separator
973 for ac_dir in $ac_dummy; do
975 test -z "$ac_dir" && ac_dir=.
976 $as_executable_p "$ac_dir/$ac_word" || continue
977 ac_cv_prog_AWK="$ac_prog"
978 echo "$as_me:978: found $ac_dir/$ac_word" >&5
985 if test -n "$AWK"; then
986 echo "$as_me:986: result: $AWK" >&5
987 echo "${ECHO_T}$AWK" >&6
989 echo "$as_me:989: result: no" >&5
990 echo "${ECHO_T}no" >&6
993 test -n "$AWK" && break
996 echo "$as_me:996: checking version of the package" >&5
997 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
998 if test -f .version; then
999 VERSION=`cat .version`
1000 echo "$as_me:1000: result: $VERSION" >&5
1001 echo "${ECHO_T}$VERSION" >&6
1004 echo "$as_me:1004: result: unknown using 0.0.0" >&5
1005 echo "${ECHO_T}unknown using 0.0.0" >&6
1007 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1008 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1009 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1011 cat >>confdefs.h <<EOF
1012 #define VERSIONSTR "${VERSION}"
1015 cat >>confdefs.h <<EOF
1016 #define VERSIONHI $VERSIONHI
1019 cat >>confdefs.h <<EOF
1020 #define VERSIONLO $VERSIONLO
1023 cat >>confdefs.h <<EOF
1024 #define VERSIONP $VERSIONP
1028 #-------------------
1030 ac_cpp='$CXXCPP $CPPFLAGS'
1031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1034 if test -n "$ac_tool_prefix"; then
1035 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1039 echo "$as_me:1039: checking for $ac_word" >&5
1040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1041 if test "${ac_cv_prog_CXX+set}" = set; then
1042 echo $ECHO_N "(cached) $ECHO_C" >&6
1044 if test -n "$CXX"; then
1045 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1047 ac_save_IFS=$IFS; IFS=$ac_path_separator
1049 for ac_dir in $ac_dummy; do
1051 test -z "$ac_dir" && ac_dir=.
1052 $as_executable_p "$ac_dir/$ac_word" || continue
1053 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1054 echo "$as_me:1054: found $ac_dir/$ac_word" >&5
1061 if test -n "$CXX"; then
1062 echo "$as_me:1062: result: $CXX" >&5
1063 echo "${ECHO_T}$CXX" >&6
1065 echo "$as_me:1065: result: no" >&5
1066 echo "${ECHO_T}no" >&6
1069 test -n "$CXX" && break
1072 if test -z "$CXX"; then
1074 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1076 # Extract the first word of "$ac_prog", so it can be a program name with args.
1077 set dummy $ac_prog; ac_word=$2
1078 echo "$as_me:1078: checking for $ac_word" >&5
1079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1080 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1081 echo $ECHO_N "(cached) $ECHO_C" >&6
1083 if test -n "$ac_ct_CXX"; then
1084 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1086 ac_save_IFS=$IFS; IFS=$ac_path_separator
1088 for ac_dir in $ac_dummy; do
1090 test -z "$ac_dir" && ac_dir=.
1091 $as_executable_p "$ac_dir/$ac_word" || continue
1092 ac_cv_prog_ac_ct_CXX="$ac_prog"
1093 echo "$as_me:1093: found $ac_dir/$ac_word" >&5
1099 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1100 if test -n "$ac_ct_CXX"; then
1101 echo "$as_me:1101: result: $ac_ct_CXX" >&5
1102 echo "${ECHO_T}$ac_ct_CXX" >&6
1104 echo "$as_me:1104: result: no" >&5
1105 echo "${ECHO_T}no" >&6
1108 test -n "$ac_ct_CXX" && break
1110 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1115 # Provide some information about the compiler.
1116 echo "$as_me:1116:" \
1117 "checking for C++ compiler version" >&5
1118 ac_compiler=`set X $ac_compile; echo $2`
1119 { (eval echo "$as_me:1119: \"$ac_compiler --version </dev/null >&5\"") >&5
1120 (eval $ac_compiler --version </dev/null >&5) 2>&5
1122 echo "$as_me:1122: \$? = $ac_status" >&5
1123 (exit $ac_status); }
1124 { (eval echo "$as_me:1124: \"$ac_compiler -v </dev/null >&5\"") >&5
1125 (eval $ac_compiler -v </dev/null >&5) 2>&5
1127 echo "$as_me:1127: \$? = $ac_status" >&5
1128 (exit $ac_status); }
1129 { (eval echo "$as_me:1129: \"$ac_compiler -V </dev/null >&5\"") >&5
1130 (eval $ac_compiler -V </dev/null >&5) 2>&5
1132 echo "$as_me:1132: \$? = $ac_status" >&5
1133 (exit $ac_status); }
1135 cat >conftest.$ac_ext <<_ACEOF
1136 #line 1136 "configure"
1137 #include "confdefs.h"
1147 ac_clean_files_save=$ac_clean_files
1148 ac_clean_files="$ac_clean_files a.out a.exe"
1149 # Try to create an executable without -o first, disregard a.out.
1150 # It will help us diagnose broken compilers, and finding out an intuition
1152 echo "$as_me:1152: checking for C++ compiler default output" >&5
1153 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1154 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1155 if { (eval echo "$as_me:1155: \"$ac_link_default\"") >&5
1156 (eval $ac_link_default) 2>&5
1158 echo "$as_me:1158: \$? = $ac_status" >&5
1159 (exit $ac_status); }; then
1160 # Find the output, starting from the most likely. This scheme is
1161 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1163 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1164 ls a.out conftest 2>/dev/null;
1165 ls a.* conftest.* 2>/dev/null`; do
1167 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1168 a.out ) # We found the default executable, but exeext='' is most
1171 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1172 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1179 echo "$as_me: failed program was:" >&5
1180 cat conftest.$ac_ext >&5
1181 { { echo "$as_me:1181: error: C++ compiler cannot create executables" >&5
1182 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1183 { (exit 77); exit 77; }; }
1186 ac_exeext=$ac_cv_exeext
1187 echo "$as_me:1187: result: $ac_file" >&5
1188 echo "${ECHO_T}$ac_file" >&6
1190 # Check the compiler produces executables we can run. If not, either
1191 # the compiler is broken, or we cross compile.
1192 echo "$as_me:1192: checking whether the C++ compiler works" >&5
1193 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1194 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1195 # If not cross compiling, check that we can run a simple program.
1196 if test "$cross_compiling" != yes; then
1197 if { ac_try='./$ac_file'
1198 { (eval echo "$as_me:1198: \"$ac_try\"") >&5
1201 echo "$as_me:1201: \$? = $ac_status" >&5
1202 (exit $ac_status); }; }; then
1205 if test "$cross_compiling" = maybe; then
1208 { { echo "$as_me:1208: error: cannot run C++ compiled programs.
1209 If you meant to cross compile, use \`--host'." >&5
1210 echo "$as_me: error: cannot run C++ compiled programs.
1211 If you meant to cross compile, use \`--host'." >&2;}
1212 { (exit 1); exit 1; }; }
1216 echo "$as_me:1216: result: yes" >&5
1217 echo "${ECHO_T}yes" >&6
1219 rm -f a.out a.exe conftest$ac_cv_exeext
1220 ac_clean_files=$ac_clean_files_save
1221 # Check the compiler produces executables we can run. If not, either
1222 # the compiler is broken, or we cross compile.
1223 echo "$as_me:1223: checking whether we are cross compiling" >&5
1224 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1225 echo "$as_me:1225: result: $cross_compiling" >&5
1226 echo "${ECHO_T}$cross_compiling" >&6
1228 echo "$as_me:1228: checking for executable suffix" >&5
1229 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1230 if { (eval echo "$as_me:1230: \"$ac_link\"") >&5
1231 (eval $ac_link) 2>&5
1233 echo "$as_me:1233: \$? = $ac_status" >&5
1234 (exit $ac_status); }; then
1235 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1236 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1237 # work properly (i.e., refer to `conftest.exe'), while it won't with
1239 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1241 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1242 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1249 { { echo "$as_me:1249: error: cannot compute EXEEXT: cannot compile and link" >&5
1250 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1251 { (exit 1); exit 1; }; }
1254 rm -f conftest$ac_cv_exeext
1255 echo "$as_me:1255: result: $ac_cv_exeext" >&5
1256 echo "${ECHO_T}$ac_cv_exeext" >&6
1258 rm -f conftest.$ac_ext
1259 EXEEXT=$ac_cv_exeext
1261 echo "$as_me:1261: checking for object suffix" >&5
1262 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1263 if test "${ac_cv_objext+set}" = set; then
1264 echo $ECHO_N "(cached) $ECHO_C" >&6
1266 cat >conftest.$ac_ext <<_ACEOF
1267 #line 1267 "configure"
1268 #include "confdefs.h"
1278 rm -f conftest.o conftest.obj
1279 if { (eval echo "$as_me:1279: \"$ac_compile\"") >&5
1280 (eval $ac_compile) 2>&5
1282 echo "$as_me:1282: \$? = $ac_status" >&5
1283 (exit $ac_status); }; then
1284 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1287 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1292 echo "$as_me: failed program was:" >&5
1293 cat conftest.$ac_ext >&5
1294 { { echo "$as_me:1294: error: cannot compute OBJEXT: cannot compile" >&5
1295 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1296 { (exit 1); exit 1; }; }
1299 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1301 echo "$as_me:1301: result: $ac_cv_objext" >&5
1302 echo "${ECHO_T}$ac_cv_objext" >&6
1303 OBJEXT=$ac_cv_objext
1305 echo "$as_me:1305: checking whether we are using the GNU C++ compiler" >&5
1306 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1307 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1308 echo $ECHO_N "(cached) $ECHO_C" >&6
1310 cat >conftest.$ac_ext <<_ACEOF
1311 #line 1311 "configure"
1312 #include "confdefs.h"
1325 rm -f conftest.$ac_objext
1326 if { (eval echo "$as_me:1326: \"$ac_compile\"") >&5
1327 (eval $ac_compile) 2>&5
1329 echo "$as_me:1329: \$? = $ac_status" >&5
1330 (exit $ac_status); } &&
1331 { ac_try='test -s conftest.$ac_objext'
1332 { (eval echo "$as_me:1332: \"$ac_try\"") >&5
1335 echo "$as_me:1335: \$? = $ac_status" >&5
1336 (exit $ac_status); }; }; then
1339 echo "$as_me: failed program was:" >&5
1340 cat conftest.$ac_ext >&5
1343 rm -f conftest.$ac_objext conftest.$ac_ext
1344 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1347 echo "$as_me:1347: result: $ac_cv_cxx_compiler_gnu" >&5
1348 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1349 GXX=`test $ac_compiler_gnu = yes && echo yes`
1350 ac_test_CXXFLAGS=${CXXFLAGS+set}
1351 ac_save_CXXFLAGS=$CXXFLAGS
1353 echo "$as_me:1353: checking whether $CXX accepts -g" >&5
1354 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1355 if test "${ac_cv_prog_cxx_g+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 cat >conftest.$ac_ext <<_ACEOF
1359 #line 1359 "configure"
1360 #include "confdefs.h"
1370 rm -f conftest.$ac_objext
1371 if { (eval echo "$as_me:1371: \"$ac_compile\"") >&5
1372 (eval $ac_compile) 2>&5
1374 echo "$as_me:1374: \$? = $ac_status" >&5
1375 (exit $ac_status); } &&
1376 { ac_try='test -s conftest.$ac_objext'
1377 { (eval echo "$as_me:1377: \"$ac_try\"") >&5
1380 echo "$as_me:1380: \$? = $ac_status" >&5
1381 (exit $ac_status); }; }; then
1382 ac_cv_prog_cxx_g=yes
1384 echo "$as_me: failed program was:" >&5
1385 cat conftest.$ac_ext >&5
1388 rm -f conftest.$ac_objext conftest.$ac_ext
1390 echo "$as_me:1390: result: $ac_cv_prog_cxx_g" >&5
1391 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1392 if test "$ac_test_CXXFLAGS" = set; then
1393 CXXFLAGS=$ac_save_CXXFLAGS
1394 elif test $ac_cv_prog_cxx_g = yes; then
1395 if test "$GXX" = yes; then
1401 if test "$GXX" = yes; then
1407 for ac_declaration in \
1409 '#include <stdlib.h>' \
1410 'extern "C" void std::exit (int) throw (); using std::exit;' \
1411 'extern "C" void std::exit (int); using std::exit;' \
1412 'extern "C" void exit (int) throw ();' \
1413 'extern "C" void exit (int);' \
1416 cat >conftest.$ac_ext <<_ACEOF
1417 #line 1417 "configure"
1418 #include "confdefs.h"
1429 rm -f conftest.$ac_objext
1430 if { (eval echo "$as_me:1430: \"$ac_compile\"") >&5
1431 (eval $ac_compile) 2>&5
1433 echo "$as_me:1433: \$? = $ac_status" >&5
1434 (exit $ac_status); } &&
1435 { ac_try='test -s conftest.$ac_objext'
1436 { (eval echo "$as_me:1436: \"$ac_try\"") >&5
1439 echo "$as_me:1439: \$? = $ac_status" >&5
1440 (exit $ac_status); }; }; then
1443 echo "$as_me: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1447 rm -f conftest.$ac_objext conftest.$ac_ext
1448 cat >conftest.$ac_ext <<_ACEOF
1449 #line 1449 "configure"
1450 #include "confdefs.h"
1460 rm -f conftest.$ac_objext
1461 if { (eval echo "$as_me:1461: \"$ac_compile\"") >&5
1462 (eval $ac_compile) 2>&5
1464 echo "$as_me:1464: \$? = $ac_status" >&5
1465 (exit $ac_status); } &&
1466 { ac_try='test -s conftest.$ac_objext'
1467 { (eval echo "$as_me:1467: \"$ac_try\"") >&5
1470 echo "$as_me:1470: \$? = $ac_status" >&5
1471 (exit $ac_status); }; }; then
1474 echo "$as_me: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1477 rm -f conftest.$ac_objext conftest.$ac_ext
1480 if test -n "$ac_declaration"; then
1481 echo '#ifdef __cplusplus' >>confdefs.h
1482 echo $ac_declaration >>confdefs.h
1483 echo '#endif' >>confdefs.h
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1493 ac_cpp='$CXXCPP $CPPFLAGS'
1494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1497 echo "$as_me:1497: checking how to run the C++ preprocessor" >&5
1498 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
1499 if test -z "$CXXCPP"; then
1500 if test "${ac_cv_prog_CXXCPP+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1503 # Double quotes because CXXCPP needs to be expanded
1504 for CXXCPP in "$CXX -E" "/lib/cpp"
1507 for ac_cxx_preproc_warn_flag in '' yes
1509 # Use a header file that comes with gcc, so configuring glibc
1510 # with a fresh cross-compiler works.
1511 # On the NeXT, cc -E runs the code through the compiler's parser,
1512 # not just through cpp. "Syntax error" is here to catch this case.
1513 cat >conftest.$ac_ext <<_ACEOF
1514 #line 1514 "configure"
1515 #include "confdefs.h"
1519 if { (eval echo "$as_me:1519: \"$ac_cpp conftest.$ac_ext\"") >&5
1520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1522 egrep -v '^ *\+' conftest.er1 >conftest.err
1524 cat conftest.err >&5
1525 echo "$as_me:1525: \$? = $ac_status" >&5
1526 (exit $ac_status); } >/dev/null; then
1527 if test -s conftest.err; then
1528 ac_cpp_err=$ac_cxx_preproc_warn_flag
1535 if test -z "$ac_cpp_err"; then
1538 echo "$as_me: failed program was:" >&5
1539 cat conftest.$ac_ext >&5
1540 # Broken: fails on valid input.
1543 rm -f conftest.err conftest.$ac_ext
1545 # OK, works on sane cases. Now check whether non-existent headers
1546 # can be detected and how.
1547 cat >conftest.$ac_ext <<_ACEOF
1548 #line 1548 "configure"
1549 #include "confdefs.h"
1550 #include <ac_nonexistent.h>
1552 if { (eval echo "$as_me:1552: \"$ac_cpp conftest.$ac_ext\"") >&5
1553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1555 egrep -v '^ *\+' conftest.er1 >conftest.err
1557 cat conftest.err >&5
1558 echo "$as_me:1558: \$? = $ac_status" >&5
1559 (exit $ac_status); } >/dev/null; then
1560 if test -s conftest.err; then
1561 ac_cpp_err=$ac_cxx_preproc_warn_flag
1568 if test -z "$ac_cpp_err"; then
1569 # Broken: success on invalid input.
1572 echo "$as_me: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1574 # Passes both tests.
1578 rm -f conftest.err conftest.$ac_ext
1581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1582 rm -f conftest.err conftest.$ac_ext
1583 if $ac_preproc_ok; then
1588 ac_cv_prog_CXXCPP=$CXXCPP
1591 CXXCPP=$ac_cv_prog_CXXCPP
1593 ac_cv_prog_CXXCPP=$CXXCPP
1595 echo "$as_me:1595: result: $CXXCPP" >&5
1596 echo "${ECHO_T}$CXXCPP" >&6
1598 for ac_cxx_preproc_warn_flag in '' yes
1600 # Use a header file that comes with gcc, so configuring glibc
1601 # with a fresh cross-compiler works.
1602 # On the NeXT, cc -E runs the code through the compiler's parser,
1603 # not just through cpp. "Syntax error" is here to catch this case.
1604 cat >conftest.$ac_ext <<_ACEOF
1605 #line 1605 "configure"
1606 #include "confdefs.h"
1610 if { (eval echo "$as_me:1610: \"$ac_cpp conftest.$ac_ext\"") >&5
1611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1613 egrep -v '^ *\+' conftest.er1 >conftest.err
1615 cat conftest.err >&5
1616 echo "$as_me:1616: \$? = $ac_status" >&5
1617 (exit $ac_status); } >/dev/null; then
1618 if test -s conftest.err; then
1619 ac_cpp_err=$ac_cxx_preproc_warn_flag
1626 if test -z "$ac_cpp_err"; then
1629 echo "$as_me: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1631 # Broken: fails on valid input.
1634 rm -f conftest.err conftest.$ac_ext
1636 # OK, works on sane cases. Now check whether non-existent headers
1637 # can be detected and how.
1638 cat >conftest.$ac_ext <<_ACEOF
1639 #line 1639 "configure"
1640 #include "confdefs.h"
1641 #include <ac_nonexistent.h>
1643 if { (eval echo "$as_me:1643: \"$ac_cpp conftest.$ac_ext\"") >&5
1644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1646 egrep -v '^ *\+' conftest.er1 >conftest.err
1648 cat conftest.err >&5
1649 echo "$as_me:1649: \$? = $ac_status" >&5
1650 (exit $ac_status); } >/dev/null; then
1651 if test -s conftest.err; then
1652 ac_cpp_err=$ac_cxx_preproc_warn_flag
1659 if test -z "$ac_cpp_err"; then
1660 # Broken: success on invalid input.
1663 echo "$as_me: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1665 # Passes both tests.
1669 rm -f conftest.err conftest.$ac_ext
1672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1673 rm -f conftest.err conftest.$ac_ext
1674 if $ac_preproc_ok; then
1677 { { echo "$as_me:1677: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
1678 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
1679 { (exit 1); exit 1; }; }
1683 ac_cpp='$CPP $CPPFLAGS'
1684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1689 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1690 if test -f $ac_dir/install-sh; then
1692 ac_install_sh="$ac_aux_dir/install-sh -c"
1694 elif test -f $ac_dir/install.sh; then
1696 ac_install_sh="$ac_aux_dir/install.sh -c"
1698 elif test -f $ac_dir/shtool; then
1700 ac_install_sh="$ac_aux_dir/shtool install -c"
1704 if test -z "$ac_aux_dir"; then
1705 { { echo "$as_me:1705: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1706 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1707 { (exit 1); exit 1; }; }
1709 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1710 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1711 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1713 # Find a good install program. We prefer a C program (faster),
1714 # so one script is as good as another. But avoid the broken or
1715 # incompatible versions:
1716 # SysV /etc/install, /usr/sbin/install
1717 # SunOS /usr/etc/install
1718 # IRIX /sbin/install
1720 # AmigaOS /C/install, which installs bootblocks on floppy discs
1721 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1722 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1723 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1724 # ./install, which can be erroneously created by make from ./install.sh.
1725 echo "$as_me:1725: checking for a BSD compatible install" >&5
1726 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1727 if test -z "$INSTALL"; then
1728 if test "${ac_cv_path_install+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 ac_save_IFS=$IFS; IFS=$ac_path_separator
1732 for ac_dir in $PATH; do
1734 # Account for people who put trailing slashes in PATH elements.
1736 / | ./ | .// | /cC/* \
1737 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1740 # OSF1 and SCO ODT 3.0 have their own names for install.
1741 # Don't use installbsd from OSF since it installs stuff as root
1743 for ac_prog in ginstall scoinst install; do
1744 if $as_executable_p "$ac_dir/$ac_prog"; then
1745 if test $ac_prog = install &&
1746 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1747 # AIX install. It has an incompatible calling convention.
1749 elif test $ac_prog = install &&
1750 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1751 # program-specific install script used by HP pwplus--don't use.
1754 ac_cv_path_install="$ac_dir/$ac_prog -c"
1764 if test "${ac_cv_path_install+set}" = set; then
1765 INSTALL=$ac_cv_path_install
1767 # As a last resort, use the slow shell script. We don't cache a
1768 # path for INSTALL within a source directory, because that will
1769 # break other packages using the cache if that directory is
1770 # removed, or if the path is relative.
1771 INSTALL=$ac_install_sh
1774 echo "$as_me:1774: result: $INSTALL" >&5
1775 echo "${ECHO_T}$INSTALL" >&6
1777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1778 # It thinks the first close brace ends the variable substitution.
1779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1785 if test -n "$ac_tool_prefix"; then
1786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1788 echo "$as_me:1788: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_RANLIB+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 if test -n "$RANLIB"; then
1794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1796 ac_save_IFS=$IFS; IFS=$ac_path_separator
1798 for ac_dir in $ac_dummy; do
1800 test -z "$ac_dir" && ac_dir=.
1801 $as_executable_p "$ac_dir/$ac_word" || continue
1802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1803 echo "$as_me:1803: found $ac_dir/$ac_word" >&5
1809 RANLIB=$ac_cv_prog_RANLIB
1810 if test -n "$RANLIB"; then
1811 echo "$as_me:1811: result: $RANLIB" >&5
1812 echo "${ECHO_T}$RANLIB" >&6
1814 echo "$as_me:1814: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1819 if test -z "$ac_cv_prog_RANLIB"; then
1820 ac_ct_RANLIB=$RANLIB
1821 # Extract the first word of "ranlib", so it can be a program name with args.
1822 set dummy ranlib; ac_word=$2
1823 echo "$as_me:1823: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 if test -n "$ac_ct_RANLIB"; then
1829 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1831 ac_save_IFS=$IFS; IFS=$ac_path_separator
1833 for ac_dir in $ac_dummy; do
1835 test -z "$ac_dir" && ac_dir=.
1836 $as_executable_p "$ac_dir/$ac_word" || continue
1837 ac_cv_prog_ac_ct_RANLIB="ranlib"
1838 echo "$as_me:1838: found $ac_dir/$ac_word" >&5
1842 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1845 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1846 if test -n "$ac_ct_RANLIB"; then
1847 echo "$as_me:1847: result: $ac_ct_RANLIB" >&5
1848 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1850 echo "$as_me:1850: result: no" >&5
1851 echo "${ECHO_T}no" >&6
1854 RANLIB=$ac_ct_RANLIB
1856 RANLIB="$ac_cv_prog_RANLIB"
1860 ac_cpp='$CXXCPP $CPPFLAGS'
1861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1865 # Checking for header files.
1866 # ===========================================================================
1868 if test -d /stuff/include; then
1869 CPPFLAGS="$CPPFLAGS -I/stuff/include"
1872 echo "$as_me:1872: checking for ANSI C header files" >&5
1873 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1874 if test "${ac_cv_header_stdc+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 cat >conftest.$ac_ext <<_ACEOF
1878 #line 1878 "configure"
1879 #include "confdefs.h"
1886 if { (eval echo "$as_me:1886: \"$ac_cpp conftest.$ac_ext\"") >&5
1887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1889 egrep -v '^ *\+' conftest.er1 >conftest.err
1891 cat conftest.err >&5
1892 echo "$as_me:1892: \$? = $ac_status" >&5
1893 (exit $ac_status); } >/dev/null; then
1894 if test -s conftest.err; then
1895 ac_cpp_err=$ac_cxx_preproc_warn_flag
1902 if test -z "$ac_cpp_err"; then
1903 ac_cv_header_stdc=yes
1905 echo "$as_me: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1907 ac_cv_header_stdc=no
1909 rm -f conftest.err conftest.$ac_ext
1911 if test $ac_cv_header_stdc = yes; then
1912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1913 cat >conftest.$ac_ext <<_ACEOF
1914 #line 1914 "configure"
1915 #include "confdefs.h"
1919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1920 egrep "memchr" >/dev/null 2>&1; then
1923 ac_cv_header_stdc=no
1929 if test $ac_cv_header_stdc = yes; then
1930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1931 cat >conftest.$ac_ext <<_ACEOF
1932 #line 1932 "configure"
1933 #include "confdefs.h"
1937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1938 egrep "free" >/dev/null 2>&1; then
1941 ac_cv_header_stdc=no
1947 if test $ac_cv_header_stdc = yes; then
1948 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1949 if test "$cross_compiling" = yes; then
1952 cat >conftest.$ac_ext <<_ACEOF
1953 #line 1953 "configure"
1954 #include "confdefs.h"
1956 #if ((' ' & 0x0FF) == 0x020)
1957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1960 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
1961 || ('j' <= (c) && (c) <= 'r') \
1962 || ('s' <= (c) && (c) <= 'z'))
1963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1971 for (i = 0; i < 256; i++)
1972 if (XOR (islower (i), ISLOWER (i))
1973 || toupper (i) != TOUPPER (i))
1978 rm -f conftest$ac_exeext
1979 if { (eval echo "$as_me:1979: \"$ac_link\"") >&5
1980 (eval $ac_link) 2>&5
1982 echo "$as_me:1982: \$? = $ac_status" >&5
1983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1984 { (eval echo "$as_me:1984: \"$ac_try\"") >&5
1987 echo "$as_me:1987: \$? = $ac_status" >&5
1988 (exit $ac_status); }; }; then
1991 echo "$as_me: program exited with status $ac_status" >&5
1992 echo "$as_me: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 ac_cv_header_stdc=no
1996 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2000 echo "$as_me:2000: result: $ac_cv_header_stdc" >&5
2001 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2002 if test $ac_cv_header_stdc = yes; then
2004 cat >>confdefs.h <<\EOF
2005 #define STDC_HEADERS 1
2010 for ac_header in getopt.h
2012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2013 echo "$as_me:2013: checking for $ac_header" >&5
2014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 cat >conftest.$ac_ext <<_ACEOF
2019 #line 2019 "configure"
2020 #include "confdefs.h"
2021 #include <$ac_header>
2023 if { (eval echo "$as_me:2023: \"$ac_cpp conftest.$ac_ext\"") >&5
2024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2026 egrep -v '^ *\+' conftest.er1 >conftest.err
2028 cat conftest.err >&5
2029 echo "$as_me:2029: \$? = $ac_status" >&5
2030 (exit $ac_status); } >/dev/null; then
2031 if test -s conftest.err; then
2032 ac_cpp_err=$ac_cxx_preproc_warn_flag
2039 if test -z "$ac_cpp_err"; then
2040 eval "$as_ac_Header=yes"
2042 echo "$as_me: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2044 eval "$as_ac_Header=no"
2046 rm -f conftest.err conftest.$ac_ext
2048 echo "$as_me:2048: result: `eval echo '${'$as_ac_Header'}'`" >&5
2049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2051 cat >>confdefs.h <<EOF
2052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2058 for ac_header in unistd.h
2060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2061 echo "$as_me:2061: checking for $ac_header" >&5
2062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 cat >conftest.$ac_ext <<_ACEOF
2067 #line 2067 "configure"
2068 #include "confdefs.h"
2069 #include <$ac_header>
2071 if { (eval echo "$as_me:2071: \"$ac_cpp conftest.$ac_ext\"") >&5
2072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2074 egrep -v '^ *\+' conftest.er1 >conftest.err
2076 cat conftest.err >&5
2077 echo "$as_me:2077: \$? = $ac_status" >&5
2078 (exit $ac_status); } >/dev/null; then
2079 if test -s conftest.err; then
2080 ac_cpp_err=$ac_cxx_preproc_warn_flag
2087 if test -z "$ac_cpp_err"; then
2088 eval "$as_ac_Header=yes"
2090 echo "$as_me: failed program was:" >&5
2091 cat conftest.$ac_ext >&5
2092 eval "$as_ac_Header=no"
2094 rm -f conftest.err conftest.$ac_ext
2096 echo "$as_me:2096: result: `eval echo '${'$as_ac_Header'}'`" >&5
2097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2099 cat >>confdefs.h <<EOF
2100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2106 echo "$as_me:2106: checking for sys/socket.h" >&5
2107 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
2108 if test "${ac_cv_header_sys_socket_h+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 cat >conftest.$ac_ext <<_ACEOF
2112 #line 2112 "configure"
2113 #include "confdefs.h"
2114 #include <sys/socket.h>
2116 if { (eval echo "$as_me:2116: \"$ac_cpp conftest.$ac_ext\"") >&5
2117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2119 egrep -v '^ *\+' conftest.er1 >conftest.err
2121 cat conftest.err >&5
2122 echo "$as_me:2122: \$? = $ac_status" >&5
2123 (exit $ac_status); } >/dev/null; then
2124 if test -s conftest.err; then
2125 ac_cpp_err=$ac_cxx_preproc_warn_flag
2132 if test -z "$ac_cpp_err"; then
2133 ac_cv_header_sys_socket_h=yes
2135 echo "$as_me: failed program was:" >&5
2136 cat conftest.$ac_ext >&5
2137 ac_cv_header_sys_socket_h=no
2139 rm -f conftest.err conftest.$ac_ext
2141 echo "$as_me:2141: result: $ac_cv_header_sys_socket_h" >&5
2142 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
2143 if test $ac_cv_header_sys_socket_h = yes; then
2144 cat >>confdefs.h <<\EOF
2145 #define SOCKET_AVAIL 1
2148 cat >>confdefs.h <<\EOF
2149 #define HAVE_SYS_SOCKET_H 1
2152 cat >conftest.$ac_ext <<_ACEOF
2153 #line 2153 "configure"
2154 #include "confdefs.h"
2155 #include <sys/socket.h>
2158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2159 egrep "socklen_t" >/dev/null 2>&1; then
2160 cat >>confdefs.h <<EOF
2161 #define SOCKLEN_T socklen_t
2165 cat >>confdefs.h <<EOF
2166 #define SOCKLEN_T uint
2174 echo "$as_me:2174: checking for dlfcn.h" >&5
2175 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
2176 if test "${ac_cv_header_dlfcn_h+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line 2180 "configure"
2181 #include "confdefs.h"
2184 if { (eval echo "$as_me:2184: \"$ac_cpp conftest.$ac_ext\"") >&5
2185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2187 egrep -v '^ *\+' conftest.er1 >conftest.err
2189 cat conftest.err >&5
2190 echo "$as_me:2190: \$? = $ac_status" >&5
2191 (exit $ac_status); } >/dev/null; then
2192 if test -s conftest.err; then
2193 ac_cpp_err=$ac_cxx_preproc_warn_flag
2200 if test -z "$ac_cpp_err"; then
2201 ac_cv_header_dlfcn_h=yes
2203 echo "$as_me: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 ac_cv_header_dlfcn_h=no
2207 rm -f conftest.err conftest.$ac_ext
2209 echo "$as_me:2209: result: $ac_cv_header_dlfcn_h" >&5
2210 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
2213 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2214 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2215 echo "$as_me:2215: checking for $ac_hdr that defines DIR" >&5
2216 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 cat >conftest.$ac_ext <<_ACEOF
2221 #line 2221 "configure"
2222 #include "confdefs.h"
2223 #include <sys/types.h>
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:2236: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>&5
2239 echo "$as_me:2239: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:2242: \"$ac_try\"") >&5
2245 echo "$as_me:2245: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 eval "$as_ac_Header=yes"
2249 echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 eval "$as_ac_Header=no"
2253 rm -f conftest.$ac_objext conftest.$ac_ext
2255 echo "$as_me:2255: result: `eval echo '${'$as_ac_Header'}'`" >&5
2256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2258 cat >>confdefs.h <<EOF
2259 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2262 ac_header_dirent=$ac_hdr; break
2266 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2267 if test $ac_header_dirent = dirent.h; then
2268 echo "$as_me:2268: checking for opendir in -ldir" >&5
2269 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
2270 if test "${ac_cv_lib_dir_opendir+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 ac_check_lib_save_LIBS=$LIBS
2275 cat >conftest.$ac_ext <<_ACEOF
2276 #line 2276 "configure"
2277 #include "confdefs.h"
2279 /* Override any gcc2 internal prototype to avoid an error. */
2283 /* We use char because int might match the return type of a gcc2
2284 builtin and then its argument prototype would still apply. */
2294 rm -f conftest.$ac_objext conftest$ac_exeext
2295 if { (eval echo "$as_me:2295: \"$ac_link\"") >&5
2296 (eval $ac_link) 2>&5
2298 echo "$as_me:2298: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -s conftest$ac_exeext'
2301 { (eval echo "$as_me:2301: \"$ac_try\"") >&5
2304 echo "$as_me:2304: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2306 ac_cv_lib_dir_opendir=yes
2308 echo "$as_me: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2310 ac_cv_lib_dir_opendir=no
2312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2313 LIBS=$ac_check_lib_save_LIBS
2315 echo "$as_me:2315: result: $ac_cv_lib_dir_opendir" >&5
2316 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
2317 if test $ac_cv_lib_dir_opendir = yes; then
2322 echo "$as_me:2322: checking for opendir in -lx" >&5
2323 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
2324 if test "${ac_cv_lib_x_opendir+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 ac_check_lib_save_LIBS=$LIBS
2329 cat >conftest.$ac_ext <<_ACEOF
2330 #line 2330 "configure"
2331 #include "confdefs.h"
2333 /* Override any gcc2 internal prototype to avoid an error. */
2337 /* We use char because int might match the return type of a gcc2
2338 builtin and then its argument prototype would still apply. */
2348 rm -f conftest.$ac_objext conftest$ac_exeext
2349 if { (eval echo "$as_me:2349: \"$ac_link\"") >&5
2350 (eval $ac_link) 2>&5
2352 echo "$as_me:2352: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -s conftest$ac_exeext'
2355 { (eval echo "$as_me:2355: \"$ac_try\"") >&5
2358 echo "$as_me:2358: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2360 ac_cv_lib_x_opendir=yes
2362 echo "$as_me: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2364 ac_cv_lib_x_opendir=no
2366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2367 LIBS=$ac_check_lib_save_LIBS
2369 echo "$as_me:2369: result: $ac_cv_lib_x_opendir" >&5
2370 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
2371 if test $ac_cv_lib_x_opendir = yes; then
2377 # This must be after CXXCPP
2379 echo "$as_me:2379: checking which header file defines FD_ macros" >&5
2380 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6
2381 if test "${ucsim_cv_fd+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 ucsim_cv_fd="unknown"
2385 cat >conftest.$ac_ext <<_ACEOF
2386 #line 2386 "configure"
2387 #include "confdefs.h"
2389 #include <sys/time.h>
2394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2395 egrep "yes" >/dev/null 2>&1; then
2396 ucsim_cv_fd="<sys/time.h>"
2400 cat >conftest.$ac_ext <<_ACEOF
2401 #line 2401 "configure"
2402 #include "confdefs.h"
2404 #include <sys/types.h>
2409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2410 egrep "yes" >/dev/null 2>&1; then
2411 ucsim_cv_fd="<sys/types.h>"
2415 cat >conftest.$ac_ext <<_ACEOF
2416 #line 2416 "configure"
2417 #include "confdefs.h"
2419 #include <sys/select.h>
2424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2425 egrep "yes" >/dev/null 2>&1; then
2426 ucsim_cv_fd="<sys/types.h>"
2431 echo "$as_me:2431: result: $ucsim_cv_fd" >&5
2432 echo "${ECHO_T}$ucsim_cv_fd" >&6
2434 cat >>confdefs.h <<\EOF
2435 #define FD_HEADER_OK 0
2438 if echo $ucsim_cv_fd|grep time >/dev/null 2>&1; then
2439 cat >>confdefs.h <<\EOF
2440 #define FD_NEED_TIME_H 1
2443 cat >>confdefs.h <<\EOF
2444 #define FD_HEADER_OK 1
2448 cat >>confdefs.h <<\EOF
2449 #define FD_NEED_TIME_H 0
2453 if echo $ucsim_cv_fd|grep types >/dev/null 2>&1; then
2454 cat >>confdefs.h <<\EOF
2455 #define FD_NEED_TYPES_H 1
2458 cat >>confdefs.h <<\EOF
2459 #define FD_HEADER_OK 1
2463 cat >>confdefs.h <<\EOF
2464 #define FD_NEED_TYPES_H 0
2468 if echo $ucsim_cv_fd|grep select >/dev/null 2>&1; then
2469 cat >>confdefs.h <<\EOF
2470 #define FD_NEED_SELECT_H 1
2473 cat >>confdefs.h <<\EOF
2474 #define FD_HEADER_OK 1
2478 cat >>confdefs.h <<\EOF
2479 #define FD_NEED_SELECT_H 0
2484 cat >>confdefs.h <<EOF
2485 #define HEADER_FD ${ucsim_cv_fd}
2488 # Checking for functions/libs
2489 # ===========================================================================
2491 echo "$as_me:2491: checking for socket in -lsocket" >&5
2492 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2493 if test "${ac_cv_lib_socket_socket+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 ac_check_lib_save_LIBS=$LIBS
2497 LIBS="-lsocket $LIBS"
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #line 2499 "configure"
2500 #include "confdefs.h"
2502 /* Override any gcc2 internal prototype to avoid an error. */
2506 /* We use char because int might match the return type of a gcc2
2507 builtin and then its argument prototype would still apply. */
2517 rm -f conftest.$ac_objext conftest$ac_exeext
2518 if { (eval echo "$as_me:2518: \"$ac_link\"") >&5
2519 (eval $ac_link) 2>&5
2521 echo "$as_me:2521: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -s conftest$ac_exeext'
2524 { (eval echo "$as_me:2524: \"$ac_try\"") >&5
2527 echo "$as_me:2527: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2529 ac_cv_lib_socket_socket=yes
2531 echo "$as_me: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2533 ac_cv_lib_socket_socket=no
2535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2536 LIBS=$ac_check_lib_save_LIBS
2538 echo "$as_me:2538: result: $ac_cv_lib_socket_socket" >&5
2539 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2540 if test $ac_cv_lib_socket_socket = yes; then
2541 cat >>confdefs.h <<EOF
2542 #define HAVE_LIBSOCKET 1
2545 LIBS="-lsocket $LIBS"
2549 echo "$as_me:2549: checking for xdr_short in -lnsl" >&5
2550 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6
2551 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 ac_check_lib_save_LIBS=$LIBS
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #line 2557 "configure"
2558 #include "confdefs.h"
2560 /* Override any gcc2 internal prototype to avoid an error. */
2564 /* We use char because int might match the return type of a gcc2
2565 builtin and then its argument prototype would still apply. */
2575 rm -f conftest.$ac_objext conftest$ac_exeext
2576 if { (eval echo "$as_me:2576: \"$ac_link\"") >&5
2577 (eval $ac_link) 2>&5
2579 echo "$as_me:2579: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -s conftest$ac_exeext'
2582 { (eval echo "$as_me:2582: \"$ac_try\"") >&5
2585 echo "$as_me:2585: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 ac_cv_lib_nsl_xdr_short=yes
2589 echo "$as_me: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2591 ac_cv_lib_nsl_xdr_short=no
2593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2594 LIBS=$ac_check_lib_save_LIBS
2596 echo "$as_me:2596: result: $ac_cv_lib_nsl_xdr_short" >&5
2597 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6
2598 if test $ac_cv_lib_nsl_xdr_short = yes; then
2599 cat >>confdefs.h <<EOF
2600 #define HAVE_LIBNSL 1
2607 echo "$as_me:2607: checking for dlopen in -ldl" >&5
2608 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
2609 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 ac_check_lib_save_LIBS=$LIBS
2614 cat >conftest.$ac_ext <<_ACEOF
2615 #line 2615 "configure"
2616 #include "confdefs.h"
2618 /* Override any gcc2 internal prototype to avoid an error. */
2622 /* We use char because int might match the return type of a gcc2
2623 builtin and then its argument prototype would still apply. */
2633 rm -f conftest.$ac_objext conftest$ac_exeext
2634 if { (eval echo "$as_me:2634: \"$ac_link\"") >&5
2635 (eval $ac_link) 2>&5
2637 echo "$as_me:2637: \$? = $ac_status" >&5
2638 (exit $ac_status); } &&
2639 { ac_try='test -s conftest$ac_exeext'
2640 { (eval echo "$as_me:2640: \"$ac_try\"") >&5
2643 echo "$as_me:2643: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 ac_cv_lib_dl_dlopen=yes
2647 echo "$as_me: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2649 ac_cv_lib_dl_dlopen=no
2651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2652 LIBS=$ac_check_lib_save_LIBS
2654 echo "$as_me:2654: result: $ac_cv_lib_dl_dlopen" >&5
2655 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
2656 if test $ac_cv_lib_dl_dlopen = yes; then
2664 echo "$as_me:2664: checking for panel_above in -lpanel" >&5
2665 echo $ECHO_N "checking for panel_above in -lpanel... $ECHO_C" >&6
2666 if test "${ac_cv_lib_panel_panel_above+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 ac_check_lib_save_LIBS=$LIBS
2670 LIBS="-lpanel -lcurses $LIBS"
2671 cat >conftest.$ac_ext <<_ACEOF
2672 #line 2672 "configure"
2673 #include "confdefs.h"
2675 /* Override any gcc2 internal prototype to avoid an error. */
2679 /* We use char because int might match the return type of a gcc2
2680 builtin and then its argument prototype would still apply. */
2681 char panel_above ();
2690 rm -f conftest.$ac_objext conftest$ac_exeext
2691 if { (eval echo "$as_me:2691: \"$ac_link\"") >&5
2692 (eval $ac_link) 2>&5
2694 echo "$as_me:2694: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -s conftest$ac_exeext'
2697 { (eval echo "$as_me:2697: \"$ac_try\"") >&5
2700 echo "$as_me:2700: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 ac_cv_lib_panel_panel_above=yes
2704 echo "$as_me: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 ac_cv_lib_panel_panel_above=no
2708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2709 LIBS=$ac_check_lib_save_LIBS
2711 echo "$as_me:2711: result: $ac_cv_lib_panel_panel_above" >&5
2712 echo "${ECHO_T}$ac_cv_lib_panel_panel_above" >&6
2713 if test $ac_cv_lib_panel_panel_above = yes; then
2716 CURSES_LIBS="-lpanel -lcurses"
2720 echo "$as_me:2720: checking for nl in -lcurses" >&5
2721 echo $ECHO_N "checking for nl in -lcurses... $ECHO_C" >&6
2722 if test "${ac_cv_lib_curses_nl+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 ac_check_lib_save_LIBS=$LIBS
2726 LIBS="-lcurses $LIBS"
2727 cat >conftest.$ac_ext <<_ACEOF
2728 #line 2728 "configure"
2729 #include "confdefs.h"
2731 /* Override any gcc2 internal prototype to avoid an error. */
2735 /* We use char because int might match the return type of a gcc2
2736 builtin and then its argument prototype would still apply. */
2746 rm -f conftest.$ac_objext conftest$ac_exeext
2747 if { (eval echo "$as_me:2747: \"$ac_link\"") >&5
2748 (eval $ac_link) 2>&5
2750 echo "$as_me:2750: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try='test -s conftest$ac_exeext'
2753 { (eval echo "$as_me:2753: \"$ac_try\"") >&5
2756 echo "$as_me:2756: \$? = $ac_status" >&5
2757 (exit $ac_status); }; }; then
2758 ac_cv_lib_curses_nl=yes
2760 echo "$as_me: failed program was:" >&5
2761 cat conftest.$ac_ext >&5
2762 ac_cv_lib_curses_nl=no
2764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2765 LIBS=$ac_check_lib_save_LIBS
2767 echo "$as_me:2767: result: $ac_cv_lib_curses_nl" >&5
2768 echo "${ECHO_T}$ac_cv_lib_curses_nl" >&6
2769 if test $ac_cv_lib_curses_nl = yes; then
2771 CURSES_LIBS="-lcurses"
2779 for ac_func in vprintf
2781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2782 echo "$as_me:2782: checking for $ac_func" >&5
2783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2784 if eval "test \"\${$as_ac_var+set}\" = set"; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 cat >conftest.$ac_ext <<_ACEOF
2788 #line 2788 "configure"
2789 #include "confdefs.h"
2790 /* System header to define __stub macros and hopefully few prototypes,
2791 which can conflict with char $ac_func (); below. */
2793 /* Override any gcc2 internal prototype to avoid an error. */
2797 /* We use char because int might match the return type of a gcc2
2798 builtin and then its argument prototype would still apply. */
2805 /* The GNU C library defines this for functions which it implements
2806 to always fail with ENOSYS. Some functions are actually named
2807 something starting with __ and the normal name is an alias. */
2808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2818 rm -f conftest.$ac_objext conftest$ac_exeext
2819 if { (eval echo "$as_me:2819: \"$ac_link\"") >&5
2820 (eval $ac_link) 2>&5
2822 echo "$as_me:2822: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try='test -s conftest$ac_exeext'
2825 { (eval echo "$as_me:2825: \"$ac_try\"") >&5
2828 echo "$as_me:2828: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 eval "$as_ac_var=yes"
2832 echo "$as_me: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2834 eval "$as_ac_var=no"
2836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2838 echo "$as_me:2838: result: `eval echo '${'$as_ac_var'}'`" >&5
2839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2840 if test `eval echo '${'$as_ac_var'}'` = yes; then
2841 cat >>confdefs.h <<EOF
2842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2845 echo "$as_me:2845: checking for _doprnt" >&5
2846 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
2847 if test "${ac_cv_func__doprnt+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 cat >conftest.$ac_ext <<_ACEOF
2851 #line 2851 "configure"
2852 #include "confdefs.h"
2853 /* System header to define __stub macros and hopefully few prototypes,
2854 which can conflict with char _doprnt (); below. */
2856 /* Override any gcc2 internal prototype to avoid an error. */
2860 /* We use char because int might match the return type of a gcc2
2861 builtin and then its argument prototype would still apply. */
2868 /* The GNU C library defines this for functions which it implements
2869 to always fail with ENOSYS. Some functions are actually named
2870 something starting with __ and the normal name is an alias. */
2871 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2881 rm -f conftest.$ac_objext conftest$ac_exeext
2882 if { (eval echo "$as_me:2882: \"$ac_link\"") >&5
2883 (eval $ac_link) 2>&5
2885 echo "$as_me:2885: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -s conftest$ac_exeext'
2888 { (eval echo "$as_me:2888: \"$ac_try\"") >&5
2891 echo "$as_me:2891: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 ac_cv_func__doprnt=yes
2895 echo "$as_me: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2897 ac_cv_func__doprnt=no
2899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2901 echo "$as_me:2901: result: $ac_cv_func__doprnt" >&5
2902 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
2903 if test $ac_cv_func__doprnt = yes; then
2905 cat >>confdefs.h <<\EOF
2906 #define HAVE_DOPRNT 1
2914 for ac_func in vsnprintf vasprintf
2916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2917 echo "$as_me:2917: checking for $ac_func" >&5
2918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2919 if eval "test \"\${$as_ac_var+set}\" = set"; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 cat >conftest.$ac_ext <<_ACEOF
2923 #line 2923 "configure"
2924 #include "confdefs.h"
2925 /* System header to define __stub macros and hopefully few prototypes,
2926 which can conflict with char $ac_func (); below. */
2928 /* Override any gcc2 internal prototype to avoid an error. */
2932 /* We use char because int might match the return type of a gcc2
2933 builtin and then its argument prototype would still apply. */
2940 /* The GNU C library defines this for functions which it implements
2941 to always fail with ENOSYS. Some functions are actually named
2942 something starting with __ and the normal name is an alias. */
2943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2953 rm -f conftest.$ac_objext conftest$ac_exeext
2954 if { (eval echo "$as_me:2954: \"$ac_link\"") >&5
2955 (eval $ac_link) 2>&5
2957 echo "$as_me:2957: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try='test -s conftest$ac_exeext'
2960 { (eval echo "$as_me:2960: \"$ac_try\"") >&5
2963 echo "$as_me:2963: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2965 eval "$as_ac_var=yes"
2967 echo "$as_me: failed program was:" >&5
2968 cat conftest.$ac_ext >&5
2969 eval "$as_ac_var=no"
2971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2973 echo "$as_me:2973: result: `eval echo '${'$as_ac_var'}'`" >&5
2974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2975 if test `eval echo '${'$as_ac_var'}'` = yes; then
2976 cat >>confdefs.h <<EOF
2977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2983 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
2985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2986 echo "$as_me:2986: checking for $ac_func" >&5
2987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2988 if eval "test \"\${$as_ac_var+set}\" = set"; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 cat >conftest.$ac_ext <<_ACEOF
2992 #line 2992 "configure"
2993 #include "confdefs.h"
2994 /* System header to define __stub macros and hopefully few prototypes,
2995 which can conflict with char $ac_func (); below. */
2997 /* Override any gcc2 internal prototype to avoid an error. */
3001 /* We use char because int might match the return type of a gcc2
3002 builtin and then its argument prototype would still apply. */
3009 /* The GNU C library defines this for functions which it implements
3010 to always fail with ENOSYS. Some functions are actually named
3011 something starting with __ and the normal name is an alias. */
3012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3022 rm -f conftest.$ac_objext conftest$ac_exeext
3023 if { (eval echo "$as_me:3023: \"$ac_link\"") >&5
3024 (eval $ac_link) 2>&5
3026 echo "$as_me:3026: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
3028 { ac_try='test -s conftest$ac_exeext'
3029 { (eval echo "$as_me:3029: \"$ac_try\"") >&5
3032 echo "$as_me:3032: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 eval "$as_ac_var=yes"
3036 echo "$as_me: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3038 eval "$as_ac_var=no"
3040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3042 echo "$as_me:3042: result: `eval echo '${'$as_ac_var'}'`" >&5
3043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3044 if test `eval echo '${'$as_ac_var'}'` = yes; then
3045 cat >>confdefs.h <<EOF
3046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3052 for ac_func in strchr memcpy
3054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3055 echo "$as_me:3055: checking for $ac_func" >&5
3056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3057 if eval "test \"\${$as_ac_var+set}\" = set"; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 cat >conftest.$ac_ext <<_ACEOF
3061 #line 3061 "configure"
3062 #include "confdefs.h"
3063 /* System header to define __stub macros and hopefully few prototypes,
3064 which can conflict with char $ac_func (); below. */
3066 /* Override any gcc2 internal prototype to avoid an error. */
3070 /* We use char because int might match the return type of a gcc2
3071 builtin and then its argument prototype would still apply. */
3078 /* The GNU C library defines this for functions which it implements
3079 to always fail with ENOSYS. Some functions are actually named
3080 something starting with __ and the normal name is an alias. */
3081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3091 rm -f conftest.$ac_objext conftest$ac_exeext
3092 if { (eval echo "$as_me:3092: \"$ac_link\"") >&5
3093 (eval $ac_link) 2>&5
3095 echo "$as_me:3095: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -s conftest$ac_exeext'
3098 { (eval echo "$as_me:3098: \"$ac_try\"") >&5
3101 echo "$as_me:3101: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 eval "$as_ac_var=yes"
3105 echo "$as_me: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3107 eval "$as_ac_var=no"
3109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3111 echo "$as_me:3111: result: `eval echo '${'$as_ac_var'}'`" >&5
3112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3113 if test `eval echo '${'$as_ac_var'}'` = yes; then
3114 cat >>confdefs.h <<EOF
3115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3121 for ac_func in fgets
3123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3124 echo "$as_me:3124: checking for $ac_func" >&5
3125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3126 if eval "test \"\${$as_ac_var+set}\" = set"; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 cat >conftest.$ac_ext <<_ACEOF
3130 #line 3130 "configure"
3131 #include "confdefs.h"
3132 /* System header to define __stub macros and hopefully few prototypes,
3133 which can conflict with char $ac_func (); below. */
3135 /* Override any gcc2 internal prototype to avoid an error. */
3139 /* We use char because int might match the return type of a gcc2
3140 builtin and then its argument prototype would still apply. */
3147 /* The GNU C library defines this for functions which it implements
3148 to always fail with ENOSYS. Some functions are actually named
3149 something starting with __ and the normal name is an alias. */
3150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3160 rm -f conftest.$ac_objext conftest$ac_exeext
3161 if { (eval echo "$as_me:3161: \"$ac_link\"") >&5
3162 (eval $ac_link) 2>&5
3164 echo "$as_me:3164: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 { ac_try='test -s conftest$ac_exeext'
3167 { (eval echo "$as_me:3167: \"$ac_try\"") >&5
3170 echo "$as_me:3170: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3172 eval "$as_ac_var=yes"
3174 echo "$as_me: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3176 eval "$as_ac_var=no"
3178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3180 echo "$as_me:3180: result: `eval echo '${'$as_ac_var'}'`" >&5
3181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3182 if test `eval echo '${'$as_ac_var'}'` = yes; then
3183 cat >>confdefs.h <<EOF
3184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3190 for ac_func in yylex
3192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3193 echo "$as_me:3193: checking for $ac_func" >&5
3194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3195 if eval "test \"\${$as_ac_var+set}\" = set"; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 cat >conftest.$ac_ext <<_ACEOF
3199 #line 3199 "configure"
3200 #include "confdefs.h"
3201 /* System header to define __stub macros and hopefully few prototypes,
3202 which can conflict with char $ac_func (); below. */
3204 /* Override any gcc2 internal prototype to avoid an error. */
3208 /* We use char because int might match the return type of a gcc2
3209 builtin and then its argument prototype would still apply. */
3216 /* The GNU C library defines this for functions which it implements
3217 to always fail with ENOSYS. Some functions are actually named
3218 something starting with __ and the normal name is an alias. */
3219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3229 rm -f conftest.$ac_objext conftest$ac_exeext
3230 if { (eval echo "$as_me:3230: \"$ac_link\"") >&5
3231 (eval $ac_link) 2>&5
3233 echo "$as_me:3233: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -s conftest$ac_exeext'
3236 { (eval echo "$as_me:3236: \"$ac_try\"") >&5
3239 echo "$as_me:3239: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 eval "$as_ac_var=yes"
3243 echo "$as_me: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3245 eval "$as_ac_var=no"
3247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3249 echo "$as_me:3249: result: `eval echo '${'$as_ac_var'}'`" >&5
3250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3251 if test `eval echo '${'$as_ac_var'}'` = yes; then
3252 cat >>confdefs.h <<EOF
3253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3259 echo "$as_me:3259: checking whether scanf knows %a" >&5
3260 echo $ECHO_N "checking whether scanf knows %a... $ECHO_C" >&6
3261 if test "${ucsim_cv_scanf_a+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 echo "a b" >conftest.data
3265 if test "$cross_compiling" = yes; then
3266 ucsim_cv_scanf_a="unknown"
3268 cat >conftest.$ac_ext <<_ACEOF
3269 #line 3269 "configure"
3270 #include "confdefs.h"
3278 if ((f= fopen("conftest.data", "r")) == NULL)
3280 i= fscanf(f, " %a[a-z] ", &a);
3289 rm -f conftest$ac_exeext
3290 if { (eval echo "$as_me:3290: \"$ac_link\"") >&5
3291 (eval $ac_link) 2>&5
3293 echo "$as_me:3293: \$? = $ac_status" >&5
3294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3295 { (eval echo "$as_me:3295: \"$ac_try\"") >&5
3298 echo "$as_me:3298: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 ucsim_cv_scanf_a="yes"
3302 echo "$as_me: program exited with status $ac_status" >&5
3303 echo "$as_me: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3305 ucsim_cv_scanf_a="no"
3307 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3311 echo "$as_me:3311: result: $ucsim_cv_scanf_a" >&5
3312 echo "${ECHO_T}$ucsim_cv_scanf_a" >&6
3313 if test "$ucsim_cv_scanf_a" = "yes"; then
3314 cat >>confdefs.h <<\EOF
3320 echo "$as_me:3320: checking whether getcwd is GNUish" >&5
3321 echo $ECHO_N "checking whether getcwd is GNUish... $ECHO_C" >&6
3322 if test "${ucsim_cv_getcwd+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 if test "$cross_compiling" = yes; then
3326 ucsim_cv_getcwd="unknown"
3328 cat >conftest.$ac_ext <<_ACEOF
3329 #line 3329 "configure"
3330 #include "confdefs.h"
3335 if ((getcwd(NULL, 0)) == NULL)
3340 rm -f conftest$ac_exeext
3341 if { (eval echo "$as_me:3341: \"$ac_link\"") >&5
3342 (eval $ac_link) 2>&5
3344 echo "$as_me:3344: \$? = $ac_status" >&5
3345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3346 { (eval echo "$as_me:3346: \"$ac_try\"") >&5
3349 echo "$as_me:3349: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ucsim_cv_getcwd="yes"
3353 echo "$as_me: program exited with status $ac_status" >&5
3354 echo "$as_me: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 ucsim_cv_getcwd="no"
3358 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3362 echo "$as_me:3362: result: $ucsim_cv_getcwd" >&5
3363 echo "${ECHO_T}$ucsim_cv_getcwd" >&6
3364 if test "$ucsim_cv_getcwd" = "yes"; then
3365 cat >>confdefs.h <<\EOF
3366 #define GNU_GETCWD 1
3373 echo "$as_me:3373: checking for type of length pointer parameter of accept" >&5
3374 echo $ECHO_N "checking for type of length pointer parameter of accept... $ECHO_C" >&6
3375 if test "${ucsim_cv_accept_length_type+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 ac_save_CPPFLAGS="$CPPFLAGS"
3379 ucsim_cv_accept_length_type=no
3380 for ac_val in int size_t socklen_t; do
3381 CPPFLAGS="$ac_save_CPPFLAGS -DACCEPT_SOCKLEN_T=$ac_val"
3382 cat >conftest.$ac_ext <<_ACEOF
3383 #line 3383 "configure"
3384 #include "confdefs.h"
3385 #include <sys/types.h>
3386 #include <sys/socket.h>
3390 struct sockaddr a; $ac_val len; accept (0, &a, &len);
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:3396: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>&5
3399 echo "$as_me:3399: \$? = $ac_status" >&5
3400 (exit $ac_status); } &&
3401 { ac_try='test -s conftest.$ac_objext'
3402 { (eval echo "$as_me:3402: \"$ac_try\"") >&5
3405 echo "$as_me:3405: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3407 ucsim_cv_accept_length_type=$ac_val; break
3409 echo "$as_me: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3412 rm -f conftest.$ac_objext conftest.$ac_ext
3414 CPPFLAGS="$ac_save_CPPFLAGS"
3416 echo "$as_me:3416: result: $ucsim_cv_accept_length_type" >&5
3417 echo "${ECHO_T}$ucsim_cv_accept_length_type" >&6
3419 if test $ucsim_cv_accept_length_type != no; then
3421 cat >>confdefs.h <<EOF
3422 #define ACCEPT_SOCKLEN_T $ucsim_cv_accept_length_type
3430 # DD_COPT macro checks if the compiler specified as the 1st parameter
3431 # supports option specified as the 2nd parameter
3432 # For example: DD_COPT(CXX, fPIC)
3434 # Checking characteristics of compilers and other programs
3435 # --------------------------------------------------------
3437 # Cross compiling overrides
3438 if test "$CC" = "i586-mingw32msvc-gcc"; then
3439 ac_cv_c_bigendian=no
3441 ac_cv_sizeof_short=2
3444 ac_cv_sizeof_long_long=4
3447 echo "$as_me:3447: checking whether byte ordering is bigendian" >&5
3448 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3449 if test "${ac_cv_c_bigendian+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 ac_cv_c_bigendian=unknown
3453 # See if sys/param.h defines the BYTE_ORDER macro.
3454 cat >conftest.$ac_ext <<_ACEOF
3455 #line 3455 "configure"
3456 #include "confdefs.h"
3457 #include <sys/types.h>
3458 #include <sys/param.h>
3463 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3471 rm -f conftest.$ac_objext
3472 if { (eval echo "$as_me:3472: \"$ac_compile\"") >&5
3473 (eval $ac_compile) 2>&5
3475 echo "$as_me:3475: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try='test -s conftest.$ac_objext'
3478 { (eval echo "$as_me:3478: \"$ac_try\"") >&5
3481 echo "$as_me:3481: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 # It does; now see whether it defined to BIG_ENDIAN or not.
3484 cat >conftest.$ac_ext <<_ACEOF
3485 #line 3485 "configure"
3486 #include "confdefs.h"
3487 #include <sys/types.h>
3488 #include <sys/param.h>
3493 #if BYTE_ORDER != BIG_ENDIAN
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:3502: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>&5
3505 echo "$as_me:3505: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:3508: \"$ac_try\"") >&5
3511 echo "$as_me:3511: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 ac_cv_c_bigendian=yes
3515 echo "$as_me: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3517 ac_cv_c_bigendian=no
3519 rm -f conftest.$ac_objext conftest.$ac_ext
3521 echo "$as_me: failed program was:" >&5
3522 cat conftest.$ac_ext >&5
3524 rm -f conftest.$ac_objext conftest.$ac_ext
3525 if test $ac_cv_c_bigendian = unknown; then
3526 if test "$cross_compiling" = yes; then
3527 { { echo "$as_me:3527: error: cannot run test program while cross compiling" >&5
3528 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3529 { (exit 1); exit 1; }; }
3531 cat >conftest.$ac_ext <<_ACEOF
3532 #line 3532 "configure"
3533 #include "confdefs.h"
3537 /* Are we little or big endian? From Harbison&Steele. */
3541 char c[sizeof (long)];
3544 exit (u.c[sizeof (long) - 1] == 1);
3547 rm -f conftest$ac_exeext
3548 if { (eval echo "$as_me:3548: \"$ac_link\"") >&5
3549 (eval $ac_link) 2>&5
3551 echo "$as_me:3551: \$? = $ac_status" >&5
3552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3553 { (eval echo "$as_me:3553: \"$ac_try\"") >&5
3556 echo "$as_me:3556: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3558 ac_cv_c_bigendian=no
3560 echo "$as_me: program exited with status $ac_status" >&5
3561 echo "$as_me: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3563 ac_cv_c_bigendian=yes
3565 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3569 echo "$as_me:3569: result: $ac_cv_c_bigendian" >&5
3570 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3571 if test $ac_cv_c_bigendian = yes; then
3573 cat >>confdefs.h <<\EOF
3574 #define WORDS_BIGENDIAN 1
3579 echo "$as_me:3579: checking whether preprocessor accepts -MM or -M" >&5
3580 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
3581 if test "${ucsim_cv_MM+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 echo "#include <stdio.h>" >_test_.c
3586 $CXXCPP -v -MM _test_.c 1>&5 2>&5
3587 if test "$?" = "0"; then
3594 echo "$as_me:3594: result: $ucsim_cv_MM" >&5
3595 echo "${ECHO_T}$ucsim_cv_MM" >&6
3596 M_OR_MM=$ucsim_cv_MM
3598 # This is the first time when CFLAGS are set/modified!!
3600 echo "$as_me:3600: checking whether $CXX accepts -ggdb" >&5
3601 echo $ECHO_N "checking whether $CXX accepts -ggdb... $ECHO_C" >&6
3602 if test "${ucsim_cv_CXXggdb+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
3610 if test "$?" = "0"; then
3611 ucsim_cv_CXXggdb="yes"
3613 ucsim_cv_CXXggdb="no"
3615 rm -f _test_.* a.out
3617 echo "$as_me:3617: result: $ucsim_cv_CXXggdb" >&5
3618 echo "${ECHO_T}$ucsim_cv_CXXggdb" >&6
3620 if test "$ucsim_cv_CXXggdb" = "yes"; then
3621 if test "$CXXFLAGS"x = x ;then
3624 CXXFLAGS="$CXXFLAGS -ggdb"
3628 echo "$as_me:3628: checking whether $CXX accepts -pipe" >&5
3629 echo $ECHO_N "checking whether $CXX accepts -pipe... $ECHO_C" >&6
3630 if test "${ucsim_cv_CXXpipe+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 $CXX -v -pipe -c _test_.c 1>&5 2>&5
3638 if test "$?" = "0"; then
3639 ucsim_cv_CXXpipe="yes"
3641 ucsim_cv_CXXpipe="no"
3643 rm -f _test_.* a.out
3645 echo "$as_me:3645: result: $ucsim_cv_CXXpipe" >&5
3646 echo "${ECHO_T}$ucsim_cv_CXXpipe" >&6
3648 if test "$ucsim_cv_CXXpipe" = "yes"; then
3649 CXXFLAGS="$CXXFLAGS -pipe"
3655 echo "$as_me:3655: checking whether $CXX accepts -fPIC" >&5
3656 echo $ECHO_N "checking whether $CXX accepts -fPIC... $ECHO_C" >&6
3657 if test "${ucsim_cv_CXXfPIC+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 $CXX -v -fPIC -c _test_.c 1>&5 2>&5
3665 if test "$?" = "0"; then
3666 ucsim_cv_CXXfPIC="yes"
3668 ucsim_cv_CXXfPIC="no"
3670 rm -f _test_.* a.out
3672 echo "$as_me:3672: result: $ucsim_cv_CXXfPIC" >&5
3673 echo "${ECHO_T}$ucsim_cv_CXXfPIC" >&6
3675 if test "$ucsim_cv_CXXfPIC" = "yes"; then
3679 echo "$as_me:3679: checking whether $CXX accepts -fpic" >&5
3680 echo $ECHO_N "checking whether $CXX accepts -fpic... $ECHO_C" >&6
3681 if test "${ucsim_cv_CXXfpic+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 $CXX -v -fpic -c _test_.c 1>&5 2>&5
3689 if test "$?" = "0"; then
3690 ucsim_cv_CXXfpic="yes"
3692 ucsim_cv_CXXfpic="no"
3694 rm -f _test_.* a.out
3696 echo "$as_me:3696: result: $ucsim_cv_CXXfpic" >&5
3697 echo "${ECHO_T}$ucsim_cv_CXXfpic" >&6
3699 if test "$ucsim_cv_CXXfpic" = "yes"; then
3703 if test "$PICOPT"x != "x"; then
3706 # If this is Cygwin neither use Position Independant Code
3708 # Quick + dirty by Bernhard
3709 if $CXX -v 2>&1 | grep -i cygwin 1>&5 2>&5; then
3714 # Checks for typedefs, structures, and compiler characteristics.
3715 # ===========================================================================
3717 echo "$as_me:3717: checking return type of signal handlers" >&5
3718 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3719 if test "${ac_cv_type_signal+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 cat >conftest.$ac_ext <<_ACEOF
3723 #line 3723 "configure"
3724 #include "confdefs.h"
3725 #include <sys/types.h>
3731 extern "C" void (*signal (int, void (*)(int)))(int);
3733 void (*signal ()) ();
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:3745: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>&5
3748 echo "$as_me:3748: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 { ac_try='test -s conftest.$ac_objext'
3751 { (eval echo "$as_me:3751: \"$ac_try\"") >&5
3754 echo "$as_me:3754: \$? = $ac_status" >&5
3755 (exit $ac_status); }; }; then
3756 ac_cv_type_signal=void
3758 echo "$as_me: failed program was:" >&5
3759 cat conftest.$ac_ext >&5
3760 ac_cv_type_signal=int
3762 rm -f conftest.$ac_objext conftest.$ac_ext
3764 echo "$as_me:3764: result: $ac_cv_type_signal" >&5
3765 echo "${ECHO_T}$ac_cv_type_signal" >&6
3767 cat >>confdefs.h <<EOF
3768 #define RETSIGTYPE $ac_cv_type_signal
3771 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3773 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3774 inttypes.h stdint.h unistd.h
3776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3777 echo "$as_me:3777: checking for $ac_header" >&5
3778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 cat >conftest.$ac_ext <<_ACEOF
3783 #line 3783 "configure"
3784 #include "confdefs.h"
3785 $ac_includes_default
3786 #include <$ac_header>
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:3789: \"$ac_compile\"") >&5
3790 (eval $ac_compile) 2>&5
3792 echo "$as_me:3792: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -s conftest.$ac_objext'
3795 { (eval echo "$as_me:3795: \"$ac_try\"") >&5
3798 echo "$as_me:3798: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 eval "$as_ac_Header=yes"
3802 echo "$as_me: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 eval "$as_ac_Header=no"
3806 rm -f conftest.$ac_objext conftest.$ac_ext
3808 echo "$as_me:3808: result: `eval echo '${'$as_ac_Header'}'`" >&5
3809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3811 cat >>confdefs.h <<EOF
3812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3818 echo "$as_me:3818: checking for char" >&5
3819 echo $ECHO_N "checking for char... $ECHO_C" >&6
3820 if test "${ac_cv_type_char+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 cat >conftest.$ac_ext <<_ACEOF
3824 #line 3824 "configure"
3825 #include "confdefs.h"
3826 $ac_includes_default
3838 rm -f conftest.$ac_objext
3839 if { (eval echo "$as_me:3839: \"$ac_compile\"") >&5
3840 (eval $ac_compile) 2>&5
3842 echo "$as_me:3842: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:3845: \"$ac_try\"") >&5
3848 echo "$as_me:3848: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3852 echo "$as_me: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3856 rm -f conftest.$ac_objext conftest.$ac_ext
3858 echo "$as_me:3858: result: $ac_cv_type_char" >&5
3859 echo "${ECHO_T}$ac_cv_type_char" >&6
3861 echo "$as_me:3861: checking size of char" >&5
3862 echo $ECHO_N "checking size of char... $ECHO_C" >&6
3863 if test "${ac_cv_sizeof_char+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 if test "$ac_cv_type_char" = yes; then
3867 if test "$cross_compiling" = yes; then
3868 # Depending upon the size, compute the lo and hi bounds.
3869 cat >conftest.$ac_ext <<_ACEOF
3870 #line 3870 "configure"
3871 #include "confdefs.h"
3872 $ac_includes_default
3876 int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
3881 rm -f conftest.$ac_objext
3882 if { (eval echo "$as_me:3882: \"$ac_compile\"") >&5
3883 (eval $ac_compile) 2>&5
3885 echo "$as_me:3885: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -s conftest.$ac_objext'
3888 { (eval echo "$as_me:3888: \"$ac_try\"") >&5
3891 echo "$as_me:3891: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3895 cat >conftest.$ac_ext <<_ACEOF
3896 #line 3896 "configure"
3897 #include "confdefs.h"
3898 $ac_includes_default
3902 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
3907 rm -f conftest.$ac_objext
3908 if { (eval echo "$as_me:3908: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>&5
3911 echo "$as_me:3911: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try='test -s conftest.$ac_objext'
3914 { (eval echo "$as_me:3914: \"$ac_try\"") >&5
3917 echo "$as_me:3917: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_hi=$ac_mid; break
3921 echo "$as_me: failed program was:" >&5
3922 cat conftest.$ac_ext >&5
3923 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3925 rm -f conftest.$ac_objext conftest.$ac_ext
3928 echo "$as_me: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3932 cat >conftest.$ac_ext <<_ACEOF
3933 #line 3933 "configure"
3934 #include "confdefs.h"
3935 $ac_includes_default
3939 int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
3944 rm -f conftest.$ac_objext
3945 if { (eval echo "$as_me:3945: \"$ac_compile\"") >&5
3946 (eval $ac_compile) 2>&5
3948 echo "$as_me:3948: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try='test -s conftest.$ac_objext'
3951 { (eval echo "$as_me:3951: \"$ac_try\"") >&5
3954 echo "$as_me:3954: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 ac_lo=$ac_mid; break
3958 echo "$as_me: failed program was:" >&5
3959 cat conftest.$ac_ext >&5
3960 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3962 rm -f conftest.$ac_objext conftest.$ac_ext
3965 rm -f conftest.$ac_objext conftest.$ac_ext
3966 # Binary search between lo and hi bounds.
3967 while test "x$ac_lo" != "x$ac_hi"; do
3968 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3969 cat >conftest.$ac_ext <<_ACEOF
3970 #line 3970 "configure"
3971 #include "confdefs.h"
3972 $ac_includes_default
3976 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
3981 rm -f conftest.$ac_objext
3982 if { (eval echo "$as_me:3982: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>&5
3985 echo "$as_me:3985: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:3988: \"$ac_try\"") >&5
3991 echo "$as_me:3991: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3995 echo "$as_me: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3997 ac_lo=`expr $ac_mid + 1`
3999 rm -f conftest.$ac_objext conftest.$ac_ext
4001 ac_cv_sizeof_char=$ac_lo
4003 if test "$cross_compiling" = yes; then
4004 { { echo "$as_me:4004: error: cannot run test program while cross compiling" >&5
4005 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4006 { (exit 1); exit 1; }; }
4008 cat >conftest.$ac_ext <<_ACEOF
4009 #line 4009 "configure"
4010 #include "confdefs.h"
4011 $ac_includes_default
4015 FILE *f = fopen ("conftest.val", "w");
4018 fprintf (f, "%d", (sizeof (char)));
4024 rm -f conftest$ac_exeext
4025 if { (eval echo "$as_me:4025: \"$ac_link\"") >&5
4026 (eval $ac_link) 2>&5
4028 echo "$as_me:4028: \$? = $ac_status" >&5
4029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4030 { (eval echo "$as_me:4030: \"$ac_try\"") >&5
4033 echo "$as_me:4033: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 ac_cv_sizeof_char=`cat conftest.val`
4037 echo "$as_me: program exited with status $ac_status" >&5
4038 echo "$as_me: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4041 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4049 echo "$as_me:4049: result: $ac_cv_sizeof_char" >&5
4050 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4051 cat >>confdefs.h <<EOF
4052 #define SIZEOF_CHAR $ac_cv_sizeof_char
4055 echo "$as_me:4055: checking for short" >&5
4056 echo $ECHO_N "checking for short... $ECHO_C" >&6
4057 if test "${ac_cv_type_short+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 cat >conftest.$ac_ext <<_ACEOF
4061 #line 4061 "configure"
4062 #include "confdefs.h"
4063 $ac_includes_default
4075 rm -f conftest.$ac_objext
4076 if { (eval echo "$as_me:4076: \"$ac_compile\"") >&5
4077 (eval $ac_compile) 2>&5
4079 echo "$as_me:4079: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -s conftest.$ac_objext'
4082 { (eval echo "$as_me:4082: \"$ac_try\"") >&5
4085 echo "$as_me:4085: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_type_short=yes
4089 echo "$as_me: failed program was:" >&5
4090 cat conftest.$ac_ext >&5
4093 rm -f conftest.$ac_objext conftest.$ac_ext
4095 echo "$as_me:4095: result: $ac_cv_type_short" >&5
4096 echo "${ECHO_T}$ac_cv_type_short" >&6
4098 echo "$as_me:4098: checking size of short" >&5
4099 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4100 if test "${ac_cv_sizeof_short+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 if test "$ac_cv_type_short" = yes; then
4104 if test "$cross_compiling" = yes; then
4105 # Depending upon the size, compute the lo and hi bounds.
4106 cat >conftest.$ac_ext <<_ACEOF
4107 #line 4107 "configure"
4108 #include "confdefs.h"
4109 $ac_includes_default
4113 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
4118 rm -f conftest.$ac_objext
4119 if { (eval echo "$as_me:4119: \"$ac_compile\"") >&5
4120 (eval $ac_compile) 2>&5
4122 echo "$as_me:4122: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -s conftest.$ac_objext'
4125 { (eval echo "$as_me:4125: \"$ac_try\"") >&5
4128 echo "$as_me:4128: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4132 cat >conftest.$ac_ext <<_ACEOF
4133 #line 4133 "configure"
4134 #include "confdefs.h"
4135 $ac_includes_default
4139 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
4144 rm -f conftest.$ac_objext
4145 if { (eval echo "$as_me:4145: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>&5
4148 echo "$as_me:4148: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:4151: \"$ac_try\"") >&5
4154 echo "$as_me:4154: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_hi=$ac_mid; break
4158 echo "$as_me: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4160 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4162 rm -f conftest.$ac_objext conftest.$ac_ext
4165 echo "$as_me: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4169 cat >conftest.$ac_ext <<_ACEOF
4170 #line 4170 "configure"
4171 #include "confdefs.h"
4172 $ac_includes_default
4176 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
4181 rm -f conftest.$ac_objext
4182 if { (eval echo "$as_me:4182: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>&5
4185 echo "$as_me:4185: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:4188: \"$ac_try\"") >&5
4191 echo "$as_me:4191: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_lo=$ac_mid; break
4195 echo "$as_me: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4197 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4199 rm -f conftest.$ac_objext conftest.$ac_ext
4202 rm -f conftest.$ac_objext conftest.$ac_ext
4203 # Binary search between lo and hi bounds.
4204 while test "x$ac_lo" != "x$ac_hi"; do
4205 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4206 cat >conftest.$ac_ext <<_ACEOF
4207 #line 4207 "configure"
4208 #include "confdefs.h"
4209 $ac_includes_default
4213 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:4219: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>&5
4222 echo "$as_me:4222: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:4225: \"$ac_try\"") >&5
4228 echo "$as_me:4228: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4232 echo "$as_me: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 ac_lo=`expr $ac_mid + 1`
4236 rm -f conftest.$ac_objext conftest.$ac_ext
4238 ac_cv_sizeof_short=$ac_lo
4240 if test "$cross_compiling" = yes; then
4241 { { echo "$as_me:4241: error: cannot run test program while cross compiling" >&5
4242 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4243 { (exit 1); exit 1; }; }
4245 cat >conftest.$ac_ext <<_ACEOF
4246 #line 4246 "configure"
4247 #include "confdefs.h"
4248 $ac_includes_default
4252 FILE *f = fopen ("conftest.val", "w");
4255 fprintf (f, "%d", (sizeof (short)));
4261 rm -f conftest$ac_exeext
4262 if { (eval echo "$as_me:4262: \"$ac_link\"") >&5
4263 (eval $ac_link) 2>&5
4265 echo "$as_me:4265: \$? = $ac_status" >&5
4266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4267 { (eval echo "$as_me:4267: \"$ac_try\"") >&5
4270 echo "$as_me:4270: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 ac_cv_sizeof_short=`cat conftest.val`
4274 echo "$as_me: program exited with status $ac_status" >&5
4275 echo "$as_me: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4278 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4283 ac_cv_sizeof_short=0
4286 echo "$as_me:4286: result: $ac_cv_sizeof_short" >&5
4287 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4288 cat >>confdefs.h <<EOF
4289 #define SIZEOF_SHORT $ac_cv_sizeof_short
4292 echo "$as_me:4292: checking for int" >&5
4293 echo $ECHO_N "checking for int... $ECHO_C" >&6
4294 if test "${ac_cv_type_int+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 cat >conftest.$ac_ext <<_ACEOF
4298 #line 4298 "configure"
4299 #include "confdefs.h"
4300 $ac_includes_default
4312 rm -f conftest.$ac_objext
4313 if { (eval echo "$as_me:4313: \"$ac_compile\"") >&5
4314 (eval $ac_compile) 2>&5
4316 echo "$as_me:4316: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:4319: \"$ac_try\"") >&5
4322 echo "$as_me:4322: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4326 echo "$as_me: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4330 rm -f conftest.$ac_objext conftest.$ac_ext
4332 echo "$as_me:4332: result: $ac_cv_type_int" >&5
4333 echo "${ECHO_T}$ac_cv_type_int" >&6
4335 echo "$as_me:4335: checking size of int" >&5
4336 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4337 if test "${ac_cv_sizeof_int+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 if test "$ac_cv_type_int" = yes; then
4341 if test "$cross_compiling" = yes; then
4342 # Depending upon the size, compute the lo and hi bounds.
4343 cat >conftest.$ac_ext <<_ACEOF
4344 #line 4344 "configure"
4345 #include "confdefs.h"
4346 $ac_includes_default
4350 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:4356: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>&5
4359 echo "$as_me:4359: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (eval echo "$as_me:4362: \"$ac_try\"") >&5
4365 echo "$as_me:4365: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4369 cat >conftest.$ac_ext <<_ACEOF
4370 #line 4370 "configure"
4371 #include "confdefs.h"
4372 $ac_includes_default
4376 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
4381 rm -f conftest.$ac_objext
4382 if { (eval echo "$as_me:4382: \"$ac_compile\"") >&5
4383 (eval $ac_compile) 2>&5
4385 echo "$as_me:4385: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (eval echo "$as_me:4388: \"$ac_try\"") >&5
4391 echo "$as_me:4391: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_hi=$ac_mid; break
4395 echo "$as_me: failed program was:" >&5
4396 cat conftest.$ac_ext >&5
4397 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4399 rm -f conftest.$ac_objext conftest.$ac_ext
4402 echo "$as_me: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4406 cat >conftest.$ac_ext <<_ACEOF
4407 #line 4407 "configure"
4408 #include "confdefs.h"
4409 $ac_includes_default
4413 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:4419: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>&5
4422 echo "$as_me:4422: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:4425: \"$ac_try\"") >&5
4428 echo "$as_me:4428: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 ac_lo=$ac_mid; break
4432 echo "$as_me: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4434 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4436 rm -f conftest.$ac_objext conftest.$ac_ext
4439 rm -f conftest.$ac_objext conftest.$ac_ext
4440 # Binary search between lo and hi bounds.
4441 while test "x$ac_lo" != "x$ac_hi"; do
4442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4443 cat >conftest.$ac_ext <<_ACEOF
4444 #line 4444 "configure"
4445 #include "confdefs.h"
4446 $ac_includes_default
4450 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
4455 rm -f conftest.$ac_objext
4456 if { (eval echo "$as_me:4456: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>&5
4459 echo "$as_me:4459: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -s conftest.$ac_objext'
4462 { (eval echo "$as_me:4462: \"$ac_try\"") >&5
4465 echo "$as_me:4465: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4469 echo "$as_me: failed program was:" >&5
4470 cat conftest.$ac_ext >&5
4471 ac_lo=`expr $ac_mid + 1`
4473 rm -f conftest.$ac_objext conftest.$ac_ext
4475 ac_cv_sizeof_int=$ac_lo
4477 if test "$cross_compiling" = yes; then
4478 { { echo "$as_me:4478: error: cannot run test program while cross compiling" >&5
4479 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4480 { (exit 1); exit 1; }; }
4482 cat >conftest.$ac_ext <<_ACEOF
4483 #line 4483 "configure"
4484 #include "confdefs.h"
4485 $ac_includes_default
4489 FILE *f = fopen ("conftest.val", "w");
4492 fprintf (f, "%d", (sizeof (int)));
4498 rm -f conftest$ac_exeext
4499 if { (eval echo "$as_me:4499: \"$ac_link\"") >&5
4500 (eval $ac_link) 2>&5
4502 echo "$as_me:4502: \$? = $ac_status" >&5
4503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4504 { (eval echo "$as_me:4504: \"$ac_try\"") >&5
4507 echo "$as_me:4507: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 ac_cv_sizeof_int=`cat conftest.val`
4511 echo "$as_me: program exited with status $ac_status" >&5
4512 echo "$as_me: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4515 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4523 echo "$as_me:4523: result: $ac_cv_sizeof_int" >&5
4524 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4525 cat >>confdefs.h <<EOF
4526 #define SIZEOF_INT $ac_cv_sizeof_int
4529 echo "$as_me:4529: checking for long" >&5
4530 echo $ECHO_N "checking for long... $ECHO_C" >&6
4531 if test "${ac_cv_type_long+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 cat >conftest.$ac_ext <<_ACEOF
4535 #line 4535 "configure"
4536 #include "confdefs.h"
4537 $ac_includes_default
4549 rm -f conftest.$ac_objext
4550 if { (eval echo "$as_me:4550: \"$ac_compile\"") >&5
4551 (eval $ac_compile) 2>&5
4553 echo "$as_me:4553: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:4556: \"$ac_try\"") >&5
4559 echo "$as_me:4559: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4563 echo "$as_me: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4567 rm -f conftest.$ac_objext conftest.$ac_ext
4569 echo "$as_me:4569: result: $ac_cv_type_long" >&5
4570 echo "${ECHO_T}$ac_cv_type_long" >&6
4572 echo "$as_me:4572: checking size of long" >&5
4573 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4574 if test "${ac_cv_sizeof_long+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 if test "$ac_cv_type_long" = yes; then
4578 if test "$cross_compiling" = yes; then
4579 # Depending upon the size, compute the lo and hi bounds.
4580 cat >conftest.$ac_ext <<_ACEOF
4581 #line 4581 "configure"
4582 #include "confdefs.h"
4583 $ac_includes_default
4587 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
4592 rm -f conftest.$ac_objext
4593 if { (eval echo "$as_me:4593: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>&5
4596 echo "$as_me:4596: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:4599: \"$ac_try\"") >&5
4602 echo "$as_me:4602: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4606 cat >conftest.$ac_ext <<_ACEOF
4607 #line 4607 "configure"
4608 #include "confdefs.h"
4609 $ac_includes_default
4613 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4618 rm -f conftest.$ac_objext
4619 if { (eval echo "$as_me:4619: \"$ac_compile\"") >&5
4620 (eval $ac_compile) 2>&5
4622 echo "$as_me:4622: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -s conftest.$ac_objext'
4625 { (eval echo "$as_me:4625: \"$ac_try\"") >&5
4628 echo "$as_me:4628: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 ac_hi=$ac_mid; break
4632 echo "$as_me: failed program was:" >&5
4633 cat conftest.$ac_ext >&5
4634 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4636 rm -f conftest.$ac_objext conftest.$ac_ext
4639 echo "$as_me: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4643 cat >conftest.$ac_ext <<_ACEOF
4644 #line 4644 "configure"
4645 #include "confdefs.h"
4646 $ac_includes_default
4650 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:4656: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>&5
4659 echo "$as_me:4659: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -s conftest.$ac_objext'
4662 { (eval echo "$as_me:4662: \"$ac_try\"") >&5
4665 echo "$as_me:4665: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 ac_lo=$ac_mid; break
4669 echo "$as_me: failed program was:" >&5
4670 cat conftest.$ac_ext >&5
4671 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4673 rm -f conftest.$ac_objext conftest.$ac_ext
4676 rm -f conftest.$ac_objext conftest.$ac_ext
4677 # Binary search between lo and hi bounds.
4678 while test "x$ac_lo" != "x$ac_hi"; do
4679 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4680 cat >conftest.$ac_ext <<_ACEOF
4681 #line 4681 "configure"
4682 #include "confdefs.h"
4683 $ac_includes_default
4687 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:4693: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>&5
4696 echo "$as_me:4696: \$? = $ac_status" >&5
4697 (exit $ac_status); } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:4699: \"$ac_try\"") >&5
4702 echo "$as_me:4702: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4706 echo "$as_me: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4708 ac_lo=`expr $ac_mid + 1`
4710 rm -f conftest.$ac_objext conftest.$ac_ext
4712 ac_cv_sizeof_long=$ac_lo
4714 if test "$cross_compiling" = yes; then
4715 { { echo "$as_me:4715: error: cannot run test program while cross compiling" >&5
4716 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4717 { (exit 1); exit 1; }; }
4719 cat >conftest.$ac_ext <<_ACEOF
4720 #line 4720 "configure"
4721 #include "confdefs.h"
4722 $ac_includes_default
4726 FILE *f = fopen ("conftest.val", "w");
4729 fprintf (f, "%d", (sizeof (long)));
4735 rm -f conftest$ac_exeext
4736 if { (eval echo "$as_me:4736: \"$ac_link\"") >&5
4737 (eval $ac_link) 2>&5
4739 echo "$as_me:4739: \$? = $ac_status" >&5
4740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4741 { (eval echo "$as_me:4741: \"$ac_try\"") >&5
4744 echo "$as_me:4744: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 ac_cv_sizeof_long=`cat conftest.val`
4748 echo "$as_me: program exited with status $ac_status" >&5
4749 echo "$as_me: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4752 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4760 echo "$as_me:4760: result: $ac_cv_sizeof_long" >&5
4761 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4762 cat >>confdefs.h <<EOF
4763 #define SIZEOF_LONG $ac_cv_sizeof_long
4766 echo "$as_me:4766: checking for long long" >&5
4767 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4768 if test "${ac_cv_type_long_long+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 cat >conftest.$ac_ext <<_ACEOF
4772 #line 4772 "configure"
4773 #include "confdefs.h"
4774 $ac_includes_default
4778 if ((long long *) 0)
4780 if (sizeof (long long))
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:4787: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>&5
4790 echo "$as_me:4790: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -s conftest.$ac_objext'
4793 { (eval echo "$as_me:4793: \"$ac_try\"") >&5
4796 echo "$as_me:4796: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4798 ac_cv_type_long_long=yes
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4802 ac_cv_type_long_long=no
4804 rm -f conftest.$ac_objext conftest.$ac_ext
4806 echo "$as_me:4806: result: $ac_cv_type_long_long" >&5
4807 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4809 echo "$as_me:4809: checking size of long long" >&5
4810 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4811 if test "${ac_cv_sizeof_long_long+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 if test "$ac_cv_type_long_long" = yes; then
4815 if test "$cross_compiling" = yes; then
4816 # Depending upon the size, compute the lo and hi bounds.
4817 cat >conftest.$ac_ext <<_ACEOF
4818 #line 4818 "configure"
4819 #include "confdefs.h"
4820 $ac_includes_default
4824 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:4830: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>&5
4833 echo "$as_me:4833: \$? = $ac_status" >&5
4834 (exit $ac_status); } &&
4835 { ac_try='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:4836: \"$ac_try\"") >&5
4839 echo "$as_me:4839: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4843 cat >conftest.$ac_ext <<_ACEOF
4844 #line 4844 "configure"
4845 #include "confdefs.h"
4846 $ac_includes_default
4850 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:4856: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>&5
4859 echo "$as_me:4859: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try='test -s conftest.$ac_objext'
4862 { (eval echo "$as_me:4862: \"$ac_try\"") >&5
4865 echo "$as_me:4865: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 ac_hi=$ac_mid; break
4869 echo "$as_me: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4871 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4873 rm -f conftest.$ac_objext conftest.$ac_ext
4876 echo "$as_me: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4880 cat >conftest.$ac_ext <<_ACEOF
4881 #line 4881 "configure"
4882 #include "confdefs.h"
4883 $ac_includes_default
4887 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
4892 rm -f conftest.$ac_objext
4893 if { (eval echo "$as_me:4893: \"$ac_compile\"") >&5
4894 (eval $ac_compile) 2>&5
4896 echo "$as_me:4896: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:4899: \"$ac_try\"") >&5
4902 echo "$as_me:4902: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_lo=$ac_mid; break
4906 echo "$as_me: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4908 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4910 rm -f conftest.$ac_objext conftest.$ac_ext
4913 rm -f conftest.$ac_objext conftest.$ac_ext
4914 # Binary search between lo and hi bounds.
4915 while test "x$ac_lo" != "x$ac_hi"; do
4916 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4917 cat >conftest.$ac_ext <<_ACEOF
4918 #line 4918 "configure"
4919 #include "confdefs.h"
4920 $ac_includes_default
4924 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
4929 rm -f conftest.$ac_objext
4930 if { (eval echo "$as_me:4930: \"$ac_compile\"") >&5
4931 (eval $ac_compile) 2>&5
4933 echo "$as_me:4933: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -s conftest.$ac_objext'
4936 { (eval echo "$as_me:4936: \"$ac_try\"") >&5
4939 echo "$as_me:4939: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4943 echo "$as_me: failed program was:" >&5
4944 cat conftest.$ac_ext >&5
4945 ac_lo=`expr $ac_mid + 1`
4947 rm -f conftest.$ac_objext conftest.$ac_ext
4949 ac_cv_sizeof_long_long=$ac_lo
4951 if test "$cross_compiling" = yes; then
4952 { { echo "$as_me:4952: error: cannot run test program while cross compiling" >&5
4953 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4954 { (exit 1); exit 1; }; }
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #line 4957 "configure"
4958 #include "confdefs.h"
4959 $ac_includes_default
4963 FILE *f = fopen ("conftest.val", "w");
4966 fprintf (f, "%d", (sizeof (long long)));
4972 rm -f conftest$ac_exeext
4973 if { (eval echo "$as_me:4973: \"$ac_link\"") >&5
4974 (eval $ac_link) 2>&5
4976 echo "$as_me:4976: \$? = $ac_status" >&5
4977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4978 { (eval echo "$as_me:4978: \"$ac_try\"") >&5
4981 echo "$as_me:4981: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_cv_sizeof_long_long=`cat conftest.val`
4985 echo "$as_me: program exited with status $ac_status" >&5
4986 echo "$as_me: failed program was:" >&5
4987 cat conftest.$ac_ext >&5
4989 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4994 ac_cv_sizeof_long_long=0
4997 echo "$as_me:4997: result: $ac_cv_sizeof_long_long" >&5
4998 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
4999 cat >>confdefs.h <<EOF
5000 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5005 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5009 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5013 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5017 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5021 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
5028 echo "$as_me:5028: checking type name for byte" >&5
5029 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
5030 TYPE_BYTE=`type_name 1`
5031 echo "$as_me:5031: result: $TYPE_BYTE" >&5
5032 echo "${ECHO_T}$TYPE_BYTE" >&6
5033 echo "$as_me:5033: checking type name for word" >&5
5034 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
5035 TYPE_WORD=`type_name 2`
5036 echo "$as_me:5036: result: $TYPE_WORD" >&5
5037 echo "${ECHO_T}$TYPE_WORD" >&6
5038 echo "$as_me:5038: checking type name for dword" >&5
5039 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
5040 TYPE_DWORD=`type_name 4`
5041 echo "$as_me:5041: result: $TYPE_DWORD" >&5
5042 echo "${ECHO_T}$TYPE_DWORD" >&6
5043 cat >>confdefs.h <<EOF
5044 #define TYPE_BYTE $TYPE_BYTE
5047 cat >>confdefs.h <<EOF
5048 #define TYPE_WORD $TYPE_WORD
5051 cat >>confdefs.h <<EOF
5052 #define TYPE_DWORD $TYPE_DWORD
5055 # Generating output files
5056 # ===========================================================================
5058 ac_config_files="$ac_config_files main.mk:main_in.mk sim.src/Makefile cmd.src/Makefile s51.src/Makefile avr.src/Makefile z80.src/Makefile gui.src/Makefile gui.src/serio.src/Makefile doc/Makefile"
5059 cat >confcache <<\_ACEOF
5060 # This file is a shell script that caches the results of configure
5061 # tests run on this system so they can be shared between configure
5062 # scripts and configure runs, see configure's option --config-cache.
5063 # It is not useful on other systems. If it contains results you don't
5064 # want to keep, you may remove or edit it.
5066 # config.status only pays attention to the cache file if you give it
5067 # the --recheck option to rerun configure.
5069 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5070 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5075 # The following way of writing the cache mishandles newlines in values,
5076 # but we know of no workaround that is simple, portable, and efficient.
5077 # So, don't put newlines in cache variables' values.
5078 # Ultrix sh set writes to stderr and can't be redirected directly,
5079 # and sets the high bit in the cache file unless we assign to the vars.
5082 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5084 # `set' does not quote correctly, so add quotes (double-quote
5085 # substitution turns \\\\ into \\, and sed turns \\ into \).
5088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5091 # `set' quotes correctly as required by POSIX, so do not add quotes.
5093 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5100 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5102 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5104 if cmp -s $cache_file confcache; then :; else
5105 if test -w $cache_file; then
5106 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5107 cat confcache >$cache_file
5109 echo "not updating unwritable cache $cache_file"
5114 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5115 # Let make expand exec_prefix.
5116 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5118 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5119 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5120 # trailing colons and then remove the whole line if VPATH becomes empty
5121 # (actually we leave an empty line to preserve line numbers).
5122 if test "x$srcdir" = x.; then
5123 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5124 s/:*\$(srcdir):*/:/;
5125 s/:*\${srcdir}:*/:/;
5127 s/^\([^=]*=[ ]*\):*/\1/;
5133 DEFS=-DHAVE_CONFIG_H
5135 : ${CONFIG_STATUS=./config.status}
5136 ac_clean_files_save=$ac_clean_files
5137 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5138 { echo "$as_me:5138: creating $CONFIG_STATUS" >&5
5139 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5140 cat >$CONFIG_STATUS <<_ACEOF
5142 # Generated automatically by configure.
5143 # Run this file to recreate the current configuration.
5144 # Compiler output produced by configure, useful for debugging
5145 # configure, is in config.log if it exists.
5148 SHELL=\${CONFIG_SHELL-$SHELL}
5149 ac_cs_invocation="\$0 \$@"
5153 cat >>$CONFIG_STATUS <<\_ACEOF
5154 # Be Bourne compatible
5155 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5158 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5162 # Name of the executable.
5163 as_me=`echo "$0" |sed 's,.*[\\/],,'`
5165 if expr a : '\(a\)' >/dev/null 2>&1; then
5171 rm -f conf$$ conf$$.exe conf$$.file
5173 if ln -s conf$$.file conf$$ 2>/dev/null; then
5174 # We could just check for DJGPP; but this test a) works b) is more generic
5175 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5176 if test -f conf$$.exe; then
5177 # Don't use ln at all; we don't have any links
5182 elif ln conf$$.file conf$$ 2>/dev/null; then
5187 rm -f conf$$ conf$$.exe conf$$.file
5189 as_executable_p="test -f"
5191 # Support unset when possible.
5192 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5199 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5200 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5201 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5202 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5203 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5204 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5205 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5206 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5209 # We need space, tab and new line, in precisely that order.
5215 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5221 # Files that config.status was made for.
5222 if test -n "$ac_config_files"; then
5223 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5226 if test -n "$ac_config_headers"; then
5227 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5230 if test -n "$ac_config_links"; then
5231 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5234 if test -n "$ac_config_commands"; then
5235 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5238 cat >>$CONFIG_STATUS <<\EOF
5241 \`$as_me' instantiates files from templates according to the
5242 current configuration.
5244 Usage: $0 [OPTIONS] [FILE]...
5246 -h, --help print this help, then exit
5247 -V, --version print version number, then exit
5248 -d, --debug don't remove temporary files
5249 --recheck update $as_me by reconfiguring in the same conditions
5250 --file=FILE[:TEMPLATE]
5251 instantiate the configuration file FILE
5252 --header=FILE[:TEMPLATE]
5253 instantiate the configuration header FILE
5255 Configuration files:
5258 Configuration headers:
5261 Report bugs to <bug-autoconf@gnu.org>."
5264 cat >>$CONFIG_STATUS <<EOF
5267 configured by $0, generated by GNU Autoconf 2.52,
5268 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5270 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5271 Free Software Foundation, Inc.
5272 This config.status script is free software; the Free Software Foundation
5273 gives unlimited permission to copy, distribute and modify it."
5278 cat >>$CONFIG_STATUS <<\EOF
5279 # If no file are specified by the user, then we need to provide default
5280 # value. By we need to know if files were specified by the user.
5286 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5287 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5289 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5293 *) # This is not an option, so the user has probably given explicit
5295 ac_need_defaults=false;;
5299 # Handling of the options.
5301 cat >>$CONFIG_STATUS <<EOF
5302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5303 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5304 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5306 cat >>$CONFIG_STATUS <<\EOF
5307 --version | --vers* | -V )
5308 echo "$ac_cs_version"; exit 0 ;;
5310 # Conflict between --help and --header
5311 { { echo "$as_me:5311: error: ambiguous option: $1
5312 Try \`$0 --help' for more information." >&5
5313 echo "$as_me: error: ambiguous option: $1
5314 Try \`$0 --help' for more information." >&2;}
5315 { (exit 1); exit 1; }; };;
5316 --help | --hel | -h )
5317 echo "$ac_cs_usage"; exit 0 ;;
5318 --debug | --d* | -d )
5320 --file | --fil | --fi | --f )
5322 CONFIG_FILES="$CONFIG_FILES $1"
5323 ac_need_defaults=false;;
5324 --header | --heade | --head | --hea )
5326 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5327 ac_need_defaults=false;;
5330 -*) { { echo "$as_me:5330: error: unrecognized option: $1
5331 Try \`$0 --help' for more information." >&5
5332 echo "$as_me: error: unrecognized option: $1
5333 Try \`$0 --help' for more information." >&2;}
5334 { (exit 1); exit 1; }; } ;;
5336 *) ac_config_targets="$ac_config_targets $1" ;;
5345 ## ----------------------- ##
5346 ## Running config.status. ##
5347 ## ----------------------- ##
5349 This file was extended by $as_me 2.52, executed with
5350 CONFIG_FILES = $CONFIG_FILES
5351 CONFIG_HEADERS = $CONFIG_HEADERS
5352 CONFIG_LINKS = $CONFIG_LINKS
5353 CONFIG_COMMANDS = $CONFIG_COMMANDS
5355 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5360 cat >>$CONFIG_STATUS <<\EOF
5361 for ac_config_target in $ac_config_targets
5363 case "$ac_config_target" in
5364 # Handling of arguments.
5365 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
5366 "sim.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES sim.src/Makefile" ;;
5367 "cmd.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd.src/Makefile" ;;
5368 "s51.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES s51.src/Makefile" ;;
5369 "avr.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES avr.src/Makefile" ;;
5370 "z80.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES z80.src/Makefile" ;;
5371 "gui.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/Makefile" ;;
5372 "gui.src/serio.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/serio.src/Makefile" ;;
5373 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5374 "ddconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ddconfig.h:ddconfig_in.h" ;;
5375 *) { { echo "$as_me:5375: error: invalid argument: $ac_config_target" >&5
5376 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5377 { (exit 1); exit 1; }; };;
5381 # If the user did not use the arguments to specify the items to instantiate,
5382 # then the envvar interface is used. Set only those that are not.
5383 # We use the long form for the default assignment because of an extremely
5384 # bizarre bug on SunOS 4.1.3.
5385 if $ac_need_defaults; then
5386 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5387 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5390 # Create a temporary directory, and hook for its removal unless debugging.
5393 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5394 trap '{ (exit 1); exit 1; }' 1 2 13 15
5397 # Create a (secure) tmp directory for tmp files.
5400 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5401 test -n "$tmp" && test -d "$tmp"
5404 tmp=$TMPDIR/cs$$-$RANDOM
5405 (umask 077 && mkdir $tmp)
5408 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5409 { (exit 1); exit 1; }
5414 cat >>$CONFIG_STATUS <<EOF
5417 # CONFIG_FILES section.
5420 # No need to generate the scripts if there are no CONFIG_FILES.
5421 # This happens for instance when ./config.status config.h
5422 if test -n "\$CONFIG_FILES"; then
5423 # Protect against being on the right side of a sed subst in config.status.
5424 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5425 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5426 s,@SHELL@,$SHELL,;t t
5427 s,@exec_prefix@,$exec_prefix,;t t
5428 s,@prefix@,$prefix,;t t
5429 s,@program_transform_name@,$program_transform_name,;t t
5430 s,@bindir@,$bindir,;t t
5431 s,@sbindir@,$sbindir,;t t
5432 s,@libexecdir@,$libexecdir,;t t
5433 s,@datadir@,$datadir,;t t
5434 s,@sysconfdir@,$sysconfdir,;t t
5435 s,@sharedstatedir@,$sharedstatedir,;t t
5436 s,@localstatedir@,$localstatedir,;t t
5437 s,@libdir@,$libdir,;t t
5438 s,@includedir@,$includedir,;t t
5439 s,@oldincludedir@,$oldincludedir,;t t
5440 s,@infodir@,$infodir,;t t
5441 s,@mandir@,$mandir,;t t
5442 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5443 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5444 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5445 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5446 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5447 s,@build_alias@,$build_alias,;t t
5448 s,@host_alias@,$host_alias,;t t
5449 s,@target_alias@,$target_alias,;t t
5450 s,@ECHO_C@,$ECHO_C,;t t
5451 s,@ECHO_N@,$ECHO_N,;t t
5452 s,@ECHO_T@,$ECHO_T,;t t
5453 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5457 s,@VERSION@,$VERSION,;t t
5458 s,@VERSIONHI@,$VERSIONHI,;t t
5459 s,@VERSIONLO@,$VERSIONLO,;t t
5460 s,@VERSIONP@,$VERSIONP,;t t
5462 s,@CXXFLAGS@,$CXXFLAGS,;t t
5463 s,@LDFLAGS@,$LDFLAGS,;t t
5464 s,@CPPFLAGS@,$CPPFLAGS,;t t
5465 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5466 s,@EXEEXT@,$EXEEXT,;t t
5467 s,@OBJEXT@,$OBJEXT,;t t
5468 s,@CXXCPP@,$CXXCPP,;t t
5469 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5470 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5471 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5472 s,@RANLIB@,$RANLIB,;t t
5473 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5474 s,@dl_ok@,$dl_ok,;t t
5476 s,@panel_ok@,$panel_ok,;t t
5477 s,@curses_ok@,$curses_ok,;t t
5478 s,@CURSES_LIBS@,$CURSES_LIBS,;t t
5479 s,@M_OR_MM@,$M_OR_MM,;t t
5480 s,@SHAREDLIB@,$SHAREDLIB,;t t
5481 s,@PICOPT@,$PICOPT,;t t
5486 cat >>$CONFIG_STATUS <<\EOF
5487 # Split the substitutions into bite-sized pieces for seds with
5488 # small command number limits, like on Digital OSF/1 and HP-UX.
5490 ac_sed_frag=1 # Number of current file.
5491 ac_beg=1 # First line for current file.
5492 ac_end=$ac_max_sed_lines # Line after last line for current file.
5495 while $ac_more_lines; do
5496 if test $ac_beg -gt 1; then
5497 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5499 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5501 if test ! -s $tmp/subs.frag; then
5504 # The purpose of the label and of the branching condition is to
5505 # speed up the sed processing (if there are no `@' at all, there
5506 # is no need to browse any of the substitutions).
5507 # These are the two extra sed commands mentioned above.
5509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5510 if test -z "$ac_sed_cmds"; then
5511 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5513 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5515 ac_sed_frag=`expr $ac_sed_frag + 1`
5517 ac_end=`expr $ac_end + $ac_max_sed_lines`
5520 if test -z "$ac_sed_cmds"; then
5523 fi # test -n "$CONFIG_FILES"
5526 cat >>$CONFIG_STATUS <<\EOF
5527 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5530 - | *:- | *:-:* ) # input from stdin
5532 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5534 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5536 * ) ac_file_in=$ac_file.in ;;
5539 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5540 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5541 X"$ac_file" : 'X\(//\)[^/]' \| \
5542 X"$ac_file" : 'X\(//\)$' \| \
5543 X"$ac_file" : 'X\(/\)' \| \
5544 . : '\(.\)' 2>/dev/null ||
5546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5547 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5548 /^X\(\/\/\)$/{ s//\1/; q; }
5549 /^X\(\/\).*/{ s//\1/; q; }
5551 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5553 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5557 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5558 case $as_mkdir_dir in
5559 # Skip DOS drivespec
5560 ?:) as_incr_dir=$as_mkdir_dir ;;
5562 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5563 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5568 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5569 # A "../" for each directory in $ac_dir_suffix.
5570 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5572 ac_dir_suffix= ac_dots=
5577 if test -z "$ac_dots"; then
5580 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5583 ac_srcdir=$srcdir$ac_dir_suffix;
5584 ac_top_srcdir=$srcdir ;;
5586 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5587 ac_top_srcdir=$ac_dots$srcdir ;;
5591 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5592 *) ac_INSTALL=$ac_dots$INSTALL ;;
5595 if test x"$ac_file" != x-; then
5596 { echo "$as_me:5596: creating $ac_file" >&5
5597 echo "$as_me: creating $ac_file" >&6;}
5600 # Let's still pretend it is `configure' which instantiates (i.e., don't
5601 # use $as_me), people would be surprised to read:
5602 # /* config.h. Generated automatically by config.status. */
5603 configure_input="Generated automatically from `echo $ac_file_in |
5604 sed 's,.*/,,'` by configure."
5606 # First look for the input files in the build tree, otherwise in the
5608 ac_file_inputs=`IFS=:
5609 for f in $ac_file_in; do
5611 -) echo $tmp/stdin ;;
5613 # Absolute (can't be DOS-style, as IFS=:)
5614 test -f "$f" || { { echo "$as_me:5614: error: cannot find input file: $f" >&5
5615 echo "$as_me: error: cannot find input file: $f" >&2;}
5616 { (exit 1); exit 1; }; }
5619 if test -f "$f"; then
5622 elif test -f "$srcdir/$f"; then
5627 { { echo "$as_me:5627: error: cannot find input file: $f" >&5
5628 echo "$as_me: error: cannot find input file: $f" >&2;}
5629 { (exit 1); exit 1; }; }
5632 done` || { (exit 1); exit 1; }
5634 cat >>$CONFIG_STATUS <<EOF
5638 cat >>$CONFIG_STATUS <<\EOF
5640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5641 s,@configure_input@,$configure_input,;t t
5642 s,@srcdir@,$ac_srcdir,;t t
5643 s,@top_srcdir@,$ac_top_srcdir,;t t
5644 s,@INSTALL@,$ac_INSTALL,;t t
5645 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5647 if test x"$ac_file" != x-; then
5648 mv $tmp/out $ac_file
5656 cat >>$CONFIG_STATUS <<\EOF
5659 # CONFIG_HEADER section.
5662 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5663 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5665 # ac_d sets the value in "#define NAME VALUE" lines.
5666 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5667 ac_dB='[ ].*$,\1#\2'
5670 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5671 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5672 ac_uB='$,\1#\2define\3'
5676 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5677 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5679 - | *:- | *:-:* ) # input from stdin
5681 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5682 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5683 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5684 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5685 * ) ac_file_in=$ac_file.in ;;
5688 test x"$ac_file" != x- && { echo "$as_me:5688: creating $ac_file" >&5
5689 echo "$as_me: creating $ac_file" >&6;}
5691 # First look for the input files in the build tree, otherwise in the
5693 ac_file_inputs=`IFS=:
5694 for f in $ac_file_in; do
5696 -) echo $tmp/stdin ;;
5698 # Absolute (can't be DOS-style, as IFS=:)
5699 test -f "$f" || { { echo "$as_me:5699: error: cannot find input file: $f" >&5
5700 echo "$as_me: error: cannot find input file: $f" >&2;}
5701 { (exit 1); exit 1; }; }
5704 if test -f "$f"; then
5707 elif test -f "$srcdir/$f"; then
5712 { { echo "$as_me:5712: error: cannot find input file: $f" >&5
5713 echo "$as_me: error: cannot find input file: $f" >&2;}
5714 { (exit 1); exit 1; }; }
5717 done` || { (exit 1); exit 1; }
5718 # Remove the trailing spaces.
5719 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5723 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5724 # `conftest.undefs', that substitutes the proper values into
5725 # config.h.in to produce config.h. The first handles `#define'
5726 # templates, and the second `#undef' templates.
5727 # And first: Protect against being on the right side of a sed subst in
5728 # config.status. Protect against being in an unquoted here document
5730 rm -f conftest.defines conftest.undefs
5731 # Using a here document instead of a string reduces the quoting nightmare.
5732 # Putting comments in sed scripts is not portable.
5734 # `end' is used to avoid that the second main sed command (meant for
5735 # 0-ary CPP macros) applies to n-ary macro definitions.
5736 # See the Autoconf documentation for `clear'.
5737 cat >confdef2sed.sed <<\EOF
5742 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5744 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5747 # If some macros were called several times there might be several times
5748 # the same #defines, which is useless. Nevertheless, we may not want to
5749 # sort them, since we want the *last* AC-DEFINE to be honored.
5750 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5751 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5752 rm -f confdef2sed.sed
5754 # This sed command replaces #undef with comments. This is necessary, for
5755 # example, in the case of _POSIX_SOURCE, which is predefined and required
5756 # on some systems where configure will not decide to define it.
5757 cat >>conftest.undefs <<\EOF
5758 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5761 # Break up conftest.defines because some shells have a limit on the size
5762 # of here documents, and old seds have small limits too (100 cmds).
5763 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5764 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5765 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5766 echo ' :' >>$CONFIG_STATUS
5768 while grep . conftest.defines >/dev/null
5770 # Write a limited-size here document to $tmp/defines.sed.
5771 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5772 # Speed up: don't consider the non `#define' lines.
5773 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5774 # Work around the forget-to-reset-the-flag bug.
5775 echo 't clr' >>$CONFIG_STATUS
5776 echo ': clr' >>$CONFIG_STATUS
5777 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5779 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5783 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5784 rm -f conftest.defines
5785 mv conftest.tail conftest.defines
5787 rm -f conftest.defines
5788 echo ' fi # egrep' >>$CONFIG_STATUS
5789 echo >>$CONFIG_STATUS
5791 # Break up conftest.undefs because some shells have a limit on the size
5792 # of here documents, and old seds have small limits too (100 cmds).
5793 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5795 while grep . conftest.undefs >/dev/null
5797 # Write a limited-size here document to $tmp/undefs.sed.
5798 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5799 # Speed up: don't consider the non `#undef'
5800 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5801 # Work around the forget-to-reset-the-flag bug.
5802 echo 't clr' >>$CONFIG_STATUS
5803 echo ': clr' >>$CONFIG_STATUS
5804 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5806 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5810 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5811 rm -f conftest.undefs
5812 mv conftest.tail conftest.undefs
5814 rm -f conftest.undefs
5816 cat >>$CONFIG_STATUS <<\EOF
5817 # Let's still pretend it is `configure' which instantiates (i.e., don't
5818 # use $as_me), people would be surprised to read:
5819 # /* config.h. Generated automatically by config.status. */
5820 if test x"$ac_file" = x-; then
5821 echo "/* Generated automatically by configure. */" >$tmp/config.h
5823 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5825 cat $tmp/in >>$tmp/config.h
5827 if test x"$ac_file" != x-; then
5828 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5829 { echo "$as_me:5829: $ac_file is unchanged" >&5
5830 echo "$as_me: $ac_file is unchanged" >&6;}
5832 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5833 X"$ac_file" : 'X\(//\)[^/]' \| \
5834 X"$ac_file" : 'X\(//\)$' \| \
5835 X"$ac_file" : 'X\(/\)' \| \
5836 . : '\(.\)' 2>/dev/null ||
5838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5840 /^X\(\/\/\)$/{ s//\1/; q; }
5841 /^X\(\/\).*/{ s//\1/; q; }
5843 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5845 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5849 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5850 case $as_mkdir_dir in
5851 # Skip DOS drivespec
5852 ?:) as_incr_dir=$as_mkdir_dir ;;
5854 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5855 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5862 mv $tmp/config.h $ac_file
5871 cat >>$CONFIG_STATUS <<\EOF
5873 { (exit 0); exit 0; }
5875 chmod +x $CONFIG_STATUS
5876 ac_clean_files=$ac_clean_files_save
5878 # configure is writing to config.log, and then calls config.status.
5879 # config.status does its own redirection, appending to config.log.
5880 # Unfortunately, on DOS this fails, as config.log is still kept open
5881 # by configure, so config.status won't be able to write to it; its
5882 # output is simply discarded. So we exec the FD to /dev/null,
5883 # effectively closing config.log, so it can be properly (re)opened and
5884 # appended to by config.status. When coming back to configure, we
5885 # need to make the FD available again.
5886 if test "$no_create" != yes; then
5889 $SHELL $CONFIG_STATUS || ac_cs_success=false
5891 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5892 # would make configure fail if this is the last instruction.
5893 $ac_cs_success || { (exit 1); exit 1; }
5896 #gui.src/portmon.src/Makefile
5898 # End of configure/configure.in