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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE 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 wxcflags wxlibs HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE 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-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --disable-dependency-tracking Speeds up one-time builds
866 --enable-dependency-tracking Do not reject slow dependency extractors
867 --enable-debug Turn on debugging
868 --enable-verbose-warnings
869 Enable verbose compiler warnings.
871 Enable static executables.
872 --enable-dmalloc Use dmalloc memory allocation
873 --enable-efence Use ElectricFence memory allocation
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-lam=PATH Set path of LAM MPI
879 --with-ctn=PATH Set path of CTN DICOM library
880 --with-mcpu=CPU Set name of CPU for gcc -mcpu
881 --with-cgibin-dir=PATH Set path of CGI binaries directory
882 --with-cgibin-url=PATH Set URL path of CGI binaries
883 --with-webdata-dir=PATH Set path of webdata
884 --with-webdata-url=PATH Set URL path of webdata
885 --with-html-dir=PATH Set directory of html files
886 --with-x use the X Window System
888 Some influential environment variables:
889 CC C compiler command
890 CFLAGS C compiler flags
891 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
892 nonstandard directory <lib dir>
893 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
894 headers in a nonstandard directory <include dir>
895 CXX C++ compiler command
896 CXXFLAGS C++ compiler flags
899 Use these variables to override the choices made by `configure' or to help
900 it to find libraries and programs with nonstandard names/locations.
905 if test "$ac_init_help" = "recursive"; then
906 # If there are subdirs, report their specific --help.
908 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909 test -d $ac_dir || continue
912 if test "$ac_dir" != .; then
913 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
914 # A "../" for each directory in $ac_dir_suffix.
915 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 ac_dir_suffix= ac_top_builddir=
921 .) # No --srcdir option. We are building in place.
923 if test -z "$ac_top_builddir"; then
926 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 [\\/]* | ?:[\\/]* ) # Absolute path.
929 ac_srcdir=$srcdir$ac_dir_suffix;
930 ac_top_srcdir=$srcdir ;;
932 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
937 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
938 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
939 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
940 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
943 # Check for guested configure; otherwise get Cygnus style configure.
944 if test -f $ac_srcdir/configure.gnu; then
946 $SHELL $ac_srcdir/configure.gnu --help=recursive
947 elif test -f $ac_srcdir/configure; then
949 $SHELL $ac_srcdir/configure --help=recursive
950 elif test -f $ac_srcdir/configure.ac ||
951 test -f $ac_srcdir/configure.in; then
955 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 test -n "$ac_init_help" && exit 0
962 if $ac_init_version; then
965 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
966 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
977 It was created by $as_me, which was
978 generated by GNU Autoconf 2.57. Invocation command line was
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_must_keep_next=false
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066 -* ) ac_must_keep_next=true ;;
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log. We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085 # Save into config.log some information that might help in debugging.
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1095 # The following way of writing the cache mishandles newlines in values,
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1118 for ac_var in $ac_subst_vars
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1125 if test -n "$ac_subst_files"; then
1132 for ac_var in $ac_subst_files
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1140 if test -s confdefs.h; then
1147 sed "/^$/d" confdefs.h | sort
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1154 rm -f core *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1158 for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168 # Predefined preprocessor variables.
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204 for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's/^/| /' "$ac_site_file" >&5
1213 if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1230 # Check that the precious variables saved in the cache have kept the same
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1254 echo "$as_me: former value: $ac_old_val" >&2;}
1255 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1256 echo "$as_me: current value: $ac_new_val" >&2;}
1257 ac_cache_corrupted=:
1260 # Pass precious variables to config.status.
1261 if test "$ac_new_set" = set; then
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 *) ac_arg=$ac_var=$ac_new_val ;;
1267 case " $ac_configure_args " in
1268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1269 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273 if $ac_cache_corrupted; then
1274 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 { (exit 1); exit 1; }; }
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1307 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1308 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1309 if test "${enable_maintainer_mode+set}" = set; then
1310 enableval="$enable_maintainer_mode"
1311 USE_MAINTAINER_MODE=$enableval
1313 USE_MAINTAINER_MODE=no
1315 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1316 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1319 if test $USE_MAINTAINER_MODE = yes; then
1320 MAINTAINER_MODE_TRUE=
1321 MAINTAINER_MODE_FALSE='#'
1323 MAINTAINER_MODE_TRUE='#'
1324 MAINTAINER_MODE_FALSE=
1327 MAINT=$MAINTAINER_MODE_TRUE
1330 am__api_version="1.7"
1332 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1333 if test -f $ac_dir/install-sh; then
1335 ac_install_sh="$ac_aux_dir/install-sh -c"
1337 elif test -f $ac_dir/install.sh; then
1339 ac_install_sh="$ac_aux_dir/install.sh -c"
1341 elif test -f $ac_dir/shtool; then
1343 ac_install_sh="$ac_aux_dir/shtool install -c"
1347 if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350 { (exit 1); exit 1; }; }
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356 # Find a good install program. We prefer a C program (faster),
1357 # so one script is as good as another. But avoid the broken or
1358 # incompatible versions:
1359 # SysV /etc/install, /usr/sbin/install
1360 # SunOS /usr/etc/install
1361 # IRIX /sbin/install
1363 # AmigaOS /C/install, which installs bootblocks on floppy discs
1364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1367 # ./install, which can be erroneously created by make from ./install.sh.
1368 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1369 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1370 if test -z "$INSTALL"; then
1371 if test "${ac_cv_path_install+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1378 test -z "$as_dir" && as_dir=.
1379 # Account for people who put trailing slashes in PATH elements.
1381 ./ | .// | /cC/* | \
1382 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1385 # OSF1 and SCO ODT 3.0 have their own names for install.
1386 # Don't use installbsd from OSF since it installs stuff as root
1388 for ac_prog in ginstall scoinst install; do
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1391 if test $ac_prog = install &&
1392 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1393 # AIX install. It has an incompatible calling convention.
1395 elif test $ac_prog = install &&
1396 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1397 # program-specific install script used by HP pwplus--don't use.
1400 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1412 if test "${ac_cv_path_install+set}" = set; then
1413 INSTALL=$ac_cv_path_install
1415 # As a last resort, use the slow shell script. We don't cache a
1416 # path for INSTALL within a source directory, because that will
1417 # break other packages using the cache if that directory is
1418 # removed, or if the path is relative.
1419 INSTALL=$ac_install_sh
1422 echo "$as_me:$LINENO: result: $INSTALL" >&5
1423 echo "${ECHO_T}$INSTALL" >&6
1425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1426 # It thinks the first close brace ends the variable substitution.
1427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1433 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1434 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1437 echo timestamp > conftest.file
1438 # Do `set' in a subshell so we don't clobber the current shell's
1439 # arguments. Must try -L first in case configure is actually a
1440 # symlink; some systems play weird games with the mod time of symlinks
1441 # (eg FreeBSD returns the mod time of the symlink's containing
1444 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1445 if test "$*" = "X"; then
1447 set X `ls -t $srcdir/configure conftest.file`
1450 if test "$*" != "X $srcdir/configure conftest.file" \
1451 && test "$*" != "X conftest.file $srcdir/configure"; then
1453 # If neither matched, then we have a broken ls. This can happen
1454 # if, for instance, CONFIG_SHELL is bash and it inherits a
1455 # broken ls alias from the environment. This has actually
1456 # happened. Such a system could not be considered "sane".
1457 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1458 alias in your environment" >&5
1459 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1460 alias in your environment" >&2;}
1461 { (exit 1); exit 1; }; }
1464 test "$2" = conftest.file
1470 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1471 Check your system clock" >&5
1472 echo "$as_me: error: newly created file is older than distributed files!
1473 Check your system clock" >&2;}
1474 { (exit 1); exit 1; }; }
1476 echo "$as_me:$LINENO: result: yes" >&5
1477 echo "${ECHO_T}yes" >&6
1478 test "$program_prefix" != NONE &&
1479 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1480 # Use a double $ so make ignores it.
1481 test "$program_suffix" != NONE &&
1482 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1483 # Double any \ or $. echo might interpret backslashes.
1484 # By default was `s,x,x', remove it if useless.
1485 cat <<\_ACEOF >conftest.sed
1486 s/[\\$]/&&/g;s/;s,x,x,$//
1488 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1492 # expand $ac_aux_dir to an absolute path
1493 am_aux_dir=`cd $ac_aux_dir && pwd`
1495 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1496 # Use eval to expand $SHELL
1497 if eval "$MISSING --run true"; then
1498 am_missing_run="$MISSING --run "
1501 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1502 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1505 for ac_prog in gawk mawk nawk awk
1507 # Extract the first word of "$ac_prog", so it can be a program name with args.
1508 set dummy $ac_prog; ac_word=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_AWK+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 if test -n "$AWK"; then
1515 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 test -z "$as_dir" && as_dir=.
1522 for ac_exec_ext in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524 ac_cv_prog_AWK="$ac_prog"
1525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 if test -n "$AWK"; then
1535 echo "$as_me:$LINENO: result: $AWK" >&5
1536 echo "${ECHO_T}$AWK" >&6
1538 echo "$as_me:$LINENO: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1542 test -n "$AWK" && break
1545 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1546 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1547 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1548 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 cat >conftest.make <<\_ACEOF
1553 @echo 'ac_maketemp="$(MAKE)"'
1555 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1556 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1557 if test -n "$ac_maketemp"; then
1558 eval ac_cv_prog_make_${ac_make}_set=yes
1560 eval ac_cv_prog_make_${ac_make}_set=no
1564 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1565 echo "$as_me:$LINENO: result: yes" >&5
1566 echo "${ECHO_T}yes" >&6
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 SET_MAKE="MAKE=${MAKE-make}"
1574 rm -rf .tst 2>/dev/null
1575 mkdir .tst 2>/dev/null
1576 if test -d .tst; then
1581 rmdir .tst 2>/dev/null
1583 # test to see if srcdir already configured
1584 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1585 test -f $srcdir/config.status; then
1586 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1587 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1588 { (exit 1); exit 1; }; }
1591 # test whether we have cygpath
1592 if test -z "$CYGPATH_W"; then
1593 if (cygpath --version) >/dev/null 2>/dev/null; then
1594 CYGPATH_W='cygpath -w'
1601 # Define the identity of the package.
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE "$PACKAGE"
1611 cat >>confdefs.h <<_ACEOF
1612 #define VERSION "$VERSION"
1615 # Some tools Automake needs.
1617 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1620 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1623 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1626 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1629 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1632 AMTAR=${AMTAR-"${am_missing_run}tar"}
1634 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1636 # Installed binaries are usually stripped using `strip' when the user
1637 # run `make install-strip'. However `strip' might not be the right
1638 # tool to use in cross-compilation environments, therefore Automake
1639 # will honor the `STRIP' environment variable to overrule this program.
1640 if test "$cross_compiling" != no; then
1641 if test -n "$ac_tool_prefix"; then
1642 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1643 set dummy ${ac_tool_prefix}strip; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_STRIP+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 if test -n "$STRIP"; then
1650 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 STRIP=$ac_cv_prog_STRIP
1669 if test -n "$STRIP"; then
1670 echo "$as_me:$LINENO: result: $STRIP" >&5
1671 echo "${ECHO_T}$STRIP" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1678 if test -z "$ac_cv_prog_STRIP"; then
1680 # Extract the first word of "strip", so it can be a program name with args.
1681 set dummy strip; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 if test -n "$ac_ct_STRIP"; then
1688 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_ac_ct_STRIP="strip"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1707 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1708 if test -n "$ac_ct_STRIP"; then
1709 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1710 echo "${ECHO_T}$ac_ct_STRIP" >&6
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1718 STRIP="$ac_cv_prog_STRIP"
1722 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1724 # We need awk for the "check" target. The system "awk" is bad on
1729 ac_config_headers="$ac_config_headers config.h"
1732 for ac_prog in gawk mawk nawk awk
1734 # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_AWK+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1741 if test -n "$AWK"; then
1742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 test -z "$as_dir" && as_dir=.
1749 for ac_exec_ext in '' $ac_executable_extensions; do
1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751 ac_cv_prog_AWK="$ac_prog"
1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761 if test -n "$AWK"; then
1762 echo "$as_me:$LINENO: result: $AWK" >&5
1763 echo "${ECHO_T}$AWK" >&6
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1769 test -n "$AWK" && break
1772 # Find a good install program. We prefer a C program (faster),
1773 # so one script is as good as another. But avoid the broken or
1774 # incompatible versions:
1775 # SysV /etc/install, /usr/sbin/install
1776 # SunOS /usr/etc/install
1777 # IRIX /sbin/install
1779 # AmigaOS /C/install, which installs bootblocks on floppy discs
1780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1783 # ./install, which can be erroneously created by make from ./install.sh.
1784 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1785 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1786 if test -z "$INSTALL"; then
1787 if test "${ac_cv_path_install+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 test -z "$as_dir" && as_dir=.
1795 # Account for people who put trailing slashes in PATH elements.
1797 ./ | .// | /cC/* | \
1798 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1801 # OSF1 and SCO ODT 3.0 have their own names for install.
1802 # Don't use installbsd from OSF since it installs stuff as root
1804 for ac_prog in ginstall scoinst install; do
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1807 if test $ac_prog = install &&
1808 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1809 # AIX install. It has an incompatible calling convention.
1811 elif test $ac_prog = install &&
1812 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1813 # program-specific install script used by HP pwplus--don't use.
1816 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1828 if test "${ac_cv_path_install+set}" = set; then
1829 INSTALL=$ac_cv_path_install
1831 # As a last resort, use the slow shell script. We don't cache a
1832 # path for INSTALL within a source directory, because that will
1833 # break other packages using the cache if that directory is
1834 # removed, or if the path is relative.
1835 INSTALL=$ac_install_sh
1838 echo "$as_me:$LINENO: result: $INSTALL" >&5
1839 echo "${ECHO_T}$INSTALL" >&6
1841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1842 # It thinks the first close brace ends the variable substitution.
1843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1849 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1850 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1851 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1852 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 cat >conftest.make <<\_ACEOF
1857 @echo 'ac_maketemp="$(MAKE)"'
1859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1860 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1861 if test -n "$ac_maketemp"; then
1862 eval ac_cv_prog_make_${ac_make}_set=yes
1864 eval ac_cv_prog_make_${ac_make}_set=no
1868 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1869 echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1875 SET_MAKE="MAKE=${MAKE-make}"
1878 if test -n "$ac_tool_prefix"; then
1879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1880 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_RANLIB+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$RANLIB"; then
1887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 RANLIB=$ac_cv_prog_RANLIB
1906 if test -n "$RANLIB"; then
1907 echo "$as_me:$LINENO: result: $RANLIB" >&5
1908 echo "${ECHO_T}$RANLIB" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1915 if test -z "$ac_cv_prog_RANLIB"; then
1916 ac_ct_RANLIB=$RANLIB
1917 # Extract the first word of "ranlib", so it can be a program name with args.
1918 set dummy ranlib; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 if test -n "$ac_ct_RANLIB"; then
1925 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog_ac_ct_RANLIB="ranlib"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1944 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1945 if test -n "$ac_ct_RANLIB"; then
1946 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1947 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1949 echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1953 RANLIB=$ac_ct_RANLIB
1955 RANLIB="$ac_cv_prog_RANLIB"
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC="$CC" # Let the user override the test.
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 if test -n "$CC"; then
1993 echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2001 if test -z "$ac_cv_prog_CC"; then
2003 # Extract the first word of "gcc", so it can be a program name with args.
2004 set dummy gcc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 ac_cv_prog_ac_ct_CC="gcc"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030 if test -n "$ac_ct_CC"; then
2031 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032 echo "${ECHO_T}$ac_ct_CC" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2043 if test -z "$CC"; then
2044 if test -n "$ac_tool_prefix"; then
2045 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2046 set dummy ${ac_tool_prefix}cc; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC="$CC" # Let the user override the test.
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 ac_cv_prog_CC="${ac_tool_prefix}cc"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 if test -n "$CC"; then
2073 echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2081 if test -z "$ac_cv_prog_CC"; then
2083 # Extract the first word of "cc", so it can be a program name with args.
2084 set dummy cc; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 if test -n "$ac_ct_CC"; then
2091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100 ac_cv_prog_ac_ct_CC="cc"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2110 if test -n "$ac_ct_CC"; then
2111 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2112 echo "${ECHO_T}$ac_ct_CC" >&6
2114 echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2124 if test -z "$CC"; then
2125 # Extract the first word of "cc", so it can be a program name with args.
2126 set dummy cc; ac_word=$2
2127 echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 if test -n "$CC"; then
2133 ac_cv_prog_CC="$CC" # Let the user override the test.
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2144 ac_prog_rejected=yes
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 if test $ac_prog_rejected = yes; then
2155 # We found a bogon in the path, so make sure we never use it.
2156 set dummy $ac_cv_prog_CC
2158 if test $# != 0; then
2159 # We chose a different compiler from the bogus one.
2160 # However, it has the same basename, so the bogon will be chosen
2161 # first if we set CC to just the basename; use the full file name.
2163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2169 if test -n "$CC"; then
2170 echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6
2173 echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2178 if test -z "$CC"; then
2179 if test -n "$ac_tool_prefix"; then
2182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 if test -n "$CC"; then
2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209 if test -n "$CC"; then
2210 echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2213 echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2217 test -n "$CC" && break
2220 if test -z "$CC"; then
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test -n "$ac_ct_CC"; then
2232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241 ac_cv_prog_ac_ct_CC="$ac_prog"
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6
2255 echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2259 test -n "$ac_ct_CC" && break
2268 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2274 # Provide some information about the compiler.
2275 echo "$as_me:$LINENO:" \
2276 "checking for C compiler version" >&5
2277 ac_compiler=`set X $ac_compile; echo $2`
2278 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2279 (eval $ac_compiler --version </dev/null >&5) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }
2283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2284 (eval $ac_compiler -v </dev/null >&5) 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }
2288 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2289 (eval $ac_compiler -V </dev/null >&5) 2>&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2315 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2316 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2319 (eval $ac_link_default) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 # Find the output, starting from the most likely. This scheme is
2324 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2327 # Be careful to initialize this variable, since it used to be cached.
2328 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2330 # b.out is created by i960 compilers.
2331 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2333 test -f "$ac_file" || continue
2335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2338 # This is the source file.
2341 # We found the default executable, but exeext='' is most
2345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346 # FIXME: I believe we export ac_cv_exeext for Libtool,
2347 # but it would be cool to find out if it's true. Does anybody
2348 # maintain Libtool? --akim.
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: C compiler cannot create executables
2362 See \`config.log' for more details." >&2;}
2363 { (exit 77); exit 77; }; }
2366 ac_exeext=$ac_cv_exeext
2367 echo "$as_me:$LINENO: result: $ac_file" >&5
2368 echo "${ECHO_T}$ac_file" >&6
2370 # Check the compiler produces executables we can run. If not, either
2371 # the compiler is broken, or we cross compile.
2372 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2373 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2374 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2375 # If not cross compiling, check that we can run a simple program.
2376 if test "$cross_compiling" != yes; then
2377 if { ac_try='./$ac_file'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2385 if test "$cross_compiling" = maybe; then
2388 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2389 If you meant to cross compile, use \`--host'.
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot run C compiled programs.
2392 If you meant to cross compile, use \`--host'.
2393 See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }
2398 echo "$as_me:$LINENO: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6
2401 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2402 ac_clean_files=$ac_clean_files_save
2403 # Check the compiler produces executables we can run. If not, either
2404 # the compiler is broken, or we cross compile.
2405 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2406 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2407 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2408 echo "${ECHO_T}$cross_compiling" >&6
2410 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2411 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2413 (eval $ac_link) 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; then
2417 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2418 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2419 # work properly (i.e., refer to `conftest.exe'), while it won't with
2421 for ac_file in conftest.exe conftest conftest.*; do
2422 test -f "$ac_file" || continue
2424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2432 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2435 See \`config.log' for more details." >&2;}
2436 { (exit 1); exit 1; }; }
2439 rm -f conftest$ac_cv_exeext
2440 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2441 echo "${ECHO_T}$ac_cv_exeext" >&6
2443 rm -f conftest.$ac_ext
2444 EXEEXT=$ac_cv_exeext
2446 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2447 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2448 if test "${ac_cv_objext+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h. */
2467 rm -f conftest.o conftest.obj
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; then
2473 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2493 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6
2495 OBJEXT=$ac_cv_objext
2497 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 cat >conftest.$ac_ext <<_ACEOF
2503 #line $LINENO "configure"
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -s conftest.$ac_objext'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2540 rm -f conftest.$ac_objext conftest.$ac_ext
2541 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2544 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2545 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2546 GCC=`test $ac_compiler_gnu = yes && echo yes`
2547 ac_test_CFLAGS=${CFLAGS+set}
2548 ac_save_CFLAGS=$CFLAGS
2550 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2551 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2552 if test "${ac_cv_prog_cc_g+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 cat >conftest.$ac_ext <<_ACEOF
2556 #line $LINENO "configure"
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2590 rm -f conftest.$ac_objext conftest.$ac_ext
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2594 if test "$ac_test_CFLAGS" = set; then
2595 CFLAGS=$ac_save_CFLAGS
2596 elif test $ac_cv_prog_cc_g = yes; then
2597 if test "$GCC" = yes; then
2603 if test "$GCC" = yes; then
2609 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2610 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2611 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 ac_cv_prog_cc_stdc=no
2616 cat >conftest.$ac_ext <<_ACEOF
2617 #line $LINENO "configure"
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2625 #include <sys/types.h>
2626 #include <sys/stat.h>
2627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2628 struct buf { int x; };
2629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2630 static char *e (p, i)
2636 static char *f (char * (*g) (char **, int), char **p, ...)
2641 s = g (p, va_arg (v,int));
2645 int test (int i, double x);
2646 struct s1 {int (*f) (int a);};
2647 struct s2 {int (*f) (double a);};
2648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2654 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2659 # Don't try gcc -ansi; that turns off useful extensions and
2660 # breaks some systems' header files.
2661 # AIX -qlanglvl=ansi
2662 # Ultrix and OSF/1 -std1
2663 # HP-UX 10.20 and later -Ae
2664 # HP-UX older versions -Aa -D_HPUX_SOURCE
2665 # SVR4 -Xc -D__EXTENSIONS__
2666 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2668 CC="$ac_save_CC $ac_arg"
2669 rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671 (eval $ac_compile) 2>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 ac_cv_prog_cc_stdc=$ac_arg
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f conftest.$ac_objext
2690 rm -f conftest.$ac_ext conftest.$ac_objext
2695 case "x$ac_cv_prog_cc_stdc" in
2697 echo "$as_me:$LINENO: result: none needed" >&5
2698 echo "${ECHO_T}none needed" >&6 ;;
2700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2701 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2702 CC="$CC $ac_cv_prog_cc_stdc" ;;
2705 # Some people use a C++ compiler to compile C. Since we use `exit',
2706 # in C++ we need to declare it. In case someone uses the same compiler
2707 # for both compiling C and C++ we need to have the C++ compiler decide
2708 # the declaration of exit, since it's the most demanding environment.
2709 cat >conftest.$ac_ext <<_ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -s conftest.$ac_objext'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2726 for ac_declaration in \
2728 'extern "C" void std::exit (int) throw (); using std::exit;' \
2729 'extern "C" void std::exit (int); using std::exit;' \
2730 'extern "C" void exit (int) throw ();' \
2731 'extern "C" void exit (int);' \
2734 cat >conftest.$ac_ext <<_ACEOF
2735 #line $LINENO "configure"
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -s conftest.$ac_objext'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f conftest.$ac_objext conftest.$ac_ext
2771 cat >conftest.$ac_ext <<_ACEOF
2772 #line $LINENO "configure"
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2805 rm -f conftest.$ac_objext conftest.$ac_ext
2808 if test -n "$ac_declaration"; then
2809 echo '#ifdef __cplusplus' >>confdefs.h
2810 echo $ac_declaration >>confdefs.h
2811 echo '#endif' >>confdefs.h
2815 echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2819 rm -f conftest.$ac_objext conftest.$ac_ext
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 DEPDIR="${am__leading_dot}deps"
2827 ac_config_commands="$ac_config_commands depfiles"
2830 am_make=${MAKE-make}
2831 cat > confinc << 'END'
2836 # If we don't find an include directive, just comment out the code.
2837 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2838 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2842 # First try GNU make style include.
2843 echo "include confinc" > confmf
2844 # We grep out `Entering directory' and `Leaving directory'
2845 # messages which can occur if `w' ends up in MAKEFLAGS.
2846 # In particular we don't look at `^make:' because GNU make might
2847 # be invoked under some other name (usually "gmake"), in which
2848 # case it prints its new name instead of `make'.
2849 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2854 # Now try BSD make style include.
2855 if test "$am__include" = "#"; then
2856 echo '.include "confinc"' > confmf
2857 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2858 am__include=.include
2865 echo "$as_me:$LINENO: result: $_am_result" >&5
2866 echo "${ECHO_T}$_am_result" >&6
2867 rm -f confinc confmf
2869 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2870 if test "${enable_dependency_tracking+set}" = set; then
2871 enableval="$enable_dependency_tracking"
2874 if test "x$enable_dependency_tracking" != xno; then
2875 am_depcomp="$ac_aux_dir/depcomp"
2880 if test "x$enable_dependency_tracking" != xno; then
2891 depcc="$CC" am_compiler_list=
2893 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2894 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2895 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2899 # We make a subdir and do the tests there. Otherwise we can end up
2900 # making bogus files that we don't know about and never remove. For
2901 # instance it was reported that on HP-UX the gcc test will end up
2902 # making a dummy file named `D' -- because `-MD' means `put the output
2905 # Copy depcomp to subdir because otherwise we won't find it if we're
2906 # using a relative directory.
2907 cp "$am_depcomp" conftest.dir
2909 # We will build objects and dependencies in a subdirectory because
2910 # it helps to detect inapplicable dependency modes. For instance
2911 # both Tru64's cc and ICC support -MD to output dependencies as a
2912 # side effect of compilation, but ICC will put the dependencies in
2913 # the current directory while Tru64 will put them in the object
2917 am_cv_CC_dependencies_compiler_type=none
2918 if test "$am_compiler_list" = ""; then
2919 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2921 for depmode in $am_compiler_list; do
2922 # Setup a source with many dependencies, because some compilers
2923 # like to wrap large dependency lists on column 80 (with \), and
2924 # we should not choose a depcomp mode which is confused by this.
2926 # We need to recreate these files for each test, as the compiler may
2927 # overwrite some of them when testing with obscure command lines.
2928 # This happens at least with the AIX C compiler.
2930 for i in 1 2 3 4 5 6; do
2931 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2934 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2938 # after this tag, mechanisms are not by side-effect, so they'll
2939 # only be used when explicitly requested
2940 if test "x$enable_dependency_tracking" = xyes; then
2948 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2949 # mode. It turns out that the SunPro C++ compiler does not properly
2950 # handle `-M -o', and we need to detect this.
2951 if depmode=$depmode \
2952 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2953 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2954 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2955 >/dev/null 2>conftest.err &&
2956 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2957 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2958 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2959 # icc doesn't choke on unknown options, it will just issue warnings
2960 # (even with -Werror). So we grep stderr for any message
2961 # that says an option was ignored.
2962 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2963 am_cv_CC_dependencies_compiler_type=$depmode
2972 am_cv_CC_dependencies_compiler_type=none
2976 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2977 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2978 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2983 test "x$enable_dependency_tracking" != xno \
2984 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2986 am__fastdepCC_FALSE='#'
2988 am__fastdepCC_TRUE='#'
2989 am__fastdepCC_FALSE=
2994 ac_cpp='$CXXCPP $CPPFLAGS'
2995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2998 if test -n "$ac_tool_prefix"; then
2999 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_prog_CXX+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 if test -n "$CXX"; then
3009 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 if test -n "$CXX"; then
3029 echo "$as_me:$LINENO: result: $CXX" >&5
3030 echo "${ECHO_T}$CXX" >&6
3032 echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3036 test -n "$CXX" && break
3039 if test -z "$CXX"; then
3041 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3043 # Extract the first word of "$ac_prog", so it can be a program name with args.
3044 set dummy $ac_prog; ac_word=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 if test -n "$ac_ct_CXX"; then
3051 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 ac_cv_prog_ac_ct_CXX="$ac_prog"
3061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3070 if test -n "$ac_ct_CXX"; then
3071 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3072 echo "${ECHO_T}$ac_ct_CXX" >&6
3074 echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6
3078 test -n "$ac_ct_CXX" && break
3080 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3086 # Provide some information about the compiler.
3087 echo "$as_me:$LINENO:" \
3088 "checking for C++ compiler version" >&5
3089 ac_compiler=`set X $ac_compile; echo $2`
3090 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3091 (eval $ac_compiler --version </dev/null >&5) 2>&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }
3095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3096 (eval $ac_compiler -v </dev/null >&5) 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }
3100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3101 (eval $ac_compiler -V </dev/null >&5) 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }
3106 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3107 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3108 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 cat >conftest.$ac_ext <<_ACEOF
3112 #line $LINENO "configure"
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3130 rm -f conftest.$ac_objext
3131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3132 (eval $ac_compile) 2>&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3149 rm -f conftest.$ac_objext conftest.$ac_ext
3150 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3153 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3154 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3155 GXX=`test $ac_compiler_gnu = yes && echo yes`
3156 ac_test_CXXFLAGS=${CXXFLAGS+set}
3157 ac_save_CXXFLAGS=$CXXFLAGS
3159 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3160 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3161 if test "${ac_cv_prog_cxx_g+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 cat >conftest.$ac_ext <<_ACEOF
3165 #line $LINENO "configure"
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3180 rm -f conftest.$ac_objext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3182 (eval $ac_compile) 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -s conftest.$ac_objext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_cv_prog_cxx_g=yes
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3199 rm -f conftest.$ac_objext conftest.$ac_ext
3201 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3202 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3203 if test "$ac_test_CXXFLAGS" = set; then
3204 CXXFLAGS=$ac_save_CXXFLAGS
3205 elif test $ac_cv_prog_cxx_g = yes; then
3206 if test "$GXX" = yes; then
3212 if test "$GXX" = yes; then
3218 for ac_declaration in \
3220 'extern "C" void std::exit (int) throw (); using std::exit;' \
3221 'extern "C" void std::exit (int); using std::exit;' \
3222 'extern "C" void exit (int) throw ();' \
3223 'extern "C" void exit (int);' \
3226 cat >conftest.$ac_ext <<_ACEOF
3227 #line $LINENO "configure"
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3243 rm -f conftest.$ac_objext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245 (eval $ac_compile) 2>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3262 rm -f conftest.$ac_objext conftest.$ac_ext
3263 cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3279 rm -f conftest.$ac_objext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281 (eval $ac_compile) 2>&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -s conftest.$ac_objext'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3297 rm -f conftest.$ac_objext conftest.$ac_ext
3300 if test -n "$ac_declaration"; then
3301 echo '#ifdef __cplusplus' >>confdefs.h
3302 echo $ac_declaration >>confdefs.h
3303 echo '#endif' >>confdefs.h
3307 ac_cpp='$CPP $CPPFLAGS'
3308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3312 depcc="$CXX" am_compiler_list=
3314 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3315 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3316 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3320 # We make a subdir and do the tests there. Otherwise we can end up
3321 # making bogus files that we don't know about and never remove. For
3322 # instance it was reported that on HP-UX the gcc test will end up
3323 # making a dummy file named `D' -- because `-MD' means `put the output
3326 # Copy depcomp to subdir because otherwise we won't find it if we're
3327 # using a relative directory.
3328 cp "$am_depcomp" conftest.dir
3330 # We will build objects and dependencies in a subdirectory because
3331 # it helps to detect inapplicable dependency modes. For instance
3332 # both Tru64's cc and ICC support -MD to output dependencies as a
3333 # side effect of compilation, but ICC will put the dependencies in
3334 # the current directory while Tru64 will put them in the object
3338 am_cv_CXX_dependencies_compiler_type=none
3339 if test "$am_compiler_list" = ""; then
3340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3342 for depmode in $am_compiler_list; do
3343 # Setup a source with many dependencies, because some compilers
3344 # like to wrap large dependency lists on column 80 (with \), and
3345 # we should not choose a depcomp mode which is confused by this.
3347 # We need to recreate these files for each test, as the compiler may
3348 # overwrite some of them when testing with obscure command lines.
3349 # This happens at least with the AIX C compiler.
3351 for i in 1 2 3 4 5 6; do
3352 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3359 # after this tag, mechanisms are not by side-effect, so they'll
3360 # only be used when explicitly requested
3361 if test "x$enable_dependency_tracking" = xyes; then
3369 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3370 # mode. It turns out that the SunPro C++ compiler does not properly
3371 # handle `-M -o', and we need to detect this.
3372 if depmode=$depmode \
3373 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3374 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3375 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3376 >/dev/null 2>conftest.err &&
3377 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3378 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3379 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3380 # icc doesn't choke on unknown options, it will just issue warnings
3381 # (even with -Werror). So we grep stderr for any message
3382 # that says an option was ignored.
3383 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3384 am_cv_CXX_dependencies_compiler_type=$depmode
3393 am_cv_CXX_dependencies_compiler_type=none
3397 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3398 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3399 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3404 test "x$enable_dependency_tracking" != xno \
3405 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3406 am__fastdepCXX_TRUE=
3407 am__fastdepCXX_FALSE='#'
3409 am__fastdepCXX_TRUE='#'
3410 am__fastdepCXX_FALSE=
3415 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3416 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3417 if test "${ac_cv_c_bigendian+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 # See if sys/param.h defines the BYTE_ORDER macro.
3421 cat >conftest.$ac_ext <<_ACEOF
3422 #line $LINENO "configure"
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 #include <sys/types.h>
3429 #include <sys/param.h>
3434 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 # It does; now see whether it defined to BIG_ENDIAN or not.
3455 cat >conftest.$ac_ext <<_ACEOF
3456 #line $LINENO "configure"
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3462 #include <sys/types.h>
3463 #include <sys/param.h>
3468 #if BYTE_ORDER != BIG_ENDIAN
3476 rm -f conftest.$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478 (eval $ac_compile) 2>&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } &&
3482 { ac_try='test -s conftest.$ac_objext'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3488 ac_cv_c_bigendian=yes
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3493 ac_cv_c_bigendian=no
3495 rm -f conftest.$ac_objext conftest.$ac_ext
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # It does not; compile a test program.
3501 if test "$cross_compiling" = yes; then
3502 # try to guess the endianness by grepping values into an object file
3503 ac_cv_c_bigendian=unknown
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. */
3511 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3512 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3513 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3514 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3515 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3516 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3520 _ascii (); _ebcdic ();
3525 rm -f conftest.$ac_objext
3526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527 (eval $ac_compile) 2>&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3538 ac_cv_c_bigendian=yes
3540 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3541 if test "$ac_cv_c_bigendian" = unknown; then
3542 ac_cv_c_bigendian=no
3544 # finding both strings is unlikely to happen, but who knows?
3545 ac_cv_c_bigendian=unknown
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3553 rm -f conftest.$ac_objext conftest.$ac_ext
3555 cat >conftest.$ac_ext <<_ACEOF
3556 #line $LINENO "configure"
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3565 /* Are we little or big endian? From Harbison&Steele. */
3569 char c[sizeof (long)];
3572 exit (u.c[sizeof (long) - 1] == 1);
3575 rm -f conftest$ac_exeext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3577 (eval $ac_link) 2>&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_cv_c_bigendian=no
3588 echo "$as_me: program exited with status $ac_status" >&5
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3593 ac_cv_c_bigendian=yes
3595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3598 rm -f conftest.$ac_objext conftest.$ac_ext
3600 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3601 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3602 case $ac_cv_c_bigendian in
3605 cat >>confdefs.h <<\_ACEOF
3606 #define WORDS_BIGENDIAN 1
3612 { { echo "$as_me:$LINENO: error: unknown endianness
3613 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3614 echo "$as_me: error: unknown endianness
3615 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3616 { (exit 1); exit 1; }; } ;;
3620 # Extract the first word of "wx-config", so it can be a program name with args.
3621 set dummy wx-config; ac_word=$2
3622 echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_path_wxconfig+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 wxconfig=$ac_cv_path_wxconfig
3651 if test -n "$wxconfig"; then
3652 echo "$as_me:$LINENO: result: $wxconfig" >&5
3653 echo "${ECHO_T}$wxconfig" >&6
3655 echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6
3660 # Make sure we can run config.sub.
3661 $ac_config_sub sun4 >/dev/null 2>&1 ||
3662 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3663 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3664 { (exit 1); exit 1; }; }
3666 echo "$as_me:$LINENO: checking build system type" >&5
3667 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3668 if test "${ac_cv_build+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 ac_cv_build_alias=$build_alias
3672 test -z "$ac_cv_build_alias" &&
3673 ac_cv_build_alias=`$ac_config_guess`
3674 test -z "$ac_cv_build_alias" &&
3675 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3676 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3677 { (exit 1); exit 1; }; }
3678 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3680 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3681 { (exit 1); exit 1; }; }
3684 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3685 echo "${ECHO_T}$ac_cv_build" >&6
3687 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3688 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3689 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3692 echo "$as_me:$LINENO: checking host system type" >&5
3693 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3694 if test "${ac_cv_host+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 ac_cv_host_alias=$host_alias
3698 test -z "$ac_cv_host_alias" &&
3699 ac_cv_host_alias=$ac_cv_build_alias
3700 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3701 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3702 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3703 { (exit 1); exit 1; }; }
3706 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3707 echo "${ECHO_T}$ac_cv_host" >&6
3709 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3710 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3711 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3714 echo "$as_me:$LINENO: checking for inline" >&5
3715 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3716 if test "${ac_cv_c_inline+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 for ac_kw in inline __inline__ __inline; do
3721 cat >conftest.$ac_ext <<_ACEOF
3722 #line $LINENO "configure"
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3730 static $ac_kw foo_t static_foo () {return 0; }
3731 $ac_kw foo_t foo () {return 0; }
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737 (eval $ac_compile) 2>&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } &&
3741 { ac_try='test -s conftest.$ac_objext'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; }; then
3747 ac_cv_c_inline=$ac_kw; break
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3753 rm -f conftest.$ac_objext conftest.$ac_ext
3757 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3758 echo "${ECHO_T}$ac_cv_c_inline" >&6
3759 case $ac_cv_c_inline in
3762 cat >>confdefs.h <<\_ACEOF
3766 *) cat >>confdefs.h <<_ACEOF
3767 #define inline $ac_cv_c_inline
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3778 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3779 # On Suns, sometimes $CPP names a directory.
3780 if test -n "$CPP" && test -d "$CPP"; then
3783 if test -z "$CPP"; then
3784 if test "${ac_cv_prog_CPP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 # Double quotes because CPP needs to be expanded
3788 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3791 for ac_c_preproc_warn_flag in '' yes
3793 # Use a header file that comes with gcc, so configuring glibc
3794 # with a fresh cross-compiler works.
3795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796 # <limits.h> exists even on freestanding compilers.
3797 # On the NeXT, cc -E runs the code through the compiler's parser,
3798 # not just through cpp. "Syntax error" is here to catch this case.
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. */
3807 # include <limits.h>
3809 # include <assert.h>
3813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3816 grep -v '^ *+' conftest.er1 >conftest.err
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } >/dev/null; then
3821 if test -s conftest.err; then
3822 ac_cpp_err=$ac_c_preproc_warn_flag
3829 if test -z "$ac_cpp_err"; then
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3835 # Broken: fails on valid input.
3838 rm -f conftest.err conftest.$ac_ext
3840 # OK, works on sane cases. Now check whether non-existent headers
3841 # can be detected and how.
3842 cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #include <ac_nonexistent.h>
3851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3854 grep -v '^ *+' conftest.er1 >conftest.err
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null; then
3859 if test -s conftest.err; then
3860 ac_cpp_err=$ac_c_preproc_warn_flag
3867 if test -z "$ac_cpp_err"; then
3868 # Broken: success on invalid input.
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 # Passes both tests.
3878 rm -f conftest.err conftest.$ac_ext
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then
3895 echo "$as_me:$LINENO: result: $CPP" >&5
3896 echo "${ECHO_T}$CPP" >&6
3898 for ac_c_preproc_warn_flag in '' yes
3900 # Use a header file that comes with gcc, so configuring glibc
3901 # with a fresh cross-compiler works.
3902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3903 # <limits.h> exists even on freestanding compilers.
3904 # On the NeXT, cc -E runs the code through the compiler's parser,
3905 # not just through cpp. "Syntax error" is here to catch this case.
3906 cat >conftest.$ac_ext <<_ACEOF
3907 #line $LINENO "configure"
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3914 # include <limits.h>
3916 # include <assert.h>
3920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3923 grep -v '^ *+' conftest.er1 >conftest.err
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } >/dev/null; then
3928 if test -s conftest.err; then
3929 ac_cpp_err=$ac_c_preproc_warn_flag
3936 if test -z "$ac_cpp_err"; then
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 # Broken: fails on valid input.
3945 rm -f conftest.err conftest.$ac_ext
3947 # OK, works on sane cases. Now check whether non-existent headers
3948 # can be detected and how.
3949 cat >conftest.$ac_ext <<_ACEOF
3950 #line $LINENO "configure"
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956 #include <ac_nonexistent.h>
3958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3961 grep -v '^ *+' conftest.er1 >conftest.err
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } >/dev/null; then
3966 if test -s conftest.err; then
3967 ac_cpp_err=$ac_c_preproc_warn_flag
3974 if test -z "$ac_cpp_err"; then
3975 # Broken: success on invalid input.
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 # Passes both tests.
3985 rm -f conftest.err conftest.$ac_ext
3988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3989 rm -f conftest.err conftest.$ac_ext
3990 if $ac_preproc_ok; then
3993 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3994 See \`config.log' for more details." >&5
3995 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3996 See \`config.log' for more details." >&2;}
3997 { (exit 1); exit 1; }; }
4001 ac_cpp='$CPP $CPPFLAGS'
4002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 echo "$as_me:$LINENO: checking for egrep" >&5
4008 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4009 if test "${ac_cv_prog_egrep+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4013 then ac_cv_prog_egrep='grep -E'
4014 else ac_cv_prog_egrep='egrep'
4017 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4018 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4019 EGREP=$ac_cv_prog_egrep
4022 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4023 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4024 if test "${ac_cv_header_stdc+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 cat >conftest.$ac_ext <<_ACEOF
4028 #line $LINENO "configure"
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4047 rm -f conftest.$ac_objext
4048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4049 (eval $ac_compile) 2>&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4059 ac_cv_header_stdc=yes
4061 echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4064 ac_cv_header_stdc=no
4066 rm -f conftest.$ac_objext conftest.$ac_ext
4068 if test $ac_cv_header_stdc = yes; then
4069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4070 cat >conftest.$ac_ext <<_ACEOF
4071 #line $LINENO "configure"
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4081 $EGREP "memchr" >/dev/null 2>&1; then
4084 ac_cv_header_stdc=no
4090 if test $ac_cv_header_stdc = yes; then
4091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 #line $LINENO "configure"
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4103 $EGREP "free" >/dev/null 2>&1; then
4106 ac_cv_header_stdc=no
4112 if test $ac_cv_header_stdc = yes; then
4113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4114 if test "$cross_compiling" = yes; then
4117 cat >conftest.$ac_ext <<_ACEOF
4118 #line $LINENO "configure"
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4125 #if ((' ' & 0x0FF) == 0x020)
4126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4129 # define ISLOWER(c) \
4130 (('a' <= (c) && (c) <= 'i') \
4131 || ('j' <= (c) && (c) <= 'r') \
4132 || ('s' <= (c) && (c) <= 'z'))
4133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4141 for (i = 0; i < 256; i++)
4142 if (XOR (islower (i), ISLOWER (i))
4143 || toupper (i) != TOUPPER (i))
4148 rm -f conftest$ac_exeext
4149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4150 (eval $ac_link) 2>&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4161 echo "$as_me: program exited with status $ac_status" >&5
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4166 ac_cv_header_stdc=no
4168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4172 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4173 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4174 if test $ac_cv_header_stdc = yes; then
4176 cat >>confdefs.h <<\_ACEOF
4177 #define STDC_HEADERS 1
4182 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4192 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4193 inttypes.h stdint.h unistd.h
4195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4196 echo "$as_me:$LINENO: checking for $ac_header" >&5
4197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 cat >conftest.$ac_ext <<_ACEOF
4202 #line $LINENO "configure"
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4208 $ac_includes_default
4210 #include <$ac_header>
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -s conftest.$ac_objext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 eval "$as_ac_Header=yes"
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 eval "$as_ac_Header=no"
4231 rm -f conftest.$ac_objext conftest.$ac_ext
4233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4236 cat >>confdefs.h <<_ACEOF
4237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4245 echo "$as_me:$LINENO: checking for short" >&5
4246 echo $ECHO_N "checking for short... $ECHO_C" >&6
4247 if test "${ac_cv_type_short+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 cat >conftest.$ac_ext <<_ACEOF
4251 #line $LINENO "configure"
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 $ac_includes_default
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271 (eval $ac_compile) 2>&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -s conftest.$ac_objext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_cv_type_short=yes
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4288 rm -f conftest.$ac_objext conftest.$ac_ext
4290 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4291 echo "${ECHO_T}$ac_cv_type_short" >&6
4293 echo "$as_me:$LINENO: checking size of short" >&5
4294 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4295 if test "${ac_cv_sizeof_short+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 if test "$ac_cv_type_short" = yes; then
4299 # The cast to unsigned long works around a bug in the HP C Compiler
4300 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4301 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4302 # This bug is HP SR number 8606223364.
4303 if test "$cross_compiling" = yes; then
4304 # Depending upon the size, compute the lo and hi bounds.
4305 cat >conftest.$ac_ext <<_ACEOF
4306 #line $LINENO "configure"
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4312 $ac_includes_default
4316 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4323 rm -f conftest.$ac_objext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325 (eval $ac_compile) 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try='test -s conftest.$ac_objext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4337 cat >conftest.$ac_ext <<_ACEOF
4338 #line $LINENO "configure"
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 $ac_includes_default
4348 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 ac_hi=$ac_mid; break
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4372 ac_lo=`expr $ac_mid + 1`
4373 if test $ac_lo -le $ac_mid; then
4377 ac_mid=`expr 2 '*' $ac_mid + 1`
4379 rm -f conftest.$ac_objext conftest.$ac_ext
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 cat >conftest.$ac_ext <<_ACEOF
4386 #line $LINENO "configure"
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4392 $ac_includes_default
4396 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4403 rm -f conftest.$ac_objext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405 (eval $ac_compile) 2>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try='test -s conftest.$ac_objext'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; }; then
4417 cat >conftest.$ac_ext <<_ACEOF
4418 #line $LINENO "configure"
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 $ac_includes_default
4428 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4435 rm -f conftest.$ac_objext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4437 (eval $ac_compile) 2>&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 ac_lo=$ac_mid; break
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 ac_hi=`expr '(' $ac_mid ')' - 1`
4453 if test $ac_mid -le $ac_hi; then
4457 ac_mid=`expr 2 '*' $ac_mid`
4459 rm -f conftest.$ac_objext conftest.$ac_ext
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4467 rm -f conftest.$ac_objext conftest.$ac_ext
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4470 # Binary search between lo and hi bounds.
4471 while test "x$ac_lo" != "x$ac_hi"; do
4472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4473 cat >conftest.$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480 $ac_includes_default
4484 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493 (eval $ac_compile) 2>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_lo=`expr '(' $ac_mid ')' + 1`
4510 rm -f conftest.$ac_objext conftest.$ac_ext
4513 ?*) ac_cv_sizeof_short=$ac_lo;;
4514 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4515 See \`config.log' for more details." >&5
4516 echo "$as_me: error: cannot compute sizeof (short), 77
4517 See \`config.log' for more details." >&2;}
4518 { (exit 1); exit 1; }; } ;;
4521 if test "$cross_compiling" = yes; then
4522 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4523 See \`config.log' for more details." >&5
4524 echo "$as_me: error: cannot run test program while cross compiling
4525 See \`config.log' for more details." >&2;}
4526 { (exit 1); exit 1; }; }
4528 cat >conftest.$ac_ext <<_ACEOF
4529 #line $LINENO "configure"
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 $ac_includes_default
4536 long longval () { return (long) (sizeof (short)); }
4537 unsigned long ulongval () { return (long) (sizeof (short)); }
4544 FILE *f = fopen ("conftest.val", "w");
4547 if (((long) (sizeof (short))) < 0)
4549 long i = longval ();
4550 if (i != ((long) (sizeof (short))))
4552 fprintf (f, "%ld\n", i);
4556 unsigned long i = ulongval ();
4557 if (i != ((long) (sizeof (short))))
4559 fprintf (f, "%lu\n", i);
4561 exit (ferror (f) || fclose (f) != 0);
4567 rm -f conftest$ac_exeext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4569 (eval $ac_link) 2>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 ac_cv_sizeof_short=`cat conftest.val`
4580 echo "$as_me: program exited with status $ac_status" >&5
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4586 See \`config.log' for more details." >&5
4587 echo "$as_me: error: cannot compute sizeof (short), 77
4588 See \`config.log' for more details." >&2;}
4589 { (exit 1); exit 1; }; }
4591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4596 ac_cv_sizeof_short=0
4599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4600 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4601 cat >>confdefs.h <<_ACEOF
4602 #define SIZEOF_SHORT $ac_cv_sizeof_short
4606 echo "$as_me:$LINENO: checking for int" >&5
4607 echo $ECHO_N "checking for int... $ECHO_C" >&6
4608 if test "${ac_cv_type_int+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 cat >conftest.$ac_ext <<_ACEOF
4612 #line $LINENO "configure"
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 $ac_includes_default
4630 rm -f conftest.$ac_objext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -s conftest.$ac_objext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4649 rm -f conftest.$ac_objext conftest.$ac_ext
4651 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4652 echo "${ECHO_T}$ac_cv_type_int" >&6
4654 echo "$as_me:$LINENO: checking size of int" >&5
4655 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4656 if test "${ac_cv_sizeof_int+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 if test "$ac_cv_type_int" = yes; then
4660 # The cast to unsigned long works around a bug in the HP C Compiler
4661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4663 # This bug is HP SR number 8606223364.
4664 if test "$cross_compiling" = yes; then
4665 # Depending upon the size, compute the lo and hi bounds.
4666 cat >conftest.$ac_ext <<_ACEOF
4667 #line $LINENO "configure"
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4673 $ac_includes_default
4677 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4698 cat >conftest.$ac_ext <<_ACEOF
4699 #line $LINENO "configure"
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4709 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4716 rm -f conftest.$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } &&
4722 { ac_try='test -s conftest.$ac_objext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4728 ac_hi=$ac_mid; break
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4733 ac_lo=`expr $ac_mid + 1`
4734 if test $ac_lo -le $ac_mid; then
4738 ac_mid=`expr 2 '*' $ac_mid + 1`
4740 rm -f conftest.$ac_objext conftest.$ac_ext
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 $ac_includes_default
4757 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4778 cat >conftest.$ac_ext <<_ACEOF
4779 #line $LINENO "configure"
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 $ac_includes_default
4789 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_lo=$ac_mid; break
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_hi=`expr '(' $ac_mid ')' - 1`
4814 if test $ac_mid -le $ac_hi; then
4818 ac_mid=`expr 2 '*' $ac_mid`
4820 rm -f conftest.$ac_objext conftest.$ac_ext
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4828 rm -f conftest.$ac_objext conftest.$ac_ext
4830 rm -f conftest.$ac_objext conftest.$ac_ext
4831 # Binary search between lo and hi bounds.
4832 while test "x$ac_lo" != "x$ac_hi"; do
4833 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4834 cat >conftest.$ac_ext <<_ACEOF
4835 #line $LINENO "configure"
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 $ac_includes_default
4845 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4852 rm -f conftest.$ac_objext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try='test -s conftest.$ac_objext'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4869 ac_lo=`expr '(' $ac_mid ')' + 1`
4871 rm -f conftest.$ac_objext conftest.$ac_ext
4874 ?*) ac_cv_sizeof_int=$ac_lo;;
4875 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4876 See \`config.log' for more details." >&5
4877 echo "$as_me: error: cannot compute sizeof (int), 77
4878 See \`config.log' for more details." >&2;}
4879 { (exit 1); exit 1; }; } ;;
4882 if test "$cross_compiling" = yes; then
4883 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4884 See \`config.log' for more details." >&5
4885 echo "$as_me: error: cannot run test program while cross compiling
4886 See \`config.log' for more details." >&2;}
4887 { (exit 1); exit 1; }; }
4889 cat >conftest.$ac_ext <<_ACEOF
4890 #line $LINENO "configure"
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 $ac_includes_default
4897 long longval () { return (long) (sizeof (int)); }
4898 unsigned long ulongval () { return (long) (sizeof (int)); }
4905 FILE *f = fopen ("conftest.val", "w");
4908 if (((long) (sizeof (int))) < 0)
4910 long i = longval ();
4911 if (i != ((long) (sizeof (int))))
4913 fprintf (f, "%ld\n", i);
4917 unsigned long i = ulongval ();
4918 if (i != ((long) (sizeof (int))))
4920 fprintf (f, "%lu\n", i);
4922 exit (ferror (f) || fclose (f) != 0);
4928 rm -f conftest$ac_exeext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4930 (eval $ac_link) 2>&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 ac_cv_sizeof_int=`cat conftest.val`
4941 echo "$as_me: program exited with status $ac_status" >&5
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4946 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4947 See \`config.log' for more details." >&5
4948 echo "$as_me: error: cannot compute sizeof (int), 77
4949 See \`config.log' for more details." >&2;}
4950 { (exit 1); exit 1; }; }
4952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4960 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4961 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4962 cat >>confdefs.h <<_ACEOF
4963 #define SIZEOF_INT $ac_cv_sizeof_int
4967 echo "$as_me:$LINENO: checking for long" >&5
4968 echo $ECHO_N "checking for long... $ECHO_C" >&6
4969 if test "${ac_cv_type_long+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 cat >conftest.$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 $ac_includes_default
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5010 rm -f conftest.$ac_objext conftest.$ac_ext
5012 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5013 echo "${ECHO_T}$ac_cv_type_long" >&6
5015 echo "$as_me:$LINENO: checking size of long" >&5
5016 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5017 if test "${ac_cv_sizeof_long+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 if test "$ac_cv_type_long" = yes; then
5021 # The cast to unsigned long works around a bug in the HP C Compiler
5022 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5023 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5024 # This bug is HP SR number 8606223364.
5025 if test "$cross_compiling" = yes; then
5026 # Depending upon the size, compute the lo and hi bounds.
5027 cat >conftest.$ac_ext <<_ACEOF
5028 #line $LINENO "configure"
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 $ac_includes_default
5038 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5045 rm -f conftest.$ac_objext
5046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5047 (eval $ac_compile) 2>&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } &&
5051 { ac_try='test -s conftest.$ac_objext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5059 cat >conftest.$ac_ext <<_ACEOF
5060 #line $LINENO "configure"
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 $ac_includes_default
5070 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -s conftest.$ac_objext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_hi=$ac_mid; break
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 ac_lo=`expr $ac_mid + 1`
5095 if test $ac_lo -le $ac_mid; then
5099 ac_mid=`expr 2 '*' $ac_mid + 1`
5101 rm -f conftest.$ac_objext conftest.$ac_ext
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 cat >conftest.$ac_ext <<_ACEOF
5108 #line $LINENO "configure"
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 $ac_includes_default
5118 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5125 rm -f conftest.$ac_objext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5127 (eval $ac_compile) 2>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
5131 { ac_try='test -s conftest.$ac_objext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5139 cat >conftest.$ac_ext <<_ACEOF
5140 #line $LINENO "configure"
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 $ac_includes_default
5150 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5157 rm -f conftest.$ac_objext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159 (eval $ac_compile) 2>&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 ac_lo=$ac_mid; break
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 ac_hi=`expr '(' $ac_mid ')' - 1`
5175 if test $ac_mid -le $ac_hi; then
5179 ac_mid=`expr 2 '*' $ac_mid`
5181 rm -f conftest.$ac_objext conftest.$ac_ext
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5189 rm -f conftest.$ac_objext conftest.$ac_ext
5191 rm -f conftest.$ac_objext conftest.$ac_ext
5192 # Binary search between lo and hi bounds.
5193 while test "x$ac_lo" != "x$ac_hi"; do
5194 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 $ac_includes_default
5206 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5213 rm -f conftest.$ac_objext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215 (eval $ac_compile) 2>&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try='test -s conftest.$ac_objext'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5227 echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.$ac_ext >&5
5230 ac_lo=`expr '(' $ac_mid ')' + 1`
5232 rm -f conftest.$ac_objext conftest.$ac_ext
5235 ?*) ac_cv_sizeof_long=$ac_lo;;
5236 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5237 See \`config.log' for more details." >&5
5238 echo "$as_me: error: cannot compute sizeof (long), 77
5239 See \`config.log' for more details." >&2;}
5240 { (exit 1); exit 1; }; } ;;
5243 if test "$cross_compiling" = yes; then
5244 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5245 See \`config.log' for more details." >&5
5246 echo "$as_me: error: cannot run test program while cross compiling
5247 See \`config.log' for more details." >&2;}
5248 { (exit 1); exit 1; }; }
5250 cat >conftest.$ac_ext <<_ACEOF
5251 #line $LINENO "configure"
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 $ac_includes_default
5258 long longval () { return (long) (sizeof (long)); }
5259 unsigned long ulongval () { return (long) (sizeof (long)); }
5266 FILE *f = fopen ("conftest.val", "w");
5269 if (((long) (sizeof (long))) < 0)
5271 long i = longval ();
5272 if (i != ((long) (sizeof (long))))
5274 fprintf (f, "%ld\n", i);
5278 unsigned long i = ulongval ();
5279 if (i != ((long) (sizeof (long))))
5281 fprintf (f, "%lu\n", i);
5283 exit (ferror (f) || fclose (f) != 0);
5289 rm -f conftest$ac_exeext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5300 ac_cv_sizeof_long=`cat conftest.val`
5302 echo "$as_me: program exited with status $ac_status" >&5
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5307 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5308 See \`config.log' for more details." >&5
5309 echo "$as_me: error: cannot compute sizeof (long), 77
5310 See \`config.log' for more details." >&2;}
5311 { (exit 1); exit 1; }; }
5313 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5321 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5322 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5323 cat >>confdefs.h <<_ACEOF
5324 #define SIZEOF_LONG $ac_cv_sizeof_long
5328 echo "$as_me:$LINENO: checking for float" >&5
5329 echo $ECHO_N "checking for float... $ECHO_C" >&6
5330 if test "${ac_cv_type_float+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 cat >conftest.$ac_ext <<_ACEOF
5334 #line $LINENO "configure"
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 $ac_includes_default
5352 rm -f conftest.$ac_objext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5354 (eval $ac_compile) 2>&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -s conftest.$ac_objext'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; }; then
5364 ac_cv_type_float=yes
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5371 rm -f conftest.$ac_objext conftest.$ac_ext
5373 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5374 echo "${ECHO_T}$ac_cv_type_float" >&6
5376 echo "$as_me:$LINENO: checking size of float" >&5
5377 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5378 if test "${ac_cv_sizeof_float+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 if test "$ac_cv_type_float" = yes; then
5382 # The cast to unsigned long works around a bug in the HP C Compiler
5383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5385 # This bug is HP SR number 8606223364.
5386 if test "$cross_compiling" = yes; then
5387 # Depending upon the size, compute the lo and hi bounds.
5388 cat >conftest.$ac_ext <<_ACEOF
5389 #line $LINENO "configure"
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 $ac_includes_default
5399 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5406 rm -f conftest.$ac_objext
5407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408 (eval $ac_compile) 2>&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -s conftest.$ac_objext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5420 cat >conftest.$ac_ext <<_ACEOF
5421 #line $LINENO "configure"
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 $ac_includes_default
5431 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -s conftest.$ac_objext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_hi=$ac_mid; break
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5455 ac_lo=`expr $ac_mid + 1`
5456 if test $ac_lo -le $ac_mid; then
5460 ac_mid=`expr 2 '*' $ac_mid + 1`
5462 rm -f conftest.$ac_objext conftest.$ac_ext
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 cat >conftest.$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 $ac_includes_default
5479 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -s conftest.$ac_objext'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5500 cat >conftest.$ac_ext <<_ACEOF
5501 #line $LINENO "configure"
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 $ac_includes_default
5511 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5518 rm -f conftest.$ac_objext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5520 (eval $ac_compile) 2>&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
5524 { ac_try='test -s conftest.$ac_objext'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; }; then
5530 ac_lo=$ac_mid; break
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5535 ac_hi=`expr '(' $ac_mid ')' - 1`
5536 if test $ac_mid -le $ac_hi; then
5540 ac_mid=`expr 2 '*' $ac_mid`
5542 rm -f conftest.$ac_objext conftest.$ac_ext
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5550 rm -f conftest.$ac_objext conftest.$ac_ext
5552 rm -f conftest.$ac_objext conftest.$ac_ext
5553 # Binary search between lo and hi bounds.
5554 while test "x$ac_lo" != "x$ac_hi"; do
5555 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5556 cat >conftest.$ac_ext <<_ACEOF
5557 #line $LINENO "configure"
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 $ac_includes_default
5567 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5574 rm -f conftest.$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576 (eval $ac_compile) 2>&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } &&
5580 { ac_try='test -s conftest.$ac_objext'
5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; }; then
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5591 ac_lo=`expr '(' $ac_mid ')' + 1`
5593 rm -f conftest.$ac_objext conftest.$ac_ext
5596 ?*) ac_cv_sizeof_float=$ac_lo;;
5597 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5598 See \`config.log' for more details." >&5
5599 echo "$as_me: error: cannot compute sizeof (float), 77
5600 See \`config.log' for more details." >&2;}
5601 { (exit 1); exit 1; }; } ;;
5604 if test "$cross_compiling" = yes; then
5605 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5606 See \`config.log' for more details." >&5
5607 echo "$as_me: error: cannot run test program while cross compiling
5608 See \`config.log' for more details." >&2;}
5609 { (exit 1); exit 1; }; }
5611 cat >conftest.$ac_ext <<_ACEOF
5612 #line $LINENO "configure"
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 $ac_includes_default
5619 long longval () { return (long) (sizeof (float)); }
5620 unsigned long ulongval () { return (long) (sizeof (float)); }
5627 FILE *f = fopen ("conftest.val", "w");
5630 if (((long) (sizeof (float))) < 0)
5632 long i = longval ();
5633 if (i != ((long) (sizeof (float))))
5635 fprintf (f, "%ld\n", i);
5639 unsigned long i = ulongval ();
5640 if (i != ((long) (sizeof (float))))
5642 fprintf (f, "%lu\n", i);
5644 exit (ferror (f) || fclose (f) != 0);
5650 rm -f conftest$ac_exeext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5652 (eval $ac_link) 2>&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; }; then
5661 ac_cv_sizeof_float=`cat conftest.val`
5663 echo "$as_me: program exited with status $ac_status" >&5
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5669 See \`config.log' for more details." >&5
5670 echo "$as_me: error: cannot compute sizeof (float), 77
5671 See \`config.log' for more details." >&2;}
5672 { (exit 1); exit 1; }; }
5674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5679 ac_cv_sizeof_float=0
5682 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5683 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5684 cat >>confdefs.h <<_ACEOF
5685 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5689 echo "$as_me:$LINENO: checking for double" >&5
5690 echo $ECHO_N "checking for double... $ECHO_C" >&6
5691 if test "${ac_cv_type_double+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 cat >conftest.$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 $ac_includes_default
5707 if (sizeof (double))
5713 rm -f conftest.$ac_objext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715 (eval $ac_compile) 2>&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try='test -s conftest.$ac_objext'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; }; then
5725 ac_cv_type_double=yes
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5730 ac_cv_type_double=no
5732 rm -f conftest.$ac_objext conftest.$ac_ext
5734 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5735 echo "${ECHO_T}$ac_cv_type_double" >&6
5737 echo "$as_me:$LINENO: checking size of double" >&5
5738 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5739 if test "${ac_cv_sizeof_double+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 if test "$ac_cv_type_double" = yes; then
5743 # The cast to unsigned long works around a bug in the HP C Compiler
5744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5746 # This bug is HP SR number 8606223364.
5747 if test "$cross_compiling" = yes; then
5748 # Depending upon the size, compute the lo and hi bounds.
5749 cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 $ac_includes_default
5760 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5781 cat >conftest.$ac_ext <<_ACEOF
5782 #line $LINENO "configure"
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5792 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5799 rm -f conftest.$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try='test -s conftest.$ac_objext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 ac_hi=$ac_mid; break
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_lo=`expr $ac_mid + 1`
5817 if test $ac_lo -le $ac_mid; then
5821 ac_mid=`expr 2 '*' $ac_mid + 1`
5823 rm -f conftest.$ac_objext conftest.$ac_ext
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 cat >conftest.$ac_ext <<_ACEOF
5830 #line $LINENO "configure"
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 $ac_includes_default
5840 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5847 rm -f conftest.$ac_objext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849 (eval $ac_compile) 2>&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } &&
5853 { ac_try='test -s conftest.$ac_objext'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; }; then
5861 cat >conftest.$ac_ext <<_ACEOF
5862 #line $LINENO "configure"
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868 $ac_includes_default
5872 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5879 rm -f conftest.$ac_objext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881 (eval $ac_compile) 2>&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try='test -s conftest.$ac_objext'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5891 ac_lo=$ac_mid; break
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 ac_hi=`expr '(' $ac_mid ')' - 1`
5897 if test $ac_mid -le $ac_hi; then
5901 ac_mid=`expr 2 '*' $ac_mid`
5903 rm -f conftest.$ac_objext conftest.$ac_ext
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5911 rm -f conftest.$ac_objext conftest.$ac_ext
5913 rm -f conftest.$ac_objext conftest.$ac_ext
5914 # Binary search between lo and hi bounds.
5915 while test "x$ac_lo" != "x$ac_hi"; do
5916 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5917 cat >conftest.$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 $ac_includes_default
5928 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5935 rm -f conftest.$ac_objext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937 (eval $ac_compile) 2>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -s conftest.$ac_objext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5952 ac_lo=`expr '(' $ac_mid ')' + 1`
5954 rm -f conftest.$ac_objext conftest.$ac_ext
5957 ?*) ac_cv_sizeof_double=$ac_lo;;
5958 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5959 See \`config.log' for more details." >&5
5960 echo "$as_me: error: cannot compute sizeof (double), 77
5961 See \`config.log' for more details." >&2;}
5962 { (exit 1); exit 1; }; } ;;
5965 if test "$cross_compiling" = yes; then
5966 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5967 See \`config.log' for more details." >&5
5968 echo "$as_me: error: cannot run test program while cross compiling
5969 See \`config.log' for more details." >&2;}
5970 { (exit 1); exit 1; }; }
5972 cat >conftest.$ac_ext <<_ACEOF
5973 #line $LINENO "configure"
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 $ac_includes_default
5980 long longval () { return (long) (sizeof (double)); }
5981 unsigned long ulongval () { return (long) (sizeof (double)); }
5988 FILE *f = fopen ("conftest.val", "w");
5991 if (((long) (sizeof (double))) < 0)
5993 long i = longval ();
5994 if (i != ((long) (sizeof (double))))
5996 fprintf (f, "%ld\n", i);
6000 unsigned long i = ulongval ();
6001 if (i != ((long) (sizeof (double))))
6003 fprintf (f, "%lu\n", i);
6005 exit (ferror (f) || fclose (f) != 0);
6011 rm -f conftest$ac_exeext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_sizeof_double=`cat conftest.val`
6024 echo "$as_me: program exited with status $ac_status" >&5
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6029 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6030 See \`config.log' for more details." >&5
6031 echo "$as_me: error: cannot compute sizeof (double), 77
6032 See \`config.log' for more details." >&2;}
6033 { (exit 1); exit 1; }; }
6035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6040 ac_cv_sizeof_double=0
6043 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6044 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6045 cat >>confdefs.h <<_ACEOF
6046 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6052 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
6053 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
6054 if test "${ac_cv_lib_z_deflate+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 ac_check_lib_save_LIBS=$LIBS
6059 cat >conftest.$ac_ext <<_ACEOF
6060 #line $LINENO "configure"
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6067 /* Override any gcc2 internal prototype to avoid an error. */
6071 /* We use char because int might match the return type of a gcc2
6072 builtin and then its argument prototype would still apply. */
6082 rm -f conftest.$ac_objext conftest$ac_exeext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6084 (eval $ac_link) 2>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -s conftest$ac_exeext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_lib_z_deflate=yes
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6099 ac_cv_lib_z_deflate=no
6101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6104 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
6105 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
6106 if test $ac_cv_lib_z_deflate = yes; then
6109 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
6110 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
6114 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6115 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6116 if test "${ac_cv_lib_m_sin+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 ac_check_lib_save_LIBS=$LIBS
6121 cat >conftest.$ac_ext <<_ACEOF
6122 #line $LINENO "configure"
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6129 /* Override any gcc2 internal prototype to avoid an error. */
6133 /* We use char because int might match the return type of a gcc2
6134 builtin and then its argument prototype would still apply. */
6144 rm -f conftest.$ac_objext conftest$ac_exeext
6145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6146 (eval $ac_link) 2>&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -s conftest$ac_exeext'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 LIBS=$ac_check_lib_save_LIBS
6166 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6167 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6168 if test $ac_cv_lib_m_sin = yes; then
6169 cat >>confdefs.h <<_ACEOF
6177 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
6178 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
6179 if test "${ac_cv_lib_curses_main+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 ac_check_lib_save_LIBS=$LIBS
6183 LIBS="-lcurses $LIBS"
6184 cat >conftest.$ac_ext <<_ACEOF
6185 #line $LINENO "configure"
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6201 rm -f conftest.$ac_objext conftest$ac_exeext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6203 (eval $ac_link) 2>&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try='test -s conftest$ac_exeext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6213 ac_cv_lib_curses_main=yes
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6218 ac_cv_lib_curses_main=no
6220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6221 LIBS=$ac_check_lib_save_LIBS
6223 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
6224 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
6225 if test $ac_cv_lib_curses_main = yes; then
6231 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6232 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
6233 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 ac_check_lib_save_LIBS=$LIBS
6237 LIBS="-lncurses $LIBS"
6238 cat >conftest.$ac_ext <<_ACEOF
6239 #line $LINENO "configure"
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6255 rm -f conftest.$ac_objext conftest$ac_exeext
6256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6257 (eval $ac_link) 2>&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -s conftest$ac_exeext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 ac_cv_lib_ncurses_main=yes
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_cv_lib_ncurses_main=no
6274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6275 LIBS=$ac_check_lib_save_LIBS
6277 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6278 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
6279 if test $ac_cv_lib_ncurses_main = yes; then
6285 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
6286 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
6287 if test "${ac_cv_lib_readline_main+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 ac_check_lib_save_LIBS=$LIBS
6291 LIBS="-lreadline -lcurses $LIBS"
6292 cat >conftest.$ac_ext <<_ACEOF
6293 #line $LINENO "configure"
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311 (eval $ac_link) 2>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
6315 { ac_try='test -s conftest$ac_exeext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_lib_readline_main=yes
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 ac_cv_lib_readline_main=no
6328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329 LIBS=$ac_check_lib_save_LIBS
6331 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
6332 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
6333 if test $ac_cv_lib_readline_main = yes; then
6336 cat >>confdefs.h <<\_ACEOF
6337 #define HAVE_READLINE 1
6345 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
6346 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
6347 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 ac_check_lib_save_LIBS=$LIBS
6351 LIBS="-lwx_gtk-2.4 $LIBS"
6352 cat >conftest.$ac_ext <<_ACEOF
6353 #line $LINENO "configure"
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6369 rm -f conftest.$ac_objext conftest$ac_exeext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371 (eval $ac_link) 2>&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -s conftest$ac_exeext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 ac_cv_lib_wx_gtk_2_4_main=yes
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 ac_cv_lib_wx_gtk_2_4_main=no
6388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6389 LIBS=$ac_check_lib_save_LIBS
6391 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
6392 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
6393 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
6394 wxwin=true; wx_gtk=true;
6395 cat >>confdefs.h <<\_ACEOF
6396 #define HAVE_WXWINDOWS 1
6401 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6402 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6403 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 ac_check_lib_save_LIBS=$LIBS
6407 LIBS="-lwx_mac-2.4 $LIBS"
6408 cat >conftest.$ac_ext <<_ACEOF
6409 #line $LINENO "configure"
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6425 rm -f conftest.$ac_objext conftest$ac_exeext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6427 (eval $ac_link) 2>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -s conftest$ac_exeext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 ac_cv_lib_wx_mac_2_4_main=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_cv_lib_wx_mac_2_4_main=no
6444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6445 LIBS=$ac_check_lib_save_LIBS
6447 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6448 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6449 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6450 wxwin=true; wx_mac=true;
6451 cat >>confdefs.h <<\_ACEOF
6452 #define HAVE_WXWINDOWS 1
6457 echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5
6458 echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6
6459 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 ac_check_lib_save_LIBS=$LIBS
6463 LIBS="-lfftw3 $LIBS"
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6472 /* Override any gcc2 internal prototype to avoid an error. */
6476 /* We use char because int might match the return type of a gcc2
6477 builtin and then its argument prototype would still apply. */
6478 char fftw_malloc ();
6487 rm -f conftest.$ac_objext conftest$ac_exeext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6489 (eval $ac_link) 2>&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -s conftest$ac_exeext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 ac_cv_lib_fftw3_fftw_malloc=yes
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6504 ac_cv_lib_fftw3_fftw_malloc=no
6506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6507 LIBS=$ac_check_lib_save_LIBS
6509 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
6510 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6
6511 if test $ac_cv_lib_fftw3_fftw_malloc = yes; then
6513 cat >>confdefs.h <<\_ACEOF
6521 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6522 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6523 if test "${ac_cv_lib_GL_main+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 ac_check_lib_save_LIBS=$LIBS
6527 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 -lXt -lXext $LIBS"
6528 cat >conftest.$ac_ext <<_ACEOF
6529 #line $LINENO "configure"
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6545 rm -f conftest.$ac_objext conftest$ac_exeext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547 (eval $ac_link) 2>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -s conftest$ac_exeext'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 ac_cv_lib_GL_main=yes
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 ac_cv_lib_GL_main=no
6564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6565 LIBS=$ac_check_lib_save_LIBS
6567 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6568 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6569 if test $ac_cv_lib_GL_main = yes; then
6575 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6576 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6577 if test "${ac_cv_lib_pthread_main+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 ac_check_lib_save_LIBS=$LIBS
6581 LIBS="-lpthread $LIBS"
6582 cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6601 (eval $ac_link) 2>&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -s conftest$ac_exeext'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6611 ac_cv_lib_pthread_main=yes
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6616 ac_cv_lib_pthread_main=no
6618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6619 LIBS=$ac_check_lib_save_LIBS
6621 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6622 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6623 if test $ac_cv_lib_pthread_main = yes; then
6630 if test "$zlib" = "true" ; then
6631 echo "$as_me:$LINENO: checking for main in -lpng" >&5
6632 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6633 if test "${ac_cv_lib_png_main+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 ac_check_lib_save_LIBS=$LIBS
6637 LIBS="-lpng -lz -lm $LIBS"
6638 cat >conftest.$ac_ext <<_ACEOF
6639 #line $LINENO "configure"
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6655 rm -f conftest.$ac_objext conftest$ac_exeext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6657 (eval $ac_link) 2>&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -s conftest$ac_exeext'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6667 ac_cv_lib_png_main=yes
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6672 ac_cv_lib_png_main=no
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6675 LIBS=$ac_check_lib_save_LIBS
6677 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6678 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6679 if test $ac_cv_lib_png_main = yes; then
6681 cat >>confdefs.h <<\_ACEOF
6691 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6692 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6693 if test "${ac_cv_header_stdc+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 cat >conftest.$ac_ext <<_ACEOF
6697 #line $LINENO "configure"
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6716 rm -f conftest.$ac_objext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718 (eval $ac_compile) 2>&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try='test -s conftest.$ac_objext'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 ac_cv_header_stdc=yes
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 ac_cv_header_stdc=no
6735 rm -f conftest.$ac_objext conftest.$ac_ext
6737 if test $ac_cv_header_stdc = yes; then
6738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6739 cat >conftest.$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6750 $EGREP "memchr" >/dev/null 2>&1; then
6753 ac_cv_header_stdc=no
6759 if test $ac_cv_header_stdc = yes; then
6760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6761 cat >conftest.$ac_ext <<_ACEOF
6762 #line $LINENO "configure"
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6772 $EGREP "free" >/dev/null 2>&1; then
6775 ac_cv_header_stdc=no
6781 if test $ac_cv_header_stdc = yes; then
6782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6783 if test "$cross_compiling" = yes; then
6786 cat >conftest.$ac_ext <<_ACEOF
6787 #line $LINENO "configure"
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6794 #if ((' ' & 0x0FF) == 0x020)
6795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6798 # define ISLOWER(c) \
6799 (('a' <= (c) && (c) <= 'i') \
6800 || ('j' <= (c) && (c) <= 'r') \
6801 || ('s' <= (c) && (c) <= 'z'))
6802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6810 for (i = 0; i < 256; i++)
6811 if (XOR (islower (i), ISLOWER (i))
6812 || toupper (i) != TOUPPER (i))
6817 rm -f conftest$ac_exeext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6819 (eval $ac_link) 2>&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6830 echo "$as_me: program exited with status $ac_status" >&5
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6835 ac_cv_header_stdc=no
6837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6841 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6842 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6843 if test $ac_cv_header_stdc = yes; then
6845 cat >>confdefs.h <<\_ACEOF
6846 #define STDC_HEADERS 1
6875 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
6877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6879 echo "$as_me:$LINENO: checking for $ac_header" >&5
6880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6887 # Is the header compilable?
6888 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6890 cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 $ac_includes_default
6898 #include <$ac_header>
6900 rm -f conftest.$ac_objext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902 (eval $ac_compile) 2>&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -s conftest.$ac_objext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 ac_header_compiler=yes
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 ac_header_compiler=no
6919 rm -f conftest.$ac_objext conftest.$ac_ext
6920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6921 echo "${ECHO_T}$ac_header_compiler" >&6
6923 # Is the header present?
6924 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6926 cat >conftest.$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 #include <$ac_header>
6935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6938 grep -v '^ *+' conftest.er1 >conftest.err
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } >/dev/null; then
6943 if test -s conftest.err; then
6944 ac_cpp_err=$ac_c_preproc_warn_flag
6951 if test -z "$ac_cpp_err"; then
6952 ac_header_preproc=yes
6954 echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6957 ac_header_preproc=no
6959 rm -f conftest.err conftest.$ac_ext
6960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6961 echo "${ECHO_T}$ac_header_preproc" >&6
6963 # So? What about this header?
6964 case $ac_header_compiler:$ac_header_preproc in
6966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6972 ## ------------------------------------ ##
6973 ## Report this to bug-autoconf@gnu.org. ##
6974 ## ------------------------------------ ##
6977 sed "s/^/$as_me: WARNING: /" >&2
6980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6988 ## ------------------------------------ ##
6989 ## Report this to bug-autoconf@gnu.org. ##
6990 ## ------------------------------------ ##
6993 sed "s/^/$as_me: WARNING: /" >&2
6996 echo "$as_me:$LINENO: checking for $ac_header" >&5
6997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 eval "$as_ac_Header=$ac_header_preproc"
7003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7008 cat >>confdefs.h <<_ACEOF
7009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7017 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7018 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7019 if test "${ac_cv_c_const+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 cat >conftest.$ac_ext <<_ACEOF
7023 #line $LINENO "configure"
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7033 /* FIXME: Include the comments suggested by Paul. */
7035 /* Ultrix mips cc rejects this. */
7036 typedef int charset[2];
7038 /* SunOS 4.1.1 cc rejects this. */
7039 char const *const *ccp;
7041 /* NEC SVR4.0.2 mips cc rejects this. */
7042 struct point {int x, y;};
7043 static struct point const zero = {0,0};
7044 /* AIX XL C 1.02.0.0 rejects this.
7045 It does not let you subtract one const X* pointer from another in
7046 an arm of an if-expression whose if-part is not a constant
7048 const char *g = "string";
7049 ccp = &g + (g ? g-g : 0);
7050 /* HPUX 7.0 cc rejects these. */
7053 ccp = (char const *const *) p;
7054 { /* SCO 3.2v4 cc rejects this. */
7056 char const *s = 0 ? (char *) 0 : (char const *) 0;
7060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7062 const int *foo = &x[0];
7065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7066 typedef const int *iptr;
7070 { /* AIX XL C 1.02.0.0 rejects this saying
7071 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7072 struct s { int j; const int *ap[3]; };
7073 struct s *b; b->j = 5;
7075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7084 rm -f conftest.$ac_objext
7085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086 (eval $ac_compile) 2>&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
7090 { ac_try='test -s conftest.$ac_objext'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7103 rm -f conftest.$ac_objext conftest.$ac_ext
7105 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7106 echo "${ECHO_T}$ac_cv_c_const" >&6
7107 if test $ac_cv_c_const = no; then
7109 cat >>confdefs.h <<\_ACEOF
7115 echo "$as_me:$LINENO: checking for off_t" >&5
7116 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7117 if test "${ac_cv_type_off_t+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 cat >conftest.$ac_ext <<_ACEOF
7121 #line $LINENO "configure"
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 $ac_includes_default
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 2>&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } &&
7145 { ac_try='test -s conftest.$ac_objext'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7151 ac_cv_type_off_t=yes
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7158 rm -f conftest.$ac_objext conftest.$ac_ext
7160 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7161 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7162 if test $ac_cv_type_off_t = yes; then
7166 cat >>confdefs.h <<_ACEOF
7172 echo "$as_me:$LINENO: checking for size_t" >&5
7173 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7174 if test "${ac_cv_type_size_t+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 cat >conftest.$ac_ext <<_ACEOF
7178 #line $LINENO "configure"
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 $ac_includes_default
7190 if (sizeof (size_t))
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try='test -s conftest.$ac_objext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7208 ac_cv_type_size_t=yes
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 ac_cv_type_size_t=no
7215 rm -f conftest.$ac_objext conftest.$ac_ext
7217 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7218 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7219 if test $ac_cv_type_size_t = yes; then
7223 cat >>confdefs.h <<_ACEOF
7224 #define size_t unsigned
7229 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7230 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7231 if test "${ac_cv_struct_tm+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 cat >conftest.$ac_ext <<_ACEOF
7235 #line $LINENO "configure"
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #include <sys/types.h>
7247 struct tm *tp; tp->tm_sec;
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254 (eval $ac_compile) 2>&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } &&
7258 { ac_try='test -s conftest.$ac_objext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 ac_cv_struct_tm=time.h
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 ac_cv_struct_tm=sys/time.h
7271 rm -f conftest.$ac_objext conftest.$ac_ext
7273 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7274 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7275 if test $ac_cv_struct_tm = sys/time.h; then
7277 cat >>confdefs.h <<\_ACEOF
7278 #define TM_IN_SYS_TIME 1
7285 for ac_func in vprintf
7287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7288 echo "$as_me:$LINENO: checking for $ac_func" >&5
7289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7290 if eval "test \"\${$as_ac_var+set}\" = set"; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 cat >conftest.$ac_ext <<_ACEOF
7294 #line $LINENO "configure"
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 /* System header to define __stub macros and hopefully few prototypes,
7301 which can conflict with char $ac_func (); below.
7302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7303 <limits.h> exists even on freestanding compilers. */
7305 # include <limits.h>
7307 # include <assert.h>
7309 /* Override any gcc2 internal prototype to avoid an error. */
7314 /* We use char because int might match the return type of a gcc2
7315 builtin and then its argument prototype would still apply. */
7317 /* The GNU C library defines this for functions which it implements
7318 to always fail with ENOSYS. Some functions are actually named
7319 something starting with __ and the normal name is an alias. */
7320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7323 char (*f) () = $ac_func;
7332 return f != $ac_func;
7337 rm -f conftest.$ac_objext conftest$ac_exeext
7338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7339 (eval $ac_link) 2>&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try='test -s conftest$ac_exeext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 eval "$as_ac_var=yes"
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7354 eval "$as_ac_var=no"
7356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7360 if test `eval echo '${'$as_ac_var'}'` = yes; then
7361 cat >>confdefs.h <<_ACEOF
7362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7365 echo "$as_me:$LINENO: checking for _doprnt" >&5
7366 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7367 if test "${ac_cv_func__doprnt+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 cat >conftest.$ac_ext <<_ACEOF
7371 #line $LINENO "configure"
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7377 /* System header to define __stub macros and hopefully few prototypes,
7378 which can conflict with char _doprnt (); below.
7379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7380 <limits.h> exists even on freestanding compilers. */
7382 # include <limits.h>
7384 # include <assert.h>
7386 /* Override any gcc2 internal prototype to avoid an error. */
7391 /* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */
7394 /* The GNU C library defines this for functions which it implements
7395 to always fail with ENOSYS. Some functions are actually named
7396 something starting with __ and the normal name is an alias. */
7397 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7400 char (*f) () = _doprnt;
7409 return f != _doprnt;
7414 rm -f conftest.$ac_objext conftest$ac_exeext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7416 (eval $ac_link) 2>&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try='test -s conftest$ac_exeext'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7426 ac_cv_func__doprnt=yes
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 ac_cv_func__doprnt=no
7433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7435 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7436 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7437 if test $ac_cv_func__doprnt = yes; then
7439 cat >>confdefs.h <<\_ACEOF
7440 #define HAVE_DOPRNT 1
7456 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7459 echo "$as_me:$LINENO: checking for $ac_func" >&5
7460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7461 if eval "test \"\${$as_ac_var+set}\" = set"; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 cat >conftest.$ac_ext <<_ACEOF
7465 #line $LINENO "configure"
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 /* System header to define __stub macros and hopefully few prototypes,
7472 which can conflict with char $ac_func (); below.
7473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7474 <limits.h> exists even on freestanding compilers. */
7476 # include <limits.h>
7478 # include <assert.h>
7480 /* Override any gcc2 internal prototype to avoid an error. */
7485 /* We use char because int might match the return type of a gcc2
7486 builtin and then its argument prototype would still apply. */
7488 /* The GNU C library defines this for functions which it implements
7489 to always fail with ENOSYS. Some functions are actually named
7490 something starting with __ and the normal name is an alias. */
7491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7494 char (*f) () = $ac_func;
7503 return f != $ac_func;
7508 rm -f conftest.$ac_objext conftest$ac_exeext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7510 (eval $ac_link) 2>&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try='test -s conftest$ac_exeext'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 eval "$as_ac_var=yes"
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7525 eval "$as_ac_var=no"
7527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7531 if test `eval echo '${'$as_ac_var'}'` = yes; then
7532 cat >>confdefs.h <<_ACEOF
7533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7539 echo "$as_me:$LINENO: checking for basename" >&5
7540 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7541 if test "${ac_cv_func_basename+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 cat >conftest.$ac_ext <<_ACEOF
7545 #line $LINENO "configure"
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 /* System header to define __stub macros and hopefully few prototypes,
7552 which can conflict with char basename (); below.
7553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7554 <limits.h> exists even on freestanding compilers. */
7556 # include <limits.h>
7558 # include <assert.h>
7560 /* Override any gcc2 internal prototype to avoid an error. */
7565 /* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7568 /* The GNU C library defines this for functions which it implements
7569 to always fail with ENOSYS. Some functions are actually named
7570 something starting with __ and the normal name is an alias. */
7571 #if defined (__stub_basename) || defined (__stub___basename)
7574 char (*f) () = basename;
7583 return f != basename;
7588 rm -f conftest.$ac_objext conftest$ac_exeext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7590 (eval $ac_link) 2>&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } &&
7594 { ac_try='test -s conftest$ac_exeext'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_cv_func_basename=yes
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 ac_cv_func_basename=no
7607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7609 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7610 echo "${ECHO_T}$ac_cv_func_basename" >&6
7612 echo "$as_me:$LINENO: checking for setjmp" >&5
7613 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7614 if test "${ac_cv_func_setjmp+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 cat >conftest.$ac_ext <<_ACEOF
7618 #line $LINENO "configure"
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 /* System header to define __stub macros and hopefully few prototypes,
7625 which can conflict with char setjmp (); below.
7626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7627 <limits.h> exists even on freestanding compilers. */
7629 # include <limits.h>
7631 # include <assert.h>
7633 /* Override any gcc2 internal prototype to avoid an error. */
7638 /* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */
7641 /* The GNU C library defines this for functions which it implements
7642 to always fail with ENOSYS. Some functions are actually named
7643 something starting with __ and the normal name is an alias. */
7644 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7647 char (*f) () = setjmp;
7661 rm -f conftest.$ac_objext conftest$ac_exeext
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -s conftest$ac_exeext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 ac_cv_func_setjmp=yes
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_cv_func_setjmp=no
7680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7682 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7683 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7685 echo "$as_me:$LINENO: checking for setpriority" >&5
7686 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7687 if test "${ac_cv_func_setpriority+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 cat >conftest.$ac_ext <<_ACEOF
7691 #line $LINENO "configure"
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7697 /* System header to define __stub macros and hopefully few prototypes,
7698 which can conflict with char setpriority (); below.
7699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7700 <limits.h> exists even on freestanding compilers. */
7702 # include <limits.h>
7704 # include <assert.h>
7706 /* Override any gcc2 internal prototype to avoid an error. */
7711 /* We use char because int might match the return type of a gcc2
7712 builtin and then its argument prototype would still apply. */
7713 char setpriority ();
7714 /* The GNU C library defines this for functions which it implements
7715 to always fail with ENOSYS. Some functions are actually named
7716 something starting with __ and the normal name is an alias. */
7717 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7720 char (*f) () = setpriority;
7729 return f != setpriority;
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736 (eval $ac_link) 2>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -s conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7746 ac_cv_func_setpriority=yes
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ac_cv_func_setpriority=no
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7755 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7756 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7758 echo "$as_me:$LINENO: checking for time" >&5
7759 echo $ECHO_N "checking for time... $ECHO_C" >&6
7760 if test "${ac_cv_func_time+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 cat >conftest.$ac_ext <<_ACEOF
7764 #line $LINENO "configure"
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 /* System header to define __stub macros and hopefully few prototypes,
7771 which can conflict with char time (); below.
7772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7773 <limits.h> exists even on freestanding compilers. */
7775 # include <limits.h>
7777 # include <assert.h>
7779 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7787 /* The GNU C library defines this for functions which it implements
7788 to always fail with ENOSYS. Some functions are actually named
7789 something starting with __ and the normal name is an alias. */
7790 #if defined (__stub_time) || defined (__stub___time)
7793 char (*f) () = time;
7807 rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809 (eval $ac_link) 2>&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -s conftest$ac_exeext'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; }; then
7821 echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7828 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7829 echo "${ECHO_T}$ac_cv_func_time" >&6
7831 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7832 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7833 if test "${ac_cv_func_gettimeofday+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 cat >conftest.$ac_ext <<_ACEOF
7837 #line $LINENO "configure"
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 /* System header to define __stub macros and hopefully few prototypes,
7844 which can conflict with char gettimeofday (); below.
7845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7846 <limits.h> exists even on freestanding compilers. */
7848 # include <limits.h>
7850 # include <assert.h>
7852 /* Override any gcc2 internal prototype to avoid an error. */
7857 /* We use char because int might match the return type of a gcc2
7858 builtin and then its argument prototype would still apply. */
7859 char gettimeofday ();
7860 /* The GNU C library defines this for functions which it implements
7861 to always fail with ENOSYS. Some functions are actually named
7862 something starting with __ and the normal name is an alias. */
7863 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7866 char (*f) () = gettimeofday;
7875 return f != gettimeofday;
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_func_gettimeofday=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 ac_cv_func_gettimeofday=no
7899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7901 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7902 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7904 echo "$as_me:$LINENO: checking for getopt" >&5
7905 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7906 if test "${ac_cv_func_getopt+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 cat >conftest.$ac_ext <<_ACEOF
7910 #line $LINENO "configure"
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7916 /* System header to define __stub macros and hopefully few prototypes,
7917 which can conflict with char getopt (); below.
7918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7919 <limits.h> exists even on freestanding compilers. */
7921 # include <limits.h>
7923 # include <assert.h>
7925 /* Override any gcc2 internal prototype to avoid an error. */
7930 /* We use char because int might match the return type of a gcc2
7931 builtin and then its argument prototype would still apply. */
7933 /* The GNU C library defines this for functions which it implements
7934 to always fail with ENOSYS. Some functions are actually named
7935 something starting with __ and the normal name is an alias. */
7936 #if defined (__stub_getopt) || defined (__stub___getopt)
7939 char (*f) () = getopt;
7953 rm -f conftest.$ac_objext conftest$ac_exeext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955 (eval $ac_link) 2>&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -s conftest$ac_exeext'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7965 ac_cv_func_getopt=yes
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 ac_cv_func_getopt=no
7972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7974 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7975 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7976 if test $ac_cv_func_getopt = yes; then
7982 echo "$as_me:$LINENO: checking for getenv" >&5
7983 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
7984 if test "${ac_cv_func_getenv+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 cat >conftest.$ac_ext <<_ACEOF
7988 #line $LINENO "configure"
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7994 /* System header to define __stub macros and hopefully few prototypes,
7995 which can conflict with char getenv (); below.
7996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7997 <limits.h> exists even on freestanding compilers. */
7999 # include <limits.h>
8001 # include <assert.h>
8003 /* Override any gcc2 internal prototype to avoid an error. */
8008 /* We use char because int might match the return type of a gcc2
8009 builtin and then its argument prototype would still apply. */
8011 /* The GNU C library defines this for functions which it implements
8012 to always fail with ENOSYS. Some functions are actually named
8013 something starting with __ and the normal name is an alias. */
8014 #if defined (__stub_getenv) || defined (__stub___getenv)
8017 char (*f) () = getenv;
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8033 (eval $ac_link) 2>&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } &&
8037 { ac_try='test -s conftest$ac_exeext'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; }; then
8043 ac_cv_func_getenv=yes
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 ac_cv_func_getenv=no
8050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8052 echo "$as_me:$LINENO: result: $ac_cv_func_getenv" >&5
8053 echo "${ECHO_T}$ac_cv_func_getenv" >&6
8056 if test "${OSTYPE}" = "cygwin" ; then
8059 echo "$as_me:$LINENO: checking for getopt_long" >&5
8060 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
8061 if test "${ac_cv_func_getopt_long+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 cat >conftest.$ac_ext <<_ACEOF
8065 #line $LINENO "configure"
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 /* System header to define __stub macros and hopefully few prototypes,
8072 which can conflict with char getopt_long (); below.
8073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8074 <limits.h> exists even on freestanding compilers. */
8076 # include <limits.h>
8078 # include <assert.h>
8080 /* Override any gcc2 internal prototype to avoid an error. */
8085 /* We use char because int might match the return type of a gcc2
8086 builtin and then its argument prototype would still apply. */
8087 char getopt_long ();
8088 /* The GNU C library defines this for functions which it implements
8089 to always fail with ENOSYS. Some functions are actually named
8090 something starting with __ and the normal name is an alias. */
8091 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
8094 char (*f) () = getopt_long;
8103 return f != getopt_long;
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110 (eval $ac_link) 2>&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -s conftest$ac_exeext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 ac_cv_func_getopt_long=yes
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8125 ac_cv_func_getopt_long=no
8127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8129 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8130 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
8131 if test $ac_cv_func_getopt_long = yes; then
8139 if test "${getopt_long}" = "false" ; then
8140 my_includes="$my_includes -I../getopt"
8142 cat >>confdefs.h <<\_ACEOF
8143 #define HAVE_GETOPT_LONG 1
8146 ctlibs_base="$ctlibs_base -lgetopt"
8147 LDFLAGS="$LDFLAGS -L../getopt"
8152 if test "$GETOPTLONG"="1"; then
8153 INCLUDED_GETOPT_LONG_TRUE=
8154 INCLUDED_GETOPT_LONG_FALSE='#'
8156 INCLUDED_GETOPT_LONG_TRUE='#'
8157 INCLUDED_GETOPT_LONG_FALSE=
8161 if test "${readline}" = "true" ; then
8162 ctlibs_base="$ctlibs_base -lreadline"
8163 if test "${ncurses}" = "true"; then
8164 ctlibs_base="$ctlibs_base -lncurses"
8165 elif test "${curses}" = "true"; then
8166 ctlibs_base="$ctlibs_base -lcurses"
8170 echo "$as_me:$LINENO: checking debug" >&5
8171 echo $ECHO_N "checking debug... $ECHO_C" >&6
8172 # Check whether --enable-debug or --disable-debug was given.
8173 if test "${enable_debug+set}" = set; then
8174 enableval="$enable_debug"
8175 case "${enableval}" in
8177 echo "$as_me:$LINENO: result: yes" >&5
8178 echo "${ECHO_T}yes" >&6
8181 echo "$as_me:$LINENO: result: no" >&5
8182 echo "${ECHO_T}no" >&6
8184 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
8185 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
8189 debug=false; echo "$as_me:$LINENO: result: no" >&5
8190 echo "${ECHO_T}no" >&6
8194 if test "$debug" = "true"; then
8203 if test "$datadir" != "" ; then
8204 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
8207 if test "$debug" = "true" ; then
8208 CFLAGS="$CFLAGS -g -DDEBUG"
8210 cat >>confdefs.h <<\_ACEOF
8215 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
8217 cat >>confdefs.h <<\_ACEOF
8223 if test "${pthread}" = "true" ; then
8225 cat >>confdefs.h <<\_ACEOF
8226 #define HAVE_WXTHREADS 1
8231 echo "$as_me:$LINENO: checking sstream" >&5
8232 echo $ECHO_N "checking sstream... $ECHO_C" >&6
8233 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
8234 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
8235 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
8237 cat >>confdefs.h <<\_ACEOF
8238 #define HAVE_SSTREAM 1
8241 echo "$as_me:$LINENO: result: yes" >&5
8242 echo "${ECHO_T}yes" >&6
8244 echo "$as_me:$LINENO: result: no" >&5
8245 echo "${ECHO_T}no" >&6
8249 CFLAGS="$CFLAGS -Wall"
8250 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
8251 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
8252 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
8253 if test "${enable_verbose_warnings+set}" = set; then
8254 enableval="$enable_verbose_warnings"
8255 case "$enableval" in
8257 echo "$as_me:$LINENO: result: yes" >&5
8258 echo "${ECHO_T}yes" >&6
8259 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
8262 echo "$as_me:$LINENO: result: no" >&5
8263 echo "${ECHO_T}no" >&6
8267 echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6
8272 echo "$as_me:$LINENO: checking static executables" >&5
8273 echo $ECHO_N "checking static executables... $ECHO_C" >&6
8274 # Check whether --enable-static or --disable-static was given.
8275 if test "${enable_static+set}" = set; then
8276 enableval="$enable_static"
8277 case "$enableval" in
8279 echo "$as_me:$LINENO: result: yes" >&5
8280 echo "${ECHO_T}yes" >&6
8281 CFLAGS="$CFLAGS --static"
8284 echo "$as_me:$LINENO: result: no" >&5
8285 echo "${ECHO_T}no" >&6
8289 echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6
8295 # Check whether --with-lam or --without-lam was given.
8296 if test "${with_lam+set}" = set; then
8298 if test "$withval" != "no" ; then
8304 if test "$withval" != "no" ; then
8305 if test "$prefix" != "NONE" ; then
8306 trylamdir="$trylamdir $prefix"
8309 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
8310 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
8311 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
8312 if test -x "$testlamdir/bin/hcp" ; then
8313 if test "$testlamdir" != "/usr"; then
8314 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
8315 CFLAGS="$CFLAGS -I$testlamdir/include"
8317 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
8318 lamdir="$testlamdir"
8325 echo "$as_me:$LINENO: result: $lamdir" >&5
8326 echo "${ECHO_T}$lamdir" >&6
8328 echo "$as_me:$LINENO: result: no" >&5
8329 echo "${ECHO_T}no" >&6
8334 # Check whether --with-ctn or --without-ctn was given.
8335 if test "${with_ctn+set}" = set; then
8337 if test "$withval" != "no" ; then
8343 if test "$withval" == "no" -o "$withval" == "NONE" ; then
8344 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8345 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8346 echo "$as_me:$LINENO: result: disabled" >&5
8347 echo "${ECHO_T}disabled" >&6
8349 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8350 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8351 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
8352 if test -f "$testctndir/libctn.a" ; then
8353 LDFLAGS="$LDFLAGS -L$testctndir"
8358 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
8359 if test -f "$testctndir/ctn_os.h" ; then
8360 CFLAGS="$CFLAGS -I$testctndir"
8365 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
8368 cat >>confdefs.h <<\_ACEOF
8369 #define HAVE_CTN_DICOM 1
8372 echo "$as_me:$LINENO: result: yes" >&5
8373 echo "${ECHO_T}yes" >&6
8375 echo "$as_me:$LINENO: result: no" >&5
8376 echo "${ECHO_T}no" >&6
8380 echo "$as_me:$LINENO: checking for CPU specification" >&5
8381 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
8383 # Check whether --with-mcpu or --without-mcpu was given.
8384 if test "${with_mcpu+set}" = set; then
8385 withval="$with_mcpu"
8389 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
8390 echo "$as_me:$LINENO: result: no" >&5
8391 echo "${ECHO_T}no" >&6
8393 echo "$as_me:$LINENO: result: $withval" >&5
8394 echo "${ECHO_T}$withval" >&6
8395 CFLAGS="$CFLAGS -mcpu=$withval"
8398 echo "$as_me:$LINENO: checking for web access" >&5
8399 echo $ECHO_N "checking for web access... $ECHO_C" >&6
8401 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
8402 if test "${with_cgibin_dir+set}" = set; then
8403 withval="$with_cgibin_dir"
8404 cgibindir=$withval ;
8408 # Check whether --with-cgibin-url or --without-cgibin-url was given.
8409 if test "${with_cgibin_url+set}" = set; then
8410 withval="$with_cgibin_url"
8411 cgibinurl=$withval ;
8415 # Check whether --with-webdata-dir or --without-webdata-dir was given.
8416 if test "${with_webdata_dir+set}" = set; then
8417 withval="$with_webdata_dir"
8418 webdatadir=$withval ;
8422 # Check whether --with-webdata-url or --without-webdata-url was given.
8423 if test "${with_webdata_url+set}" = set; then
8424 withval="$with_webdata_url"
8425 webdataurl=$withval ;
8429 # Check whether --with-html-dir or --without-html-dir was given.
8430 if test "${with_html_dir+set}" = set; then
8431 withval="$with_html_dir"
8435 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
8436 cgiprograms="ctsim.cgi ctsim.conf"
8440 if test -n "$htmldir" ; then
8441 htmldata=simulate.html
8446 if test -n "$htmldir"; then
8455 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
8458 echo "$as_me:$LINENO: result: yes" >&5
8459 echo "${ECHO_T}yes" >&6
8460 if test -z "$cgibindir" ; then
8461 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
8462 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
8463 { (exit 1); exit 1; }; }
8464 elif test -z "$cgibinurl" ; then
8465 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
8466 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
8467 { (exit 1); exit 1; }; }
8468 elif test -z "$webdatadir" ; then
8469 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
8470 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
8471 { (exit 1); exit 1; }; }
8472 elif test -z "$webdataurl" ; then
8473 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
8474 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
8475 { (exit 1); exit 1; }; }
8476 elif test -z "$htmldir" ; then
8477 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
8478 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
8479 { (exit 1); exit 1; }; }
8482 echo "$as_me:$LINENO: result: no" >&5
8483 echo "${ECHO_T}no" >&6
8488 if test -n "$lamdir"; then
8498 echo "$as_me:$LINENO: checking for X" >&5
8499 echo $ECHO_N "checking for X... $ECHO_C" >&6
8502 # Check whether --with-x or --without-x was given.
8503 if test "${with_x+set}" = set; then
8507 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8508 if test "x$with_x" = xno; then
8509 # The user explicitly disabled X.
8512 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8513 # Both variables are already set.
8516 if test "${ac_cv_have_x+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 # One or both of the vars are not set, and there is no cached value.
8520 ac_x_includes=no ac_x_libraries=no
8522 if mkdir conftest.dir; then
8524 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8525 cat >Imakefile <<'_ACEOF'
8527 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8529 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8530 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8531 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8532 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8533 for ac_extension in a so sl; do
8534 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8535 test -f $ac_im_libdir/libX11.$ac_extension; then
8536 ac_im_usrlibdir=$ac_im_libdir; break
8539 # Screen out bogus values from the imake configuration. They are
8540 # bogus both because they are the default anyway, and because
8541 # using them would break gcc on systems where it needs fixed includes.
8542 case $ac_im_incroot in
8544 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8546 case $ac_im_usrlibdir in
8548 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8555 # Standard set of common directories for X headers.
8556 # Check X11 before X11Rn because it is often a symlink to the current release.
8568 /usr/local/X11/include
8569 /usr/local/X11R6/include
8570 /usr/local/X11R5/include
8571 /usr/local/X11R4/include
8573 /usr/local/include/X11
8574 /usr/local/include/X11R6
8575 /usr/local/include/X11R5
8576 /usr/local/include/X11R4
8580 /usr/XFree86/include/X11
8584 /usr/unsupported/include
8586 /usr/local/x11r5/include
8587 /usr/lpp/Xamples/include
8589 /usr/openwin/include
8590 /usr/openwin/share/include'
8592 if test "$ac_x_includes" = no; then
8593 # Guess where to find include files, by looking for Intrinsic.h.
8594 # First, try using that file with no special directory specified.
8595 cat >conftest.$ac_ext <<_ACEOF
8596 #line $LINENO "configure"
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8602 #include <X11/Intrinsic.h>
8604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8607 grep -v '^ *+' conftest.er1 >conftest.err
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } >/dev/null; then
8612 if test -s conftest.err; then
8613 ac_cpp_err=$ac_c_preproc_warn_flag
8620 if test -z "$ac_cpp_err"; then
8621 # We can compile using X headers with no special include directory.
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 for ac_dir in $ac_x_header_dirs; do
8628 if test -r "$ac_dir/X11/Intrinsic.h"; then
8629 ac_x_includes=$ac_dir
8634 rm -f conftest.err conftest.$ac_ext
8635 fi # $ac_x_includes = no
8637 if test "$ac_x_libraries" = no; then
8638 # Check for the libraries.
8639 # See if we find them without any special options.
8640 # Don't add to $LIBS permanently.
8643 cat >conftest.$ac_ext <<_ACEOF
8644 #line $LINENO "configure"
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8650 #include <X11/Intrinsic.h>
8659 rm -f conftest.$ac_objext conftest$ac_exeext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8661 (eval $ac_link) 2>&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -s conftest$ac_exeext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8672 # We can link X programs with no special library path.
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8679 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8681 # Don't even attempt the hair of trying to link an X program!
8682 for ac_extension in a so sl; do
8683 if test -r $ac_dir/libXt.$ac_extension; then
8684 ac_x_libraries=$ac_dir
8690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8691 fi # $ac_x_libraries = no
8693 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8694 # Didn't find X anywhere. Cache the known absence of X.
8695 ac_cv_have_x="have_x=no"
8697 # Record where we found X for the cache.
8698 ac_cv_have_x="have_x=yes \
8699 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8704 eval "$ac_cv_have_x"
8707 if test "$have_x" != yes; then
8708 echo "$as_me:$LINENO: result: $have_x" >&5
8709 echo "${ECHO_T}$have_x" >&6
8712 # If each of the values was on the command line, it overrides each guess.
8713 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8714 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8715 # Update the cache value to reflect the command line values.
8716 ac_cv_have_x="have_x=yes \
8717 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8718 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8719 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8722 if test "$no_x" = yes; then
8723 # Not all programs may use this symbol, but it does not hurt to define it.
8725 cat >>confdefs.h <<\_ACEOF
8726 #define X_DISPLAY_MISSING 1
8729 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8731 if test -n "$x_includes"; then
8732 X_CFLAGS="$X_CFLAGS -I$x_includes"
8735 # It would also be nice to do this for all -L options, not just this one.
8736 if test -n "$x_libraries"; then
8737 X_LIBS="$X_LIBS -L$x_libraries"
8738 # For Solaris; some versions of Sun CC require a space after -R and
8739 # others require no space. Words are not sufficient . . . .
8740 case `(uname -sr) 2>/dev/null` in
8742 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8743 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8744 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8745 cat >conftest.$ac_ext <<_ACEOF
8746 #line $LINENO "configure"
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8761 rm -f conftest.$ac_objext conftest$ac_exeext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8763 (eval $ac_link) 2>&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -s conftest$ac_exeext'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8781 if test $ac_R_nospace = yes; then
8782 echo "$as_me:$LINENO: result: no" >&5
8783 echo "${ECHO_T}no" >&6
8784 X_LIBS="$X_LIBS -R$x_libraries"
8786 LIBS="$ac_xsave_LIBS -R $x_libraries"
8787 cat >conftest.$ac_ext <<_ACEOF
8788 #line $LINENO "configure"
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8803 rm -f conftest.$ac_objext conftest$ac_exeext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805 (eval $ac_link) 2>&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } &&
8809 { ac_try='test -s conftest$ac_exeext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8823 if test $ac_R_space = yes; then
8824 echo "$as_me:$LINENO: result: yes" >&5
8825 echo "${ECHO_T}yes" >&6
8826 X_LIBS="$X_LIBS -R $x_libraries"
8828 echo "$as_me:$LINENO: result: neither works" >&5
8829 echo "${ECHO_T}neither works" >&6
8836 # Check for system-dependent libraries X programs must link with.
8837 # Do this before checking for the system-independent R6 libraries
8838 # (-lICE), since we may need -lsocket or whatever for X linking.
8840 if test "$ISC" = yes; then
8841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8843 # Martyn Johnson says this is needed for Ultrix, if the X
8844 # libraries were built with DECnet support. And Karl Berry says
8845 # the Alpha needs dnet_stub (dnet does not exist).
8846 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8847 cat >conftest.$ac_ext <<_ACEOF
8848 #line $LINENO "configure"
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8855 /* Override any gcc2 internal prototype to avoid an error. */
8859 /* We use char because int might match the return type of a gcc2
8860 builtin and then its argument prototype would still apply. */
8861 char XOpenDisplay ();
8870 rm -f conftest.$ac_objext conftest$ac_exeext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872 (eval $ac_link) 2>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -s conftest$ac_exeext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8884 echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8887 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8888 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8889 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 ac_check_lib_save_LIBS=$LIBS
8894 cat >conftest.$ac_ext <<_ACEOF
8895 #line $LINENO "configure"
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8902 /* Override any gcc2 internal prototype to avoid an error. */
8906 /* We use char because int might match the return type of a gcc2
8907 builtin and then its argument prototype would still apply. */
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919 (eval $ac_link) 2>&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -s conftest$ac_exeext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_cv_lib_dnet_dnet_ntoa=yes
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 ac_cv_lib_dnet_dnet_ntoa=no
8936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8937 LIBS=$ac_check_lib_save_LIBS
8939 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8940 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8941 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8942 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8945 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8946 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8947 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8948 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 ac_check_lib_save_LIBS=$LIBS
8952 LIBS="-ldnet_stub $LIBS"
8953 cat >conftest.$ac_ext <<_ACEOF
8954 #line $LINENO "configure"
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8961 /* Override any gcc2 internal prototype to avoid an error. */
8965 /* We use char because int might match the return type of a gcc2
8966 builtin and then its argument prototype would still apply. */
8976 rm -f conftest.$ac_objext conftest$ac_exeext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8978 (eval $ac_link) 2>&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8993 ac_cv_lib_dnet_stub_dnet_ntoa=no
8995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8996 LIBS=$ac_check_lib_save_LIBS
8998 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8999 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9000 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9001 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9007 LIBS="$ac_xsave_LIBS"
9009 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9010 # to get the SysV transport functions.
9011 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9013 # The nsl library prevents programs from opening the X display
9014 # on Irix 5.2, according to T.E. Dickey.
9015 # The functions gethostbyname, getservbyname, and inet_addr are
9016 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9017 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9018 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9019 if test "${ac_cv_func_gethostbyname+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 cat >conftest.$ac_ext <<_ACEOF
9023 #line $LINENO "configure"
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 /* System header to define __stub macros and hopefully few prototypes,
9030 which can conflict with char gethostbyname (); below.
9031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9032 <limits.h> exists even on freestanding compilers. */
9034 # include <limits.h>
9036 # include <assert.h>
9038 /* Override any gcc2 internal prototype to avoid an error. */
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9045 char gethostbyname ();
9046 /* The GNU C library defines this for functions which it implements
9047 to always fail with ENOSYS. Some functions are actually named
9048 something starting with __ and the normal name is an alias. */
9049 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9052 char (*f) () = gethostbyname;
9061 return f != gethostbyname;
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068 (eval $ac_link) 2>&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -s conftest$ac_exeext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 ac_cv_func_gethostbyname=yes
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9083 ac_cv_func_gethostbyname=no
9085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9087 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9088 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9090 if test $ac_cv_func_gethostbyname = no; then
9091 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9092 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9093 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 ac_check_lib_save_LIBS=$LIBS
9098 cat >conftest.$ac_ext <<_ACEOF
9099 #line $LINENO "configure"
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9106 /* Override any gcc2 internal prototype to avoid an error. */
9110 /* We use char because int might match the return type of a gcc2
9111 builtin and then its argument prototype would still apply. */
9112 char gethostbyname ();
9121 rm -f conftest.$ac_objext conftest$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123 (eval $ac_link) 2>&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_cv_lib_nsl_gethostbyname=yes
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_cv_lib_nsl_gethostbyname=no
9140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9141 LIBS=$ac_check_lib_save_LIBS
9143 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9144 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9145 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9146 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9149 if test $ac_cv_lib_nsl_gethostbyname = no; then
9150 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9151 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9152 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 ac_check_lib_save_LIBS=$LIBS
9157 cat >conftest.$ac_ext <<_ACEOF
9158 #line $LINENO "configure"
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9165 /* Override any gcc2 internal prototype to avoid an error. */
9169 /* We use char because int might match the return type of a gcc2
9170 builtin and then its argument prototype would still apply. */
9171 char gethostbyname ();
9180 rm -f conftest.$ac_objext conftest$ac_exeext
9181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9182 (eval $ac_link) 2>&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -s conftest$ac_exeext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_cv_lib_bsd_gethostbyname=yes
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9197 ac_cv_lib_bsd_gethostbyname=no
9199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9200 LIBS=$ac_check_lib_save_LIBS
9202 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9203 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9204 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9205 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9211 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9212 # socket/setsockopt and other routines are undefined under SCO ODT
9213 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9214 # on later versions), says Simon Leinen: it contains gethostby*
9215 # variants that don't use the name server (or something). -lsocket
9216 # must be given before -lnsl if both are needed. We assume that
9217 # if connect needs -lnsl, so does gethostbyname.
9218 echo "$as_me:$LINENO: checking for connect" >&5
9219 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9220 if test "${ac_cv_func_connect+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 cat >conftest.$ac_ext <<_ACEOF
9224 #line $LINENO "configure"
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230 /* System header to define __stub macros and hopefully few prototypes,
9231 which can conflict with char connect (); below.
9232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9233 <limits.h> exists even on freestanding compilers. */
9235 # include <limits.h>
9237 # include <assert.h>
9239 /* Override any gcc2 internal prototype to avoid an error. */
9244 /* We use char because int might match the return type of a gcc2
9245 builtin and then its argument prototype would still apply. */
9247 /* The GNU C library defines this for functions which it implements
9248 to always fail with ENOSYS. Some functions are actually named
9249 something starting with __ and the normal name is an alias. */
9250 #if defined (__stub_connect) || defined (__stub___connect)
9253 char (*f) () = connect;
9262 return f != connect;
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9269 (eval $ac_link) 2>&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } &&
9273 { ac_try='test -s conftest$ac_exeext'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9279 ac_cv_func_connect=yes
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9284 ac_cv_func_connect=no
9286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9288 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9289 echo "${ECHO_T}$ac_cv_func_connect" >&6
9291 if test $ac_cv_func_connect = no; then
9292 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9293 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9294 if test "${ac_cv_lib_socket_connect+set}" = set; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 ac_check_lib_save_LIBS=$LIBS
9298 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9299 cat >conftest.$ac_ext <<_ACEOF
9300 #line $LINENO "configure"
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9307 /* Override any gcc2 internal prototype to avoid an error. */
9311 /* We use char because int might match the return type of a gcc2
9312 builtin and then its argument prototype would still apply. */
9322 rm -f conftest.$ac_objext conftest$ac_exeext
9323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324 (eval $ac_link) 2>&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } &&
9328 { ac_try='test -s conftest$ac_exeext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 ac_cv_lib_socket_connect=yes
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9339 ac_cv_lib_socket_connect=no
9341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9342 LIBS=$ac_check_lib_save_LIBS
9344 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9345 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9346 if test $ac_cv_lib_socket_connect = yes; then
9347 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9352 # Guillermo Gomez says -lposix is necessary on A/UX.
9353 echo "$as_me:$LINENO: checking for remove" >&5
9354 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9355 if test "${ac_cv_func_remove+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365 /* System header to define __stub macros and hopefully few prototypes,
9366 which can conflict with char remove (); below.
9367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9368 <limits.h> exists even on freestanding compilers. */
9370 # include <limits.h>
9372 # include <assert.h>
9374 /* Override any gcc2 internal prototype to avoid an error. */
9379 /* We use char because int might match the return type of a gcc2
9380 builtin and then its argument prototype would still apply. */
9382 /* The GNU C library defines this for functions which it implements
9383 to always fail with ENOSYS. Some functions are actually named
9384 something starting with __ and the normal name is an alias. */
9385 #if defined (__stub_remove) || defined (__stub___remove)
9388 char (*f) () = remove;
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } &&
9408 { ac_try='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 ac_cv_func_remove=yes
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 ac_cv_func_remove=no
9421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9423 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9424 echo "${ECHO_T}$ac_cv_func_remove" >&6
9426 if test $ac_cv_func_remove = no; then
9427 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9428 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9429 if test "${ac_cv_lib_posix_remove+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 ac_check_lib_save_LIBS=$LIBS
9433 LIBS="-lposix $LIBS"
9434 cat >conftest.$ac_ext <<_ACEOF
9435 #line $LINENO "configure"
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9442 /* Override any gcc2 internal prototype to avoid an error. */
9446 /* We use char because int might match the return type of a gcc2
9447 builtin and then its argument prototype would still apply. */
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } &&
9463 { ac_try='test -s conftest$ac_exeext'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
9469 ac_cv_lib_posix_remove=yes
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9474 ac_cv_lib_posix_remove=no
9476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9477 LIBS=$ac_check_lib_save_LIBS
9479 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9480 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9481 if test $ac_cv_lib_posix_remove = yes; then
9482 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9487 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9488 echo "$as_me:$LINENO: checking for shmat" >&5
9489 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9490 if test "${ac_cv_func_shmat+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 cat >conftest.$ac_ext <<_ACEOF
9494 #line $LINENO "configure"
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h. */
9500 /* System header to define __stub macros and hopefully few prototypes,
9501 which can conflict with char shmat (); below.
9502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9503 <limits.h> exists even on freestanding compilers. */
9505 # include <limits.h>
9507 # include <assert.h>
9509 /* Override any gcc2 internal prototype to avoid an error. */
9514 /* We use char because int might match the return type of a gcc2
9515 builtin and then its argument prototype would still apply. */
9517 /* The GNU C library defines this for functions which it implements
9518 to always fail with ENOSYS. Some functions are actually named
9519 something starting with __ and the normal name is an alias. */
9520 #if defined (__stub_shmat) || defined (__stub___shmat)
9523 char (*f) () = shmat;
9537 rm -f conftest.$ac_objext conftest$ac_exeext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539 (eval $ac_link) 2>&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -s conftest$ac_exeext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_cv_func_shmat=yes
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9558 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9559 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9561 if test $ac_cv_func_shmat = no; then
9562 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9563 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9564 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 ac_check_lib_save_LIBS=$LIBS
9569 cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9577 /* Override any gcc2 internal prototype to avoid an error. */
9581 /* We use char because int might match the return type of a gcc2
9582 builtin and then its argument prototype would still apply. */
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594 (eval $ac_link) 2>&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -s conftest$ac_exeext'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 ac_cv_lib_ipc_shmat=yes
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 ac_cv_lib_ipc_shmat=no
9611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9612 LIBS=$ac_check_lib_save_LIBS
9614 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9615 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9616 if test $ac_cv_lib_ipc_shmat = yes; then
9617 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9623 # Check for libraries that X11R6 Xt/Xaw programs need.
9624 ac_save_LDFLAGS=$LDFLAGS
9625 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9626 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9627 # check for ICE first), but we must link in the order -lSM -lICE or
9628 # we get undefined symbols. So assume we have SM if we have ICE.
9629 # These have to be linked with before -lX11, unlike the other
9630 # libraries we check for below, so use a different variable.
9631 # John Interrante, Karl Berry
9632 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9633 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9634 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 ac_check_lib_save_LIBS=$LIBS
9638 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9639 cat >conftest.$ac_ext <<_ACEOF
9640 #line $LINENO "configure"
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9647 /* Override any gcc2 internal prototype to avoid an error. */
9651 /* We use char because int might match the return type of a gcc2
9652 builtin and then its argument prototype would still apply. */
9653 char IceConnectionNumber ();
9657 IceConnectionNumber ();
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664 (eval $ac_link) 2>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 ac_cv_lib_ICE_IceConnectionNumber=yes
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 ac_cv_lib_ICE_IceConnectionNumber=no
9681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9682 LIBS=$ac_check_lib_save_LIBS
9684 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9685 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9686 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9687 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9690 LDFLAGS=$ac_save_LDFLAGS
9701 X_TOOLKIT_LIBS="-lXt"
9702 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9704 our_saved_LDFLAGS="$LDFLAGS"
9705 LDFLAGS="$X_LIBS $LDFLAGS"
9706 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9707 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9708 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 ac_check_lib_save_LIBS=$LIBS
9712 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9713 cat >conftest.$ac_ext <<_ACEOF
9714 #line $LINENO "configure"
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9721 /* Override any gcc2 internal prototype to avoid an error. */
9725 /* We use char because int might match the return type of a gcc2
9726 builtin and then its argument prototype would still apply. */
9727 char XtToolkitThreadInitialize ();
9731 XtToolkitThreadInitialize ();
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738 (eval $ac_link) 2>&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -s conftest$ac_exeext'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; }; then
9748 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9750 echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9753 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9756 LIBS=$ac_check_lib_save_LIBS
9758 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9759 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9760 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9762 cat >>confdefs.h <<\_ACEOF
9763 #define X_THREAD_SUPPORT 1
9768 LDFLAGS="$our_saved_LDFLAGS"
9772 if test "x$no_x" = "xyes"; then
9781 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9784 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9786 echo "$as_me:$LINENO: checking for X" >&5
9787 echo $ECHO_N "checking for X... $ECHO_C" >&6
9788 if test "$no_x" != "yes" ; then
9790 cat >>confdefs.h <<\_ACEOF
9794 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
9795 my_includes="$my_includes -I/usr/X11R6/include"
9796 ctlib_graphics="$ctlibs_base -lctgraphics"
9797 echo "$as_me:$LINENO: result: yes" >&5
9798 echo "${ECHO_T}yes" >&6
9799 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9800 if test "$libgl" = "true" ; then
9801 # Removed "-lglut" for Mac OS X compilation
9802 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9803 if test "$wxwin" = "true" ; then
9805 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9806 elif "$wx_mac" ; then
9807 ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9811 if test "$wxwin" = "true" ; then
9813 cat >>confdefs.h <<\_ACEOF
9819 echo "$as_me:$LINENO: result: no" >&5
9820 echo "${ECHO_T}no" >&6
9825 if test "$wxwin" = "true"; then
9834 if test "$png" = "true" ; then
9835 ctlibs_tools="$ctlibs_tools -lpng"
9837 if test "$zlib" = "true" ; then
9838 ctlibs_tools="$ctlibs_tools -lz"
9840 if test "$fftw" = "true" ; then
9841 ctlibs_tools="$ctlibs_tools -lfftw3"
9843 if test "$ctn" = "true"; then
9844 ctlibs_tools="$ctlibs_tools -lctn"
9847 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9848 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9849 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 ac_check_lib_save_LIBS=$LIBS
9853 LIBS="-ldmallocxx $LIBS"
9854 cat >conftest.$ac_ext <<_ACEOF
9855 #line $LINENO "configure"
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9871 rm -f conftest.$ac_objext conftest$ac_exeext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9873 (eval $ac_link) 2>&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -s conftest$ac_exeext'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_cv_lib_dmallocxx_main=yes
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9888 ac_cv_lib_dmallocxx_main=no
9890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9891 LIBS=$ac_check_lib_save_LIBS
9893 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9894 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9895 if test $ac_cv_lib_dmallocxx_main = yes; then
9901 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9902 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9903 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9904 if test "${enable_dmalloc+set}" = set; then
9905 enableval="$enable_dmalloc"
9906 case "${enableval}" in
9907 yes) usedmalloc=true
9908 echo "$as_me:$LINENO: result: yes" >&5
9909 echo "${ECHO_T}yes" >&6
9911 no) usedmalloc=false
9912 echo "$as_me:$LINENO: result: no" >&5
9913 echo "${ECHO_T}no" >&6
9915 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9916 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9920 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9921 echo "${ECHO_T}no" >&6
9924 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9925 ctlibs_tools="$ctlibs_tools -ldmallocxx"
9927 cat >>confdefs.h <<\_ACEOF
9928 #define HAVE_DMALLOC 1
9931 echo "$as_me:$LINENO: result: Using dmalloc" >&5
9932 echo "${ECHO_T}Using dmalloc" >&6
9935 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9936 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9937 if test "${ac_cv_lib_efence_main+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 ac_check_lib_save_LIBS=$LIBS
9941 LIBS="-lefence $LIBS"
9942 cat >conftest.$ac_ext <<_ACEOF
9943 #line $LINENO "configure"
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9961 (eval $ac_link) 2>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 ac_cv_lib_efence_main=yes
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9976 ac_cv_lib_efence_main=no
9978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9979 LIBS=$ac_check_lib_save_LIBS
9981 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9982 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9983 if test $ac_cv_lib_efence_main = yes; then
9989 echo "$as_me:$LINENO: checking for enable-efence" >&5
9990 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9991 # Check whether --enable-efence or --disable-efence was given.
9992 if test "${enable_efence+set}" = set; then
9993 enableval="$enable_efence"
9994 case "${enableval}" in
9996 echo "$as_me:$LINENO: result: yes" >&5
9997 echo "${ECHO_T}yes" >&6
10000 echo "$as_me:$LINENO: result: no" >&5
10001 echo "${ECHO_T}no" >&6
10003 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
10004 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
10008 useefence=false; echo "$as_me:$LINENO: result: no" >&5
10009 echo "${ECHO_T}no" >&6
10012 if test "$efence" = "true" -a "$useefence" = "true" ; then
10013 ctlibs_tools="$ctlibs_tools -lefence"
10015 cat >>confdefs.h <<\_ACEOF
10016 #define HAVE_EFENCE 1
10019 echo "$as_me:$LINENO: result: Using efence" >&5
10020 echo "${ECHO_T}Using efence" >&6
10023 if test "$wxwin" = "true" ; then
10024 if "$wx_gtk" = "true" || "$wx_mac" == "true" ; then
10025 wxcflags=`$wxconfig --cflags`
10026 wxlibs=`$wxconfig --libs`
10028 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
10029 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
10031 CFLAGS="$CFLAGS -I../include $wxcflags"
10032 ctlib_graphics="$ctlib_graphics $wxlibs"
10038 if test "$wxwin"="true"; then
10039 HAVE_WXWINDOWS_TRUE=
10040 HAVE_WXWINDOWS_FALSE='#'
10042 HAVE_WXWINDOWS_TRUE='#'
10043 HAVE_WXWINDOWS_FALSE=
10047 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
10048 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
10051 if test -n "$lamdir" ; then
10052 lamprograms="ctsimtext-lam"
10060 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"
10063 cat >confcache <<\_ACEOF
10064 # This file is a shell script that caches the results of configure
10065 # tests run on this system so they can be shared between configure
10066 # scripts and configure runs, see configure's option --config-cache.
10067 # It is not useful on other systems. If it contains results you don't
10068 # want to keep, you may remove or edit it.
10070 # config.status only pays attention to the cache file if you give it
10071 # the --recheck option to rerun configure.
10073 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10074 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10075 # following values.
10079 # The following way of writing the cache mishandles newlines in values,
10080 # but we know of no workaround that is simple, portable, and efficient.
10081 # So, don't put newlines in cache variables' values.
10082 # Ultrix sh set writes to stderr and can't be redirected directly,
10083 # and sets the high bit in the cache file unless we assign to the vars.
10086 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10088 # `set' does not quote correctly, so add quotes (double-quote
10089 # substitution turns \\\\ into \\, and sed turns \\ into \).
10092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10095 # `set' quotes correctly as required by POSIX, so do not add quotes.
10097 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10104 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10106 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10108 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10109 if test -w $cache_file; then
10110 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10111 cat confcache >$cache_file
10113 echo "not updating unwritable cache $cache_file"
10118 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10119 # Let make expand exec_prefix.
10120 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10122 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10123 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10124 # trailing colons and then remove the whole line if VPATH becomes empty
10125 # (actually we leave an empty line to preserve line numbers).
10126 if test "x$srcdir" = x.; then
10127 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10128 s/:*\$(srcdir):*/:/;
10129 s/:*\${srcdir}:*/:/;
10131 s/^\([^=]*=[ ]*\):*/\1/;
10137 DEFS=-DHAVE_CONFIG_H
10141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10142 # 1. Remove the extension, and $U if already installed.
10143 ac_i=`echo "$ac_i" |
10144 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10146 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10147 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10149 LIBOBJS=$ac_libobjs
10151 LTLIBOBJS=$ac_ltlibobjs
10154 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10155 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10156 Usually this means the macro was only invoked conditionally." >&5
10157 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10158 Usually this means the macro was only invoked conditionally." >&2;}
10159 { (exit 1); exit 1; }; }
10161 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10162 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10163 Usually this means the macro was only invoked conditionally." >&5
10164 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10165 Usually this means the macro was only invoked conditionally." >&2;}
10166 { (exit 1); exit 1; }; }
10168 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10169 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10170 Usually this means the macro was only invoked conditionally." >&5
10171 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10172 Usually this means the macro was only invoked conditionally." >&2;}
10173 { (exit 1); exit 1; }; }
10175 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10176 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10177 Usually this means the macro was only invoked conditionally." >&5
10178 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10179 Usually this means the macro was only invoked conditionally." >&2;}
10180 { (exit 1); exit 1; }; }
10182 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
10183 { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10184 Usually this means the macro was only invoked conditionally." >&5
10185 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10186 Usually this means the macro was only invoked conditionally." >&2;}
10187 { (exit 1); exit 1; }; }
10189 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
10190 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
10191 Usually this means the macro was only invoked conditionally." >&5
10192 echo "$as_me: error: conditional \"DEBUG\" was never defined.
10193 Usually this means the macro was only invoked conditionally." >&2;}
10194 { (exit 1); exit 1; }; }
10196 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
10197 { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
10198 Usually this means the macro was only invoked conditionally." >&5
10199 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
10200 Usually this means the macro was only invoked conditionally." >&2;}
10201 { (exit 1); exit 1; }; }
10203 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
10204 { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
10205 Usually this means the macro was only invoked conditionally." >&5
10206 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
10207 Usually this means the macro was only invoked conditionally." >&2;}
10208 { (exit 1); exit 1; }; }
10210 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
10211 { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
10212 Usually this means the macro was only invoked conditionally." >&5
10213 echo "$as_me: error: conditional \"NO_X\" was never defined.
10214 Usually this means the macro was only invoked conditionally." >&2;}
10215 { (exit 1); exit 1; }; }
10217 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
10218 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
10219 Usually this means the macro was only invoked conditionally." >&5
10220 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
10221 Usually this means the macro was only invoked conditionally." >&2;}
10222 { (exit 1); exit 1; }; }
10224 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
10225 { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10226 Usually this means the macro was only invoked conditionally." >&5
10227 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10228 Usually this means the macro was only invoked conditionally." >&2;}
10229 { (exit 1); exit 1; }; }
10232 : ${CONFIG_STATUS=./config.status}
10233 ac_clean_files_save=$ac_clean_files
10234 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10235 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10236 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10237 cat >$CONFIG_STATUS <<_ACEOF
10239 # Generated by $as_me.
10240 # Run this file to recreate the current configuration.
10241 # Compiler output produced by configure, useful for debugging
10242 # configure, is in config.log if it exists.
10245 ac_cs_recheck=false
10247 SHELL=\${CONFIG_SHELL-$SHELL}
10250 cat >>$CONFIG_STATUS <<\_ACEOF
10251 ## --------------------- ##
10252 ## M4sh Initialization. ##
10253 ## --------------------- ##
10255 # Be Bourne compatible
10256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10259 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10260 # is contrary to our usage. Disable this feature.
10261 alias -g '${1+"$@"}'='"$@"'
10262 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10266 # Support unset when possible.
10267 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10274 # Work around bugs in pre-3.0 UWIN ksh.
10275 $as_unset ENV MAIL MAILPATH
10282 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10283 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10284 LC_TELEPHONE LC_TIME
10286 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10287 eval $as_var=C; export $as_var
10293 # Required to use basename.
10294 if expr a : '\(a\)' >/dev/null 2>&1; then
10300 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10301 as_basename=basename
10307 # Name of the executable.
10308 as_me=`$as_basename "$0" ||
10309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10310 X"$0" : 'X\(//\)$' \| \
10311 X"$0" : 'X\(/\)$' \| \
10312 . : '\(.\)' 2>/dev/null ||
10314 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10315 /^X\/\(\/\/\)$/{ s//\1/; q; }
10316 /^X\/\(\/\).*/{ s//\1/; q; }
10320 # PATH needs CR, and LINENO needs CR and PATH.
10321 # Avoid depending upon Character Ranges.
10322 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10323 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10324 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10325 as_cr_digits='0123456789'
10326 as_cr_alnum=$as_cr_Letters$as_cr_digits
10328 # The user is always right.
10329 if test "${PATH_SEPARATOR+set}" != set; then
10330 echo "#! /bin/sh" >conf$$.sh
10331 echo "exit 0" >>conf$$.sh
10333 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10342 as_lineno_1=$LINENO
10343 as_lineno_2=$LINENO
10344 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10345 test "x$as_lineno_1" != "x$as_lineno_2" &&
10346 test "x$as_lineno_3" = "x$as_lineno_2" || {
10347 # Find who we are. Look in the path if we contain no path at all
10350 *[\\/]* ) as_myself=$0 ;;
10351 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10355 test -z "$as_dir" && as_dir=.
10356 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10361 # We did not find ourselves, most probably we were run as `sh COMMAND'
10362 # in which case we are not to be found in the path.
10363 if test "x$as_myself" = x; then
10366 if test ! -f "$as_myself"; then
10367 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10368 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10369 { (exit 1); exit 1; }; }
10371 case $CONFIG_SHELL in
10373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10377 test -z "$as_dir" && as_dir=.
10378 for as_base in sh bash ksh sh5; do
10381 if ("$as_dir/$as_base" -c '
10382 as_lineno_1=$LINENO
10383 as_lineno_2=$LINENO
10384 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10385 test "x$as_lineno_1" != "x$as_lineno_2" &&
10386 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10387 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10388 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10389 CONFIG_SHELL=$as_dir/$as_base
10390 export CONFIG_SHELL
10391 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10399 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10400 # uniformly replaced by the line number. The first 'sed' inserts a
10401 # line-number line before each line; the second 'sed' does the real
10402 # work. The second script uses 'N' to pair each line-number line
10403 # with the numbered line, and appends trailing '-' during
10404 # substitution so that $LINENO is not a special case at line end.
10405 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10406 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10407 sed '=' <$as_myself |
10412 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10415 s,^['$as_cr_digits']*\n,,
10416 ' >$as_me.lineno &&
10417 chmod +x $as_me.lineno ||
10418 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10419 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10420 { (exit 1); exit 1; }; }
10422 # Don't try to exec as it changes $[0], causing all sort of problems
10423 # (the dirname of $[0] is not the place where we might find the
10424 # original and so on. Autoconf is especially sensible to this).
10426 # Exit status is that of the last command.
10431 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10432 *c*,-n*) ECHO_N= ECHO_C='
10434 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10435 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10438 if expr a : '\(a\)' >/dev/null 2>&1; then
10444 rm -f conf$$ conf$$.exe conf$$.file
10446 if ln -s conf$$.file conf$$ 2>/dev/null; then
10447 # We could just check for DJGPP; but this test a) works b) is more generic
10448 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10449 if test -f conf$$.exe; then
10450 # Don't use ln at all; we don't have any links
10455 elif ln conf$$.file conf$$ 2>/dev/null; then
10460 rm -f conf$$ conf$$.exe conf$$.file
10462 if mkdir -p . 2>/dev/null; then
10468 as_executable_p="test -f"
10470 # Sed expression to map a string onto a valid CPP name.
10471 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10473 # Sed expression to map a string onto a valid variable name.
10474 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10478 # We need space, tab and new line, in precisely that order.
10488 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10489 # report actual input values of CONFIG_FILES etc. instead of their
10490 # values after options handling. Logging --version etc. is OK.
10494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10495 ## Running $as_me. ##
10500 This file was extended by $as_me, which was
10501 generated by GNU Autoconf 2.57. Invocation command line was
10503 CONFIG_FILES = $CONFIG_FILES
10504 CONFIG_HEADERS = $CONFIG_HEADERS
10505 CONFIG_LINKS = $CONFIG_LINKS
10506 CONFIG_COMMANDS = $CONFIG_COMMANDS
10510 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10514 # Files that config.status was made for.
10515 if test -n "$ac_config_files"; then
10516 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10519 if test -n "$ac_config_headers"; then
10520 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10523 if test -n "$ac_config_links"; then
10524 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10527 if test -n "$ac_config_commands"; then
10528 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10531 cat >>$CONFIG_STATUS <<\_ACEOF
10534 \`$as_me' instantiates files from templates according to the
10535 current configuration.
10537 Usage: $0 [OPTIONS] [FILE]...
10539 -h, --help print this help, then exit
10540 -V, --version print version number, then exit
10541 -q, --quiet do not print progress messages
10542 -d, --debug don't remove temporary files
10543 --recheck update $as_me by reconfiguring in the same conditions
10544 --file=FILE[:TEMPLATE]
10545 instantiate the configuration file FILE
10546 --header=FILE[:TEMPLATE]
10547 instantiate the configuration header FILE
10549 Configuration files:
10552 Configuration headers:
10555 Configuration commands:
10558 Report bugs to <bug-autoconf@gnu.org>."
10561 cat >>$CONFIG_STATUS <<_ACEOF
10564 configured by $0, generated by GNU Autoconf 2.57,
10565 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10567 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10568 Free Software Foundation, Inc.
10569 This config.status script is free software; the Free Software Foundation
10570 gives unlimited permission to copy, distribute and modify it."
10575 cat >>$CONFIG_STATUS <<\_ACEOF
10576 # If no file are specified by the user, then we need to provide default
10577 # value. By we need to know if files were specified by the user.
10583 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10584 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10592 *) # This is not an option, so the user has probably given explicit
10595 ac_need_defaults=false;;
10599 # Handling of the options.
10601 cat >>$CONFIG_STATUS <<\_ACEOF
10602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10604 --version | --vers* | -V )
10605 echo "$ac_cs_version"; exit 0 ;;
10607 # Conflict between --help and --header
10608 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10609 Try \`$0 --help' for more information." >&5
10610 echo "$as_me: error: ambiguous option: $1
10611 Try \`$0 --help' for more information." >&2;}
10612 { (exit 1); exit 1; }; };;
10613 --help | --hel | -h )
10614 echo "$ac_cs_usage"; exit 0 ;;
10615 --debug | --d* | -d )
10617 --file | --fil | --fi | --f )
10619 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10620 ac_need_defaults=false;;
10621 --header | --heade | --head | --hea )
10623 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10624 ac_need_defaults=false;;
10625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10626 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10629 # This is an error.
10630 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10631 Try \`$0 --help' for more information." >&5
10632 echo "$as_me: error: unrecognized option: $1
10633 Try \`$0 --help' for more information." >&2;}
10634 { (exit 1); exit 1; }; } ;;
10636 *) ac_config_targets="$ac_config_targets $1" ;;
10642 ac_configure_extra_args=
10644 if $ac_cs_silent; then
10646 ac_configure_extra_args="$ac_configure_extra_args --silent"
10650 cat >>$CONFIG_STATUS <<_ACEOF
10651 if \$ac_cs_recheck; then
10652 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10653 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10658 cat >>$CONFIG_STATUS <<_ACEOF
10660 # INIT-COMMANDS section.
10663 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10669 cat >>$CONFIG_STATUS <<\_ACEOF
10670 for ac_config_target in $ac_config_targets
10672 case "$ac_config_target" in
10673 # Handling of arguments.
10674 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10675 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10676 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10677 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10678 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10679 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10680 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10681 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10682 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10683 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10684 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10685 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10686 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10687 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10688 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10689 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10690 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10691 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10692 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10693 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10694 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10695 { (exit 1); exit 1; }; };;
10699 # If the user did not use the arguments to specify the items to instantiate,
10700 # then the envvar interface is used. Set only those that are not.
10701 # We use the long form for the default assignment because of an extremely
10702 # bizarre bug on SunOS 4.1.3.
10703 if $ac_need_defaults; then
10704 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10705 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10706 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10709 # Have a temporary directory for convenience. Make it in the build tree
10710 # simply because there is no reason to put it here, and in addition,
10711 # creating and moving files from /tmp can sometimes cause problems.
10712 # Create a temporary directory, and hook for its removal unless debugging.
10715 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10716 trap '{ (exit 1); exit 1; }' 1 2 13 15
10719 # Create a (secure) tmp directory for tmp files.
10722 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10723 test -n "$tmp" && test -d "$tmp"
10726 tmp=./confstat$$-$RANDOM
10727 (umask 077 && mkdir $tmp)
10730 echo "$me: cannot create a temporary directory in ." >&2
10731 { (exit 1); exit 1; }
10736 cat >>$CONFIG_STATUS <<_ACEOF
10739 # CONFIG_FILES section.
10742 # No need to generate the scripts if there are no CONFIG_FILES.
10743 # This happens for instance when ./config.status config.h
10744 if test -n "\$CONFIG_FILES"; then
10745 # Protect against being on the right side of a sed subst in config.status.
10746 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10747 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10748 s,@SHELL@,$SHELL,;t t
10749 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10750 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10751 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10752 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10753 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10754 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10755 s,@exec_prefix@,$exec_prefix,;t t
10756 s,@prefix@,$prefix,;t t
10757 s,@program_transform_name@,$program_transform_name,;t t
10758 s,@bindir@,$bindir,;t t
10759 s,@sbindir@,$sbindir,;t t
10760 s,@libexecdir@,$libexecdir,;t t
10761 s,@datadir@,$datadir,;t t
10762 s,@sysconfdir@,$sysconfdir,;t t
10763 s,@sharedstatedir@,$sharedstatedir,;t t
10764 s,@localstatedir@,$localstatedir,;t t
10765 s,@libdir@,$libdir,;t t
10766 s,@includedir@,$includedir,;t t
10767 s,@oldincludedir@,$oldincludedir,;t t
10768 s,@infodir@,$infodir,;t t
10769 s,@mandir@,$mandir,;t t
10770 s,@build_alias@,$build_alias,;t t
10771 s,@host_alias@,$host_alias,;t t
10772 s,@target_alias@,$target_alias,;t t
10773 s,@DEFS@,$DEFS,;t t
10774 s,@ECHO_C@,$ECHO_C,;t t
10775 s,@ECHO_N@,$ECHO_N,;t t
10776 s,@ECHO_T@,$ECHO_T,;t t
10777 s,@LIBS@,$LIBS,;t t
10778 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10779 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10780 s,@MAINT@,$MAINT,;t t
10781 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10782 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10783 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10784 s,@CYGPATH_W@,$CYGPATH_W,;t t
10785 s,@PACKAGE@,$PACKAGE,;t t
10786 s,@VERSION@,$VERSION,;t t
10787 s,@ACLOCAL@,$ACLOCAL,;t t
10788 s,@AUTOCONF@,$AUTOCONF,;t t
10789 s,@AUTOMAKE@,$AUTOMAKE,;t t
10790 s,@AUTOHEADER@,$AUTOHEADER,;t t
10791 s,@MAKEINFO@,$MAKEINFO,;t t
10792 s,@AMTAR@,$AMTAR,;t t
10793 s,@install_sh@,$install_sh,;t t
10794 s,@STRIP@,$STRIP,;t t
10795 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10796 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10798 s,@SET_MAKE@,$SET_MAKE,;t t
10799 s,@am__leading_dot@,$am__leading_dot,;t t
10800 s,@RANLIB@,$RANLIB,;t t
10801 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10803 s,@CFLAGS@,$CFLAGS,;t t
10804 s,@LDFLAGS@,$LDFLAGS,;t t
10805 s,@CPPFLAGS@,$CPPFLAGS,;t t
10806 s,@ac_ct_CC@,$ac_ct_CC,;t t
10807 s,@EXEEXT@,$EXEEXT,;t t
10808 s,@OBJEXT@,$OBJEXT,;t t
10809 s,@DEPDIR@,$DEPDIR,;t t
10810 s,@am__include@,$am__include,;t t
10811 s,@am__quote@,$am__quote,;t t
10812 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10813 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10814 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10815 s,@CCDEPMODE@,$CCDEPMODE,;t t
10816 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10817 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10819 s,@CXXFLAGS@,$CXXFLAGS,;t t
10820 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10821 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10822 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10823 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10824 s,@wxconfig@,$wxconfig,;t t
10825 s,@build@,$build,;t t
10826 s,@build_cpu@,$build_cpu,;t t
10827 s,@build_vendor@,$build_vendor,;t t
10828 s,@build_os@,$build_os,;t t
10829 s,@host@,$host,;t t
10830 s,@host_cpu@,$host_cpu,;t t
10831 s,@host_vendor@,$host_vendor,;t t
10832 s,@host_os@,$host_os,;t t
10834 s,@EGREP@,$EGREP,;t t
10835 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10836 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10837 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10838 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10839 s,@lamdir@,$lamdir,;t t
10840 s,@mpienable@,$mpienable,;t t
10841 s,@cgibindir@,$cgibindir,;t t
10842 s,@cgibinurl@,$cgibinurl,;t t
10843 s,@webdatadir@,$webdatadir,;t t
10844 s,@webdataurl@,$webdataurl,;t t
10845 s,@htmldir@,$htmldir,;t t
10846 s,@cgiprograms@,$cgiprograms,;t t
10847 s,@htmldata@,$htmldata,;t t
10848 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10849 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10850 s,@webenabled@,$webenabled,;t t
10851 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10852 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10853 s,@X_CFLAGS@,$X_CFLAGS,;t t
10854 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10855 s,@X_LIBS@,$X_LIBS,;t t
10856 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10857 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10858 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10859 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10860 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10861 s,@my_includes@,$my_includes,;t t
10862 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10863 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10864 s,@wxcflags@,$wxcflags,;t t
10865 s,@wxlibs@,$wxlibs,;t t
10866 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10867 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10868 s,@ctlibs@,$ctlibs,;t t
10869 s,@lamprograms@,$lamprograms,;t t
10870 s,@lamdefs@,$lamdefs,;t t
10871 s,@LIBOBJS@,$LIBOBJS,;t t
10872 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10877 cat >>$CONFIG_STATUS <<\_ACEOF
10878 # Split the substitutions into bite-sized pieces for seds with
10879 # small command number limits, like on Digital OSF/1 and HP-UX.
10880 ac_max_sed_lines=48
10881 ac_sed_frag=1 # Number of current file.
10882 ac_beg=1 # First line for current file.
10883 ac_end=$ac_max_sed_lines # Line after last line for current file.
10886 while $ac_more_lines; do
10887 if test $ac_beg -gt 1; then
10888 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10890 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10892 if test ! -s $tmp/subs.frag; then
10893 ac_more_lines=false
10895 # The purpose of the label and of the branching condition is to
10896 # speed up the sed processing (if there are no `@' at all, there
10897 # is no need to browse any of the substitutions).
10898 # These are the two extra sed commands mentioned above.
10900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10901 if test -z "$ac_sed_cmds"; then
10902 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10904 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10906 ac_sed_frag=`expr $ac_sed_frag + 1`
10908 ac_end=`expr $ac_end + $ac_max_sed_lines`
10911 if test -z "$ac_sed_cmds"; then
10914 fi # test -n "$CONFIG_FILES"
10917 cat >>$CONFIG_STATUS <<\_ACEOF
10918 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10919 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10921 - | *:- | *:-:* ) # input from stdin
10923 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10925 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10926 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10927 * ) ac_file_in=$ac_file.in ;;
10930 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10931 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10933 X"$ac_file" : 'X\(//\)[^/]' \| \
10934 X"$ac_file" : 'X\(//\)$' \| \
10935 X"$ac_file" : 'X\(/\)' \| \
10936 . : '\(.\)' 2>/dev/null ||
10938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10940 /^X\(\/\/\)$/{ s//\1/; q; }
10941 /^X\(\/\).*/{ s//\1/; q; }
10943 { if $as_mkdir_p; then
10948 while test ! -d "$as_dir"; do
10949 as_dirs="$as_dir $as_dirs"
10950 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10952 X"$as_dir" : 'X\(//\)[^/]' \| \
10953 X"$as_dir" : 'X\(//\)$' \| \
10954 X"$as_dir" : 'X\(/\)' \| \
10955 . : '\(.\)' 2>/dev/null ||
10957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10959 /^X\(\/\/\)$/{ s//\1/; q; }
10960 /^X\(\/\).*/{ s//\1/; q; }
10963 test ! -n "$as_dirs" || mkdir $as_dirs
10964 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10965 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10966 { (exit 1); exit 1; }; }; }
10970 if test "$ac_dir" != .; then
10971 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10972 # A "../" for each directory in $ac_dir_suffix.
10973 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10975 ac_dir_suffix= ac_top_builddir=
10979 .) # No --srcdir option. We are building in place.
10981 if test -z "$ac_top_builddir"; then
10984 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10986 [\\/]* | ?:[\\/]* ) # Absolute path.
10987 ac_srcdir=$srcdir$ac_dir_suffix;
10988 ac_top_srcdir=$srcdir ;;
10989 *) # Relative path.
10990 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10991 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10993 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10995 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10996 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10997 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10998 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11002 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11003 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11006 if test x"$ac_file" != x-; then
11007 { echo "$as_me:$LINENO: creating $ac_file" >&5
11008 echo "$as_me: creating $ac_file" >&6;}
11011 # Let's still pretend it is `configure' which instantiates (i.e., don't
11012 # use $as_me), people would be surprised to read:
11013 # /* config.h. Generated by config.status. */
11014 if test x"$ac_file" = x-; then
11017 configure_input="$ac_file. "
11019 configure_input=$configure_input"Generated from `echo $ac_file_in |
11020 sed 's,.*/,,'` by configure."
11022 # First look for the input files in the build tree, otherwise in the
11024 ac_file_inputs=`IFS=:
11025 for f in $ac_file_in; do
11027 -) echo $tmp/stdin ;;
11029 # Absolute (can't be DOS-style, as IFS=:)
11030 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11031 echo "$as_me: error: cannot find input file: $f" >&2;}
11032 { (exit 1); exit 1; }; }
11035 if test -f "$f"; then
11038 elif test -f "$srcdir/$f"; then
11043 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11044 echo "$as_me: error: cannot find input file: $f" >&2;}
11045 { (exit 1); exit 1; }; }
11048 done` || { (exit 1); exit 1; }
11050 cat >>$CONFIG_STATUS <<_ACEOF
11054 cat >>$CONFIG_STATUS <<\_ACEOF
11056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11057 s,@configure_input@,$configure_input,;t t
11058 s,@srcdir@,$ac_srcdir,;t t
11059 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11060 s,@top_srcdir@,$ac_top_srcdir,;t t
11061 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11062 s,@builddir@,$ac_builddir,;t t
11063 s,@abs_builddir@,$ac_abs_builddir,;t t
11064 s,@top_builddir@,$ac_top_builddir,;t t
11065 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11066 s,@INSTALL@,$ac_INSTALL,;t t
11067 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11069 if test x"$ac_file" != x-; then
11070 mv $tmp/out $ac_file
11078 cat >>$CONFIG_STATUS <<\_ACEOF
11081 # CONFIG_HEADER section.
11084 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11085 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11087 # ac_d sets the value in "#define NAME VALUE" lines.
11088 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11089 ac_dB='[ ].*$,\1#\2'
11092 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11093 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11094 ac_uB='$,\1#\2define\3'
11098 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11099 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11101 - | *:- | *:-:* ) # input from stdin
11103 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11104 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11105 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11106 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11107 * ) ac_file_in=$ac_file.in ;;
11110 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11111 echo "$as_me: creating $ac_file" >&6;}
11113 # First look for the input files in the build tree, otherwise in the
11115 ac_file_inputs=`IFS=:
11116 for f in $ac_file_in; do
11118 -) echo $tmp/stdin ;;
11120 # Absolute (can't be DOS-style, as IFS=:)
11121 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11122 echo "$as_me: error: cannot find input file: $f" >&2;}
11123 { (exit 1); exit 1; }; }
11126 if test -f "$f"; then
11129 elif test -f "$srcdir/$f"; then
11134 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11135 echo "$as_me: error: cannot find input file: $f" >&2;}
11136 { (exit 1); exit 1; }; }
11139 done` || { (exit 1); exit 1; }
11140 # Remove the trailing spaces.
11141 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11145 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11146 # `conftest.undefs', that substitutes the proper values into
11147 # config.h.in to produce config.h. The first handles `#define'
11148 # templates, and the second `#undef' templates.
11149 # And first: Protect against being on the right side of a sed subst in
11150 # config.status. Protect against being in an unquoted here document
11151 # in config.status.
11152 rm -f conftest.defines conftest.undefs
11153 # Using a here document instead of a string reduces the quoting nightmare.
11154 # Putting comments in sed scripts is not portable.
11156 # `end' is used to avoid that the second main sed command (meant for
11157 # 0-ary CPP macros) applies to n-ary macro definitions.
11158 # See the Autoconf documentation for `clear'.
11159 cat >confdef2sed.sed <<\_ACEOF
11164 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11166 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11169 # If some macros were called several times there might be several times
11170 # the same #defines, which is useless. Nevertheless, we may not want to
11171 # sort them, since we want the *last* AC-DEFINE to be honored.
11172 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11173 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11174 rm -f confdef2sed.sed
11176 # This sed command replaces #undef with comments. This is necessary, for
11177 # example, in the case of _POSIX_SOURCE, which is predefined and required
11178 # on some systems where configure will not decide to define it.
11179 cat >>conftest.undefs <<\_ACEOF
11180 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11183 # Break up conftest.defines because some shells have a limit on the size
11184 # of here documents, and old seds have small limits too (100 cmds).
11185 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11186 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11187 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11188 echo ' :' >>$CONFIG_STATUS
11189 rm -f conftest.tail
11190 while grep . conftest.defines >/dev/null
11192 # Write a limited-size here document to $tmp/defines.sed.
11193 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11194 # Speed up: don't consider the non `#define' lines.
11195 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11196 # Work around the forget-to-reset-the-flag bug.
11197 echo 't clr' >>$CONFIG_STATUS
11198 echo ': clr' >>$CONFIG_STATUS
11199 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11201 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11203 mv $tmp/out $tmp/in
11205 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11206 rm -f conftest.defines
11207 mv conftest.tail conftest.defines
11209 rm -f conftest.defines
11210 echo ' fi # grep' >>$CONFIG_STATUS
11211 echo >>$CONFIG_STATUS
11213 # Break up conftest.undefs because some shells have a limit on the size
11214 # of here documents, and old seds have small limits too (100 cmds).
11215 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11216 rm -f conftest.tail
11217 while grep . conftest.undefs >/dev/null
11219 # Write a limited-size here document to $tmp/undefs.sed.
11220 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11221 # Speed up: don't consider the non `#undef'
11222 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11223 # Work around the forget-to-reset-the-flag bug.
11224 echo 't clr' >>$CONFIG_STATUS
11225 echo ': clr' >>$CONFIG_STATUS
11226 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11228 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11230 mv $tmp/out $tmp/in
11232 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11233 rm -f conftest.undefs
11234 mv conftest.tail conftest.undefs
11236 rm -f conftest.undefs
11238 cat >>$CONFIG_STATUS <<\_ACEOF
11239 # Let's still pretend it is `configure' which instantiates (i.e., don't
11240 # use $as_me), people would be surprised to read:
11241 # /* config.h. Generated by config.status. */
11242 if test x"$ac_file" = x-; then
11243 echo "/* Generated by configure. */" >$tmp/config.h
11245 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11247 cat $tmp/in >>$tmp/config.h
11249 if test x"$ac_file" != x-; then
11250 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11251 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11252 echo "$as_me: $ac_file is unchanged" >&6;}
11254 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11255 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11256 X"$ac_file" : 'X\(//\)[^/]' \| \
11257 X"$ac_file" : 'X\(//\)$' \| \
11258 X"$ac_file" : 'X\(/\)' \| \
11259 . : '\(.\)' 2>/dev/null ||
11261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11262 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11263 /^X\(\/\/\)$/{ s//\1/; q; }
11264 /^X\(\/\).*/{ s//\1/; q; }
11266 { if $as_mkdir_p; then
11271 while test ! -d "$as_dir"; do
11272 as_dirs="$as_dir $as_dirs"
11273 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11275 X"$as_dir" : 'X\(//\)[^/]' \| \
11276 X"$as_dir" : 'X\(//\)$' \| \
11277 X"$as_dir" : 'X\(/\)' \| \
11278 . : '\(.\)' 2>/dev/null ||
11280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11281 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11282 /^X\(\/\/\)$/{ s//\1/; q; }
11283 /^X\(\/\).*/{ s//\1/; q; }
11286 test ! -n "$as_dirs" || mkdir $as_dirs
11287 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11288 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11289 { (exit 1); exit 1; }; }; }
11292 mv $tmp/config.h $ac_file
11296 rm -f $tmp/config.h
11298 # Compute $ac_file's index in $config_headers.
11300 for _am_header in $config_headers :; do
11301 case $_am_header in
11302 $ac_file | $ac_file:* )
11305 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11308 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11309 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11310 X$ac_file : 'X\(//\)[^/]' \| \
11311 X$ac_file : 'X\(//\)$' \| \
11312 X$ac_file : 'X\(/\)' \| \
11313 . : '\(.\)' 2>/dev/null ||
11315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11317 /^X\(\/\/\)$/{ s//\1/; q; }
11318 /^X\(\/\).*/{ s//\1/; q; }
11319 s/.*/./; q'`/stamp-h$_am_stamp_count
11322 cat >>$CONFIG_STATUS <<\_ACEOF
11325 # CONFIG_COMMANDS section.
11327 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11328 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11329 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11330 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11331 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11332 X"$ac_dest" : 'X\(//\)[^/]' \| \
11333 X"$ac_dest" : 'X\(//\)$' \| \
11334 X"$ac_dest" : 'X\(/\)' \| \
11335 . : '\(.\)' 2>/dev/null ||
11337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11339 /^X\(\/\/\)$/{ s//\1/; q; }
11340 /^X\(\/\).*/{ s//\1/; q; }
11344 if test "$ac_dir" != .; then
11345 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11346 # A "../" for each directory in $ac_dir_suffix.
11347 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11349 ac_dir_suffix= ac_top_builddir=
11353 .) # No --srcdir option. We are building in place.
11355 if test -z "$ac_top_builddir"; then
11358 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11360 [\\/]* | ?:[\\/]* ) # Absolute path.
11361 ac_srcdir=$srcdir$ac_dir_suffix;
11362 ac_top_srcdir=$srcdir ;;
11363 *) # Relative path.
11364 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11365 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11367 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11369 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11370 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11371 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11372 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11375 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11376 echo "$as_me: executing $ac_dest commands" >&6;}
11378 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11379 # Strip MF so we end up with the name of the file.
11380 mf=`echo "$mf" | sed -e 's/:.*$//'`
11381 # Check whether this is an Automake generated Makefile or not.
11382 # We used to match only the files named `Makefile.in', but
11383 # some people rename them; so instead we look at the file content.
11384 # Grep'ing the first line is not enough: some people post-process
11385 # each Makefile.in and add a new line on top of each file to say so.
11386 # So let's grep whole file.
11387 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11388 dirpart=`(dirname "$mf") 2>/dev/null ||
11389 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11390 X"$mf" : 'X\(//\)[^/]' \| \
11391 X"$mf" : 'X\(//\)$' \| \
11392 X"$mf" : 'X\(/\)' \| \
11393 . : '\(.\)' 2>/dev/null ||
11395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11397 /^X\(\/\/\)$/{ s//\1/; q; }
11398 /^X\(\/\).*/{ s//\1/; q; }
11403 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11404 # Extract the definition of DEP_FILES from the Makefile without
11406 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11407 test -z "$DEPDIR" && continue
11408 # When using ansi2knr, U may be empty or an underscore; expand it
11409 U=`sed -n -e '/^U = / s///p' < "$mf"`
11410 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11411 # We invoke sed twice because it is the simplest approach to
11412 # changing $(DEPDIR) to its actual value in the expansion.
11413 for file in `sed -n -e '
11414 /^DEP_FILES = .*\\\\$/ {
11423 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11424 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11425 # Make sure the directory exists.
11426 test -f "$dirpart/$file" && continue
11427 fdir=`(dirname "$file") 2>/dev/null ||
11428 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11429 X"$file" : 'X\(//\)[^/]' \| \
11430 X"$file" : 'X\(//\)$' \| \
11431 X"$file" : 'X\(/\)' \| \
11432 . : '\(.\)' 2>/dev/null ||
11434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11436 /^X\(\/\/\)$/{ s//\1/; q; }
11437 /^X\(\/\).*/{ s//\1/; q; }
11439 { if $as_mkdir_p; then
11440 mkdir -p $dirpart/$fdir
11442 as_dir=$dirpart/$fdir
11444 while test ! -d "$as_dir"; do
11445 as_dirs="$as_dir $as_dirs"
11446 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11448 X"$as_dir" : 'X\(//\)[^/]' \| \
11449 X"$as_dir" : 'X\(//\)$' \| \
11450 X"$as_dir" : 'X\(/\)' \| \
11451 . : '\(.\)' 2>/dev/null ||
11453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11454 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11455 /^X\(\/\/\)$/{ s//\1/; q; }
11456 /^X\(\/\).*/{ s//\1/; q; }
11459 test ! -n "$as_dirs" || mkdir $as_dirs
11460 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11461 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11462 { (exit 1); exit 1; }; }; }
11464 # echo "creating $dirpart/$file"
11465 echo '# dummy' > "$dirpart/$file"
11473 cat >>$CONFIG_STATUS <<\_ACEOF
11475 { (exit 0); exit 0; }
11477 chmod +x $CONFIG_STATUS
11478 ac_clean_files=$ac_clean_files_save
11481 # configure is writing to config.log, and then calls config.status.
11482 # config.status does its own redirection, appending to config.log.
11483 # Unfortunately, on DOS this fails, as config.log is still kept open
11484 # by configure, so config.status won't be able to write to it; its
11485 # output is simply discarded. So we exec the FD to /dev/null,
11486 # effectively closing config.log, so it can be properly (re)opened and
11487 # appended to by config.status. When coming back to configure, we
11488 # need to make the FD available again.
11489 if test "$no_create" != yes; then
11491 ac_config_status_args=
11492 test "$silent" = yes &&
11493 ac_config_status_args="$ac_config_status_args --quiet"
11495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11498 # would make configure fail if this is the last instruction.
11499 $ac_cs_success || { (exit 1); exit 1; }