2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/ctsim.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AWK RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX wxconfig build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP INCLUDED_GETOPT_LONG_TRUE INCLUDED_GETOPT_LONG_FALSE DEBUG_TRUE DEBUG_FALSE lamdir mpienable cgibindir cgibinurl webdatadir webdataurl htmldir cgiprograms htmldata USE_HTML_TRUE USE_HTML_FALSE webenabled USE_LAM_TRUE USE_LAM_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_TOOLKIT_LIBS X_BASIC_LIBS NO_X_TRUE NO_X_FALSE my_includes HAVE_SGP_TRUE HAVE_SGP_FALSE HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE wxcflags wxlibs ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --program-prefix=PREFIX prepend PREFIX to installed program names
843 --program-suffix=SUFFIX append SUFFIX to installed program names
844 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 --x-includes=DIR X include files are in DIR
848 --x-libraries=DIR X library files are in DIR
851 --build=BUILD configure for building on BUILD [guessed]
852 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 if test -n "$ac_init_help"; then
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --enable-debug Turn on debugging
864 --enable-verbose-warnings
865 Enable verbose compiler warnings.
867 Enable static executables.
868 --enable-dmalloc Use dmalloc memory allocation
869 --enable-efence Use ElectricFence memory allocation
872 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
873 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
874 --with-lam=PATH Set path of LAM MPI
875 --with-ctn=PATH Set path of CTN DICOM library
876 --with-mcpu=CPU Set name of CPU for gcc -mcpu
877 --with-cgibin-dir=PATH Set path of CGI binaries directory
878 --with-cgibin-url=PATH Set URL path of CGI binaries
879 --with-webdata-dir=PATH Set path of webdata
880 --with-webdata-url=PATH Set URL path of webdata
881 --with-html-dir=PATH Set directory of html files
882 --with-x use the X Window System
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CXX C++ compiler command
892 CXXFLAGS C++ compiler flags
895 Use these variables to override the choices made by `configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
901 if test "$ac_init_help" = "recursive"; then
902 # If there are subdirs, report their specific --help.
904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905 test -d $ac_dir || continue
908 if test "$ac_dir" != .; then
909 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
910 # A "../" for each directory in $ac_dir_suffix.
911 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 ac_dir_suffix= ac_top_builddir=
917 .) # No --srcdir option. We are building in place.
919 if test -z "$ac_top_builddir"; then
922 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 [\\/]* | ?:[\\/]* ) # Absolute path.
925 ac_srcdir=$srcdir$ac_dir_suffix;
926 ac_top_srcdir=$srcdir ;;
928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
933 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
934 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
935 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
936 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.57. Invocation command line was
985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
992 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
994 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
995 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
997 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
998 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
999 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1000 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008 test -z "$as_dir" && as_dir=.
1009 echo "PATH: $as_dir"
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_must_keep_next=false
1039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1043 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1047 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1049 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050 if test $ac_must_keep_next = true; then
1051 ac_must_keep_next=false # Got value, back to normal.
1054 *=* | --config-cache | -C | -disable-* | --disable-* \
1055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057 | -with-* | --with-* | -without-* | --without-* | --x)
1058 case "$ac_configure_args0 " in
1059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1062 -* ) ac_must_keep_next=true ;;
1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066 # Get rid of the leading space.
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log. We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close' the trap.
1080 trap 'exit_status=$?
1081 # Save into config.log some information that might help in debugging.
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1091 # The following way of writing the cache mishandles newlines in values,
1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1114 for ac_var in $ac_subst_vars
1116 eval ac_val=$`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1121 if test -n "$ac_subst_files"; then
1128 for ac_var in $ac_subst_files
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -s confdefs.h; then
1143 sed "/^$/d" confdefs.h | sort
1146 test "$ac_signal" != 0 &&
1147 echo "$as_me: caught signal $ac_signal"
1148 echo "$as_me: exit $exit_status"
1150 rm -f core core.* *.core &&
1151 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1154 for ac_signal in 1 2 13 15; do
1155 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1164 # Predefined preprocessor variables.
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194 if test "x$prefix" != xNONE; then
1195 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1197 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1200 for ac_site_file in $CONFIG_SITE; do
1201 if test -r "$ac_site_file"; then
1202 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204 sed 's/^/| /' "$ac_site_file" >&5
1209 if test -r "$cache_file"; then
1210 # Some versions of bash will fail to source /dev/null (special
1211 # files actually), so we avoid doing that.
1212 if test -f "$cache_file"; then
1213 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1216 [\\/]* | ?:[\\/]* ) . $cache_file;;
1217 *) . ./$cache_file;;
1221 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1226 # Check that the precious variables saved in the cache have kept the same
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232 eval ac_new_set=\$ac_env_${ac_var}_set
1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234 eval ac_new_val="\$ac_env_${ac_var}_value"
1235 case $ac_old_set,$ac_new_set in
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1246 if test "x$ac_old_val" != "x$ac_new_val"; then
1247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1248 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1250 echo "$as_me: former value: $ac_old_val" >&2;}
1251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1252 echo "$as_me: current value: $ac_new_val" >&2;}
1253 ac_cache_corrupted=:
1256 # Pass precious variables to config.status.
1257 if test "$ac_new_set" = set; then
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 *) ac_arg=$ac_var=$ac_new_val ;;
1263 case " $ac_configure_args " in
1264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1269 if $ac_cache_corrupted; then
1270 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1273 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274 { (exit 1); exit 1; }; }
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302 am__api_version="1.4"
1304 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1305 if test -f $ac_dir/install-sh; then
1307 ac_install_sh="$ac_aux_dir/install-sh -c"
1309 elif test -f $ac_dir/install.sh; then
1311 ac_install_sh="$ac_aux_dir/install.sh -c"
1313 elif test -f $ac_dir/shtool; then
1315 ac_install_sh="$ac_aux_dir/shtool install -c"
1319 if test -z "$ac_aux_dir"; then
1320 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1321 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1322 { (exit 1); exit 1; }; }
1324 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1328 # Find a good install program. We prefer a C program (faster),
1329 # so one script is as good as another. But avoid the broken or
1330 # incompatible versions:
1331 # SysV /etc/install, /usr/sbin/install
1332 # SunOS /usr/etc/install
1333 # IRIX /sbin/install
1335 # AmigaOS /C/install, which installs bootblocks on floppy discs
1336 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1337 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1338 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1339 # ./install, which can be erroneously created by make from ./install.sh.
1340 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1341 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1342 if test -z "$INSTALL"; then
1343 if test "${ac_cv_path_install+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1350 test -z "$as_dir" && as_dir=.
1351 # Account for people who put trailing slashes in PATH elements.
1353 ./ | .// | /cC/* | \
1354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1357 # OSF1 and SCO ODT 3.0 have their own names for install.
1358 # Don't use installbsd from OSF since it installs stuff as root
1360 for ac_prog in ginstall scoinst install; do
1361 for ac_exec_ext in '' $ac_executable_extensions; do
1362 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1363 if test $ac_prog = install &&
1364 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1365 # AIX install. It has an incompatible calling convention.
1367 elif test $ac_prog = install &&
1368 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1369 # program-specific install script used by HP pwplus--don't use.
1372 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1384 if test "${ac_cv_path_install+set}" = set; then
1385 INSTALL=$ac_cv_path_install
1387 # As a last resort, use the slow shell script. We don't cache a
1388 # path for INSTALL within a source directory, because that will
1389 # break other packages using the cache if that directory is
1390 # removed, or if the path is relative.
1391 INSTALL=$ac_install_sh
1394 echo "$as_me:$LINENO: result: $INSTALL" >&5
1395 echo "${ECHO_T}$INSTALL" >&6
1397 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1398 # It thinks the first close brace ends the variable substitution.
1399 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1401 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1403 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1405 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1406 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1409 echo timestamp > conftestfile
1410 # Do `set' in a subshell so we don't clobber the current shell's
1411 # arguments. Must try -L first in case configure is actually a
1412 # symlink; some systems play weird games with the mod time of symlinks
1413 # (eg FreeBSD returns the mod time of the symlink's containing
1416 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1417 if test "$*" = "X"; then
1419 set X `ls -t $srcdir/configure conftestfile`
1421 if test "$*" != "X $srcdir/configure conftestfile" \
1422 && test "$*" != "X conftestfile $srcdir/configure"; then
1424 # If neither matched, then we have a broken ls. This can happen
1425 # if, for instance, CONFIG_SHELL is bash and it inherits a
1426 # broken ls alias from the environment. This has actually
1427 # happened. Such a system could not be considered "sane".
1428 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1429 alias in your environment" >&5
1430 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1431 alias in your environment" >&2;}
1432 { (exit 1); exit 1; }; }
1435 test "$2" = conftestfile
1441 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1442 Check your system clock" >&5
1443 echo "$as_me: error: newly created file is older than distributed files!
1444 Check your system clock" >&2;}
1445 { (exit 1); exit 1; }; }
1448 echo "$as_me:$LINENO: result: yes" >&5
1449 echo "${ECHO_T}yes" >&6
1450 test "$program_prefix" != NONE &&
1451 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1452 # Use a double $ so make ignores it.
1453 test "$program_suffix" != NONE &&
1454 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1455 # Double any \ or $. echo might interpret backslashes.
1456 # By default was `s,x,x', remove it if useless.
1457 cat <<\_ACEOF >conftest.sed
1458 s/[\\$]/&&/g;s/;s,x,x,$//
1460 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1463 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1464 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1465 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1466 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 cat >conftest.make <<\_ACEOF
1471 @echo 'ac_maketemp="$(MAKE)"'
1473 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1474 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1475 if test -n "$ac_maketemp"; then
1476 eval ac_cv_prog_make_${ac_make}_set=yes
1478 eval ac_cv_prog_make_${ac_make}_set=no
1482 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1483 echo "$as_me:$LINENO: result: yes" >&5
1484 echo "${ECHO_T}yes" >&6
1487 echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1489 SET_MAKE="MAKE=${MAKE-make}"
1497 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1498 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1499 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1500 { (exit 1); exit 1; }; }
1503 cat >>confdefs.h <<_ACEOF
1504 #define PACKAGE "$PACKAGE"
1508 cat >>confdefs.h <<_ACEOF
1509 #define VERSION "$VERSION"
1514 missing_dir=`cd $ac_aux_dir && pwd`
1515 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1516 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1517 # Run test in a subshell; some versions of sh will print an error if
1518 # an executable is not found, even if stderr is redirected.
1519 # Redirect stdin to placate older versions of autoconf. Sigh.
1520 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1521 ACLOCAL=aclocal-${am__api_version}
1522 echo "$as_me:$LINENO: result: found" >&5
1523 echo "${ECHO_T}found" >&6
1525 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1526 echo "$as_me:$LINENO: result: missing" >&5
1527 echo "${ECHO_T}missing" >&6
1530 echo "$as_me:$LINENO: checking for working autoconf" >&5
1531 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1532 # Run test in a subshell; some versions of sh will print an error if
1533 # an executable is not found, even if stderr is redirected.
1534 # Redirect stdin to placate older versions of autoconf. Sigh.
1535 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1537 echo "$as_me:$LINENO: result: found" >&5
1538 echo "${ECHO_T}found" >&6
1540 AUTOCONF="$missing_dir/missing autoconf"
1541 echo "$as_me:$LINENO: result: missing" >&5
1542 echo "${ECHO_T}missing" >&6
1545 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1546 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1547 # Run test in a subshell; some versions of sh will print an error if
1548 # an executable is not found, even if stderr is redirected.
1549 # Redirect stdin to placate older versions of autoconf. Sigh.
1550 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1551 AUTOMAKE=automake-${am__api_version}
1552 echo "$as_me:$LINENO: result: found" >&5
1553 echo "${ECHO_T}found" >&6
1555 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1556 echo "$as_me:$LINENO: result: missing" >&5
1557 echo "${ECHO_T}missing" >&6
1560 echo "$as_me:$LINENO: checking for working autoheader" >&5
1561 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1562 # Run test in a subshell; some versions of sh will print an error if
1563 # an executable is not found, even if stderr is redirected.
1564 # Redirect stdin to placate older versions of autoconf. Sigh.
1565 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1566 AUTOHEADER=autoheader
1567 echo "$as_me:$LINENO: result: found" >&5
1568 echo "${ECHO_T}found" >&6
1570 AUTOHEADER="$missing_dir/missing autoheader"
1571 echo "$as_me:$LINENO: result: missing" >&5
1572 echo "${ECHO_T}missing" >&6
1575 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1576 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1577 # Run test in a subshell; some versions of sh will print an error if
1578 # an executable is not found, even if stderr is redirected.
1579 # Redirect stdin to placate older versions of autoconf. Sigh.
1580 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1582 echo "$as_me:$LINENO: result: found" >&5
1583 echo "${ECHO_T}found" >&6
1585 MAKEINFO="$missing_dir/missing makeinfo"
1586 echo "$as_me:$LINENO: result: missing" >&5
1587 echo "${ECHO_T}missing" >&6
1592 ac_config_headers="$ac_config_headers config.h"
1594 ac_config_commands="$ac_config_commands default-1"
1597 for ac_prog in gawk mawk nawk awk
1599 # Extract the first word of "$ac_prog", so it can be a program name with args.
1600 set dummy $ac_prog; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_AWK+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 if test -n "$AWK"; then
1607 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 ac_cv_prog_AWK="$ac_prog"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 if test -n "$AWK"; then
1627 echo "$as_me:$LINENO: result: $AWK" >&5
1628 echo "${ECHO_T}$AWK" >&6
1630 echo "$as_me:$LINENO: result: no" >&5
1631 echo "${ECHO_T}no" >&6
1634 test -n "$AWK" && break
1637 # Find a good install program. We prefer a C program (faster),
1638 # so one script is as good as another. But avoid the broken or
1639 # incompatible versions:
1640 # SysV /etc/install, /usr/sbin/install
1641 # SunOS /usr/etc/install
1642 # IRIX /sbin/install
1644 # AmigaOS /C/install, which installs bootblocks on floppy discs
1645 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1646 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1647 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1648 # ./install, which can be erroneously created by make from ./install.sh.
1649 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1650 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1651 if test -z "$INSTALL"; then
1652 if test "${ac_cv_path_install+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 test -z "$as_dir" && as_dir=.
1660 # Account for people who put trailing slashes in PATH elements.
1662 ./ | .// | /cC/* | \
1663 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1666 # OSF1 and SCO ODT 3.0 have their own names for install.
1667 # Don't use installbsd from OSF since it installs stuff as root
1669 for ac_prog in ginstall scoinst install; do
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1672 if test $ac_prog = install &&
1673 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1674 # AIX install. It has an incompatible calling convention.
1676 elif test $ac_prog = install &&
1677 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1678 # program-specific install script used by HP pwplus--don't use.
1681 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1693 if test "${ac_cv_path_install+set}" = set; then
1694 INSTALL=$ac_cv_path_install
1696 # As a last resort, use the slow shell script. We don't cache a
1697 # path for INSTALL within a source directory, because that will
1698 # break other packages using the cache if that directory is
1699 # removed, or if the path is relative.
1700 INSTALL=$ac_install_sh
1703 echo "$as_me:$LINENO: result: $INSTALL" >&5
1704 echo "${ECHO_T}$INSTALL" >&6
1706 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1707 # It thinks the first close brace ends the variable substitution.
1708 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1712 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1714 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1715 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1716 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1717 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 cat >conftest.make <<\_ACEOF
1722 @echo 'ac_maketemp="$(MAKE)"'
1724 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1725 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1726 if test -n "$ac_maketemp"; then
1727 eval ac_cv_prog_make_${ac_make}_set=yes
1729 eval ac_cv_prog_make_${ac_make}_set=no
1733 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1734 echo "$as_me:$LINENO: result: yes" >&5
1735 echo "${ECHO_T}yes" >&6
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740 SET_MAKE="MAKE=${MAKE-make}"
1743 if test -n "$ac_tool_prefix"; then
1744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1745 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_RANLIB+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1751 if test -n "$RANLIB"; then
1752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 test -z "$as_dir" && as_dir=.
1759 for ac_exec_ext in '' $ac_executable_extensions; do
1760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 RANLIB=$ac_cv_prog_RANLIB
1771 if test -n "$RANLIB"; then
1772 echo "$as_me:$LINENO: result: $RANLIB" >&5
1773 echo "${ECHO_T}$RANLIB" >&6
1775 echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1780 if test -z "$ac_cv_prog_RANLIB"; then
1781 ac_ct_RANLIB=$RANLIB
1782 # Extract the first word of "ranlib", so it can be a program name with args.
1783 set dummy ranlib; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 if test -n "$ac_ct_RANLIB"; then
1790 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796 test -z "$as_dir" && as_dir=.
1797 for ac_exec_ext in '' $ac_executable_extensions; do
1798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799 ac_cv_prog_ac_ct_RANLIB="ranlib"
1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1809 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1810 if test -n "$ac_ct_RANLIB"; then
1811 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1812 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1818 RANLIB=$ac_ct_RANLIB
1820 RANLIB="$ac_cv_prog_RANLIB"
1825 ac_cpp='$CPP $CPPFLAGS'
1826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829 if test -n "$ac_tool_prefix"; then
1830 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1831 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_CC+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 if test -n "$CC"; then
1838 ac_cv_prog_CC="$CC" # Let the user override the test.
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 if test -n "$CC"; then
1858 echo "$as_me:$LINENO: result: $CC" >&5
1859 echo "${ECHO_T}$CC" >&6
1861 echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1866 if test -z "$ac_cv_prog_CC"; then
1868 # Extract the first word of "gcc", so it can be a program name with args.
1869 set dummy gcc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 if test -n "$ac_ct_CC"; then
1876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 ac_cv_prog_ac_ct_CC="gcc"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1908 if test -z "$CC"; then
1909 if test -n "$ac_tool_prefix"; then
1910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1911 set dummy ${ac_tool_prefix}cc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 if test -n "$CC"; then
1918 ac_cv_prog_CC="$CC" # Let the user override the test.
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_CC="${ac_tool_prefix}cc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 if test -n "$CC"; then
1938 echo "$as_me:$LINENO: result: $CC" >&5
1939 echo "${ECHO_T}$CC" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1946 if test -z "$ac_cv_prog_CC"; then
1948 # Extract the first word of "cc", so it can be a program name with args.
1949 set dummy cc; ac_word=$2
1950 echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1952 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 if test -n "$ac_ct_CC"; then
1956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 test -z "$as_dir" && as_dir=.
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965 ac_cv_prog_ac_ct_CC="cc"
1966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1975 if test -n "$ac_ct_CC"; then
1976 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1977 echo "${ECHO_T}$ac_ct_CC" >&6
1979 echo "$as_me:$LINENO: result: no" >&5
1980 echo "${ECHO_T}no" >&6
1989 if test -z "$CC"; then
1990 # Extract the first word of "cc", so it can be a program name with args.
1991 set dummy cc; ac_word=$2
1992 echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994 if test "${ac_cv_prog_CC+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 if test -n "$CC"; then
1998 ac_cv_prog_CC="$CC" # Let the user override the test.
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2009 ac_prog_rejected=yes
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 if test $ac_prog_rejected = yes; then
2020 # We found a bogon in the path, so make sure we never use it.
2021 set dummy $ac_cv_prog_CC
2023 if test $# != 0; then
2024 # We chose a different compiler from the bogus one.
2025 # However, it has the same basename, so the bogon will be chosen
2026 # first if we set CC to just the basename; use the full file name.
2028 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2034 if test -n "$CC"; then
2035 echo "$as_me:$LINENO: result: $CC" >&5
2036 echo "${ECHO_T}$CC" >&6
2038 echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2043 if test -z "$CC"; then
2044 if test -n "$ac_tool_prefix"; then
2047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test -n "$CC"; then
2055 ac_cv_prog_CC="$CC" # Let the user override the test.
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 if test -n "$CC"; then
2075 echo "$as_me:$LINENO: result: $CC" >&5
2076 echo "${ECHO_T}$CC" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 test -n "$CC" && break
2085 if test -z "$CC"; then
2089 # Extract the first word of "$ac_prog", so it can be a program name with args.
2090 set dummy $ac_prog; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test -n "$ac_ct_CC"; then
2097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_ac_ct_CC="$ac_prog"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116 if test -n "$ac_ct_CC"; then
2117 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118 echo "${ECHO_T}$ac_ct_CC" >&6
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2124 test -n "$ac_ct_CC" && break
2133 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: no acceptable C compiler found in \$PATH
2136 See \`config.log' for more details." >&2;}
2137 { (exit 1); exit 1; }; }
2139 # Provide some information about the compiler.
2140 echo "$as_me:$LINENO:" \
2141 "checking for C compiler version" >&5
2142 ac_compiler=`set X $ac_compile; echo $2`
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2144 (eval $ac_compiler --version </dev/null >&5) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2149 (eval $ac_compiler -v </dev/null >&5) 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2153 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2154 (eval $ac_compiler -V </dev/null >&5) 2>&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line $LINENO "configure"
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2175 ac_clean_files_save=$ac_clean_files
2176 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2177 # Try to create an executable without -o first, disregard a.out.
2178 # It will help us diagnose broken compilers, and finding out an intuition
2180 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2181 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2182 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2183 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2184 (eval $ac_link_default) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; then
2188 # Find the output, starting from the most likely. This scheme is
2189 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2192 # Be careful to initialize this variable, since it used to be cached.
2193 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2195 # b.out is created by i960 compilers.
2196 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2198 test -f "$ac_file" || continue
2200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2203 # This is the source file.
2206 # We found the default executable, but exeext='' is most
2210 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2211 # FIXME: I believe we export ac_cv_exeext for Libtool,
2212 # but it would be cool to find out if it's true. Does anybody
2213 # maintain Libtool? --akim.
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&2;}
2228 { (exit 77); exit 77; }; }
2231 ac_exeext=$ac_cv_exeext
2232 echo "$as_me:$LINENO: result: $ac_file" >&5
2233 echo "${ECHO_T}$ac_file" >&6
2235 # Check the compiler produces executables we can run. If not, either
2236 # the compiler is broken, or we cross compile.
2237 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2238 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2239 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2240 # If not cross compiling, check that we can run a simple program.
2241 if test "$cross_compiling" != yes; then
2242 if { ac_try='./$ac_file'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2250 if test "$cross_compiling" = maybe; then
2253 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: cannot run C compiled programs.
2257 If you meant to cross compile, use \`--host'.
2258 See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2263 echo "$as_me:$LINENO: result: yes" >&5
2264 echo "${ECHO_T}yes" >&6
2266 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2267 ac_clean_files=$ac_clean_files_save
2268 # Check the compiler produces executables we can run. If not, either
2269 # the compiler is broken, or we cross compile.
2270 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2271 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2272 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2273 echo "${ECHO_T}$cross_compiling" >&6
2275 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2276 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2278 (eval $ac_link) 2>&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; then
2282 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2283 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2284 # work properly (i.e., refer to `conftest.exe'), while it won't with
2286 for ac_file in conftest.exe conftest conftest.*; do
2287 test -f "$ac_file" || continue
2289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2290 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2300 See \`config.log' for more details." >&2;}
2301 { (exit 1); exit 1; }; }
2304 rm -f conftest$ac_cv_exeext
2305 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2306 echo "${ECHO_T}$ac_cv_exeext" >&6
2308 rm -f conftest.$ac_ext
2309 EXEEXT=$ac_cv_exeext
2311 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2312 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2313 if test "${ac_cv_objext+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 cat >conftest.$ac_ext <<_ACEOF
2317 #line $LINENO "configure"
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h. */
2332 rm -f conftest.o conftest.obj
2333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2334 (eval $ac_compile) 2>&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; then
2338 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2349 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details." >&5
2351 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&2;}
2353 { (exit 1); exit 1; }; }
2356 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2359 echo "${ECHO_T}$ac_cv_objext" >&6
2360 OBJEXT=$ac_cv_objext
2362 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2363 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2364 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 cat >conftest.$ac_ext <<_ACEOF
2368 #line $LINENO "configure"
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2405 rm -f conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2409 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2415 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2416 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2417 if test "${ac_cv_prog_cc_g+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 cat >conftest.$ac_ext <<_ACEOF
2421 #line $LINENO "configure"
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h. */
2436 rm -f conftest.$ac_objext
2437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438 (eval $ac_compile) 2>&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } &&
2442 { ac_try='test -s conftest.$ac_objext'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2450 echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2455 rm -f conftest.$ac_objext conftest.$ac_ext
2457 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2458 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2459 if test "$ac_test_CFLAGS" = set; then
2460 CFLAGS=$ac_save_CFLAGS
2461 elif test $ac_cv_prog_cc_g = yes; then
2462 if test "$GCC" = yes; then
2468 if test "$GCC" = yes; then
2474 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2475 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2476 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 ac_cv_prog_cc_stdc=no
2481 cat >conftest.$ac_ext <<_ACEOF
2482 #line $LINENO "configure"
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2490 #include <sys/types.h>
2491 #include <sys/stat.h>
2492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2493 struct buf { int x; };
2494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2495 static char *e (p, i)
2501 static char *f (char * (*g) (char **, int), char **p, ...)
2506 s = g (p, va_arg (v,int));
2510 int test (int i, double x);
2511 struct s1 {int (*f) (int a);};
2512 struct s2 {int (*f) (double a);};
2513 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2519 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2524 # Don't try gcc -ansi; that turns off useful extensions and
2525 # breaks some systems' header files.
2526 # AIX -qlanglvl=ansi
2527 # Ultrix and OSF/1 -std1
2528 # HP-UX 10.20 and later -Ae
2529 # HP-UX older versions -Aa -D_HPUX_SOURCE
2530 # SVR4 -Xc -D__EXTENSIONS__
2531 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2533 CC="$ac_save_CC $ac_arg"
2534 rm -f conftest.$ac_objext
2535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536 (eval $ac_compile) 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 ac_cv_prog_cc_stdc=$ac_arg
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2553 rm -f conftest.$ac_objext
2555 rm -f conftest.$ac_ext conftest.$ac_objext
2560 case "x$ac_cv_prog_cc_stdc" in
2562 echo "$as_me:$LINENO: result: none needed" >&5
2563 echo "${ECHO_T}none needed" >&6 ;;
2565 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2566 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2567 CC="$CC $ac_cv_prog_cc_stdc" ;;
2570 # Some people use a C++ compiler to compile C. Since we use `exit',
2571 # in C++ we need to declare it. In case someone uses the same compiler
2572 # for both compiling C and C++ we need to have the C++ compiler decide
2573 # the declaration of exit, since it's the most demanding environment.
2574 cat >conftest.$ac_ext <<_ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 for ac_declaration in \
2593 '#include <stdlib.h>' \
2594 'extern "C" void std::exit (int) throw (); using std::exit;' \
2595 'extern "C" void std::exit (int); using std::exit;' \
2596 'extern "C" void exit (int) throw ();' \
2597 'extern "C" void exit (int);' \
2600 cat >conftest.$ac_ext <<_ACEOF
2601 #line $LINENO "configure"
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2636 rm -f conftest.$ac_objext conftest.$ac_ext
2637 cat >conftest.$ac_ext <<_ACEOF
2638 #line $LINENO "configure"
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2671 rm -f conftest.$ac_objext conftest.$ac_ext
2674 if test -n "$ac_declaration"; then
2675 echo '#ifdef __cplusplus' >>confdefs.h
2676 echo $ac_declaration >>confdefs.h
2677 echo '#endif' >>confdefs.h
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.$ac_objext conftest.$ac_ext
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 ac_cpp='$CXXCPP $CPPFLAGS'
2694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2697 if test -n "$ac_tool_prefix"; then
2698 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2702 echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_prog_CXX+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 if test -n "$CXX"; then
2708 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 if test -n "$CXX"; then
2728 echo "$as_me:$LINENO: result: $CXX" >&5
2729 echo "${ECHO_T}$CXX" >&6
2731 echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2735 test -n "$CXX" && break
2738 if test -z "$CXX"; then
2740 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2742 # Extract the first word of "$ac_prog", so it can be a program name with args.
2743 set dummy $ac_prog; ac_word=$2
2744 echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2746 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 if test -n "$ac_ct_CXX"; then
2750 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759 ac_cv_prog_ac_ct_CXX="$ac_prog"
2760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2769 if test -n "$ac_ct_CXX"; then
2770 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2771 echo "${ECHO_T}$ac_ct_CXX" >&6
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2777 test -n "$ac_ct_CXX" && break
2779 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2785 # Provide some information about the compiler.
2786 echo "$as_me:$LINENO:" \
2787 "checking for C++ compiler version" >&5
2788 ac_compiler=`set X $ac_compile; echo $2`
2789 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2790 (eval $ac_compiler --version </dev/null >&5) 2>&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }
2794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2795 (eval $ac_compiler -v </dev/null >&5) 2>&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }
2799 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2800 (eval $ac_compiler -V </dev/null >&5) 2>&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }
2805 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2806 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2807 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 cat >conftest.$ac_ext <<_ACEOF
2811 #line $LINENO "configure"
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2829 rm -f conftest.$ac_objext
2830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2831 (eval $ac_compile) 2>&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2848 rm -f conftest.$ac_objext conftest.$ac_ext
2849 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2852 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2853 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2854 GXX=`test $ac_compiler_gnu = yes && echo yes`
2855 ac_test_CXXFLAGS=${CXXFLAGS+set}
2856 ac_save_CXXFLAGS=$CXXFLAGS
2858 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2859 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2860 if test "${ac_cv_prog_cxx_g+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 cat >conftest.$ac_ext <<_ACEOF
2864 #line $LINENO "configure"
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -s conftest.$ac_objext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_prog_cxx_g=yes
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2898 rm -f conftest.$ac_objext conftest.$ac_ext
2900 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2901 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2902 if test "$ac_test_CXXFLAGS" = set; then
2903 CXXFLAGS=$ac_save_CXXFLAGS
2904 elif test $ac_cv_prog_cxx_g = yes; then
2905 if test "$GXX" = yes; then
2911 if test "$GXX" = yes; then
2917 for ac_declaration in \
2919 '#include <stdlib.h>' \
2920 'extern "C" void std::exit (int) throw (); using std::exit;' \
2921 'extern "C" void std::exit (int); using std::exit;' \
2922 'extern "C" void exit (int) throw ();' \
2923 'extern "C" void exit (int);' \
2926 cat >conftest.$ac_ext <<_ACEOF
2927 #line $LINENO "configure"
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945 (eval $ac_compile) 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2962 rm -f conftest.$ac_objext conftest.$ac_ext
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 rm -f conftest.$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981 (eval $ac_compile) 2>&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
2985 { ac_try='test -s conftest.$ac_objext'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; }; then
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2997 rm -f conftest.$ac_objext conftest.$ac_ext
3000 if test -n "$ac_declaration"; then
3001 echo '#ifdef __cplusplus' >>confdefs.h
3002 echo $ac_declaration >>confdefs.h
3003 echo '#endif' >>confdefs.h
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3014 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3015 if test "${ac_cv_c_bigendian+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 # See if sys/param.h defines the BYTE_ORDER macro.
3019 cat >conftest.$ac_ext <<_ACEOF
3020 #line $LINENO "configure"
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026 #include <sys/types.h>
3027 #include <sys/param.h>
3032 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042 (eval $ac_compile) 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 # It does; now see whether it defined to BIG_ENDIAN or not.
3053 cat >conftest.$ac_ext <<_ACEOF
3054 #line $LINENO "configure"
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3060 #include <sys/types.h>
3061 #include <sys/param.h>
3066 #if BYTE_ORDER != BIG_ENDIAN
3074 rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076 (eval $ac_compile) 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; }; then
3086 ac_cv_c_bigendian=yes
3088 echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3091 ac_cv_c_bigendian=no
3093 rm -f conftest.$ac_objext conftest.$ac_ext
3095 echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3098 # It does not; compile a test program.
3099 if test "$cross_compiling" = yes; then
3100 # try to guess the endianness by grepping values into an object file
3101 ac_cv_c_bigendian=unknown
3102 cat >conftest.$ac_ext <<_ACEOF
3103 #line $LINENO "configure"
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3109 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3110 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3111 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3112 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3113 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3114 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3118 _ascii (); _ebcdic ();
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125 (eval $ac_compile) 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -s conftest.$ac_objext'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3136 ac_cv_c_bigendian=yes
3138 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3139 if test "$ac_cv_c_bigendian" = unknown; then
3140 ac_cv_c_bigendian=no
3142 # finding both strings is unlikely to happen, but who knows?
3143 ac_cv_c_bigendian=unknown
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3151 rm -f conftest.$ac_objext conftest.$ac_ext
3153 cat >conftest.$ac_ext <<_ACEOF
3154 #line $LINENO "configure"
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3163 /* Are we little or big endian? From Harbison&Steele. */
3167 char c[sizeof (long)];
3170 exit (u.c[sizeof (long) - 1] == 1);
3173 rm -f conftest$ac_exeext
3174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175 (eval $ac_link) 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_cv_c_bigendian=no
3186 echo "$as_me: program exited with status $ac_status" >&5
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3191 ac_cv_c_bigendian=yes
3193 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3196 rm -f conftest.$ac_objext conftest.$ac_ext
3198 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3199 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3200 case $ac_cv_c_bigendian in
3203 cat >>confdefs.h <<\_ACEOF
3204 #define WORDS_BIGENDIAN 1
3210 { { echo "$as_me:$LINENO: error: unknown endianness
3211 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3212 echo "$as_me: error: unknown endianness
3213 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3214 { (exit 1); exit 1; }; } ;;
3218 # Extract the first word of "wx-config", so it can be a program name with args.
3219 set dummy wx-config; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_wxconfig+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 wxconfig=$ac_cv_path_wxconfig
3249 if test -n "$wxconfig"; then
3250 echo "$as_me:$LINENO: result: $wxconfig" >&5
3251 echo "${ECHO_T}$wxconfig" >&6
3253 echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3258 # Make sure we can run config.sub.
3259 $ac_config_sub sun4 >/dev/null 2>&1 ||
3260 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3261 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3262 { (exit 1); exit 1; }; }
3264 echo "$as_me:$LINENO: checking build system type" >&5
3265 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3266 if test "${ac_cv_build+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 ac_cv_build_alias=$build_alias
3270 test -z "$ac_cv_build_alias" &&
3271 ac_cv_build_alias=`$ac_config_guess`
3272 test -z "$ac_cv_build_alias" &&
3273 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3274 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3275 { (exit 1); exit 1; }; }
3276 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3277 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3278 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3279 { (exit 1); exit 1; }; }
3282 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3283 echo "${ECHO_T}$ac_cv_build" >&6
3285 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3286 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3287 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3290 echo "$as_me:$LINENO: checking host system type" >&5
3291 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3292 if test "${ac_cv_host+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 ac_cv_host_alias=$host_alias
3296 test -z "$ac_cv_host_alias" &&
3297 ac_cv_host_alias=$ac_cv_build_alias
3298 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3299 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3300 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3301 { (exit 1); exit 1; }; }
3304 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3305 echo "${ECHO_T}$ac_cv_host" >&6
3307 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3308 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3309 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3312 echo "$as_me:$LINENO: checking for inline" >&5
3313 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3314 if test "${ac_cv_c_inline+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 for ac_kw in inline __inline__ __inline; do
3319 cat >conftest.$ac_ext <<_ACEOF
3320 #line $LINENO "configure"
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3328 static $ac_kw foo_t static_foo () {return 0; }
3329 $ac_kw foo_t foo () {return 0; }
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 ac_cv_c_inline=$ac_kw; break
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3351 rm -f conftest.$ac_objext conftest.$ac_ext
3355 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3356 echo "${ECHO_T}$ac_cv_c_inline" >&6
3357 case $ac_cv_c_inline in
3360 cat >>confdefs.h <<\_ACEOF
3364 *) cat >>confdefs.h <<_ACEOF
3365 #define inline $ac_cv_c_inline
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3376 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3377 # On Suns, sometimes $CPP names a directory.
3378 if test -n "$CPP" && test -d "$CPP"; then
3381 if test -z "$CPP"; then
3382 if test "${ac_cv_prog_CPP+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 # Double quotes because CPP needs to be expanded
3386 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3389 for ac_c_preproc_warn_flag in '' yes
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394 # <limits.h> exists even on freestanding compilers.
3395 # On the NeXT, cc -E runs the code through the compiler's parser,
3396 # not just through cpp. "Syntax error" is here to catch this case.
3397 cat >conftest.$ac_ext <<_ACEOF
3398 #line $LINENO "configure"
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3405 # include <limits.h>
3407 # include <assert.h>
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
3427 if test -z "$ac_cpp_err"; then
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 # Broken: fails on valid input.
3436 rm -f conftest.err conftest.$ac_ext
3438 # OK, works on sane cases. Now check whether non-existent headers
3439 # can be detected and how.
3440 cat >conftest.$ac_ext <<_ACEOF
3441 #line $LINENO "configure"
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <ac_nonexistent.h>
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3465 if test -z "$ac_cpp_err"; then
3466 # Broken: success on invalid input.
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 # Passes both tests.
3476 rm -f conftest.err conftest.$ac_ext
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3493 echo "$as_me:$LINENO: result: $CPP" >&5
3494 echo "${ECHO_T}$CPP" >&6
3496 for ac_c_preproc_warn_flag in '' yes
3498 # Use a header file that comes with gcc, so configuring glibc
3499 # with a fresh cross-compiler works.
3500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3501 # <limits.h> exists even on freestanding compilers.
3502 # On the NeXT, cc -E runs the code through the compiler's parser,
3503 # not just through cpp. "Syntax error" is here to catch this case.
3504 cat >conftest.$ac_ext <<_ACEOF
3505 #line $LINENO "configure"
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3512 # include <limits.h>
3514 # include <assert.h>
3518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3521 grep -v '^ *+' conftest.er1 >conftest.err
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } >/dev/null; then
3526 if test -s conftest.err; then
3527 ac_cpp_err=$ac_c_preproc_warn_flag
3534 if test -z "$ac_cpp_err"; then
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 # Broken: fails on valid input.
3543 rm -f conftest.err conftest.$ac_ext
3545 # OK, works on sane cases. Now check whether non-existent headers
3546 # can be detected and how.
3547 cat >conftest.$ac_ext <<_ACEOF
3548 #line $LINENO "configure"
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 #include <ac_nonexistent.h>
3556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3572 if test -z "$ac_cpp_err"; then
3573 # Broken: success on invalid input.
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 # Passes both tests.
3583 rm -f conftest.err conftest.$ac_ext
3586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587 rm -f conftest.err conftest.$ac_ext
3588 if $ac_preproc_ok; then
3591 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3592 See \`config.log' for more details." >&5
3593 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details." >&2;}
3595 { (exit 1); exit 1; }; }
3599 ac_cpp='$CPP $CPPFLAGS'
3600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 echo "$as_me:$LINENO: checking for egrep" >&5
3606 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3607 if test "${ac_cv_prog_egrep+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3611 then ac_cv_prog_egrep='grep -E'
3612 else ac_cv_prog_egrep='egrep'
3615 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3616 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3617 EGREP=$ac_cv_prog_egrep
3620 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3621 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3622 if test "${ac_cv_header_stdc+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 cat >conftest.$ac_ext <<_ACEOF
3626 #line $LINENO "configure"
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3645 rm -f conftest.$ac_objext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647 (eval $ac_compile) 2>&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -s conftest.$ac_objext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 ac_cv_header_stdc=yes
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 ac_cv_header_stdc=no
3664 rm -f conftest.$ac_objext conftest.$ac_ext
3666 if test $ac_cv_header_stdc = yes; then
3667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3668 cat >conftest.$ac_ext <<_ACEOF
3669 #line $LINENO "configure"
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3679 $EGREP "memchr" >/dev/null 2>&1; then
3682 ac_cv_header_stdc=no
3688 if test $ac_cv_header_stdc = yes; then
3689 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3690 cat >conftest.$ac_ext <<_ACEOF
3691 #line $LINENO "configure"
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3701 $EGREP "free" >/dev/null 2>&1; then
3704 ac_cv_header_stdc=no
3710 if test $ac_cv_header_stdc = yes; then
3711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3712 if test "$cross_compiling" = yes; then
3715 cat >conftest.$ac_ext <<_ACEOF
3716 #line $LINENO "configure"
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3723 #if ((' ' & 0x0FF) == 0x020)
3724 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3725 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3727 # define ISLOWER(c) \
3728 (('a' <= (c) && (c) <= 'i') \
3729 || ('j' <= (c) && (c) <= 'r') \
3730 || ('s' <= (c) && (c) <= 'z'))
3731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3739 for (i = 0; i < 256; i++)
3740 if (XOR (islower (i), ISLOWER (i))
3741 || toupper (i) != TOUPPER (i))
3746 rm -f conftest$ac_exeext
3747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3748 (eval $ac_link) 2>&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3759 echo "$as_me: program exited with status $ac_status" >&5
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3764 ac_cv_header_stdc=no
3766 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3770 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3771 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3772 if test $ac_cv_header_stdc = yes; then
3774 cat >>confdefs.h <<\_ACEOF
3775 #define STDC_HEADERS 1
3780 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3790 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3791 inttypes.h stdint.h unistd.h
3793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3794 echo "$as_me:$LINENO: checking for $ac_header" >&5
3795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806 $ac_includes_default
3808 #include <$ac_header>
3810 rm -f conftest.$ac_objext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812 (eval $ac_compile) 2>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try='test -s conftest.$ac_objext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 eval "$as_ac_Header=yes"
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 eval "$as_ac_Header=no"
3829 rm -f conftest.$ac_objext conftest.$ac_ext
3831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3834 cat >>confdefs.h <<_ACEOF
3835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3843 echo "$as_me:$LINENO: checking for short" >&5
3844 echo $ECHO_N "checking for short... $ECHO_C" >&6
3845 if test "${ac_cv_type_short+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #line $LINENO "configure"
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 $ac_includes_default
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869 (eval $ac_compile) 2>&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 ac_cv_type_short=yes
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3886 rm -f conftest.$ac_objext conftest.$ac_ext
3888 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3889 echo "${ECHO_T}$ac_cv_type_short" >&6
3891 echo "$as_me:$LINENO: checking size of short" >&5
3892 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3893 if test "${ac_cv_sizeof_short+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 if test "$ac_cv_type_short" = yes; then
3897 # The cast to unsigned long works around a bug in the HP C Compiler
3898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3900 # This bug is HP SR number 8606223364.
3901 if test "$cross_compiling" = yes; then
3902 # Depending upon the size, compute the lo and hi bounds.
3903 cat >conftest.$ac_ext <<_ACEOF
3904 #line $LINENO "configure"
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 $ac_includes_default
3914 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -s conftest.$ac_objext'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3935 cat >conftest.$ac_ext <<_ACEOF
3936 #line $LINENO "configure"
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 $ac_includes_default
3946 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3953 rm -f conftest.$ac_objext
3954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955 (eval $ac_compile) 2>&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 { ac_try='test -s conftest.$ac_objext'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; }; then
3965 ac_hi=$ac_mid; break
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3970 ac_lo=`expr $ac_mid + 1`
3971 if test $ac_lo -le $ac_mid; then
3975 ac_mid=`expr 2 '*' $ac_mid + 1`
3977 rm -f conftest.$ac_objext conftest.$ac_ext
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 cat >conftest.$ac_ext <<_ACEOF
3984 #line $LINENO "configure"
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3990 $ac_includes_default
3994 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4001 rm -f conftest.$ac_objext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4003 (eval $ac_compile) 2>&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } &&
4007 { ac_try='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4015 cat >conftest.$ac_ext <<_ACEOF
4016 #line $LINENO "configure"
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4022 $ac_includes_default
4026 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 ac_lo=$ac_mid; break
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 ac_hi=`expr '(' $ac_mid ')' - 1`
4051 if test $ac_mid -le $ac_hi; then
4055 ac_mid=`expr 2 '*' $ac_mid`
4057 rm -f conftest.$ac_objext conftest.$ac_ext
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4065 rm -f conftest.$ac_objext conftest.$ac_ext
4067 rm -f conftest.$ac_objext conftest.$ac_ext
4068 # Binary search between lo and hi bounds.
4069 while test "x$ac_lo" != "x$ac_hi"; do
4070 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4071 cat >conftest.$ac_ext <<_ACEOF
4072 #line $LINENO "configure"
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4078 $ac_includes_default
4082 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4089 rm -f conftest.$ac_objext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4106 ac_lo=`expr '(' $ac_mid ')' + 1`
4108 rm -f conftest.$ac_objext conftest.$ac_ext
4111 ?*) ac_cv_sizeof_short=$ac_lo;;
4112 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4113 See \`config.log' for more details." >&5
4114 echo "$as_me: error: cannot compute sizeof (short), 77
4115 See \`config.log' for more details." >&2;}
4116 { (exit 1); exit 1; }; } ;;
4119 if test "$cross_compiling" = yes; then
4120 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4121 See \`config.log' for more details." >&5
4122 echo "$as_me: error: cannot run test program while cross compiling
4123 See \`config.log' for more details." >&2;}
4124 { (exit 1); exit 1; }; }
4126 cat >conftest.$ac_ext <<_ACEOF
4127 #line $LINENO "configure"
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4133 $ac_includes_default
4134 long longval () { return (long) (sizeof (short)); }
4135 unsigned long ulongval () { return (long) (sizeof (short)); }
4142 FILE *f = fopen ("conftest.val", "w");
4145 if (((long) (sizeof (short))) < 0)
4147 long i = longval ();
4148 if (i != ((long) (sizeof (short))))
4150 fprintf (f, "%ld\n", i);
4154 unsigned long i = ulongval ();
4155 if (i != ((long) (sizeof (short))))
4157 fprintf (f, "%lu\n", i);
4159 exit (ferror (f) || fclose (f) != 0);
4165 rm -f conftest$ac_exeext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167 (eval $ac_link) 2>&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 ac_cv_sizeof_short=`cat conftest.val`
4178 echo "$as_me: program exited with status $ac_status" >&5
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4183 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4184 See \`config.log' for more details." >&5
4185 echo "$as_me: error: cannot compute sizeof (short), 77
4186 See \`config.log' for more details." >&2;}
4187 { (exit 1); exit 1; }; }
4189 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4194 ac_cv_sizeof_short=0
4197 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4198 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4199 cat >>confdefs.h <<_ACEOF
4200 #define SIZEOF_SHORT $ac_cv_sizeof_short
4204 echo "$as_me:$LINENO: checking for int" >&5
4205 echo $ECHO_N "checking for int... $ECHO_C" >&6
4206 if test "${ac_cv_type_int+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 cat >conftest.$ac_ext <<_ACEOF
4210 #line $LINENO "configure"
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 $ac_includes_default
4228 rm -f conftest.$ac_objext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4230 (eval $ac_compile) 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4247 rm -f conftest.$ac_objext conftest.$ac_ext
4249 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4250 echo "${ECHO_T}$ac_cv_type_int" >&6
4252 echo "$as_me:$LINENO: checking size of int" >&5
4253 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4254 if test "${ac_cv_sizeof_int+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 if test "$ac_cv_type_int" = yes; then
4258 # The cast to unsigned long works around a bug in the HP C Compiler
4259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4261 # This bug is HP SR number 8606223364.
4262 if test "$cross_compiling" = yes; then
4263 # Depending upon the size, compute the lo and hi bounds.
4264 cat >conftest.$ac_ext <<_ACEOF
4265 #line $LINENO "configure"
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 $ac_includes_default
4275 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4282 rm -f conftest.$ac_objext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try='test -s conftest.$ac_objext'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4296 cat >conftest.$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4307 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4314 rm -f conftest.$ac_objext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4316 (eval $ac_compile) 2>&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } &&
4320 { ac_try='test -s conftest.$ac_objext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 ac_hi=$ac_mid; break
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4331 ac_lo=`expr $ac_mid + 1`
4332 if test $ac_lo -le $ac_mid; then
4336 ac_mid=`expr 2 '*' $ac_mid + 1`
4338 rm -f conftest.$ac_objext conftest.$ac_ext
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 cat >conftest.$ac_ext <<_ACEOF
4345 #line $LINENO "configure"
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 $ac_includes_default
4355 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4376 cat >conftest.$ac_ext <<_ACEOF
4377 #line $LINENO "configure"
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 $ac_includes_default
4387 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 ac_lo=$ac_mid; break
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 ac_hi=`expr '(' $ac_mid ')' - 1`
4412 if test $ac_mid -le $ac_hi; then
4416 ac_mid=`expr 2 '*' $ac_mid`
4418 rm -f conftest.$ac_objext conftest.$ac_ext
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4426 rm -f conftest.$ac_objext conftest.$ac_ext
4428 rm -f conftest.$ac_objext conftest.$ac_ext
4429 # Binary search between lo and hi bounds.
4430 while test "x$ac_lo" != "x$ac_hi"; do
4431 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4432 cat >conftest.$ac_ext <<_ACEOF
4433 #line $LINENO "configure"
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 $ac_includes_default
4443 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_lo=`expr '(' $ac_mid ')' + 1`
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4472 ?*) ac_cv_sizeof_int=$ac_lo;;
4473 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4474 See \`config.log' for more details." >&5
4475 echo "$as_me: error: cannot compute sizeof (int), 77
4476 See \`config.log' for more details." >&2;}
4477 { (exit 1); exit 1; }; } ;;
4480 if test "$cross_compiling" = yes; then
4481 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4482 See \`config.log' for more details." >&5
4483 echo "$as_me: error: cannot run test program while cross compiling
4484 See \`config.log' for more details." >&2;}
4485 { (exit 1); exit 1; }; }
4487 cat >conftest.$ac_ext <<_ACEOF
4488 #line $LINENO "configure"
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 $ac_includes_default
4495 long longval () { return (long) (sizeof (int)); }
4496 unsigned long ulongval () { return (long) (sizeof (int)); }
4503 FILE *f = fopen ("conftest.val", "w");
4506 if (((long) (sizeof (int))) < 0)
4508 long i = longval ();
4509 if (i != ((long) (sizeof (int))))
4511 fprintf (f, "%ld\n", i);
4515 unsigned long i = ulongval ();
4516 if (i != ((long) (sizeof (int))))
4518 fprintf (f, "%lu\n", i);
4520 exit (ferror (f) || fclose (f) != 0);
4526 rm -f conftest$ac_exeext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4528 (eval $ac_link) 2>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 ac_cv_sizeof_int=`cat conftest.val`
4539 echo "$as_me: program exited with status $ac_status" >&5
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4545 See \`config.log' for more details." >&5
4546 echo "$as_me: error: cannot compute sizeof (int), 77
4547 See \`config.log' for more details." >&2;}
4548 { (exit 1); exit 1; }; }
4550 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4558 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4559 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4560 cat >>confdefs.h <<_ACEOF
4561 #define SIZEOF_INT $ac_cv_sizeof_int
4565 echo "$as_me:$LINENO: checking for long" >&5
4566 echo $ECHO_N "checking for long... $ECHO_C" >&6
4567 if test "${ac_cv_type_long+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 cat >conftest.$ac_ext <<_ACEOF
4571 #line $LINENO "configure"
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h. */
4577 $ac_includes_default
4589 rm -f conftest.$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -s conftest.$ac_objext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4608 rm -f conftest.$ac_objext conftest.$ac_ext
4610 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4611 echo "${ECHO_T}$ac_cv_type_long" >&6
4613 echo "$as_me:$LINENO: checking size of long" >&5
4614 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4615 if test "${ac_cv_sizeof_long+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 if test "$ac_cv_type_long" = yes; then
4619 # The cast to unsigned long works around a bug in the HP C Compiler
4620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4622 # This bug is HP SR number 8606223364.
4623 if test "$cross_compiling" = yes; then
4624 # Depending upon the size, compute the lo and hi bounds.
4625 cat >conftest.$ac_ext <<_ACEOF
4626 #line $LINENO "configure"
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632 $ac_includes_default
4636 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4643 rm -f conftest.$ac_objext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645 (eval $ac_compile) 2>&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try='test -s conftest.$ac_objext'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4657 cat >conftest.$ac_ext <<_ACEOF
4658 #line $LINENO "configure"
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 $ac_includes_default
4668 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4675 rm -f conftest.$ac_objext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677 (eval $ac_compile) 2>&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } &&
4681 { ac_try='test -s conftest.$ac_objext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4687 ac_hi=$ac_mid; break
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 ac_lo=`expr $ac_mid + 1`
4693 if test $ac_lo -le $ac_mid; then
4697 ac_mid=`expr 2 '*' $ac_mid + 1`
4699 rm -f conftest.$ac_objext conftest.$ac_ext
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4705 cat >conftest.$ac_ext <<_ACEOF
4706 #line $LINENO "configure"
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 $ac_includes_default
4716 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4723 rm -f conftest.$ac_objext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725 (eval $ac_compile) 2>&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -s conftest.$ac_objext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4737 cat >conftest.$ac_ext <<_ACEOF
4738 #line $LINENO "configure"
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 $ac_includes_default
4748 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757 (eval $ac_compile) 2>&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -s conftest.$ac_objext'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 ac_lo=$ac_mid; break
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 ac_hi=`expr '(' $ac_mid ')' - 1`
4773 if test $ac_mid -le $ac_hi; then
4777 ac_mid=`expr 2 '*' $ac_mid`
4779 rm -f conftest.$ac_objext conftest.$ac_ext
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4787 rm -f conftest.$ac_objext conftest.$ac_ext
4789 rm -f conftest.$ac_objext conftest.$ac_ext
4790 # Binary search between lo and hi bounds.
4791 while test "x$ac_lo" != "x$ac_hi"; do
4792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4793 cat >conftest.$ac_ext <<_ACEOF
4794 #line $LINENO "configure"
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 $ac_includes_default
4804 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -s conftest.$ac_objext'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4828 ac_lo=`expr '(' $ac_mid ')' + 1`
4830 rm -f conftest.$ac_objext conftest.$ac_ext
4833 ?*) ac_cv_sizeof_long=$ac_lo;;
4834 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4835 See \`config.log' for more details." >&5
4836 echo "$as_me: error: cannot compute sizeof (long), 77
4837 See \`config.log' for more details." >&2;}
4838 { (exit 1); exit 1; }; } ;;
4841 if test "$cross_compiling" = yes; then
4842 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4843 See \`config.log' for more details." >&5
4844 echo "$as_me: error: cannot run test program while cross compiling
4845 See \`config.log' for more details." >&2;}
4846 { (exit 1); exit 1; }; }
4848 cat >conftest.$ac_ext <<_ACEOF
4849 #line $LINENO "configure"
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 $ac_includes_default
4856 long longval () { return (long) (sizeof (long)); }
4857 unsigned long ulongval () { return (long) (sizeof (long)); }
4864 FILE *f = fopen ("conftest.val", "w");
4867 if (((long) (sizeof (long))) < 0)
4869 long i = longval ();
4870 if (i != ((long) (sizeof (long))))
4872 fprintf (f, "%ld\n", i);
4876 unsigned long i = ulongval ();
4877 if (i != ((long) (sizeof (long))))
4879 fprintf (f, "%lu\n", i);
4881 exit (ferror (f) || fclose (f) != 0);
4887 rm -f conftest$ac_exeext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4889 (eval $ac_link) 2>&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; }; then
4898 ac_cv_sizeof_long=`cat conftest.val`
4900 echo "$as_me: program exited with status $ac_status" >&5
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4905 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4906 See \`config.log' for more details." >&5
4907 echo "$as_me: error: cannot compute sizeof (long), 77
4908 See \`config.log' for more details." >&2;}
4909 { (exit 1); exit 1; }; }
4911 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4919 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4920 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4921 cat >>confdefs.h <<_ACEOF
4922 #define SIZEOF_LONG $ac_cv_sizeof_long
4926 echo "$as_me:$LINENO: checking for float" >&5
4927 echo $ECHO_N "checking for float... $ECHO_C" >&6
4928 if test "${ac_cv_type_float+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 cat >conftest.$ac_ext <<_ACEOF
4932 #line $LINENO "configure"
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4938 $ac_includes_default
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -s conftest.$ac_objext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_cv_type_float=yes
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4969 rm -f conftest.$ac_objext conftest.$ac_ext
4971 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4972 echo "${ECHO_T}$ac_cv_type_float" >&6
4974 echo "$as_me:$LINENO: checking size of float" >&5
4975 echo $ECHO_N "checking size of float... $ECHO_C" >&6
4976 if test "${ac_cv_sizeof_float+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 if test "$ac_cv_type_float" = yes; then
4980 # The cast to unsigned long works around a bug in the HP C Compiler
4981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4983 # This bug is HP SR number 8606223364.
4984 if test "$cross_compiling" = yes; then
4985 # Depending upon the size, compute the lo and hi bounds.
4986 cat >conftest.$ac_ext <<_ACEOF
4987 #line $LINENO "configure"
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4993 $ac_includes_default
4997 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5004 rm -f conftest.$ac_objext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5029 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5036 rm -f conftest.$ac_objext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
5042 { ac_try='test -s conftest.$ac_objext'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; }; then
5048 ac_hi=$ac_mid; break
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5053 ac_lo=`expr $ac_mid + 1`
5054 if test $ac_lo -le $ac_mid; then
5058 ac_mid=`expr 2 '*' $ac_mid + 1`
5060 rm -f conftest.$ac_objext conftest.$ac_ext
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5066 cat >conftest.$ac_ext <<_ACEOF
5067 #line $LINENO "configure"
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 $ac_includes_default
5077 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086 (eval $ac_compile) 2>&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5098 cat >conftest.$ac_ext <<_ACEOF
5099 #line $LINENO "configure"
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 $ac_includes_default
5109 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5116 rm -f conftest.$ac_objext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5118 (eval $ac_compile) 2>&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try='test -s conftest.$ac_objext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 ac_lo=$ac_mid; break
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 ac_hi=`expr '(' $ac_mid ')' - 1`
5134 if test $ac_mid -le $ac_hi; then
5138 ac_mid=`expr 2 '*' $ac_mid`
5140 rm -f conftest.$ac_objext conftest.$ac_ext
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5148 rm -f conftest.$ac_objext conftest.$ac_ext
5150 rm -f conftest.$ac_objext conftest.$ac_ext
5151 # Binary search between lo and hi bounds.
5152 while test "x$ac_lo" != "x$ac_hi"; do
5153 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5154 cat >conftest.$ac_ext <<_ACEOF
5155 #line $LINENO "configure"
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161 $ac_includes_default
5165 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5172 rm -f conftest.$ac_objext
5173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5174 (eval $ac_compile) 2>&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } &&
5178 { ac_try='test -s conftest.$ac_objext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 ac_lo=`expr '(' $ac_mid ')' + 1`
5191 rm -f conftest.$ac_objext conftest.$ac_ext
5194 ?*) ac_cv_sizeof_float=$ac_lo;;
5195 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5196 See \`config.log' for more details." >&5
5197 echo "$as_me: error: cannot compute sizeof (float), 77
5198 See \`config.log' for more details." >&2;}
5199 { (exit 1); exit 1; }; } ;;
5202 if test "$cross_compiling" = yes; then
5203 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5204 See \`config.log' for more details." >&5
5205 echo "$as_me: error: cannot run test program while cross compiling
5206 See \`config.log' for more details." >&2;}
5207 { (exit 1); exit 1; }; }
5209 cat >conftest.$ac_ext <<_ACEOF
5210 #line $LINENO "configure"
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 $ac_includes_default
5217 long longval () { return (long) (sizeof (float)); }
5218 unsigned long ulongval () { return (long) (sizeof (float)); }
5225 FILE *f = fopen ("conftest.val", "w");
5228 if (((long) (sizeof (float))) < 0)
5230 long i = longval ();
5231 if (i != ((long) (sizeof (float))))
5233 fprintf (f, "%ld\n", i);
5237 unsigned long i = ulongval ();
5238 if (i != ((long) (sizeof (float))))
5240 fprintf (f, "%lu\n", i);
5242 exit (ferror (f) || fclose (f) != 0);
5248 rm -f conftest$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250 (eval $ac_link) 2>&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 ac_cv_sizeof_float=`cat conftest.val`
5261 echo "$as_me: program exited with status $ac_status" >&5
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5266 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5267 See \`config.log' for more details." >&5
5268 echo "$as_me: error: cannot compute sizeof (float), 77
5269 See \`config.log' for more details." >&2;}
5270 { (exit 1); exit 1; }; }
5272 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5277 ac_cv_sizeof_float=0
5280 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5281 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5282 cat >>confdefs.h <<_ACEOF
5283 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5287 echo "$as_me:$LINENO: checking for double" >&5
5288 echo $ECHO_N "checking for double... $ECHO_C" >&6
5289 if test "${ac_cv_type_double+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 cat >conftest.$ac_ext <<_ACEOF
5293 #line $LINENO "configure"
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 $ac_includes_default
5305 if (sizeof (double))
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_cv_type_double=yes
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 ac_cv_type_double=no
5330 rm -f conftest.$ac_objext conftest.$ac_ext
5332 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5333 echo "${ECHO_T}$ac_cv_type_double" >&6
5335 echo "$as_me:$LINENO: checking size of double" >&5
5336 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5337 if test "${ac_cv_sizeof_double+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 if test "$ac_cv_type_double" = yes; then
5341 # The cast to unsigned long works around a bug in the HP C Compiler
5342 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5343 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5344 # This bug is HP SR number 8606223364.
5345 if test "$cross_compiling" = yes; then
5346 # Depending upon the size, compute the lo and hi bounds.
5347 cat >conftest.$ac_ext <<_ACEOF
5348 #line $LINENO "configure"
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 $ac_includes_default
5358 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5365 rm -f conftest.$ac_objext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try='test -s conftest.$ac_objext'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; }; then
5379 cat >conftest.$ac_ext <<_ACEOF
5380 #line $LINENO "configure"
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 $ac_includes_default
5390 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5397 rm -f conftest.$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399 (eval $ac_compile) 2>&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } &&
5403 { ac_try='test -s conftest.$ac_objext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 ac_hi=$ac_mid; break
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5414 ac_lo=`expr $ac_mid + 1`
5415 if test $ac_lo -le $ac_mid; then
5419 ac_mid=`expr 2 '*' $ac_mid + 1`
5421 rm -f conftest.$ac_objext conftest.$ac_ext
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5427 cat >conftest.$ac_ext <<_ACEOF
5428 #line $LINENO "configure"
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 $ac_includes_default
5438 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5445 rm -f conftest.$ac_objext
5446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447 (eval $ac_compile) 2>&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try='test -s conftest.$ac_objext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5459 cat >conftest.$ac_ext <<_ACEOF
5460 #line $LINENO "configure"
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 $ac_includes_default
5470 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5477 rm -f conftest.$ac_objext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5479 (eval $ac_compile) 2>&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -s conftest.$ac_objext'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 ac_lo=$ac_mid; break
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5494 ac_hi=`expr '(' $ac_mid ')' - 1`
5495 if test $ac_mid -le $ac_hi; then
5499 ac_mid=`expr 2 '*' $ac_mid`
5501 rm -f conftest.$ac_objext conftest.$ac_ext
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5509 rm -f conftest.$ac_objext conftest.$ac_ext
5511 rm -f conftest.$ac_objext conftest.$ac_ext
5512 # Binary search between lo and hi bounds.
5513 while test "x$ac_lo" != "x$ac_hi"; do
5514 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5515 cat >conftest.$ac_ext <<_ACEOF
5516 #line $LINENO "configure"
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 $ac_includes_default
5526 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5533 rm -f conftest.$ac_objext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535 (eval $ac_compile) 2>&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -s conftest.$ac_objext'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 ac_lo=`expr '(' $ac_mid ')' + 1`
5552 rm -f conftest.$ac_objext conftest.$ac_ext
5555 ?*) ac_cv_sizeof_double=$ac_lo;;
5556 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5557 See \`config.log' for more details." >&5
5558 echo "$as_me: error: cannot compute sizeof (double), 77
5559 See \`config.log' for more details." >&2;}
5560 { (exit 1); exit 1; }; } ;;
5563 if test "$cross_compiling" = yes; then
5564 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5565 See \`config.log' for more details." >&5
5566 echo "$as_me: error: cannot run test program while cross compiling
5567 See \`config.log' for more details." >&2;}
5568 { (exit 1); exit 1; }; }
5570 cat >conftest.$ac_ext <<_ACEOF
5571 #line $LINENO "configure"
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 $ac_includes_default
5578 long longval () { return (long) (sizeof (double)); }
5579 unsigned long ulongval () { return (long) (sizeof (double)); }
5586 FILE *f = fopen ("conftest.val", "w");
5589 if (((long) (sizeof (double))) < 0)
5591 long i = longval ();
5592 if (i != ((long) (sizeof (double))))
5594 fprintf (f, "%ld\n", i);
5598 unsigned long i = ulongval ();
5599 if (i != ((long) (sizeof (double))))
5601 fprintf (f, "%lu\n", i);
5603 exit (ferror (f) || fclose (f) != 0);
5609 rm -f conftest$ac_exeext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5611 (eval $ac_link) 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 ac_cv_sizeof_double=`cat conftest.val`
5622 echo "$as_me: program exited with status $ac_status" >&5
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5627 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5628 See \`config.log' for more details." >&5
5629 echo "$as_me: error: cannot compute sizeof (double), 77
5630 See \`config.log' for more details." >&2;}
5631 { (exit 1); exit 1; }; }
5633 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5638 ac_cv_sizeof_double=0
5641 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5642 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5643 cat >>confdefs.h <<_ACEOF
5644 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5650 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5651 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5652 if test "${ac_cv_lib_z_deflate+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 ac_check_lib_save_LIBS=$LIBS
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5665 /* Override any gcc2 internal prototype to avoid an error. */
5669 /* We use char because int might match the return type of a gcc2
5670 builtin and then its argument prototype would still apply. */
5680 rm -f conftest.$ac_objext conftest$ac_exeext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5682 (eval $ac_link) 2>&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
5686 { ac_try='test -s conftest$ac_exeext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_lib_z_deflate=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_cv_lib_z_deflate=no
5699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5700 LIBS=$ac_check_lib_save_LIBS
5702 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5703 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5704 if test $ac_cv_lib_z_deflate = yes; then
5707 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5708 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5712 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5713 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5714 if test "${ac_cv_lib_m_sin+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 ac_check_lib_save_LIBS=$LIBS
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5727 /* Override any gcc2 internal prototype to avoid an error. */
5731 /* We use char because int might match the return type of a gcc2
5732 builtin and then its argument prototype would still apply. */
5742 rm -f conftest.$ac_objext conftest$ac_exeext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5744 (eval $ac_link) 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
5748 { ac_try='test -s conftest$ac_exeext'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; }; then
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5762 LIBS=$ac_check_lib_save_LIBS
5764 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5765 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5766 if test $ac_cv_lib_m_sin = yes; then
5767 cat >>confdefs.h <<_ACEOF
5775 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5776 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5777 if test "${ac_cv_lib_curses_main+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 ac_check_lib_save_LIBS=$LIBS
5781 LIBS="-lcurses $LIBS"
5782 cat >conftest.$ac_ext <<_ACEOF
5783 #line $LINENO "configure"
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5799 rm -f conftest.$ac_objext conftest$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801 (eval $ac_link) 2>&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try='test -s conftest$ac_exeext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 ac_cv_lib_curses_main=yes
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_cv_lib_curses_main=no
5818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5819 LIBS=$ac_check_lib_save_LIBS
5821 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5822 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5823 if test $ac_cv_lib_curses_main = yes; then
5829 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5830 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5831 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 ac_check_lib_save_LIBS=$LIBS
5835 LIBS="-lncurses $LIBS"
5836 cat >conftest.$ac_ext <<_ACEOF
5837 #line $LINENO "configure"
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855 (eval $ac_link) 2>&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } &&
5859 { ac_try='test -s conftest$ac_exeext'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5865 ac_cv_lib_ncurses_main=yes
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 ac_cv_lib_ncurses_main=no
5872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5873 LIBS=$ac_check_lib_save_LIBS
5875 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5876 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5877 if test $ac_cv_lib_ncurses_main = yes; then
5883 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5884 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5885 if test "${ac_cv_lib_readline_main+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 ac_check_lib_save_LIBS=$LIBS
5889 LIBS="-lreadline -lcurses $LIBS"
5890 cat >conftest.$ac_ext <<_ACEOF
5891 #line $LINENO "configure"
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5907 rm -f conftest.$ac_objext conftest$ac_exeext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5909 (eval $ac_link) 2>&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } &&
5913 { ac_try='test -s conftest$ac_exeext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5919 ac_cv_lib_readline_main=yes
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5924 ac_cv_lib_readline_main=no
5926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5927 LIBS=$ac_check_lib_save_LIBS
5929 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5930 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5931 if test $ac_cv_lib_readline_main = yes; then
5934 cat >>confdefs.h <<\_ACEOF
5935 #define HAVE_READLINE 1
5943 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
5944 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
5945 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 ac_check_lib_save_LIBS=$LIBS
5949 LIBS="-lwx_gtk-2.4 $LIBS"
5950 cat >conftest.$ac_ext <<_ACEOF
5951 #line $LINENO "configure"
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5967 rm -f conftest.$ac_objext conftest$ac_exeext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5969 (eval $ac_link) 2>&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 { ac_try='test -s conftest$ac_exeext'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5979 ac_cv_lib_wx_gtk_2_4_main=yes
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 ac_cv_lib_wx_gtk_2_4_main=no
5986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5987 LIBS=$ac_check_lib_save_LIBS
5989 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
5990 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
5991 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
5992 wxwin=true; wx_gtk=true;
5993 cat >>confdefs.h <<\_ACEOF
5994 #define HAVE_WXWINDOWS 1
5999 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6000 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6001 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 ac_check_lib_save_LIBS=$LIBS
6005 LIBS="-lwx_mac-2.4 $LIBS"
6006 cat >conftest.$ac_ext <<_ACEOF
6007 #line $LINENO "configure"
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6023 rm -f conftest.$ac_objext conftest$ac_exeext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025 (eval $ac_link) 2>&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -s conftest$ac_exeext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_lib_wx_mac_2_4_main=yes
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6040 ac_cv_lib_wx_mac_2_4_main=no
6042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6043 LIBS=$ac_check_lib_save_LIBS
6045 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6046 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6047 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6048 wxwin=true; wx_mac=true;
6049 cat >>confdefs.h <<\_ACEOF
6050 #define HAVE_WXWINDOWS 1
6055 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
6056 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
6057 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 ac_check_lib_save_LIBS=$LIBS
6062 cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6070 /* Override any gcc2 internal prototype to avoid an error. */
6074 /* We use char because int might match the return type of a gcc2
6075 builtin and then its argument prototype would still apply. */
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087 (eval $ac_link) 2>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -s conftest$ac_exeext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_lib_fftw_fftw_one=yes
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 ac_cv_lib_fftw_fftw_one=no
6104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105 LIBS=$ac_check_lib_save_LIBS
6107 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
6108 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
6109 if test $ac_cv_lib_fftw_fftw_one = yes; then
6111 cat >>confdefs.h <<\_ACEOF
6119 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6120 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6121 if test "${ac_cv_lib_GL_main+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 ac_check_lib_save_LIBS=$LIBS
6125 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6143 rm -f conftest.$ac_objext conftest$ac_exeext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6145 (eval $ac_link) 2>&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } &&
6149 { ac_try='test -s conftest$ac_exeext'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; }; then
6155 ac_cv_lib_GL_main=yes
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6160 ac_cv_lib_GL_main=no
6162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6163 LIBS=$ac_check_lib_save_LIBS
6165 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6166 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6167 if test $ac_cv_lib_GL_main = yes; then
6173 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6174 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6175 if test "${ac_cv_lib_pthread_main+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 ac_check_lib_save_LIBS=$LIBS
6179 LIBS="-lpthread $LIBS"
6180 cat >conftest.$ac_ext <<_ACEOF
6181 #line $LINENO "configure"
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6199 (eval $ac_link) 2>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try='test -s conftest$ac_exeext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 ac_cv_lib_pthread_main=yes
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6214 ac_cv_lib_pthread_main=no
6216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6217 LIBS=$ac_check_lib_save_LIBS
6219 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6220 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6221 if test $ac_cv_lib_pthread_main = yes; then
6228 if test "$zlib" = "true" ; then
6229 echo "$as_me:$LINENO: checking for main in -lpng" >&5
6230 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6231 if test "${ac_cv_lib_png_main+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 ac_check_lib_save_LIBS=$LIBS
6235 LIBS="-lpng -lz -lm $LIBS"
6236 cat >conftest.$ac_ext <<_ACEOF
6237 #line $LINENO "configure"
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6253 rm -f conftest.$ac_objext conftest$ac_exeext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255 (eval $ac_link) 2>&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -s conftest$ac_exeext'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6265 ac_cv_lib_png_main=yes
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6270 ac_cv_lib_png_main=no
6272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6273 LIBS=$ac_check_lib_save_LIBS
6275 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6276 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6277 if test $ac_cv_lib_png_main = yes; then
6279 cat >>confdefs.h <<\_ACEOF
6289 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6290 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6291 if test "${ac_cv_header_stdc+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 cat >conftest.$ac_ext <<_ACEOF
6295 #line $LINENO "configure"
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6314 rm -f conftest.$ac_objext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6316 (eval $ac_compile) 2>&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } &&
6320 { ac_try='test -s conftest.$ac_objext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6326 ac_cv_header_stdc=yes
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 ac_cv_header_stdc=no
6333 rm -f conftest.$ac_objext conftest.$ac_ext
6335 if test $ac_cv_header_stdc = yes; then
6336 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6337 cat >conftest.$ac_ext <<_ACEOF
6338 #line $LINENO "configure"
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6348 $EGREP "memchr" >/dev/null 2>&1; then
6351 ac_cv_header_stdc=no
6357 if test $ac_cv_header_stdc = yes; then
6358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6359 cat >conftest.$ac_ext <<_ACEOF
6360 #line $LINENO "configure"
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6370 $EGREP "free" >/dev/null 2>&1; then
6373 ac_cv_header_stdc=no
6379 if test $ac_cv_header_stdc = yes; then
6380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6381 if test "$cross_compiling" = yes; then
6384 cat >conftest.$ac_ext <<_ACEOF
6385 #line $LINENO "configure"
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6392 #if ((' ' & 0x0FF) == 0x020)
6393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6396 # define ISLOWER(c) \
6397 (('a' <= (c) && (c) <= 'i') \
6398 || ('j' <= (c) && (c) <= 'r') \
6399 || ('s' <= (c) && (c) <= 'z'))
6400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6408 for (i = 0; i < 256; i++)
6409 if (XOR (islower (i), ISLOWER (i))
6410 || toupper (i) != TOUPPER (i))
6415 rm -f conftest$ac_exeext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417 (eval $ac_link) 2>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6428 echo "$as_me: program exited with status $ac_status" >&5
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6433 ac_cv_header_stdc=no
6435 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6439 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6440 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6441 if test $ac_cv_header_stdc = yes; then
6443 cat >>confdefs.h <<\_ACEOF
6444 #define STDC_HEADERS 1
6473 for ac_header in fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
6475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6477 echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6485 # Is the header compilable?
6486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6488 cat >conftest.$ac_ext <<_ACEOF
6489 #line $LINENO "configure"
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6495 $ac_includes_default
6496 #include <$ac_header>
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } &&
6504 { ac_try='test -s conftest.$ac_objext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 ac_header_compiler=yes
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6515 ac_header_compiler=no
6517 rm -f conftest.$ac_objext conftest.$ac_ext
6518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6519 echo "${ECHO_T}$ac_header_compiler" >&6
6521 # Is the header present?
6522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #include <$ac_header>
6533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6536 grep -v '^ *+' conftest.er1 >conftest.err
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } >/dev/null; then
6541 if test -s conftest.err; then
6542 ac_cpp_err=$ac_c_preproc_warn_flag
6549 if test -z "$ac_cpp_err"; then
6550 ac_header_preproc=yes
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 ac_header_preproc=no
6557 rm -f conftest.err conftest.$ac_ext
6558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6559 echo "${ECHO_T}$ac_header_preproc" >&6
6561 # So? What about this header?
6562 case $ac_header_compiler:$ac_header_preproc in
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6570 ## ------------------------------------ ##
6571 ## Report this to bug-autoconf@gnu.org. ##
6572 ## ------------------------------------ ##
6575 sed "s/^/$as_me: WARNING: /" >&2
6578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6586 ## ------------------------------------ ##
6587 ## Report this to bug-autoconf@gnu.org. ##
6588 ## ------------------------------------ ##
6591 sed "s/^/$as_me: WARNING: /" >&2
6594 echo "$as_me:$LINENO: checking for $ac_header" >&5
6595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 eval "$as_ac_Header=$ac_header_preproc"
6601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6606 cat >>confdefs.h <<_ACEOF
6607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6615 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6616 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6617 if test "${ac_cv_c_const+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 cat >conftest.$ac_ext <<_ACEOF
6621 #line $LINENO "configure"
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6631 /* FIXME: Include the comments suggested by Paul. */
6633 /* Ultrix mips cc rejects this. */
6634 typedef int charset[2];
6636 /* SunOS 4.1.1 cc rejects this. */
6637 char const *const *ccp;
6639 /* NEC SVR4.0.2 mips cc rejects this. */
6640 struct point {int x, y;};
6641 static struct point const zero = {0,0};
6642 /* AIX XL C 1.02.0.0 rejects this.
6643 It does not let you subtract one const X* pointer from another in
6644 an arm of an if-expression whose if-part is not a constant
6646 const char *g = "string";
6647 ccp = &g + (g ? g-g : 0);
6648 /* HPUX 7.0 cc rejects these. */
6651 ccp = (char const *const *) p;
6652 { /* SCO 3.2v4 cc rejects this. */
6654 char const *s = 0 ? (char *) 0 : (char const *) 0;
6658 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6660 const int *foo = &x[0];
6663 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6664 typedef const int *iptr;
6668 { /* AIX XL C 1.02.0.0 rejects this saying
6669 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6670 struct s { int j; const int *ap[3]; };
6671 struct s *b; b->j = 5;
6673 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6682 rm -f conftest.$ac_objext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684 (eval $ac_compile) 2>&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6701 rm -f conftest.$ac_objext conftest.$ac_ext
6703 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6704 echo "${ECHO_T}$ac_cv_c_const" >&6
6705 if test $ac_cv_c_const = no; then
6707 cat >>confdefs.h <<\_ACEOF
6713 echo "$as_me:$LINENO: checking for off_t" >&5
6714 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6715 if test "${ac_cv_type_off_t+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 cat >conftest.$ac_ext <<_ACEOF
6719 #line $LINENO "configure"
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725 $ac_includes_default
6737 rm -f conftest.$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739 (eval $ac_compile) 2>&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try='test -s conftest.$ac_objext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6749 ac_cv_type_off_t=yes
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6756 rm -f conftest.$ac_objext conftest.$ac_ext
6758 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6759 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6760 if test $ac_cv_type_off_t = yes; then
6764 cat >>confdefs.h <<_ACEOF
6770 echo "$as_me:$LINENO: checking for size_t" >&5
6771 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6772 if test "${ac_cv_type_size_t+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 cat >conftest.$ac_ext <<_ACEOF
6776 #line $LINENO "configure"
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 $ac_includes_default
6788 if (sizeof (size_t))
6794 rm -f conftest.$ac_objext
6795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6796 (eval $ac_compile) 2>&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } &&
6800 { ac_try='test -s conftest.$ac_objext'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; }; then
6806 ac_cv_type_size_t=yes
6808 echo "$as_me: failed program was:" >&5
6809 sed 's/^/| /' conftest.$ac_ext >&5
6811 ac_cv_type_size_t=no
6813 rm -f conftest.$ac_objext conftest.$ac_ext
6815 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6816 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6817 if test $ac_cv_type_size_t = yes; then
6821 cat >>confdefs.h <<_ACEOF
6822 #define size_t unsigned
6827 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6828 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6829 if test "${ac_cv_struct_tm+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 cat >conftest.$ac_ext <<_ACEOF
6833 #line $LINENO "configure"
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 #include <sys/types.h>
6845 struct tm *tp; tp->tm_sec;
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852 (eval $ac_compile) 2>&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } &&
6856 { ac_try='test -s conftest.$ac_objext'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; }; then
6862 ac_cv_struct_tm=time.h
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6867 ac_cv_struct_tm=sys/time.h
6869 rm -f conftest.$ac_objext conftest.$ac_ext
6871 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6872 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6873 if test $ac_cv_struct_tm = sys/time.h; then
6875 cat >>confdefs.h <<\_ACEOF
6876 #define TM_IN_SYS_TIME 1
6883 for ac_func in vprintf
6885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6886 echo "$as_me:$LINENO: checking for $ac_func" >&5
6887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6888 if eval "test \"\${$as_ac_var+set}\" = set"; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6892 #line $LINENO "configure"
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6898 /* System header to define __stub macros and hopefully few prototypes,
6899 which can conflict with char $ac_func (); below.
6900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6901 <limits.h> exists even on freestanding compilers. */
6903 # include <limits.h>
6905 # include <assert.h>
6907 /* Override any gcc2 internal prototype to avoid an error. */
6912 /* We use char because int might match the return type of a gcc2
6913 builtin and then its argument prototype would still apply. */
6915 /* The GNU C library defines this for functions which it implements
6916 to always fail with ENOSYS. Some functions are actually named
6917 something starting with __ and the normal name is an alias. */
6918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6921 char (*f) () = $ac_func;
6930 return f != $ac_func;
6935 rm -f conftest.$ac_objext conftest$ac_exeext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937 (eval $ac_link) 2>&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try='test -s conftest$ac_exeext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 eval "$as_ac_var=yes"
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 eval "$as_ac_var=no"
6954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6958 if test `eval echo '${'$as_ac_var'}'` = yes; then
6959 cat >>confdefs.h <<_ACEOF
6960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6963 echo "$as_me:$LINENO: checking for _doprnt" >&5
6964 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6965 if test "${ac_cv_func__doprnt+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 cat >conftest.$ac_ext <<_ACEOF
6969 #line $LINENO "configure"
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 /* System header to define __stub macros and hopefully few prototypes,
6976 which can conflict with char _doprnt (); below.
6977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6978 <limits.h> exists even on freestanding compilers. */
6980 # include <limits.h>
6982 # include <assert.h>
6984 /* Override any gcc2 internal prototype to avoid an error. */
6989 /* We use char because int might match the return type of a gcc2
6990 builtin and then its argument prototype would still apply. */
6992 /* The GNU C library defines this for functions which it implements
6993 to always fail with ENOSYS. Some functions are actually named
6994 something starting with __ and the normal name is an alias. */
6995 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6998 char (*f) () = _doprnt;
7007 return f != _doprnt;
7012 rm -f conftest.$ac_objext conftest$ac_exeext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7014 (eval $ac_link) 2>&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -s conftest$ac_exeext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7024 ac_cv_func__doprnt=yes
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_cv_func__doprnt=no
7031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7033 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7034 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7035 if test $ac_cv_func__doprnt = yes; then
7037 cat >>confdefs.h <<\_ACEOF
7038 #define HAVE_DOPRNT 1
7054 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7057 echo "$as_me:$LINENO: checking for $ac_func" >&5
7058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7059 if eval "test \"\${$as_ac_var+set}\" = set"; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 cat >conftest.$ac_ext <<_ACEOF
7063 #line $LINENO "configure"
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7069 /* System header to define __stub macros and hopefully few prototypes,
7070 which can conflict with char $ac_func (); below.
7071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7072 <limits.h> exists even on freestanding compilers. */
7074 # include <limits.h>
7076 # include <assert.h>
7078 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7086 /* The GNU C library defines this for functions which it implements
7087 to always fail with ENOSYS. Some functions are actually named
7088 something starting with __ and the normal name is an alias. */
7089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7092 char (*f) () = $ac_func;
7101 return f != $ac_func;
7106 rm -f conftest.$ac_objext conftest$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108 (eval $ac_link) 2>&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } &&
7112 { ac_try='test -s conftest$ac_exeext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 eval "$as_ac_var=yes"
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 eval "$as_ac_var=no"
7125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7129 if test `eval echo '${'$as_ac_var'}'` = yes; then
7130 cat >>confdefs.h <<_ACEOF
7131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7137 echo "$as_me:$LINENO: checking for basename" >&5
7138 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7139 if test "${ac_cv_func_basename+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 cat >conftest.$ac_ext <<_ACEOF
7143 #line $LINENO "configure"
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149 /* System header to define __stub macros and hopefully few prototypes,
7150 which can conflict with char basename (); below.
7151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7152 <limits.h> exists even on freestanding compilers. */
7154 # include <limits.h>
7156 # include <assert.h>
7158 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7166 /* The GNU C library defines this for functions which it implements
7167 to always fail with ENOSYS. Some functions are actually named
7168 something starting with __ and the normal name is an alias. */
7169 #if defined (__stub_basename) || defined (__stub___basename)
7172 char (*f) () = basename;
7181 return f != basename;
7186 rm -f conftest.$ac_objext conftest$ac_exeext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188 (eval $ac_link) 2>&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -s conftest$ac_exeext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 ac_cv_func_basename=yes
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7203 ac_cv_func_basename=no
7205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7207 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7208 echo "${ECHO_T}$ac_cv_func_basename" >&6
7210 echo "$as_me:$LINENO: checking for setjmp" >&5
7211 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7212 if test "${ac_cv_func_setjmp+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 cat >conftest.$ac_ext <<_ACEOF
7216 #line $LINENO "configure"
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 /* System header to define __stub macros and hopefully few prototypes,
7223 which can conflict with char setjmp (); below.
7224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7225 <limits.h> exists even on freestanding compilers. */
7227 # include <limits.h>
7229 # include <assert.h>
7231 /* Override any gcc2 internal prototype to avoid an error. */
7236 /* We use char because int might match the return type of a gcc2
7237 builtin and then its argument prototype would still apply. */
7239 /* The GNU C library defines this for functions which it implements
7240 to always fail with ENOSYS. Some functions are actually named
7241 something starting with __ and the normal name is an alias. */
7242 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7245 char (*f) () = setjmp;
7259 rm -f conftest.$ac_objext conftest$ac_exeext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261 (eval $ac_link) 2>&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try='test -s conftest$ac_exeext'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; }; then
7271 ac_cv_func_setjmp=yes
7273 echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7276 ac_cv_func_setjmp=no
7278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7280 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7281 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7283 echo "$as_me:$LINENO: checking for setpriority" >&5
7284 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7285 if test "${ac_cv_func_setpriority+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 cat >conftest.$ac_ext <<_ACEOF
7289 #line $LINENO "configure"
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7295 /* System header to define __stub macros and hopefully few prototypes,
7296 which can conflict with char setpriority (); below.
7297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7298 <limits.h> exists even on freestanding compilers. */
7300 # include <limits.h>
7302 # include <assert.h>
7304 /* Override any gcc2 internal prototype to avoid an error. */
7309 /* We use char because int might match the return type of a gcc2
7310 builtin and then its argument prototype would still apply. */
7311 char setpriority ();
7312 /* The GNU C library defines this for functions which it implements
7313 to always fail with ENOSYS. Some functions are actually named
7314 something starting with __ and the normal name is an alias. */
7315 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7318 char (*f) () = setpriority;
7327 return f != setpriority;
7332 rm -f conftest.$ac_objext conftest$ac_exeext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334 (eval $ac_link) 2>&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try='test -s conftest$ac_exeext'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7344 ac_cv_func_setpriority=yes
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 ac_cv_func_setpriority=no
7351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7353 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7354 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7356 echo "$as_me:$LINENO: checking for time" >&5
7357 echo $ECHO_N "checking for time... $ECHO_C" >&6
7358 if test "${ac_cv_func_time+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 cat >conftest.$ac_ext <<_ACEOF
7362 #line $LINENO "configure"
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7368 /* System header to define __stub macros and hopefully few prototypes,
7369 which can conflict with char time (); below.
7370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7371 <limits.h> exists even on freestanding compilers. */
7373 # include <limits.h>
7375 # include <assert.h>
7377 /* Override any gcc2 internal prototype to avoid an error. */
7382 /* We use char because int might match the return type of a gcc2
7383 builtin and then its argument prototype would still apply. */
7385 /* The GNU C library defines this for functions which it implements
7386 to always fail with ENOSYS. Some functions are actually named
7387 something starting with __ and the normal name is an alias. */
7388 #if defined (__stub_time) || defined (__stub___time)
7391 char (*f) () = time;
7405 rm -f conftest.$ac_objext conftest$ac_exeext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7407 (eval $ac_link) 2>&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } &&
7411 { ac_try='test -s conftest$ac_exeext'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; }; then
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7426 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7427 echo "${ECHO_T}$ac_cv_func_time" >&6
7429 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7430 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7431 if test "${ac_cv_func_gettimeofday+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 cat >conftest.$ac_ext <<_ACEOF
7435 #line $LINENO "configure"
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 /* System header to define __stub macros and hopefully few prototypes,
7442 which can conflict with char gettimeofday (); below.
7443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7444 <limits.h> exists even on freestanding compilers. */
7446 # include <limits.h>
7448 # include <assert.h>
7450 /* Override any gcc2 internal prototype to avoid an error. */
7455 /* We use char because int might match the return type of a gcc2
7456 builtin and then its argument prototype would still apply. */
7457 char gettimeofday ();
7458 /* The GNU C library defines this for functions which it implements
7459 to always fail with ENOSYS. Some functions are actually named
7460 something starting with __ and the normal name is an alias. */
7461 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7464 char (*f) () = gettimeofday;
7473 return f != gettimeofday;
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7480 (eval $ac_link) 2>&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -s conftest$ac_exeext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_func_gettimeofday=yes
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 ac_cv_func_gettimeofday=no
7497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7500 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7502 echo "$as_me:$LINENO: checking for getopt" >&5
7503 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7504 if test "${ac_cv_func_getopt+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 cat >conftest.$ac_ext <<_ACEOF
7508 #line $LINENO "configure"
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 /* System header to define __stub macros and hopefully few prototypes,
7515 which can conflict with char getopt (); below.
7516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7517 <limits.h> exists even on freestanding compilers. */
7519 # include <limits.h>
7521 # include <assert.h>
7523 /* Override any gcc2 internal prototype to avoid an error. */
7528 /* We use char because int might match the return type of a gcc2
7529 builtin and then its argument prototype would still apply. */
7531 /* The GNU C library defines this for functions which it implements
7532 to always fail with ENOSYS. Some functions are actually named
7533 something starting with __ and the normal name is an alias. */
7534 #if defined (__stub_getopt) || defined (__stub___getopt)
7537 char (*f) () = getopt;
7551 rm -f conftest.$ac_objext conftest$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } &&
7557 { ac_try='test -s conftest$ac_exeext'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
7563 ac_cv_func_getopt=yes
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7568 ac_cv_func_getopt=no
7570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7572 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7573 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7574 if test $ac_cv_func_getopt = yes; then
7581 if test "${OSTYPE}" = "cygwin" ; then
7584 echo "$as_me:$LINENO: checking for getopt_long" >&5
7585 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7586 if test "${ac_cv_func_getopt_long+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 cat >conftest.$ac_ext <<_ACEOF
7590 #line $LINENO "configure"
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h. */
7596 /* System header to define __stub macros and hopefully few prototypes,
7597 which can conflict with char getopt_long (); below.
7598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7599 <limits.h> exists even on freestanding compilers. */
7601 # include <limits.h>
7603 # include <assert.h>
7605 /* Override any gcc2 internal prototype to avoid an error. */
7610 /* We use char because int might match the return type of a gcc2
7611 builtin and then its argument prototype would still apply. */
7612 char getopt_long ();
7613 /* The GNU C library defines this for functions which it implements
7614 to always fail with ENOSYS. Some functions are actually named
7615 something starting with __ and the normal name is an alias. */
7616 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7619 char (*f) () = getopt_long;
7628 return f != getopt_long;
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } &&
7639 { ac_try='test -s conftest$ac_exeext'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 ac_cv_func_getopt_long=yes
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7650 ac_cv_func_getopt_long=no
7652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7654 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7655 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7656 if test $ac_cv_func_getopt_long = yes; then
7664 if test "${getopt_long}" = "false" ; then
7665 my_includes="$my_includes -I../getopt"
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_GETOPT_LONG 1
7671 ctlibs_base="$ctlibs_base -lgetopt"
7672 LDFLAGS="$LDFLAGS -L../getopt"
7676 INCLUDED_GETOPT_LONG_TRUE=
7677 INCLUDED_GETOPT_LONG_FALSE='#'
7679 INCLUDED_GETOPT_LONG_TRUE='#'
7680 INCLUDED_GETOPT_LONG_FALSE=
7684 if test "${readline}" = "true" ; then
7685 ctlibs_base="$ctlibs_base -lreadline"
7686 if test "${ncurses}" = "true"; then
7687 ctlibs_base="$ctlibs_base -lncurses"
7688 elif test "${curses}" = "true"; then
7689 ctlibs_base="$ctlibs_base -lcurses"
7693 echo "$as_me:$LINENO: checking debug" >&5
7694 echo $ECHO_N "checking debug... $ECHO_C" >&6
7695 # Check whether --enable-debug or --disable-debug was given.
7696 if test "${enable_debug+set}" = set; then
7697 enableval="$enable_debug"
7698 case "${enableval}" in
7700 echo "$as_me:$LINENO: result: yes" >&5
7701 echo "${ECHO_T}yes" >&6
7704 echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6
7707 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7708 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7712 debug=false; echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6
7717 if test "$debug" = "true"; then
7725 if test "$datadir" != "" ; then
7726 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7729 if test "$debug" = "true" ; then
7730 CFLAGS="$CFLAGS -g -DDEBUG"
7732 cat >>confdefs.h <<\_ACEOF
7737 CFLAGS="$CFLAGS -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops"
7739 cat >>confdefs.h <<\_ACEOF
7745 if test "${pthread}" = "true" ; then
7747 cat >>confdefs.h <<\_ACEOF
7748 #define HAVE_WXTHREADS 1
7753 echo "$as_me:$LINENO: checking sstream" >&5
7754 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7755 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7756 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
7757 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
7759 cat >>confdefs.h <<\_ACEOF
7760 #define HAVE_SSTREAM 1
7763 echo "$as_me:$LINENO: result: yes" >&5
7764 echo "${ECHO_T}yes" >&6
7766 echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6
7771 CFLAGS="$CFLAGS -Wall"
7772 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7773 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7774 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7775 if test "${enable_verbose_warnings+set}" = set; then
7776 enableval="$enable_verbose_warnings"
7777 case "$enableval" in
7779 echo "$as_me:$LINENO: result: yes" >&5
7780 echo "${ECHO_T}yes" >&6
7781 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7784 echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6
7789 echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6
7794 echo "$as_me:$LINENO: checking static executables" >&5
7795 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7796 # Check whether --enable-static or --disable-static was given.
7797 if test "${enable_static+set}" = set; then
7798 enableval="$enable_static"
7799 case "$enableval" in
7801 echo "$as_me:$LINENO: result: yes" >&5
7802 echo "${ECHO_T}yes" >&6
7803 CFLAGS="$CFLAGS --static"
7806 echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6
7811 echo "$as_me:$LINENO: result: no" >&5
7812 echo "${ECHO_T}no" >&6
7817 # Check whether --with-lam or --without-lam was given.
7818 if test "${with_lam+set}" = set; then
7820 if test "$withval" != "no" ; then
7826 if test "$withval" != "no" ; then
7827 if test "$prefix" != "NONE" ; then
7828 trylamdir="$trylamdir $prefix"
7831 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7832 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7833 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7834 if test -x "$testlamdir/bin/hcp" ; then
7835 if test "$testlamdir" != "/usr"; then
7836 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7837 CFLAGS="$CFLAGS -I$testlamdir/include"
7839 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7840 lamdir="$testlamdir"
7847 echo "$as_me:$LINENO: result: $lamdir" >&5
7848 echo "${ECHO_T}$lamdir" >&6
7850 echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6
7856 # Check whether --with-ctn or --without-ctn was given.
7857 if test "${with_ctn+set}" = set; then
7859 if test "$withval" != "no" ; then
7865 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7866 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7867 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7868 echo "$as_me:$LINENO: result: disabled" >&5
7869 echo "${ECHO_T}disabled" >&6
7871 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7872 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7873 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7874 if test -f "$testctndir/libctn.a" ; then
7875 LDFLAGS="$LDFLAGS -L$testctndir"
7880 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7881 if test -f "$testctndir/ctn_os.h" ; then
7882 CFLAGS="$CFLAGS -I$testctndir"
7887 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7890 cat >>confdefs.h <<\_ACEOF
7891 #define HAVE_CTN_DICOM 1
7894 echo "$as_me:$LINENO: result: yes" >&5
7895 echo "${ECHO_T}yes" >&6
7897 echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6
7902 echo "$as_me:$LINENO: checking for CPU specification" >&5
7903 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
7905 # Check whether --with-mcpu or --without-mcpu was given.
7906 if test "${with_mcpu+set}" = set; then
7907 withval="$with_mcpu"
7911 if test "$withval" == "pentium4" -o "$withval" == "athlon" ; then
7912 echo "$as_me:$LINENO: result: $withval" >&5
7913 echo "${ECHO_T}$withval" >&6
7914 CFLAGS="$CFLAGS -mcpu=$withval"
7915 elif test "$withval" == "no"; then
7916 echo "$as_me:$LINENO: result: no" >&5
7917 echo "${ECHO_T}no" >&6
7919 echo "$as_me:$LINENO: result: Unknown" >&5
7920 echo "${ECHO_T}Unknown" >&6
7923 echo "$as_me:$LINENO: checking for web access" >&5
7924 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7926 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7927 if test "${with_cgibin_dir+set}" = set; then
7928 withval="$with_cgibin_dir"
7929 cgibindir=$withval ;
7933 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7934 if test "${with_cgibin_url+set}" = set; then
7935 withval="$with_cgibin_url"
7936 cgibinurl=$withval ;
7940 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7941 if test "${with_webdata_dir+set}" = set; then
7942 withval="$with_webdata_dir"
7943 webdatadir=$withval ;
7947 # Check whether --with-webdata-url or --without-webdata-url was given.
7948 if test "${with_webdata_url+set}" = set; then
7949 withval="$with_webdata_url"
7950 webdataurl=$withval ;
7954 # Check whether --with-html-dir or --without-html-dir was given.
7955 if test "${with_html_dir+set}" = set; then
7956 withval="$with_html_dir"
7960 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7961 cgiprograms="ctsim.cgi ctsim.conf"
7965 if test -n "$htmldir" ; then
7966 htmldata=simulate.html
7971 if test -n "$htmldir"; then
7979 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7982 echo "$as_me:$LINENO: result: yes" >&5
7983 echo "${ECHO_T}yes" >&6
7984 if test -z "$cgibindir" ; then
7985 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7986 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7987 { (exit 1); exit 1; }; }
7988 elif test -z "$cgibinurl" ; then
7989 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7990 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7991 { (exit 1); exit 1; }; }
7992 elif test -z "$webdatadir" ; then
7993 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7994 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7995 { (exit 1); exit 1; }; }
7996 elif test -z "$webdataurl" ; then
7997 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7998 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7999 { (exit 1); exit 1; }; }
8000 elif test -z "$htmldir" ; then
8001 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
8002 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
8003 { (exit 1); exit 1; }; }
8006 echo "$as_me:$LINENO: result: no" >&5
8007 echo "${ECHO_T}no" >&6
8012 if test -n "$lamdir"; then
8021 echo "$as_me:$LINENO: checking for X" >&5
8022 echo $ECHO_N "checking for X... $ECHO_C" >&6
8025 # Check whether --with-x or --without-x was given.
8026 if test "${with_x+set}" = set; then
8030 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8031 if test "x$with_x" = xno; then
8032 # The user explicitly disabled X.
8035 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8036 # Both variables are already set.
8039 if test "${ac_cv_have_x+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 # One or both of the vars are not set, and there is no cached value.
8043 ac_x_includes=no ac_x_libraries=no
8045 if mkdir conftest.dir; then
8047 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8048 cat >Imakefile <<'_ACEOF'
8050 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8052 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8053 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8054 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8055 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8056 for ac_extension in a so sl; do
8057 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8058 test -f $ac_im_libdir/libX11.$ac_extension; then
8059 ac_im_usrlibdir=$ac_im_libdir; break
8062 # Screen out bogus values from the imake configuration. They are
8063 # bogus both because they are the default anyway, and because
8064 # using them would break gcc on systems where it needs fixed includes.
8065 case $ac_im_incroot in
8067 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8069 case $ac_im_usrlibdir in
8071 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8078 # Standard set of common directories for X headers.
8079 # Check X11 before X11Rn because it is often a symlink to the current release.
8091 /usr/local/X11/include
8092 /usr/local/X11R6/include
8093 /usr/local/X11R5/include
8094 /usr/local/X11R4/include
8096 /usr/local/include/X11
8097 /usr/local/include/X11R6
8098 /usr/local/include/X11R5
8099 /usr/local/include/X11R4
8103 /usr/XFree86/include/X11
8107 /usr/unsupported/include
8109 /usr/local/x11r5/include
8110 /usr/lpp/Xamples/include
8112 /usr/openwin/include
8113 /usr/openwin/share/include'
8115 if test "$ac_x_includes" = no; then
8116 # Guess where to find include files, by looking for Intrinsic.h.
8117 # First, try using that file with no special directory specified.
8118 cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 #include <X11/Intrinsic.h>
8127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8130 grep -v '^ *+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } >/dev/null; then
8135 if test -s conftest.err; then
8136 ac_cpp_err=$ac_c_preproc_warn_flag
8143 if test -z "$ac_cpp_err"; then
8144 # We can compile using X headers with no special include directory.
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 for ac_dir in $ac_x_header_dirs; do
8151 if test -r "$ac_dir/X11/Intrinsic.h"; then
8152 ac_x_includes=$ac_dir
8157 rm -f conftest.err conftest.$ac_ext
8158 fi # $ac_x_includes = no
8160 if test "$ac_x_libraries" = no; then
8161 # Check for the libraries.
8162 # See if we find them without any special options.
8163 # Don't add to $LIBS permanently.
8166 cat >conftest.$ac_ext <<_ACEOF
8167 #line $LINENO "configure"
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8173 #include <X11/Intrinsic.h>
8182 rm -f conftest.$ac_objext conftest$ac_exeext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8184 (eval $ac_link) 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -s conftest$ac_exeext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8195 # We can link X programs with no special library path.
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8202 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8204 # Don't even attempt the hair of trying to link an X program!
8205 for ac_extension in a so sl; do
8206 if test -r $ac_dir/libXt.$ac_extension; then
8207 ac_x_libraries=$ac_dir
8213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8214 fi # $ac_x_libraries = no
8216 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8217 # Didn't find X anywhere. Cache the known absence of X.
8218 ac_cv_have_x="have_x=no"
8220 # Record where we found X for the cache.
8221 ac_cv_have_x="have_x=yes \
8222 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8227 eval "$ac_cv_have_x"
8230 if test "$have_x" != yes; then
8231 echo "$as_me:$LINENO: result: $have_x" >&5
8232 echo "${ECHO_T}$have_x" >&6
8235 # If each of the values was on the command line, it overrides each guess.
8236 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8237 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8238 # Update the cache value to reflect the command line values.
8239 ac_cv_have_x="have_x=yes \
8240 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8241 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8242 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8245 if test "$no_x" = yes; then
8246 # Not all programs may use this symbol, but it does not hurt to define it.
8248 cat >>confdefs.h <<\_ACEOF
8249 #define X_DISPLAY_MISSING 1
8252 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8254 if test -n "$x_includes"; then
8255 X_CFLAGS="$X_CFLAGS -I$x_includes"
8258 # It would also be nice to do this for all -L options, not just this one.
8259 if test -n "$x_libraries"; then
8260 X_LIBS="$X_LIBS -L$x_libraries"
8261 # For Solaris; some versions of Sun CC require a space after -R and
8262 # others require no space. Words are not sufficient . . . .
8263 case `(uname -sr) 2>/dev/null` in
8265 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8266 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8267 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8268 cat >conftest.$ac_ext <<_ACEOF
8269 #line $LINENO "configure"
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8284 rm -f conftest.$ac_objext conftest$ac_exeext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8286 (eval $ac_link) 2>&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -s conftest$ac_exeext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8304 if test $ac_R_nospace = yes; then
8305 echo "$as_me:$LINENO: result: no" >&5
8306 echo "${ECHO_T}no" >&6
8307 X_LIBS="$X_LIBS -R$x_libraries"
8309 LIBS="$ac_xsave_LIBS -R $x_libraries"
8310 cat >conftest.$ac_ext <<_ACEOF
8311 #line $LINENO "configure"
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8326 rm -f conftest.$ac_objext conftest$ac_exeext
8327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8328 (eval $ac_link) 2>&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } &&
8332 { ac_try='test -s conftest$ac_exeext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8346 if test $ac_R_space = yes; then
8347 echo "$as_me:$LINENO: result: yes" >&5
8348 echo "${ECHO_T}yes" >&6
8349 X_LIBS="$X_LIBS -R $x_libraries"
8351 echo "$as_me:$LINENO: result: neither works" >&5
8352 echo "${ECHO_T}neither works" >&6
8359 # Check for system-dependent libraries X programs must link with.
8360 # Do this before checking for the system-independent R6 libraries
8361 # (-lICE), since we may need -lsocket or whatever for X linking.
8363 if test "$ISC" = yes; then
8364 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8366 # Martyn Johnson says this is needed for Ultrix, if the X
8367 # libraries were built with DECnet support. And Karl Berry says
8368 # the Alpha needs dnet_stub (dnet does not exist).
8369 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8370 cat >conftest.$ac_ext <<_ACEOF
8371 #line $LINENO "configure"
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8378 /* Override any gcc2 internal prototype to avoid an error. */
8382 /* We use char because int might match the return type of a gcc2
8383 builtin and then its argument prototype would still apply. */
8384 char XOpenDisplay ();
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395 (eval $ac_link) 2>&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -s conftest$ac_exeext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8411 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8412 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 ac_check_lib_save_LIBS=$LIBS
8417 cat >conftest.$ac_ext <<_ACEOF
8418 #line $LINENO "configure"
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8425 /* Override any gcc2 internal prototype to avoid an error. */
8429 /* We use char because int might match the return type of a gcc2
8430 builtin and then its argument prototype would still apply. */
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442 (eval $ac_link) 2>&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -s conftest$ac_exeext'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8452 ac_cv_lib_dnet_dnet_ntoa=yes
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 ac_cv_lib_dnet_dnet_ntoa=no
8459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8460 LIBS=$ac_check_lib_save_LIBS
8462 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8463 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8464 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8465 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8468 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8469 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8470 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8471 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 ac_check_lib_save_LIBS=$LIBS
8475 LIBS="-ldnet_stub $LIBS"
8476 cat >conftest.$ac_ext <<_ACEOF
8477 #line $LINENO "configure"
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8484 /* Override any gcc2 internal prototype to avoid an error. */
8488 /* We use char because int might match the return type of a gcc2
8489 builtin and then its argument prototype would still apply. */
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } &&
8505 { ac_try='test -s conftest$ac_exeext'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 ac_cv_lib_dnet_stub_dnet_ntoa=no
8518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8519 LIBS=$ac_check_lib_save_LIBS
8521 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8522 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8523 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8524 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8530 LIBS="$ac_xsave_LIBS"
8532 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8533 # to get the SysV transport functions.
8534 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8536 # The nsl library prevents programs from opening the X display
8537 # on Irix 5.2, according to T.E. Dickey.
8538 # The functions gethostbyname, getservbyname, and inet_addr are
8539 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8540 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8541 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8542 if test "${ac_cv_func_gethostbyname+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 cat >conftest.$ac_ext <<_ACEOF
8546 #line $LINENO "configure"
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 /* System header to define __stub macros and hopefully few prototypes,
8553 which can conflict with char gethostbyname (); below.
8554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8555 <limits.h> exists even on freestanding compilers. */
8557 # include <limits.h>
8559 # include <assert.h>
8561 /* Override any gcc2 internal prototype to avoid an error. */
8566 /* We use char because int might match the return type of a gcc2
8567 builtin and then its argument prototype would still apply. */
8568 char gethostbyname ();
8569 /* The GNU C library defines this for functions which it implements
8570 to always fail with ENOSYS. Some functions are actually named
8571 something starting with __ and the normal name is an alias. */
8572 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8575 char (*f) () = gethostbyname;
8584 return f != gethostbyname;
8589 rm -f conftest.$ac_objext conftest$ac_exeext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8591 (eval $ac_link) 2>&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_func_gethostbyname=yes
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 ac_cv_func_gethostbyname=no
8608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8610 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8611 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8613 if test $ac_cv_func_gethostbyname = no; then
8614 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8615 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8616 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 ac_check_lib_save_LIBS=$LIBS
8621 cat >conftest.$ac_ext <<_ACEOF
8622 #line $LINENO "configure"
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8629 /* Override any gcc2 internal prototype to avoid an error. */
8633 /* We use char because int might match the return type of a gcc2
8634 builtin and then its argument prototype would still apply. */
8635 char gethostbyname ();
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } &&
8650 { ac_try='test -s conftest$ac_exeext'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
8656 ac_cv_lib_nsl_gethostbyname=yes
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 ac_cv_lib_nsl_gethostbyname=no
8663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8664 LIBS=$ac_check_lib_save_LIBS
8666 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8667 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8668 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8669 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8672 if test $ac_cv_lib_nsl_gethostbyname = no; then
8673 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8674 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8675 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 ac_check_lib_save_LIBS=$LIBS
8680 cat >conftest.$ac_ext <<_ACEOF
8681 #line $LINENO "configure"
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8688 /* Override any gcc2 internal prototype to avoid an error. */
8692 /* We use char because int might match the return type of a gcc2
8693 builtin and then its argument prototype would still apply. */
8694 char gethostbyname ();
8703 rm -f conftest.$ac_objext conftest$ac_exeext
8704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8705 (eval $ac_link) 2>&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -s conftest$ac_exeext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8715 ac_cv_lib_bsd_gethostbyname=yes
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8720 ac_cv_lib_bsd_gethostbyname=no
8722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8723 LIBS=$ac_check_lib_save_LIBS
8725 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8726 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8727 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8728 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8734 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8735 # socket/setsockopt and other routines are undefined under SCO ODT
8736 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8737 # on later versions), says Simon Leinen: it contains gethostby*
8738 # variants that don't use the name server (or something). -lsocket
8739 # must be given before -lnsl if both are needed. We assume that
8740 # if connect needs -lnsl, so does gethostbyname.
8741 echo "$as_me:$LINENO: checking for connect" >&5
8742 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8743 if test "${ac_cv_func_connect+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8747 #line $LINENO "configure"
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 /* System header to define __stub macros and hopefully few prototypes,
8754 which can conflict with char connect (); below.
8755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8756 <limits.h> exists even on freestanding compilers. */
8758 # include <limits.h>
8760 # include <assert.h>
8762 /* Override any gcc2 internal prototype to avoid an error. */
8767 /* We use char because int might match the return type of a gcc2
8768 builtin and then its argument prototype would still apply. */
8770 /* The GNU C library defines this for functions which it implements
8771 to always fail with ENOSYS. Some functions are actually named
8772 something starting with __ and the normal name is an alias. */
8773 #if defined (__stub_connect) || defined (__stub___connect)
8776 char (*f) () = connect;
8785 return f != connect;
8790 rm -f conftest.$ac_objext conftest$ac_exeext
8791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8792 (eval $ac_link) 2>&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -s conftest$ac_exeext'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; }; then
8802 ac_cv_func_connect=yes
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 ac_cv_func_connect=no
8809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8811 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8812 echo "${ECHO_T}$ac_cv_func_connect" >&6
8814 if test $ac_cv_func_connect = no; then
8815 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8816 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8817 if test "${ac_cv_lib_socket_connect+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 ac_check_lib_save_LIBS=$LIBS
8821 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8822 cat >conftest.$ac_ext <<_ACEOF
8823 #line $LINENO "configure"
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8830 /* Override any gcc2 internal prototype to avoid an error. */
8834 /* We use char because int might match the return type of a gcc2
8835 builtin and then its argument prototype would still apply. */
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -s conftest$ac_exeext'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8857 ac_cv_lib_socket_connect=yes
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8862 ac_cv_lib_socket_connect=no
8864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8865 LIBS=$ac_check_lib_save_LIBS
8867 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8868 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8869 if test $ac_cv_lib_socket_connect = yes; then
8870 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8875 # Guillermo Gomez says -lposix is necessary on A/UX.
8876 echo "$as_me:$LINENO: checking for remove" >&5
8877 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8878 if test "${ac_cv_func_remove+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 cat >conftest.$ac_ext <<_ACEOF
8882 #line $LINENO "configure"
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 /* System header to define __stub macros and hopefully few prototypes,
8889 which can conflict with char remove (); below.
8890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8891 <limits.h> exists even on freestanding compilers. */
8893 # include <limits.h>
8895 # include <assert.h>
8897 /* Override any gcc2 internal prototype to avoid an error. */
8902 /* We use char because int might match the return type of a gcc2
8903 builtin and then its argument prototype would still apply. */
8905 /* The GNU C library defines this for functions which it implements
8906 to always fail with ENOSYS. Some functions are actually named
8907 something starting with __ and the normal name is an alias. */
8908 #if defined (__stub_remove) || defined (__stub___remove)
8911 char (*f) () = remove;
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927 (eval $ac_link) 2>&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } &&
8931 { ac_try='test -s conftest$ac_exeext'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; }; then
8937 ac_cv_func_remove=yes
8939 echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8942 ac_cv_func_remove=no
8944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8947 echo "${ECHO_T}$ac_cv_func_remove" >&6
8949 if test $ac_cv_func_remove = no; then
8950 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8951 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8952 if test "${ac_cv_lib_posix_remove+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 ac_check_lib_save_LIBS=$LIBS
8956 LIBS="-lposix $LIBS"
8957 cat >conftest.$ac_ext <<_ACEOF
8958 #line $LINENO "configure"
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8965 /* Override any gcc2 internal prototype to avoid an error. */
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8980 rm -f conftest.$ac_objext conftest$ac_exeext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -s conftest$ac_exeext'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_lib_posix_remove=yes
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 ac_cv_lib_posix_remove=no
8999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9000 LIBS=$ac_check_lib_save_LIBS
9002 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9003 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9004 if test $ac_cv_lib_posix_remove = yes; then
9005 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9010 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9011 echo "$as_me:$LINENO: checking for shmat" >&5
9012 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9013 if test "${ac_cv_func_shmat+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 cat >conftest.$ac_ext <<_ACEOF
9017 #line $LINENO "configure"
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9023 /* System header to define __stub macros and hopefully few prototypes,
9024 which can conflict with char shmat (); below.
9025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9026 <limits.h> exists even on freestanding compilers. */
9028 # include <limits.h>
9030 # include <assert.h>
9032 /* Override any gcc2 internal prototype to avoid an error. */
9037 /* We use char because int might match the return type of a gcc2
9038 builtin and then its argument prototype would still apply. */
9040 /* The GNU C library defines this for functions which it implements
9041 to always fail with ENOSYS. Some functions are actually named
9042 something starting with __ and the normal name is an alias. */
9043 #if defined (__stub_shmat) || defined (__stub___shmat)
9046 char (*f) () = shmat;
9060 rm -f conftest.$ac_objext conftest$ac_exeext
9061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062 (eval $ac_link) 2>&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
9066 { ac_try='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 ac_cv_func_shmat=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9081 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9082 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9084 if test $ac_cv_func_shmat = no; then
9085 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9086 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9087 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 ac_check_lib_save_LIBS=$LIBS
9092 cat >conftest.$ac_ext <<_ACEOF
9093 #line $LINENO "configure"
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9100 /* Override any gcc2 internal prototype to avoid an error. */
9104 /* We use char because int might match the return type of a gcc2
9105 builtin and then its argument prototype would still apply. */
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -s conftest$ac_exeext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 ac_cv_lib_ipc_shmat=yes
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 ac_cv_lib_ipc_shmat=no
9134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9135 LIBS=$ac_check_lib_save_LIBS
9137 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9138 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9139 if test $ac_cv_lib_ipc_shmat = yes; then
9140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9146 # Check for libraries that X11R6 Xt/Xaw programs need.
9147 ac_save_LDFLAGS=$LDFLAGS
9148 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9149 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9150 # check for ICE first), but we must link in the order -lSM -lICE or
9151 # we get undefined symbols. So assume we have SM if we have ICE.
9152 # These have to be linked with before -lX11, unlike the other
9153 # libraries we check for below, so use a different variable.
9154 # John Interrante, Karl Berry
9155 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9156 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9157 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 ac_check_lib_save_LIBS=$LIBS
9161 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9162 cat >conftest.$ac_ext <<_ACEOF
9163 #line $LINENO "configure"
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9170 /* Override any gcc2 internal prototype to avoid an error. */
9174 /* We use char because int might match the return type of a gcc2
9175 builtin and then its argument prototype would still apply. */
9176 char IceConnectionNumber ();
9180 IceConnectionNumber ();
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187 (eval $ac_link) 2>&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -s conftest$ac_exeext'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; }; then
9197 ac_cv_lib_ICE_IceConnectionNumber=yes
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9202 ac_cv_lib_ICE_IceConnectionNumber=no
9204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9205 LIBS=$ac_check_lib_save_LIBS
9207 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9208 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9209 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9210 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9213 LDFLAGS=$ac_save_LDFLAGS
9224 X_TOOLKIT_LIBS="-lXt"
9225 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9227 our_saved_LDFLAGS="$LDFLAGS"
9228 LDFLAGS="$X_LIBS $LDFLAGS"
9229 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9230 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9231 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 ac_check_lib_save_LIBS=$LIBS
9235 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9236 cat >conftest.$ac_ext <<_ACEOF
9237 #line $LINENO "configure"
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9244 /* Override any gcc2 internal prototype to avoid an error. */
9248 /* We use char because int might match the return type of a gcc2
9249 builtin and then its argument prototype would still apply. */
9250 char XtToolkitThreadInitialize ();
9254 XtToolkitThreadInitialize ();
9259 rm -f conftest.$ac_objext conftest$ac_exeext
9260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261 (eval $ac_link) 2>&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } &&
9265 { ac_try='test -s conftest$ac_exeext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9279 LIBS=$ac_check_lib_save_LIBS
9281 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9282 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9283 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9285 cat >>confdefs.h <<\_ACEOF
9286 #define X_THREAD_SUPPORT 1
9291 LDFLAGS="$our_saved_LDFLAGS"
9295 if test "x$no_x" = "xyes"; then
9303 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9306 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9308 echo "$as_me:$LINENO: checking for X" >&5
9309 echo $ECHO_N "checking for X... $ECHO_C" >&6
9310 if test "$no_x" != "yes" ; then
9312 cat >>confdefs.h <<\_ACEOF
9316 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9317 my_includes="$my_includes -I/usr/X11R6/include"
9318 ctlib_graphics="$ctlibs_base -lctgraphics"
9319 echo "$as_me:$LINENO: result: yes" >&5
9320 echo "${ECHO_T}yes" >&6
9321 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9322 if test "$libgl" = "true" ; then
9323 # Removed "-lglut" for Mac OS X compilation
9324 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9325 if test "$wxwin" = "true" ; then
9327 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9328 elif "$wx_mac" ; then
9329 ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9333 if test "$wxwin" = "true" ; then
9335 cat >>confdefs.h <<\_ACEOF
9350 echo "$as_me:$LINENO: result: no" >&5
9351 echo "${ECHO_T}no" >&6
9354 if test "$png" = "true" ; then
9355 ctlibs_tools="$ctlibs_tools -lpng"
9357 if test "$zlib" = "true" ; then
9358 ctlibs_tools="$ctlibs_tools -lz"
9360 if test "$fftw" = "true" ; then
9361 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9363 if test "$ctn" = "true"; then
9364 ctlibs_tools="$ctlibs_tools -lctn"
9367 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9368 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9369 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 ac_check_lib_save_LIBS=$LIBS
9373 LIBS="-ldmallocxx $LIBS"
9374 cat >conftest.$ac_ext <<_ACEOF
9375 #line $LINENO "configure"
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_lib_dmallocxx_main=yes
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_cv_lib_dmallocxx_main=no
9410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9411 LIBS=$ac_check_lib_save_LIBS
9413 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9414 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9415 if test $ac_cv_lib_dmallocxx_main = yes; then
9421 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9422 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9423 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9424 if test "${enable_dmalloc+set}" = set; then
9425 enableval="$enable_dmalloc"
9426 case "${enableval}" in
9427 yes) usedmalloc=true
9428 echo "$as_me:$LINENO: result: yes" >&5
9429 echo "${ECHO_T}yes" >&6
9431 no) usedmalloc=false
9432 echo "$as_me:$LINENO: result: no" >&5
9433 echo "${ECHO_T}no" >&6
9435 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9436 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9440 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9441 echo "${ECHO_T}no" >&6
9444 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9445 ctlibs_tools="$ctlibs_tools -ldmallocxx"
9447 cat >>confdefs.h <<\_ACEOF
9448 #define HAVE_DMALLOC 1
9451 echo "$as_me:$LINENO: result: Using dmalloc" >&5
9452 echo "${ECHO_T}Using dmalloc" >&6
9455 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9456 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9457 if test "${ac_cv_lib_efence_main+set}" = set; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 ac_check_lib_save_LIBS=$LIBS
9461 LIBS="-lefence $LIBS"
9462 cat >conftest.$ac_ext <<_ACEOF
9463 #line $LINENO "configure"
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9481 (eval $ac_link) 2>&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try='test -s conftest$ac_exeext'
9486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; }; then
9491 ac_cv_lib_efence_main=yes
9493 echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9496 ac_cv_lib_efence_main=no
9498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_check_lib_save_LIBS
9501 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9502 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9503 if test $ac_cv_lib_efence_main = yes; then
9509 echo "$as_me:$LINENO: checking for enable-efence" >&5
9510 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9511 # Check whether --enable-efence or --disable-efence was given.
9512 if test "${enable_efence+set}" = set; then
9513 enableval="$enable_efence"
9514 case "${enableval}" in
9516 echo "$as_me:$LINENO: result: yes" >&5
9517 echo "${ECHO_T}yes" >&6
9520 echo "$as_me:$LINENO: result: no" >&5
9521 echo "${ECHO_T}no" >&6
9523 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9524 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9528 useefence=false; echo "$as_me:$LINENO: result: no" >&5
9529 echo "${ECHO_T}no" >&6
9532 if test "$efence" = "true" -a "$useefence" = "true" ; then
9533 ctlibs_tools="$ctlibs_tools -lefence"
9535 cat >>confdefs.h <<\_ACEOF
9536 #define HAVE_EFENCE 1
9539 echo "$as_me:$LINENO: result: Using efence" >&5
9540 echo "${ECHO_T}Using efence" >&6
9543 if test "$wxwin" = "true" ; then
9544 if "$wx_gtk" = "true" || "$wx_mac" == "true" ; then
9545 wxcflags=`$wxconfig --cflags`
9546 wxlibs=`$wxconfig --libs`
9548 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9549 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9551 CFLAGS="$CFLAGS -I../include $wxcflags"
9552 ctlib_graphics="$ctlib_graphics $wxlibs"
9556 HAVE_WXWINDOWS_TRUE=
9557 HAVE_WXWINDOWS_FALSE='#'
9559 HAVE_WXWINDOWS_TRUE='#'
9560 HAVE_WXWINDOWS_FALSE=
9566 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9567 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9570 if test -n "$lamdir" ; then
9571 lamprograms="ctsimtext-lam"
9579 ac_config_files="$ac_config_files Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile man/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile helical/Makefile helical/sample-helical.sh"
9582 cat >confcache <<\_ACEOF
9583 # This file is a shell script that caches the results of configure
9584 # tests run on this system so they can be shared between configure
9585 # scripts and configure runs, see configure's option --config-cache.
9586 # It is not useful on other systems. If it contains results you don't
9587 # want to keep, you may remove or edit it.
9589 # config.status only pays attention to the cache file if you give it
9590 # the --recheck option to rerun configure.
9592 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9593 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9598 # The following way of writing the cache mishandles newlines in values,
9599 # but we know of no workaround that is simple, portable, and efficient.
9600 # So, don't put newlines in cache variables' values.
9601 # Ultrix sh set writes to stderr and can't be redirected directly,
9602 # and sets the high bit in the cache file unless we assign to the vars.
9605 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9607 # `set' does not quote correctly, so add quotes (double-quote
9608 # substitution turns \\\\ into \\, and sed turns \\ into \).
9611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9614 # `set' quotes correctly as required by POSIX, so do not add quotes.
9616 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9623 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9625 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9627 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9628 if test -w $cache_file; then
9629 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9630 cat confcache >$cache_file
9632 echo "not updating unwritable cache $cache_file"
9637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9638 # Let make expand exec_prefix.
9639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9641 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9642 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9643 # trailing colons and then remove the whole line if VPATH becomes empty
9644 # (actually we leave an empty line to preserve line numbers).
9645 if test "x$srcdir" = x.; then
9646 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9647 s/:*\$(srcdir):*/:/;
9648 s/:*\${srcdir}:*/:/;
9650 s/^\([^=]*=[ ]*\):*/\1/;
9656 DEFS=-DHAVE_CONFIG_H
9660 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9661 # 1. Remove the extension, and $U if already installed.
9662 ac_i=`echo "$ac_i" |
9663 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9665 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9666 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9670 LTLIBOBJS=$ac_ltlibobjs
9674 : ${CONFIG_STATUS=./config.status}
9675 ac_clean_files_save=$ac_clean_files
9676 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9677 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9678 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9679 cat >$CONFIG_STATUS <<_ACEOF
9681 # Generated by $as_me.
9682 # Run this file to recreate the current configuration.
9683 # Compiler output produced by configure, useful for debugging
9684 # configure, is in config.log if it exists.
9689 SHELL=\${CONFIG_SHELL-$SHELL}
9692 cat >>$CONFIG_STATUS <<\_ACEOF
9693 ## --------------------- ##
9694 ## M4sh Initialization. ##
9695 ## --------------------- ##
9697 # Be Bourne compatible
9698 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9701 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9702 # is contrary to our usage. Disable this feature.
9703 alias -g '${1+"$@"}'='"$@"'
9704 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9708 # Support unset when possible.
9709 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9716 # Work around bugs in pre-3.0 UWIN ksh.
9717 $as_unset ENV MAIL MAILPATH
9724 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9725 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9726 LC_TELEPHONE LC_TIME
9728 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9729 eval $as_var=C; export $as_var
9735 # Required to use basename.
9736 if expr a : '\(a\)' >/dev/null 2>&1; then
9742 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9743 as_basename=basename
9749 # Name of the executable.
9750 as_me=`$as_basename "$0" ||
9751 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9752 X"$0" : 'X\(//\)$' \| \
9753 X"$0" : 'X\(/\)$' \| \
9754 . : '\(.\)' 2>/dev/null ||
9756 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9757 /^X\/\(\/\/\)$/{ s//\1/; q; }
9758 /^X\/\(\/\).*/{ s//\1/; q; }
9762 # PATH needs CR, and LINENO needs CR and PATH.
9763 # Avoid depending upon Character Ranges.
9764 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9765 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9766 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9767 as_cr_digits='0123456789'
9768 as_cr_alnum=$as_cr_Letters$as_cr_digits
9770 # The user is always right.
9771 if test "${PATH_SEPARATOR+set}" != set; then
9772 echo "#! /bin/sh" >conf$$.sh
9773 echo "exit 0" >>conf$$.sh
9775 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9786 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9787 test "x$as_lineno_1" != "x$as_lineno_2" &&
9788 test "x$as_lineno_3" = "x$as_lineno_2" || {
9789 # Find who we are. Look in the path if we contain no path at all
9792 *[\\/]* ) as_myself=$0 ;;
9793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9797 test -z "$as_dir" && as_dir=.
9798 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9803 # We did not find ourselves, most probably we were run as `sh COMMAND'
9804 # in which case we are not to be found in the path.
9805 if test "x$as_myself" = x; then
9808 if test ! -f "$as_myself"; then
9809 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9810 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9811 { (exit 1); exit 1; }; }
9813 case $CONFIG_SHELL in
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9819 test -z "$as_dir" && as_dir=.
9820 for as_base in sh bash ksh sh5; do
9823 if ("$as_dir/$as_base" -c '
9826 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9827 test "x$as_lineno_1" != "x$as_lineno_2" &&
9828 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9829 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9830 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9831 CONFIG_SHELL=$as_dir/$as_base
9833 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9841 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9842 # uniformly replaced by the line number. The first 'sed' inserts a
9843 # line-number line before each line; the second 'sed' does the real
9844 # work. The second script uses 'N' to pair each line-number line
9845 # with the numbered line, and appends trailing '-' during
9846 # substitution so that $LINENO is not a special case at line end.
9847 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9848 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9849 sed '=' <$as_myself |
9854 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9857 s,^['$as_cr_digits']*\n,,
9859 chmod +x $as_me.lineno ||
9860 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9861 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9862 { (exit 1); exit 1; }; }
9864 # Don't try to exec as it changes $[0], causing all sort of problems
9865 # (the dirname of $[0] is not the place where we might find the
9866 # original and so on. Autoconf is especially sensible to this).
9868 # Exit status is that of the last command.
9873 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9874 *c*,-n*) ECHO_N= ECHO_C='
9876 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9877 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9880 if expr a : '\(a\)' >/dev/null 2>&1; then
9886 rm -f conf$$ conf$$.exe conf$$.file
9888 if ln -s conf$$.file conf$$ 2>/dev/null; then
9889 # We could just check for DJGPP; but this test a) works b) is more generic
9890 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9891 if test -f conf$$.exe; then
9892 # Don't use ln at all; we don't have any links
9897 elif ln conf$$.file conf$$ 2>/dev/null; then
9902 rm -f conf$$ conf$$.exe conf$$.file
9904 if mkdir -p . 2>/dev/null; then
9910 as_executable_p="test -f"
9912 # Sed expression to map a string onto a valid CPP name.
9913 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9915 # Sed expression to map a string onto a valid variable name.
9916 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9920 # We need space, tab and new line, in precisely that order.
9930 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9931 # report actual input values of CONFIG_FILES etc. instead of their
9932 # values after options handling. Logging --version etc. is OK.
9936 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9937 ## Running $as_me. ##
9942 This file was extended by $as_me, which was
9943 generated by GNU Autoconf 2.57. Invocation command line was
9945 CONFIG_FILES = $CONFIG_FILES
9946 CONFIG_HEADERS = $CONFIG_HEADERS
9947 CONFIG_LINKS = $CONFIG_LINKS
9948 CONFIG_COMMANDS = $CONFIG_COMMANDS
9952 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9956 # Files that config.status was made for.
9957 if test -n "$ac_config_files"; then
9958 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9961 if test -n "$ac_config_headers"; then
9962 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9965 if test -n "$ac_config_links"; then
9966 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9969 if test -n "$ac_config_commands"; then
9970 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9973 cat >>$CONFIG_STATUS <<\_ACEOF
9976 \`$as_me' instantiates files from templates according to the
9977 current configuration.
9979 Usage: $0 [OPTIONS] [FILE]...
9981 -h, --help print this help, then exit
9982 -V, --version print version number, then exit
9983 -q, --quiet do not print progress messages
9984 -d, --debug don't remove temporary files
9985 --recheck update $as_me by reconfiguring in the same conditions
9986 --file=FILE[:TEMPLATE]
9987 instantiate the configuration file FILE
9988 --header=FILE[:TEMPLATE]
9989 instantiate the configuration header FILE
9991 Configuration files:
9994 Configuration headers:
9997 Configuration commands:
10000 Report bugs to <bug-autoconf@gnu.org>."
10003 cat >>$CONFIG_STATUS <<_ACEOF
10006 configured by $0, generated by GNU Autoconf 2.57,
10007 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10009 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10010 Free Software Foundation, Inc.
10011 This config.status script is free software; the Free Software Foundation
10012 gives unlimited permission to copy, distribute and modify it."
10017 cat >>$CONFIG_STATUS <<\_ACEOF
10018 # If no file are specified by the user, then we need to provide default
10019 # value. By we need to know if files were specified by the user.
10025 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10026 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10034 *) # This is not an option, so the user has probably given explicit
10037 ac_need_defaults=false;;
10041 # Handling of the options.
10043 cat >>$CONFIG_STATUS <<\_ACEOF
10044 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10046 --version | --vers* | -V )
10047 echo "$ac_cs_version"; exit 0 ;;
10049 # Conflict between --help and --header
10050 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10051 Try \`$0 --help' for more information." >&5
10052 echo "$as_me: error: ambiguous option: $1
10053 Try \`$0 --help' for more information." >&2;}
10054 { (exit 1); exit 1; }; };;
10055 --help | --hel | -h )
10056 echo "$ac_cs_usage"; exit 0 ;;
10057 --debug | --d* | -d )
10059 --file | --fil | --fi | --f )
10061 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10062 ac_need_defaults=false;;
10063 --header | --heade | --head | --hea )
10065 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10066 ac_need_defaults=false;;
10067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10068 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10071 # This is an error.
10072 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10073 Try \`$0 --help' for more information." >&5
10074 echo "$as_me: error: unrecognized option: $1
10075 Try \`$0 --help' for more information." >&2;}
10076 { (exit 1); exit 1; }; } ;;
10078 *) ac_config_targets="$ac_config_targets $1" ;;
10084 ac_configure_extra_args=
10086 if $ac_cs_silent; then
10088 ac_configure_extra_args="$ac_configure_extra_args --silent"
10092 cat >>$CONFIG_STATUS <<_ACEOF
10093 if \$ac_cs_recheck; then
10094 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10095 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10100 cat >>$CONFIG_STATUS <<_ACEOF
10102 # INIT-COMMANDS section.
10111 cat >>$CONFIG_STATUS <<\_ACEOF
10112 for ac_config_target in $ac_config_targets
10114 case "$ac_config_target" in
10115 # Handling of arguments.
10116 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10117 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10118 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10119 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10120 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10121 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10122 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10123 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10124 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10125 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10126 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10127 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10128 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10129 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10130 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10131 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10132 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10133 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10134 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10135 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10136 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10137 { (exit 1); exit 1; }; };;
10141 # If the user did not use the arguments to specify the items to instantiate,
10142 # then the envvar interface is used. Set only those that are not.
10143 # We use the long form for the default assignment because of an extremely
10144 # bizarre bug on SunOS 4.1.3.
10145 if $ac_need_defaults; then
10146 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10147 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10148 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10151 # Have a temporary directory for convenience. Make it in the build tree
10152 # simply because there is no reason to put it here, and in addition,
10153 # creating and moving files from /tmp can sometimes cause problems.
10154 # Create a temporary directory, and hook for its removal unless debugging.
10157 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10158 trap '{ (exit 1); exit 1; }' 1 2 13 15
10161 # Create a (secure) tmp directory for tmp files.
10164 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10165 test -n "$tmp" && test -d "$tmp"
10168 tmp=./confstat$$-$RANDOM
10169 (umask 077 && mkdir $tmp)
10172 echo "$me: cannot create a temporary directory in ." >&2
10173 { (exit 1); exit 1; }
10178 cat >>$CONFIG_STATUS <<_ACEOF
10181 # CONFIG_FILES section.
10184 # No need to generate the scripts if there are no CONFIG_FILES.
10185 # This happens for instance when ./config.status config.h
10186 if test -n "\$CONFIG_FILES"; then
10187 # Protect against being on the right side of a sed subst in config.status.
10188 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10189 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10190 s,@SHELL@,$SHELL,;t t
10191 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10192 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10193 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10194 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10195 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10196 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10197 s,@exec_prefix@,$exec_prefix,;t t
10198 s,@prefix@,$prefix,;t t
10199 s,@program_transform_name@,$program_transform_name,;t t
10200 s,@bindir@,$bindir,;t t
10201 s,@sbindir@,$sbindir,;t t
10202 s,@libexecdir@,$libexecdir,;t t
10203 s,@datadir@,$datadir,;t t
10204 s,@sysconfdir@,$sysconfdir,;t t
10205 s,@sharedstatedir@,$sharedstatedir,;t t
10206 s,@localstatedir@,$localstatedir,;t t
10207 s,@libdir@,$libdir,;t t
10208 s,@includedir@,$includedir,;t t
10209 s,@oldincludedir@,$oldincludedir,;t t
10210 s,@infodir@,$infodir,;t t
10211 s,@mandir@,$mandir,;t t
10212 s,@build_alias@,$build_alias,;t t
10213 s,@host_alias@,$host_alias,;t t
10214 s,@target_alias@,$target_alias,;t t
10215 s,@DEFS@,$DEFS,;t t
10216 s,@ECHO_C@,$ECHO_C,;t t
10217 s,@ECHO_N@,$ECHO_N,;t t
10218 s,@ECHO_T@,$ECHO_T,;t t
10219 s,@LIBS@,$LIBS,;t t
10220 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10221 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10222 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10223 s,@PACKAGE@,$PACKAGE,;t t
10224 s,@VERSION@,$VERSION,;t t
10225 s,@ACLOCAL@,$ACLOCAL,;t t
10226 s,@AUTOCONF@,$AUTOCONF,;t t
10227 s,@AUTOMAKE@,$AUTOMAKE,;t t
10228 s,@AUTOHEADER@,$AUTOHEADER,;t t
10229 s,@MAKEINFO@,$MAKEINFO,;t t
10230 s,@SET_MAKE@,$SET_MAKE,;t t
10232 s,@RANLIB@,$RANLIB,;t t
10233 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10235 s,@CFLAGS@,$CFLAGS,;t t
10236 s,@LDFLAGS@,$LDFLAGS,;t t
10237 s,@CPPFLAGS@,$CPPFLAGS,;t t
10238 s,@ac_ct_CC@,$ac_ct_CC,;t t
10239 s,@EXEEXT@,$EXEEXT,;t t
10240 s,@OBJEXT@,$OBJEXT,;t t
10242 s,@CXXFLAGS@,$CXXFLAGS,;t t
10243 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10244 s,@wxconfig@,$wxconfig,;t t
10245 s,@build@,$build,;t t
10246 s,@build_cpu@,$build_cpu,;t t
10247 s,@build_vendor@,$build_vendor,;t t
10248 s,@build_os@,$build_os,;t t
10249 s,@host@,$host,;t t
10250 s,@host_cpu@,$host_cpu,;t t
10251 s,@host_vendor@,$host_vendor,;t t
10252 s,@host_os@,$host_os,;t t
10254 s,@EGREP@,$EGREP,;t t
10255 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10256 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10257 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10258 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10259 s,@lamdir@,$lamdir,;t t
10260 s,@mpienable@,$mpienable,;t t
10261 s,@cgibindir@,$cgibindir,;t t
10262 s,@cgibinurl@,$cgibinurl,;t t
10263 s,@webdatadir@,$webdatadir,;t t
10264 s,@webdataurl@,$webdataurl,;t t
10265 s,@htmldir@,$htmldir,;t t
10266 s,@cgiprograms@,$cgiprograms,;t t
10267 s,@htmldata@,$htmldata,;t t
10268 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10269 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10270 s,@webenabled@,$webenabled,;t t
10271 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10272 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10273 s,@X_CFLAGS@,$X_CFLAGS,;t t
10274 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10275 s,@X_LIBS@,$X_LIBS,;t t
10276 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10277 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10278 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10279 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10280 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10281 s,@my_includes@,$my_includes,;t t
10282 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10283 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10284 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10285 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10286 s,@wxcflags@,$wxcflags,;t t
10287 s,@wxlibs@,$wxlibs,;t t
10288 s,@ctlibs@,$ctlibs,;t t
10289 s,@lamprograms@,$lamprograms,;t t
10290 s,@lamdefs@,$lamdefs,;t t
10291 s,@LIBOBJS@,$LIBOBJS,;t t
10292 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10297 cat >>$CONFIG_STATUS <<\_ACEOF
10298 # Split the substitutions into bite-sized pieces for seds with
10299 # small command number limits, like on Digital OSF/1 and HP-UX.
10300 ac_max_sed_lines=48
10301 ac_sed_frag=1 # Number of current file.
10302 ac_beg=1 # First line for current file.
10303 ac_end=$ac_max_sed_lines # Line after last line for current file.
10306 while $ac_more_lines; do
10307 if test $ac_beg -gt 1; then
10308 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10310 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10312 if test ! -s $tmp/subs.frag; then
10313 ac_more_lines=false
10315 # The purpose of the label and of the branching condition is to
10316 # speed up the sed processing (if there are no `@' at all, there
10317 # is no need to browse any of the substitutions).
10318 # These are the two extra sed commands mentioned above.
10320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10321 if test -z "$ac_sed_cmds"; then
10322 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10324 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10326 ac_sed_frag=`expr $ac_sed_frag + 1`
10328 ac_end=`expr $ac_end + $ac_max_sed_lines`
10331 if test -z "$ac_sed_cmds"; then
10334 fi # test -n "$CONFIG_FILES"
10337 cat >>$CONFIG_STATUS <<\_ACEOF
10338 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10339 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10341 - | *:- | *:-:* ) # input from stdin
10343 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10344 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10345 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10346 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10347 * ) ac_file_in=$ac_file.in ;;
10350 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10351 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10353 X"$ac_file" : 'X\(//\)[^/]' \| \
10354 X"$ac_file" : 'X\(//\)$' \| \
10355 X"$ac_file" : 'X\(/\)' \| \
10356 . : '\(.\)' 2>/dev/null ||
10358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10359 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10360 /^X\(\/\/\)$/{ s//\1/; q; }
10361 /^X\(\/\).*/{ s//\1/; q; }
10363 { if $as_mkdir_p; then
10368 while test ! -d "$as_dir"; do
10369 as_dirs="$as_dir $as_dirs"
10370 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10372 X"$as_dir" : 'X\(//\)[^/]' \| \
10373 X"$as_dir" : 'X\(//\)$' \| \
10374 X"$as_dir" : 'X\(/\)' \| \
10375 . : '\(.\)' 2>/dev/null ||
10377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10378 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10379 /^X\(\/\/\)$/{ s//\1/; q; }
10380 /^X\(\/\).*/{ s//\1/; q; }
10383 test ! -n "$as_dirs" || mkdir $as_dirs
10384 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10385 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10386 { (exit 1); exit 1; }; }; }
10390 if test "$ac_dir" != .; then
10391 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10392 # A "../" for each directory in $ac_dir_suffix.
10393 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10395 ac_dir_suffix= ac_top_builddir=
10399 .) # No --srcdir option. We are building in place.
10401 if test -z "$ac_top_builddir"; then
10404 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10406 [\\/]* | ?:[\\/]* ) # Absolute path.
10407 ac_srcdir=$srcdir$ac_dir_suffix;
10408 ac_top_srcdir=$srcdir ;;
10409 *) # Relative path.
10410 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10411 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10413 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10415 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10416 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10417 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10418 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10423 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10426 if test x"$ac_file" != x-; then
10427 { echo "$as_me:$LINENO: creating $ac_file" >&5
10428 echo "$as_me: creating $ac_file" >&6;}
10431 # Let's still pretend it is `configure' which instantiates (i.e., don't
10432 # use $as_me), people would be surprised to read:
10433 # /* config.h. Generated by config.status. */
10434 if test x"$ac_file" = x-; then
10437 configure_input="$ac_file. "
10439 configure_input=$configure_input"Generated from `echo $ac_file_in |
10440 sed 's,.*/,,'` by configure."
10442 # First look for the input files in the build tree, otherwise in the
10444 ac_file_inputs=`IFS=:
10445 for f in $ac_file_in; do
10447 -) echo $tmp/stdin ;;
10449 # Absolute (can't be DOS-style, as IFS=:)
10450 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10451 echo "$as_me: error: cannot find input file: $f" >&2;}
10452 { (exit 1); exit 1; }; }
10455 if test -f "$f"; then
10458 elif test -f "$srcdir/$f"; then
10463 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10464 echo "$as_me: error: cannot find input file: $f" >&2;}
10465 { (exit 1); exit 1; }; }
10468 done` || { (exit 1); exit 1; }
10470 cat >>$CONFIG_STATUS <<_ACEOF
10474 cat >>$CONFIG_STATUS <<\_ACEOF
10476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10477 s,@configure_input@,$configure_input,;t t
10478 s,@srcdir@,$ac_srcdir,;t t
10479 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10480 s,@top_srcdir@,$ac_top_srcdir,;t t
10481 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10482 s,@builddir@,$ac_builddir,;t t
10483 s,@abs_builddir@,$ac_abs_builddir,;t t
10484 s,@top_builddir@,$ac_top_builddir,;t t
10485 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10486 s,@INSTALL@,$ac_INSTALL,;t t
10487 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10489 if test x"$ac_file" != x-; then
10490 mv $tmp/out $ac_file
10498 cat >>$CONFIG_STATUS <<\_ACEOF
10501 # CONFIG_HEADER section.
10504 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10505 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10507 # ac_d sets the value in "#define NAME VALUE" lines.
10508 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10509 ac_dB='[ ].*$,\1#\2'
10512 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10513 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10514 ac_uB='$,\1#\2define\3'
10518 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10519 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10521 - | *:- | *:-:* ) # input from stdin
10523 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10524 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10525 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10526 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10527 * ) ac_file_in=$ac_file.in ;;
10530 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10531 echo "$as_me: creating $ac_file" >&6;}
10533 # First look for the input files in the build tree, otherwise in the
10535 ac_file_inputs=`IFS=:
10536 for f in $ac_file_in; do
10538 -) echo $tmp/stdin ;;
10540 # Absolute (can't be DOS-style, as IFS=:)
10541 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10542 echo "$as_me: error: cannot find input file: $f" >&2;}
10543 { (exit 1); exit 1; }; }
10546 if test -f "$f"; then
10549 elif test -f "$srcdir/$f"; then
10554 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10555 echo "$as_me: error: cannot find input file: $f" >&2;}
10556 { (exit 1); exit 1; }; }
10559 done` || { (exit 1); exit 1; }
10560 # Remove the trailing spaces.
10561 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10565 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10566 # `conftest.undefs', that substitutes the proper values into
10567 # config.h.in to produce config.h. The first handles `#define'
10568 # templates, and the second `#undef' templates.
10569 # And first: Protect against being on the right side of a sed subst in
10570 # config.status. Protect against being in an unquoted here document
10571 # in config.status.
10572 rm -f conftest.defines conftest.undefs
10573 # Using a here document instead of a string reduces the quoting nightmare.
10574 # Putting comments in sed scripts is not portable.
10576 # `end' is used to avoid that the second main sed command (meant for
10577 # 0-ary CPP macros) applies to n-ary macro definitions.
10578 # See the Autoconf documentation for `clear'.
10579 cat >confdef2sed.sed <<\_ACEOF
10584 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10586 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10589 # If some macros were called several times there might be several times
10590 # the same #defines, which is useless. Nevertheless, we may not want to
10591 # sort them, since we want the *last* AC-DEFINE to be honored.
10592 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10593 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10594 rm -f confdef2sed.sed
10596 # This sed command replaces #undef with comments. This is necessary, for
10597 # example, in the case of _POSIX_SOURCE, which is predefined and required
10598 # on some systems where configure will not decide to define it.
10599 cat >>conftest.undefs <<\_ACEOF
10600 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10603 # Break up conftest.defines because some shells have a limit on the size
10604 # of here documents, and old seds have small limits too (100 cmds).
10605 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10606 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10607 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10608 echo ' :' >>$CONFIG_STATUS
10609 rm -f conftest.tail
10610 while grep . conftest.defines >/dev/null
10612 # Write a limited-size here document to $tmp/defines.sed.
10613 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10614 # Speed up: don't consider the non `#define' lines.
10615 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10616 # Work around the forget-to-reset-the-flag bug.
10617 echo 't clr' >>$CONFIG_STATUS
10618 echo ': clr' >>$CONFIG_STATUS
10619 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10621 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10623 mv $tmp/out $tmp/in
10625 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10626 rm -f conftest.defines
10627 mv conftest.tail conftest.defines
10629 rm -f conftest.defines
10630 echo ' fi # grep' >>$CONFIG_STATUS
10631 echo >>$CONFIG_STATUS
10633 # Break up conftest.undefs because some shells have a limit on the size
10634 # of here documents, and old seds have small limits too (100 cmds).
10635 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10636 rm -f conftest.tail
10637 while grep . conftest.undefs >/dev/null
10639 # Write a limited-size here document to $tmp/undefs.sed.
10640 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10641 # Speed up: don't consider the non `#undef'
10642 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10643 # Work around the forget-to-reset-the-flag bug.
10644 echo 't clr' >>$CONFIG_STATUS
10645 echo ': clr' >>$CONFIG_STATUS
10646 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10648 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10650 mv $tmp/out $tmp/in
10652 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10653 rm -f conftest.undefs
10654 mv conftest.tail conftest.undefs
10656 rm -f conftest.undefs
10658 cat >>$CONFIG_STATUS <<\_ACEOF
10659 # Let's still pretend it is `configure' which instantiates (i.e., don't
10660 # use $as_me), people would be surprised to read:
10661 # /* config.h. Generated by config.status. */
10662 if test x"$ac_file" = x-; then
10663 echo "/* Generated by configure. */" >$tmp/config.h
10665 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10667 cat $tmp/in >>$tmp/config.h
10669 if test x"$ac_file" != x-; then
10670 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10671 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10672 echo "$as_me: $ac_file is unchanged" >&6;}
10674 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10675 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10676 X"$ac_file" : 'X\(//\)[^/]' \| \
10677 X"$ac_file" : 'X\(//\)$' \| \
10678 X"$ac_file" : 'X\(/\)' \| \
10679 . : '\(.\)' 2>/dev/null ||
10681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10683 /^X\(\/\/\)$/{ s//\1/; q; }
10684 /^X\(\/\).*/{ s//\1/; q; }
10686 { if $as_mkdir_p; then
10691 while test ! -d "$as_dir"; do
10692 as_dirs="$as_dir $as_dirs"
10693 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10695 X"$as_dir" : 'X\(//\)[^/]' \| \
10696 X"$as_dir" : 'X\(//\)$' \| \
10697 X"$as_dir" : 'X\(/\)' \| \
10698 . : '\(.\)' 2>/dev/null ||
10700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10702 /^X\(\/\/\)$/{ s//\1/; q; }
10703 /^X\(\/\).*/{ s//\1/; q; }
10706 test ! -n "$as_dirs" || mkdir $as_dirs
10707 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10708 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10709 { (exit 1); exit 1; }; }; }
10712 mv $tmp/config.h $ac_file
10716 rm -f $tmp/config.h
10720 cat >>$CONFIG_STATUS <<\_ACEOF
10723 # CONFIG_COMMANDS section.
10725 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10726 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10727 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10728 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10729 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10730 X"$ac_dest" : 'X\(//\)[^/]' \| \
10731 X"$ac_dest" : 'X\(//\)$' \| \
10732 X"$ac_dest" : 'X\(/\)' \| \
10733 . : '\(.\)' 2>/dev/null ||
10735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10737 /^X\(\/\/\)$/{ s//\1/; q; }
10738 /^X\(\/\).*/{ s//\1/; q; }
10742 if test "$ac_dir" != .; then
10743 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10744 # A "../" for each directory in $ac_dir_suffix.
10745 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10747 ac_dir_suffix= ac_top_builddir=
10751 .) # No --srcdir option. We are building in place.
10753 if test -z "$ac_top_builddir"; then
10756 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10758 [\\/]* | ?:[\\/]* ) # Absolute path.
10759 ac_srcdir=$srcdir$ac_dir_suffix;
10760 ac_top_srcdir=$srcdir ;;
10761 *) # Relative path.
10762 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10763 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10765 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10767 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10768 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10769 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10770 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10773 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10774 echo "$as_me: executing $ac_dest commands" >&6;}
10776 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10781 cat >>$CONFIG_STATUS <<\_ACEOF
10783 { (exit 0); exit 0; }
10785 chmod +x $CONFIG_STATUS
10786 ac_clean_files=$ac_clean_files_save
10789 # configure is writing to config.log, and then calls config.status.
10790 # config.status does its own redirection, appending to config.log.
10791 # Unfortunately, on DOS this fails, as config.log is still kept open
10792 # by configure, so config.status won't be able to write to it; its
10793 # output is simply discarded. So we exec the FD to /dev/null,
10794 # effectively closing config.log, so it can be properly (re)opened and
10795 # appended to by config.status. When coming back to configure, we
10796 # need to make the FD available again.
10797 if test "$no_create" != yes; then
10799 ac_config_status_args=
10800 test "$silent" = yes &&
10801 ac_config_status_args="$ac_config_status_args --quiet"
10803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10806 # would make configure fail if this is the last instruction.
10807 $ac_cs_success || { (exit 1); exit 1; }