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
7462 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
7464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7465 echo "$as_me:$LINENO: checking for $ac_func" >&5
7466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7467 if eval "test \"\${$as_ac_var+set}\" = set"; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 /* System header to define __stub macros and hopefully few prototypes,
7478 which can conflict with char $ac_func (); below.
7479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7480 <limits.h> exists even on freestanding compilers. */
7482 # include <limits.h>
7484 # include <assert.h>
7486 /* Override any gcc2 internal prototype to avoid an error. */
7491 /* We use char because int might match the return type of a gcc2
7492 builtin and then its argument prototype would still apply. */
7494 /* The GNU C library defines this for functions which it implements
7495 to always fail with ENOSYS. Some functions are actually named
7496 something starting with __ and the normal name is an alias. */
7497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7500 char (*f) () = $ac_func;
7509 return f != $ac_func;
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } &&
7520 { ac_try='test -s conftest$ac_exeext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7526 eval "$as_ac_var=yes"
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7531 eval "$as_ac_var=no"
7533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7537 if test `eval echo '${'$as_ac_var'}'` = yes; then
7538 cat >>confdefs.h <<_ACEOF
7539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7545 echo "$as_me:$LINENO: checking for basename" >&5
7546 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7547 if test "${ac_cv_func_basename+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 cat >conftest.$ac_ext <<_ACEOF
7551 #line $LINENO "configure"
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7557 /* System header to define __stub macros and hopefully few prototypes,
7558 which can conflict with char basename (); below.
7559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7560 <limits.h> exists even on freestanding compilers. */
7562 # include <limits.h>
7564 # include <assert.h>
7566 /* Override any gcc2 internal prototype to avoid an error. */
7571 /* We use char because int might match the return type of a gcc2
7572 builtin and then its argument prototype would still apply. */
7574 /* The GNU C library defines this for functions which it implements
7575 to always fail with ENOSYS. Some functions are actually named
7576 something starting with __ and the normal name is an alias. */
7577 #if defined (__stub_basename) || defined (__stub___basename)
7580 char (*f) () = basename;
7589 return f != basename;
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596 (eval $ac_link) 2>&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try='test -s conftest$ac_exeext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_func_basename=yes
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 ac_cv_func_basename=no
7613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7615 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7616 echo "${ECHO_T}$ac_cv_func_basename" >&6
7618 echo "$as_me:$LINENO: checking for setjmp" >&5
7619 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7620 if test "${ac_cv_func_setjmp+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 cat >conftest.$ac_ext <<_ACEOF
7624 #line $LINENO "configure"
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 /* System header to define __stub macros and hopefully few prototypes,
7631 which can conflict with char setjmp (); below.
7632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7633 <limits.h> exists even on freestanding compilers. */
7635 # include <limits.h>
7637 # include <assert.h>
7639 /* Override any gcc2 internal prototype to avoid an error. */
7644 /* We use char because int might match the return type of a gcc2
7645 builtin and then its argument prototype would still apply. */
7647 /* The GNU C library defines this for functions which it implements
7648 to always fail with ENOSYS. Some functions are actually named
7649 something starting with __ and the normal name is an alias. */
7650 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7653 char (*f) () = setjmp;
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7669 (eval $ac_link) 2>&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } &&
7673 { ac_try='test -s conftest$ac_exeext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 ac_cv_func_setjmp=yes
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_cv_func_setjmp=no
7686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7688 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7689 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7691 echo "$as_me:$LINENO: checking for setpriority" >&5
7692 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7693 if test "${ac_cv_func_setpriority+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 cat >conftest.$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 /* System header to define __stub macros and hopefully few prototypes,
7704 which can conflict with char setpriority (); below.
7705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706 <limits.h> exists even on freestanding compilers. */
7708 # include <limits.h>
7710 # include <assert.h>
7712 /* Override any gcc2 internal prototype to avoid an error. */
7717 /* We use char because int might match the return type of a gcc2
7718 builtin and then its argument prototype would still apply. */
7719 char setpriority ();
7720 /* The GNU C library defines this for functions which it implements
7721 to always fail with ENOSYS. Some functions are actually named
7722 something starting with __ and the normal name is an alias. */
7723 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7726 char (*f) () = setpriority;
7735 return f != setpriority;
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742 (eval $ac_link) 2>&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } &&
7746 { ac_try='test -s conftest$ac_exeext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 ac_cv_func_setpriority=yes
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_cv_func_setpriority=no
7759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7761 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7762 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7764 echo "$as_me:$LINENO: checking for time" >&5
7765 echo $ECHO_N "checking for time... $ECHO_C" >&6
7766 if test "${ac_cv_func_time+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 /* System header to define __stub macros and hopefully few prototypes,
7777 which can conflict with char time (); below.
7778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7779 <limits.h> exists even on freestanding compilers. */
7781 # include <limits.h>
7783 # include <assert.h>
7785 /* Override any gcc2 internal prototype to avoid an error. */
7790 /* We use char because int might match the return type of a gcc2
7791 builtin and then its argument prototype would still apply. */
7793 /* The GNU C library defines this for functions which it implements
7794 to always fail with ENOSYS. Some functions are actually named
7795 something starting with __ and the normal name is an alias. */
7796 #if defined (__stub_time) || defined (__stub___time)
7799 char (*f) () = time;
7813 rm -f conftest.$ac_objext conftest$ac_exeext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7815 (eval $ac_link) 2>&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -s conftest$ac_exeext'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7834 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7835 echo "${ECHO_T}$ac_cv_func_time" >&6
7837 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7838 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7839 if test "${ac_cv_func_gettimeofday+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 cat >conftest.$ac_ext <<_ACEOF
7843 #line $LINENO "configure"
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 /* System header to define __stub macros and hopefully few prototypes,
7850 which can conflict with char gettimeofday (); below.
7851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7852 <limits.h> exists even on freestanding compilers. */
7854 # include <limits.h>
7856 # include <assert.h>
7858 /* Override any gcc2 internal prototype to avoid an error. */
7863 /* We use char because int might match the return type of a gcc2
7864 builtin and then its argument prototype would still apply. */
7865 char gettimeofday ();
7866 /* The GNU C library defines this for functions which it implements
7867 to always fail with ENOSYS. Some functions are actually named
7868 something starting with __ and the normal name is an alias. */
7869 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7872 char (*f) () = gettimeofday;
7881 return f != gettimeofday;
7886 rm -f conftest.$ac_objext conftest$ac_exeext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7888 (eval $ac_link) 2>&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 ac_cv_func_gettimeofday=yes
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 ac_cv_func_gettimeofday=no
7905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7907 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7908 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7910 echo "$as_me:$LINENO: checking for getopt" >&5
7911 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7912 if test "${ac_cv_func_getopt+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 cat >conftest.$ac_ext <<_ACEOF
7916 #line $LINENO "configure"
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 /* System header to define __stub macros and hopefully few prototypes,
7923 which can conflict with char getopt (); below.
7924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7925 <limits.h> exists even on freestanding compilers. */
7927 # include <limits.h>
7929 # include <assert.h>
7931 /* Override any gcc2 internal prototype to avoid an error. */
7936 /* We use char because int might match the return type of a gcc2
7937 builtin and then its argument prototype would still apply. */
7939 /* The GNU C library defines this for functions which it implements
7940 to always fail with ENOSYS. Some functions are actually named
7941 something starting with __ and the normal name is an alias. */
7942 #if defined (__stub_getopt) || defined (__stub___getopt)
7945 char (*f) () = getopt;
7959 rm -f conftest.$ac_objext conftest$ac_exeext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7961 (eval $ac_link) 2>&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -s conftest$ac_exeext'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; }; then
7971 ac_cv_func_getopt=yes
7973 echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.$ac_ext >&5
7976 ac_cv_func_getopt=no
7978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7980 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7981 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7982 if test $ac_cv_func_getopt = yes; then
7989 if test "${OSTYPE}" = "cygwin" ; then
7992 echo "$as_me:$LINENO: checking for getopt_long" >&5
7993 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7994 if test "${ac_cv_func_getopt_long+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 cat >conftest.$ac_ext <<_ACEOF
7998 #line $LINENO "configure"
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8004 /* System header to define __stub macros and hopefully few prototypes,
8005 which can conflict with char getopt_long (); below.
8006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8007 <limits.h> exists even on freestanding compilers. */
8009 # include <limits.h>
8011 # include <assert.h>
8013 /* Override any gcc2 internal prototype to avoid an error. */
8018 /* We use char because int might match the return type of a gcc2
8019 builtin and then its argument prototype would still apply. */
8020 char getopt_long ();
8021 /* The GNU C library defines this for functions which it implements
8022 to always fail with ENOSYS. Some functions are actually named
8023 something starting with __ and the normal name is an alias. */
8024 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
8027 char (*f) () = getopt_long;
8036 return f != getopt_long;
8041 rm -f conftest.$ac_objext conftest$ac_exeext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8043 (eval $ac_link) 2>&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -s conftest$ac_exeext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_cv_func_getopt_long=yes
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 ac_cv_func_getopt_long=no
8060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8062 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8063 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
8064 if test $ac_cv_func_getopt_long = yes; then
8072 if test "${getopt_long}" = "false" ; then
8073 my_includes="$my_includes -I../getopt"
8075 cat >>confdefs.h <<\_ACEOF
8076 #define HAVE_GETOPT_LONG 1
8079 ctlibs_base="$ctlibs_base -lgetopt"
8080 LDFLAGS="$LDFLAGS -L../getopt"
8085 if test "$GETOPTLONG"="1"; then
8086 INCLUDED_GETOPT_LONG_TRUE=
8087 INCLUDED_GETOPT_LONG_FALSE='#'
8089 INCLUDED_GETOPT_LONG_TRUE='#'
8090 INCLUDED_GETOPT_LONG_FALSE=
8094 if test "${readline}" = "true" ; then
8095 ctlibs_base="$ctlibs_base -lreadline"
8096 if test "${ncurses}" = "true"; then
8097 ctlibs_base="$ctlibs_base -lncurses"
8098 elif test "${curses}" = "true"; then
8099 ctlibs_base="$ctlibs_base -lcurses"
8103 echo "$as_me:$LINENO: checking debug" >&5
8104 echo $ECHO_N "checking debug... $ECHO_C" >&6
8105 # Check whether --enable-debug or --disable-debug was given.
8106 if test "${enable_debug+set}" = set; then
8107 enableval="$enable_debug"
8108 case "${enableval}" in
8110 echo "$as_me:$LINENO: result: yes" >&5
8111 echo "${ECHO_T}yes" >&6
8114 echo "$as_me:$LINENO: result: no" >&5
8115 echo "${ECHO_T}no" >&6
8117 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
8118 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
8122 debug=false; echo "$as_me:$LINENO: result: no" >&5
8123 echo "${ECHO_T}no" >&6
8127 if test "$debug" = "true"; then
8136 if test "$datadir" != "" ; then
8137 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
8140 if test "$debug" = "true" ; then
8141 CFLAGS="$CFLAGS -g -DDEBUG"
8143 cat >>confdefs.h <<\_ACEOF
8148 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
8150 cat >>confdefs.h <<\_ACEOF
8156 if test "${pthread}" = "true" ; then
8158 cat >>confdefs.h <<\_ACEOF
8159 #define HAVE_WXTHREADS 1
8164 echo "$as_me:$LINENO: checking sstream" >&5
8165 echo $ECHO_N "checking sstream... $ECHO_C" >&6
8166 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
8167 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
8168 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
8170 cat >>confdefs.h <<\_ACEOF
8171 #define HAVE_SSTREAM 1
8174 echo "$as_me:$LINENO: result: yes" >&5
8175 echo "${ECHO_T}yes" >&6
8177 echo "$as_me:$LINENO: result: no" >&5
8178 echo "${ECHO_T}no" >&6
8182 CFLAGS="$CFLAGS -Wall"
8183 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
8184 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
8185 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
8186 if test "${enable_verbose_warnings+set}" = set; then
8187 enableval="$enable_verbose_warnings"
8188 case "$enableval" in
8190 echo "$as_me:$LINENO: result: yes" >&5
8191 echo "${ECHO_T}yes" >&6
8192 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
8195 echo "$as_me:$LINENO: result: no" >&5
8196 echo "${ECHO_T}no" >&6
8200 echo "$as_me:$LINENO: result: no" >&5
8201 echo "${ECHO_T}no" >&6
8205 echo "$as_me:$LINENO: checking static executables" >&5
8206 echo $ECHO_N "checking static executables... $ECHO_C" >&6
8207 # Check whether --enable-static or --disable-static was given.
8208 if test "${enable_static+set}" = set; then
8209 enableval="$enable_static"
8210 case "$enableval" in
8212 echo "$as_me:$LINENO: result: yes" >&5
8213 echo "${ECHO_T}yes" >&6
8214 CFLAGS="$CFLAGS --static"
8217 echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6
8222 echo "$as_me:$LINENO: result: no" >&5
8223 echo "${ECHO_T}no" >&6
8228 # Check whether --with-lam or --without-lam was given.
8229 if test "${with_lam+set}" = set; then
8231 if test "$withval" != "no" ; then
8237 if test "$withval" != "no" ; then
8238 if test "$prefix" != "NONE" ; then
8239 trylamdir="$trylamdir $prefix"
8242 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
8243 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
8244 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
8245 if test -x "$testlamdir/bin/hcp" ; then
8246 if test "$testlamdir" != "/usr"; then
8247 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
8248 CFLAGS="$CFLAGS -I$testlamdir/include"
8250 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
8251 lamdir="$testlamdir"
8258 echo "$as_me:$LINENO: result: $lamdir" >&5
8259 echo "${ECHO_T}$lamdir" >&6
8261 echo "$as_me:$LINENO: result: no" >&5
8262 echo "${ECHO_T}no" >&6
8267 # Check whether --with-ctn or --without-ctn was given.
8268 if test "${with_ctn+set}" = set; then
8270 if test "$withval" != "no" ; then
8276 if test "$withval" == "no" -o "$withval" == "NONE" ; then
8277 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8278 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8279 echo "$as_me:$LINENO: result: disabled" >&5
8280 echo "${ECHO_T}disabled" >&6
8282 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8283 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8284 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
8285 if test -f "$testctndir/libctn.a" ; then
8286 LDFLAGS="$LDFLAGS -L$testctndir"
8291 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
8292 if test -f "$testctndir/ctn_os.h" ; then
8293 CFLAGS="$CFLAGS -I$testctndir"
8298 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
8301 cat >>confdefs.h <<\_ACEOF
8302 #define HAVE_CTN_DICOM 1
8305 echo "$as_me:$LINENO: result: yes" >&5
8306 echo "${ECHO_T}yes" >&6
8308 echo "$as_me:$LINENO: result: no" >&5
8309 echo "${ECHO_T}no" >&6
8313 echo "$as_me:$LINENO: checking for CPU specification" >&5
8314 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
8316 # Check whether --with-mcpu or --without-mcpu was given.
8317 if test "${with_mcpu+set}" = set; then
8318 withval="$with_mcpu"
8322 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
8323 echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6
8326 echo "$as_me:$LINENO: result: $withval" >&5
8327 echo "${ECHO_T}$withval" >&6
8328 CFLAGS="$CFLAGS -mcpu=$withval"
8331 echo "$as_me:$LINENO: checking for web access" >&5
8332 echo $ECHO_N "checking for web access... $ECHO_C" >&6
8334 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
8335 if test "${with_cgibin_dir+set}" = set; then
8336 withval="$with_cgibin_dir"
8337 cgibindir=$withval ;
8341 # Check whether --with-cgibin-url or --without-cgibin-url was given.
8342 if test "${with_cgibin_url+set}" = set; then
8343 withval="$with_cgibin_url"
8344 cgibinurl=$withval ;
8348 # Check whether --with-webdata-dir or --without-webdata-dir was given.
8349 if test "${with_webdata_dir+set}" = set; then
8350 withval="$with_webdata_dir"
8351 webdatadir=$withval ;
8355 # Check whether --with-webdata-url or --without-webdata-url was given.
8356 if test "${with_webdata_url+set}" = set; then
8357 withval="$with_webdata_url"
8358 webdataurl=$withval ;
8362 # Check whether --with-html-dir or --without-html-dir was given.
8363 if test "${with_html_dir+set}" = set; then
8364 withval="$with_html_dir"
8368 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
8369 cgiprograms="ctsim.cgi ctsim.conf"
8373 if test -n "$htmldir" ; then
8374 htmldata=simulate.html
8379 if test -n "$htmldir"; then
8388 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
8391 echo "$as_me:$LINENO: result: yes" >&5
8392 echo "${ECHO_T}yes" >&6
8393 if test -z "$cgibindir" ; then
8394 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
8395 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
8396 { (exit 1); exit 1; }; }
8397 elif test -z "$cgibinurl" ; then
8398 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
8399 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
8400 { (exit 1); exit 1; }; }
8401 elif test -z "$webdatadir" ; then
8402 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
8403 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
8404 { (exit 1); exit 1; }; }
8405 elif test -z "$webdataurl" ; then
8406 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
8407 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
8408 { (exit 1); exit 1; }; }
8409 elif test -z "$htmldir" ; then
8410 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
8411 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
8412 { (exit 1); exit 1; }; }
8415 echo "$as_me:$LINENO: result: no" >&5
8416 echo "${ECHO_T}no" >&6
8421 if test -n "$lamdir"; then
8431 echo "$as_me:$LINENO: checking for X" >&5
8432 echo $ECHO_N "checking for X... $ECHO_C" >&6
8435 # Check whether --with-x or --without-x was given.
8436 if test "${with_x+set}" = set; then
8440 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8441 if test "x$with_x" = xno; then
8442 # The user explicitly disabled X.
8445 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8446 # Both variables are already set.
8449 if test "${ac_cv_have_x+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 # One or both of the vars are not set, and there is no cached value.
8453 ac_x_includes=no ac_x_libraries=no
8455 if mkdir conftest.dir; then
8457 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8458 cat >Imakefile <<'_ACEOF'
8460 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8462 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8463 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8464 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8465 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8466 for ac_extension in a so sl; do
8467 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8468 test -f $ac_im_libdir/libX11.$ac_extension; then
8469 ac_im_usrlibdir=$ac_im_libdir; break
8472 # Screen out bogus values from the imake configuration. They are
8473 # bogus both because they are the default anyway, and because
8474 # using them would break gcc on systems where it needs fixed includes.
8475 case $ac_im_incroot in
8477 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8479 case $ac_im_usrlibdir in
8481 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8488 # Standard set of common directories for X headers.
8489 # Check X11 before X11Rn because it is often a symlink to the current release.
8501 /usr/local/X11/include
8502 /usr/local/X11R6/include
8503 /usr/local/X11R5/include
8504 /usr/local/X11R4/include
8506 /usr/local/include/X11
8507 /usr/local/include/X11R6
8508 /usr/local/include/X11R5
8509 /usr/local/include/X11R4
8513 /usr/XFree86/include/X11
8517 /usr/unsupported/include
8519 /usr/local/x11r5/include
8520 /usr/lpp/Xamples/include
8522 /usr/openwin/include
8523 /usr/openwin/share/include'
8525 if test "$ac_x_includes" = no; then
8526 # Guess where to find include files, by looking for Intrinsic.h.
8527 # First, try using that file with no special directory specified.
8528 cat >conftest.$ac_ext <<_ACEOF
8529 #line $LINENO "configure"
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 #include <X11/Intrinsic.h>
8537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8540 grep -v '^ *+' conftest.er1 >conftest.err
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } >/dev/null; then
8545 if test -s conftest.err; then
8546 ac_cpp_err=$ac_c_preproc_warn_flag
8553 if test -z "$ac_cpp_err"; then
8554 # We can compile using X headers with no special include directory.
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8560 for ac_dir in $ac_x_header_dirs; do
8561 if test -r "$ac_dir/X11/Intrinsic.h"; then
8562 ac_x_includes=$ac_dir
8567 rm -f conftest.err conftest.$ac_ext
8568 fi # $ac_x_includes = no
8570 if test "$ac_x_libraries" = no; then
8571 # Check for the libraries.
8572 # See if we find them without any special options.
8573 # Don't add to $LIBS permanently.
8576 cat >conftest.$ac_ext <<_ACEOF
8577 #line $LINENO "configure"
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 #include <X11/Intrinsic.h>
8592 rm -f conftest.$ac_objext conftest$ac_exeext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8594 (eval $ac_link) 2>&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } &&
8598 { ac_try='test -s conftest$ac_exeext'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8605 # We can link X programs with no special library path.
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8612 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8614 # Don't even attempt the hair of trying to link an X program!
8615 for ac_extension in a so sl; do
8616 if test -r $ac_dir/libXt.$ac_extension; then
8617 ac_x_libraries=$ac_dir
8623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8624 fi # $ac_x_libraries = no
8626 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8627 # Didn't find X anywhere. Cache the known absence of X.
8628 ac_cv_have_x="have_x=no"
8630 # Record where we found X for the cache.
8631 ac_cv_have_x="have_x=yes \
8632 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8637 eval "$ac_cv_have_x"
8640 if test "$have_x" != yes; then
8641 echo "$as_me:$LINENO: result: $have_x" >&5
8642 echo "${ECHO_T}$have_x" >&6
8645 # If each of the values was on the command line, it overrides each guess.
8646 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8647 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8648 # Update the cache value to reflect the command line values.
8649 ac_cv_have_x="have_x=yes \
8650 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8651 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8652 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8655 if test "$no_x" = yes; then
8656 # Not all programs may use this symbol, but it does not hurt to define it.
8658 cat >>confdefs.h <<\_ACEOF
8659 #define X_DISPLAY_MISSING 1
8662 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8664 if test -n "$x_includes"; then
8665 X_CFLAGS="$X_CFLAGS -I$x_includes"
8668 # It would also be nice to do this for all -L options, not just this one.
8669 if test -n "$x_libraries"; then
8670 X_LIBS="$X_LIBS -L$x_libraries"
8671 # For Solaris; some versions of Sun CC require a space after -R and
8672 # others require no space. Words are not sufficient . . . .
8673 case `(uname -sr) 2>/dev/null` in
8675 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8676 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8677 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8678 cat >conftest.$ac_ext <<_ACEOF
8679 #line $LINENO "configure"
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696 (eval $ac_link) 2>&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } &&
8700 { ac_try='test -s conftest$ac_exeext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8714 if test $ac_R_nospace = yes; then
8715 echo "$as_me:$LINENO: result: no" >&5
8716 echo "${ECHO_T}no" >&6
8717 X_LIBS="$X_LIBS -R$x_libraries"
8719 LIBS="$ac_xsave_LIBS -R $x_libraries"
8720 cat >conftest.$ac_ext <<_ACEOF
8721 #line $LINENO "configure"
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8736 rm -f conftest.$ac_objext conftest$ac_exeext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8738 (eval $ac_link) 2>&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } &&
8742 { ac_try='test -s conftest$ac_exeext'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8756 if test $ac_R_space = yes; then
8757 echo "$as_me:$LINENO: result: yes" >&5
8758 echo "${ECHO_T}yes" >&6
8759 X_LIBS="$X_LIBS -R $x_libraries"
8761 echo "$as_me:$LINENO: result: neither works" >&5
8762 echo "${ECHO_T}neither works" >&6
8769 # Check for system-dependent libraries X programs must link with.
8770 # Do this before checking for the system-independent R6 libraries
8771 # (-lICE), since we may need -lsocket or whatever for X linking.
8773 if test "$ISC" = yes; then
8774 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8776 # Martyn Johnson says this is needed for Ultrix, if the X
8777 # libraries were built with DECnet support. And Karl Berry says
8778 # the Alpha needs dnet_stub (dnet does not exist).
8779 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8780 cat >conftest.$ac_ext <<_ACEOF
8781 #line $LINENO "configure"
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8788 /* Override any gcc2 internal prototype to avoid an error. */
8792 /* We use char because int might match the return type of a gcc2
8793 builtin and then its argument prototype would still apply. */
8794 char XOpenDisplay ();
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
8820 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8821 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8822 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 ac_check_lib_save_LIBS=$LIBS
8827 cat >conftest.$ac_ext <<_ACEOF
8828 #line $LINENO "configure"
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8835 /* Override any gcc2 internal prototype to avoid an error. */
8839 /* We use char because int might match the return type of a gcc2
8840 builtin and then its argument prototype would still apply. */
8850 rm -f conftest.$ac_objext conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852 (eval $ac_link) 2>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -s conftest$ac_exeext'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8862 ac_cv_lib_dnet_dnet_ntoa=yes
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8867 ac_cv_lib_dnet_dnet_ntoa=no
8869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8870 LIBS=$ac_check_lib_save_LIBS
8872 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8873 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8874 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8875 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8878 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8879 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8880 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8881 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8884 ac_check_lib_save_LIBS=$LIBS
8885 LIBS="-ldnet_stub $LIBS"
8886 cat >conftest.$ac_ext <<_ACEOF
8887 #line $LINENO "configure"
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8894 /* Override any gcc2 internal prototype to avoid an error. */
8898 /* We use char because int might match the return type of a gcc2
8899 builtin and then its argument prototype would still apply. */
8909 rm -f conftest.$ac_objext conftest$ac_exeext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8911 (eval $ac_link) 2>&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } &&
8915 { ac_try='test -s conftest$ac_exeext'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 ac_cv_lib_dnet_stub_dnet_ntoa=no
8928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8929 LIBS=$ac_check_lib_save_LIBS
8931 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8932 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8933 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8934 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8940 LIBS="$ac_xsave_LIBS"
8942 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8943 # to get the SysV transport functions.
8944 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8946 # The nsl library prevents programs from opening the X display
8947 # on Irix 5.2, according to T.E. Dickey.
8948 # The functions gethostbyname, getservbyname, and inet_addr are
8949 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8950 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8951 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8952 if test "${ac_cv_func_gethostbyname+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8956 #line $LINENO "configure"
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 /* System header to define __stub macros and hopefully few prototypes,
8963 which can conflict with char gethostbyname (); below.
8964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8965 <limits.h> exists even on freestanding compilers. */
8967 # include <limits.h>
8969 # include <assert.h>
8971 /* Override any gcc2 internal prototype to avoid an error. */
8976 /* We use char because int might match the return type of a gcc2
8977 builtin and then its argument prototype would still apply. */
8978 char gethostbyname ();
8979 /* The GNU C library defines this for functions which it implements
8980 to always fail with ENOSYS. Some functions are actually named
8981 something starting with __ and the normal name is an alias. */
8982 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8985 char (*f) () = gethostbyname;
8994 return f != gethostbyname;
8999 rm -f conftest.$ac_objext conftest$ac_exeext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9001 (eval $ac_link) 2>&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -s conftest$ac_exeext'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 ac_cv_func_gethostbyname=yes
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 ac_cv_func_gethostbyname=no
9018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9020 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9021 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9023 if test $ac_cv_func_gethostbyname = no; then
9024 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9025 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9026 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 ac_check_lib_save_LIBS=$LIBS
9031 cat >conftest.$ac_ext <<_ACEOF
9032 #line $LINENO "configure"
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9039 /* 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 ();
9054 rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056 (eval $ac_link) 2>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -s conftest$ac_exeext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_lib_nsl_gethostbyname=yes
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_cv_lib_nsl_gethostbyname=no
9073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9074 LIBS=$ac_check_lib_save_LIBS
9076 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9077 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9078 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9079 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9082 if test $ac_cv_lib_nsl_gethostbyname = no; then
9083 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9084 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9085 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 ac_check_lib_save_LIBS=$LIBS
9090 cat >conftest.$ac_ext <<_ACEOF
9091 #line $LINENO "configure"
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9098 /* Override any gcc2 internal prototype to avoid an error. */
9102 /* We use char because int might match the return type of a gcc2
9103 builtin and then its argument prototype would still apply. */
9104 char gethostbyname ();
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9115 (eval $ac_link) 2>&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -s conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_lib_bsd_gethostbyname=yes
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9130 ac_cv_lib_bsd_gethostbyname=no
9132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9133 LIBS=$ac_check_lib_save_LIBS
9135 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9136 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9137 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9138 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9144 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9145 # socket/setsockopt and other routines are undefined under SCO ODT
9146 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9147 # on later versions), says Simon Leinen: it contains gethostby*
9148 # variants that don't use the name server (or something). -lsocket
9149 # must be given before -lnsl if both are needed. We assume that
9150 # if connect needs -lnsl, so does gethostbyname.
9151 echo "$as_me:$LINENO: checking for connect" >&5
9152 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9153 if test "${ac_cv_func_connect+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 cat >conftest.$ac_ext <<_ACEOF
9157 #line $LINENO "configure"
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 /* System header to define __stub macros and hopefully few prototypes,
9164 which can conflict with char connect (); below.
9165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9166 <limits.h> exists even on freestanding compilers. */
9168 # include <limits.h>
9170 # include <assert.h>
9172 /* Override any gcc2 internal prototype to avoid an error. */
9177 /* We use char because int might match the return type of a gcc2
9178 builtin and then its argument prototype would still apply. */
9180 /* The GNU C library defines this for functions which it implements
9181 to always fail with ENOSYS. Some functions are actually named
9182 something starting with __ and the normal name is an alias. */
9183 #if defined (__stub_connect) || defined (__stub___connect)
9186 char (*f) () = connect;
9195 return f != connect;
9200 rm -f conftest.$ac_objext conftest$ac_exeext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9202 (eval $ac_link) 2>&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } &&
9206 { ac_try='test -s conftest$ac_exeext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_cv_func_connect=yes
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_cv_func_connect=no
9219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9221 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9222 echo "${ECHO_T}$ac_cv_func_connect" >&6
9224 if test $ac_cv_func_connect = no; then
9225 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9226 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9227 if test "${ac_cv_lib_socket_connect+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 ac_check_lib_save_LIBS=$LIBS
9231 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9232 cat >conftest.$ac_ext <<_ACEOF
9233 #line $LINENO "configure"
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9240 /* 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. */
9255 rm -f conftest.$ac_objext conftest$ac_exeext
9256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9257 (eval $ac_link) 2>&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } &&
9261 { ac_try='test -s conftest$ac_exeext'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
9267 ac_cv_lib_socket_connect=yes
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9272 ac_cv_lib_socket_connect=no
9274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9275 LIBS=$ac_check_lib_save_LIBS
9277 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9278 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9279 if test $ac_cv_lib_socket_connect = yes; then
9280 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9285 # Guillermo Gomez says -lposix is necessary on A/UX.
9286 echo "$as_me:$LINENO: checking for remove" >&5
9287 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9288 if test "${ac_cv_func_remove+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 cat >conftest.$ac_ext <<_ACEOF
9292 #line $LINENO "configure"
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298 /* System header to define __stub macros and hopefully few prototypes,
9299 which can conflict with char remove (); below.
9300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9301 <limits.h> exists even on freestanding compilers. */
9303 # include <limits.h>
9305 # include <assert.h>
9307 /* Override any gcc2 internal prototype to avoid an error. */
9312 /* We use char because int might match the return type of a gcc2
9313 builtin and then its argument prototype would still apply. */
9315 /* The GNU C library defines this for functions which it implements
9316 to always fail with ENOSYS. Some functions are actually named
9317 something starting with __ and the normal name is an alias. */
9318 #if defined (__stub_remove) || defined (__stub___remove)
9321 char (*f) () = remove;
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9337 (eval $ac_link) 2>&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } &&
9341 { ac_try='test -s conftest$ac_exeext'
9342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; }; then
9347 ac_cv_func_remove=yes
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9352 ac_cv_func_remove=no
9354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9356 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9357 echo "${ECHO_T}$ac_cv_func_remove" >&6
9359 if test $ac_cv_func_remove = no; then
9360 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9361 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9362 if test "${ac_cv_lib_posix_remove+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 ac_check_lib_save_LIBS=$LIBS
9366 LIBS="-lposix $LIBS"
9367 cat >conftest.$ac_ext <<_ACEOF
9368 #line $LINENO "configure"
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9375 /* 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. */
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392 (eval $ac_link) 2>&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } &&
9396 { ac_try='test -s conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9402 ac_cv_lib_posix_remove=yes
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 ac_cv_lib_posix_remove=no
9409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9410 LIBS=$ac_check_lib_save_LIBS
9412 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9413 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9414 if test $ac_cv_lib_posix_remove = yes; then
9415 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9420 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9421 echo "$as_me:$LINENO: checking for shmat" >&5
9422 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9423 if test "${ac_cv_func_shmat+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 cat >conftest.$ac_ext <<_ACEOF
9427 #line $LINENO "configure"
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 /* System header to define __stub macros and hopefully few prototypes,
9434 which can conflict with char shmat (); below.
9435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9436 <limits.h> exists even on freestanding compilers. */
9438 # include <limits.h>
9440 # include <assert.h>
9442 /* Override any gcc2 internal prototype to avoid an error. */
9447 /* We use char because int might match the return type of a gcc2
9448 builtin and then its argument prototype would still apply. */
9450 /* The GNU C library defines this for functions which it implements
9451 to always fail with ENOSYS. Some functions are actually named
9452 something starting with __ and the normal name is an alias. */
9453 #if defined (__stub_shmat) || defined (__stub___shmat)
9456 char (*f) () = shmat;
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472 (eval $ac_link) 2>&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -s conftest$ac_exeext'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9482 ac_cv_func_shmat=yes
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9491 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9492 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9494 if test $ac_cv_func_shmat = no; then
9495 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9496 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9497 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 ac_check_lib_save_LIBS=$LIBS
9502 cat >conftest.$ac_ext <<_ACEOF
9503 #line $LINENO "configure"
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9510 /* 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. */
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9527 (eval $ac_link) 2>&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } &&
9531 { ac_try='test -s conftest$ac_exeext'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 ac_cv_lib_ipc_shmat=yes
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9542 ac_cv_lib_ipc_shmat=no
9544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9545 LIBS=$ac_check_lib_save_LIBS
9547 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9548 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9549 if test $ac_cv_lib_ipc_shmat = yes; then
9550 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9556 # Check for libraries that X11R6 Xt/Xaw programs need.
9557 ac_save_LDFLAGS=$LDFLAGS
9558 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9559 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9560 # check for ICE first), but we must link in the order -lSM -lICE or
9561 # we get undefined symbols. So assume we have SM if we have ICE.
9562 # These have to be linked with before -lX11, unlike the other
9563 # libraries we check for below, so use a different variable.
9564 # John Interrante, Karl Berry
9565 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9566 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9567 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 ac_check_lib_save_LIBS=$LIBS
9571 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9572 cat >conftest.$ac_ext <<_ACEOF
9573 #line $LINENO "configure"
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9580 /* Override any gcc2 internal prototype to avoid an error. */
9584 /* We use char because int might match the return type of a gcc2
9585 builtin and then its argument prototype would still apply. */
9586 char IceConnectionNumber ();
9590 IceConnectionNumber ();
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9597 (eval $ac_link) 2>&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
9601 { ac_try='test -s conftest$ac_exeext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_cv_lib_ICE_IceConnectionNumber=yes
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 ac_cv_lib_ICE_IceConnectionNumber=no
9614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9615 LIBS=$ac_check_lib_save_LIBS
9617 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9618 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9619 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9620 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9623 LDFLAGS=$ac_save_LDFLAGS
9634 X_TOOLKIT_LIBS="-lXt"
9635 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9637 our_saved_LDFLAGS="$LDFLAGS"
9638 LDFLAGS="$X_LIBS $LDFLAGS"
9639 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9640 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9641 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 ac_check_lib_save_LIBS=$LIBS
9645 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9646 cat >conftest.$ac_ext <<_ACEOF
9647 #line $LINENO "configure"
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9654 /* Override any gcc2 internal prototype to avoid an error. */
9658 /* We use char because int might match the return type of a gcc2
9659 builtin and then its argument prototype would still apply. */
9660 char XtToolkitThreadInitialize ();
9664 XtToolkitThreadInitialize ();
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9671 (eval $ac_link) 2>&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -s conftest$ac_exeext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9686 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9689 LIBS=$ac_check_lib_save_LIBS
9691 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9692 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9693 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9695 cat >>confdefs.h <<\_ACEOF
9696 #define X_THREAD_SUPPORT 1
9701 LDFLAGS="$our_saved_LDFLAGS"
9705 if test "x$no_x" = "xyes"; then
9714 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9717 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9719 echo "$as_me:$LINENO: checking for X" >&5
9720 echo $ECHO_N "checking for X... $ECHO_C" >&6
9721 if test "$no_x" != "yes" ; then
9723 cat >>confdefs.h <<\_ACEOF
9727 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
9728 my_includes="$my_includes -I/usr/X11R6/include"
9729 ctlib_graphics="$ctlibs_base -lctgraphics"
9730 echo "$as_me:$LINENO: result: yes" >&5
9731 echo "${ECHO_T}yes" >&6
9732 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9733 if test "$libgl" = "true" ; then
9734 # Removed "-lglut" for Mac OS X compilation
9735 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9736 if test "$wxwin" = "true" ; then
9738 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9739 elif "$wx_mac" ; then
9740 ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9744 if test "$wxwin" = "true" ; then
9746 cat >>confdefs.h <<\_ACEOF
9752 echo "$as_me:$LINENO: result: no" >&5
9753 echo "${ECHO_T}no" >&6
9758 if test "$wxwin" = "true"; then
9767 if test "$png" = "true" ; then
9768 ctlibs_tools="$ctlibs_tools -lpng"
9770 if test "$zlib" = "true" ; then
9771 ctlibs_tools="$ctlibs_tools -lz"
9773 if test "$fftw" = "true" ; then
9774 ctlibs_tools="$ctlibs_tools -lfftw3"
9776 if test "$ctn" = "true"; then
9777 ctlibs_tools="$ctlibs_tools -lctn"
9780 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9781 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9782 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 ac_check_lib_save_LIBS=$LIBS
9786 LIBS="-ldmallocxx $LIBS"
9787 cat >conftest.$ac_ext <<_ACEOF
9788 #line $LINENO "configure"
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9806 (eval $ac_link) 2>&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -s conftest$ac_exeext'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; }; then
9816 ac_cv_lib_dmallocxx_main=yes
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9821 ac_cv_lib_dmallocxx_main=no
9823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9824 LIBS=$ac_check_lib_save_LIBS
9826 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9827 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9828 if test $ac_cv_lib_dmallocxx_main = yes; then
9834 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9835 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9836 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9837 if test "${enable_dmalloc+set}" = set; then
9838 enableval="$enable_dmalloc"
9839 case "${enableval}" in
9840 yes) usedmalloc=true
9841 echo "$as_me:$LINENO: result: yes" >&5
9842 echo "${ECHO_T}yes" >&6
9844 no) usedmalloc=false
9845 echo "$as_me:$LINENO: result: no" >&5
9846 echo "${ECHO_T}no" >&6
9848 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9849 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9853 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9854 echo "${ECHO_T}no" >&6
9857 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9858 ctlibs_tools="$ctlibs_tools -ldmallocxx"
9860 cat >>confdefs.h <<\_ACEOF
9861 #define HAVE_DMALLOC 1
9864 echo "$as_me:$LINENO: result: Using dmalloc" >&5
9865 echo "${ECHO_T}Using dmalloc" >&6
9868 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9869 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9870 if test "${ac_cv_lib_efence_main+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 ac_check_lib_save_LIBS=$LIBS
9874 LIBS="-lefence $LIBS"
9875 cat >conftest.$ac_ext <<_ACEOF
9876 #line $LINENO "configure"
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9894 (eval $ac_link) 2>&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -s conftest$ac_exeext'
9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 ac_cv_lib_efence_main=yes
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9909 ac_cv_lib_efence_main=no
9911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9912 LIBS=$ac_check_lib_save_LIBS
9914 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9915 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9916 if test $ac_cv_lib_efence_main = yes; then
9922 echo "$as_me:$LINENO: checking for enable-efence" >&5
9923 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9924 # Check whether --enable-efence or --disable-efence was given.
9925 if test "${enable_efence+set}" = set; then
9926 enableval="$enable_efence"
9927 case "${enableval}" in
9929 echo "$as_me:$LINENO: result: yes" >&5
9930 echo "${ECHO_T}yes" >&6
9933 echo "$as_me:$LINENO: result: no" >&5
9934 echo "${ECHO_T}no" >&6
9936 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9937 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9941 useefence=false; echo "$as_me:$LINENO: result: no" >&5
9942 echo "${ECHO_T}no" >&6
9945 if test "$efence" = "true" -a "$useefence" = "true" ; then
9946 ctlibs_tools="$ctlibs_tools -lefence"
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_EFENCE 1
9952 echo "$as_me:$LINENO: result: Using efence" >&5
9953 echo "${ECHO_T}Using efence" >&6
9956 if test "$wxwin" = "true" ; then
9957 if "$wx_gtk" = "true" || "$wx_mac" == "true" ; then
9958 wxcflags=`$wxconfig --cflags`
9959 wxlibs=`$wxconfig --libs`
9961 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9962 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9964 CFLAGS="$CFLAGS -I../include $wxcflags"
9965 ctlib_graphics="$ctlib_graphics $wxlibs"
9971 if test "$wxwin"="true"; then
9972 HAVE_WXWINDOWS_TRUE=
9973 HAVE_WXWINDOWS_FALSE='#'
9975 HAVE_WXWINDOWS_TRUE='#'
9976 HAVE_WXWINDOWS_FALSE=
9980 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9981 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9984 if test -n "$lamdir" ; then
9985 lamprograms="ctsimtext-lam"
9993 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"
9996 cat >confcache <<\_ACEOF
9997 # This file is a shell script that caches the results of configure
9998 # tests run on this system so they can be shared between configure
9999 # scripts and configure runs, see configure's option --config-cache.
10000 # It is not useful on other systems. If it contains results you don't
10001 # want to keep, you may remove or edit it.
10003 # config.status only pays attention to the cache file if you give it
10004 # the --recheck option to rerun configure.
10006 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10007 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10008 # following values.
10012 # The following way of writing the cache mishandles newlines in values,
10013 # but we know of no workaround that is simple, portable, and efficient.
10014 # So, don't put newlines in cache variables' values.
10015 # Ultrix sh set writes to stderr and can't be redirected directly,
10016 # and sets the high bit in the cache file unless we assign to the vars.
10019 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10021 # `set' does not quote correctly, so add quotes (double-quote
10022 # substitution turns \\\\ into \\, and sed turns \\ into \).
10025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10028 # `set' quotes correctly as required by POSIX, so do not add quotes.
10030 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10037 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10039 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10041 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10042 if test -w $cache_file; then
10043 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10044 cat confcache >$cache_file
10046 echo "not updating unwritable cache $cache_file"
10051 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10052 # Let make expand exec_prefix.
10053 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10055 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10056 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10057 # trailing colons and then remove the whole line if VPATH becomes empty
10058 # (actually we leave an empty line to preserve line numbers).
10059 if test "x$srcdir" = x.; then
10060 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10061 s/:*\$(srcdir):*/:/;
10062 s/:*\${srcdir}:*/:/;
10064 s/^\([^=]*=[ ]*\):*/\1/;
10070 DEFS=-DHAVE_CONFIG_H
10074 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10075 # 1. Remove the extension, and $U if already installed.
10076 ac_i=`echo "$ac_i" |
10077 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10079 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10080 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10082 LIBOBJS=$ac_libobjs
10084 LTLIBOBJS=$ac_ltlibobjs
10087 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10088 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10089 Usually this means the macro was only invoked conditionally." >&5
10090 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10091 Usually this means the macro was only invoked conditionally." >&2;}
10092 { (exit 1); exit 1; }; }
10094 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10095 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10096 Usually this means the macro was only invoked conditionally." >&5
10097 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10098 Usually this means the macro was only invoked conditionally." >&2;}
10099 { (exit 1); exit 1; }; }
10101 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10102 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10103 Usually this means the macro was only invoked conditionally." >&5
10104 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10105 Usually this means the macro was only invoked conditionally." >&2;}
10106 { (exit 1); exit 1; }; }
10108 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10109 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10110 Usually this means the macro was only invoked conditionally." >&5
10111 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10112 Usually this means the macro was only invoked conditionally." >&2;}
10113 { (exit 1); exit 1; }; }
10115 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
10116 { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10117 Usually this means the macro was only invoked conditionally." >&5
10118 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10119 Usually this means the macro was only invoked conditionally." >&2;}
10120 { (exit 1); exit 1; }; }
10122 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
10123 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
10124 Usually this means the macro was only invoked conditionally." >&5
10125 echo "$as_me: error: conditional \"DEBUG\" was never defined.
10126 Usually this means the macro was only invoked conditionally." >&2;}
10127 { (exit 1); exit 1; }; }
10129 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
10130 { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
10131 Usually this means the macro was only invoked conditionally." >&5
10132 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
10133 Usually this means the macro was only invoked conditionally." >&2;}
10134 { (exit 1); exit 1; }; }
10136 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
10137 { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
10138 Usually this means the macro was only invoked conditionally." >&5
10139 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
10140 Usually this means the macro was only invoked conditionally." >&2;}
10141 { (exit 1); exit 1; }; }
10143 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
10144 { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
10145 Usually this means the macro was only invoked conditionally." >&5
10146 echo "$as_me: error: conditional \"NO_X\" was never defined.
10147 Usually this means the macro was only invoked conditionally." >&2;}
10148 { (exit 1); exit 1; }; }
10150 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
10151 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
10152 Usually this means the macro was only invoked conditionally." >&5
10153 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
10154 Usually this means the macro was only invoked conditionally." >&2;}
10155 { (exit 1); exit 1; }; }
10157 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
10158 { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10159 Usually this means the macro was only invoked conditionally." >&5
10160 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10161 Usually this means the macro was only invoked conditionally." >&2;}
10162 { (exit 1); exit 1; }; }
10165 : ${CONFIG_STATUS=./config.status}
10166 ac_clean_files_save=$ac_clean_files
10167 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10168 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10169 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10170 cat >$CONFIG_STATUS <<_ACEOF
10172 # Generated by $as_me.
10173 # Run this file to recreate the current configuration.
10174 # Compiler output produced by configure, useful for debugging
10175 # configure, is in config.log if it exists.
10178 ac_cs_recheck=false
10180 SHELL=\${CONFIG_SHELL-$SHELL}
10183 cat >>$CONFIG_STATUS <<\_ACEOF
10184 ## --------------------- ##
10185 ## M4sh Initialization. ##
10186 ## --------------------- ##
10188 # Be Bourne compatible
10189 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10192 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10193 # is contrary to our usage. Disable this feature.
10194 alias -g '${1+"$@"}'='"$@"'
10195 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10199 # Support unset when possible.
10200 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10207 # Work around bugs in pre-3.0 UWIN ksh.
10208 $as_unset ENV MAIL MAILPATH
10215 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10216 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10217 LC_TELEPHONE LC_TIME
10219 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10220 eval $as_var=C; export $as_var
10226 # Required to use basename.
10227 if expr a : '\(a\)' >/dev/null 2>&1; then
10233 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10234 as_basename=basename
10240 # Name of the executable.
10241 as_me=`$as_basename "$0" ||
10242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10243 X"$0" : 'X\(//\)$' \| \
10244 X"$0" : 'X\(/\)$' \| \
10245 . : '\(.\)' 2>/dev/null ||
10247 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10248 /^X\/\(\/\/\)$/{ s//\1/; q; }
10249 /^X\/\(\/\).*/{ s//\1/; q; }
10253 # PATH needs CR, and LINENO needs CR and PATH.
10254 # Avoid depending upon Character Ranges.
10255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10258 as_cr_digits='0123456789'
10259 as_cr_alnum=$as_cr_Letters$as_cr_digits
10261 # The user is always right.
10262 if test "${PATH_SEPARATOR+set}" != set; then
10263 echo "#! /bin/sh" >conf$$.sh
10264 echo "exit 0" >>conf$$.sh
10266 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10275 as_lineno_1=$LINENO
10276 as_lineno_2=$LINENO
10277 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10278 test "x$as_lineno_1" != "x$as_lineno_2" &&
10279 test "x$as_lineno_3" = "x$as_lineno_2" || {
10280 # Find who we are. Look in the path if we contain no path at all
10283 *[\\/]* ) as_myself=$0 ;;
10284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285 for as_dir in $PATH
10288 test -z "$as_dir" && as_dir=.
10289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10294 # We did not find ourselves, most probably we were run as `sh COMMAND'
10295 # in which case we are not to be found in the path.
10296 if test "x$as_myself" = x; then
10299 if test ! -f "$as_myself"; then
10300 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10301 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10302 { (exit 1); exit 1; }; }
10304 case $CONFIG_SHELL in
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10310 test -z "$as_dir" && as_dir=.
10311 for as_base in sh bash ksh sh5; do
10314 if ("$as_dir/$as_base" -c '
10315 as_lineno_1=$LINENO
10316 as_lineno_2=$LINENO
10317 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10318 test "x$as_lineno_1" != "x$as_lineno_2" &&
10319 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10320 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10321 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10322 CONFIG_SHELL=$as_dir/$as_base
10323 export CONFIG_SHELL
10324 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10332 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10333 # uniformly replaced by the line number. The first 'sed' inserts a
10334 # line-number line before each line; the second 'sed' does the real
10335 # work. The second script uses 'N' to pair each line-number line
10336 # with the numbered line, and appends trailing '-' during
10337 # substitution so that $LINENO is not a special case at line end.
10338 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10339 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10340 sed '=' <$as_myself |
10345 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10348 s,^['$as_cr_digits']*\n,,
10349 ' >$as_me.lineno &&
10350 chmod +x $as_me.lineno ||
10351 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10352 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10353 { (exit 1); exit 1; }; }
10355 # Don't try to exec as it changes $[0], causing all sort of problems
10356 # (the dirname of $[0] is not the place where we might find the
10357 # original and so on. Autoconf is especially sensible to this).
10359 # Exit status is that of the last command.
10364 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10365 *c*,-n*) ECHO_N= ECHO_C='
10367 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10368 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10371 if expr a : '\(a\)' >/dev/null 2>&1; then
10377 rm -f conf$$ conf$$.exe conf$$.file
10379 if ln -s conf$$.file conf$$ 2>/dev/null; then
10380 # We could just check for DJGPP; but this test a) works b) is more generic
10381 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10382 if test -f conf$$.exe; then
10383 # Don't use ln at all; we don't have any links
10388 elif ln conf$$.file conf$$ 2>/dev/null; then
10393 rm -f conf$$ conf$$.exe conf$$.file
10395 if mkdir -p . 2>/dev/null; then
10401 as_executable_p="test -f"
10403 # Sed expression to map a string onto a valid CPP name.
10404 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10406 # Sed expression to map a string onto a valid variable name.
10407 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10411 # We need space, tab and new line, in precisely that order.
10421 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10422 # report actual input values of CONFIG_FILES etc. instead of their
10423 # values after options handling. Logging --version etc. is OK.
10427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10428 ## Running $as_me. ##
10433 This file was extended by $as_me, which was
10434 generated by GNU Autoconf 2.57. Invocation command line was
10436 CONFIG_FILES = $CONFIG_FILES
10437 CONFIG_HEADERS = $CONFIG_HEADERS
10438 CONFIG_LINKS = $CONFIG_LINKS
10439 CONFIG_COMMANDS = $CONFIG_COMMANDS
10443 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10447 # Files that config.status was made for.
10448 if test -n "$ac_config_files"; then
10449 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10452 if test -n "$ac_config_headers"; then
10453 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10456 if test -n "$ac_config_links"; then
10457 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10460 if test -n "$ac_config_commands"; then
10461 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10464 cat >>$CONFIG_STATUS <<\_ACEOF
10467 \`$as_me' instantiates files from templates according to the
10468 current configuration.
10470 Usage: $0 [OPTIONS] [FILE]...
10472 -h, --help print this help, then exit
10473 -V, --version print version number, then exit
10474 -q, --quiet do not print progress messages
10475 -d, --debug don't remove temporary files
10476 --recheck update $as_me by reconfiguring in the same conditions
10477 --file=FILE[:TEMPLATE]
10478 instantiate the configuration file FILE
10479 --header=FILE[:TEMPLATE]
10480 instantiate the configuration header FILE
10482 Configuration files:
10485 Configuration headers:
10488 Configuration commands:
10491 Report bugs to <bug-autoconf@gnu.org>."
10494 cat >>$CONFIG_STATUS <<_ACEOF
10497 configured by $0, generated by GNU Autoconf 2.57,
10498 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10500 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10501 Free Software Foundation, Inc.
10502 This config.status script is free software; the Free Software Foundation
10503 gives unlimited permission to copy, distribute and modify it."
10508 cat >>$CONFIG_STATUS <<\_ACEOF
10509 # If no file are specified by the user, then we need to provide default
10510 # value. By we need to know if files were specified by the user.
10516 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10517 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10525 *) # This is not an option, so the user has probably given explicit
10528 ac_need_defaults=false;;
10532 # Handling of the options.
10534 cat >>$CONFIG_STATUS <<\_ACEOF
10535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10537 --version | --vers* | -V )
10538 echo "$ac_cs_version"; exit 0 ;;
10540 # Conflict between --help and --header
10541 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10542 Try \`$0 --help' for more information." >&5
10543 echo "$as_me: error: ambiguous option: $1
10544 Try \`$0 --help' for more information." >&2;}
10545 { (exit 1); exit 1; }; };;
10546 --help | --hel | -h )
10547 echo "$ac_cs_usage"; exit 0 ;;
10548 --debug | --d* | -d )
10550 --file | --fil | --fi | --f )
10552 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10553 ac_need_defaults=false;;
10554 --header | --heade | --head | --hea )
10556 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10557 ac_need_defaults=false;;
10558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10559 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10562 # This is an error.
10563 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10564 Try \`$0 --help' for more information." >&5
10565 echo "$as_me: error: unrecognized option: $1
10566 Try \`$0 --help' for more information." >&2;}
10567 { (exit 1); exit 1; }; } ;;
10569 *) ac_config_targets="$ac_config_targets $1" ;;
10575 ac_configure_extra_args=
10577 if $ac_cs_silent; then
10579 ac_configure_extra_args="$ac_configure_extra_args --silent"
10583 cat >>$CONFIG_STATUS <<_ACEOF
10584 if \$ac_cs_recheck; then
10585 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10586 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10591 cat >>$CONFIG_STATUS <<_ACEOF
10593 # INIT-COMMANDS section.
10596 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10602 cat >>$CONFIG_STATUS <<\_ACEOF
10603 for ac_config_target in $ac_config_targets
10605 case "$ac_config_target" in
10606 # Handling of arguments.
10607 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10608 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10609 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10610 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10611 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10612 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10613 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10614 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10615 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10616 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10617 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10618 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10619 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10620 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10621 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10622 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10623 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10624 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10625 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10626 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10627 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10628 { (exit 1); exit 1; }; };;
10632 # If the user did not use the arguments to specify the items to instantiate,
10633 # then the envvar interface is used. Set only those that are not.
10634 # We use the long form for the default assignment because of an extremely
10635 # bizarre bug on SunOS 4.1.3.
10636 if $ac_need_defaults; then
10637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10642 # Have a temporary directory for convenience. Make it in the build tree
10643 # simply because there is no reason to put it here, and in addition,
10644 # creating and moving files from /tmp can sometimes cause problems.
10645 # Create a temporary directory, and hook for its removal unless debugging.
10648 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10649 trap '{ (exit 1); exit 1; }' 1 2 13 15
10652 # Create a (secure) tmp directory for tmp files.
10655 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10656 test -n "$tmp" && test -d "$tmp"
10659 tmp=./confstat$$-$RANDOM
10660 (umask 077 && mkdir $tmp)
10663 echo "$me: cannot create a temporary directory in ." >&2
10664 { (exit 1); exit 1; }
10669 cat >>$CONFIG_STATUS <<_ACEOF
10672 # CONFIG_FILES section.
10675 # No need to generate the scripts if there are no CONFIG_FILES.
10676 # This happens for instance when ./config.status config.h
10677 if test -n "\$CONFIG_FILES"; then
10678 # Protect against being on the right side of a sed subst in config.status.
10679 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10680 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10681 s,@SHELL@,$SHELL,;t t
10682 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10683 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10684 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10685 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10686 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10687 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10688 s,@exec_prefix@,$exec_prefix,;t t
10689 s,@prefix@,$prefix,;t t
10690 s,@program_transform_name@,$program_transform_name,;t t
10691 s,@bindir@,$bindir,;t t
10692 s,@sbindir@,$sbindir,;t t
10693 s,@libexecdir@,$libexecdir,;t t
10694 s,@datadir@,$datadir,;t t
10695 s,@sysconfdir@,$sysconfdir,;t t
10696 s,@sharedstatedir@,$sharedstatedir,;t t
10697 s,@localstatedir@,$localstatedir,;t t
10698 s,@libdir@,$libdir,;t t
10699 s,@includedir@,$includedir,;t t
10700 s,@oldincludedir@,$oldincludedir,;t t
10701 s,@infodir@,$infodir,;t t
10702 s,@mandir@,$mandir,;t t
10703 s,@build_alias@,$build_alias,;t t
10704 s,@host_alias@,$host_alias,;t t
10705 s,@target_alias@,$target_alias,;t t
10706 s,@DEFS@,$DEFS,;t t
10707 s,@ECHO_C@,$ECHO_C,;t t
10708 s,@ECHO_N@,$ECHO_N,;t t
10709 s,@ECHO_T@,$ECHO_T,;t t
10710 s,@LIBS@,$LIBS,;t t
10711 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10712 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10713 s,@MAINT@,$MAINT,;t t
10714 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10715 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10716 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10717 s,@CYGPATH_W@,$CYGPATH_W,;t t
10718 s,@PACKAGE@,$PACKAGE,;t t
10719 s,@VERSION@,$VERSION,;t t
10720 s,@ACLOCAL@,$ACLOCAL,;t t
10721 s,@AUTOCONF@,$AUTOCONF,;t t
10722 s,@AUTOMAKE@,$AUTOMAKE,;t t
10723 s,@AUTOHEADER@,$AUTOHEADER,;t t
10724 s,@MAKEINFO@,$MAKEINFO,;t t
10725 s,@AMTAR@,$AMTAR,;t t
10726 s,@install_sh@,$install_sh,;t t
10727 s,@STRIP@,$STRIP,;t t
10728 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10729 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10731 s,@SET_MAKE@,$SET_MAKE,;t t
10732 s,@am__leading_dot@,$am__leading_dot,;t t
10733 s,@RANLIB@,$RANLIB,;t t
10734 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10736 s,@CFLAGS@,$CFLAGS,;t t
10737 s,@LDFLAGS@,$LDFLAGS,;t t
10738 s,@CPPFLAGS@,$CPPFLAGS,;t t
10739 s,@ac_ct_CC@,$ac_ct_CC,;t t
10740 s,@EXEEXT@,$EXEEXT,;t t
10741 s,@OBJEXT@,$OBJEXT,;t t
10742 s,@DEPDIR@,$DEPDIR,;t t
10743 s,@am__include@,$am__include,;t t
10744 s,@am__quote@,$am__quote,;t t
10745 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10746 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10747 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10748 s,@CCDEPMODE@,$CCDEPMODE,;t t
10749 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10750 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10752 s,@CXXFLAGS@,$CXXFLAGS,;t t
10753 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10754 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10755 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10756 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10757 s,@wxconfig@,$wxconfig,;t t
10758 s,@build@,$build,;t t
10759 s,@build_cpu@,$build_cpu,;t t
10760 s,@build_vendor@,$build_vendor,;t t
10761 s,@build_os@,$build_os,;t t
10762 s,@host@,$host,;t t
10763 s,@host_cpu@,$host_cpu,;t t
10764 s,@host_vendor@,$host_vendor,;t t
10765 s,@host_os@,$host_os,;t t
10767 s,@EGREP@,$EGREP,;t t
10768 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10769 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10770 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10771 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10772 s,@lamdir@,$lamdir,;t t
10773 s,@mpienable@,$mpienable,;t t
10774 s,@cgibindir@,$cgibindir,;t t
10775 s,@cgibinurl@,$cgibinurl,;t t
10776 s,@webdatadir@,$webdatadir,;t t
10777 s,@webdataurl@,$webdataurl,;t t
10778 s,@htmldir@,$htmldir,;t t
10779 s,@cgiprograms@,$cgiprograms,;t t
10780 s,@htmldata@,$htmldata,;t t
10781 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10782 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10783 s,@webenabled@,$webenabled,;t t
10784 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10785 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10786 s,@X_CFLAGS@,$X_CFLAGS,;t t
10787 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10788 s,@X_LIBS@,$X_LIBS,;t t
10789 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10790 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10791 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10792 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10793 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10794 s,@my_includes@,$my_includes,;t t
10795 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10796 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10797 s,@wxcflags@,$wxcflags,;t t
10798 s,@wxlibs@,$wxlibs,;t t
10799 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10800 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10801 s,@ctlibs@,$ctlibs,;t t
10802 s,@lamprograms@,$lamprograms,;t t
10803 s,@lamdefs@,$lamdefs,;t t
10804 s,@LIBOBJS@,$LIBOBJS,;t t
10805 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10810 cat >>$CONFIG_STATUS <<\_ACEOF
10811 # Split the substitutions into bite-sized pieces for seds with
10812 # small command number limits, like on Digital OSF/1 and HP-UX.
10813 ac_max_sed_lines=48
10814 ac_sed_frag=1 # Number of current file.
10815 ac_beg=1 # First line for current file.
10816 ac_end=$ac_max_sed_lines # Line after last line for current file.
10819 while $ac_more_lines; do
10820 if test $ac_beg -gt 1; then
10821 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10823 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10825 if test ! -s $tmp/subs.frag; then
10826 ac_more_lines=false
10828 # The purpose of the label and of the branching condition is to
10829 # speed up the sed processing (if there are no `@' at all, there
10830 # is no need to browse any of the substitutions).
10831 # These are the two extra sed commands mentioned above.
10833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10834 if test -z "$ac_sed_cmds"; then
10835 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10837 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10839 ac_sed_frag=`expr $ac_sed_frag + 1`
10841 ac_end=`expr $ac_end + $ac_max_sed_lines`
10844 if test -z "$ac_sed_cmds"; then
10847 fi # test -n "$CONFIG_FILES"
10850 cat >>$CONFIG_STATUS <<\_ACEOF
10851 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10852 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10854 - | *:- | *:-:* ) # input from stdin
10856 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10857 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10858 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10859 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10860 * ) ac_file_in=$ac_file.in ;;
10863 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10864 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10865 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10866 X"$ac_file" : 'X\(//\)[^/]' \| \
10867 X"$ac_file" : 'X\(//\)$' \| \
10868 X"$ac_file" : 'X\(/\)' \| \
10869 . : '\(.\)' 2>/dev/null ||
10871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10873 /^X\(\/\/\)$/{ s//\1/; q; }
10874 /^X\(\/\).*/{ s//\1/; q; }
10876 { if $as_mkdir_p; then
10881 while test ! -d "$as_dir"; do
10882 as_dirs="$as_dir $as_dirs"
10883 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10884 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10885 X"$as_dir" : 'X\(//\)[^/]' \| \
10886 X"$as_dir" : 'X\(//\)$' \| \
10887 X"$as_dir" : 'X\(/\)' \| \
10888 . : '\(.\)' 2>/dev/null ||
10890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10891 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10892 /^X\(\/\/\)$/{ s//\1/; q; }
10893 /^X\(\/\).*/{ s//\1/; q; }
10896 test ! -n "$as_dirs" || mkdir $as_dirs
10897 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10898 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10899 { (exit 1); exit 1; }; }; }
10903 if test "$ac_dir" != .; then
10904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10905 # A "../" for each directory in $ac_dir_suffix.
10906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10908 ac_dir_suffix= ac_top_builddir=
10912 .) # No --srcdir option. We are building in place.
10914 if test -z "$ac_top_builddir"; then
10917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10919 [\\/]* | ?:[\\/]* ) # Absolute path.
10920 ac_srcdir=$srcdir$ac_dir_suffix;
10921 ac_top_srcdir=$srcdir ;;
10922 *) # Relative path.
10923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10926 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10928 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10929 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10930 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10931 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10935 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10936 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10939 if test x"$ac_file" != x-; then
10940 { echo "$as_me:$LINENO: creating $ac_file" >&5
10941 echo "$as_me: creating $ac_file" >&6;}
10944 # Let's still pretend it is `configure' which instantiates (i.e., don't
10945 # use $as_me), people would be surprised to read:
10946 # /* config.h. Generated by config.status. */
10947 if test x"$ac_file" = x-; then
10950 configure_input="$ac_file. "
10952 configure_input=$configure_input"Generated from `echo $ac_file_in |
10953 sed 's,.*/,,'` by configure."
10955 # First look for the input files in the build tree, otherwise in the
10957 ac_file_inputs=`IFS=:
10958 for f in $ac_file_in; do
10960 -) echo $tmp/stdin ;;
10962 # Absolute (can't be DOS-style, as IFS=:)
10963 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10964 echo "$as_me: error: cannot find input file: $f" >&2;}
10965 { (exit 1); exit 1; }; }
10968 if test -f "$f"; then
10971 elif test -f "$srcdir/$f"; then
10976 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10977 echo "$as_me: error: cannot find input file: $f" >&2;}
10978 { (exit 1); exit 1; }; }
10981 done` || { (exit 1); exit 1; }
10983 cat >>$CONFIG_STATUS <<_ACEOF
10987 cat >>$CONFIG_STATUS <<\_ACEOF
10989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10990 s,@configure_input@,$configure_input,;t t
10991 s,@srcdir@,$ac_srcdir,;t t
10992 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10993 s,@top_srcdir@,$ac_top_srcdir,;t t
10994 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10995 s,@builddir@,$ac_builddir,;t t
10996 s,@abs_builddir@,$ac_abs_builddir,;t t
10997 s,@top_builddir@,$ac_top_builddir,;t t
10998 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10999 s,@INSTALL@,$ac_INSTALL,;t t
11000 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11002 if test x"$ac_file" != x-; then
11003 mv $tmp/out $ac_file
11011 cat >>$CONFIG_STATUS <<\_ACEOF
11014 # CONFIG_HEADER section.
11017 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11018 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11020 # ac_d sets the value in "#define NAME VALUE" lines.
11021 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11022 ac_dB='[ ].*$,\1#\2'
11025 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11026 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11027 ac_uB='$,\1#\2define\3'
11031 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11034 - | *:- | *:-:* ) # input from stdin
11036 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11037 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11038 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11040 * ) ac_file_in=$ac_file.in ;;
11043 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11044 echo "$as_me: creating $ac_file" >&6;}
11046 # First look for the input files in the build tree, otherwise in the
11048 ac_file_inputs=`IFS=:
11049 for f in $ac_file_in; do
11051 -) echo $tmp/stdin ;;
11053 # Absolute (can't be DOS-style, as IFS=:)
11054 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11055 echo "$as_me: error: cannot find input file: $f" >&2;}
11056 { (exit 1); exit 1; }; }
11059 if test -f "$f"; then
11062 elif test -f "$srcdir/$f"; then
11067 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11068 echo "$as_me: error: cannot find input file: $f" >&2;}
11069 { (exit 1); exit 1; }; }
11072 done` || { (exit 1); exit 1; }
11073 # Remove the trailing spaces.
11074 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11078 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11079 # `conftest.undefs', that substitutes the proper values into
11080 # config.h.in to produce config.h. The first handles `#define'
11081 # templates, and the second `#undef' templates.
11082 # And first: Protect against being on the right side of a sed subst in
11083 # config.status. Protect against being in an unquoted here document
11084 # in config.status.
11085 rm -f conftest.defines conftest.undefs
11086 # Using a here document instead of a string reduces the quoting nightmare.
11087 # Putting comments in sed scripts is not portable.
11089 # `end' is used to avoid that the second main sed command (meant for
11090 # 0-ary CPP macros) applies to n-ary macro definitions.
11091 # See the Autoconf documentation for `clear'.
11092 cat >confdef2sed.sed <<\_ACEOF
11097 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11099 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11102 # If some macros were called several times there might be several times
11103 # the same #defines, which is useless. Nevertheless, we may not want to
11104 # sort them, since we want the *last* AC-DEFINE to be honored.
11105 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11106 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11107 rm -f confdef2sed.sed
11109 # This sed command replaces #undef with comments. This is necessary, for
11110 # example, in the case of _POSIX_SOURCE, which is predefined and required
11111 # on some systems where configure will not decide to define it.
11112 cat >>conftest.undefs <<\_ACEOF
11113 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11116 # Break up conftest.defines because some shells have a limit on the size
11117 # of here documents, and old seds have small limits too (100 cmds).
11118 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11119 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11120 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11121 echo ' :' >>$CONFIG_STATUS
11122 rm -f conftest.tail
11123 while grep . conftest.defines >/dev/null
11125 # Write a limited-size here document to $tmp/defines.sed.
11126 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11127 # Speed up: don't consider the non `#define' lines.
11128 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11129 # Work around the forget-to-reset-the-flag bug.
11130 echo 't clr' >>$CONFIG_STATUS
11131 echo ': clr' >>$CONFIG_STATUS
11132 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11134 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11136 mv $tmp/out $tmp/in
11138 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11139 rm -f conftest.defines
11140 mv conftest.tail conftest.defines
11142 rm -f conftest.defines
11143 echo ' fi # grep' >>$CONFIG_STATUS
11144 echo >>$CONFIG_STATUS
11146 # Break up conftest.undefs because some shells have a limit on the size
11147 # of here documents, and old seds have small limits too (100 cmds).
11148 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11149 rm -f conftest.tail
11150 while grep . conftest.undefs >/dev/null
11152 # Write a limited-size here document to $tmp/undefs.sed.
11153 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11154 # Speed up: don't consider the non `#undef'
11155 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11156 # Work around the forget-to-reset-the-flag bug.
11157 echo 't clr' >>$CONFIG_STATUS
11158 echo ': clr' >>$CONFIG_STATUS
11159 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11161 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11163 mv $tmp/out $tmp/in
11165 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11166 rm -f conftest.undefs
11167 mv conftest.tail conftest.undefs
11169 rm -f conftest.undefs
11171 cat >>$CONFIG_STATUS <<\_ACEOF
11172 # Let's still pretend it is `configure' which instantiates (i.e., don't
11173 # use $as_me), people would be surprised to read:
11174 # /* config.h. Generated by config.status. */
11175 if test x"$ac_file" = x-; then
11176 echo "/* Generated by configure. */" >$tmp/config.h
11178 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11180 cat $tmp/in >>$tmp/config.h
11182 if test x"$ac_file" != x-; then
11183 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11184 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11185 echo "$as_me: $ac_file is unchanged" >&6;}
11187 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11189 X"$ac_file" : 'X\(//\)[^/]' \| \
11190 X"$ac_file" : 'X\(//\)$' \| \
11191 X"$ac_file" : 'X\(/\)' \| \
11192 . : '\(.\)' 2>/dev/null ||
11194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11196 /^X\(\/\/\)$/{ s//\1/; q; }
11197 /^X\(\/\).*/{ s//\1/; q; }
11199 { if $as_mkdir_p; then
11204 while test ! -d "$as_dir"; do
11205 as_dirs="$as_dir $as_dirs"
11206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11208 X"$as_dir" : 'X\(//\)[^/]' \| \
11209 X"$as_dir" : 'X\(//\)$' \| \
11210 X"$as_dir" : 'X\(/\)' \| \
11211 . : '\(.\)' 2>/dev/null ||
11213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11215 /^X\(\/\/\)$/{ s//\1/; q; }
11216 /^X\(\/\).*/{ s//\1/; q; }
11219 test ! -n "$as_dirs" || mkdir $as_dirs
11220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11221 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11222 { (exit 1); exit 1; }; }; }
11225 mv $tmp/config.h $ac_file
11229 rm -f $tmp/config.h
11231 # Compute $ac_file's index in $config_headers.
11233 for _am_header in $config_headers :; do
11234 case $_am_header in
11235 $ac_file | $ac_file:* )
11238 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11241 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11242 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11243 X$ac_file : 'X\(//\)[^/]' \| \
11244 X$ac_file : 'X\(//\)$' \| \
11245 X$ac_file : 'X\(/\)' \| \
11246 . : '\(.\)' 2>/dev/null ||
11248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11250 /^X\(\/\/\)$/{ s//\1/; q; }
11251 /^X\(\/\).*/{ s//\1/; q; }
11252 s/.*/./; q'`/stamp-h$_am_stamp_count
11255 cat >>$CONFIG_STATUS <<\_ACEOF
11258 # CONFIG_COMMANDS section.
11260 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11261 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11262 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11263 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11264 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11265 X"$ac_dest" : 'X\(//\)[^/]' \| \
11266 X"$ac_dest" : 'X\(//\)$' \| \
11267 X"$ac_dest" : 'X\(/\)' \| \
11268 . : '\(.\)' 2>/dev/null ||
11270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11272 /^X\(\/\/\)$/{ s//\1/; q; }
11273 /^X\(\/\).*/{ s//\1/; q; }
11277 if test "$ac_dir" != .; then
11278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11279 # A "../" for each directory in $ac_dir_suffix.
11280 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11282 ac_dir_suffix= ac_top_builddir=
11286 .) # No --srcdir option. We are building in place.
11288 if test -z "$ac_top_builddir"; then
11291 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11293 [\\/]* | ?:[\\/]* ) # Absolute path.
11294 ac_srcdir=$srcdir$ac_dir_suffix;
11295 ac_top_srcdir=$srcdir ;;
11296 *) # Relative path.
11297 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11298 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11300 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11302 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11303 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11304 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11305 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11308 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11309 echo "$as_me: executing $ac_dest commands" >&6;}
11311 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11312 # Strip MF so we end up with the name of the file.
11313 mf=`echo "$mf" | sed -e 's/:.*$//'`
11314 # Check whether this is an Automake generated Makefile or not.
11315 # We used to match only the files named `Makefile.in', but
11316 # some people rename them; so instead we look at the file content.
11317 # Grep'ing the first line is not enough: some people post-process
11318 # each Makefile.in and add a new line on top of each file to say so.
11319 # So let's grep whole file.
11320 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11321 dirpart=`(dirname "$mf") 2>/dev/null ||
11322 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11323 X"$mf" : 'X\(//\)[^/]' \| \
11324 X"$mf" : 'X\(//\)$' \| \
11325 X"$mf" : 'X\(/\)' \| \
11326 . : '\(.\)' 2>/dev/null ||
11328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11330 /^X\(\/\/\)$/{ s//\1/; q; }
11331 /^X\(\/\).*/{ s//\1/; q; }
11336 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11337 # Extract the definition of DEP_FILES from the Makefile without
11339 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11340 test -z "$DEPDIR" && continue
11341 # When using ansi2knr, U may be empty or an underscore; expand it
11342 U=`sed -n -e '/^U = / s///p' < "$mf"`
11343 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11344 # We invoke sed twice because it is the simplest approach to
11345 # changing $(DEPDIR) to its actual value in the expansion.
11346 for file in `sed -n -e '
11347 /^DEP_FILES = .*\\\\$/ {
11356 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11357 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11358 # Make sure the directory exists.
11359 test -f "$dirpart/$file" && continue
11360 fdir=`(dirname "$file") 2>/dev/null ||
11361 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11362 X"$file" : 'X\(//\)[^/]' \| \
11363 X"$file" : 'X\(//\)$' \| \
11364 X"$file" : 'X\(/\)' \| \
11365 . : '\(.\)' 2>/dev/null ||
11367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11369 /^X\(\/\/\)$/{ s//\1/; q; }
11370 /^X\(\/\).*/{ s//\1/; q; }
11372 { if $as_mkdir_p; then
11373 mkdir -p $dirpart/$fdir
11375 as_dir=$dirpart/$fdir
11377 while test ! -d "$as_dir"; do
11378 as_dirs="$as_dir $as_dirs"
11379 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11381 X"$as_dir" : 'X\(//\)[^/]' \| \
11382 X"$as_dir" : 'X\(//\)$' \| \
11383 X"$as_dir" : 'X\(/\)' \| \
11384 . : '\(.\)' 2>/dev/null ||
11386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11388 /^X\(\/\/\)$/{ s//\1/; q; }
11389 /^X\(\/\).*/{ s//\1/; q; }
11392 test ! -n "$as_dirs" || mkdir $as_dirs
11393 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11394 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11395 { (exit 1); exit 1; }; }; }
11397 # echo "creating $dirpart/$file"
11398 echo '# dummy' > "$dirpart/$file"
11406 cat >>$CONFIG_STATUS <<\_ACEOF
11408 { (exit 0); exit 0; }
11410 chmod +x $CONFIG_STATUS
11411 ac_clean_files=$ac_clean_files_save
11414 # configure is writing to config.log, and then calls config.status.
11415 # config.status does its own redirection, appending to config.log.
11416 # Unfortunately, on DOS this fails, as config.log is still kept open
11417 # by configure, so config.status won't be able to write to it; its
11418 # output is simply discarded. So we exec the FD to /dev/null,
11419 # effectively closing config.log, so it can be properly (re)opened and
11420 # appended to by config.status. When coming back to configure, we
11421 # need to make the FD available again.
11422 if test "$no_create" != yes; then
11424 ac_config_status_args=
11425 test "$silent" = yes &&
11426 ac_config_status_args="$ac_config_status_args --quiet"
11428 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11430 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11431 # would make configure fail if this is the last instruction.
11432 $ac_cs_success || { (exit 1); exit 1; }