2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
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
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
270 ac_unique_file="src/ctsim.cpp"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
275 # include <sys/types.h>
278 # include <sys/stat.h>
289 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <strings.h>
298 # include <inttypes.h>
308 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AWK RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX wxconfig build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP INCLUDED_GETOPT_LONG_TRUE INCLUDED_GETOPT_LONG_FALSE DEBUG_TRUE DEBUG_FALSE lamdir mpienable cgibindir cgibinurl webdatadir webdataurl htmldir cgiprograms htmldata USE_HTML_TRUE USE_HTML_FALSE webenabled USE_LAM_TRUE USE_LAM_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_TOOLKIT_LIBS X_BASIC_LIBS NO_X_TRUE NO_X_FALSE my_includes HAVE_SGP_TRUE HAVE_SGP_FALSE HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE wxcflags wxlibs ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
311 # Initialize some variables set by options.
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
323 program_transform_name=s,x,x,
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
352 # If the previous option needs an argument, assign it.
353 if test -n "$ac_prev"; then
354 eval "$ac_prev=\$ac_option"
359 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361 # Accept the important Cygnus configure options, so we can diagnose typos.
365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
370 -build | --build | --buil | --bui | --bu)
371 ac_prev=build_alias ;;
372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373 build_alias=$ac_optarg ;;
375 -cache-file | --cache-file | --cache-fil | --cache-fi \
376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377 ac_prev=cache_file ;;
378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380 cache_file=$ac_optarg ;;
383 cache_file=config.cache ;;
385 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
387 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
389 datadir=$ac_optarg ;;
391 -disable-* | --disable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 eval "enable_$ac_feature=no" ;;
400 -enable-* | --enable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
411 eval "enable_$ac_feature='$ac_optarg'" ;;
413 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415 | --exec | --exe | --ex)
416 ac_prev=exec_prefix ;;
417 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419 | --exec=* | --exe=* | --ex=*)
420 exec_prefix=$ac_optarg ;;
422 -gas | --gas | --ga | --g)
423 # Obsolete; use --with-gas.
426 -help | --help | --hel | --he | -h)
428 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429 ac_init_help=recursive ;;
430 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431 ac_init_help=short ;;
433 -host | --host | --hos | --ho)
434 ac_prev=host_alias ;;
435 -host=* | --host=* | --hos=* | --ho=*)
436 host_alias=$ac_optarg ;;
438 -includedir | --includedir | --includedi | --included | --include \
439 | --includ | --inclu | --incl | --inc)
440 ac_prev=includedir ;;
441 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442 | --includ=* | --inclu=* | --incl=* | --inc=*)
443 includedir=$ac_optarg ;;
445 -infodir | --infodir | --infodi | --infod | --info | --inf)
447 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448 infodir=$ac_optarg ;;
450 -libdir | --libdir | --libdi | --libd)
452 -libdir=* | --libdir=* | --libdi=* | --libd=*)
455 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456 | --libexe | --libex | --libe)
457 ac_prev=libexecdir ;;
458 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459 | --libexe=* | --libex=* | --libe=*)
460 libexecdir=$ac_optarg ;;
462 -localstatedir | --localstatedir | --localstatedi | --localstated \
463 | --localstate | --localstat | --localsta | --localst \
464 | --locals | --local | --loca | --loc | --lo)
465 ac_prev=localstatedir ;;
466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469 localstatedir=$ac_optarg ;;
471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 # Obsolete; use --without-fp.
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c | -n)
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
488 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490 | --oldin | --oldi | --old | --ol | --o)
491 ac_prev=oldincludedir ;;
492 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495 oldincludedir=$ac_optarg ;;
497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
502 -program-prefix | --program-prefix | --program-prefi | --program-pref \
503 | --program-pre | --program-pr | --program-p)
504 ac_prev=program_prefix ;;
505 -program-prefix=* | --program-prefix=* | --program-prefi=* \
506 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507 program_prefix=$ac_optarg ;;
509 -program-suffix | --program-suffix | --program-suffi | --program-suff \
510 | --program-suf | --program-su | --program-s)
511 ac_prev=program_suffix ;;
512 -program-suffix=* | --program-suffix=* | --program-suffi=* \
513 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514 program_suffix=$ac_optarg ;;
516 -program-transform-name | --program-transform-name \
517 | --program-transform-nam | --program-transform-na \
518 | --program-transform-n | --program-transform- \
519 | --program-transform | --program-transfor \
520 | --program-transfo | --program-transf \
521 | --program-trans | --program-tran \
522 | --progr-tra | --program-tr | --program-t)
523 ac_prev=program_transform_name ;;
524 -program-transform-name=* | --program-transform-name=* \
525 | --program-transform-nam=* | --program-transform-na=* \
526 | --program-transform-n=* | --program-transform-=* \
527 | --program-transform=* | --program-transfor=* \
528 | --program-transfo=* | --program-transf=* \
529 | --program-trans=* | --program-tran=* \
530 | --progr-tra=* | --program-tr=* | --program-t=*)
531 program_transform_name=$ac_optarg ;;
533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534 | -silent | --silent | --silen | --sile | --sil)
537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
541 sbindir=$ac_optarg ;;
543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545 | --sharedst | --shareds | --shared | --share | --shar \
547 ac_prev=sharedstatedir ;;
548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
552 sharedstatedir=$ac_optarg ;;
554 -site | --site | --sit)
556 -site=* | --site=* | --sit=*)
559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565 | --syscon | --sysco | --sysc | --sys | --sy)
566 ac_prev=sysconfdir ;;
567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569 sysconfdir=$ac_optarg ;;
571 -target | --target | --targe | --targ | --tar | --ta | --t)
572 ac_prev=target_alias ;;
573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574 target_alias=$ac_optarg ;;
576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
579 -version | --version | --versio | --versi | --vers | -V)
583 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584 # Reject names that are not valid shell variable names.
585 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586 { echo "$as_me: error: invalid package name: $ac_package" >&2
587 { (exit 1); exit 1; }; }
588 ac_package=`echo $ac_package| sed 's/-/_/g'`
590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593 eval "with_$ac_package='$ac_optarg'" ;;
595 -without-* | --without-*)
596 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid package name: $ac_package" >&2
600 { (exit 1); exit 1; }; }
601 ac_package=`echo $ac_package | sed 's/-/_/g'`
602 eval "with_$ac_package=no" ;;
605 # Obsolete; use --with-x.
608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609 | --x-incl | --x-inc | --x-in | --x-i)
610 ac_prev=x_includes ;;
611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613 x_includes=$ac_optarg ;;
615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617 ac_prev=x_libraries ;;
618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620 x_libraries=$ac_optarg ;;
622 -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624 { (exit 1); exit 1; }; }
628 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629 # Reject names that are not valid shell variable names.
630 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632 { (exit 1); exit 1; }; }
633 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634 eval "$ac_envvar='$ac_optarg'"
638 # FIXME: should be removed in autoconf 3.0.
639 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 if test -n "$ac_prev"; then
649 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650 { echo "$as_me: error: missing argument to $ac_option" >&2
651 { (exit 1); exit 1; }; }
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
657 eval ac_val=$`echo $ac_var`
659 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661 { (exit 1); exit 1; }; };;
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667 localstatedir libdir includedir oldincludedir infodir mandir
669 eval ac_val=$`echo $ac_var`
671 [\\/$]* | ?:[\\/]* ) ;;
672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673 { (exit 1); exit 1; }; };;
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686 if test "x$build_alias" = x; then
687 cross_compiling=maybe
688 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689 If a cross compiler is detected then cross compile mode will be used." >&2
690 elif test "x$build_alias" != "x$host_alias"; then
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698 test "$silent" = yes && exec 6>/dev/null
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703 ac_srcdir_defaulted=yes
704 # Try the directory containing this script, then its parent.
705 ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707 X"$0" : 'X\(//\)[^/]' \| \
708 X"$0" : 'X\(//\)$' \| \
709 X"$0" : 'X\(/\)' \| \
710 . : '\(.\)' 2>/dev/null ||
712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714 /^X\(\/\/\)$/{ s//\1/; q; }
715 /^X\(\/\).*/{ s//\1/; q; }
718 if test ! -r $srcdir/$ac_unique_file; then
722 ac_srcdir_defaulted=no
724 if test ! -r $srcdir/$ac_unique_file; then
725 if test "$ac_srcdir_defaulted" = yes; then
726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727 { (exit 1); exit 1; }; }
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730 { (exit 1); exit 1; }; }
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735 { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CXX_set=${CXX+set}
766 ac_env_CXX_value=$CXX
767 ac_cv_env_CXX_set=${CXX+set}
768 ac_cv_env_CXX_value=$CXX
769 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
770 ac_env_CXXFLAGS_value=$CXXFLAGS
771 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
772 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
779 # Report the --help message.
781 if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
785 \`configure' configures this package to adapt to many kinds of systems.
787 Usage: $0 [OPTION]... [VAR=VALUE]...
789 To assign environment variables (e.g., CC, CFLAGS...), specify them as
790 VAR=VALUE. See below for descriptions of some of the useful variables.
792 Defaults for the options are specified in brackets.
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808 Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 By default, \`make install' will install all the files in
815 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817 for instance \`--prefix=\$HOME'.
819 For better control, use the options below.
821 Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
853 if test -n "$ac_init_help"; then
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --enable-debug Turn on debugging
861 --enable-verbose-warnings
862 Enable verbose compiler warnings.
864 Enable static executables.
865 --enable-dmalloc Use dmalloc memory allocation
866 --enable-efence Use ElectricFence memory allocation
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-lam=PATH Set path of LAM MPI
872 --with-ctn=PATH Set path of CTN DICOM library
873 --with-cgibin-dir=PATH Set path of CGI binaries directory
874 --with-cgibin-url=PATH Set URL path of CGI binaries
875 --with-webdata-dir=PATH Set path of webdata
876 --with-webdata-url=PATH Set URL path of webdata
877 --with-html-dir=PATH Set directory of html files
878 --with-x use the X Window System
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
887 CXX C++ compiler command
888 CXXFLAGS C++ compiler flags
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 ac_dir_suffix= ac_top_builddir=
913 .) # No --srcdir option. We are building in place.
915 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
929 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
930 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
931 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
932 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
935 # Check for guested configure; otherwise get Cygnus style configure.
936 if test -f $ac_srcdir/configure.gnu; then
938 $SHELL $ac_srcdir/configure.gnu --help=recursive
939 elif test -f $ac_srcdir/configure; then
941 $SHELL $ac_srcdir/configure --help=recursive
942 elif test -f $ac_srcdir/configure.ac ||
943 test -f $ac_srcdir/configure.in; then
947 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
953 test -n "$ac_init_help" && exit 0
954 if $ac_init_version; then
957 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
958 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by $as_me, which was
970 generated by GNU Autoconf 2.54. Invocation command line was
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n ) continue ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1037 # Get rid of the leading space.
1041 # When interrupted or exit'd, cleanup temporary files, and complete
1042 # config.log. We remove comments because anyway the quotes in there
1043 # would cause problems or look ugly.
1044 # WARNING: Be sure not to use single quotes in there, as some shells,
1045 # such as our DU 5.0 friend, will then `close' the trap.
1046 trap 'exit_status=$?
1047 # Save into config.log some information that might help in debugging.
1052 ## ---------------- ##
1053 ## Cache variables. ##
1054 ## ---------------- ##
1057 # The following way of writing the cache mishandles newlines in values,
1060 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 ## ----------------- ##
1076 ## Output variables. ##
1077 ## ----------------- ##
1080 for ac_var in $ac_subst_vars
1082 eval ac_val=$`echo $ac_var`
1083 echo "$ac_var='"'"'$ac_val'"'"'"
1087 if test -n "$ac_subst_files"; then
1094 for ac_var in $ac_subst_files
1096 eval ac_val=$`echo $ac_var`
1097 echo "$ac_var='"'"'$ac_val'"'"'"
1102 if test -s confdefs.h; then
1109 sed "/^$/d" confdefs.h | sort
1112 test "$ac_signal" != 0 &&
1113 echo "$as_me: caught signal $ac_signal"
1114 echo "$as_me: exit $exit_status"
1116 rm -f core core.* *.core &&
1117 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1120 for ac_signal in 1 2 13 15; do
1121 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1125 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1126 rm -rf conftest* confdefs.h
1127 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1130 # Predefined preprocessor variables.
1132 cat >>confdefs.h <<_ACEOF
1133 #define PACKAGE_NAME "$PACKAGE_NAME"
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_STRING "$PACKAGE_STRING"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1157 # Let the site file select an alternate cache file if it wants to.
1158 # Prefer explicitly selected file to automatically selected ones.
1159 if test -z "$CONFIG_SITE"; then
1160 if test "x$prefix" != xNONE; then
1161 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1163 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1166 for ac_site_file in $CONFIG_SITE; do
1167 if test -r "$ac_site_file"; then
1168 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1169 echo "$as_me: loading site script $ac_site_file" >&6;}
1170 sed 's/^/| /' "$ac_site_file" >&5
1175 if test -r "$cache_file"; then
1176 # Some versions of bash will fail to source /dev/null (special
1177 # files actually), so we avoid doing that.
1178 if test -f "$cache_file"; then
1179 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1180 echo "$as_me: loading cache $cache_file" >&6;}
1182 [\\/]* | ?:[\\/]* ) . $cache_file;;
1183 *) . ./$cache_file;;
1187 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1188 echo "$as_me: creating cache $cache_file" >&6;}
1192 # Check that the precious variables saved in the cache have kept the same
1194 ac_cache_corrupted=false
1195 for ac_var in `(set) 2>&1 |
1196 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1197 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1198 eval ac_new_set=\$ac_env_${ac_var}_set
1199 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1200 eval ac_new_val="\$ac_env_${ac_var}_value"
1201 case $ac_old_set,$ac_new_set in
1203 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1204 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1205 ac_cache_corrupted=: ;;
1207 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1208 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1209 ac_cache_corrupted=: ;;
1212 if test "x$ac_old_val" != "x$ac_new_val"; then
1213 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1214 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1215 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1216 echo "$as_me: former value: $ac_old_val" >&2;}
1217 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1218 echo "$as_me: current value: $ac_new_val" >&2;}
1219 ac_cache_corrupted=:
1222 # Pass precious variables to config.status.
1223 if test "$ac_new_set" = set; then
1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1227 *) ac_arg=$ac_var=$ac_new_val ;;
1229 case " $ac_configure_args " in
1230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1231 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1235 if $ac_cache_corrupted; then
1236 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1237 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1238 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1239 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1240 { (exit 1); exit 1; }; }
1244 ac_cpp='$CPP $CPPFLAGS'
1245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1268 am__api_version="1.4"
1270 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1271 if test -f $ac_dir/install-sh; then
1273 ac_install_sh="$ac_aux_dir/install-sh -c"
1275 elif test -f $ac_dir/install.sh; then
1277 ac_install_sh="$ac_aux_dir/install.sh -c"
1279 elif test -f $ac_dir/shtool; then
1281 ac_install_sh="$ac_aux_dir/shtool install -c"
1285 if test -z "$ac_aux_dir"; then
1286 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1287 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1288 { (exit 1); exit 1; }; }
1290 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1291 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1292 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1294 # Find a good install program. We prefer a C program (faster),
1295 # so one script is as good as another. But avoid the broken or
1296 # incompatible versions:
1297 # SysV /etc/install, /usr/sbin/install
1298 # SunOS /usr/etc/install
1299 # IRIX /sbin/install
1301 # AmigaOS /C/install, which installs bootblocks on floppy discs
1302 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1303 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1304 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1305 # ./install, which can be erroneously created by make from ./install.sh.
1306 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1307 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1308 if test -z "$INSTALL"; then
1309 if test "${ac_cv_path_install+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1316 test -z "$as_dir" && as_dir=.
1317 # Account for people who put trailing slashes in PATH elements.
1319 ./ | .// | /cC/* | \
1320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1323 # OSF1 and SCO ODT 3.0 have their own names for install.
1324 # Don't use installbsd from OSF since it installs stuff as root
1326 for ac_prog in ginstall scoinst install; do
1327 for ac_exec_ext in '' $ac_executable_extensions; do
1328 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1329 if test $ac_prog = install &&
1330 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1331 # AIX install. It has an incompatible calling convention.
1333 elif test $ac_prog = install &&
1334 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1335 # program-specific install script used by HP pwplus--don't use.
1338 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1350 if test "${ac_cv_path_install+set}" = set; then
1351 INSTALL=$ac_cv_path_install
1353 # As a last resort, use the slow shell script. We don't cache a
1354 # path for INSTALL within a source directory, because that will
1355 # break other packages using the cache if that directory is
1356 # removed, or if the path is relative.
1357 INSTALL=$ac_install_sh
1360 echo "$as_me:$LINENO: result: $INSTALL" >&5
1361 echo "${ECHO_T}$INSTALL" >&6
1363 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1364 # It thinks the first close brace ends the variable substitution.
1365 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1367 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1369 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1371 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1372 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1375 echo timestamp > conftestfile
1376 # Do `set' in a subshell so we don't clobber the current shell's
1377 # arguments. Must try -L first in case configure is actually a
1378 # symlink; some systems play weird games with the mod time of symlinks
1379 # (eg FreeBSD returns the mod time of the symlink's containing
1382 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1383 if test "$*" = "X"; then
1385 set X `ls -t $srcdir/configure conftestfile`
1387 if test "$*" != "X $srcdir/configure conftestfile" \
1388 && test "$*" != "X conftestfile $srcdir/configure"; then
1390 # If neither matched, then we have a broken ls. This can happen
1391 # if, for instance, CONFIG_SHELL is bash and it inherits a
1392 # broken ls alias from the environment. This has actually
1393 # happened. Such a system could not be considered "sane".
1394 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1395 alias in your environment" >&5
1396 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1397 alias in your environment" >&2;}
1398 { (exit 1); exit 1; }; }
1401 test "$2" = conftestfile
1407 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1408 Check your system clock" >&5
1409 echo "$as_me: error: newly created file is older than distributed files!
1410 Check your system clock" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: yes" >&5
1415 echo "${ECHO_T}yes" >&6
1416 test "$program_prefix" != NONE &&
1417 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1418 # Use a double $ so make ignores it.
1419 test "$program_suffix" != NONE &&
1420 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1421 # Double any \ or $. echo might interpret backslashes.
1422 # By default was `s,x,x', remove it if useless.
1423 cat <<\_ACEOF >conftest.sed
1424 s/[\\$]/&&/g;s/;s,x,x,$//
1426 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1429 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1430 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1431 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1432 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 cat >conftest.make <<\_ACEOF
1437 @echo 'ac_maketemp="${MAKE}"'
1439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1440 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1441 if test -n "$ac_maketemp"; then
1442 eval ac_cv_prog_make_${ac_make}_set=yes
1444 eval ac_cv_prog_make_${ac_make}_set=no
1448 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1449 echo "$as_me:$LINENO: result: yes" >&5
1450 echo "${ECHO_T}yes" >&6
1453 echo "$as_me:$LINENO: result: no" >&5
1454 echo "${ECHO_T}no" >&6
1455 SET_MAKE="MAKE=${MAKE-make}"
1463 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1464 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1465 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1466 { (exit 1); exit 1; }; }
1469 cat >>confdefs.h <<_ACEOF
1470 #define PACKAGE "$PACKAGE"
1474 cat >>confdefs.h <<_ACEOF
1475 #define VERSION "$VERSION"
1480 missing_dir=`cd $ac_aux_dir && pwd`
1481 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1482 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1483 # Run test in a subshell; some versions of sh will print an error if
1484 # an executable is not found, even if stderr is redirected.
1485 # Redirect stdin to placate older versions of autoconf. Sigh.
1486 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1487 ACLOCAL=aclocal-${am__api_version}
1488 echo "$as_me:$LINENO: result: found" >&5
1489 echo "${ECHO_T}found" >&6
1491 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1492 echo "$as_me:$LINENO: result: missing" >&5
1493 echo "${ECHO_T}missing" >&6
1496 echo "$as_me:$LINENO: checking for working autoconf" >&5
1497 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1498 # Run test in a subshell; some versions of sh will print an error if
1499 # an executable is not found, even if stderr is redirected.
1500 # Redirect stdin to placate older versions of autoconf. Sigh.
1501 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1503 echo "$as_me:$LINENO: result: found" >&5
1504 echo "${ECHO_T}found" >&6
1506 AUTOCONF="$missing_dir/missing autoconf"
1507 echo "$as_me:$LINENO: result: missing" >&5
1508 echo "${ECHO_T}missing" >&6
1511 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1512 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1513 # Run test in a subshell; some versions of sh will print an error if
1514 # an executable is not found, even if stderr is redirected.
1515 # Redirect stdin to placate older versions of autoconf. Sigh.
1516 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1517 AUTOMAKE=automake-${am__api_version}
1518 echo "$as_me:$LINENO: result: found" >&5
1519 echo "${ECHO_T}found" >&6
1521 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1522 echo "$as_me:$LINENO: result: missing" >&5
1523 echo "${ECHO_T}missing" >&6
1526 echo "$as_me:$LINENO: checking for working autoheader" >&5
1527 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1528 # Run test in a subshell; some versions of sh will print an error if
1529 # an executable is not found, even if stderr is redirected.
1530 # Redirect stdin to placate older versions of autoconf. Sigh.
1531 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1532 AUTOHEADER=autoheader
1533 echo "$as_me:$LINENO: result: found" >&5
1534 echo "${ECHO_T}found" >&6
1536 AUTOHEADER="$missing_dir/missing autoheader"
1537 echo "$as_me:$LINENO: result: missing" >&5
1538 echo "${ECHO_T}missing" >&6
1541 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1542 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1543 # Run test in a subshell; some versions of sh will print an error if
1544 # an executable is not found, even if stderr is redirected.
1545 # Redirect stdin to placate older versions of autoconf. Sigh.
1546 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1548 echo "$as_me:$LINENO: result: found" >&5
1549 echo "${ECHO_T}found" >&6
1551 MAKEINFO="$missing_dir/missing makeinfo"
1552 echo "$as_me:$LINENO: result: missing" >&5
1553 echo "${ECHO_T}missing" >&6
1558 ac_config_headers="$ac_config_headers config.h"
1560 ac_config_commands="$ac_config_commands default-1"
1563 for ac_prog in gawk mawk nawk awk
1565 # Extract the first word of "$ac_prog", so it can be a program name with args.
1566 set dummy $ac_prog; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_AWK+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 if test -n "$AWK"; then
1573 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 test -z "$as_dir" && as_dir=.
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 ac_cv_prog_AWK="$ac_prog"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 if test -n "$AWK"; then
1593 echo "$as_me:$LINENO: result: $AWK" >&5
1594 echo "${ECHO_T}$AWK" >&6
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1600 test -n "$AWK" && break
1603 # Find a good install program. We prefer a C program (faster),
1604 # so one script is as good as another. But avoid the broken or
1605 # incompatible versions:
1606 # SysV /etc/install, /usr/sbin/install
1607 # SunOS /usr/etc/install
1608 # IRIX /sbin/install
1610 # AmigaOS /C/install, which installs bootblocks on floppy discs
1611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1614 # ./install, which can be erroneously created by make from ./install.sh.
1615 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1616 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1617 if test -z "$INSTALL"; then
1618 if test "${ac_cv_path_install+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 test -z "$as_dir" && as_dir=.
1626 # Account for people who put trailing slashes in PATH elements.
1628 ./ | .// | /cC/* | \
1629 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1632 # OSF1 and SCO ODT 3.0 have their own names for install.
1633 # Don't use installbsd from OSF since it installs stuff as root
1635 for ac_prog in ginstall scoinst install; do
1636 for ac_exec_ext in '' $ac_executable_extensions; do
1637 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1638 if test $ac_prog = install &&
1639 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1640 # AIX install. It has an incompatible calling convention.
1642 elif test $ac_prog = install &&
1643 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1644 # program-specific install script used by HP pwplus--don't use.
1647 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1659 if test "${ac_cv_path_install+set}" = set; then
1660 INSTALL=$ac_cv_path_install
1662 # As a last resort, use the slow shell script. We don't cache a
1663 # path for INSTALL within a source directory, because that will
1664 # break other packages using the cache if that directory is
1665 # removed, or if the path is relative.
1666 INSTALL=$ac_install_sh
1669 echo "$as_me:$LINENO: result: $INSTALL" >&5
1670 echo "${ECHO_T}$INSTALL" >&6
1672 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1673 # It thinks the first close brace ends the variable substitution.
1674 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1676 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1678 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1680 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1681 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1682 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1683 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 cat >conftest.make <<\_ACEOF
1688 @echo 'ac_maketemp="${MAKE}"'
1690 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1691 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1692 if test -n "$ac_maketemp"; then
1693 eval ac_cv_prog_make_${ac_make}_set=yes
1695 eval ac_cv_prog_make_${ac_make}_set=no
1699 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1700 echo "$as_me:$LINENO: result: yes" >&5
1701 echo "${ECHO_T}yes" >&6
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1706 SET_MAKE="MAKE=${MAKE-make}"
1709 if test -n "$ac_tool_prefix"; then
1710 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1711 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_RANLIB+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 if test -n "$RANLIB"; then
1718 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 RANLIB=$ac_cv_prog_RANLIB
1737 if test -n "$RANLIB"; then
1738 echo "$as_me:$LINENO: result: $RANLIB" >&5
1739 echo "${ECHO_T}$RANLIB" >&6
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1746 if test -z "$ac_cv_prog_RANLIB"; then
1747 ac_ct_RANLIB=$RANLIB
1748 # Extract the first word of "ranlib", so it can be a program name with args.
1749 set dummy ranlib; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 if test -n "$ac_ct_RANLIB"; then
1756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_ac_ct_RANLIB="ranlib"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1776 if test -n "$ac_ct_RANLIB"; then
1777 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1778 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1780 echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1784 RANLIB=$ac_ct_RANLIB
1786 RANLIB="$ac_cv_prog_RANLIB"
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795 if test -n "$ac_tool_prefix"; then
1796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1797 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_CC+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 if test -n "$CC"; then
1804 ac_cv_prog_CC="$CC" # Let the user override the test.
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 if test -n "$CC"; then
1824 echo "$as_me:$LINENO: result: $CC" >&5
1825 echo "${ECHO_T}$CC" >&6
1827 echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1832 if test -z "$ac_cv_prog_CC"; then
1834 # Extract the first word of "gcc", so it can be a program name with args.
1835 set dummy gcc; ac_word=$2
1836 echo "$as_me:$LINENO: checking for $ac_word" >&5
1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 if test -n "$ac_ct_CC"; then
1842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 test -z "$as_dir" && as_dir=.
1849 for ac_exec_ext in '' $ac_executable_extensions; do
1850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851 ac_cv_prog_ac_ct_CC="gcc"
1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1861 if test -n "$ac_ct_CC"; then
1862 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1863 echo "${ECHO_T}$ac_ct_CC" >&6
1865 echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1874 if test -z "$CC"; then
1875 if test -n "$ac_tool_prefix"; then
1876 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1877 set dummy ${ac_tool_prefix}cc; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_CC="${ac_tool_prefix}cc"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 if test -n "$CC"; then
1904 echo "$as_me:$LINENO: result: $CC" >&5
1905 echo "${ECHO_T}$CC" >&6
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1912 if test -z "$ac_cv_prog_CC"; then
1914 # Extract the first word of "cc", so it can be a program name with args.
1915 set dummy cc; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 if test -n "$ac_ct_CC"; then
1922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_ac_ct_CC="cc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941 if test -n "$ac_ct_CC"; then
1942 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943 echo "${ECHO_T}$ac_ct_CC" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1955 if test -z "$CC"; then
1956 # Extract the first word of "cc", so it can be a program name with args.
1957 set dummy cc; ac_word=$2
1958 echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1975 ac_prog_rejected=yes
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 if test $ac_prog_rejected = yes; then
1986 # We found a bogon in the path, so make sure we never use it.
1987 set dummy $ac_cv_prog_CC
1989 if test $# != 0; then
1990 # We chose a different compiler from the bogus one.
1991 # However, it has the same basename, so the bogon will be chosen
1992 # first if we set CC to just the basename; use the full file name.
1994 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2000 if test -n "$CC"; then
2001 echo "$as_me:$LINENO: result: $CC" >&5
2002 echo "${ECHO_T}$CC" >&6
2004 echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2009 if test -z "$CC"; then
2010 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2048 test -n "$CC" && break
2051 if test -z "$CC"; then
2055 # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test -n "$ac_ct_CC"; then
2063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072 ac_cv_prog_ac_ct_CC="$ac_prog"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082 if test -n "$ac_ct_CC"; then
2083 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084 echo "${ECHO_T}$ac_ct_CC" >&6
2086 echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6
2090 test -n "$ac_ct_CC" && break
2099 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2100 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2101 { (exit 1); exit 1; }; }
2103 # Provide some information about the compiler.
2104 echo "$as_me:$LINENO:" \
2105 "checking for C compiler version" >&5
2106 ac_compiler=`set X $ac_compile; echo $2`
2107 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2108 (eval $ac_compiler --version </dev/null >&5) 2>&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2112 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2113 (eval $ac_compiler -v </dev/null >&5) 2>&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }
2117 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2118 (eval $ac_compiler -V </dev/null >&5) 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2123 cat >conftest.$ac_ext <<_ACEOF
2124 #line $LINENO "configure"
2125 #include "confdefs.h"
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2140 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2141 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2144 (eval $ac_link_default) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; then
2148 # Find the output, starting from the most likely. This scheme is
2149 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2152 # Be careful to initialize this variable, since it used to be cached.
2153 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2155 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2156 test -f "$ac_file" || continue
2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2159 a.out ) # We found the default executable, but exeext='' is most
2162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2163 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2170 echo "$as_me: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2172 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2173 check \`config.log' for details." >&5
2174 echo "$as_me: error: C compiler cannot create executables
2175 check \`config.log' for details." >&2;}
2176 { (exit 77); exit 77; }; }
2179 ac_exeext=$ac_cv_exeext
2180 echo "$as_me:$LINENO: result: $ac_file" >&5
2181 echo "${ECHO_T}$ac_file" >&6
2183 # Check the compiler produces executables we can run. If not, either
2184 # the compiler is broken, or we cross compile.
2185 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2186 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2187 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2188 # If not cross compiling, check that we can run a simple program.
2189 if test "$cross_compiling" != yes; then
2190 if { ac_try='./$ac_file'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2198 if test "$cross_compiling" = maybe; then
2201 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2202 If you meant to cross compile, use \`--host'." >&5
2203 echo "$as_me: error: cannot run C compiled programs.
2204 If you meant to cross compile, use \`--host'." >&2;}
2205 { (exit 1); exit 1; }; }
2209 echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6
2212 rm -f a.out a.exe conftest$ac_cv_exeext
2213 ac_clean_files=$ac_clean_files_save
2214 # Check the compiler produces executables we can run. If not, either
2215 # the compiler is broken, or we cross compile.
2216 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2217 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2218 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2219 echo "${ECHO_T}$cross_compiling" >&6
2221 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2222 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2224 (eval $ac_link) 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; then
2228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2230 # work properly (i.e., refer to `conftest.exe'), while it won't with
2232 for ac_file in conftest.exe conftest conftest.*; do
2233 test -f "$ac_file" || continue
2235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2244 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2245 { (exit 1); exit 1; }; }
2248 rm -f conftest$ac_cv_exeext
2249 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2250 echo "${ECHO_T}$ac_cv_exeext" >&6
2252 rm -f conftest.$ac_ext
2253 EXEEXT=$ac_cv_exeext
2255 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2256 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2257 if test "${ac_cv_objext+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 cat >conftest.$ac_ext <<_ACEOF
2261 #line $LINENO "configure"
2262 #include "confdefs.h"
2272 rm -f conftest.o conftest.obj
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2286 echo "$as_me: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2289 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2290 { (exit 1); exit 1; }; }
2293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2295 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296 echo "${ECHO_T}$ac_cv_objext" >&6
2297 OBJEXT=$ac_cv_objext
2299 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 cat >conftest.$ac_ext <<_ACEOF
2305 #line $LINENO "configure"
2306 #include "confdefs.h"
2319 rm -f conftest.$ac_objext
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2333 echo "$as_me: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2337 rm -f conftest.$ac_objext conftest.$ac_ext
2338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2341 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2342 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2343 GCC=`test $ac_compiler_gnu = yes && echo yes`
2344 ac_test_CFLAGS=${CFLAGS+set}
2345 ac_save_CFLAGS=$CFLAGS
2347 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2348 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2349 if test "${ac_cv_prog_cc_g+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 cat >conftest.$ac_ext <<_ACEOF
2353 #line $LINENO "configure"
2354 #include "confdefs.h"
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2378 echo "$as_me: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2382 rm -f conftest.$ac_objext conftest.$ac_ext
2384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2385 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2386 if test "$ac_test_CFLAGS" = set; then
2387 CFLAGS=$ac_save_CFLAGS
2388 elif test $ac_cv_prog_cc_g = yes; then
2389 if test "$GCC" = yes; then
2395 if test "$GCC" = yes; then
2401 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2402 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2403 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 ac_cv_prog_cc_stdc=no
2408 cat >conftest.$ac_ext <<_ACEOF
2409 #line $LINENO "configure"
2410 #include "confdefs.h"
2413 #include <sys/types.h>
2414 #include <sys/stat.h>
2415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2416 struct buf { int x; };
2417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2418 static char *e (p, i)
2424 static char *f (char * (*g) (char **, int), char **p, ...)
2429 s = g (p, va_arg (v,int));
2433 int test (int i, double x);
2434 struct s1 {int (*f) (int a);};
2435 struct s2 {int (*f) (double a);};
2436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2442 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2447 # Don't try gcc -ansi; that turns off useful extensions and
2448 # breaks some systems' header files.
2449 # AIX -qlanglvl=ansi
2450 # Ultrix and OSF/1 -std1
2451 # HP-UX 10.20 and later -Ae
2452 # HP-UX older versions -Aa -D_HPUX_SOURCE
2453 # SVR4 -Xc -D__EXTENSIONS__
2454 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2456 CC="$ac_save_CC $ac_arg"
2457 rm -f conftest.$ac_objext
2458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459 (eval $ac_compile) 2>&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -s conftest.$ac_objext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 ac_cv_prog_cc_stdc=$ac_arg
2472 echo "$as_me: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2475 rm -f conftest.$ac_objext
2477 rm -f conftest.$ac_ext conftest.$ac_objext
2482 case "x$ac_cv_prog_cc_stdc" in
2484 echo "$as_me:$LINENO: result: none needed" >&5
2485 echo "${ECHO_T}none needed" >&6 ;;
2487 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2488 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2489 CC="$CC $ac_cv_prog_cc_stdc" ;;
2492 # Some people use a C++ compiler to compile C. Since we use `exit',
2493 # in C++ we need to declare it. In case someone uses the same compiler
2494 # for both compiling C and C++ we need to have the C++ compiler decide
2495 # the declaration of exit, since it's the most demanding environment.
2496 cat >conftest.$ac_ext <<_ACEOF
2501 rm -f conftest.$ac_objext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 for ac_declaration in \
2515 '#include <stdlib.h>' \
2516 'extern "C" void std::exit (int) throw (); using std::exit;' \
2517 'extern "C" void std::exit (int); using std::exit;' \
2518 'extern "C" void exit (int) throw ();' \
2519 'extern "C" void exit (int);' \
2522 cat >conftest.$ac_ext <<_ACEOF
2523 #line $LINENO "configure"
2524 #include "confdefs.h"
2535 rm -f conftest.$ac_objext
2536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2549 echo "$as_me: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2553 rm -f conftest.$ac_objext conftest.$ac_ext
2554 cat >conftest.$ac_ext <<_ACEOF
2555 #line $LINENO "configure"
2556 #include "confdefs.h"
2566 rm -f conftest.$ac_objext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568 (eval $ac_compile) 2>&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2580 echo "$as_me: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2583 rm -f conftest.$ac_objext conftest.$ac_ext
2586 if test -n "$ac_declaration"; then
2587 echo '#ifdef __cplusplus' >>confdefs.h
2588 echo $ac_declaration >>confdefs.h
2589 echo '#endif' >>confdefs.h
2593 echo "$as_me: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2604 ac_cpp='$CXXCPP $CPPFLAGS'
2605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2608 if test -n "$ac_tool_prefix"; then
2609 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2613 echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2615 if test "${ac_cv_prog_CXX+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 if test -n "$CXX"; then
2619 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 if test -n "$CXX"; then
2639 echo "$as_me:$LINENO: result: $CXX" >&5
2640 echo "${ECHO_T}$CXX" >&6
2642 echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6
2646 test -n "$CXX" && break
2649 if test -z "$CXX"; then
2651 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy $ac_prog; ac_word=$2
2655 echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2657 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 if test -n "$ac_ct_CXX"; then
2661 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670 ac_cv_prog_ac_ct_CXX="$ac_prog"
2671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2680 if test -n "$ac_ct_CXX"; then
2681 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2682 echo "${ECHO_T}$ac_ct_CXX" >&6
2684 echo "$as_me:$LINENO: result: no" >&5
2685 echo "${ECHO_T}no" >&6
2688 test -n "$ac_ct_CXX" && break
2690 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2696 # Provide some information about the compiler.
2697 echo "$as_me:$LINENO:" \
2698 "checking for C++ compiler version" >&5
2699 ac_compiler=`set X $ac_compile; echo $2`
2700 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2701 (eval $ac_compiler --version </dev/null >&5) 2>&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2705 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2706 (eval $ac_compiler -v </dev/null >&5) 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2711 (eval $ac_compiler -V </dev/null >&5) 2>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2716 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2717 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2718 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 cat >conftest.$ac_ext <<_ACEOF
2722 #line $LINENO "configure"
2723 #include "confdefs.h"
2736 rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738 (eval $ac_compile) 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -s conftest.$ac_objext'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; }; then
2750 echo "$as_me: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2754 rm -f conftest.$ac_objext conftest.$ac_ext
2755 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2758 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2759 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2760 GXX=`test $ac_compiler_gnu = yes && echo yes`
2761 ac_test_CXXFLAGS=${CXXFLAGS+set}
2762 ac_save_CXXFLAGS=$CXXFLAGS
2764 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2765 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2766 if test "${ac_cv_prog_cxx_g+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 cat >conftest.$ac_ext <<_ACEOF
2770 #line $LINENO "configure"
2771 #include "confdefs.h"
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783 (eval $ac_compile) 2>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -s conftest.$ac_objext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 ac_cv_prog_cxx_g=yes
2795 echo "$as_me: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2799 rm -f conftest.$ac_objext conftest.$ac_ext
2801 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2802 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2803 if test "$ac_test_CXXFLAGS" = set; then
2804 CXXFLAGS=$ac_save_CXXFLAGS
2805 elif test $ac_cv_prog_cxx_g = yes; then
2806 if test "$GXX" = yes; then
2812 if test "$GXX" = yes; then
2818 for ac_declaration in \
2820 '#include <stdlib.h>' \
2821 'extern "C" void std::exit (int) throw (); using std::exit;' \
2822 'extern "C" void std::exit (int); using std::exit;' \
2823 'extern "C" void exit (int) throw ();' \
2824 'extern "C" void exit (int);' \
2827 cat >conftest.$ac_ext <<_ACEOF
2828 #line $LINENO "configure"
2829 #include "confdefs.h"
2840 rm -f conftest.$ac_objext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842 (eval $ac_compile) 2>&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -s conftest.$ac_objext'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; }; then
2854 echo "$as_me: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2858 rm -f conftest.$ac_objext conftest.$ac_ext
2859 cat >conftest.$ac_ext <<_ACEOF
2860 #line $LINENO "configure"
2861 #include "confdefs.h"
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873 (eval $ac_compile) 2>&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2885 echo "$as_me: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2888 rm -f conftest.$ac_objext conftest.$ac_ext
2891 if test -n "$ac_declaration"; then
2892 echo '#ifdef __cplusplus' >>confdefs.h
2893 echo $ac_declaration >>confdefs.h
2894 echo '#endif' >>confdefs.h
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2904 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2905 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2906 if test "${ac_cv_c_bigendian+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 # See if sys/param.h defines the BYTE_ORDER macro.
2910 cat >conftest.$ac_ext <<_ACEOF
2911 #line $LINENO "configure"
2912 #include "confdefs.h"
2913 #include <sys/types.h>
2914 #include <sys/param.h>
2919 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -s conftest.$ac_objext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 # It does; now see whether it defined to BIG_ENDIAN or not.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2942 #include "confdefs.h"
2943 #include <sys/types.h>
2944 #include <sys/param.h>
2949 #if BYTE_ORDER != BIG_ENDIAN
2957 rm -f conftest.$ac_objext
2958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959 (eval $ac_compile) 2>&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } &&
2963 { ac_try='test -s conftest.$ac_objext'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2969 ac_cv_c_bigendian=yes
2971 echo "$as_me: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2973 ac_cv_c_bigendian=no
2975 rm -f conftest.$ac_objext conftest.$ac_ext
2977 echo "$as_me: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2979 # It does not; compile a test program.
2980 if test "$cross_compiling" = yes; then
2981 # try to guess the endianness by grepping values into an object file
2982 ac_cv_c_bigendian=unknown
2983 cat >conftest.$ac_ext <<_ACEOF
2984 #line $LINENO "configure"
2985 #include "confdefs.h"
2986 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2987 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2988 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2989 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2990 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2991 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2995 _ascii (); _ebcdic ();
3000 rm -f conftest.$ac_objext
3001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3002 (eval $ac_compile) 2>&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -s conftest.$ac_objext'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3013 ac_cv_c_bigendian=yes
3015 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3016 if test "$ac_cv_c_bigendian" = unknown; then
3017 ac_cv_c_bigendian=no
3019 # finding both strings is unlikely to happen, but who knows?
3020 ac_cv_c_bigendian=unknown
3024 echo "$as_me: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3027 rm -f conftest.$ac_objext conftest.$ac_ext
3029 cat >conftest.$ac_ext <<_ACEOF
3030 #line $LINENO "configure"
3031 #include "confdefs.h"
3035 /* Are we little or big endian? From Harbison&Steele. */
3039 char c[sizeof (long)];
3042 exit (u.c[sizeof (long) - 1] == 1);
3045 rm -f conftest$ac_exeext
3046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3047 (eval $ac_link) 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 ac_cv_c_bigendian=no
3058 echo "$as_me: program exited with status $ac_status" >&5
3059 echo "$as_me: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3062 ac_cv_c_bigendian=yes
3064 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3067 rm -f conftest.$ac_objext conftest.$ac_ext
3069 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3070 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3071 case $ac_cv_c_bigendian in
3074 cat >>confdefs.h <<\_ACEOF
3075 #define WORDS_BIGENDIAN 1
3081 { { echo "$as_me:$LINENO: error: unknown endianness
3082 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3083 echo "$as_me: error: unknown endianness
3084 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3085 { (exit 1); exit 1; }; } ;;
3089 # Extract the first word of "wx-config", so it can be a program name with args.
3090 set dummy wx-config; ac_word=$2
3091 echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093 if test "${ac_cv_path_wxconfig+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 wxconfig=$ac_cv_path_wxconfig
3120 if test -n "$wxconfig"; then
3121 echo "$as_me:$LINENO: result: $wxconfig" >&5
3122 echo "${ECHO_T}$wxconfig" >&6
3124 echo "$as_me:$LINENO: result: no" >&5
3125 echo "${ECHO_T}no" >&6
3129 # Make sure we can run config.sub.
3130 $ac_config_sub sun4 >/dev/null 2>&1 ||
3131 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3132 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3133 { (exit 1); exit 1; }; }
3135 echo "$as_me:$LINENO: checking build system type" >&5
3136 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3137 if test "${ac_cv_build+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 ac_cv_build_alias=$build_alias
3141 test -z "$ac_cv_build_alias" &&
3142 ac_cv_build_alias=`$ac_config_guess`
3143 test -z "$ac_cv_build_alias" &&
3144 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3145 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3146 { (exit 1); exit 1; }; }
3147 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3148 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3149 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3150 { (exit 1); exit 1; }; }
3153 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3154 echo "${ECHO_T}$ac_cv_build" >&6
3156 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3157 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3158 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3161 echo "$as_me:$LINENO: checking host system type" >&5
3162 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3163 if test "${ac_cv_host+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 ac_cv_host_alias=$host_alias
3167 test -z "$ac_cv_host_alias" &&
3168 ac_cv_host_alias=$ac_cv_build_alias
3169 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3170 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3171 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3172 { (exit 1); exit 1; }; }
3175 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3176 echo "${ECHO_T}$ac_cv_host" >&6
3178 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3179 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3180 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3183 echo "$as_me:$LINENO: checking for inline" >&5
3184 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3185 if test "${ac_cv_c_inline+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 for ac_kw in inline __inline__ __inline; do
3190 cat >conftest.$ac_ext <<_ACEOF
3191 #line $LINENO "configure"
3192 #include "confdefs.h"
3195 static $ac_kw foo_t static_foo () {return 0; }
3196 $ac_kw foo_t foo () {return 0; }
3200 rm -f conftest.$ac_objext
3201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } &&
3206 { ac_try='test -s conftest.$ac_objext'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3212 ac_cv_c_inline=$ac_kw; break
3214 echo "$as_me: failed program was:" >&5
3215 cat conftest.$ac_ext >&5
3217 rm -f conftest.$ac_objext conftest.$ac_ext
3221 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3222 echo "${ECHO_T}$ac_cv_c_inline" >&6
3223 case $ac_cv_c_inline in
3226 cat >>confdefs.h <<\_ACEOF
3230 *) cat >>confdefs.h <<_ACEOF
3231 #define inline $ac_cv_c_inline
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3242 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3243 # On Suns, sometimes $CPP names a directory.
3244 if test -n "$CPP" && test -d "$CPP"; then
3247 if test -z "$CPP"; then
3248 if test "${ac_cv_prog_CPP+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 # Double quotes because CPP needs to be expanded
3252 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3255 for ac_c_preproc_warn_flag in '' yes
3257 # Use a header file that comes with gcc, so configuring glibc
3258 # with a fresh cross-compiler works.
3259 # On the NeXT, cc -E runs the code through the compiler's parser,
3260 # not just through cpp. "Syntax error" is here to catch this case.
3261 cat >conftest.$ac_ext <<_ACEOF
3262 #line $LINENO "configure"
3263 #include "confdefs.h"
3267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3270 grep -v '^ *+' conftest.er1 >conftest.err
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } >/dev/null; then
3275 if test -s conftest.err; then
3276 ac_cpp_err=$ac_c_preproc_warn_flag
3283 if test -z "$ac_cpp_err"; then
3286 echo "$as_me: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3288 # Broken: fails on valid input.
3291 rm -f conftest.err conftest.$ac_ext
3293 # OK, works on sane cases. Now check whether non-existent headers
3294 # can be detected and how.
3295 cat >conftest.$ac_ext <<_ACEOF
3296 #line $LINENO "configure"
3297 #include "confdefs.h"
3298 #include <ac_nonexistent.h>
3300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3303 grep -v '^ *+' conftest.er1 >conftest.err
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } >/dev/null; then
3308 if test -s conftest.err; then
3309 ac_cpp_err=$ac_c_preproc_warn_flag
3316 if test -z "$ac_cpp_err"; then
3317 # Broken: success on invalid input.
3320 echo "$as_me: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 # Passes both tests.
3326 rm -f conftest.err conftest.$ac_ext
3329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3330 rm -f conftest.err conftest.$ac_ext
3331 if $ac_preproc_ok; then
3343 echo "$as_me:$LINENO: result: $CPP" >&5
3344 echo "${ECHO_T}$CPP" >&6
3346 for ac_c_preproc_warn_flag in '' yes
3348 # Use a header file that comes with gcc, so configuring glibc
3349 # with a fresh cross-compiler works.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3353 #line $LINENO "configure"
3354 #include "confdefs.h"
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3374 if test -z "$ac_cpp_err"; then
3377 echo "$as_me: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3379 # Broken: fails on valid input.
3382 rm -f conftest.err conftest.$ac_ext
3384 # OK, works on sane cases. Now check whether non-existent headers
3385 # can be detected and how.
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3388 #include "confdefs.h"
3389 #include <ac_nonexistent.h>
3391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3394 grep -v '^ *+' conftest.er1 >conftest.err
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } >/dev/null; then
3399 if test -s conftest.err; then
3400 ac_cpp_err=$ac_c_preproc_warn_flag
3407 if test -z "$ac_cpp_err"; then
3408 # Broken: success on invalid input.
3411 echo "$as_me: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3413 # Passes both tests.
3417 rm -f conftest.err conftest.$ac_ext
3420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3421 rm -f conftest.err conftest.$ac_ext
3422 if $ac_preproc_ok; then
3425 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3426 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3427 { (exit 1); exit 1; }; }
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437 echo "$as_me:$LINENO: checking for egrep" >&5
3438 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3439 if test "${ac_cv_prog_egrep+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3443 then ac_cv_prog_egrep='grep -E'
3444 else ac_cv_prog_egrep='egrep'
3447 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3448 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3449 EGREP=$ac_cv_prog_egrep
3452 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3453 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3454 if test "${ac_cv_header_stdc+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 cat >conftest.$ac_ext <<_ACEOF
3458 #line $LINENO "configure"
3459 #include "confdefs.h"
3466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3469 grep -v '^ *+' conftest.er1 >conftest.err
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null; then
3474 if test -s conftest.err; then
3475 ac_cpp_err=$ac_c_preproc_warn_flag
3482 if test -z "$ac_cpp_err"; then
3483 ac_cv_header_stdc=yes
3485 echo "$as_me: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3487 ac_cv_header_stdc=no
3489 rm -f conftest.err conftest.$ac_ext
3491 if test $ac_cv_header_stdc = yes; then
3492 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3493 cat >conftest.$ac_ext <<_ACEOF
3494 #line $LINENO "configure"
3495 #include "confdefs.h"
3499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3500 $EGREP "memchr" >/dev/null 2>&1; then
3503 ac_cv_header_stdc=no
3509 if test $ac_cv_header_stdc = yes; then
3510 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3511 cat >conftest.$ac_ext <<_ACEOF
3512 #line $LINENO "configure"
3513 #include "confdefs.h"
3517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3518 $EGREP "free" >/dev/null 2>&1; then
3521 ac_cv_header_stdc=no
3527 if test $ac_cv_header_stdc = yes; then
3528 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3529 if test "$cross_compiling" = yes; then
3532 cat >conftest.$ac_ext <<_ACEOF
3533 #line $LINENO "configure"
3534 #include "confdefs.h"
3536 #if ((' ' & 0x0FF) == 0x020)
3537 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3538 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3540 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3541 || ('j' <= (c) && (c) <= 'r') \
3542 || ('s' <= (c) && (c) <= 'z'))
3543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3551 for (i = 0; i < 256; i++)
3552 if (XOR (islower (i), ISLOWER (i))
3553 || toupper (i) != TOUPPER (i))
3558 rm -f conftest$ac_exeext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3560 (eval $ac_link) 2>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; }; then
3571 echo "$as_me: program exited with status $ac_status" >&5
3572 echo "$as_me: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3575 ac_cv_header_stdc=no
3577 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3581 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3582 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3583 if test $ac_cv_header_stdc = yes; then
3585 cat >>confdefs.h <<\_ACEOF
3586 #define STDC_HEADERS 1
3591 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3601 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3602 inttypes.h stdint.h unistd.h
3604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3605 echo "$as_me:$LINENO: checking for $ac_header" >&5
3606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 cat >conftest.$ac_ext <<_ACEOF
3611 #line $LINENO "configure"
3612 #include "confdefs.h"
3613 $ac_includes_default
3615 #include <$ac_header>
3617 rm -f conftest.$ac_objext
3618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619 (eval $ac_compile) 2>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3629 eval "$as_ac_Header=yes"
3631 echo "$as_me: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 eval "$as_ac_Header=no"
3635 rm -f conftest.$ac_objext conftest.$ac_ext
3637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3640 cat >>confdefs.h <<_ACEOF
3641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3649 echo "$as_me:$LINENO: checking for short" >&5
3650 echo $ECHO_N "checking for short... $ECHO_C" >&6
3651 if test "${ac_cv_type_short+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 cat >conftest.$ac_ext <<_ACEOF
3655 #line $LINENO "configure"
3656 #include "confdefs.h"
3657 $ac_includes_default
3669 rm -f conftest.$ac_objext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_type_short=yes
3683 echo "$as_me: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3687 rm -f conftest.$ac_objext conftest.$ac_ext
3689 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3690 echo "${ECHO_T}$ac_cv_type_short" >&6
3692 echo "$as_me:$LINENO: checking size of short" >&5
3693 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3694 if test "${ac_cv_sizeof_short+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 if test "$ac_cv_type_short" = yes; then
3698 # The cast to unsigned long works around a bug in the HP C Compiler
3699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3701 # This bug is HP SR number 8606223364.
3702 if test "$cross_compiling" = yes; then
3703 # Depending upon the size, compute the lo and hi bounds.
3704 cat >conftest.$ac_ext <<_ACEOF
3705 #line $LINENO "configure"
3706 #include "confdefs.h"
3707 $ac_includes_default
3711 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3718 rm -f conftest.$ac_objext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3720 (eval $ac_compile) 2>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -s conftest.$ac_objext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3732 cat >conftest.$ac_ext <<_ACEOF
3733 #line $LINENO "configure"
3734 #include "confdefs.h"
3735 $ac_includes_default
3739 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3746 rm -f conftest.$ac_objext
3747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3748 (eval $ac_compile) 2>&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -s conftest.$ac_objext'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; }; then
3758 ac_hi=$ac_mid; break
3760 echo "$as_me: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3762 ac_lo=`expr $ac_mid + 1`
3763 if test $ac_lo -le $ac_mid; then
3767 ac_mid=`expr 2 '*' $ac_mid + 1`
3769 rm -f conftest.$ac_objext conftest.$ac_ext
3772 echo "$as_me: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3774 cat >conftest.$ac_ext <<_ACEOF
3775 #line $LINENO "configure"
3776 #include "confdefs.h"
3777 $ac_includes_default
3781 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790 (eval $ac_compile) 2>&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -s conftest.$ac_objext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3802 cat >conftest.$ac_ext <<_ACEOF
3803 #line $LINENO "configure"
3804 #include "confdefs.h"
3805 $ac_includes_default
3809 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3816 rm -f conftest.$ac_objext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3818 (eval $ac_compile) 2>&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 ac_lo=$ac_mid; break
3830 echo "$as_me: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3832 ac_hi=`expr '(' $ac_mid ')' - 1`
3833 if test $ac_mid -le $ac_hi; then
3837 ac_mid=`expr 2 '*' $ac_mid`
3839 rm -f conftest.$ac_objext conftest.$ac_ext
3842 echo "$as_me: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3846 rm -f conftest.$ac_objext conftest.$ac_ext
3848 rm -f conftest.$ac_objext conftest.$ac_ext
3849 # Binary search between lo and hi bounds.
3850 while test "x$ac_lo" != "x$ac_hi"; do
3851 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3852 cat >conftest.$ac_ext <<_ACEOF
3853 #line $LINENO "configure"
3854 #include "confdefs.h"
3855 $ac_includes_default
3859 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3866 rm -f conftest.$ac_objext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868 (eval $ac_compile) 2>&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } &&
3872 { ac_try='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3880 echo "$as_me: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3882 ac_lo=`expr '(' $ac_mid ')' + 1`
3884 rm -f conftest.$ac_objext conftest.$ac_ext
3887 ?*) ac_cv_sizeof_short=$ac_lo;;
3888 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
3889 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
3890 { (exit 1); exit 1; }; } ;;
3893 if test "$cross_compiling" = yes; then
3894 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3895 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3896 { (exit 1); exit 1; }; }
3898 cat >conftest.$ac_ext <<_ACEOF
3899 #line $LINENO "configure"
3900 #include "confdefs.h"
3901 $ac_includes_default
3902 long longval () { return (long) (sizeof (short)); }
3903 unsigned long ulongval () { return (long) (sizeof (short)); }
3910 FILE *f = fopen ("conftest.val", "w");
3913 if (((long) (sizeof (short))) < 0)
3915 long i = longval ();
3916 if (i != ((long) (sizeof (short))))
3918 fprintf (f, "%ld\n", i);
3922 unsigned long i = ulongval ();
3923 if (i != ((long) (sizeof (short))))
3925 fprintf (f, "%lu\n", i);
3927 exit (ferror (f) || fclose (f) != 0);
3933 rm -f conftest$ac_exeext
3934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3935 (eval $ac_link) 2>&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 ac_cv_sizeof_short=`cat conftest.val`
3946 echo "$as_me: program exited with status $ac_status" >&5
3947 echo "$as_me: failed program was:" >&5
3948 cat conftest.$ac_ext >&5
3950 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
3951 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
3952 { (exit 1); exit 1; }; }
3954 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3959 ac_cv_sizeof_short=0
3962 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3963 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3964 cat >>confdefs.h <<_ACEOF
3965 #define SIZEOF_SHORT $ac_cv_sizeof_short
3969 echo "$as_me:$LINENO: checking for int" >&5
3970 echo $ECHO_N "checking for int... $ECHO_C" >&6
3971 if test "${ac_cv_type_int+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 cat >conftest.$ac_ext <<_ACEOF
3975 #line $LINENO "configure"
3976 #include "confdefs.h"
3977 $ac_includes_default
3989 rm -f conftest.$ac_objext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991 (eval $ac_compile) 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try='test -s conftest.$ac_objext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4003 echo "$as_me: failed program was:" >&5
4004 cat conftest.$ac_ext >&5
4007 rm -f conftest.$ac_objext conftest.$ac_ext
4009 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4010 echo "${ECHO_T}$ac_cv_type_int" >&6
4012 echo "$as_me:$LINENO: checking size of int" >&5
4013 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4014 if test "${ac_cv_sizeof_int+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 if test "$ac_cv_type_int" = yes; then
4018 # The cast to unsigned long works around a bug in the HP C Compiler
4019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4020 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4021 # This bug is HP SR number 8606223364.
4022 if test "$cross_compiling" = yes; then
4023 # Depending upon the size, compute the lo and hi bounds.
4024 cat >conftest.$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4026 #include "confdefs.h"
4027 $ac_includes_default
4031 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4038 rm -f conftest.$ac_objext
4039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try='test -s conftest.$ac_objext'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4052 cat >conftest.$ac_ext <<_ACEOF
4053 #line $LINENO "configure"
4054 #include "confdefs.h"
4055 $ac_includes_default
4059 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_hi=$ac_mid; break
4080 echo "$as_me: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4082 ac_lo=`expr $ac_mid + 1`
4083 if test $ac_lo -le $ac_mid; then
4087 ac_mid=`expr 2 '*' $ac_mid + 1`
4089 rm -f conftest.$ac_objext conftest.$ac_ext
4092 echo "$as_me: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4094 cat >conftest.$ac_ext <<_ACEOF
4095 #line $LINENO "configure"
4096 #include "confdefs.h"
4097 $ac_includes_default
4101 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4108 rm -f conftest.$ac_objext
4109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4110 (eval $ac_compile) 2>&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
4114 { ac_try='test -s conftest.$ac_objext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4122 cat >conftest.$ac_ext <<_ACEOF
4123 #line $LINENO "configure"
4124 #include "confdefs.h"
4125 $ac_includes_default
4129 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4136 rm -f conftest.$ac_objext
4137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4138 (eval $ac_compile) 2>&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } &&
4142 { ac_try='test -s conftest.$ac_objext'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4148 ac_lo=$ac_mid; break
4150 echo "$as_me: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4152 ac_hi=`expr '(' $ac_mid ')' - 1`
4153 if test $ac_mid -le $ac_hi; then
4157 ac_mid=`expr 2 '*' $ac_mid`
4159 rm -f conftest.$ac_objext conftest.$ac_ext
4162 echo "$as_me: failed program was:" >&5
4163 cat conftest.$ac_ext >&5
4166 rm -f conftest.$ac_objext conftest.$ac_ext
4168 rm -f conftest.$ac_objext conftest.$ac_ext
4169 # Binary search between lo and hi bounds.
4170 while test "x$ac_lo" != "x$ac_hi"; do
4171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4172 cat >conftest.$ac_ext <<_ACEOF
4173 #line $LINENO "configure"
4174 #include "confdefs.h"
4175 $ac_includes_default
4179 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4186 rm -f conftest.$ac_objext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188 (eval $ac_compile) 2>&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } &&
4192 { ac_try='test -s conftest.$ac_objext'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4200 echo "$as_me: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4202 ac_lo=`expr '(' $ac_mid ')' + 1`
4204 rm -f conftest.$ac_objext conftest.$ac_ext
4207 ?*) ac_cv_sizeof_int=$ac_lo;;
4208 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4209 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4210 { (exit 1); exit 1; }; } ;;
4213 if test "$cross_compiling" = yes; then
4214 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4215 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4216 { (exit 1); exit 1; }; }
4218 cat >conftest.$ac_ext <<_ACEOF
4219 #line $LINENO "configure"
4220 #include "confdefs.h"
4221 $ac_includes_default
4222 long longval () { return (long) (sizeof (int)); }
4223 unsigned long ulongval () { return (long) (sizeof (int)); }
4230 FILE *f = fopen ("conftest.val", "w");
4233 if (((long) (sizeof (int))) < 0)
4235 long i = longval ();
4236 if (i != ((long) (sizeof (int))))
4238 fprintf (f, "%ld\n", i);
4242 unsigned long i = ulongval ();
4243 if (i != ((long) (sizeof (int))))
4245 fprintf (f, "%lu\n", i);
4247 exit (ferror (f) || fclose (f) != 0);
4253 rm -f conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255 (eval $ac_link) 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 ac_cv_sizeof_int=`cat conftest.val`
4266 echo "$as_me: program exited with status $ac_status" >&5
4267 echo "$as_me: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4270 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4271 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4272 { (exit 1); exit 1; }; }
4274 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4282 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4283 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4284 cat >>confdefs.h <<_ACEOF
4285 #define SIZEOF_INT $ac_cv_sizeof_int
4289 echo "$as_me:$LINENO: checking for long" >&5
4290 echo $ECHO_N "checking for long... $ECHO_C" >&6
4291 if test "${ac_cv_type_long+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 cat >conftest.$ac_ext <<_ACEOF
4295 #line $LINENO "configure"
4296 #include "confdefs.h"
4297 $ac_includes_default
4309 rm -f conftest.$ac_objext
4310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4311 (eval $ac_compile) 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } &&
4315 { ac_try='test -s conftest.$ac_objext'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4323 echo "$as_me: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4327 rm -f conftest.$ac_objext conftest.$ac_ext
4329 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4330 echo "${ECHO_T}$ac_cv_type_long" >&6
4332 echo "$as_me:$LINENO: checking size of long" >&5
4333 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4334 if test "${ac_cv_sizeof_long+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 if test "$ac_cv_type_long" = yes; then
4338 # The cast to unsigned long works around a bug in the HP C Compiler
4339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4341 # This bug is HP SR number 8606223364.
4342 if test "$cross_compiling" = yes; then
4343 # Depending upon the size, compute the lo and hi bounds.
4344 cat >conftest.$ac_ext <<_ACEOF
4345 #line $LINENO "configure"
4346 #include "confdefs.h"
4347 $ac_includes_default
4351 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4358 rm -f conftest.$ac_objext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360 (eval $ac_compile) 2>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } &&
4364 { ac_try='test -s conftest.$ac_objext'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4372 cat >conftest.$ac_ext <<_ACEOF
4373 #line $LINENO "configure"
4374 #include "confdefs.h"
4375 $ac_includes_default
4379 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 ac_hi=$ac_mid; break
4400 echo "$as_me: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4402 ac_lo=`expr $ac_mid + 1`
4403 if test $ac_lo -le $ac_mid; then
4407 ac_mid=`expr 2 '*' $ac_mid + 1`
4409 rm -f conftest.$ac_objext conftest.$ac_ext
4412 echo "$as_me: failed program was:" >&5
4413 cat conftest.$ac_ext >&5
4414 cat >conftest.$ac_ext <<_ACEOF
4415 #line $LINENO "configure"
4416 #include "confdefs.h"
4417 $ac_includes_default
4421 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4428 rm -f conftest.$ac_objext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4442 cat >conftest.$ac_ext <<_ACEOF
4443 #line $LINENO "configure"
4444 #include "confdefs.h"
4445 $ac_includes_default
4449 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458 (eval $ac_compile) 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 ac_lo=$ac_mid; break
4470 echo "$as_me: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4472 ac_hi=`expr '(' $ac_mid ')' - 1`
4473 if test $ac_mid -le $ac_hi; then
4477 ac_mid=`expr 2 '*' $ac_mid`
4479 rm -f conftest.$ac_objext conftest.$ac_ext
4482 echo "$as_me: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4486 rm -f conftest.$ac_objext conftest.$ac_ext
4488 rm -f conftest.$ac_objext conftest.$ac_ext
4489 # Binary search between lo and hi bounds.
4490 while test "x$ac_lo" != "x$ac_hi"; do
4491 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4492 cat >conftest.$ac_ext <<_ACEOF
4493 #line $LINENO "configure"
4494 #include "confdefs.h"
4495 $ac_includes_default
4499 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4506 rm -f conftest.$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -s conftest.$ac_objext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4520 echo "$as_me: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4522 ac_lo=`expr '(' $ac_mid ')' + 1`
4524 rm -f conftest.$ac_objext conftest.$ac_ext
4527 ?*) ac_cv_sizeof_long=$ac_lo;;
4528 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4529 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4530 { (exit 1); exit 1; }; } ;;
4533 if test "$cross_compiling" = yes; then
4534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4535 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4536 { (exit 1); exit 1; }; }
4538 cat >conftest.$ac_ext <<_ACEOF
4539 #line $LINENO "configure"
4540 #include "confdefs.h"
4541 $ac_includes_default
4542 long longval () { return (long) (sizeof (long)); }
4543 unsigned long ulongval () { return (long) (sizeof (long)); }
4550 FILE *f = fopen ("conftest.val", "w");
4553 if (((long) (sizeof (long))) < 0)
4555 long i = longval ();
4556 if (i != ((long) (sizeof (long))))
4558 fprintf (f, "%ld\n", i);
4562 unsigned long i = ulongval ();
4563 if (i != ((long) (sizeof (long))))
4565 fprintf (f, "%lu\n", i);
4567 exit (ferror (f) || fclose (f) != 0);
4573 rm -f conftest$ac_exeext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4575 (eval $ac_link) 2>&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_sizeof_long=`cat conftest.val`
4586 echo "$as_me: program exited with status $ac_status" >&5
4587 echo "$as_me: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4590 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4591 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4592 { (exit 1); exit 1; }; }
4594 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4602 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4603 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4604 cat >>confdefs.h <<_ACEOF
4605 #define SIZEOF_LONG $ac_cv_sizeof_long
4609 echo "$as_me:$LINENO: checking for float" >&5
4610 echo $ECHO_N "checking for float... $ECHO_C" >&6
4611 if test "${ac_cv_type_float+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 cat >conftest.$ac_ext <<_ACEOF
4615 #line $LINENO "configure"
4616 #include "confdefs.h"
4617 $ac_includes_default
4629 rm -f conftest.$ac_objext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } &&
4635 { ac_try='test -s conftest.$ac_objext'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4641 ac_cv_type_float=yes
4643 echo "$as_me: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4647 rm -f conftest.$ac_objext conftest.$ac_ext
4649 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4650 echo "${ECHO_T}$ac_cv_type_float" >&6
4652 echo "$as_me:$LINENO: checking size of float" >&5
4653 echo $ECHO_N "checking size of float... $ECHO_C" >&6
4654 if test "${ac_cv_sizeof_float+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 if test "$ac_cv_type_float" = yes; then
4658 # The cast to unsigned long works around a bug in the HP C Compiler
4659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4661 # This bug is HP SR number 8606223364.
4662 if test "$cross_compiling" = yes; then
4663 # Depending upon the size, compute the lo and hi bounds.
4664 cat >conftest.$ac_ext <<_ACEOF
4665 #line $LINENO "configure"
4666 #include "confdefs.h"
4667 $ac_includes_default
4671 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
4678 rm -f conftest.$ac_objext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680 (eval $ac_compile) 2>&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try='test -s conftest.$ac_objext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4692 cat >conftest.$ac_ext <<_ACEOF
4693 #line $LINENO "configure"
4694 #include "confdefs.h"
4695 $ac_includes_default
4699 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -s conftest.$ac_objext'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 ac_hi=$ac_mid; break
4720 echo "$as_me: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4722 ac_lo=`expr $ac_mid + 1`
4723 if test $ac_lo -le $ac_mid; then
4727 ac_mid=`expr 2 '*' $ac_mid + 1`
4729 rm -f conftest.$ac_objext conftest.$ac_ext
4732 echo "$as_me: failed program was:" >&5
4733 cat conftest.$ac_ext >&5
4734 cat >conftest.$ac_ext <<_ACEOF
4735 #line $LINENO "configure"
4736 #include "confdefs.h"
4737 $ac_includes_default
4741 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
4748 rm -f conftest.$ac_objext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750 (eval $ac_compile) 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4762 cat >conftest.$ac_ext <<_ACEOF
4763 #line $LINENO "configure"
4764 #include "confdefs.h"
4765 $ac_includes_default
4769 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
4776 rm -f conftest.$ac_objext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try='test -s conftest.$ac_objext'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
4788 ac_lo=$ac_mid; break
4790 echo "$as_me: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4792 ac_hi=`expr '(' $ac_mid ')' - 1`
4793 if test $ac_mid -le $ac_hi; then
4797 ac_mid=`expr 2 '*' $ac_mid`
4799 rm -f conftest.$ac_objext conftest.$ac_ext
4802 echo "$as_me: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4806 rm -f conftest.$ac_objext conftest.$ac_ext
4808 rm -f conftest.$ac_objext conftest.$ac_ext
4809 # Binary search between lo and hi bounds.
4810 while test "x$ac_lo" != "x$ac_hi"; do
4811 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4812 cat >conftest.$ac_ext <<_ACEOF
4813 #line $LINENO "configure"
4814 #include "confdefs.h"
4815 $ac_includes_default
4819 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
4826 rm -f conftest.$ac_objext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828 (eval $ac_compile) 2>&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try='test -s conftest.$ac_objext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4840 echo "$as_me: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4842 ac_lo=`expr '(' $ac_mid ')' + 1`
4844 rm -f conftest.$ac_objext conftest.$ac_ext
4847 ?*) ac_cv_sizeof_float=$ac_lo;;
4848 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
4849 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
4850 { (exit 1); exit 1; }; } ;;
4853 if test "$cross_compiling" = yes; then
4854 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4855 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4856 { (exit 1); exit 1; }; }
4858 cat >conftest.$ac_ext <<_ACEOF
4859 #line $LINENO "configure"
4860 #include "confdefs.h"
4861 $ac_includes_default
4862 long longval () { return (long) (sizeof (float)); }
4863 unsigned long ulongval () { return (long) (sizeof (float)); }
4870 FILE *f = fopen ("conftest.val", "w");
4873 if (((long) (sizeof (float))) < 0)
4875 long i = longval ();
4876 if (i != ((long) (sizeof (float))))
4878 fprintf (f, "%ld\n", i);
4882 unsigned long i = ulongval ();
4883 if (i != ((long) (sizeof (float))))
4885 fprintf (f, "%lu\n", i);
4887 exit (ferror (f) || fclose (f) != 0);
4893 rm -f conftest$ac_exeext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4895 (eval $ac_link) 2>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_sizeof_float=`cat conftest.val`
4906 echo "$as_me: program exited with status $ac_status" >&5
4907 echo "$as_me: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4910 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
4911 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
4912 { (exit 1); exit 1; }; }
4914 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4919 ac_cv_sizeof_float=0
4922 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
4923 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
4924 cat >>confdefs.h <<_ACEOF
4925 #define SIZEOF_FLOAT $ac_cv_sizeof_float
4929 echo "$as_me:$LINENO: checking for double" >&5
4930 echo $ECHO_N "checking for double... $ECHO_C" >&6
4931 if test "${ac_cv_type_double+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 cat >conftest.$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4936 #include "confdefs.h"
4937 $ac_includes_default
4943 if (sizeof (double))
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -s conftest.$ac_objext'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4961 ac_cv_type_double=yes
4963 echo "$as_me: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4965 ac_cv_type_double=no
4967 rm -f conftest.$ac_objext conftest.$ac_ext
4969 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
4970 echo "${ECHO_T}$ac_cv_type_double" >&6
4972 echo "$as_me:$LINENO: checking size of double" >&5
4973 echo $ECHO_N "checking size of double... $ECHO_C" >&6
4974 if test "${ac_cv_sizeof_double+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 if test "$ac_cv_type_double" = yes; then
4978 # The cast to unsigned long works around a bug in the HP C Compiler
4979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4981 # This bug is HP SR number 8606223364.
4982 if test "$cross_compiling" = yes; then
4983 # Depending upon the size, compute the lo and hi bounds.
4984 cat >conftest.$ac_ext <<_ACEOF
4985 #line $LINENO "configure"
4986 #include "confdefs.h"
4987 $ac_includes_default
4991 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
4998 rm -f conftest.$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } &&
5004 { ac_try='test -s conftest.$ac_objext'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; }; then
5012 cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5014 #include "confdefs.h"
5015 $ac_includes_default
5019 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5026 rm -f conftest.$ac_objext
5027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5028 (eval $ac_compile) 2>&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -s conftest.$ac_objext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 ac_hi=$ac_mid; break
5040 echo "$as_me: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5042 ac_lo=`expr $ac_mid + 1`
5043 if test $ac_lo -le $ac_mid; then
5047 ac_mid=`expr 2 '*' $ac_mid + 1`
5049 rm -f conftest.$ac_objext conftest.$ac_ext
5052 echo "$as_me: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5054 cat >conftest.$ac_ext <<_ACEOF
5055 #line $LINENO "configure"
5056 #include "confdefs.h"
5057 $ac_includes_default
5061 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5068 rm -f conftest.$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -s conftest.$ac_objext'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; }; then
5082 cat >conftest.$ac_ext <<_ACEOF
5083 #line $LINENO "configure"
5084 #include "confdefs.h"
5085 $ac_includes_default
5089 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5096 rm -f conftest.$ac_objext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5098 (eval $ac_compile) 2>&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -s conftest.$ac_objext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_lo=$ac_mid; break
5110 echo "$as_me: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5112 ac_hi=`expr '(' $ac_mid ')' - 1`
5113 if test $ac_mid -le $ac_hi; then
5117 ac_mid=`expr 2 '*' $ac_mid`
5119 rm -f conftest.$ac_objext conftest.$ac_ext
5122 echo "$as_me: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5126 rm -f conftest.$ac_objext conftest.$ac_ext
5128 rm -f conftest.$ac_objext conftest.$ac_ext
5129 # Binary search between lo and hi bounds.
5130 while test "x$ac_lo" != "x$ac_hi"; do
5131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5132 cat >conftest.$ac_ext <<_ACEOF
5133 #line $LINENO "configure"
5134 #include "confdefs.h"
5135 $ac_includes_default
5139 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5146 rm -f conftest.$ac_objext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } &&
5152 { ac_try='test -s conftest.$ac_objext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5160 echo "$as_me: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5162 ac_lo=`expr '(' $ac_mid ')' + 1`
5164 rm -f conftest.$ac_objext conftest.$ac_ext
5167 ?*) ac_cv_sizeof_double=$ac_lo;;
5168 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
5169 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
5170 { (exit 1); exit 1; }; } ;;
5173 if test "$cross_compiling" = yes; then
5174 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5175 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5176 { (exit 1); exit 1; }; }
5178 cat >conftest.$ac_ext <<_ACEOF
5179 #line $LINENO "configure"
5180 #include "confdefs.h"
5181 $ac_includes_default
5182 long longval () { return (long) (sizeof (double)); }
5183 unsigned long ulongval () { return (long) (sizeof (double)); }
5190 FILE *f = fopen ("conftest.val", "w");
5193 if (((long) (sizeof (double))) < 0)
5195 long i = longval ();
5196 if (i != ((long) (sizeof (double))))
5198 fprintf (f, "%ld\n", i);
5202 unsigned long i = ulongval ();
5203 if (i != ((long) (sizeof (double))))
5205 fprintf (f, "%lu\n", i);
5207 exit (ferror (f) || fclose (f) != 0);
5213 rm -f conftest$ac_exeext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5215 (eval $ac_link) 2>&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 ac_cv_sizeof_double=`cat conftest.val`
5226 echo "$as_me: program exited with status $ac_status" >&5
5227 echo "$as_me: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5230 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
5231 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
5232 { (exit 1); exit 1; }; }
5234 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5239 ac_cv_sizeof_double=0
5242 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5243 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5244 cat >>confdefs.h <<_ACEOF
5245 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5251 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5252 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5253 if test "${ac_cv_lib_z_deflate+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 ac_check_lib_save_LIBS=$LIBS
5258 cat >conftest.$ac_ext <<_ACEOF
5259 #line $LINENO "configure"
5260 #include "confdefs.h"
5262 /* Override any gcc2 internal prototype to avoid an error. */
5266 /* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5277 rm -f conftest.$ac_objext conftest$ac_exeext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5279 (eval $ac_link) 2>&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try='test -s conftest$ac_exeext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5289 ac_cv_lib_z_deflate=yes
5291 echo "$as_me: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 ac_cv_lib_z_deflate=no
5295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5296 LIBS=$ac_check_lib_save_LIBS
5298 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5299 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5300 if test $ac_cv_lib_z_deflate = yes; then
5303 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5304 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5308 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5309 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5310 if test "${ac_cv_lib_m_sin+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 ac_check_lib_save_LIBS=$LIBS
5315 cat >conftest.$ac_ext <<_ACEOF
5316 #line $LINENO "configure"
5317 #include "confdefs.h"
5319 /* Override any gcc2 internal prototype to avoid an error. */
5323 /* We use char because int might match the return type of a gcc2
5324 builtin and then its argument prototype would still apply. */
5334 rm -f conftest.$ac_objext conftest$ac_exeext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5336 (eval $ac_link) 2>&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -s conftest$ac_exeext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5348 echo "$as_me: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5353 LIBS=$ac_check_lib_save_LIBS
5355 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5356 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5357 if test $ac_cv_lib_m_sin = yes; then
5358 cat >>confdefs.h <<_ACEOF
5366 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5367 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5368 if test "${ac_cv_lib_curses_main+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 ac_check_lib_save_LIBS=$LIBS
5372 LIBS="-lcurses $LIBS"
5373 cat >conftest.$ac_ext <<_ACEOF
5374 #line $LINENO "configure"
5375 #include "confdefs.h"
5386 rm -f conftest.$ac_objext conftest$ac_exeext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5388 (eval $ac_link) 2>&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } &&
5392 { ac_try='test -s conftest$ac_exeext'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; }; then
5398 ac_cv_lib_curses_main=yes
5400 echo "$as_me: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5402 ac_cv_lib_curses_main=no
5404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5405 LIBS=$ac_check_lib_save_LIBS
5407 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5408 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5409 if test $ac_cv_lib_curses_main = yes; then
5415 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5416 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5417 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 ac_check_lib_save_LIBS=$LIBS
5421 LIBS="-lncurses $LIBS"
5422 cat >conftest.$ac_ext <<_ACEOF
5423 #line $LINENO "configure"
5424 #include "confdefs.h"
5435 rm -f conftest.$ac_objext conftest$ac_exeext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5437 (eval $ac_link) 2>&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } &&
5441 { ac_try='test -s conftest$ac_exeext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_cv_lib_ncurses_main=yes
5449 echo "$as_me: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5451 ac_cv_lib_ncurses_main=no
5453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5454 LIBS=$ac_check_lib_save_LIBS
5456 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5457 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5458 if test $ac_cv_lib_ncurses_main = yes; then
5464 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5465 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5466 if test "${ac_cv_lib_readline_main+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 ac_check_lib_save_LIBS=$LIBS
5470 LIBS="-lreadline -lcurses $LIBS"
5471 cat >conftest.$ac_ext <<_ACEOF
5472 #line $LINENO "configure"
5473 #include "confdefs.h"
5484 rm -f conftest.$ac_objext conftest$ac_exeext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5486 (eval $ac_link) 2>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -s conftest$ac_exeext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5496 ac_cv_lib_readline_main=yes
5498 echo "$as_me: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5500 ac_cv_lib_readline_main=no
5502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5503 LIBS=$ac_check_lib_save_LIBS
5505 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5506 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5507 if test $ac_cv_lib_readline_main = yes; then
5510 cat >>confdefs.h <<\_ACEOF
5511 #define HAVE_READLINE 1
5519 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.3" >&5
5520 echo $ECHO_N "checking for main in -lwx_gtk-2.3... $ECHO_C" >&6
5521 if test "${ac_cv_lib_wx_gtk_2_3_main+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 ac_check_lib_save_LIBS=$LIBS
5525 LIBS="-lwx_gtk-2.3 $LIBS"
5526 cat >conftest.$ac_ext <<_ACEOF
5527 #line $LINENO "configure"
5528 #include "confdefs.h"
5539 rm -f conftest.$ac_objext conftest$ac_exeext
5540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5541 (eval $ac_link) 2>&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -s conftest$ac_exeext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_cv_lib_wx_gtk_2_3_main=yes
5553 echo "$as_me: failed program was:" >&5
5554 cat conftest.$ac_ext >&5
5555 ac_cv_lib_wx_gtk_2_3_main=no
5557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5558 LIBS=$ac_check_lib_save_LIBS
5560 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_3_main" >&5
5561 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_3_main" >&6
5562 if test $ac_cv_lib_wx_gtk_2_3_main = yes; then
5563 wxwin=true; wx_gtk=true;
5564 cat >>confdefs.h <<\_ACEOF
5565 #define HAVE_WXWINDOWS 1
5570 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
5571 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
5572 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 ac_check_lib_save_LIBS=$LIBS
5577 cat >conftest.$ac_ext <<_ACEOF
5578 #line $LINENO "configure"
5579 #include "confdefs.h"
5581 /* Override any gcc2 internal prototype to avoid an error. */
5585 /* We use char because int might match the return type of a gcc2
5586 builtin and then its argument prototype would still apply. */
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -s conftest$ac_exeext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 ac_cv_lib_fftw_fftw_one=yes
5610 echo "$as_me: failed program was:" >&5
5611 cat conftest.$ac_ext >&5
5612 ac_cv_lib_fftw_fftw_one=no
5614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5615 LIBS=$ac_check_lib_save_LIBS
5617 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
5618 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
5619 if test $ac_cv_lib_fftw_fftw_one = yes; then
5621 cat >>confdefs.h <<\_ACEOF
5629 echo "$as_me:$LINENO: checking for main in -lGL" >&5
5630 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5631 if test "${ac_cv_lib_GL_main+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 ac_check_lib_save_LIBS=$LIBS
5635 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
5636 cat >conftest.$ac_ext <<_ACEOF
5637 #line $LINENO "configure"
5638 #include "confdefs.h"
5649 rm -f conftest.$ac_objext conftest$ac_exeext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651 (eval $ac_link) 2>&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } &&
5655 { ac_try='test -s 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_lib_GL_main=yes
5663 echo "$as_me: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5665 ac_cv_lib_GL_main=no
5667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5668 LIBS=$ac_check_lib_save_LIBS
5670 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
5671 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
5672 if test $ac_cv_lib_GL_main = yes; then
5678 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
5679 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
5680 if test "${ac_cv_lib_pthread_main+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 ac_check_lib_save_LIBS=$LIBS
5684 LIBS="-lpthread $LIBS"
5685 cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
5687 #include "confdefs.h"
5698 rm -f conftest.$ac_objext conftest$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700 (eval $ac_link) 2>&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } &&
5704 { ac_try='test -s conftest$ac_exeext'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
5710 ac_cv_lib_pthread_main=yes
5712 echo "$as_me: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5714 ac_cv_lib_pthread_main=no
5716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5717 LIBS=$ac_check_lib_save_LIBS
5719 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
5720 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
5721 if test $ac_cv_lib_pthread_main = yes; then
5728 if test "$zlib" = "true" ; then
5729 echo "$as_me:$LINENO: checking for main in -lpng" >&5
5730 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
5731 if test "${ac_cv_lib_png_main+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 ac_check_lib_save_LIBS=$LIBS
5736 cat >conftest.$ac_ext <<_ACEOF
5737 #line $LINENO "configure"
5738 #include "confdefs.h"
5749 rm -f conftest.$ac_objext conftest$ac_exeext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5751 (eval $ac_link) 2>&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -s conftest$ac_exeext'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
5761 ac_cv_lib_png_main=yes
5763 echo "$as_me: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5765 ac_cv_lib_png_main=no
5767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5768 LIBS=$ac_check_lib_save_LIBS
5770 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
5771 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
5772 if test $ac_cv_lib_png_main = yes; then
5774 cat >>confdefs.h <<\_ACEOF
5784 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5785 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5786 if test "${ac_cv_header_stdc+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 cat >conftest.$ac_ext <<_ACEOF
5790 #line $LINENO "configure"
5791 #include "confdefs.h"
5798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5801 grep -v '^ *+' conftest.er1 >conftest.err
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } >/dev/null; then
5806 if test -s conftest.err; then
5807 ac_cpp_err=$ac_c_preproc_warn_flag
5814 if test -z "$ac_cpp_err"; then
5815 ac_cv_header_stdc=yes
5817 echo "$as_me: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5819 ac_cv_header_stdc=no
5821 rm -f conftest.err conftest.$ac_ext
5823 if test $ac_cv_header_stdc = yes; then
5824 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5825 cat >conftest.$ac_ext <<_ACEOF
5826 #line $LINENO "configure"
5827 #include "confdefs.h"
5831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5832 $EGREP "memchr" >/dev/null 2>&1; then
5835 ac_cv_header_stdc=no
5841 if test $ac_cv_header_stdc = yes; then
5842 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5843 cat >conftest.$ac_ext <<_ACEOF
5844 #line $LINENO "configure"
5845 #include "confdefs.h"
5849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5850 $EGREP "free" >/dev/null 2>&1; then
5853 ac_cv_header_stdc=no
5859 if test $ac_cv_header_stdc = yes; then
5860 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5861 if test "$cross_compiling" = yes; then
5864 cat >conftest.$ac_ext <<_ACEOF
5865 #line $LINENO "configure"
5866 #include "confdefs.h"
5868 #if ((' ' & 0x0FF) == 0x020)
5869 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5870 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5872 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5873 || ('j' <= (c) && (c) <= 'r') \
5874 || ('s' <= (c) && (c) <= 'z'))
5875 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5878 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5883 for (i = 0; i < 256; i++)
5884 if (XOR (islower (i), ISLOWER (i))
5885 || toupper (i) != TOUPPER (i))
5890 rm -f conftest$ac_exeext
5891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5892 (eval $ac_link) 2>&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5903 echo "$as_me: program exited with status $ac_status" >&5
5904 echo "$as_me: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5907 ac_cv_header_stdc=no
5909 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5913 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5914 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5915 if test $ac_cv_header_stdc = yes; then
5917 cat >>confdefs.h <<\_ACEOF
5918 #define STDC_HEADERS 1
5947 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
5949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5951 echo "$as_me:$LINENO: checking for $ac_header" >&5
5952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5959 # Is the header compilable?
5960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5962 cat >conftest.$ac_ext <<_ACEOF
5963 #line $LINENO "configure"
5964 #include "confdefs.h"
5965 $ac_includes_default
5966 #include <$ac_header>
5968 rm -f conftest.$ac_objext
5969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5970 (eval $ac_compile) 2>&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } &&
5974 { ac_try='test -s conftest.$ac_objext'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
5980 ac_header_compiler=yes
5982 echo "$as_me: failed program was:" >&5
5983 cat conftest.$ac_ext >&5
5984 ac_header_compiler=no
5986 rm -f conftest.$ac_objext conftest.$ac_ext
5987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5988 echo "${ECHO_T}$ac_header_compiler" >&6
5990 # Is the header present?
5991 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5993 cat >conftest.$ac_ext <<_ACEOF
5994 #line $LINENO "configure"
5995 #include "confdefs.h"
5996 #include <$ac_header>
5998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } >/dev/null; then
6006 if test -s conftest.err; then
6007 ac_cpp_err=$ac_c_preproc_warn_flag
6014 if test -z "$ac_cpp_err"; then
6015 ac_header_preproc=yes
6017 echo "$as_me: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6019 ac_header_preproc=no
6021 rm -f conftest.err conftest.$ac_ext
6022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6023 echo "${ECHO_T}$ac_header_preproc" >&6
6025 # So? What about this header?
6026 case $ac_header_compiler:$ac_header_preproc in
6028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6040 echo "$as_me:$LINENO: checking for $ac_header" >&5
6041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 eval "$as_ac_Header=$ac_header_preproc"
6047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6052 cat >>confdefs.h <<_ACEOF
6053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6061 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6062 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6063 if test "${ac_cv_c_const+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 cat >conftest.$ac_ext <<_ACEOF
6067 #line $LINENO "configure"
6068 #include "confdefs.h"
6073 /* FIXME: Include the comments suggested by Paul. */
6075 /* Ultrix mips cc rejects this. */
6076 typedef int charset[2];
6078 /* SunOS 4.1.1 cc rejects this. */
6079 char const *const *ccp;
6081 /* NEC SVR4.0.2 mips cc rejects this. */
6082 struct point {int x, y;};
6083 static struct point const zero = {0,0};
6084 /* AIX XL C 1.02.0.0 rejects this.
6085 It does not let you subtract one const X* pointer from another in
6086 an arm of an if-expression whose if-part is not a constant
6088 const char *g = "string";
6089 ccp = &g + (g ? g-g : 0);
6090 /* HPUX 7.0 cc rejects these. */
6093 ccp = (char const *const *) p;
6094 { /* SCO 3.2v4 cc rejects this. */
6096 char const *s = 0 ? (char *) 0 : (char const *) 0;
6100 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6102 const int *foo = &x[0];
6105 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6106 typedef const int *iptr;
6110 { /* AIX XL C 1.02.0.0 rejects this saying
6111 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6112 struct s { int j; const int *ap[3]; };
6113 struct s *b; b->j = 5;
6115 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6124 rm -f conftest.$ac_objext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6126 (eval $ac_compile) 2>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try='test -s conftest.$ac_objext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6138 echo "$as_me: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6142 rm -f conftest.$ac_objext conftest.$ac_ext
6144 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6145 echo "${ECHO_T}$ac_cv_c_const" >&6
6146 if test $ac_cv_c_const = no; then
6148 cat >>confdefs.h <<\_ACEOF
6154 echo "$as_me:$LINENO: checking for off_t" >&5
6155 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6156 if test "${ac_cv_type_off_t+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 cat >conftest.$ac_ext <<_ACEOF
6160 #line $LINENO "configure"
6161 #include "confdefs.h"
6162 $ac_includes_default
6174 rm -f conftest.$ac_objext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -s conftest.$ac_objext'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 ac_cv_type_off_t=yes
6188 echo "$as_me: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6192 rm -f conftest.$ac_objext conftest.$ac_ext
6194 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6195 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6196 if test $ac_cv_type_off_t = yes; then
6200 cat >>confdefs.h <<_ACEOF
6206 echo "$as_me:$LINENO: checking for size_t" >&5
6207 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6208 if test "${ac_cv_type_size_t+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 cat >conftest.$ac_ext <<_ACEOF
6212 #line $LINENO "configure"
6213 #include "confdefs.h"
6214 $ac_includes_default
6220 if (sizeof (size_t))
6226 rm -f conftest.$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228 (eval $ac_compile) 2>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_cv_type_size_t=yes
6240 echo "$as_me: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6242 ac_cv_type_size_t=no
6244 rm -f conftest.$ac_objext conftest.$ac_ext
6246 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6247 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6248 if test $ac_cv_type_size_t = yes; then
6252 cat >>confdefs.h <<_ACEOF
6253 #define size_t unsigned
6258 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6259 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6260 if test "${ac_cv_struct_tm+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 cat >conftest.$ac_ext <<_ACEOF
6264 #line $LINENO "configure"
6265 #include "confdefs.h"
6266 #include <sys/types.h>
6272 struct tm *tp; tp->tm_sec;
6277 rm -f conftest.$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 (eval $ac_compile) 2>&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try='test -s conftest.$ac_objext'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; }; then
6289 ac_cv_struct_tm=time.h
6291 echo "$as_me: failed program was:" >&5
6292 cat conftest.$ac_ext >&5
6293 ac_cv_struct_tm=sys/time.h
6295 rm -f conftest.$ac_objext conftest.$ac_ext
6297 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6298 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6299 if test $ac_cv_struct_tm = sys/time.h; then
6301 cat >>confdefs.h <<\_ACEOF
6302 #define TM_IN_SYS_TIME 1
6309 for ac_func in vprintf
6311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6312 echo "$as_me:$LINENO: checking for $ac_func" >&5
6313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6314 if eval "test \"\${$as_ac_var+set}\" = set"; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 cat >conftest.$ac_ext <<_ACEOF
6318 #line $LINENO "configure"
6319 #include "confdefs.h"
6320 /* System header to define __stub macros and hopefully few prototypes,
6321 which can conflict with char $ac_func (); below. */
6323 /* Override any gcc2 internal prototype to avoid an error. */
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6335 /* The GNU C library defines this for functions which it implements
6336 to always fail with ENOSYS. Some functions are actually named
6337 something starting with __ and the normal name is an alias. */
6338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6348 rm -f conftest.$ac_objext conftest$ac_exeext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6350 (eval $ac_link) 2>&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -s conftest$ac_exeext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 eval "$as_ac_var=yes"
6362 echo "$as_me: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6364 eval "$as_ac_var=no"
6366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6370 if test `eval echo '${'$as_ac_var'}'` = yes; then
6371 cat >>confdefs.h <<_ACEOF
6372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6375 echo "$as_me:$LINENO: checking for _doprnt" >&5
6376 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6377 if test "${ac_cv_func__doprnt+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 cat >conftest.$ac_ext <<_ACEOF
6381 #line $LINENO "configure"
6382 #include "confdefs.h"
6383 /* System header to define __stub macros and hopefully few prototypes,
6384 which can conflict with char _doprnt (); below. */
6386 /* Override any gcc2 internal prototype to avoid an error. */
6390 /* We use char because int might match the return type of a gcc2
6391 builtin and then its argument prototype would still apply. */
6398 /* The GNU C library defines this for functions which it implements
6399 to always fail with ENOSYS. Some functions are actually named
6400 something starting with __ and the normal name is an alias. */
6401 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6411 rm -f conftest.$ac_objext conftest$ac_exeext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6413 (eval $ac_link) 2>&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -s conftest$ac_exeext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_cv_func__doprnt=yes
6425 echo "$as_me: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6427 ac_cv_func__doprnt=no
6429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6431 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6432 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6433 if test $ac_cv_func__doprnt = yes; then
6435 cat >>confdefs.h <<\_ACEOF
6436 #define HAVE_DOPRNT 1
6452 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
6454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6455 echo "$as_me:$LINENO: checking for $ac_func" >&5
6456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6457 if eval "test \"\${$as_ac_var+set}\" = set"; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 cat >conftest.$ac_ext <<_ACEOF
6461 #line $LINENO "configure"
6462 #include "confdefs.h"
6463 /* System header to define __stub macros and hopefully few prototypes,
6464 which can conflict with char $ac_func (); below. */
6466 /* Override any gcc2 internal prototype to avoid an error. */
6470 /* We use char because int might match the return type of a gcc2
6471 builtin and then its argument prototype would still apply. */
6478 /* The GNU C library defines this for functions which it implements
6479 to always fail with ENOSYS. Some functions are actually named
6480 something starting with __ and the normal name is an alias. */
6481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6491 rm -f conftest.$ac_objext conftest$ac_exeext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493 (eval $ac_link) 2>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try='test -s conftest$ac_exeext'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 eval "$as_ac_var=yes"
6505 echo "$as_me: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6507 eval "$as_ac_var=no"
6509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6513 if test `eval echo '${'$as_ac_var'}'` = yes; then
6514 cat >>confdefs.h <<_ACEOF
6515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6521 echo "$as_me:$LINENO: checking for basename" >&5
6522 echo $ECHO_N "checking for basename... $ECHO_C" >&6
6523 if test "${ac_cv_func_basename+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 cat >conftest.$ac_ext <<_ACEOF
6527 #line $LINENO "configure"
6528 #include "confdefs.h"
6529 /* System header to define __stub macros and hopefully few prototypes,
6530 which can conflict with char basename (); below. */
6532 /* Override any gcc2 internal prototype to avoid an error. */
6536 /* We use char because int might match the return type of a gcc2
6537 builtin and then its argument prototype would still apply. */
6544 /* The GNU C library defines this for functions which it implements
6545 to always fail with ENOSYS. Some functions are actually named
6546 something starting with __ and the normal name is an alias. */
6547 #if defined (__stub_basename) || defined (__stub___basename)
6557 rm -f conftest.$ac_objext conftest$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -s conftest$ac_exeext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 ac_cv_func_basename=yes
6571 echo "$as_me: failed program was:" >&5
6572 cat conftest.$ac_ext >&5
6573 ac_cv_func_basename=no
6575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6577 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
6578 echo "${ECHO_T}$ac_cv_func_basename" >&6
6580 echo "$as_me:$LINENO: checking for setjmp" >&5
6581 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
6582 if test "${ac_cv_func_setjmp+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 cat >conftest.$ac_ext <<_ACEOF
6586 #line $LINENO "configure"
6587 #include "confdefs.h"
6588 /* System header to define __stub macros and hopefully few prototypes,
6589 which can conflict with char setjmp (); below. */
6591 /* Override any gcc2 internal prototype to avoid an error. */
6595 /* We use char because int might match the return type of a gcc2
6596 builtin and then its argument prototype would still apply. */
6603 /* The GNU C library defines this for functions which it implements
6604 to always fail with ENOSYS. Some functions are actually named
6605 something starting with __ and the normal name is an alias. */
6606 #if defined (__stub_setjmp) || defined (__stub___setjmp)
6616 rm -f conftest.$ac_objext conftest$ac_exeext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6618 (eval $ac_link) 2>&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try='test -s conftest$ac_exeext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 ac_cv_func_setjmp=yes
6630 echo "$as_me: failed program was:" >&5
6631 cat conftest.$ac_ext >&5
6632 ac_cv_func_setjmp=no
6634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6636 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
6637 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
6639 echo "$as_me:$LINENO: checking for setpriority" >&5
6640 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
6641 if test "${ac_cv_func_setpriority+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 cat >conftest.$ac_ext <<_ACEOF
6645 #line $LINENO "configure"
6646 #include "confdefs.h"
6647 /* System header to define __stub macros and hopefully few prototypes,
6648 which can conflict with char setpriority (); below. */
6650 /* Override any gcc2 internal prototype to avoid an error. */
6654 /* We use char because int might match the return type of a gcc2
6655 builtin and then its argument prototype would still apply. */
6656 char setpriority ();
6662 /* The GNU C library defines this for functions which it implements
6663 to always fail with ENOSYS. Some functions are actually named
6664 something starting with __ and the normal name is an alias. */
6665 #if defined (__stub_setpriority) || defined (__stub___setpriority)
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } &&
6681 { ac_try='test -s conftest$ac_exeext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 ac_cv_func_setpriority=yes
6689 echo "$as_me: failed program was:" >&5
6690 cat conftest.$ac_ext >&5
6691 ac_cv_func_setpriority=no
6693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6695 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
6696 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
6698 echo "$as_me:$LINENO: checking for time" >&5
6699 echo $ECHO_N "checking for time... $ECHO_C" >&6
6700 if test "${ac_cv_func_time+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 cat >conftest.$ac_ext <<_ACEOF
6704 #line $LINENO "configure"
6705 #include "confdefs.h"
6706 /* System header to define __stub macros and hopefully few prototypes,
6707 which can conflict with char time (); below. */
6709 /* Override any gcc2 internal prototype to avoid an error. */
6713 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */
6721 /* The GNU C library defines this for functions which it implements
6722 to always fail with ENOSYS. Some functions are actually named
6723 something starting with __ and the normal name is an alias. */
6724 #if defined (__stub_time) || defined (__stub___time)
6734 rm -f conftest.$ac_objext conftest$ac_exeext
6735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6736 (eval $ac_link) 2>&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try='test -s conftest$ac_exeext'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6748 echo "$as_me: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6754 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
6755 echo "${ECHO_T}$ac_cv_func_time" >&6
6757 echo "$as_me:$LINENO: checking for gettimeofday" >&5
6758 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
6759 if test "${ac_cv_func_gettimeofday+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 cat >conftest.$ac_ext <<_ACEOF
6763 #line $LINENO "configure"
6764 #include "confdefs.h"
6765 /* System header to define __stub macros and hopefully few prototypes,
6766 which can conflict with char gettimeofday (); below. */
6768 /* Override any gcc2 internal prototype to avoid an error. */
6772 /* We use char because int might match the return type of a gcc2
6773 builtin and then its argument prototype would still apply. */
6774 char gettimeofday ();
6780 /* The GNU C library defines this for functions which it implements
6781 to always fail with ENOSYS. Some functions are actually named
6782 something starting with __ and the normal name is an alias. */
6783 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795 (eval $ac_link) 2>&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -s conftest$ac_exeext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_cv_func_gettimeofday=yes
6807 echo "$as_me: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 ac_cv_func_gettimeofday=no
6811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6813 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
6814 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
6817 if test "${OSTYPE}" = "cygwin" ; then
6820 echo "$as_me:$LINENO: checking for getopt_long" >&5
6821 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
6822 if test "${ac_cv_func_getopt_long+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 cat >conftest.$ac_ext <<_ACEOF
6826 #line $LINENO "configure"
6827 #include "confdefs.h"
6828 /* System header to define __stub macros and hopefully few prototypes,
6829 which can conflict with char getopt_long (); below. */
6831 /* Override any gcc2 internal prototype to avoid an error. */
6835 /* We use char because int might match the return type of a gcc2
6836 builtin and then its argument prototype would still apply. */
6837 char getopt_long ();
6843 /* The GNU C library defines this for functions which it implements
6844 to always fail with ENOSYS. Some functions are actually named
6845 something starting with __ and the normal name is an alias. */
6846 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
6856 rm -f conftest.$ac_objext conftest$ac_exeext
6857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6858 (eval $ac_link) 2>&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } &&
6862 { ac_try='test -s conftest$ac_exeext'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; }; then
6868 ac_cv_func_getopt_long=yes
6870 echo "$as_me: failed program was:" >&5
6871 cat conftest.$ac_ext >&5
6872 ac_cv_func_getopt_long=no
6874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6876 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
6877 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
6878 if test $ac_cv_func_getopt_long = yes; then
6886 if test "${getopt_long}" = "false" ; then
6887 my_includes="$my_includes -I../getopt"
6889 cat >>confdefs.h <<\_ACEOF
6890 #define HAVE_GETOPT_LONG 1
6893 ctlibs_base="$ctlibs_base -lgetopt"
6894 LDFLAGS="$LDFLAGS -L../getopt"
6898 INCLUDED_GETOPT_LONG_TRUE=
6899 INCLUDED_GETOPT_LONG_FALSE='#'
6901 INCLUDED_GETOPT_LONG_TRUE='#'
6902 INCLUDED_GETOPT_LONG_FALSE=
6906 if test "${readline}" = "true" ; then
6907 ctlibs_base="$ctlibs_base -lreadline"
6908 if test "${ncurses}" = "true"; then
6909 ctlibs_base="$ctlibs_base -lncurses"
6910 elif test "${curses}" = "true"; then
6911 ctlibs_base="$ctlibs_base -lcurses"
6915 echo "$as_me:$LINENO: checking debug" >&5
6916 echo $ECHO_N "checking debug... $ECHO_C" >&6
6917 # Check whether --enable-debug or --disable-debug was given.
6918 if test "${enable_debug+set}" = set; then
6919 enableval="$enable_debug"
6920 case "${enableval}" in
6922 echo "$as_me:$LINENO: result: yes" >&5
6923 echo "${ECHO_T}yes" >&6
6926 echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6
6929 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
6930 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
6934 debug=false; echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6
6939 if test "$debug" = "true"; then
6947 if test "$datadir" != "" ; then
6948 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
6951 if test "$debug" = "true" ; then
6952 CFLAGS="$CFLAGS -g -DDEBUG"
6954 cat >>confdefs.h <<\_ACEOF
6959 CFLAGS="$CFLAGS -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops"
6961 cat >>confdefs.h <<\_ACEOF
6967 if test "${pthread}" = "true" ; then
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE_WXTHREADS 1
6975 echo "$as_me:$LINENO: checking sstream" >&5
6976 echo $ECHO_N "checking sstream... $ECHO_C" >&6
6977 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
6978 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ; then
6980 cat >>confdefs.h <<\_ACEOF
6981 #define HAVE_SSTREAM 1
6984 echo "$as_me:$LINENO: result: yes" >&5
6985 echo "${ECHO_T}yes" >&6
6987 echo "$as_me:$LINENO: result: no" >&5
6988 echo "${ECHO_T}no" >&6
6991 CFLAGS="$CFLAGS -Wall"
6992 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
6993 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
6994 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
6995 if test "${enable_verbose_warnings+set}" = set; then
6996 enableval="$enable_verbose_warnings"
6997 case "$enableval" in
6999 echo "$as_me:$LINENO: result: yes" >&5
7000 echo "${ECHO_T}yes" >&6
7001 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7004 echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6
7009 echo "$as_me:$LINENO: result: no" >&5
7010 echo "${ECHO_T}no" >&6
7014 echo "$as_me:$LINENO: checking static executables" >&5
7015 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7016 # Check whether --enable-static or --disable-static was given.
7017 if test "${enable_static+set}" = set; then
7018 enableval="$enable_static"
7019 case "$enableval" in
7021 echo "$as_me:$LINENO: result: yes" >&5
7022 echo "${ECHO_T}yes" >&6
7023 CFLAGS="$CFLAGS --static"
7026 echo "$as_me:$LINENO: result: no" >&5
7027 echo "${ECHO_T}no" >&6
7031 echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6
7037 # Check whether --with-lam or --without-lam was given.
7038 if test "${with_lam+set}" = set; then
7040 if test "$withval" != "no" ; then
7046 if test "$withval" != "no" ; then
7047 if test "$prefix" != "NONE" ; then
7048 trylamdir="$trylamdir $prefix"
7051 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7052 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7053 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7054 if test -x "$testlamdir/bin/hcp" ; then
7055 if test "$testlamdir" != "/usr"; then
7056 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7057 CFLAGS="$CFLAGS -I$testlamdir/include"
7059 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7060 lamdir="$testlamdir"
7067 echo "$as_me:$LINENO: result: $lamdir" >&5
7068 echo "${ECHO_T}$lamdir" >&6
7070 echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6
7076 # Check whether --with-ctn or --without-ctn was given.
7077 if test "${with_ctn+set}" = set; then
7079 if test "$withval" != "no" ; then
7085 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7086 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7087 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7088 echo "$as_me:$LINENO: result: disabled" >&5
7089 echo "${ECHO_T}disabled" >&6
7091 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7092 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7093 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7094 if test -f "$testctndir/libctn.a" ; then
7095 LDFLAGS="$LDFLAGS -L$testctndir"
7100 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7101 if test -f "$testctndir/ctn_os.h" ; then
7102 CFLAGS="$CFLAGS -I$testctndir"
7107 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7110 cat >>confdefs.h <<\_ACEOF
7111 #define HAVE_CTN_DICOM 1
7114 echo "$as_me:$LINENO: result: yes" >&5
7115 echo "${ECHO_T}yes" >&6
7117 echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6
7122 echo "$as_me:$LINENO: checking for web access" >&5
7123 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7125 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7126 if test "${with_cgibin_dir+set}" = set; then
7127 withval="$with_cgibin_dir"
7128 cgibindir=$withval ;
7132 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7133 if test "${with_cgibin_url+set}" = set; then
7134 withval="$with_cgibin_url"
7135 cgibinurl=$withval ;
7139 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7140 if test "${with_webdata_dir+set}" = set; then
7141 withval="$with_webdata_dir"
7142 webdatadir=$withval ;
7146 # Check whether --with-webdata-url or --without-webdata-url was given.
7147 if test "${with_webdata_url+set}" = set; then
7148 withval="$with_webdata_url"
7149 webdataurl=$withval ;
7153 # Check whether --with-html-dir or --without-html-dir was given.
7154 if test "${with_html_dir+set}" = set; then
7155 withval="$with_html_dir"
7159 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7160 cgiprograms="ctsim.cgi ctsim.conf"
7164 if test -n "$htmldir" ; then
7165 htmldata=simulate.html
7170 if test -n "$htmldir"; then
7178 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7181 echo "$as_me:$LINENO: result: yes" >&5
7182 echo "${ECHO_T}yes" >&6
7183 if test -z "$cgibindir" ; then
7184 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7185 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7186 { (exit 1); exit 1; }; }
7187 elif test -z "$cgibinurl" ; then
7188 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7189 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7190 { (exit 1); exit 1; }; }
7191 elif test -z "$webdatadir" ; then
7192 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7193 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7194 { (exit 1); exit 1; }; }
7195 elif test -z "$webdataurl" ; then
7196 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7197 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7198 { (exit 1); exit 1; }; }
7199 elif test -z "$htmldir" ; then
7200 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7201 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7202 { (exit 1); exit 1; }; }
7205 echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6
7211 if test -n "$lamdir"; then
7220 echo "$as_me:$LINENO: checking for X" >&5
7221 echo $ECHO_N "checking for X... $ECHO_C" >&6
7224 # Check whether --with-x or --without-x was given.
7225 if test "${with_x+set}" = set; then
7229 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7230 if test "x$with_x" = xno; then
7231 # The user explicitly disabled X.
7234 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7235 # Both variables are already set.
7238 if test "${ac_cv_have_x+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 # One or both of the vars are not set, and there is no cached value.
7242 ac_x_includes=no ac_x_libraries=no
7244 if mkdir conftest.dir; then
7246 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7247 cat >Imakefile <<'_ACEOF'
7249 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7251 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7252 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7253 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7254 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7255 for ac_extension in a so sl; do
7256 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7257 test -f $ac_im_libdir/libX11.$ac_extension; then
7258 ac_im_usrlibdir=$ac_im_libdir; break
7261 # Screen out bogus values from the imake configuration. They are
7262 # bogus both because they are the default anyway, and because
7263 # using them would break gcc on systems where it needs fixed includes.
7264 case $ac_im_incroot in
7266 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7268 case $ac_im_usrlibdir in
7270 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7277 # Standard set of common directories for X headers.
7278 # Check X11 before X11Rn because it is often a symlink to the current release.
7290 /usr/local/X11/include
7291 /usr/local/X11R6/include
7292 /usr/local/X11R5/include
7293 /usr/local/X11R4/include
7295 /usr/local/include/X11
7296 /usr/local/include/X11R6
7297 /usr/local/include/X11R5
7298 /usr/local/include/X11R4
7302 /usr/XFree86/include/X11
7306 /usr/unsupported/include
7308 /usr/local/x11r5/include
7309 /usr/lpp/Xamples/include
7311 /usr/openwin/include
7312 /usr/openwin/share/include'
7314 if test "$ac_x_includes" = no; then
7315 # Guess where to find include files, by looking for Intrinsic.h.
7316 # First, try using that file with no special directory specified.
7317 cat >conftest.$ac_ext <<_ACEOF
7318 #line $LINENO "configure"
7319 #include "confdefs.h"
7320 #include <X11/Intrinsic.h>
7322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7325 grep -v '^ *+' conftest.er1 >conftest.err
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } >/dev/null; then
7330 if test -s conftest.err; then
7331 ac_cpp_err=$ac_c_preproc_warn_flag
7338 if test -z "$ac_cpp_err"; then
7339 # We can compile using X headers with no special include directory.
7342 echo "$as_me: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7344 for ac_dir in $ac_x_header_dirs; do
7345 if test -r "$ac_dir/X11/Intrinsic.h"; then
7346 ac_x_includes=$ac_dir
7351 rm -f conftest.err conftest.$ac_ext
7352 fi # $ac_x_includes = no
7354 if test "$ac_x_libraries" = no; then
7355 # Check for the libraries.
7356 # See if we find them without any special options.
7357 # Don't add to $LIBS permanently.
7360 cat >conftest.$ac_ext <<_ACEOF
7361 #line $LINENO "configure"
7362 #include "confdefs.h"
7363 #include <X11/Intrinsic.h>
7372 rm -f conftest.$ac_objext conftest$ac_exeext
7373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7374 (eval $ac_link) 2>&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -s conftest$ac_exeext'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; }; then
7385 # We can link X programs with no special library path.
7388 echo "$as_me: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7391 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7393 # Don't even attempt the hair of trying to link an X program!
7394 for ac_extension in a so sl; do
7395 if test -r $ac_dir/libXt.$ac_extension; then
7396 ac_x_libraries=$ac_dir
7402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7403 fi # $ac_x_libraries = no
7405 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7406 # Didn't find X anywhere. Cache the known absence of X.
7407 ac_cv_have_x="have_x=no"
7409 # Record where we found X for the cache.
7410 ac_cv_have_x="have_x=yes \
7411 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7416 eval "$ac_cv_have_x"
7419 if test "$have_x" != yes; then
7420 echo "$as_me:$LINENO: result: $have_x" >&5
7421 echo "${ECHO_T}$have_x" >&6
7424 # If each of the values was on the command line, it overrides each guess.
7425 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7426 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7427 # Update the cache value to reflect the command line values.
7428 ac_cv_have_x="have_x=yes \
7429 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7430 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7431 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7434 if test "$no_x" = yes; then
7435 # Not all programs may use this symbol, but it does not hurt to define it.
7437 cat >>confdefs.h <<\_ACEOF
7438 #define X_DISPLAY_MISSING 1
7441 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7443 if test -n "$x_includes"; then
7444 X_CFLAGS="$X_CFLAGS -I$x_includes"
7447 # It would also be nice to do this for all -L options, not just this one.
7448 if test -n "$x_libraries"; then
7449 X_LIBS="$X_LIBS -L$x_libraries"
7450 # For Solaris; some versions of Sun CC require a space after -R and
7451 # others require no space. Words are not sufficient . . . .
7452 case `(uname -sr) 2>/dev/null` in
7454 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7455 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7456 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7457 cat >conftest.$ac_ext <<_ACEOF
7458 #line $LINENO "configure"
7459 #include "confdefs.h"
7469 rm -f conftest.$ac_objext conftest$ac_exeext
7470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7471 (eval $ac_link) 2>&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } &&
7475 { ac_try='test -s conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7483 echo "$as_me: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7488 if test $ac_R_nospace = yes; then
7489 echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6
7491 X_LIBS="$X_LIBS -R$x_libraries"
7493 LIBS="$ac_xsave_LIBS -R $x_libraries"
7494 cat >conftest.$ac_ext <<_ACEOF
7495 #line $LINENO "configure"
7496 #include "confdefs.h"
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508 (eval $ac_link) 2>&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } &&
7512 { ac_try='test -s conftest$ac_exeext'
7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); }; }; then
7520 echo "$as_me: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7525 if test $ac_R_space = yes; then
7526 echo "$as_me:$LINENO: result: yes" >&5
7527 echo "${ECHO_T}yes" >&6
7528 X_LIBS="$X_LIBS -R $x_libraries"
7530 echo "$as_me:$LINENO: result: neither works" >&5
7531 echo "${ECHO_T}neither works" >&6
7538 # Check for system-dependent libraries X programs must link with.
7539 # Do this before checking for the system-independent R6 libraries
7540 # (-lICE), since we may need -lsocket or whatever for X linking.
7542 if test "$ISC" = yes; then
7543 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7545 # Martyn Johnson says this is needed for Ultrix, if the X
7546 # libraries were built with DECnet support. And Karl Berry says
7547 # the Alpha needs dnet_stub (dnet does not exist).
7548 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7549 cat >conftest.$ac_ext <<_ACEOF
7550 #line $LINENO "configure"
7551 #include "confdefs.h"
7553 /* Override any gcc2 internal prototype to avoid an error. */
7557 /* We use char because int might match the return type of a gcc2
7558 builtin and then its argument prototype would still apply. */
7559 char XOpenDisplay ();
7568 rm -f conftest.$ac_objext conftest$ac_exeext
7569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570 (eval $ac_link) 2>&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } &&
7574 { ac_try='test -s conftest$ac_exeext'
7575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; }; then
7582 echo "$as_me: failed program was:" >&5
7583 cat conftest.$ac_ext >&5
7584 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7585 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7586 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 ac_check_lib_save_LIBS=$LIBS
7591 cat >conftest.$ac_ext <<_ACEOF
7592 #line $LINENO "configure"
7593 #include "confdefs.h"
7595 /* Override any gcc2 internal prototype to avoid an error. */
7599 /* We use char because int might match the return type of a gcc2
7600 builtin and then its argument prototype would still apply. */
7610 rm -f conftest.$ac_objext conftest$ac_exeext
7611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7612 (eval $ac_link) 2>&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } &&
7616 { ac_try='test -s conftest$ac_exeext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7622 ac_cv_lib_dnet_dnet_ntoa=yes
7624 echo "$as_me: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7626 ac_cv_lib_dnet_dnet_ntoa=no
7628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7629 LIBS=$ac_check_lib_save_LIBS
7631 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7632 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7633 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7634 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7637 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7638 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7639 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7640 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 ac_check_lib_save_LIBS=$LIBS
7644 LIBS="-ldnet_stub $LIBS"
7645 cat >conftest.$ac_ext <<_ACEOF
7646 #line $LINENO "configure"
7647 #include "confdefs.h"
7649 /* Override any gcc2 internal prototype to avoid an error. */
7653 /* We use char because int might match the return type of a gcc2
7654 builtin and then its argument prototype would still apply. */
7664 rm -f conftest.$ac_objext conftest$ac_exeext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7666 (eval $ac_link) 2>&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } &&
7670 { ac_try='test -s conftest$ac_exeext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7678 echo "$as_me: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7680 ac_cv_lib_dnet_stub_dnet_ntoa=no
7682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7683 LIBS=$ac_check_lib_save_LIBS
7685 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7686 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7687 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7688 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7694 LIBS="$ac_xsave_LIBS"
7696 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7697 # to get the SysV transport functions.
7698 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7700 # The nsl library prevents programs from opening the X display
7701 # on Irix 5.2, according to T.E. Dickey.
7702 # The functions gethostbyname, getservbyname, and inet_addr are
7703 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7704 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7705 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7706 if test "${ac_cv_func_gethostbyname+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 cat >conftest.$ac_ext <<_ACEOF
7710 #line $LINENO "configure"
7711 #include "confdefs.h"
7712 /* System header to define __stub macros and hopefully few prototypes,
7713 which can conflict with char gethostbyname (); below. */
7715 /* Override any gcc2 internal prototype to avoid an error. */
7719 /* We use char because int might match the return type of a gcc2
7720 builtin and then its argument prototype would still apply. */
7721 char gethostbyname ();
7727 /* The GNU C library defines this for functions which it implements
7728 to always fail with ENOSYS. Some functions are actually named
7729 something starting with __ and the normal name is an alias. */
7730 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
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_gethostbyname=yes
7754 echo "$as_me: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7756 ac_cv_func_gethostbyname=no
7758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7760 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7761 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7763 if test $ac_cv_func_gethostbyname = no; then
7764 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7765 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7766 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 ac_check_lib_save_LIBS=$LIBS
7771 cat >conftest.$ac_ext <<_ACEOF
7772 #line $LINENO "configure"
7773 #include "confdefs.h"
7775 /* Override any gcc2 internal prototype to avoid an error. */
7779 /* We use char because int might match the return type of a gcc2
7780 builtin and then its argument prototype would still apply. */
7781 char gethostbyname ();
7790 rm -f conftest.$ac_objext conftest$ac_exeext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7792 (eval $ac_link) 2>&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -s conftest$ac_exeext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_cv_lib_nsl_gethostbyname=yes
7804 echo "$as_me: failed program was:" >&5
7805 cat conftest.$ac_ext >&5
7806 ac_cv_lib_nsl_gethostbyname=no
7808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7809 LIBS=$ac_check_lib_save_LIBS
7811 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7812 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7813 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7817 if test $ac_cv_lib_nsl_gethostbyname = no; then
7818 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7819 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7820 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 ac_check_lib_save_LIBS=$LIBS
7825 cat >conftest.$ac_ext <<_ACEOF
7826 #line $LINENO "configure"
7827 #include "confdefs.h"
7829 /* Override any gcc2 internal prototype to avoid an error. */
7833 /* We use char because int might match the return type of a gcc2
7834 builtin and then its argument prototype would still apply. */
7835 char gethostbyname ();
7844 rm -f conftest.$ac_objext conftest$ac_exeext
7845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7846 (eval $ac_link) 2>&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -s conftest$ac_exeext'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 ac_cv_lib_bsd_gethostbyname=yes
7858 echo "$as_me: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7860 ac_cv_lib_bsd_gethostbyname=no
7862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7863 LIBS=$ac_check_lib_save_LIBS
7865 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7866 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7867 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7868 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7874 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7875 # socket/setsockopt and other routines are undefined under SCO ODT
7876 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7877 # on later versions), says Simon Leinen: it contains gethostby*
7878 # variants that don't use the name server (or something). -lsocket
7879 # must be given before -lnsl if both are needed. We assume that
7880 # if connect needs -lnsl, so does gethostbyname.
7881 echo "$as_me:$LINENO: checking for connect" >&5
7882 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7883 if test "${ac_cv_func_connect+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 cat >conftest.$ac_ext <<_ACEOF
7887 #line $LINENO "configure"
7888 #include "confdefs.h"
7889 /* System header to define __stub macros and hopefully few prototypes,
7890 which can conflict with char connect (); below. */
7892 /* Override any gcc2 internal prototype to avoid an error. */
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7904 /* The GNU C library defines this for functions which it implements
7905 to always fail with ENOSYS. Some functions are actually named
7906 something starting with __ and the normal name is an alias. */
7907 #if defined (__stub_connect) || defined (__stub___connect)
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try='test -s conftest$ac_exeext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7929 ac_cv_func_connect=yes
7931 echo "$as_me: failed program was:" >&5
7932 cat conftest.$ac_ext >&5
7933 ac_cv_func_connect=no
7935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7937 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7938 echo "${ECHO_T}$ac_cv_func_connect" >&6
7940 if test $ac_cv_func_connect = no; then
7941 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7942 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7943 if test "${ac_cv_lib_socket_connect+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 ac_check_lib_save_LIBS=$LIBS
7947 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7948 cat >conftest.$ac_ext <<_ACEOF
7949 #line $LINENO "configure"
7950 #include "confdefs.h"
7952 /* Override any gcc2 internal prototype to avoid an error. */
7956 /* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7969 (eval $ac_link) 2>&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } &&
7973 { ac_try='test -s conftest$ac_exeext'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 ac_cv_lib_socket_connect=yes
7981 echo "$as_me: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7983 ac_cv_lib_socket_connect=no
7985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7986 LIBS=$ac_check_lib_save_LIBS
7988 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7989 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7990 if test $ac_cv_lib_socket_connect = yes; then
7991 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7996 # Guillermo Gomez says -lposix is necessary on A/UX.
7997 echo "$as_me:$LINENO: checking for remove" >&5
7998 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7999 if test "${ac_cv_func_remove+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 cat >conftest.$ac_ext <<_ACEOF
8003 #line $LINENO "configure"
8004 #include "confdefs.h"
8005 /* System header to define __stub macros and hopefully few prototypes,
8006 which can conflict with char remove (); below. */
8008 /* Override any gcc2 internal prototype to avoid an error. */
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8020 /* The GNU C library defines this for functions which it implements
8021 to always fail with ENOSYS. Some functions are actually named
8022 something starting with __ and the normal name is an alias. */
8023 #if defined (__stub_remove) || defined (__stub___remove)
8033 rm -f conftest.$ac_objext conftest$ac_exeext
8034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8035 (eval $ac_link) 2>&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } &&
8039 { ac_try='test -s conftest$ac_exeext'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; }; then
8045 ac_cv_func_remove=yes
8047 echo "$as_me: failed program was:" >&5
8048 cat conftest.$ac_ext >&5
8049 ac_cv_func_remove=no
8051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8053 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8054 echo "${ECHO_T}$ac_cv_func_remove" >&6
8056 if test $ac_cv_func_remove = no; then
8057 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8058 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8059 if test "${ac_cv_lib_posix_remove+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 ac_check_lib_save_LIBS=$LIBS
8063 LIBS="-lposix $LIBS"
8064 cat >conftest.$ac_ext <<_ACEOF
8065 #line $LINENO "configure"
8066 #include "confdefs.h"
8068 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8083 rm -f conftest.$ac_objext conftest$ac_exeext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8085 (eval $ac_link) 2>&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } &&
8089 { ac_try='test -s conftest$ac_exeext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_cv_lib_posix_remove=yes
8097 echo "$as_me: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8099 ac_cv_lib_posix_remove=no
8101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8102 LIBS=$ac_check_lib_save_LIBS
8104 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8105 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8106 if test $ac_cv_lib_posix_remove = yes; then
8107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8112 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8113 echo "$as_me:$LINENO: checking for shmat" >&5
8114 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8115 if test "${ac_cv_func_shmat+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8120 #include "confdefs.h"
8121 /* System header to define __stub macros and hopefully few prototypes,
8122 which can conflict with char shmat (); below. */
8124 /* Override any gcc2 internal prototype to avoid an error. */
8128 /* We use char because int might match the return type of a gcc2
8129 builtin and then its argument prototype would still apply. */
8136 /* The GNU C library defines this for functions which it implements
8137 to always fail with ENOSYS. Some functions are actually named
8138 something starting with __ and the normal name is an alias. */
8139 #if defined (__stub_shmat) || defined (__stub___shmat)
8149 rm -f conftest.$ac_objext conftest$ac_exeext
8150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8151 (eval $ac_link) 2>&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } &&
8155 { ac_try='test -s conftest$ac_exeext'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; }; then
8161 ac_cv_func_shmat=yes
8163 echo "$as_me: failed program was:" >&5
8164 cat conftest.$ac_ext >&5
8167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8169 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8170 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8172 if test $ac_cv_func_shmat = no; then
8173 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8174 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8175 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 ac_check_lib_save_LIBS=$LIBS
8180 cat >conftest.$ac_ext <<_ACEOF
8181 #line $LINENO "configure"
8182 #include "confdefs.h"
8184 /* Override any gcc2 internal prototype to avoid an error. */
8188 /* We use char because int might match the return type of a gcc2
8189 builtin and then its argument prototype would still apply. */
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8201 (eval $ac_link) 2>&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } &&
8205 { ac_try='test -s conftest$ac_exeext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 ac_cv_lib_ipc_shmat=yes
8213 echo "$as_me: failed program was:" >&5
8214 cat conftest.$ac_ext >&5
8215 ac_cv_lib_ipc_shmat=no
8217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8218 LIBS=$ac_check_lib_save_LIBS
8220 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8221 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8222 if test $ac_cv_lib_ipc_shmat = yes; then
8223 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8229 # Check for libraries that X11R6 Xt/Xaw programs need.
8230 ac_save_LDFLAGS=$LDFLAGS
8231 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8232 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8233 # check for ICE first), but we must link in the order -lSM -lICE or
8234 # we get undefined symbols. So assume we have SM if we have ICE.
8235 # These have to be linked with before -lX11, unlike the other
8236 # libraries we check for below, so use a different variable.
8237 # John Interrante, Karl Berry
8238 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8239 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8240 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 ac_check_lib_save_LIBS=$LIBS
8244 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8245 cat >conftest.$ac_ext <<_ACEOF
8246 #line $LINENO "configure"
8247 #include "confdefs.h"
8249 /* Override any gcc2 internal prototype to avoid an error. */
8253 /* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8255 char IceConnectionNumber ();
8259 IceConnectionNumber ();
8264 rm -f conftest.$ac_objext conftest$ac_exeext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -s conftest$ac_exeext'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; }; then
8276 ac_cv_lib_ICE_IceConnectionNumber=yes
8278 echo "$as_me: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8280 ac_cv_lib_ICE_IceConnectionNumber=no
8282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8283 LIBS=$ac_check_lib_save_LIBS
8285 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8286 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8287 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8288 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8291 LDFLAGS=$ac_save_LDFLAGS
8302 X_TOOLKIT_LIBS="-lXt"
8303 X_BASIC_LIBS="-lXext -lX11 -lXmu"
8305 our_saved_LDFLAGS="$LDFLAGS"
8306 LDFLAGS="$X_LIBS $LDFLAGS"
8307 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
8308 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
8309 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 ac_check_lib_save_LIBS=$LIBS
8313 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
8314 cat >conftest.$ac_ext <<_ACEOF
8315 #line $LINENO "configure"
8316 #include "confdefs.h"
8318 /* Override any gcc2 internal prototype to avoid an error. */
8322 /* We use char because int might match the return type of a gcc2
8323 builtin and then its argument prototype would still apply. */
8324 char XtToolkitThreadInitialize ();
8328 XtToolkitThreadInitialize ();
8333 rm -f conftest.$ac_objext conftest$ac_exeext
8334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8335 (eval $ac_link) 2>&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } &&
8339 { ac_try='test -s conftest$ac_exeext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8345 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
8347 echo "$as_me: failed program was:" >&5
8348 cat conftest.$ac_ext >&5
8349 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
8351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8352 LIBS=$ac_check_lib_save_LIBS
8354 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
8355 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
8356 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
8358 cat >>confdefs.h <<\_ACEOF
8359 #define X_THREAD_SUPPORT 1
8364 LDFLAGS="$our_saved_LDFLAGS"
8368 if test "x$no_x" = "xyes"; then
8376 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
8379 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8381 echo "$as_me:$LINENO: checking for X" >&5
8382 echo $ECHO_N "checking for X... $ECHO_C" >&6
8383 if test "$no_x" != "yes" ; then
8385 cat >>confdefs.h <<\_ACEOF
8389 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
8390 ctlib_graphics="$ctlibs_base -lctgraphics"
8391 echo "$as_me:$LINENO: result: yes" >&5
8392 echo "${ECHO_T}yes" >&6
8393 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
8394 if test "$libgl" = "true" ; then
8395 ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
8396 if test "$wxwin" = "true" ; then
8397 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.3"
8400 if test "$wxwin" = "true" ; then
8402 cat >>confdefs.h <<\_ACEOF
8417 echo "$as_me:$LINENO: result: no" >&5
8418 echo "${ECHO_T}no" >&6
8421 if test "$png" = "true" ; then
8422 ctlibs_tools="$ctlibs_tools -lpng"
8424 if test "$zlib" = "true" ; then
8425 ctlibs_tools="$ctlibs_tools -lz"
8427 if test "$fftw" = "true" ; then
8428 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
8430 if test "$ctn" = "true"; then
8431 ctlibs_tools="$ctlibs_tools -lctn"
8434 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
8435 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
8436 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 ac_check_lib_save_LIBS=$LIBS
8440 LIBS="-ldmallocxx $LIBS"
8441 cat >conftest.$ac_ext <<_ACEOF
8442 #line $LINENO "configure"
8443 #include "confdefs.h"
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_lib_dmallocxx_main=yes
8468 echo "$as_me: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8470 ac_cv_lib_dmallocxx_main=no
8472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8473 LIBS=$ac_check_lib_save_LIBS
8475 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
8476 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
8477 if test $ac_cv_lib_dmallocxx_main = yes; then
8483 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
8484 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
8485 # Check whether --enable-dmalloc or --disable-dmalloc was given.
8486 if test "${enable_dmalloc+set}" = set; then
8487 enableval="$enable_dmalloc"
8488 case "${enableval}" in
8489 yes) usedmalloc=true
8490 echo "$as_me:$LINENO: result: yes" >&5
8491 echo "${ECHO_T}yes" >&6
8493 no) usedmalloc=false
8494 echo "$as_me:$LINENO: result: no" >&5
8495 echo "${ECHO_T}no" >&6
8497 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
8498 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
8502 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
8503 echo "${ECHO_T}no" >&6
8506 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
8507 ctlibs_tools="$ctlibs_tools -ldmallocxx"
8509 cat >>confdefs.h <<\_ACEOF
8510 #define HAVE_DMALLOC 1
8513 echo "$as_me:$LINENO: result: Using dmalloc" >&5
8514 echo "${ECHO_T}Using dmalloc" >&6
8517 echo "$as_me:$LINENO: checking for main in -lefence" >&5
8518 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
8519 if test "${ac_cv_lib_efence_main+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 ac_check_lib_save_LIBS=$LIBS
8523 LIBS="-lefence $LIBS"
8524 cat >conftest.$ac_ext <<_ACEOF
8525 #line $LINENO "configure"
8526 #include "confdefs.h"
8537 rm -f conftest.$ac_objext conftest$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539 (eval $ac_link) 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try='test -s conftest$ac_exeext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_cv_lib_efence_main=yes
8551 echo "$as_me: failed program was:" >&5
8552 cat conftest.$ac_ext >&5
8553 ac_cv_lib_efence_main=no
8555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8556 LIBS=$ac_check_lib_save_LIBS
8558 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
8559 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
8560 if test $ac_cv_lib_efence_main = yes; then
8566 echo "$as_me:$LINENO: checking for enable-efence" >&5
8567 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
8568 # Check whether --enable-efence or --disable-efence was given.
8569 if test "${enable_efence+set}" = set; then
8570 enableval="$enable_efence"
8571 case "${enableval}" in
8573 echo "$as_me:$LINENO: result: yes" >&5
8574 echo "${ECHO_T}yes" >&6
8577 echo "$as_me:$LINENO: result: no" >&5
8578 echo "${ECHO_T}no" >&6
8580 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
8581 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
8585 useefence=false; echo "$as_me:$LINENO: result: no" >&5
8586 echo "${ECHO_T}no" >&6
8589 if test "$efence" = "true" -a "$useefence" = "true" ; then
8590 ctlibs_tools="$ctlibs_tools -lefence"
8592 cat >>confdefs.h <<\_ACEOF
8593 #define HAVE_EFENCE 1
8596 echo "$as_me:$LINENO: result: Using efence" >&5
8597 echo "${ECHO_T}Using efence" >&6
8600 if test "$wxwin" = "true" ; then
8601 if test "$wx_gtk" = "true" ; then
8602 wxcflags=`$wxconfig --cflags`
8603 wxlibs=`$wxconfig --libs`
8605 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
8606 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
8608 CFLAGS="$CFLAGS -I../include $wxcflags"
8609 ctlib_graphics="$ctlib_graphics $wxlibs"
8613 HAVE_WXWINDOWS_TRUE=
8614 HAVE_WXWINDOWS_FALSE='#'
8616 HAVE_WXWINDOWS_TRUE='#'
8617 HAVE_WXWINDOWS_FALSE=
8623 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
8624 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
8627 if test -n "$lamdir" ; then
8628 lamprograms="ctsimtext-lam"
8636 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"
8639 cat >confcache <<\_ACEOF
8640 # This file is a shell script that caches the results of configure
8641 # tests run on this system so they can be shared between configure
8642 # scripts and configure runs, see configure's option --config-cache.
8643 # It is not useful on other systems. If it contains results you don't
8644 # want to keep, you may remove or edit it.
8646 # config.status only pays attention to the cache file if you give it
8647 # the --recheck option to rerun configure.
8649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8655 # The following way of writing the cache mishandles newlines in values,
8656 # but we know of no workaround that is simple, portable, and efficient.
8657 # So, don't put newlines in cache variables' values.
8658 # Ultrix sh set writes to stderr and can't be redirected directly,
8659 # and sets the high bit in the cache file unless we assign to the vars.
8662 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8664 # `set' does not quote correctly, so add quotes (double-quote
8665 # substitution turns \\\\ into \\, and sed turns \\ into \).
8668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8671 # `set' quotes correctly as required by POSIX, so do not add quotes.
8673 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8682 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8684 if cmp -s $cache_file confcache; then :; else
8685 if test -w $cache_file; then
8686 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8687 cat confcache >$cache_file
8689 echo "not updating unwritable cache $cache_file"
8694 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8695 # Let make expand exec_prefix.
8696 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8698 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8699 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8700 # trailing colons and then remove the whole line if VPATH becomes empty
8701 # (actually we leave an empty line to preserve line numbers).
8702 if test "x$srcdir" = x.; then
8703 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8704 s/:*\$(srcdir):*/:/;
8705 s/:*\${srcdir}:*/:/;
8707 s/^\([^=]*=[ ]*\):*/\1/;
8713 DEFS=-DHAVE_CONFIG_H
8717 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8718 # 1. Remove the extension, and $U if already installed.
8719 ac_i=`echo "$ac_i" |
8720 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8722 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8723 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8727 LTLIBOBJS=$ac_ltlibobjs
8731 : ${CONFIG_STATUS=./config.status}
8732 ac_clean_files_save=$ac_clean_files
8733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8734 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8735 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8736 cat >$CONFIG_STATUS <<_ACEOF
8738 # Generated by $as_me.
8739 # Run this file to recreate the current configuration.
8740 # Compiler output produced by configure, useful for debugging
8741 # configure, is in config.log if it exists.
8744 SHELL=\${CONFIG_SHELL-$SHELL}
8747 cat >>$CONFIG_STATUS <<\_ACEOF
8748 ## --------------------- ##
8749 ## M4sh Initialization. ##
8750 ## --------------------- ##
8752 # Be Bourne compatible
8753 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8756 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8757 # is contrary to our usage. Disable this feature.
8758 alias -g '${1+"$@"}'='"$@"'
8759 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8763 # Support unset when possible.
8764 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8771 # Work around bugs in pre-3.0 UWIN ksh.
8772 $as_unset ENV MAIL MAILPATH
8778 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
8780 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8781 eval $as_var=C; export $as_var
8787 # Required to use basename.
8788 if expr a : '\(a\)' >/dev/null 2>&1; then
8794 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8795 as_basename=basename
8801 # Name of the executable.
8802 as_me=`$as_basename "$0" ||
8803 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8804 X"$0" : 'X\(//\)$' \| \
8805 X"$0" : 'X\(/\)$' \| \
8806 . : '\(.\)' 2>/dev/null ||
8808 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8809 /^X\/\(\/\/\)$/{ s//\1/; q; }
8810 /^X\/\(\/\).*/{ s//\1/; q; }
8814 # PATH needs CR, and LINENO needs CR and PATH.
8815 # Avoid depending upon Character Ranges.
8816 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8817 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8818 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8819 as_cr_digits='0123456789'
8820 as_cr_alnum=$as_cr_Letters$as_cr_digits
8822 # The user is always right.
8823 if test "${PATH_SEPARATOR+set}" != set; then
8824 echo "#! /bin/sh" >conftest.sh
8825 echo "exit 0" >>conftest.sh
8826 chmod +x conftest.sh
8827 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
8838 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8839 test "x$as_lineno_1" != "x$as_lineno_2" &&
8840 test "x$as_lineno_3" = "x$as_lineno_2" || {
8841 # Find who we are. Look in the path if we contain no path at all
8844 *[\\/]* ) as_myself=$0 ;;
8845 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 test -z "$as_dir" && as_dir=.
8850 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8855 # We did not find ourselves, most probably we were run as `sh COMMAND'
8856 # in which case we are not to be found in the path.
8857 if test "x$as_myself" = x; then
8860 if test ! -f "$as_myself"; then
8861 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8862 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8863 { (exit 1); exit 1; }; }
8865 case $CONFIG_SHELL in
8867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8871 test -z "$as_dir" && as_dir=.
8872 for as_base in sh bash ksh sh5; do
8875 if ("$as_dir/$as_base" -c '
8878 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8879 test "x$as_lineno_1" != "x$as_lineno_2" &&
8880 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8881 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8882 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8883 CONFIG_SHELL=$as_dir/$as_base
8885 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8893 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8894 # uniformly replaced by the line number. The first 'sed' inserts a
8895 # line-number line before each line; the second 'sed' does the real
8896 # work. The second script uses 'N' to pair each line-number line
8897 # with the numbered line, and appends trailing '-' during
8898 # substitution so that $LINENO is not a special case at line end.
8899 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8900 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8901 sed '=' <$as_myself |
8906 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8909 s,^['$as_cr_digits']*\n,,
8911 chmod +x $as_me.lineno ||
8912 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8913 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8914 { (exit 1); exit 1; }; }
8916 # Don't try to exec as it changes $[0], causing all sort of problems
8917 # (the dirname of $[0] is not the place where we might find the
8918 # original and so on. Autoconf is especially sensible to this).
8920 # Exit status is that of the last command.
8925 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8926 *c*,-n*) ECHO_N= ECHO_C='
8928 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8929 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8932 if expr a : '\(a\)' >/dev/null 2>&1; then
8938 rm -f conf$$ conf$$.exe conf$$.file
8940 if ln -s conf$$.file conf$$ 2>/dev/null; then
8941 # We could just check for DJGPP; but this test a) works b) is more generic
8942 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8943 if test -f conf$$.exe; then
8944 # Don't use ln at all; we don't have any links
8949 elif ln conf$$.file conf$$ 2>/dev/null; then
8954 rm -f conf$$ conf$$.exe conf$$.file
8956 if mkdir -p . 2>/dev/null; then
8962 as_executable_p="test -f"
8964 # Sed expression to map a string onto a valid CPP name.
8965 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8967 # Sed expression to map a string onto a valid variable name.
8968 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8972 # We need space, tab and new line, in precisely that order.
8982 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8983 # report actual input values of CONFIG_FILES etc. instead of their
8984 # values after options handling. Logging --version etc. is OK.
8988 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8989 ## Running $as_me. ##
8994 This file was extended by $as_me, which was
8995 generated by GNU Autoconf 2.54. Invocation command line was
8997 CONFIG_FILES = $CONFIG_FILES
8998 CONFIG_HEADERS = $CONFIG_HEADERS
8999 CONFIG_LINKS = $CONFIG_LINKS
9000 CONFIG_COMMANDS = $CONFIG_COMMANDS
9004 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9008 # Files that config.status was made for.
9009 if test -n "$ac_config_files"; then
9010 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9013 if test -n "$ac_config_headers"; then
9014 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9017 if test -n "$ac_config_links"; then
9018 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9021 if test -n "$ac_config_commands"; then
9022 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9025 cat >>$CONFIG_STATUS <<\_ACEOF
9028 \`$as_me' instantiates files from templates according to the
9029 current configuration.
9031 Usage: $0 [OPTIONS] [FILE]...
9033 -h, --help print this help, then exit
9034 -V, --version print version number, then exit
9035 -d, --debug don't remove temporary files
9036 --recheck update $as_me by reconfiguring in the same conditions
9037 --file=FILE[:TEMPLATE]
9038 instantiate the configuration file FILE
9039 --header=FILE[:TEMPLATE]
9040 instantiate the configuration header FILE
9042 Configuration files:
9045 Configuration headers:
9048 Configuration commands:
9051 Report bugs to <bug-autoconf@gnu.org>."
9054 cat >>$CONFIG_STATUS <<_ACEOF
9057 configured by $0, generated by GNU Autoconf 2.54,
9058 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9060 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9061 Free Software Foundation, Inc.
9062 This config.status script is free software; the Free Software Foundation
9063 gives unlimited permission to copy, distribute and modify it."
9068 cat >>$CONFIG_STATUS <<\_ACEOF
9069 # If no file are specified by the user, then we need to provide default
9070 # value. By we need to know if files were specified by the user.
9076 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9077 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9085 *) # This is not an option, so the user has probably given explicit
9088 ac_need_defaults=false;;
9092 # Handling of the options.
9094 cat >>$CONFIG_STATUS <<_ACEOF
9095 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9096 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9097 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9099 cat >>$CONFIG_STATUS <<\_ACEOF
9100 --version | --vers* | -V )
9101 echo "$ac_cs_version"; exit 0 ;;
9103 # Conflict between --help and --header
9104 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9105 Try \`$0 --help' for more information." >&5
9106 echo "$as_me: error: ambiguous option: $1
9107 Try \`$0 --help' for more information." >&2;}
9108 { (exit 1); exit 1; }; };;
9109 --help | --hel | -h )
9110 echo "$ac_cs_usage"; exit 0 ;;
9111 --debug | --d* | -d )
9113 --file | --fil | --fi | --f )
9115 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9116 ac_need_defaults=false;;
9117 --header | --heade | --head | --hea )
9119 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9120 ac_need_defaults=false;;
9123 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9124 Try \`$0 --help' for more information." >&5
9125 echo "$as_me: error: unrecognized option: $1
9126 Try \`$0 --help' for more information." >&2;}
9127 { (exit 1); exit 1; }; } ;;
9129 *) ac_config_targets="$ac_config_targets $1" ;;
9137 cat >>$CONFIG_STATUS <<_ACEOF
9139 # INIT-COMMANDS section.
9148 cat >>$CONFIG_STATUS <<\_ACEOF
9149 for ac_config_target in $ac_config_targets
9151 case "$ac_config_target" in
9152 # Handling of arguments.
9153 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9154 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
9155 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
9156 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
9157 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9158 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
9159 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
9160 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
9161 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
9162 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9163 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
9164 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
9165 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
9166 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9167 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9168 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
9169 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
9170 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9171 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9172 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9173 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9174 { (exit 1); exit 1; }; };;
9178 # If the user did not use the arguments to specify the items to instantiate,
9179 # then the envvar interface is used. Set only those that are not.
9180 # We use the long form for the default assignment because of an extremely
9181 # bizarre bug on SunOS 4.1.3.
9182 if $ac_need_defaults; then
9183 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9184 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9185 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9188 # Create a temporary directory, and hook for its removal unless debugging.
9191 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9192 trap '{ (exit 1); exit 1; }' 1 2 13 15
9195 # Create a (secure) tmp directory for tmp files.
9198 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9199 test -n "$tmp" && test -d "$tmp"
9202 tmp=$TMPDIR/cs$$-$RANDOM
9203 (umask 077 && mkdir $tmp)
9206 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9207 { (exit 1); exit 1; }
9212 cat >>$CONFIG_STATUS <<_ACEOF
9215 # CONFIG_FILES section.
9218 # No need to generate the scripts if there are no CONFIG_FILES.
9219 # This happens for instance when ./config.status config.h
9220 if test -n "\$CONFIG_FILES"; then
9221 # Protect against being on the right side of a sed subst in config.status.
9222 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9223 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9224 s,@SHELL@,$SHELL,;t t
9225 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9226 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9227 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9228 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9229 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9230 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9231 s,@exec_prefix@,$exec_prefix,;t t
9232 s,@prefix@,$prefix,;t t
9233 s,@program_transform_name@,$program_transform_name,;t t
9234 s,@bindir@,$bindir,;t t
9235 s,@sbindir@,$sbindir,;t t
9236 s,@libexecdir@,$libexecdir,;t t
9237 s,@datadir@,$datadir,;t t
9238 s,@sysconfdir@,$sysconfdir,;t t
9239 s,@sharedstatedir@,$sharedstatedir,;t t
9240 s,@localstatedir@,$localstatedir,;t t
9241 s,@libdir@,$libdir,;t t
9242 s,@includedir@,$includedir,;t t
9243 s,@oldincludedir@,$oldincludedir,;t t
9244 s,@infodir@,$infodir,;t t
9245 s,@mandir@,$mandir,;t t
9246 s,@build_alias@,$build_alias,;t t
9247 s,@host_alias@,$host_alias,;t t
9248 s,@target_alias@,$target_alias,;t t
9250 s,@ECHO_C@,$ECHO_C,;t t
9251 s,@ECHO_N@,$ECHO_N,;t t
9252 s,@ECHO_T@,$ECHO_T,;t t
9254 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9255 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9256 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9257 s,@PACKAGE@,$PACKAGE,;t t
9258 s,@VERSION@,$VERSION,;t t
9259 s,@ACLOCAL@,$ACLOCAL,;t t
9260 s,@AUTOCONF@,$AUTOCONF,;t t
9261 s,@AUTOMAKE@,$AUTOMAKE,;t t
9262 s,@AUTOHEADER@,$AUTOHEADER,;t t
9263 s,@MAKEINFO@,$MAKEINFO,;t t
9264 s,@SET_MAKE@,$SET_MAKE,;t t
9266 s,@RANLIB@,$RANLIB,;t t
9267 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9269 s,@CFLAGS@,$CFLAGS,;t t
9270 s,@LDFLAGS@,$LDFLAGS,;t t
9271 s,@CPPFLAGS@,$CPPFLAGS,;t t
9272 s,@ac_ct_CC@,$ac_ct_CC,;t t
9273 s,@EXEEXT@,$EXEEXT,;t t
9274 s,@OBJEXT@,$OBJEXT,;t t
9276 s,@CXXFLAGS@,$CXXFLAGS,;t t
9277 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9278 s,@wxconfig@,$wxconfig,;t t
9279 s,@build@,$build,;t t
9280 s,@build_cpu@,$build_cpu,;t t
9281 s,@build_vendor@,$build_vendor,;t t
9282 s,@build_os@,$build_os,;t t
9284 s,@host_cpu@,$host_cpu,;t t
9285 s,@host_vendor@,$host_vendor,;t t
9286 s,@host_os@,$host_os,;t t
9288 s,@EGREP@,$EGREP,;t t
9289 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
9290 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
9291 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
9292 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
9293 s,@lamdir@,$lamdir,;t t
9294 s,@mpienable@,$mpienable,;t t
9295 s,@cgibindir@,$cgibindir,;t t
9296 s,@cgibinurl@,$cgibinurl,;t t
9297 s,@webdatadir@,$webdatadir,;t t
9298 s,@webdataurl@,$webdataurl,;t t
9299 s,@htmldir@,$htmldir,;t t
9300 s,@cgiprograms@,$cgiprograms,;t t
9301 s,@htmldata@,$htmldata,;t t
9302 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
9303 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
9304 s,@webenabled@,$webenabled,;t t
9305 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
9306 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
9307 s,@X_CFLAGS@,$X_CFLAGS,;t t
9308 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9309 s,@X_LIBS@,$X_LIBS,;t t
9310 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9311 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
9312 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
9313 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
9314 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
9315 s,@my_includes@,$my_includes,;t t
9316 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
9317 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
9318 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
9319 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
9320 s,@wxcflags@,$wxcflags,;t t
9321 s,@wxlibs@,$wxlibs,;t t
9322 s,@ctlibs@,$ctlibs,;t t
9323 s,@lamprograms@,$lamprograms,;t t
9324 s,@lamdefs@,$lamdefs,;t t
9325 s,@LIBOBJS@,$LIBOBJS,;t t
9326 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9331 cat >>$CONFIG_STATUS <<\_ACEOF
9332 # Split the substitutions into bite-sized pieces for seds with
9333 # small command number limits, like on Digital OSF/1 and HP-UX.
9335 ac_sed_frag=1 # Number of current file.
9336 ac_beg=1 # First line for current file.
9337 ac_end=$ac_max_sed_lines # Line after last line for current file.
9340 while $ac_more_lines; do
9341 if test $ac_beg -gt 1; then
9342 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9344 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9346 if test ! -s $tmp/subs.frag; then
9349 # The purpose of the label and of the branching condition is to
9350 # speed up the sed processing (if there are no `@' at all, there
9351 # is no need to browse any of the substitutions).
9352 # These are the two extra sed commands mentioned above.
9354 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9355 if test -z "$ac_sed_cmds"; then
9356 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9358 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9360 ac_sed_frag=`expr $ac_sed_frag + 1`
9362 ac_end=`expr $ac_end + $ac_max_sed_lines`
9365 if test -z "$ac_sed_cmds"; then
9368 fi # test -n "$CONFIG_FILES"
9371 cat >>$CONFIG_STATUS <<\_ACEOF
9372 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9375 - | *:- | *:-:* ) # input from stdin
9377 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9378 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9379 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9380 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9381 * ) ac_file_in=$ac_file.in ;;
9384 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9385 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9386 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9387 X"$ac_file" : 'X\(//\)[^/]' \| \
9388 X"$ac_file" : 'X\(//\)$' \| \
9389 X"$ac_file" : 'X\(/\)' \| \
9390 . : '\(.\)' 2>/dev/null ||
9392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9394 /^X\(\/\/\)$/{ s//\1/; q; }
9395 /^X\(\/\).*/{ s//\1/; q; }
9397 { if $as_mkdir_p; then
9402 while test ! -d "$as_dir"; do
9403 as_dirs="$as_dir $as_dirs"
9404 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9405 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9406 X"$as_dir" : 'X\(//\)[^/]' \| \
9407 X"$as_dir" : 'X\(//\)$' \| \
9408 X"$as_dir" : 'X\(/\)' \| \
9409 . : '\(.\)' 2>/dev/null ||
9411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9412 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9413 /^X\(\/\/\)$/{ s//\1/; q; }
9414 /^X\(\/\).*/{ s//\1/; q; }
9417 test ! -n "$as_dirs" || mkdir $as_dirs
9418 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9419 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9420 { (exit 1); exit 1; }; }; }
9424 if test "$ac_dir" != .; then
9425 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9426 # A "../" for each directory in $ac_dir_suffix.
9427 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9429 ac_dir_suffix= ac_top_builddir=
9433 .) # No --srcdir option. We are building in place.
9435 if test -z "$ac_top_builddir"; then
9438 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9440 [\\/]* | ?:[\\/]* ) # Absolute path.
9441 ac_srcdir=$srcdir$ac_dir_suffix;
9442 ac_top_srcdir=$srcdir ;;
9444 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9445 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9447 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9449 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9450 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9451 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9452 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9456 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9457 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9460 if test x"$ac_file" != x-; then
9461 { echo "$as_me:$LINENO: creating $ac_file" >&5
9462 echo "$as_me: creating $ac_file" >&6;}
9465 # Let's still pretend it is `configure' which instantiates (i.e., don't
9466 # use $as_me), people would be surprised to read:
9467 # /* config.h. Generated by config.status. */
9468 if test x"$ac_file" = x-; then
9471 configure_input="$ac_file. "
9473 configure_input=$configure_input"Generated from `echo $ac_file_in |
9474 sed 's,.*/,,'` by configure."
9476 # First look for the input files in the build tree, otherwise in the
9478 ac_file_inputs=`IFS=:
9479 for f in $ac_file_in; do
9481 -) echo $tmp/stdin ;;
9483 # Absolute (can't be DOS-style, as IFS=:)
9484 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9485 echo "$as_me: error: cannot find input file: $f" >&2;}
9486 { (exit 1); exit 1; }; }
9489 if test -f "$f"; then
9492 elif test -f "$srcdir/$f"; then
9497 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9498 echo "$as_me: error: cannot find input file: $f" >&2;}
9499 { (exit 1); exit 1; }; }
9502 done` || { (exit 1); exit 1; }
9504 cat >>$CONFIG_STATUS <<_ACEOF
9508 cat >>$CONFIG_STATUS <<\_ACEOF
9510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9511 s,@configure_input@,$configure_input,;t t
9512 s,@srcdir@,$ac_srcdir,;t t
9513 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9514 s,@top_srcdir@,$ac_top_srcdir,;t t
9515 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9516 s,@builddir@,$ac_builddir,;t t
9517 s,@abs_builddir@,$ac_abs_builddir,;t t
9518 s,@top_builddir@,$ac_top_builddir,;t t
9519 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9520 s,@INSTALL@,$ac_INSTALL,;t t
9521 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9523 if test x"$ac_file" != x-; then
9524 mv $tmp/out $ac_file
9532 cat >>$CONFIG_STATUS <<\_ACEOF
9535 # CONFIG_HEADER section.
9538 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9539 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9541 # ac_d sets the value in "#define NAME VALUE" lines.
9542 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9543 ac_dB='[ ].*$,\1#\2'
9546 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9547 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9548 ac_uB='$,\1#\2define\3'
9552 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9553 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9555 - | *:- | *:-:* ) # input from stdin
9557 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9558 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9559 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9560 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9561 * ) ac_file_in=$ac_file.in ;;
9564 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9565 echo "$as_me: creating $ac_file" >&6;}
9567 # First look for the input files in the build tree, otherwise in the
9569 ac_file_inputs=`IFS=:
9570 for f in $ac_file_in; do
9572 -) echo $tmp/stdin ;;
9574 # Absolute (can't be DOS-style, as IFS=:)
9575 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9576 echo "$as_me: error: cannot find input file: $f" >&2;}
9577 { (exit 1); exit 1; }; }
9580 if test -f "$f"; then
9583 elif test -f "$srcdir/$f"; then
9588 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9589 echo "$as_me: error: cannot find input file: $f" >&2;}
9590 { (exit 1); exit 1; }; }
9593 done` || { (exit 1); exit 1; }
9594 # Remove the trailing spaces.
9595 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9599 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9600 # `conftest.undefs', that substitutes the proper values into
9601 # config.h.in to produce config.h. The first handles `#define'
9602 # templates, and the second `#undef' templates.
9603 # And first: Protect against being on the right side of a sed subst in
9604 # config.status. Protect against being in an unquoted here document
9606 rm -f conftest.defines conftest.undefs
9607 # Using a here document instead of a string reduces the quoting nightmare.
9608 # Putting comments in sed scripts is not portable.
9610 # `end' is used to avoid that the second main sed command (meant for
9611 # 0-ary CPP macros) applies to n-ary macro definitions.
9612 # See the Autoconf documentation for `clear'.
9613 cat >confdef2sed.sed <<\_ACEOF
9618 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9620 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9623 # If some macros were called several times there might be several times
9624 # the same #defines, which is useless. Nevertheless, we may not want to
9625 # sort them, since we want the *last* AC-DEFINE to be honored.
9626 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9627 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9628 rm -f confdef2sed.sed
9630 # This sed command replaces #undef with comments. This is necessary, for
9631 # example, in the case of _POSIX_SOURCE, which is predefined and required
9632 # on some systems where configure will not decide to define it.
9633 cat >>conftest.undefs <<\_ACEOF
9634 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9637 # Break up conftest.defines because some shells have a limit on the size
9638 # of here documents, and old seds have small limits too (100 cmds).
9639 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9640 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9641 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9642 echo ' :' >>$CONFIG_STATUS
9644 while grep . conftest.defines >/dev/null
9646 # Write a limited-size here document to $tmp/defines.sed.
9647 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9648 # Speed up: don't consider the non `#define' lines.
9649 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9650 # Work around the forget-to-reset-the-flag bug.
9651 echo 't clr' >>$CONFIG_STATUS
9652 echo ': clr' >>$CONFIG_STATUS
9653 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9655 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9659 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9660 rm -f conftest.defines
9661 mv conftest.tail conftest.defines
9663 rm -f conftest.defines
9664 echo ' fi # grep' >>$CONFIG_STATUS
9665 echo >>$CONFIG_STATUS
9667 # Break up conftest.undefs because some shells have a limit on the size
9668 # of here documents, and old seds have small limits too (100 cmds).
9669 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9671 while grep . conftest.undefs >/dev/null
9673 # Write a limited-size here document to $tmp/undefs.sed.
9674 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9675 # Speed up: don't consider the non `#undef'
9676 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9677 # Work around the forget-to-reset-the-flag bug.
9678 echo 't clr' >>$CONFIG_STATUS
9679 echo ': clr' >>$CONFIG_STATUS
9680 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9682 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9686 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9687 rm -f conftest.undefs
9688 mv conftest.tail conftest.undefs
9690 rm -f conftest.undefs
9692 cat >>$CONFIG_STATUS <<\_ACEOF
9693 # Let's still pretend it is `configure' which instantiates (i.e., don't
9694 # use $as_me), people would be surprised to read:
9695 # /* config.h. Generated by config.status. */
9696 if test x"$ac_file" = x-; then
9697 echo "/* Generated by configure. */" >$tmp/config.h
9699 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9701 cat $tmp/in >>$tmp/config.h
9703 if test x"$ac_file" != x-; then
9704 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9705 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9706 echo "$as_me: $ac_file is unchanged" >&6;}
9708 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9710 X"$ac_file" : 'X\(//\)[^/]' \| \
9711 X"$ac_file" : 'X\(//\)$' \| \
9712 X"$ac_file" : 'X\(/\)' \| \
9713 . : '\(.\)' 2>/dev/null ||
9715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9717 /^X\(\/\/\)$/{ s//\1/; q; }
9718 /^X\(\/\).*/{ s//\1/; q; }
9720 { if $as_mkdir_p; then
9725 while test ! -d "$as_dir"; do
9726 as_dirs="$as_dir $as_dirs"
9727 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9729 X"$as_dir" : 'X\(//\)[^/]' \| \
9730 X"$as_dir" : 'X\(//\)$' \| \
9731 X"$as_dir" : 'X\(/\)' \| \
9732 . : '\(.\)' 2>/dev/null ||
9734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9736 /^X\(\/\/\)$/{ s//\1/; q; }
9737 /^X\(\/\).*/{ s//\1/; q; }
9740 test ! -n "$as_dirs" || mkdir $as_dirs
9741 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9742 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9743 { (exit 1); exit 1; }; }; }
9746 mv $tmp/config.h $ac_file
9754 cat >>$CONFIG_STATUS <<\_ACEOF
9757 # CONFIG_COMMANDS section.
9759 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9760 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9761 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9762 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9763 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9764 X"$ac_dest" : 'X\(//\)[^/]' \| \
9765 X"$ac_dest" : 'X\(//\)$' \| \
9766 X"$ac_dest" : 'X\(/\)' \| \
9767 . : '\(.\)' 2>/dev/null ||
9769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9771 /^X\(\/\/\)$/{ s//\1/; q; }
9772 /^X\(\/\).*/{ s//\1/; q; }
9776 if test "$ac_dir" != .; then
9777 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9778 # A "../" for each directory in $ac_dir_suffix.
9779 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9781 ac_dir_suffix= ac_top_builddir=
9785 .) # No --srcdir option. We are building in place.
9787 if test -z "$ac_top_builddir"; then
9790 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9792 [\\/]* | ?:[\\/]* ) # Absolute path.
9793 ac_srcdir=$srcdir$ac_dir_suffix;
9794 ac_top_srcdir=$srcdir ;;
9796 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9797 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9799 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9801 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9802 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9803 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9804 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9807 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9808 echo "$as_me: executing $ac_dest commands" >&6;}
9810 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
9815 cat >>$CONFIG_STATUS <<\_ACEOF
9817 { (exit 0); exit 0; }
9819 chmod +x $CONFIG_STATUS
9820 ac_clean_files=$ac_clean_files_save
9823 # configure is writing to config.log, and then calls config.status.
9824 # config.status does its own redirection, appending to config.log.
9825 # Unfortunately, on DOS this fails, as config.log is still kept open
9826 # by configure, so config.status won't be able to write to it; its
9827 # output is simply discarded. So we exec the FD to /dev/null,
9828 # effectively closing config.log, so it can be properly (re)opened and
9829 # appended to by config.status. When coming back to configure, we
9830 # need to make the FD available again.
9831 if test "$no_create" != yes; then
9834 $SHELL $CONFIG_STATUS || ac_cs_success=false
9836 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9837 # would make configure fail if this is the last instruction.
9838 $ac_cs_success || { (exit 1); exit 1; }