2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/ctsim.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE wxconfig build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP INCLUDED_GETOPT_LONG_TRUE INCLUDED_GETOPT_LONG_FALSE DEBUG_TRUE DEBUG_FALSE lamdir mpienable cgibindir cgibinurl webdatadir webdataurl htmldir cgiprograms htmldata USE_HTML_TRUE USE_HTML_FALSE webenabled USE_LAM_TRUE USE_LAM_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_TOOLKIT_LIBS X_BASIC_LIBS NO_X_TRUE NO_X_FALSE my_includes HAVE_SGP_TRUE HAVE_SGP_FALSE HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE wxcflags wxlibs ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --program-prefix=PREFIX prepend PREFIX to installed program names
843 --program-suffix=SUFFIX append SUFFIX to installed program names
844 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 --x-includes=DIR X include files are in DIR
848 --x-libraries=DIR X library files are in DIR
851 --build=BUILD configure for building on BUILD [guessed]
852 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 if test -n "$ac_init_help"; then
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --disable-dependency-tracking Speeds up one-time builds
866 --enable-dependency-tracking Do not reject slow dependency extractors
867 --enable-debug Turn on debugging
868 --enable-verbose-warnings
869 Enable verbose compiler warnings.
871 Enable static executables.
872 --enable-dmalloc Use dmalloc memory allocation
873 --enable-efence Use ElectricFence memory allocation
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-lam=PATH Set path of LAM MPI
879 --with-ctn=PATH Set path of CTN DICOM library
880 --with-mcpu=CPU Set name of CPU for gcc -mcpu
881 --with-cgibin-dir=PATH Set path of CGI binaries directory
882 --with-cgibin-url=PATH Set URL path of CGI binaries
883 --with-webdata-dir=PATH Set path of webdata
884 --with-webdata-url=PATH Set URL path of webdata
885 --with-html-dir=PATH Set directory of html files
886 --with-x use the X Window System
888 Some influential environment variables:
889 CC C compiler command
890 CFLAGS C compiler flags
891 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
892 nonstandard directory <lib dir>
893 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
894 headers in a nonstandard directory <include dir>
895 CXX C++ compiler command
896 CXXFLAGS C++ compiler flags
899 Use these variables to override the choices made by `configure' or to help
900 it to find libraries and programs with nonstandard names/locations.
905 if test "$ac_init_help" = "recursive"; then
906 # If there are subdirs, report their specific --help.
908 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909 test -d $ac_dir || continue
912 if test "$ac_dir" != .; then
913 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
914 # A "../" for each directory in $ac_dir_suffix.
915 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 ac_dir_suffix= ac_top_builddir=
921 .) # No --srcdir option. We are building in place.
923 if test -z "$ac_top_builddir"; then
926 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 [\\/]* | ?:[\\/]* ) # Absolute path.
929 ac_srcdir=$srcdir$ac_dir_suffix;
930 ac_top_srcdir=$srcdir ;;
932 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
937 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
938 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
939 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
940 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
943 # Check for guested configure; otherwise get Cygnus style configure.
944 if test -f $ac_srcdir/configure.gnu; then
946 $SHELL $ac_srcdir/configure.gnu --help=recursive
947 elif test -f $ac_srcdir/configure; then
949 $SHELL $ac_srcdir/configure --help=recursive
950 elif test -f $ac_srcdir/configure.ac ||
951 test -f $ac_srcdir/configure.in; then
955 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 test -n "$ac_init_help" && exit 0
962 if $ac_init_version; then
965 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
966 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
977 It was created by $as_me, which was
978 generated by GNU Autoconf 2.57. Invocation command line was
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_must_keep_next=false
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066 -* ) ac_must_keep_next=true ;;
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log. We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085 # Save into config.log some information that might help in debugging.
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1095 # The following way of writing the cache mishandles newlines in values,
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1118 for ac_var in $ac_subst_vars
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1125 if test -n "$ac_subst_files"; then
1132 for ac_var in $ac_subst_files
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1140 if test -s confdefs.h; then
1147 sed "/^$/d" confdefs.h | sort
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1154 rm -f core core.* *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1158 for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168 # Predefined preprocessor variables.
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204 for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's/^/| /' "$ac_site_file" >&5
1213 if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1230 # Check that the precious variables saved in the cache have kept the same
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1254 echo "$as_me: former value: $ac_old_val" >&2;}
1255 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1256 echo "$as_me: current value: $ac_new_val" >&2;}
1257 ac_cache_corrupted=:
1260 # Pass precious variables to config.status.
1261 if test "$ac_new_set" = set; then
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 *) ac_arg=$ac_var=$ac_new_val ;;
1267 case " $ac_configure_args " in
1268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1269 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273 if $ac_cache_corrupted; then
1274 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 { (exit 1); exit 1; }; }
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1307 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1308 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1309 if test "${enable_maintainer_mode+set}" = set; then
1310 enableval="$enable_maintainer_mode"
1311 USE_MAINTAINER_MODE=$enableval
1313 USE_MAINTAINER_MODE=no
1315 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1316 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1319 if test $USE_MAINTAINER_MODE = yes; then
1320 MAINTAINER_MODE_TRUE=
1321 MAINTAINER_MODE_FALSE='#'
1323 MAINTAINER_MODE_TRUE='#'
1324 MAINTAINER_MODE_FALSE=
1327 MAINT=$MAINTAINER_MODE_TRUE
1330 am__api_version="1.7"
1332 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1333 if test -f $ac_dir/install-sh; then
1335 ac_install_sh="$ac_aux_dir/install-sh -c"
1337 elif test -f $ac_dir/install.sh; then
1339 ac_install_sh="$ac_aux_dir/install.sh -c"
1341 elif test -f $ac_dir/shtool; then
1343 ac_install_sh="$ac_aux_dir/shtool install -c"
1347 if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350 { (exit 1); exit 1; }; }
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356 # Find a good install program. We prefer a C program (faster),
1357 # so one script is as good as another. But avoid the broken or
1358 # incompatible versions:
1359 # SysV /etc/install, /usr/sbin/install
1360 # SunOS /usr/etc/install
1361 # IRIX /sbin/install
1363 # AmigaOS /C/install, which installs bootblocks on floppy discs
1364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1367 # ./install, which can be erroneously created by make from ./install.sh.
1368 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1369 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1370 if test -z "$INSTALL"; then
1371 if test "${ac_cv_path_install+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1378 test -z "$as_dir" && as_dir=.
1379 # Account for people who put trailing slashes in PATH elements.
1381 ./ | .// | /cC/* | \
1382 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1385 # OSF1 and SCO ODT 3.0 have their own names for install.
1386 # Don't use installbsd from OSF since it installs stuff as root
1388 for ac_prog in ginstall scoinst install; do
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1391 if test $ac_prog = install &&
1392 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1393 # AIX install. It has an incompatible calling convention.
1395 elif test $ac_prog = install &&
1396 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1397 # program-specific install script used by HP pwplus--don't use.
1400 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1412 if test "${ac_cv_path_install+set}" = set; then
1413 INSTALL=$ac_cv_path_install
1415 # As a last resort, use the slow shell script. We don't cache a
1416 # path for INSTALL within a source directory, because that will
1417 # break other packages using the cache if that directory is
1418 # removed, or if the path is relative.
1419 INSTALL=$ac_install_sh
1422 echo "$as_me:$LINENO: result: $INSTALL" >&5
1423 echo "${ECHO_T}$INSTALL" >&6
1425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1426 # It thinks the first close brace ends the variable substitution.
1427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1433 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1434 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1437 echo timestamp > conftest.file
1438 # Do `set' in a subshell so we don't clobber the current shell's
1439 # arguments. Must try -L first in case configure is actually a
1440 # symlink; some systems play weird games with the mod time of symlinks
1441 # (eg FreeBSD returns the mod time of the symlink's containing
1444 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1445 if test "$*" = "X"; then
1447 set X `ls -t $srcdir/configure conftest.file`
1450 if test "$*" != "X $srcdir/configure conftest.file" \
1451 && test "$*" != "X conftest.file $srcdir/configure"; then
1453 # If neither matched, then we have a broken ls. This can happen
1454 # if, for instance, CONFIG_SHELL is bash and it inherits a
1455 # broken ls alias from the environment. This has actually
1456 # happened. Such a system could not be considered "sane".
1457 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1458 alias in your environment" >&5
1459 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1460 alias in your environment" >&2;}
1461 { (exit 1); exit 1; }; }
1464 test "$2" = conftest.file
1470 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1471 Check your system clock" >&5
1472 echo "$as_me: error: newly created file is older than distributed files!
1473 Check your system clock" >&2;}
1474 { (exit 1); exit 1; }; }
1476 echo "$as_me:$LINENO: result: yes" >&5
1477 echo "${ECHO_T}yes" >&6
1478 test "$program_prefix" != NONE &&
1479 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1480 # Use a double $ so make ignores it.
1481 test "$program_suffix" != NONE &&
1482 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1483 # Double any \ or $. echo might interpret backslashes.
1484 # By default was `s,x,x', remove it if useless.
1485 cat <<\_ACEOF >conftest.sed
1486 s/[\\$]/&&/g;s/;s,x,x,$//
1488 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1492 # expand $ac_aux_dir to an absolute path
1493 am_aux_dir=`cd $ac_aux_dir && pwd`
1495 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1496 # Use eval to expand $SHELL
1497 if eval "$MISSING --run true"; then
1498 am_missing_run="$MISSING --run "
1501 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1502 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1505 for ac_prog in gawk mawk nawk awk
1507 # Extract the first word of "$ac_prog", so it can be a program name with args.
1508 set dummy $ac_prog; ac_word=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_AWK+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 if test -n "$AWK"; then
1515 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 test -z "$as_dir" && as_dir=.
1522 for ac_exec_ext in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524 ac_cv_prog_AWK="$ac_prog"
1525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 if test -n "$AWK"; then
1535 echo "$as_me:$LINENO: result: $AWK" >&5
1536 echo "${ECHO_T}$AWK" >&6
1538 echo "$as_me:$LINENO: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1542 test -n "$AWK" && break
1545 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1546 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1547 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1548 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 cat >conftest.make <<\_ACEOF
1553 @echo 'ac_maketemp="$(MAKE)"'
1555 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1556 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1557 if test -n "$ac_maketemp"; then
1558 eval ac_cv_prog_make_${ac_make}_set=yes
1560 eval ac_cv_prog_make_${ac_make}_set=no
1564 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1565 echo "$as_me:$LINENO: result: yes" >&5
1566 echo "${ECHO_T}yes" >&6
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 SET_MAKE="MAKE=${MAKE-make}"
1574 rm -rf .tst 2>/dev/null
1575 mkdir .tst 2>/dev/null
1576 if test -d .tst; then
1581 rmdir .tst 2>/dev/null
1583 # test to see if srcdir already configured
1584 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1585 test -f $srcdir/config.status; then
1586 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1587 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1588 { (exit 1); exit 1; }; }
1591 # test whether we have cygpath
1592 if test -z "$CYGPATH_W"; then
1593 if (cygpath --version) >/dev/null 2>/dev/null; then
1594 CYGPATH_W='cygpath -w'
1601 # Define the identity of the package.
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE "$PACKAGE"
1611 cat >>confdefs.h <<_ACEOF
1612 #define VERSION "$VERSION"
1615 # Some tools Automake needs.
1617 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1620 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1623 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1626 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1629 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1632 AMTAR=${AMTAR-"${am_missing_run}tar"}
1634 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1636 # Installed binaries are usually stripped using `strip' when the user
1637 # run `make install-strip'. However `strip' might not be the right
1638 # tool to use in cross-compilation environments, therefore Automake
1639 # will honor the `STRIP' environment variable to overrule this program.
1640 if test "$cross_compiling" != no; then
1641 if test -n "$ac_tool_prefix"; then
1642 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1643 set dummy ${ac_tool_prefix}strip; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_STRIP+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 if test -n "$STRIP"; then
1650 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 STRIP=$ac_cv_prog_STRIP
1669 if test -n "$STRIP"; then
1670 echo "$as_me:$LINENO: result: $STRIP" >&5
1671 echo "${ECHO_T}$STRIP" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1678 if test -z "$ac_cv_prog_STRIP"; then
1680 # Extract the first word of "strip", so it can be a program name with args.
1681 set dummy strip; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 if test -n "$ac_ct_STRIP"; then
1688 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_ac_ct_STRIP="strip"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1707 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1708 if test -n "$ac_ct_STRIP"; then
1709 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1710 echo "${ECHO_T}$ac_ct_STRIP" >&6
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1718 STRIP="$ac_cv_prog_STRIP"
1722 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1724 # We need awk for the "check" target. The system "awk" is bad on
1729 ac_config_headers="$ac_config_headers config.h"
1732 for ac_prog in gawk mawk nawk awk
1734 # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_AWK+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1741 if test -n "$AWK"; then
1742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 test -z "$as_dir" && as_dir=.
1749 for ac_exec_ext in '' $ac_executable_extensions; do
1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751 ac_cv_prog_AWK="$ac_prog"
1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761 if test -n "$AWK"; then
1762 echo "$as_me:$LINENO: result: $AWK" >&5
1763 echo "${ECHO_T}$AWK" >&6
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1769 test -n "$AWK" && break
1772 # Find a good install program. We prefer a C program (faster),
1773 # so one script is as good as another. But avoid the broken or
1774 # incompatible versions:
1775 # SysV /etc/install, /usr/sbin/install
1776 # SunOS /usr/etc/install
1777 # IRIX /sbin/install
1779 # AmigaOS /C/install, which installs bootblocks on floppy discs
1780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1783 # ./install, which can be erroneously created by make from ./install.sh.
1784 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1785 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1786 if test -z "$INSTALL"; then
1787 if test "${ac_cv_path_install+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 test -z "$as_dir" && as_dir=.
1795 # Account for people who put trailing slashes in PATH elements.
1797 ./ | .// | /cC/* | \
1798 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1801 # OSF1 and SCO ODT 3.0 have their own names for install.
1802 # Don't use installbsd from OSF since it installs stuff as root
1804 for ac_prog in ginstall scoinst install; do
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1807 if test $ac_prog = install &&
1808 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1809 # AIX install. It has an incompatible calling convention.
1811 elif test $ac_prog = install &&
1812 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1813 # program-specific install script used by HP pwplus--don't use.
1816 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1828 if test "${ac_cv_path_install+set}" = set; then
1829 INSTALL=$ac_cv_path_install
1831 # As a last resort, use the slow shell script. We don't cache a
1832 # path for INSTALL within a source directory, because that will
1833 # break other packages using the cache if that directory is
1834 # removed, or if the path is relative.
1835 INSTALL=$ac_install_sh
1838 echo "$as_me:$LINENO: result: $INSTALL" >&5
1839 echo "${ECHO_T}$INSTALL" >&6
1841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1842 # It thinks the first close brace ends the variable substitution.
1843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1849 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1850 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1851 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1852 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 cat >conftest.make <<\_ACEOF
1857 @echo 'ac_maketemp="$(MAKE)"'
1859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1860 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1861 if test -n "$ac_maketemp"; then
1862 eval ac_cv_prog_make_${ac_make}_set=yes
1864 eval ac_cv_prog_make_${ac_make}_set=no
1868 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1869 echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1875 SET_MAKE="MAKE=${MAKE-make}"
1878 if test -n "$ac_tool_prefix"; then
1879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1880 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_RANLIB+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$RANLIB"; then
1887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 RANLIB=$ac_cv_prog_RANLIB
1906 if test -n "$RANLIB"; then
1907 echo "$as_me:$LINENO: result: $RANLIB" >&5
1908 echo "${ECHO_T}$RANLIB" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1915 if test -z "$ac_cv_prog_RANLIB"; then
1916 ac_ct_RANLIB=$RANLIB
1917 # Extract the first word of "ranlib", so it can be a program name with args.
1918 set dummy ranlib; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 if test -n "$ac_ct_RANLIB"; then
1925 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog_ac_ct_RANLIB="ranlib"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1944 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1945 if test -n "$ac_ct_RANLIB"; then
1946 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1947 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1949 echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1953 RANLIB=$ac_ct_RANLIB
1955 RANLIB="$ac_cv_prog_RANLIB"
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC="$CC" # Let the user override the test.
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 if test -n "$CC"; then
1993 echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2001 if test -z "$ac_cv_prog_CC"; then
2003 # Extract the first word of "gcc", so it can be a program name with args.
2004 set dummy gcc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 ac_cv_prog_ac_ct_CC="gcc"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030 if test -n "$ac_ct_CC"; then
2031 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032 echo "${ECHO_T}$ac_ct_CC" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2043 if test -z "$CC"; then
2044 if test -n "$ac_tool_prefix"; then
2045 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2046 set dummy ${ac_tool_prefix}cc; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC="$CC" # Let the user override the test.
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 ac_cv_prog_CC="${ac_tool_prefix}cc"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 if test -n "$CC"; then
2073 echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2081 if test -z "$ac_cv_prog_CC"; then
2083 # Extract the first word of "cc", so it can be a program name with args.
2084 set dummy cc; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 if test -n "$ac_ct_CC"; then
2091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100 ac_cv_prog_ac_ct_CC="cc"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2110 if test -n "$ac_ct_CC"; then
2111 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2112 echo "${ECHO_T}$ac_ct_CC" >&6
2114 echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2124 if test -z "$CC"; then
2125 # Extract the first word of "cc", so it can be a program name with args.
2126 set dummy cc; ac_word=$2
2127 echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 if test -n "$CC"; then
2133 ac_cv_prog_CC="$CC" # Let the user override the test.
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2144 ac_prog_rejected=yes
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 if test $ac_prog_rejected = yes; then
2155 # We found a bogon in the path, so make sure we never use it.
2156 set dummy $ac_cv_prog_CC
2158 if test $# != 0; then
2159 # We chose a different compiler from the bogus one.
2160 # However, it has the same basename, so the bogon will be chosen
2161 # first if we set CC to just the basename; use the full file name.
2163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2169 if test -n "$CC"; then
2170 echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6
2173 echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2178 if test -z "$CC"; then
2179 if test -n "$ac_tool_prefix"; then
2182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 if test -n "$CC"; then
2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209 if test -n "$CC"; then
2210 echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2213 echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2217 test -n "$CC" && break
2220 if test -z "$CC"; then
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test -n "$ac_ct_CC"; then
2232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241 ac_cv_prog_ac_ct_CC="$ac_prog"
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6
2255 echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2259 test -n "$ac_ct_CC" && break
2268 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2274 # Provide some information about the compiler.
2275 echo "$as_me:$LINENO:" \
2276 "checking for C compiler version" >&5
2277 ac_compiler=`set X $ac_compile; echo $2`
2278 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2279 (eval $ac_compiler --version </dev/null >&5) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }
2283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2284 (eval $ac_compiler -v </dev/null >&5) 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }
2288 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2289 (eval $ac_compiler -V </dev/null >&5) 2>&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2315 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2316 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2319 (eval $ac_link_default) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 # Find the output, starting from the most likely. This scheme is
2324 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2327 # Be careful to initialize this variable, since it used to be cached.
2328 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2330 # b.out is created by i960 compilers.
2331 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2333 test -f "$ac_file" || continue
2335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2338 # This is the source file.
2341 # We found the default executable, but exeext='' is most
2345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346 # FIXME: I believe we export ac_cv_exeext for Libtool,
2347 # but it would be cool to find out if it's true. Does anybody
2348 # maintain Libtool? --akim.
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: C compiler cannot create executables
2362 See \`config.log' for more details." >&2;}
2363 { (exit 77); exit 77; }; }
2366 ac_exeext=$ac_cv_exeext
2367 echo "$as_me:$LINENO: result: $ac_file" >&5
2368 echo "${ECHO_T}$ac_file" >&6
2370 # Check the compiler produces executables we can run. If not, either
2371 # the compiler is broken, or we cross compile.
2372 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2373 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2374 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2375 # If not cross compiling, check that we can run a simple program.
2376 if test "$cross_compiling" != yes; then
2377 if { ac_try='./$ac_file'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2385 if test "$cross_compiling" = maybe; then
2388 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2389 If you meant to cross compile, use \`--host'.
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot run C compiled programs.
2392 If you meant to cross compile, use \`--host'.
2393 See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }
2398 echo "$as_me:$LINENO: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6
2401 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2402 ac_clean_files=$ac_clean_files_save
2403 # Check the compiler produces executables we can run. If not, either
2404 # the compiler is broken, or we cross compile.
2405 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2406 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2407 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2408 echo "${ECHO_T}$cross_compiling" >&6
2410 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2411 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2413 (eval $ac_link) 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; then
2417 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2418 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2419 # work properly (i.e., refer to `conftest.exe'), while it won't with
2421 for ac_file in conftest.exe conftest conftest.*; do
2422 test -f "$ac_file" || continue
2424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2432 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2435 See \`config.log' for more details." >&2;}
2436 { (exit 1); exit 1; }; }
2439 rm -f conftest$ac_cv_exeext
2440 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2441 echo "${ECHO_T}$ac_cv_exeext" >&6
2443 rm -f conftest.$ac_ext
2444 EXEEXT=$ac_cv_exeext
2446 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2447 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2448 if test "${ac_cv_objext+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h. */
2467 rm -f conftest.o conftest.obj
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; then
2473 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2493 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6
2495 OBJEXT=$ac_cv_objext
2497 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 cat >conftest.$ac_ext <<_ACEOF
2503 #line $LINENO "configure"
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -s conftest.$ac_objext'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2540 rm -f conftest.$ac_objext conftest.$ac_ext
2541 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2544 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2545 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2546 GCC=`test $ac_compiler_gnu = yes && echo yes`
2547 ac_test_CFLAGS=${CFLAGS+set}
2548 ac_save_CFLAGS=$CFLAGS
2550 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2551 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2552 if test "${ac_cv_prog_cc_g+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 cat >conftest.$ac_ext <<_ACEOF
2556 #line $LINENO "configure"
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2590 rm -f conftest.$ac_objext conftest.$ac_ext
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2594 if test "$ac_test_CFLAGS" = set; then
2595 CFLAGS=$ac_save_CFLAGS
2596 elif test $ac_cv_prog_cc_g = yes; then
2597 if test "$GCC" = yes; then
2603 if test "$GCC" = yes; then
2609 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2610 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2611 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 ac_cv_prog_cc_stdc=no
2616 cat >conftest.$ac_ext <<_ACEOF
2617 #line $LINENO "configure"
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2625 #include <sys/types.h>
2626 #include <sys/stat.h>
2627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2628 struct buf { int x; };
2629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2630 static char *e (p, i)
2636 static char *f (char * (*g) (char **, int), char **p, ...)
2641 s = g (p, va_arg (v,int));
2645 int test (int i, double x);
2646 struct s1 {int (*f) (int a);};
2647 struct s2 {int (*f) (double a);};
2648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2654 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2659 # Don't try gcc -ansi; that turns off useful extensions and
2660 # breaks some systems' header files.
2661 # AIX -qlanglvl=ansi
2662 # Ultrix and OSF/1 -std1
2663 # HP-UX 10.20 and later -Ae
2664 # HP-UX older versions -Aa -D_HPUX_SOURCE
2665 # SVR4 -Xc -D__EXTENSIONS__
2666 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2668 CC="$ac_save_CC $ac_arg"
2669 rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671 (eval $ac_compile) 2>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 ac_cv_prog_cc_stdc=$ac_arg
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f conftest.$ac_objext
2690 rm -f conftest.$ac_ext conftest.$ac_objext
2695 case "x$ac_cv_prog_cc_stdc" in
2697 echo "$as_me:$LINENO: result: none needed" >&5
2698 echo "${ECHO_T}none needed" >&6 ;;
2700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2701 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2702 CC="$CC $ac_cv_prog_cc_stdc" ;;
2705 # Some people use a C++ compiler to compile C. Since we use `exit',
2706 # in C++ we need to declare it. In case someone uses the same compiler
2707 # for both compiling C and C++ we need to have the C++ compiler decide
2708 # the declaration of exit, since it's the most demanding environment.
2709 cat >conftest.$ac_ext <<_ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -s conftest.$ac_objext'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2726 for ac_declaration in \
2728 '#include <stdlib.h>' \
2729 'extern "C" void std::exit (int) throw (); using std::exit;' \
2730 'extern "C" void std::exit (int); using std::exit;' \
2731 'extern "C" void exit (int) throw ();' \
2732 'extern "C" void exit (int);' \
2735 cat >conftest.$ac_ext <<_ACEOF
2736 #line $LINENO "configure"
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754 (eval $ac_compile) 2>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f conftest.$ac_objext conftest.$ac_ext
2772 cat >conftest.$ac_ext <<_ACEOF
2773 #line $LINENO "configure"
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2806 rm -f conftest.$ac_objext conftest.$ac_ext
2809 if test -n "$ac_declaration"; then
2810 echo '#ifdef __cplusplus' >>confdefs.h
2811 echo $ac_declaration >>confdefs.h
2812 echo '#endif' >>confdefs.h
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2820 rm -f conftest.$ac_objext conftest.$ac_ext
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826 DEPDIR="${am__leading_dot}deps"
2828 ac_config_commands="$ac_config_commands depfiles"
2831 am_make=${MAKE-make}
2832 cat > confinc << 'END'
2836 # If we don't find an include directive, just comment out the code.
2837 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2838 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2842 # First try GNU make style include.
2843 echo "include confinc" > confmf
2844 # We grep out `Entering directory' and `Leaving directory'
2845 # messages which can occur if `w' ends up in MAKEFLAGS.
2846 # In particular we don't look at `^make:' because GNU make might
2847 # be invoked under some other name (usually "gmake"), in which
2848 # case it prints its new name instead of `make'.
2849 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2854 # Now try BSD make style include.
2855 if test "$am__include" = "#"; then
2856 echo '.include "confinc"' > confmf
2857 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2858 am__include=.include
2865 echo "$as_me:$LINENO: result: $_am_result" >&5
2866 echo "${ECHO_T}$_am_result" >&6
2867 rm -f confinc confmf
2869 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2870 if test "${enable_dependency_tracking+set}" = set; then
2871 enableval="$enable_dependency_tracking"
2874 if test "x$enable_dependency_tracking" != xno; then
2875 am_depcomp="$ac_aux_dir/depcomp"
2880 if test "x$enable_dependency_tracking" != xno; then
2891 depcc="$CC" am_compiler_list=
2893 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2894 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2895 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2899 # We make a subdir and do the tests there. Otherwise we can end up
2900 # making bogus files that we don't know about and never remove. For
2901 # instance it was reported that on HP-UX the gcc test will end up
2902 # making a dummy file named `D' -- because `-MD' means `put the output
2905 # Copy depcomp to subdir because otherwise we won't find it if we're
2906 # using a relative directory.
2907 cp "$am_depcomp" conftest.dir
2910 am_cv_CC_dependencies_compiler_type=none
2911 if test "$am_compiler_list" = ""; then
2912 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2914 for depmode in $am_compiler_list; do
2915 # We need to recreate these files for each test, as the compiler may
2916 # overwrite some of them when testing with obscure command lines.
2917 # This happens at least with the AIX C compiler.
2918 echo '#include "conftest.h"' > conftest.c
2919 echo 'int i;' > conftest.h
2920 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2924 # after this tag, mechanisms are not by side-effect, so they'll
2925 # only be used when explicitly requested
2926 if test "x$enable_dependency_tracking" = xyes; then
2934 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2935 # mode. It turns out that the SunPro C++ compiler does not properly
2936 # handle `-M -o', and we need to detect this.
2937 if depmode=$depmode \
2938 source=conftest.c object=conftest.o \
2939 depfile=conftest.Po tmpdepfile=conftest.TPo \
2940 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
2941 >/dev/null 2>conftest.err &&
2942 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2944 # icc doesn't choke on unknown options, it will just issue warnings
2945 # (even with -Werror). So we grep stderr for any message
2946 # that says an option was ignored.
2947 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2948 am_cv_CC_dependencies_compiler_type=$depmode
2957 am_cv_CC_dependencies_compiler_type=none
2961 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2962 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2963 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2968 test "x$enable_dependency_tracking" != xno \
2969 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2971 am__fastdepCC_FALSE='#'
2973 am__fastdepCC_TRUE='#'
2974 am__fastdepCC_FALSE=
2979 ac_cpp='$CXXCPP $CPPFLAGS'
2980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2983 if test -n "$ac_tool_prefix"; then
2984 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2988 echo "$as_me:$LINENO: checking for $ac_word" >&5
2989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990 if test "${ac_cv_prog_CXX+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 if test -n "$CXX"; then
2994 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 if test -n "$CXX"; then
3014 echo "$as_me:$LINENO: result: $CXX" >&5
3015 echo "${ECHO_T}$CXX" >&6
3017 echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6
3021 test -n "$CXX" && break
3024 if test -z "$CXX"; then
3026 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3028 # Extract the first word of "$ac_prog", so it can be a program name with args.
3029 set dummy $ac_prog; ac_word=$2
3030 echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 if test -n "$ac_ct_CXX"; then
3036 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_ac_ct_CXX="$ac_prog"
3046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3055 if test -n "$ac_ct_CXX"; then
3056 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3057 echo "${ECHO_T}$ac_ct_CXX" >&6
3059 echo "$as_me:$LINENO: result: no" >&5
3060 echo "${ECHO_T}no" >&6
3063 test -n "$ac_ct_CXX" && break
3065 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3071 # Provide some information about the compiler.
3072 echo "$as_me:$LINENO:" \
3073 "checking for C++ compiler version" >&5
3074 ac_compiler=`set X $ac_compile; echo $2`
3075 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3076 (eval $ac_compiler --version </dev/null >&5) 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }
3080 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3081 (eval $ac_compiler -v </dev/null >&5) 2>&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }
3085 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3086 (eval $ac_compiler -V </dev/null >&5) 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }
3091 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3092 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3093 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 cat >conftest.$ac_ext <<_ACEOF
3097 #line $LINENO "configure"
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3115 rm -f conftest.$ac_objext
3116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3117 (eval $ac_compile) 2>&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } &&
3121 { ac_try='test -s conftest.$ac_objext'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3134 rm -f conftest.$ac_objext conftest.$ac_ext
3135 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3138 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3139 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3140 GXX=`test $ac_compiler_gnu = yes && echo yes`
3141 ac_test_CXXFLAGS=${CXXFLAGS+set}
3142 ac_save_CXXFLAGS=$CXXFLAGS
3144 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3145 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3146 if test "${ac_cv_prog_cxx_g+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 cat >conftest.$ac_ext <<_ACEOF
3150 #line $LINENO "configure"
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3167 (eval $ac_compile) 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3177 ac_cv_prog_cxx_g=yes
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3184 rm -f conftest.$ac_objext conftest.$ac_ext
3186 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3187 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3188 if test "$ac_test_CXXFLAGS" = set; then
3189 CXXFLAGS=$ac_save_CXXFLAGS
3190 elif test $ac_cv_prog_cxx_g = yes; then
3191 if test "$GXX" = yes; then
3197 if test "$GXX" = yes; then
3203 for ac_declaration in \
3205 '#include <stdlib.h>' \
3206 'extern "C" void std::exit (int) throw (); using std::exit;' \
3207 'extern "C" void std::exit (int); using std::exit;' \
3208 'extern "C" void exit (int) throw ();' \
3209 'extern "C" void exit (int);' \
3212 cat >conftest.$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3229 rm -f conftest.$ac_objext
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f conftest.$ac_objext conftest.$ac_ext
3249 cat >conftest.$ac_ext <<_ACEOF
3250 #line $LINENO "configure"
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3265 rm -f conftest.$ac_objext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } &&
3271 { ac_try='test -s conftest.$ac_objext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3283 rm -f conftest.$ac_objext conftest.$ac_ext
3286 if test -n "$ac_declaration"; then
3287 echo '#ifdef __cplusplus' >>confdefs.h
3288 echo $ac_declaration >>confdefs.h
3289 echo '#endif' >>confdefs.h
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298 depcc="$CXX" am_compiler_list=
3300 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3301 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3302 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3306 # We make a subdir and do the tests there. Otherwise we can end up
3307 # making bogus files that we don't know about and never remove. For
3308 # instance it was reported that on HP-UX the gcc test will end up
3309 # making a dummy file named `D' -- because `-MD' means `put the output
3312 # Copy depcomp to subdir because otherwise we won't find it if we're
3313 # using a relative directory.
3314 cp "$am_depcomp" conftest.dir
3317 am_cv_CXX_dependencies_compiler_type=none
3318 if test "$am_compiler_list" = ""; then
3319 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3321 for depmode in $am_compiler_list; do
3322 # We need to recreate these files for each test, as the compiler may
3323 # overwrite some of them when testing with obscure command lines.
3324 # This happens at least with the AIX C compiler.
3325 echo '#include "conftest.h"' > conftest.c
3326 echo 'int i;' > conftest.h
3327 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3331 # after this tag, mechanisms are not by side-effect, so they'll
3332 # only be used when explicitly requested
3333 if test "x$enable_dependency_tracking" = xyes; then
3341 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3342 # mode. It turns out that the SunPro C++ compiler does not properly
3343 # handle `-M -o', and we need to detect this.
3344 if depmode=$depmode \
3345 source=conftest.c object=conftest.o \
3346 depfile=conftest.Po tmpdepfile=conftest.TPo \
3347 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3348 >/dev/null 2>conftest.err &&
3349 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3350 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3351 # icc doesn't choke on unknown options, it will just issue warnings
3352 # (even with -Werror). So we grep stderr for any message
3353 # that says an option was ignored.
3354 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3355 am_cv_CXX_dependencies_compiler_type=$depmode
3364 am_cv_CXX_dependencies_compiler_type=none
3368 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3369 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3370 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3375 test "x$enable_dependency_tracking" != xno \
3376 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3377 am__fastdepCXX_TRUE=
3378 am__fastdepCXX_FALSE='#'
3380 am__fastdepCXX_TRUE='#'
3381 am__fastdepCXX_FALSE=
3386 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3387 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3388 if test "${ac_cv_c_bigendian+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 # See if sys/param.h defines the BYTE_ORDER macro.
3392 cat >conftest.$ac_ext <<_ACEOF
3393 #line $LINENO "configure"
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399 #include <sys/types.h>
3400 #include <sys/param.h>
3405 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3413 rm -f conftest.$ac_objext
3414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415 (eval $ac_compile) 2>&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 # It does; now see whether it defined to BIG_ENDIAN or not.
3426 cat >conftest.$ac_ext <<_ACEOF
3427 #line $LINENO "configure"
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3433 #include <sys/types.h>
3434 #include <sys/param.h>
3439 #if BYTE_ORDER != BIG_ENDIAN
3447 rm -f conftest.$ac_objext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449 (eval $ac_compile) 2>&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } &&
3453 { ac_try='test -s conftest.$ac_objext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3459 ac_cv_c_bigendian=yes
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 ac_cv_c_bigendian=no
3466 rm -f conftest.$ac_objext conftest.$ac_ext
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 # It does not; compile a test program.
3472 if test "$cross_compiling" = yes; then
3473 # try to guess the endianness by grepping values into an object file
3474 ac_cv_c_bigendian=unknown
3475 cat >conftest.$ac_ext <<_ACEOF
3476 #line $LINENO "configure"
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3483 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3484 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3485 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3486 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3487 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3491 _ascii (); _ebcdic ();
3496 rm -f conftest.$ac_objext
3497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498 (eval $ac_compile) 2>&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } &&
3502 { ac_try='test -s conftest.$ac_objext'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3508 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3509 ac_cv_c_bigendian=yes
3511 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3512 if test "$ac_cv_c_bigendian" = unknown; then
3513 ac_cv_c_bigendian=no
3515 # finding both strings is unlikely to happen, but who knows?
3516 ac_cv_c_bigendian=unknown
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3524 rm -f conftest.$ac_objext conftest.$ac_ext
3526 cat >conftest.$ac_ext <<_ACEOF
3527 #line $LINENO "configure"
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3536 /* Are we little or big endian? From Harbison&Steele. */
3540 char c[sizeof (long)];
3543 exit (u.c[sizeof (long) - 1] == 1);
3546 rm -f conftest$ac_exeext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3548 (eval $ac_link) 2>&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 ac_cv_c_bigendian=no
3559 echo "$as_me: program exited with status $ac_status" >&5
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3564 ac_cv_c_bigendian=yes
3566 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3569 rm -f conftest.$ac_objext conftest.$ac_ext
3571 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3572 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3573 case $ac_cv_c_bigendian in
3576 cat >>confdefs.h <<\_ACEOF
3577 #define WORDS_BIGENDIAN 1
3583 { { echo "$as_me:$LINENO: error: unknown endianness
3584 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3585 echo "$as_me: error: unknown endianness
3586 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3587 { (exit 1); exit 1; }; } ;;
3591 # Extract the first word of "wx-config", so it can be a program name with args.
3592 set dummy wx-config; ac_word=$2
3593 echo "$as_me:$LINENO: checking for $ac_word" >&5
3594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3595 if test "${ac_cv_path_wxconfig+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 wxconfig=$ac_cv_path_wxconfig
3622 if test -n "$wxconfig"; then
3623 echo "$as_me:$LINENO: result: $wxconfig" >&5
3624 echo "${ECHO_T}$wxconfig" >&6
3626 echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3631 # Make sure we can run config.sub.
3632 $ac_config_sub sun4 >/dev/null 2>&1 ||
3633 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3634 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3635 { (exit 1); exit 1; }; }
3637 echo "$as_me:$LINENO: checking build system type" >&5
3638 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3639 if test "${ac_cv_build+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 ac_cv_build_alias=$build_alias
3643 test -z "$ac_cv_build_alias" &&
3644 ac_cv_build_alias=`$ac_config_guess`
3645 test -z "$ac_cv_build_alias" &&
3646 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3647 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3648 { (exit 1); exit 1; }; }
3649 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3650 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3651 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3652 { (exit 1); exit 1; }; }
3655 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3656 echo "${ECHO_T}$ac_cv_build" >&6
3658 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3659 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3660 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3663 echo "$as_me:$LINENO: checking host system type" >&5
3664 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3665 if test "${ac_cv_host+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 ac_cv_host_alias=$host_alias
3669 test -z "$ac_cv_host_alias" &&
3670 ac_cv_host_alias=$ac_cv_build_alias
3671 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3673 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3674 { (exit 1); exit 1; }; }
3677 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3678 echo "${ECHO_T}$ac_cv_host" >&6
3680 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3681 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3682 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3685 echo "$as_me:$LINENO: checking for inline" >&5
3686 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3687 if test "${ac_cv_c_inline+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 for ac_kw in inline __inline__ __inline; do
3692 cat >conftest.$ac_ext <<_ACEOF
3693 #line $LINENO "configure"
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3701 static $ac_kw foo_t static_foo () {return 0; }
3702 $ac_kw foo_t foo () {return 0; }
3706 rm -f conftest.$ac_objext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708 (eval $ac_compile) 2>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -s conftest.$ac_objext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_cv_c_inline=$ac_kw; break
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3724 rm -f conftest.$ac_objext conftest.$ac_ext
3728 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3729 echo "${ECHO_T}$ac_cv_c_inline" >&6
3730 case $ac_cv_c_inline in
3733 cat >>confdefs.h <<\_ACEOF
3737 *) cat >>confdefs.h <<_ACEOF
3738 #define inline $ac_cv_c_inline
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3749 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3750 # On Suns, sometimes $CPP names a directory.
3751 if test -n "$CPP" && test -d "$CPP"; then
3754 if test -z "$CPP"; then
3755 if test "${ac_cv_prog_CPP+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 # Double quotes because CPP needs to be expanded
3759 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3762 for ac_c_preproc_warn_flag in '' yes
3764 # Use a header file that comes with gcc, so configuring glibc
3765 # with a fresh cross-compiler works.
3766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767 # <limits.h> exists even on freestanding compilers.
3768 # On the NeXT, cc -E runs the code through the compiler's parser,
3769 # not just through cpp. "Syntax error" is here to catch this case.
3770 cat >conftest.$ac_ext <<_ACEOF
3771 #line $LINENO "configure"
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3778 # include <limits.h>
3780 # include <assert.h>
3784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3787 grep -v '^ *+' conftest.er1 >conftest.err
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } >/dev/null; then
3792 if test -s conftest.err; then
3793 ac_cpp_err=$ac_c_preproc_warn_flag
3800 if test -z "$ac_cpp_err"; then
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 # Broken: fails on valid input.
3809 rm -f conftest.err conftest.$ac_ext
3811 # OK, works on sane cases. Now check whether non-existent headers
3812 # can be detected and how.
3813 cat >conftest.$ac_ext <<_ACEOF
3814 #line $LINENO "configure"
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <ac_nonexistent.h>
3822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3825 grep -v '^ *+' conftest.er1 >conftest.err
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } >/dev/null; then
3830 if test -s conftest.err; then
3831 ac_cpp_err=$ac_c_preproc_warn_flag
3838 if test -z "$ac_cpp_err"; then
3839 # Broken: success on invalid input.
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 # Passes both tests.
3849 rm -f conftest.err conftest.$ac_ext
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3866 echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6
3869 for ac_c_preproc_warn_flag in '' yes
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat >conftest.$ac_ext <<_ACEOF
3878 #line $LINENO "configure"
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3885 # include <limits.h>
3887 # include <assert.h>
3891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3894 grep -v '^ *+' conftest.er1 >conftest.err
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } >/dev/null; then
3899 if test -s conftest.err; then
3900 ac_cpp_err=$ac_c_preproc_warn_flag
3907 if test -z "$ac_cpp_err"; then
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 # Broken: fails on valid input.
3916 rm -f conftest.err conftest.$ac_ext
3918 # OK, works on sane cases. Now check whether non-existent headers
3919 # can be detected and how.
3920 cat >conftest.$ac_ext <<_ACEOF
3921 #line $LINENO "configure"
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3927 #include <ac_nonexistent.h>
3929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3932 grep -v '^ *+' conftest.er1 >conftest.err
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } >/dev/null; then
3937 if test -s conftest.err; then
3938 ac_cpp_err=$ac_c_preproc_warn_flag
3945 if test -z "$ac_cpp_err"; then
3946 # Broken: success on invalid input.
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3952 # Passes both tests.
3956 rm -f conftest.err conftest.$ac_ext
3959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3960 rm -f conftest.err conftest.$ac_ext
3961 if $ac_preproc_ok; then
3964 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&5
3966 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3967 See \`config.log' for more details." >&2;}
3968 { (exit 1); exit 1; }; }
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978 echo "$as_me:$LINENO: checking for egrep" >&5
3979 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3980 if test "${ac_cv_prog_egrep+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3984 then ac_cv_prog_egrep='grep -E'
3985 else ac_cv_prog_egrep='egrep'
3988 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3989 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3990 EGREP=$ac_cv_prog_egrep
3993 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3994 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3995 if test "${ac_cv_header_stdc+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 cat >conftest.$ac_ext <<_ACEOF
3999 #line $LINENO "configure"
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4018 rm -f conftest.$ac_objext
4019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020 (eval $ac_compile) 2>&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try='test -s conftest.$ac_objext'
4025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; }; then
4030 ac_cv_header_stdc=yes
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4035 ac_cv_header_stdc=no
4037 rm -f conftest.$ac_objext conftest.$ac_ext
4039 if test $ac_cv_header_stdc = yes; then
4040 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4041 cat >conftest.$ac_ext <<_ACEOF
4042 #line $LINENO "configure"
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4052 $EGREP "memchr" >/dev/null 2>&1; then
4055 ac_cv_header_stdc=no
4061 if test $ac_cv_header_stdc = yes; then
4062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4063 cat >conftest.$ac_ext <<_ACEOF
4064 #line $LINENO "configure"
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4074 $EGREP "free" >/dev/null 2>&1; then
4077 ac_cv_header_stdc=no
4083 if test $ac_cv_header_stdc = yes; then
4084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4085 if test "$cross_compiling" = yes; then
4088 cat >conftest.$ac_ext <<_ACEOF
4089 #line $LINENO "configure"
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4096 #if ((' ' & 0x0FF) == 0x020)
4097 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4098 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4100 # define ISLOWER(c) \
4101 (('a' <= (c) && (c) <= 'i') \
4102 || ('j' <= (c) && (c) <= 'r') \
4103 || ('s' <= (c) && (c) <= 'z'))
4104 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4107 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4112 for (i = 0; i < 256; i++)
4113 if (XOR (islower (i), ISLOWER (i))
4114 || toupper (i) != TOUPPER (i))
4119 rm -f conftest$ac_exeext
4120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4121 (eval $ac_link) 2>&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4132 echo "$as_me: program exited with status $ac_status" >&5
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4137 ac_cv_header_stdc=no
4139 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4143 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4144 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4145 if test $ac_cv_header_stdc = yes; then
4147 cat >>confdefs.h <<\_ACEOF
4148 #define STDC_HEADERS 1
4153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4163 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4164 inttypes.h stdint.h unistd.h
4166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4167 echo "$as_me:$LINENO: checking for $ac_header" >&5
4168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 cat >conftest.$ac_ext <<_ACEOF
4173 #line $LINENO "configure"
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 $ac_includes_default
4181 #include <$ac_header>
4183 rm -f conftest.$ac_objext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185 (eval $ac_compile) 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 eval "$as_ac_Header=yes"
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4200 eval "$as_ac_Header=no"
4202 rm -f conftest.$ac_objext conftest.$ac_ext
4204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4207 cat >>confdefs.h <<_ACEOF
4208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4216 echo "$as_me:$LINENO: checking for short" >&5
4217 echo $ECHO_N "checking for short... $ECHO_C" >&6
4218 if test "${ac_cv_type_short+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 cat >conftest.$ac_ext <<_ACEOF
4222 #line $LINENO "configure"
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 $ac_includes_default
4240 rm -f conftest.$ac_objext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242 (eval $ac_compile) 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try='test -s conftest.$ac_objext'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; }; then
4252 ac_cv_type_short=yes
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4259 rm -f conftest.$ac_objext conftest.$ac_ext
4261 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4262 echo "${ECHO_T}$ac_cv_type_short" >&6
4264 echo "$as_me:$LINENO: checking size of short" >&5
4265 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4266 if test "${ac_cv_sizeof_short+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 if test "$ac_cv_type_short" = yes; then
4270 # The cast to unsigned long works around a bug in the HP C Compiler
4271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4273 # This bug is HP SR number 8606223364.
4274 if test "$cross_compiling" = yes; then
4275 # Depending upon the size, compute the lo and hi bounds.
4276 cat >conftest.$ac_ext <<_ACEOF
4277 #line $LINENO "configure"
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 $ac_includes_default
4287 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4294 rm -f conftest.$ac_objext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4296 (eval $ac_compile) 2>&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4308 cat >conftest.$ac_ext <<_ACEOF
4309 #line $LINENO "configure"
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 $ac_includes_default
4319 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
4332 { ac_try='test -s conftest.$ac_objext'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_hi=$ac_mid; break
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 ac_lo=`expr $ac_mid + 1`
4344 if test $ac_lo -le $ac_mid; then
4348 ac_mid=`expr 2 '*' $ac_mid + 1`
4350 rm -f conftest.$ac_objext conftest.$ac_ext
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 cat >conftest.$ac_ext <<_ACEOF
4357 #line $LINENO "configure"
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 $ac_includes_default
4367 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try='test -s conftest.$ac_objext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4388 cat >conftest.$ac_ext <<_ACEOF
4389 #line $LINENO "configure"
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4395 $ac_includes_default
4399 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4406 rm -f conftest.$ac_objext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408 (eval $ac_compile) 2>&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -s conftest.$ac_objext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 ac_lo=$ac_mid; break
4420 echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4423 ac_hi=`expr '(' $ac_mid ')' - 1`
4424 if test $ac_mid -le $ac_hi; then
4428 ac_mid=`expr 2 '*' $ac_mid`
4430 rm -f conftest.$ac_objext conftest.$ac_ext
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4438 rm -f conftest.$ac_objext conftest.$ac_ext
4440 rm -f conftest.$ac_objext conftest.$ac_ext
4441 # Binary search between lo and hi bounds.
4442 while test "x$ac_lo" != "x$ac_hi"; do
4443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4444 cat >conftest.$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 $ac_includes_default
4455 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4462 rm -f conftest.$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 ac_lo=`expr '(' $ac_mid ')' + 1`
4481 rm -f conftest.$ac_objext conftest.$ac_ext
4484 ?*) ac_cv_sizeof_short=$ac_lo;;
4485 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4486 See \`config.log' for more details." >&5
4487 echo "$as_me: error: cannot compute sizeof (short), 77
4488 See \`config.log' for more details." >&2;}
4489 { (exit 1); exit 1; }; } ;;
4492 if test "$cross_compiling" = yes; then
4493 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4494 See \`config.log' for more details." >&5
4495 echo "$as_me: error: cannot run test program while cross compiling
4496 See \`config.log' for more details." >&2;}
4497 { (exit 1); exit 1; }; }
4499 cat >conftest.$ac_ext <<_ACEOF
4500 #line $LINENO "configure"
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 $ac_includes_default
4507 long longval () { return (long) (sizeof (short)); }
4508 unsigned long ulongval () { return (long) (sizeof (short)); }
4515 FILE *f = fopen ("conftest.val", "w");
4518 if (((long) (sizeof (short))) < 0)
4520 long i = longval ();
4521 if (i != ((long) (sizeof (short))))
4523 fprintf (f, "%ld\n", i);
4527 unsigned long i = ulongval ();
4528 if (i != ((long) (sizeof (short))))
4530 fprintf (f, "%lu\n", i);
4532 exit (ferror (f) || fclose (f) != 0);
4538 rm -f conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
4549 ac_cv_sizeof_short=`cat conftest.val`
4551 echo "$as_me: program exited with status $ac_status" >&5
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4556 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4557 See \`config.log' for more details." >&5
4558 echo "$as_me: error: cannot compute sizeof (short), 77
4559 See \`config.log' for more details." >&2;}
4560 { (exit 1); exit 1; }; }
4562 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4567 ac_cv_sizeof_short=0
4570 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4571 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4572 cat >>confdefs.h <<_ACEOF
4573 #define SIZEOF_SHORT $ac_cv_sizeof_short
4577 echo "$as_me:$LINENO: checking for int" >&5
4578 echo $ECHO_N "checking for int... $ECHO_C" >&6
4579 if test "${ac_cv_type_int+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 cat >conftest.$ac_ext <<_ACEOF
4583 #line $LINENO "configure"
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 $ac_includes_default
4601 rm -f conftest.$ac_objext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4620 rm -f conftest.$ac_objext conftest.$ac_ext
4622 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4623 echo "${ECHO_T}$ac_cv_type_int" >&6
4625 echo "$as_me:$LINENO: checking size of int" >&5
4626 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4627 if test "${ac_cv_sizeof_int+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 if test "$ac_cv_type_int" = yes; then
4631 # The cast to unsigned long works around a bug in the HP C Compiler
4632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4634 # This bug is HP SR number 8606223364.
4635 if test "$cross_compiling" = yes; then
4636 # Depending upon the size, compute the lo and hi bounds.
4637 cat >conftest.$ac_ext <<_ACEOF
4638 #line $LINENO "configure"
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 $ac_includes_default
4648 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -s conftest.$ac_objext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4669 cat >conftest.$ac_ext <<_ACEOF
4670 #line $LINENO "configure"
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 $ac_includes_default
4680 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4687 rm -f conftest.$ac_objext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689 (eval $ac_compile) 2>&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try='test -s conftest.$ac_objext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 ac_hi=$ac_mid; break
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4704 ac_lo=`expr $ac_mid + 1`
4705 if test $ac_lo -le $ac_mid; then
4709 ac_mid=`expr 2 '*' $ac_mid + 1`
4711 rm -f conftest.$ac_objext conftest.$ac_ext
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 cat >conftest.$ac_ext <<_ACEOF
4718 #line $LINENO "configure"
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 $ac_includes_default
4728 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4735 rm -f conftest.$ac_objext
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } &&
4741 { ac_try='test -s conftest.$ac_objext'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; }; then
4749 cat >conftest.$ac_ext <<_ACEOF
4750 #line $LINENO "configure"
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4756 $ac_includes_default
4760 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769 (eval $ac_compile) 2>&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -s conftest.$ac_objext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 ac_lo=$ac_mid; break
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4784 ac_hi=`expr '(' $ac_mid ')' - 1`
4785 if test $ac_mid -le $ac_hi; then
4789 ac_mid=`expr 2 '*' $ac_mid`
4791 rm -f conftest.$ac_objext conftest.$ac_ext
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4799 rm -f conftest.$ac_objext conftest.$ac_ext
4801 rm -f conftest.$ac_objext conftest.$ac_ext
4802 # Binary search between lo and hi bounds.
4803 while test "x$ac_lo" != "x$ac_hi"; do
4804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4805 cat >conftest.$ac_ext <<_ACEOF
4806 #line $LINENO "configure"
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 $ac_includes_default
4816 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4823 rm -f conftest.$ac_objext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try='test -s conftest.$ac_objext'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; }; then
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 ac_lo=`expr '(' $ac_mid ')' + 1`
4842 rm -f conftest.$ac_objext conftest.$ac_ext
4845 ?*) ac_cv_sizeof_int=$ac_lo;;
4846 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4847 See \`config.log' for more details." >&5
4848 echo "$as_me: error: cannot compute sizeof (int), 77
4849 See \`config.log' for more details." >&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
4855 See \`config.log' for more details." >&5
4856 echo "$as_me: error: cannot run test program while cross compiling
4857 See \`config.log' for more details." >&2;}
4858 { (exit 1); exit 1; }; }
4860 cat >conftest.$ac_ext <<_ACEOF
4861 #line $LINENO "configure"
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 $ac_includes_default
4868 long longval () { return (long) (sizeof (int)); }
4869 unsigned long ulongval () { return (long) (sizeof (int)); }
4876 FILE *f = fopen ("conftest.val", "w");
4879 if (((long) (sizeof (int))) < 0)
4881 long i = longval ();
4882 if (i != ((long) (sizeof (int))))
4884 fprintf (f, "%ld\n", i);
4888 unsigned long i = ulongval ();
4889 if (i != ((long) (sizeof (int))))
4891 fprintf (f, "%lu\n", i);
4893 exit (ferror (f) || fclose (f) != 0);
4899 rm -f conftest$ac_exeext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901 (eval $ac_link) 2>&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_cv_sizeof_int=`cat conftest.val`
4912 echo "$as_me: program exited with status $ac_status" >&5
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4917 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4918 See \`config.log' for more details." >&5
4919 echo "$as_me: error: cannot compute sizeof (int), 77
4920 See \`config.log' for more details." >&2;}
4921 { (exit 1); exit 1; }; }
4923 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4931 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4932 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4933 cat >>confdefs.h <<_ACEOF
4934 #define SIZEOF_INT $ac_cv_sizeof_int
4938 echo "$as_me:$LINENO: checking for long" >&5
4939 echo $ECHO_N "checking for long... $ECHO_C" >&6
4940 if test "${ac_cv_type_long+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 cat >conftest.$ac_ext <<_ACEOF
4944 #line $LINENO "configure"
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 $ac_includes_default
4962 rm -f conftest.$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -s conftest.$ac_objext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4981 rm -f conftest.$ac_objext conftest.$ac_ext
4983 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4984 echo "${ECHO_T}$ac_cv_type_long" >&6
4986 echo "$as_me:$LINENO: checking size of long" >&5
4987 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4988 if test "${ac_cv_sizeof_long+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 if test "$ac_cv_type_long" = yes; then
4992 # The cast to unsigned long works around a bug in the HP C Compiler
4993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4995 # This bug is HP SR number 8606223364.
4996 if test "$cross_compiling" = yes; then
4997 # Depending upon the size, compute the lo and hi bounds.
4998 cat >conftest.$ac_ext <<_ACEOF
4999 #line $LINENO "configure"
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5005 $ac_includes_default
5009 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5016 rm -f conftest.$ac_objext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5030 cat >conftest.$ac_ext <<_ACEOF
5031 #line $LINENO "configure"
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 $ac_includes_default
5041 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5048 rm -f conftest.$ac_objext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5050 (eval $ac_compile) 2>&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } &&
5054 { ac_try='test -s conftest.$ac_objext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 ac_hi=$ac_mid; break
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 ac_lo=`expr $ac_mid + 1`
5066 if test $ac_lo -le $ac_mid; then
5070 ac_mid=`expr 2 '*' $ac_mid + 1`
5072 rm -f conftest.$ac_objext conftest.$ac_ext
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5078 cat >conftest.$ac_ext <<_ACEOF
5079 #line $LINENO "configure"
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 $ac_includes_default
5089 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
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
5110 cat >conftest.$ac_ext <<_ACEOF
5111 #line $LINENO "configure"
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 $ac_includes_default
5121 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5128 rm -f conftest.$ac_objext
5129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5130 (eval $ac_compile) 2>&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } &&
5134 { ac_try='test -s conftest.$ac_objext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 ac_lo=$ac_mid; break
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5145 ac_hi=`expr '(' $ac_mid ')' - 1`
5146 if test $ac_mid -le $ac_hi; then
5150 ac_mid=`expr 2 '*' $ac_mid`
5152 rm -f conftest.$ac_objext conftest.$ac_ext
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5160 rm -f conftest.$ac_objext conftest.$ac_ext
5162 rm -f conftest.$ac_objext conftest.$ac_ext
5163 # Binary search between lo and hi bounds.
5164 while test "x$ac_lo" != "x$ac_hi"; do
5165 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5166 cat >conftest.$ac_ext <<_ACEOF
5167 #line $LINENO "configure"
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 $ac_includes_default
5177 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 ac_lo=`expr '(' $ac_mid ')' + 1`
5203 rm -f conftest.$ac_objext conftest.$ac_ext
5206 ?*) ac_cv_sizeof_long=$ac_lo;;
5207 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5208 See \`config.log' for more details." >&5
5209 echo "$as_me: error: cannot compute sizeof (long), 77
5210 See \`config.log' for more details." >&2;}
5211 { (exit 1); exit 1; }; } ;;
5214 if test "$cross_compiling" = yes; then
5215 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5216 See \`config.log' for more details." >&5
5217 echo "$as_me: error: cannot run test program while cross compiling
5218 See \`config.log' for more details." >&2;}
5219 { (exit 1); exit 1; }; }
5221 cat >conftest.$ac_ext <<_ACEOF
5222 #line $LINENO "configure"
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5228 $ac_includes_default
5229 long longval () { return (long) (sizeof (long)); }
5230 unsigned long ulongval () { return (long) (sizeof (long)); }
5237 FILE *f = fopen ("conftest.val", "w");
5240 if (((long) (sizeof (long))) < 0)
5242 long i = longval ();
5243 if (i != ((long) (sizeof (long))))
5245 fprintf (f, "%ld\n", i);
5249 unsigned long i = ulongval ();
5250 if (i != ((long) (sizeof (long))))
5252 fprintf (f, "%lu\n", i);
5254 exit (ferror (f) || fclose (f) != 0);
5260 rm -f conftest$ac_exeext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5262 (eval $ac_link) 2>&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_sizeof_long=`cat conftest.val`
5273 echo "$as_me: program exited with status $ac_status" >&5
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5278 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5279 See \`config.log' for more details." >&5
5280 echo "$as_me: error: cannot compute sizeof (long), 77
5281 See \`config.log' for more details." >&2;}
5282 { (exit 1); exit 1; }; }
5284 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5292 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5293 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5294 cat >>confdefs.h <<_ACEOF
5295 #define SIZEOF_LONG $ac_cv_sizeof_long
5299 echo "$as_me:$LINENO: checking for float" >&5
5300 echo $ECHO_N "checking for float... $ECHO_C" >&6
5301 if test "${ac_cv_type_float+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 cat >conftest.$ac_ext <<_ACEOF
5305 #line $LINENO "configure"
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 $ac_includes_default
5323 rm -f conftest.$ac_objext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325 (eval $ac_compile) 2>&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -s conftest.$ac_objext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5335 ac_cv_type_float=yes
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5342 rm -f conftest.$ac_objext conftest.$ac_ext
5344 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5345 echo "${ECHO_T}$ac_cv_type_float" >&6
5347 echo "$as_me:$LINENO: checking size of float" >&5
5348 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5349 if test "${ac_cv_sizeof_float+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 if test "$ac_cv_type_float" = yes; then
5353 # The cast to unsigned long works around a bug in the HP C Compiler
5354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5356 # This bug is HP SR number 8606223364.
5357 if test "$cross_compiling" = yes; then
5358 # Depending upon the size, compute the lo and hi bounds.
5359 cat >conftest.$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 $ac_includes_default
5370 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5377 rm -f conftest.$ac_objext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379 (eval $ac_compile) 2>&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try='test -s conftest.$ac_objext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5391 cat >conftest.$ac_ext <<_ACEOF
5392 #line $LINENO "configure"
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 $ac_includes_default
5402 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5409 rm -f conftest.$ac_objext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411 (eval $ac_compile) 2>&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
5415 { ac_try='test -s conftest.$ac_objext'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5421 ac_hi=$ac_mid; break
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5426 ac_lo=`expr $ac_mid + 1`
5427 if test $ac_lo -le $ac_mid; then
5431 ac_mid=`expr 2 '*' $ac_mid + 1`
5433 rm -f conftest.$ac_objext conftest.$ac_ext
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5439 cat >conftest.$ac_ext <<_ACEOF
5440 #line $LINENO "configure"
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 $ac_includes_default
5450 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5457 rm -f conftest.$ac_objext
5458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5459 (eval $ac_compile) 2>&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
5463 { ac_try='test -s conftest.$ac_objext'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; }; then
5471 cat >conftest.$ac_ext <<_ACEOF
5472 #line $LINENO "configure"
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 $ac_includes_default
5482 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5489 rm -f conftest.$ac_objext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5491 (eval $ac_compile) 2>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -s conftest.$ac_objext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_lo=$ac_mid; break
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ac_hi=`expr '(' $ac_mid ')' - 1`
5507 if test $ac_mid -le $ac_hi; then
5511 ac_mid=`expr 2 '*' $ac_mid`
5513 rm -f conftest.$ac_objext conftest.$ac_ext
5516 echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5521 rm -f conftest.$ac_objext conftest.$ac_ext
5523 rm -f conftest.$ac_objext conftest.$ac_ext
5524 # Binary search between lo and hi bounds.
5525 while test "x$ac_lo" != "x$ac_hi"; do
5526 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5527 cat >conftest.$ac_ext <<_ACEOF
5528 #line $LINENO "configure"
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 $ac_includes_default
5538 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5545 rm -f conftest.$ac_objext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5547 (eval $ac_compile) 2>&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } &&
5551 { ac_try='test -s conftest.$ac_objext'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5559 echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5562 ac_lo=`expr '(' $ac_mid ')' + 1`
5564 rm -f conftest.$ac_objext conftest.$ac_ext
5567 ?*) ac_cv_sizeof_float=$ac_lo;;
5568 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5569 See \`config.log' for more details." >&5
5570 echo "$as_me: error: cannot compute sizeof (float), 77
5571 See \`config.log' for more details." >&2;}
5572 { (exit 1); exit 1; }; } ;;
5575 if test "$cross_compiling" = yes; then
5576 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5577 See \`config.log' for more details." >&5
5578 echo "$as_me: error: cannot run test program while cross compiling
5579 See \`config.log' for more details." >&2;}
5580 { (exit 1); exit 1; }; }
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 $ac_includes_default
5590 long longval () { return (long) (sizeof (float)); }
5591 unsigned long ulongval () { return (long) (sizeof (float)); }
5598 FILE *f = fopen ("conftest.val", "w");
5601 if (((long) (sizeof (float))) < 0)
5603 long i = longval ();
5604 if (i != ((long) (sizeof (float))))
5606 fprintf (f, "%ld\n", i);
5610 unsigned long i = ulongval ();
5611 if (i != ((long) (sizeof (float))))
5613 fprintf (f, "%lu\n", i);
5615 exit (ferror (f) || fclose (f) != 0);
5621 rm -f conftest$ac_exeext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5623 (eval $ac_link) 2>&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_cv_sizeof_float=`cat conftest.val`
5634 echo "$as_me: program exited with status $ac_status" >&5
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5640 See \`config.log' for more details." >&5
5641 echo "$as_me: error: cannot compute sizeof (float), 77
5642 See \`config.log' for more details." >&2;}
5643 { (exit 1); exit 1; }; }
5645 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5650 ac_cv_sizeof_float=0
5653 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5654 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5655 cat >>confdefs.h <<_ACEOF
5656 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5660 echo "$as_me:$LINENO: checking for double" >&5
5661 echo $ECHO_N "checking for double... $ECHO_C" >&6
5662 if test "${ac_cv_type_double+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 cat >conftest.$ac_ext <<_ACEOF
5666 #line $LINENO "configure"
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5672 $ac_includes_default
5678 if (sizeof (double))
5684 rm -f conftest.$ac_objext
5685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686 (eval $ac_compile) 2>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -s conftest.$ac_objext'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; }; then
5696 ac_cv_type_double=yes
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5701 ac_cv_type_double=no
5703 rm -f conftest.$ac_objext conftest.$ac_ext
5705 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5706 echo "${ECHO_T}$ac_cv_type_double" >&6
5708 echo "$as_me:$LINENO: checking size of double" >&5
5709 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5710 if test "${ac_cv_sizeof_double+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 if test "$ac_cv_type_double" = yes; then
5714 # The cast to unsigned long works around a bug in the HP C Compiler
5715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5717 # This bug is HP SR number 8606223364.
5718 if test "$cross_compiling" = yes; then
5719 # Depending upon the size, compute the lo and hi bounds.
5720 cat >conftest.$ac_ext <<_ACEOF
5721 #line $LINENO "configure"
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 $ac_includes_default
5731 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5738 rm -f conftest.$ac_objext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5740 (eval $ac_compile) 2>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -s conftest.$ac_objext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5752 cat >conftest.$ac_ext <<_ACEOF
5753 #line $LINENO "configure"
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 $ac_includes_default
5763 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5770 rm -f conftest.$ac_objext
5771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772 (eval $ac_compile) 2>&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -s conftest.$ac_objext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 ac_hi=$ac_mid; break
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5787 ac_lo=`expr $ac_mid + 1`
5788 if test $ac_lo -le $ac_mid; then
5792 ac_mid=`expr 2 '*' $ac_mid + 1`
5794 rm -f conftest.$ac_objext conftest.$ac_ext
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 cat >conftest.$ac_ext <<_ACEOF
5801 #line $LINENO "configure"
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 $ac_includes_default
5811 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5818 rm -f conftest.$ac_objext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820 (eval $ac_compile) 2>&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5832 cat >conftest.$ac_ext <<_ACEOF
5833 #line $LINENO "configure"
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 $ac_includes_default
5843 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5850 rm -f conftest.$ac_objext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852 (eval $ac_compile) 2>&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -s conftest.$ac_objext'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 ac_lo=$ac_mid; break
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5867 ac_hi=`expr '(' $ac_mid ')' - 1`
5868 if test $ac_mid -le $ac_hi; then
5872 ac_mid=`expr 2 '*' $ac_mid`
5874 rm -f conftest.$ac_objext conftest.$ac_ext
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5882 rm -f conftest.$ac_objext conftest.$ac_ext
5884 rm -f conftest.$ac_objext conftest.$ac_ext
5885 # Binary search between lo and hi bounds.
5886 while test "x$ac_lo" != "x$ac_hi"; do
5887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5888 cat >conftest.$ac_ext <<_ACEOF
5889 #line $LINENO "configure"
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 $ac_includes_default
5899 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5906 rm -f conftest.$ac_objext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908 (eval $ac_compile) 2>&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -s conftest.$ac_objext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5923 ac_lo=`expr '(' $ac_mid ')' + 1`
5925 rm -f conftest.$ac_objext conftest.$ac_ext
5928 ?*) ac_cv_sizeof_double=$ac_lo;;
5929 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5930 See \`config.log' for more details." >&5
5931 echo "$as_me: error: cannot compute sizeof (double), 77
5932 See \`config.log' for more details." >&2;}
5933 { (exit 1); exit 1; }; } ;;
5936 if test "$cross_compiling" = yes; then
5937 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5938 See \`config.log' for more details." >&5
5939 echo "$as_me: error: cannot run test program while cross compiling
5940 See \`config.log' for more details." >&2;}
5941 { (exit 1); exit 1; }; }
5943 cat >conftest.$ac_ext <<_ACEOF
5944 #line $LINENO "configure"
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 $ac_includes_default
5951 long longval () { return (long) (sizeof (double)); }
5952 unsigned long ulongval () { return (long) (sizeof (double)); }
5959 FILE *f = fopen ("conftest.val", "w");
5962 if (((long) (sizeof (double))) < 0)
5964 long i = longval ();
5965 if (i != ((long) (sizeof (double))))
5967 fprintf (f, "%ld\n", i);
5971 unsigned long i = ulongval ();
5972 if (i != ((long) (sizeof (double))))
5974 fprintf (f, "%lu\n", i);
5976 exit (ferror (f) || fclose (f) != 0);
5982 rm -f conftest$ac_exeext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984 (eval $ac_link) 2>&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_cv_sizeof_double=`cat conftest.val`
5995 echo "$as_me: program exited with status $ac_status" >&5
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
6000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6001 See \`config.log' for more details." >&5
6002 echo "$as_me: error: cannot compute sizeof (double), 77
6003 See \`config.log' for more details." >&2;}
6004 { (exit 1); exit 1; }; }
6006 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6011 ac_cv_sizeof_double=0
6014 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6015 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6016 cat >>confdefs.h <<_ACEOF
6017 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6023 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
6024 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
6025 if test "${ac_cv_lib_z_deflate+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 ac_check_lib_save_LIBS=$LIBS
6030 cat >conftest.$ac_ext <<_ACEOF
6031 #line $LINENO "configure"
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6038 /* Override any gcc2 internal prototype to avoid an error. */
6042 /* We use char because int might match the return type of a gcc2
6043 builtin and then its argument prototype would still apply. */
6053 rm -f conftest.$ac_objext conftest$ac_exeext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6055 (eval $ac_link) 2>&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try='test -s conftest$ac_exeext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 ac_cv_lib_z_deflate=yes
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6070 ac_cv_lib_z_deflate=no
6072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_check_lib_save_LIBS
6075 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
6076 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
6077 if test $ac_cv_lib_z_deflate = yes; then
6080 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
6081 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
6085 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6086 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6087 if test "${ac_cv_lib_m_sin+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 ac_check_lib_save_LIBS=$LIBS
6092 cat >conftest.$ac_ext <<_ACEOF
6093 #line $LINENO "configure"
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6100 /* Override any gcc2 internal prototype to avoid an error. */
6104 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117 (eval $ac_link) 2>&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -s conftest$ac_exeext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6135 LIBS=$ac_check_lib_save_LIBS
6137 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6138 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6139 if test $ac_cv_lib_m_sin = yes; then
6140 cat >>confdefs.h <<_ACEOF
6148 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
6149 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
6150 if test "${ac_cv_lib_curses_main+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 ac_check_lib_save_LIBS=$LIBS
6154 LIBS="-lcurses $LIBS"
6155 cat >conftest.$ac_ext <<_ACEOF
6156 #line $LINENO "configure"
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6172 rm -f conftest.$ac_objext conftest$ac_exeext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174 (eval $ac_link) 2>&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
6178 { ac_try='test -s conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6184 ac_cv_lib_curses_main=yes
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 ac_cv_lib_curses_main=no
6191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6192 LIBS=$ac_check_lib_save_LIBS
6194 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
6195 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
6196 if test $ac_cv_lib_curses_main = yes; then
6202 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6203 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
6204 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 ac_check_lib_save_LIBS=$LIBS
6208 LIBS="-lncurses $LIBS"
6209 cat >conftest.$ac_ext <<_ACEOF
6210 #line $LINENO "configure"
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6226 rm -f conftest.$ac_objext conftest$ac_exeext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228 (eval $ac_link) 2>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try='test -s conftest$ac_exeext'
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_lib_ncurses_main=yes
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6243 ac_cv_lib_ncurses_main=no
6245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6246 LIBS=$ac_check_lib_save_LIBS
6248 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6249 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
6250 if test $ac_cv_lib_ncurses_main = yes; then
6256 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
6257 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
6258 if test "${ac_cv_lib_readline_main+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 ac_check_lib_save_LIBS=$LIBS
6262 LIBS="-lreadline -lcurses $LIBS"
6263 cat >conftest.$ac_ext <<_ACEOF
6264 #line $LINENO "configure"
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282 (eval $ac_link) 2>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -s conftest$ac_exeext'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; }; then
6292 ac_cv_lib_readline_main=yes
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6297 ac_cv_lib_readline_main=no
6299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6300 LIBS=$ac_check_lib_save_LIBS
6302 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
6303 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
6304 if test $ac_cv_lib_readline_main = yes; then
6307 cat >>confdefs.h <<\_ACEOF
6308 #define HAVE_READLINE 1
6316 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
6317 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
6318 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 ac_check_lib_save_LIBS=$LIBS
6322 LIBS="-lwx_gtk-2.4 $LIBS"
6323 cat >conftest.$ac_ext <<_ACEOF
6324 #line $LINENO "configure"
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6340 rm -f conftest.$ac_objext conftest$ac_exeext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6342 (eval $ac_link) 2>&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
6346 { ac_try='test -s conftest$ac_exeext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_cv_lib_wx_gtk_2_4_main=yes
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_cv_lib_wx_gtk_2_4_main=no
6359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6360 LIBS=$ac_check_lib_save_LIBS
6362 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
6363 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
6364 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
6365 wxwin=true; wx_gtk=true;
6366 cat >>confdefs.h <<\_ACEOF
6367 #define HAVE_WXWINDOWS 1
6372 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6373 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6374 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 ac_check_lib_save_LIBS=$LIBS
6378 LIBS="-lwx_mac-2.4 $LIBS"
6379 cat >conftest.$ac_ext <<_ACEOF
6380 #line $LINENO "configure"
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6396 rm -f conftest.$ac_objext conftest$ac_exeext
6397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6398 (eval $ac_link) 2>&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } &&
6402 { ac_try='test -s conftest$ac_exeext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_cv_lib_wx_mac_2_4_main=yes
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6413 ac_cv_lib_wx_mac_2_4_main=no
6415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6416 LIBS=$ac_check_lib_save_LIBS
6418 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6419 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6420 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6421 wxwin=true; wx_mac=true;
6422 cat >>confdefs.h <<\_ACEOF
6423 #define HAVE_WXWINDOWS 1
6428 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
6429 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
6430 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 ac_check_lib_save_LIBS=$LIBS
6435 cat >conftest.$ac_ext <<_ACEOF
6436 #line $LINENO "configure"
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6443 /* Override any gcc2 internal prototype to avoid an error. */
6447 /* We use char because int might match the return type of a gcc2
6448 builtin and then its argument prototype would still apply. */
6458 rm -f conftest.$ac_objext conftest$ac_exeext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6460 (eval $ac_link) 2>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try='test -s conftest$ac_exeext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_cv_lib_fftw_fftw_one=yes
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6475 ac_cv_lib_fftw_fftw_one=no
6477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6478 LIBS=$ac_check_lib_save_LIBS
6480 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
6481 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
6482 if test $ac_cv_lib_fftw_fftw_one = yes; then
6484 cat >>confdefs.h <<\_ACEOF
6492 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6493 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6494 if test "${ac_cv_lib_GL_main+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 ac_check_lib_save_LIBS=$LIBS
6498 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
6499 cat >conftest.$ac_ext <<_ACEOF
6500 #line $LINENO "configure"
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6516 rm -f conftest.$ac_objext conftest$ac_exeext
6517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6518 (eval $ac_link) 2>&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try='test -s conftest$ac_exeext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6528 ac_cv_lib_GL_main=yes
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6533 ac_cv_lib_GL_main=no
6535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6536 LIBS=$ac_check_lib_save_LIBS
6538 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6539 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6540 if test $ac_cv_lib_GL_main = yes; then
6546 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6547 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6548 if test "${ac_cv_lib_pthread_main+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 ac_check_lib_save_LIBS=$LIBS
6552 LIBS="-lpthread $LIBS"
6553 cat >conftest.$ac_ext <<_ACEOF
6554 #line $LINENO "configure"
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572 (eval $ac_link) 2>&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
6576 { ac_try='test -s conftest$ac_exeext'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 ac_cv_lib_pthread_main=yes
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6587 ac_cv_lib_pthread_main=no
6589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6590 LIBS=$ac_check_lib_save_LIBS
6592 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6593 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6594 if test $ac_cv_lib_pthread_main = yes; then
6601 if test "$zlib" = "true" ; then
6602 echo "$as_me:$LINENO: checking for main in -lpng" >&5
6603 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6604 if test "${ac_cv_lib_png_main+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 ac_check_lib_save_LIBS=$LIBS
6608 LIBS="-lpng -lz -lm $LIBS"
6609 cat >conftest.$ac_ext <<_ACEOF
6610 #line $LINENO "configure"
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628 (eval $ac_link) 2>&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } &&
6632 { ac_try='test -s conftest$ac_exeext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 ac_cv_lib_png_main=yes
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_cv_lib_png_main=no
6645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6646 LIBS=$ac_check_lib_save_LIBS
6648 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6649 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6650 if test $ac_cv_lib_png_main = yes; then
6652 cat >>confdefs.h <<\_ACEOF
6662 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6663 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6664 if test "${ac_cv_header_stdc+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 cat >conftest.$ac_ext <<_ACEOF
6668 #line $LINENO "configure"
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6687 rm -f conftest.$ac_objext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689 (eval $ac_compile) 2>&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try='test -s conftest.$ac_objext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 ac_cv_header_stdc=yes
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 ac_cv_header_stdc=no
6706 rm -f conftest.$ac_objext conftest.$ac_ext
6708 if test $ac_cv_header_stdc = yes; then
6709 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6710 cat >conftest.$ac_ext <<_ACEOF
6711 #line $LINENO "configure"
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6721 $EGREP "memchr" >/dev/null 2>&1; then
6724 ac_cv_header_stdc=no
6730 if test $ac_cv_header_stdc = yes; then
6731 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6732 cat >conftest.$ac_ext <<_ACEOF
6733 #line $LINENO "configure"
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6743 $EGREP "free" >/dev/null 2>&1; then
6746 ac_cv_header_stdc=no
6752 if test $ac_cv_header_stdc = yes; then
6753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6754 if test "$cross_compiling" = yes; then
6757 cat >conftest.$ac_ext <<_ACEOF
6758 #line $LINENO "configure"
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6765 #if ((' ' & 0x0FF) == 0x020)
6766 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6767 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6769 # define ISLOWER(c) \
6770 (('a' <= (c) && (c) <= 'i') \
6771 || ('j' <= (c) && (c) <= 'r') \
6772 || ('s' <= (c) && (c) <= 'z'))
6773 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6781 for (i = 0; i < 256; i++)
6782 if (XOR (islower (i), ISLOWER (i))
6783 || toupper (i) != TOUPPER (i))
6788 rm -f conftest$ac_exeext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }; then
6801 echo "$as_me: program exited with status $ac_status" >&5
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6806 ac_cv_header_stdc=no
6808 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6812 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6813 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6814 if test $ac_cv_header_stdc = yes; then
6816 cat >>confdefs.h <<\_ACEOF
6817 #define STDC_HEADERS 1
6846 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
6848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6850 echo "$as_me:$LINENO: checking for $ac_header" >&5
6851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6858 # Is the header compilable?
6859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6861 cat >conftest.$ac_ext <<_ACEOF
6862 #line $LINENO "configure"
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 $ac_includes_default
6869 #include <$ac_header>
6871 rm -f conftest.$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } &&
6877 { ac_try='test -s conftest.$ac_objext'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; }; then
6883 ac_header_compiler=yes
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6888 ac_header_compiler=no
6890 rm -f conftest.$ac_objext conftest.$ac_ext
6891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6892 echo "${ECHO_T}$ac_header_compiler" >&6
6894 # Is the header present?
6895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6897 cat >conftest.$ac_ext <<_ACEOF
6898 #line $LINENO "configure"
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6904 #include <$ac_header>
6906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6909 grep -v '^ *+' conftest.er1 >conftest.err
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } >/dev/null; then
6914 if test -s conftest.err; then
6915 ac_cpp_err=$ac_c_preproc_warn_flag
6922 if test -z "$ac_cpp_err"; then
6923 ac_header_preproc=yes
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6928 ac_header_preproc=no
6930 rm -f conftest.err conftest.$ac_ext
6931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6932 echo "${ECHO_T}$ac_header_preproc" >&6
6934 # So? What about this header?
6935 case $ac_header_compiler:$ac_header_preproc in
6937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6943 ## ------------------------------------ ##
6944 ## Report this to bug-autoconf@gnu.org. ##
6945 ## ------------------------------------ ##
6948 sed "s/^/$as_me: WARNING: /" >&2
6951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6959 ## ------------------------------------ ##
6960 ## Report this to bug-autoconf@gnu.org. ##
6961 ## ------------------------------------ ##
6964 sed "s/^/$as_me: WARNING: /" >&2
6967 echo "$as_me:$LINENO: checking for $ac_header" >&5
6968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 eval "$as_ac_Header=$ac_header_preproc"
6974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6979 cat >>confdefs.h <<_ACEOF
6980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6988 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6989 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6990 if test "${ac_cv_c_const+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 cat >conftest.$ac_ext <<_ACEOF
6994 #line $LINENO "configure"
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7004 /* FIXME: Include the comments suggested by Paul. */
7006 /* Ultrix mips cc rejects this. */
7007 typedef int charset[2];
7009 /* SunOS 4.1.1 cc rejects this. */
7010 char const *const *ccp;
7012 /* NEC SVR4.0.2 mips cc rejects this. */
7013 struct point {int x, y;};
7014 static struct point const zero = {0,0};
7015 /* AIX XL C 1.02.0.0 rejects this.
7016 It does not let you subtract one const X* pointer from another in
7017 an arm of an if-expression whose if-part is not a constant
7019 const char *g = "string";
7020 ccp = &g + (g ? g-g : 0);
7021 /* HPUX 7.0 cc rejects these. */
7024 ccp = (char const *const *) p;
7025 { /* SCO 3.2v4 cc rejects this. */
7027 char const *s = 0 ? (char *) 0 : (char const *) 0;
7031 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7033 const int *foo = &x[0];
7036 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7037 typedef const int *iptr;
7041 { /* AIX XL C 1.02.0.0 rejects this saying
7042 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7043 struct s { int j; const int *ap[3]; };
7044 struct s *b; b->j = 5;
7046 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7055 rm -f conftest.$ac_objext
7056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057 (eval $ac_compile) 2>&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -s conftest.$ac_objext'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; }; then
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7074 rm -f conftest.$ac_objext conftest.$ac_ext
7076 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7077 echo "${ECHO_T}$ac_cv_c_const" >&6
7078 if test $ac_cv_c_const = no; then
7080 cat >>confdefs.h <<\_ACEOF
7086 echo "$as_me:$LINENO: checking for off_t" >&5
7087 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7088 if test "${ac_cv_type_off_t+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 cat >conftest.$ac_ext <<_ACEOF
7092 #line $LINENO "configure"
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 $ac_includes_default
7110 rm -f conftest.$ac_objext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7112 (eval $ac_compile) 2>&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try='test -s conftest.$ac_objext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7122 ac_cv_type_off_t=yes
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7129 rm -f conftest.$ac_objext conftest.$ac_ext
7131 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7132 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7133 if test $ac_cv_type_off_t = yes; then
7137 cat >>confdefs.h <<_ACEOF
7143 echo "$as_me:$LINENO: checking for size_t" >&5
7144 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7145 if test "${ac_cv_type_size_t+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 cat >conftest.$ac_ext <<_ACEOF
7149 #line $LINENO "configure"
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 $ac_includes_default
7161 if (sizeof (size_t))
7167 rm -f conftest.$ac_objext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7169 (eval $ac_compile) 2>&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } &&
7173 { ac_try='test -s conftest.$ac_objext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 ac_cv_type_size_t=yes
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7184 ac_cv_type_size_t=no
7186 rm -f conftest.$ac_objext conftest.$ac_ext
7188 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7189 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7190 if test $ac_cv_type_size_t = yes; then
7194 cat >>confdefs.h <<_ACEOF
7195 #define size_t unsigned
7200 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7201 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7202 if test "${ac_cv_struct_tm+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 cat >conftest.$ac_ext <<_ACEOF
7206 #line $LINENO "configure"
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #include <sys/types.h>
7218 struct tm *tp; tp->tm_sec;
7223 rm -f conftest.$ac_objext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225 (eval $ac_compile) 2>&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } &&
7229 { ac_try='test -s conftest.$ac_objext'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7235 ac_cv_struct_tm=time.h
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7240 ac_cv_struct_tm=sys/time.h
7242 rm -f conftest.$ac_objext conftest.$ac_ext
7244 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7245 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7246 if test $ac_cv_struct_tm = sys/time.h; then
7248 cat >>confdefs.h <<\_ACEOF
7249 #define TM_IN_SYS_TIME 1
7256 for ac_func in vprintf
7258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7259 echo "$as_me:$LINENO: checking for $ac_func" >&5
7260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7261 if eval "test \"\${$as_ac_var+set}\" = set"; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 cat >conftest.$ac_ext <<_ACEOF
7265 #line $LINENO "configure"
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 /* System header to define __stub macros and hopefully few prototypes,
7272 which can conflict with char $ac_func (); below.
7273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7274 <limits.h> exists even on freestanding compilers. */
7276 # include <limits.h>
7278 # include <assert.h>
7280 /* Override any gcc2 internal prototype to avoid an error. */
7285 /* We use char because int might match the return type of a gcc2
7286 builtin and then its argument prototype would still apply. */
7288 /* The GNU C library defines this for functions which it implements
7289 to always fail with ENOSYS. Some functions are actually named
7290 something starting with __ and the normal name is an alias. */
7291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7294 char (*f) () = $ac_func;
7303 return f != $ac_func;
7308 rm -f conftest.$ac_objext conftest$ac_exeext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7310 (eval $ac_link) 2>&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } &&
7314 { ac_try='test -s conftest$ac_exeext'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; }; then
7320 eval "$as_ac_var=yes"
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7325 eval "$as_ac_var=no"
7327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7331 if test `eval echo '${'$as_ac_var'}'` = yes; then
7332 cat >>confdefs.h <<_ACEOF
7333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7336 echo "$as_me:$LINENO: checking for _doprnt" >&5
7337 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7338 if test "${ac_cv_func__doprnt+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 cat >conftest.$ac_ext <<_ACEOF
7342 #line $LINENO "configure"
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 /* System header to define __stub macros and hopefully few prototypes,
7349 which can conflict with char _doprnt (); below.
7350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7351 <limits.h> exists even on freestanding compilers. */
7353 # include <limits.h>
7355 # include <assert.h>
7357 /* Override any gcc2 internal prototype to avoid an error. */
7362 /* We use char because int might match the return type of a gcc2
7363 builtin and then its argument prototype would still apply. */
7365 /* The GNU C library defines this for functions which it implements
7366 to always fail with ENOSYS. Some functions are actually named
7367 something starting with __ and the normal name is an alias. */
7368 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7371 char (*f) () = _doprnt;
7380 return f != _doprnt;
7385 rm -f conftest.$ac_objext conftest$ac_exeext
7386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7387 (eval $ac_link) 2>&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } &&
7391 { ac_try='test -s conftest$ac_exeext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_cv_func__doprnt=yes
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 ac_cv_func__doprnt=no
7404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7406 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7407 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7408 if test $ac_cv_func__doprnt = yes; then
7410 cat >>confdefs.h <<\_ACEOF
7411 #define HAVE_DOPRNT 1
7427 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7430 echo "$as_me:$LINENO: checking for $ac_func" >&5
7431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7432 if eval "test \"\${$as_ac_var+set}\" = set"; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 cat >conftest.$ac_ext <<_ACEOF
7436 #line $LINENO "configure"
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 /* System header to define __stub macros and hopefully few prototypes,
7443 which can conflict with char $ac_func (); below.
7444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7445 <limits.h> exists even on freestanding compilers. */
7447 # include <limits.h>
7449 # include <assert.h>
7451 /* Override any gcc2 internal prototype to avoid an error. */
7456 /* We use char because int might match the return type of a gcc2
7457 builtin and then its argument prototype would still apply. */
7459 /* The GNU C library defines this for functions which it implements
7460 to always fail with ENOSYS. Some functions are actually named
7461 something starting with __ and the normal name is an alias. */
7462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7465 char (*f) () = $ac_func;
7474 return f != $ac_func;
7479 rm -f conftest.$ac_objext conftest$ac_exeext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7481 (eval $ac_link) 2>&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try='test -s conftest$ac_exeext'
7486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); }; }; then
7491 eval "$as_ac_var=yes"
7493 echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7496 eval "$as_ac_var=no"
7498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7502 if test `eval echo '${'$as_ac_var'}'` = yes; then
7503 cat >>confdefs.h <<_ACEOF
7504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7510 echo "$as_me:$LINENO: checking for basename" >&5
7511 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7512 if test "${ac_cv_func_basename+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 cat >conftest.$ac_ext <<_ACEOF
7516 #line $LINENO "configure"
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7522 /* System header to define __stub macros and hopefully few prototypes,
7523 which can conflict with char basename (); below.
7524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7525 <limits.h> exists even on freestanding compilers. */
7527 # include <limits.h>
7529 # include <assert.h>
7531 /* Override any gcc2 internal prototype to avoid an error. */
7536 /* We use char because int might match the return type of a gcc2
7537 builtin and then its argument prototype would still apply. */
7539 /* The GNU C library defines this for functions which it implements
7540 to always fail with ENOSYS. Some functions are actually named
7541 something starting with __ and the normal name is an alias. */
7542 #if defined (__stub_basename) || defined (__stub___basename)
7545 char (*f) () = basename;
7554 return f != basename;
7559 rm -f conftest.$ac_objext conftest$ac_exeext
7560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7561 (eval $ac_link) 2>&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } &&
7565 { ac_try='test -s conftest$ac_exeext'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; }; then
7571 ac_cv_func_basename=yes
7573 echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7576 ac_cv_func_basename=no
7578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7580 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7581 echo "${ECHO_T}$ac_cv_func_basename" >&6
7583 echo "$as_me:$LINENO: checking for setjmp" >&5
7584 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7585 if test "${ac_cv_func_setjmp+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 cat >conftest.$ac_ext <<_ACEOF
7589 #line $LINENO "configure"
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 /* System header to define __stub macros and hopefully few prototypes,
7596 which can conflict with char setjmp (); below.
7597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7598 <limits.h> exists even on freestanding compilers. */
7600 # include <limits.h>
7602 # include <assert.h>
7604 /* Override any gcc2 internal prototype to avoid an error. */
7609 /* We use char because int might match the return type of a gcc2
7610 builtin and then its argument prototype would still apply. */
7612 /* The GNU C library defines this for functions which it implements
7613 to always fail with ENOSYS. Some functions are actually named
7614 something starting with __ and the normal name is an alias. */
7615 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7618 char (*f) () = setjmp;
7632 rm -f conftest.$ac_objext conftest$ac_exeext
7633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7634 (eval $ac_link) 2>&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } &&
7638 { ac_try='test -s conftest$ac_exeext'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 ac_cv_func_setjmp=yes
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7649 ac_cv_func_setjmp=no
7651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7653 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7654 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7656 echo "$as_me:$LINENO: checking for setpriority" >&5
7657 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7658 if test "${ac_cv_func_setpriority+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 cat >conftest.$ac_ext <<_ACEOF
7662 #line $LINENO "configure"
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7668 /* System header to define __stub macros and hopefully few prototypes,
7669 which can conflict with char setpriority (); below.
7670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7671 <limits.h> exists even on freestanding compilers. */
7673 # include <limits.h>
7675 # include <assert.h>
7677 /* Override any gcc2 internal prototype to avoid an error. */
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7684 char setpriority ();
7685 /* The GNU C library defines this for functions which it implements
7686 to always fail with ENOSYS. Some functions are actually named
7687 something starting with __ and the normal name is an alias. */
7688 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7691 char (*f) () = setpriority;
7700 return f != setpriority;
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try='test -s conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717 ac_cv_func_setpriority=yes
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 ac_cv_func_setpriority=no
7724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7726 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7727 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7729 echo "$as_me:$LINENO: checking for time" >&5
7730 echo $ECHO_N "checking for time... $ECHO_C" >&6
7731 if test "${ac_cv_func_time+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 cat >conftest.$ac_ext <<_ACEOF
7735 #line $LINENO "configure"
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 /* System header to define __stub macros and hopefully few prototypes,
7742 which can conflict with char time (); below.
7743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7744 <limits.h> exists even on freestanding compilers. */
7746 # include <limits.h>
7748 # include <assert.h>
7750 /* Override any gcc2 internal prototype to avoid an error. */
7755 /* We use char because int might match the return type of a gcc2
7756 builtin and then its argument prototype would still apply. */
7758 /* The GNU C library defines this for functions which it implements
7759 to always fail with ENOSYS. Some functions are actually named
7760 something starting with __ and the normal name is an alias. */
7761 #if defined (__stub_time) || defined (__stub___time)
7764 char (*f) () = time;
7778 rm -f conftest.$ac_objext conftest$ac_exeext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7780 (eval $ac_link) 2>&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } &&
7784 { ac_try='test -s conftest$ac_exeext'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7799 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7800 echo "${ECHO_T}$ac_cv_func_time" >&6
7802 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7803 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7804 if test "${ac_cv_func_gettimeofday+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 cat >conftest.$ac_ext <<_ACEOF
7808 #line $LINENO "configure"
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 /* System header to define __stub macros and hopefully few prototypes,
7815 which can conflict with char gettimeofday (); below.
7816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7817 <limits.h> exists even on freestanding compilers. */
7819 # include <limits.h>
7821 # include <assert.h>
7823 /* Override any gcc2 internal prototype to avoid an error. */
7828 /* We use char because int might match the return type of a gcc2
7829 builtin and then its argument prototype would still apply. */
7830 char gettimeofday ();
7831 /* The GNU C library defines this for functions which it implements
7832 to always fail with ENOSYS. Some functions are actually named
7833 something starting with __ and the normal name is an alias. */
7834 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7837 char (*f) () = gettimeofday;
7846 return f != gettimeofday;
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7853 (eval $ac_link) 2>&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try='test -s conftest$ac_exeext'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 ac_cv_func_gettimeofday=yes
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7868 ac_cv_func_gettimeofday=no
7870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7872 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7873 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7875 echo "$as_me:$LINENO: checking for getopt" >&5
7876 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7877 if test "${ac_cv_func_getopt+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7881 #line $LINENO "configure"
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7887 /* System header to define __stub macros and hopefully few prototypes,
7888 which can conflict with char getopt (); below.
7889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7890 <limits.h> exists even on freestanding compilers. */
7892 # include <limits.h>
7894 # include <assert.h>
7896 /* Override any gcc2 internal prototype to avoid an error. */
7901 /* We use char because int might match the return type of a gcc2
7902 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_getopt) || defined (__stub___getopt)
7910 char (*f) () = getopt;
7924 rm -f conftest.$ac_objext conftest$ac_exeext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7926 (eval $ac_link) 2>&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } &&
7930 { ac_try='test -s conftest$ac_exeext'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; }; then
7936 ac_cv_func_getopt=yes
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 ac_cv_func_getopt=no
7943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7945 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7946 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7947 if test $ac_cv_func_getopt = yes; then
7954 if test "${OSTYPE}" = "cygwin" ; then
7957 echo "$as_me:$LINENO: checking for getopt_long" >&5
7958 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7959 if test "${ac_cv_func_getopt_long+set}" = set; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 cat >conftest.$ac_ext <<_ACEOF
7963 #line $LINENO "configure"
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7969 /* System header to define __stub macros and hopefully few prototypes,
7970 which can conflict with char getopt_long (); below.
7971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7972 <limits.h> exists even on freestanding compilers. */
7974 # include <limits.h>
7976 # include <assert.h>
7978 /* Override any gcc2 internal prototype to avoid an error. */
7983 /* We use char because int might match the return type of a gcc2
7984 builtin and then its argument prototype would still apply. */
7985 char getopt_long ();
7986 /* The GNU C library defines this for functions which it implements
7987 to always fail with ENOSYS. Some functions are actually named
7988 something starting with __ and the normal name is an alias. */
7989 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7992 char (*f) () = getopt_long;
8001 return f != getopt_long;
8006 rm -f conftest.$ac_objext conftest$ac_exeext
8007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8008 (eval $ac_link) 2>&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try='test -s conftest$ac_exeext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_cv_func_getopt_long=yes
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 ac_cv_func_getopt_long=no
8025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8027 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8028 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
8029 if test $ac_cv_func_getopt_long = yes; then
8037 if test "${getopt_long}" = "false" ; then
8038 my_includes="$my_includes -I../getopt"
8040 cat >>confdefs.h <<\_ACEOF
8041 #define HAVE_GETOPT_LONG 1
8044 ctlibs_base="$ctlibs_base -lgetopt"
8045 LDFLAGS="$LDFLAGS -L../getopt"
8049 INCLUDED_GETOPT_LONG_TRUE=
8050 INCLUDED_GETOPT_LONG_FALSE='#'
8052 INCLUDED_GETOPT_LONG_TRUE='#'
8053 INCLUDED_GETOPT_LONG_FALSE=
8058 if test "${readline}" = "true" ; then
8059 ctlibs_base="$ctlibs_base -lreadline"
8060 if test "${ncurses}" = "true"; then
8061 ctlibs_base="$ctlibs_base -lncurses"
8062 elif test "${curses}" = "true"; then
8063 ctlibs_base="$ctlibs_base -lcurses"
8067 echo "$as_me:$LINENO: checking debug" >&5
8068 echo $ECHO_N "checking debug... $ECHO_C" >&6
8069 # Check whether --enable-debug or --disable-debug was given.
8070 if test "${enable_debug+set}" = set; then
8071 enableval="$enable_debug"
8072 case "${enableval}" in
8074 echo "$as_me:$LINENO: result: yes" >&5
8075 echo "${ECHO_T}yes" >&6
8078 echo "$as_me:$LINENO: result: no" >&5
8079 echo "${ECHO_T}no" >&6
8081 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
8082 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
8086 debug=false; echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8091 if test "$debug" = "true"; then
8100 if test "$datadir" != "" ; then
8101 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
8104 if test "$debug" = "true" ; then
8105 CFLAGS="$CFLAGS -g -DDEBUG"
8107 cat >>confdefs.h <<\_ACEOF
8112 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
8114 cat >>confdefs.h <<\_ACEOF
8120 if test "${pthread}" = "true" ; then
8122 cat >>confdefs.h <<\_ACEOF
8123 #define HAVE_WXTHREADS 1
8128 echo "$as_me:$LINENO: checking sstream" >&5
8129 echo $ECHO_N "checking sstream... $ECHO_C" >&6
8130 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
8131 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
8132 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
8134 cat >>confdefs.h <<\_ACEOF
8135 #define HAVE_SSTREAM 1
8138 echo "$as_me:$LINENO: result: yes" >&5
8139 echo "${ECHO_T}yes" >&6
8141 echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6
8146 CFLAGS="$CFLAGS -Wall"
8147 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
8148 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
8149 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
8150 if test "${enable_verbose_warnings+set}" = set; then
8151 enableval="$enable_verbose_warnings"
8152 case "$enableval" in
8154 echo "$as_me:$LINENO: result: yes" >&5
8155 echo "${ECHO_T}yes" >&6
8156 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
8159 echo "$as_me:$LINENO: result: no" >&5
8160 echo "${ECHO_T}no" >&6
8164 echo "$as_me:$LINENO: result: no" >&5
8165 echo "${ECHO_T}no" >&6
8169 echo "$as_me:$LINENO: checking static executables" >&5
8170 echo $ECHO_N "checking static executables... $ECHO_C" >&6
8171 # Check whether --enable-static or --disable-static was given.
8172 if test "${enable_static+set}" = set; then
8173 enableval="$enable_static"
8174 case "$enableval" in
8176 echo "$as_me:$LINENO: result: yes" >&5
8177 echo "${ECHO_T}yes" >&6
8178 CFLAGS="$CFLAGS --static"
8181 echo "$as_me:$LINENO: result: no" >&5
8182 echo "${ECHO_T}no" >&6
8186 echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6
8192 # Check whether --with-lam or --without-lam was given.
8193 if test "${with_lam+set}" = set; then
8195 if test "$withval" != "no" ; then
8201 if test "$withval" != "no" ; then
8202 if test "$prefix" != "NONE" ; then
8203 trylamdir="$trylamdir $prefix"
8206 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
8207 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
8208 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
8209 if test -x "$testlamdir/bin/hcp" ; then
8210 if test "$testlamdir" != "/usr"; then
8211 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
8212 CFLAGS="$CFLAGS -I$testlamdir/include"
8214 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
8215 lamdir="$testlamdir"
8222 echo "$as_me:$LINENO: result: $lamdir" >&5
8223 echo "${ECHO_T}$lamdir" >&6
8225 echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6
8231 # Check whether --with-ctn or --without-ctn was given.
8232 if test "${with_ctn+set}" = set; then
8234 if test "$withval" != "no" ; then
8240 if test "$withval" == "no" -o "$withval" == "NONE" ; then
8241 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8242 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8243 echo "$as_me:$LINENO: result: disabled" >&5
8244 echo "${ECHO_T}disabled" >&6
8246 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8247 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8248 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
8249 if test -f "$testctndir/libctn.a" ; then
8250 LDFLAGS="$LDFLAGS -L$testctndir"
8255 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
8256 if test -f "$testctndir/ctn_os.h" ; then
8257 CFLAGS="$CFLAGS -I$testctndir"
8262 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
8265 cat >>confdefs.h <<\_ACEOF
8266 #define HAVE_CTN_DICOM 1
8269 echo "$as_me:$LINENO: result: yes" >&5
8270 echo "${ECHO_T}yes" >&6
8272 echo "$as_me:$LINENO: result: no" >&5
8273 echo "${ECHO_T}no" >&6
8277 echo "$as_me:$LINENO: checking for CPU specification" >&5
8278 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
8280 # Check whether --with-mcpu or --without-mcpu was given.
8281 if test "${with_mcpu+set}" = set; then
8282 withval="$with_mcpu"
8286 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
8287 echo "$as_me:$LINENO: result: no" >&5
8288 echo "${ECHO_T}no" >&6
8290 echo "$as_me:$LINENO: result: $withval" >&5
8291 echo "${ECHO_T}$withval" >&6
8292 CFLAGS="$CFLAGS -mcpu=$withval"
8295 echo "$as_me:$LINENO: checking for web access" >&5
8296 echo $ECHO_N "checking for web access... $ECHO_C" >&6
8298 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
8299 if test "${with_cgibin_dir+set}" = set; then
8300 withval="$with_cgibin_dir"
8301 cgibindir=$withval ;
8305 # Check whether --with-cgibin-url or --without-cgibin-url was given.
8306 if test "${with_cgibin_url+set}" = set; then
8307 withval="$with_cgibin_url"
8308 cgibinurl=$withval ;
8312 # Check whether --with-webdata-dir or --without-webdata-dir was given.
8313 if test "${with_webdata_dir+set}" = set; then
8314 withval="$with_webdata_dir"
8315 webdatadir=$withval ;
8319 # Check whether --with-webdata-url or --without-webdata-url was given.
8320 if test "${with_webdata_url+set}" = set; then
8321 withval="$with_webdata_url"
8322 webdataurl=$withval ;
8326 # Check whether --with-html-dir or --without-html-dir was given.
8327 if test "${with_html_dir+set}" = set; then
8328 withval="$with_html_dir"
8332 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
8333 cgiprograms="ctsim.cgi ctsim.conf"
8337 if test -n "$htmldir" ; then
8338 htmldata=simulate.html
8343 if test -n "$htmldir"; then
8352 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
8355 echo "$as_me:$LINENO: result: yes" >&5
8356 echo "${ECHO_T}yes" >&6
8357 if test -z "$cgibindir" ; then
8358 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
8359 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
8360 { (exit 1); exit 1; }; }
8361 elif test -z "$cgibinurl" ; then
8362 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
8363 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
8364 { (exit 1); exit 1; }; }
8365 elif test -z "$webdatadir" ; then
8366 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
8367 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
8368 { (exit 1); exit 1; }; }
8369 elif test -z "$webdataurl" ; then
8370 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
8371 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
8372 { (exit 1); exit 1; }; }
8373 elif test -z "$htmldir" ; then
8374 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
8375 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
8376 { (exit 1); exit 1; }; }
8379 echo "$as_me:$LINENO: result: no" >&5
8380 echo "${ECHO_T}no" >&6
8385 if test -n "$lamdir"; then
8395 echo "$as_me:$LINENO: checking for X" >&5
8396 echo $ECHO_N "checking for X... $ECHO_C" >&6
8399 # Check whether --with-x or --without-x was given.
8400 if test "${with_x+set}" = set; then
8404 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8405 if test "x$with_x" = xno; then
8406 # The user explicitly disabled X.
8409 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8410 # Both variables are already set.
8413 if test "${ac_cv_have_x+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 # One or both of the vars are not set, and there is no cached value.
8417 ac_x_includes=no ac_x_libraries=no
8419 if mkdir conftest.dir; then
8421 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8422 cat >Imakefile <<'_ACEOF'
8424 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8426 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8427 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8428 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8429 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8430 for ac_extension in a so sl; do
8431 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8432 test -f $ac_im_libdir/libX11.$ac_extension; then
8433 ac_im_usrlibdir=$ac_im_libdir; break
8436 # Screen out bogus values from the imake configuration. They are
8437 # bogus both because they are the default anyway, and because
8438 # using them would break gcc on systems where it needs fixed includes.
8439 case $ac_im_incroot in
8441 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8443 case $ac_im_usrlibdir in
8445 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8452 # Standard set of common directories for X headers.
8453 # Check X11 before X11Rn because it is often a symlink to the current release.
8465 /usr/local/X11/include
8466 /usr/local/X11R6/include
8467 /usr/local/X11R5/include
8468 /usr/local/X11R4/include
8470 /usr/local/include/X11
8471 /usr/local/include/X11R6
8472 /usr/local/include/X11R5
8473 /usr/local/include/X11R4
8477 /usr/XFree86/include/X11
8481 /usr/unsupported/include
8483 /usr/local/x11r5/include
8484 /usr/lpp/Xamples/include
8486 /usr/openwin/include
8487 /usr/openwin/share/include'
8489 if test "$ac_x_includes" = no; then
8490 # Guess where to find include files, by looking for Intrinsic.h.
8491 # First, try using that file with no special directory specified.
8492 cat >conftest.$ac_ext <<_ACEOF
8493 #line $LINENO "configure"
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 #include <X11/Intrinsic.h>
8501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8504 grep -v '^ *+' conftest.er1 >conftest.err
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } >/dev/null; then
8509 if test -s conftest.err; then
8510 ac_cpp_err=$ac_c_preproc_warn_flag
8517 if test -z "$ac_cpp_err"; then
8518 # We can compile using X headers with no special include directory.
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 for ac_dir in $ac_x_header_dirs; do
8525 if test -r "$ac_dir/X11/Intrinsic.h"; then
8526 ac_x_includes=$ac_dir
8531 rm -f conftest.err conftest.$ac_ext
8532 fi # $ac_x_includes = no
8534 if test "$ac_x_libraries" = no; then
8535 # Check for the libraries.
8536 # See if we find them without any special options.
8537 # Don't add to $LIBS permanently.
8540 cat >conftest.$ac_ext <<_ACEOF
8541 #line $LINENO "configure"
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 #include <X11/Intrinsic.h>
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } &&
8562 { ac_try='test -s conftest$ac_exeext'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; }; then
8569 # We can link X programs with no special library path.
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8576 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8578 # Don't even attempt the hair of trying to link an X program!
8579 for ac_extension in a so sl; do
8580 if test -r $ac_dir/libXt.$ac_extension; then
8581 ac_x_libraries=$ac_dir
8587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8588 fi # $ac_x_libraries = no
8590 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8591 # Didn't find X anywhere. Cache the known absence of X.
8592 ac_cv_have_x="have_x=no"
8594 # Record where we found X for the cache.
8595 ac_cv_have_x="have_x=yes \
8596 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8601 eval "$ac_cv_have_x"
8604 if test "$have_x" != yes; then
8605 echo "$as_me:$LINENO: result: $have_x" >&5
8606 echo "${ECHO_T}$have_x" >&6
8609 # If each of the values was on the command line, it overrides each guess.
8610 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8611 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8612 # Update the cache value to reflect the command line values.
8613 ac_cv_have_x="have_x=yes \
8614 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8615 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8616 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8619 if test "$no_x" = yes; then
8620 # Not all programs may use this symbol, but it does not hurt to define it.
8622 cat >>confdefs.h <<\_ACEOF
8623 #define X_DISPLAY_MISSING 1
8626 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8628 if test -n "$x_includes"; then
8629 X_CFLAGS="$X_CFLAGS -I$x_includes"
8632 # It would also be nice to do this for all -L options, not just this one.
8633 if test -n "$x_libraries"; then
8634 X_LIBS="$X_LIBS -L$x_libraries"
8635 # For Solaris; some versions of Sun CC require a space after -R and
8636 # others require no space. Words are not sufficient . . . .
8637 case `(uname -sr) 2>/dev/null` in
8639 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8640 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8641 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8642 cat >conftest.$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660 (eval $ac_link) 2>&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } &&
8664 { ac_try='test -s conftest$ac_exeext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8678 if test $ac_R_nospace = yes; then
8679 echo "$as_me:$LINENO: result: no" >&5
8680 echo "${ECHO_T}no" >&6
8681 X_LIBS="$X_LIBS -R$x_libraries"
8683 LIBS="$ac_xsave_LIBS -R $x_libraries"
8684 cat >conftest.$ac_ext <<_ACEOF
8685 #line $LINENO "configure"
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702 (eval $ac_link) 2>&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -s conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8720 if test $ac_R_space = yes; then
8721 echo "$as_me:$LINENO: result: yes" >&5
8722 echo "${ECHO_T}yes" >&6
8723 X_LIBS="$X_LIBS -R $x_libraries"
8725 echo "$as_me:$LINENO: result: neither works" >&5
8726 echo "${ECHO_T}neither works" >&6
8733 # Check for system-dependent libraries X programs must link with.
8734 # Do this before checking for the system-independent R6 libraries
8735 # (-lICE), since we may need -lsocket or whatever for X linking.
8737 if test "$ISC" = yes; then
8738 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8740 # Martyn Johnson says this is needed for Ultrix, if the X
8741 # libraries were built with DECnet support. And Karl Berry says
8742 # the Alpha needs dnet_stub (dnet does not exist).
8743 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8744 cat >conftest.$ac_ext <<_ACEOF
8745 #line $LINENO "configure"
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8752 /* Override any gcc2 internal prototype to avoid an error. */
8756 /* We use char because int might match the return type of a gcc2
8757 builtin and then its argument prototype would still apply. */
8758 char XOpenDisplay ();
8767 rm -f conftest.$ac_objext conftest$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769 (eval $ac_link) 2>&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } &&
8773 { ac_try='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8785 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8786 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 ac_check_lib_save_LIBS=$LIBS
8791 cat >conftest.$ac_ext <<_ACEOF
8792 #line $LINENO "configure"
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8799 /* Override any gcc2 internal prototype to avoid an error. */
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -s conftest$ac_exeext'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; }; then
8826 ac_cv_lib_dnet_dnet_ntoa=yes
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 ac_cv_lib_dnet_dnet_ntoa=no
8833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8834 LIBS=$ac_check_lib_save_LIBS
8836 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8837 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8838 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8839 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8842 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8843 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8844 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8845 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 ac_check_lib_save_LIBS=$LIBS
8849 LIBS="-ldnet_stub $LIBS"
8850 cat >conftest.$ac_ext <<_ACEOF
8851 #line $LINENO "configure"
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8858 /* Override any gcc2 internal prototype to avoid an error. */
8862 /* We use char because int might match the return type of a gcc2
8863 builtin and then its argument prototype would still apply. */
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875 (eval $ac_link) 2>&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } &&
8879 { ac_try='test -s conftest$ac_exeext'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
8885 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8890 ac_cv_lib_dnet_stub_dnet_ntoa=no
8892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8896 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8897 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8898 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8904 LIBS="$ac_xsave_LIBS"
8906 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8907 # to get the SysV transport functions.
8908 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8910 # The nsl library prevents programs from opening the X display
8911 # on Irix 5.2, according to T.E. Dickey.
8912 # The functions gethostbyname, getservbyname, and inet_addr are
8913 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8914 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8915 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8916 if test "${ac_cv_func_gethostbyname+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 cat >conftest.$ac_ext <<_ACEOF
8920 #line $LINENO "configure"
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8926 /* System header to define __stub macros and hopefully few prototypes,
8927 which can conflict with char gethostbyname (); below.
8928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8929 <limits.h> exists even on freestanding compilers. */
8931 # include <limits.h>
8933 # include <assert.h>
8935 /* Override any gcc2 internal prototype to avoid an error. */
8940 /* We use char because int might match the return type of a gcc2
8941 builtin and then its argument prototype would still apply. */
8942 char gethostbyname ();
8943 /* The GNU C library defines this for functions which it implements
8944 to always fail with ENOSYS. Some functions are actually named
8945 something starting with __ and the normal name is an alias. */
8946 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8949 char (*f) () = gethostbyname;
8958 return f != gethostbyname;
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965 (eval $ac_link) 2>&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -s conftest$ac_exeext'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 ac_cv_func_gethostbyname=yes
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8980 ac_cv_func_gethostbyname=no
8982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8984 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8985 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8987 if test $ac_cv_func_gethostbyname = no; then
8988 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8989 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8990 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 ac_check_lib_save_LIBS=$LIBS
8995 cat >conftest.$ac_ext <<_ACEOF
8996 #line $LINENO "configure"
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9003 /* Override any gcc2 internal prototype to avoid an error. */
9007 /* We use char because int might match the return type of a gcc2
9008 builtin and then its argument prototype would still apply. */
9009 char gethostbyname ();
9018 rm -f conftest.$ac_objext conftest$ac_exeext
9019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9020 (eval $ac_link) 2>&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } &&
9024 { ac_try='test -s conftest$ac_exeext'
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 ac_cv_lib_nsl_gethostbyname=yes
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9035 ac_cv_lib_nsl_gethostbyname=no
9037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9038 LIBS=$ac_check_lib_save_LIBS
9040 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9041 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9042 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9043 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9046 if test $ac_cv_lib_nsl_gethostbyname = no; then
9047 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9048 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9049 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 ac_check_lib_save_LIBS=$LIBS
9054 cat >conftest.$ac_ext <<_ACEOF
9055 #line $LINENO "configure"
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9062 /* Override any gcc2 internal prototype to avoid an error. */
9066 /* We use char because int might match the return type of a gcc2
9067 builtin and then its argument prototype would still apply. */
9068 char gethostbyname ();
9077 rm -f conftest.$ac_objext conftest$ac_exeext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9079 (eval $ac_link) 2>&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -s conftest$ac_exeext'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; }; then
9089 ac_cv_lib_bsd_gethostbyname=yes
9091 echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9094 ac_cv_lib_bsd_gethostbyname=no
9096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9097 LIBS=$ac_check_lib_save_LIBS
9099 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9100 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9101 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9108 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9109 # socket/setsockopt and other routines are undefined under SCO ODT
9110 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9111 # on later versions), says Simon Leinen: it contains gethostby*
9112 # variants that don't use the name server (or something). -lsocket
9113 # must be given before -lnsl if both are needed. We assume that
9114 # if connect needs -lnsl, so does gethostbyname.
9115 echo "$as_me:$LINENO: checking for connect" >&5
9116 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9117 if test "${ac_cv_func_connect+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 cat >conftest.$ac_ext <<_ACEOF
9121 #line $LINENO "configure"
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9127 /* System header to define __stub macros and hopefully few prototypes,
9128 which can conflict with char connect (); below.
9129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9130 <limits.h> exists even on freestanding compilers. */
9132 # include <limits.h>
9134 # include <assert.h>
9136 /* Override any gcc2 internal prototype to avoid an error. */
9141 /* We use char because int might match the return type of a gcc2
9142 builtin and then its argument prototype would still apply. */
9144 /* The GNU C library defines this for functions which it implements
9145 to always fail with ENOSYS. Some functions are actually named
9146 something starting with __ and the normal name is an alias. */
9147 #if defined (__stub_connect) || defined (__stub___connect)
9150 char (*f) () = connect;
9159 return f != connect;
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166 (eval $ac_link) 2>&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -s conftest$ac_exeext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 ac_cv_func_connect=yes
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 ac_cv_func_connect=no
9183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9185 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9186 echo "${ECHO_T}$ac_cv_func_connect" >&6
9188 if test $ac_cv_func_connect = no; then
9189 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9190 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9191 if test "${ac_cv_lib_socket_connect+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9196 cat >conftest.$ac_ext <<_ACEOF
9197 #line $LINENO "configure"
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9204 /* Override any gcc2 internal prototype to avoid an error. */
9208 /* We use char because int might match the return type of a gcc2
9209 builtin and then its argument prototype would still apply. */
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9221 (eval $ac_link) 2>&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -s conftest$ac_exeext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_cv_lib_socket_connect=yes
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 ac_cv_lib_socket_connect=no
9238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9239 LIBS=$ac_check_lib_save_LIBS
9241 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9242 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9243 if test $ac_cv_lib_socket_connect = yes; then
9244 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9249 # Guillermo Gomez says -lposix is necessary on A/UX.
9250 echo "$as_me:$LINENO: checking for remove" >&5
9251 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9252 if test "${ac_cv_func_remove+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 cat >conftest.$ac_ext <<_ACEOF
9256 #line $LINENO "configure"
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9262 /* System header to define __stub macros and hopefully few prototypes,
9263 which can conflict with char remove (); below.
9264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9265 <limits.h> exists even on freestanding compilers. */
9267 # include <limits.h>
9269 # include <assert.h>
9271 /* Override any gcc2 internal prototype to avoid an error. */
9276 /* We use char because int might match the return type of a gcc2
9277 builtin and then its argument prototype would still apply. */
9279 /* The GNU C library defines this for functions which it implements
9280 to always fail with ENOSYS. Some functions are actually named
9281 something starting with __ and the normal name is an alias. */
9282 #if defined (__stub_remove) || defined (__stub___remove)
9285 char (*f) () = remove;
9299 rm -f conftest.$ac_objext conftest$ac_exeext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301 (eval $ac_link) 2>&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
9305 { ac_try='test -s conftest$ac_exeext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 ac_cv_func_remove=yes
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9316 ac_cv_func_remove=no
9318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9320 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9321 echo "${ECHO_T}$ac_cv_func_remove" >&6
9323 if test $ac_cv_func_remove = no; then
9324 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9325 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9326 if test "${ac_cv_lib_posix_remove+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 ac_check_lib_save_LIBS=$LIBS
9330 LIBS="-lposix $LIBS"
9331 cat >conftest.$ac_ext <<_ACEOF
9332 #line $LINENO "configure"
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9339 /* Override any gcc2 internal prototype to avoid an error. */
9343 /* We use char because int might match the return type of a gcc2
9344 builtin and then its argument prototype would still apply. */
9354 rm -f conftest.$ac_objext conftest$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } &&
9360 { ac_try='test -s conftest$ac_exeext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_lib_posix_remove=yes
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_cv_lib_posix_remove=no
9373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9374 LIBS=$ac_check_lib_save_LIBS
9376 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9377 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9378 if test $ac_cv_lib_posix_remove = yes; then
9379 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9384 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9385 echo "$as_me:$LINENO: checking for shmat" >&5
9386 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9387 if test "${ac_cv_func_shmat+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 cat >conftest.$ac_ext <<_ACEOF
9391 #line $LINENO "configure"
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9397 /* System header to define __stub macros and hopefully few prototypes,
9398 which can conflict with char shmat (); below.
9399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9400 <limits.h> exists even on freestanding compilers. */
9402 # include <limits.h>
9404 # include <assert.h>
9406 /* Override any gcc2 internal prototype to avoid an error. */
9411 /* We use char because int might match the return type of a gcc2
9412 builtin and then its argument prototype would still apply. */
9414 /* The GNU C library defines this for functions which it implements
9415 to always fail with ENOSYS. Some functions are actually named
9416 something starting with __ and the normal name is an alias. */
9417 #if defined (__stub_shmat) || defined (__stub___shmat)
9420 char (*f) () = shmat;
9434 rm -f conftest.$ac_objext conftest$ac_exeext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436 (eval $ac_link) 2>&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -s conftest$ac_exeext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 ac_cv_func_shmat=yes
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9455 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9456 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9458 if test $ac_cv_func_shmat = no; then
9459 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9460 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9461 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 ac_check_lib_save_LIBS=$LIBS
9466 cat >conftest.$ac_ext <<_ACEOF
9467 #line $LINENO "configure"
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9474 /* Override any gcc2 internal prototype to avoid an error. */
9478 /* We use char because int might match the return type of a gcc2
9479 builtin and then its argument prototype would still apply. */
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491 (eval $ac_link) 2>&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -s conftest$ac_exeext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 ac_cv_lib_ipc_shmat=yes
9503 echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9506 ac_cv_lib_ipc_shmat=no
9508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9509 LIBS=$ac_check_lib_save_LIBS
9511 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9512 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9513 if test $ac_cv_lib_ipc_shmat = yes; then
9514 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9520 # Check for libraries that X11R6 Xt/Xaw programs need.
9521 ac_save_LDFLAGS=$LDFLAGS
9522 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9523 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9524 # check for ICE first), but we must link in the order -lSM -lICE or
9525 # we get undefined symbols. So assume we have SM if we have ICE.
9526 # These have to be linked with before -lX11, unlike the other
9527 # libraries we check for below, so use a different variable.
9528 # John Interrante, Karl Berry
9529 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9530 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9531 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 ac_check_lib_save_LIBS=$LIBS
9535 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9536 cat >conftest.$ac_ext <<_ACEOF
9537 #line $LINENO "configure"
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9544 /* Override any gcc2 internal prototype to avoid an error. */
9548 /* We use char because int might match the return type of a gcc2
9549 builtin and then its argument prototype would still apply. */
9550 char IceConnectionNumber ();
9554 IceConnectionNumber ();
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try='test -s conftest$ac_exeext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 ac_cv_lib_ICE_IceConnectionNumber=yes
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ac_cv_lib_ICE_IceConnectionNumber=no
9578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9579 LIBS=$ac_check_lib_save_LIBS
9581 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9582 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9583 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9584 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9587 LDFLAGS=$ac_save_LDFLAGS
9598 X_TOOLKIT_LIBS="-lXt"
9599 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9601 our_saved_LDFLAGS="$LDFLAGS"
9602 LDFLAGS="$X_LIBS $LDFLAGS"
9603 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9604 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9605 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 ac_check_lib_save_LIBS=$LIBS
9609 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9610 cat >conftest.$ac_ext <<_ACEOF
9611 #line $LINENO "configure"
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9618 /* Override any gcc2 internal prototype to avoid an error. */
9622 /* We use char because int might match the return type of a gcc2
9623 builtin and then its argument prototype would still apply. */
9624 char XtToolkitThreadInitialize ();
9628 XtToolkitThreadInitialize ();
9633 rm -f conftest.$ac_objext conftest$ac_exeext
9634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635 (eval $ac_link) 2>&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try='test -s conftest$ac_exeext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9653 LIBS=$ac_check_lib_save_LIBS
9655 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9656 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9657 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9659 cat >>confdefs.h <<\_ACEOF
9660 #define X_THREAD_SUPPORT 1
9665 LDFLAGS="$our_saved_LDFLAGS"
9669 if test "x$no_x" = "xyes"; then
9678 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9681 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9683 echo "$as_me:$LINENO: checking for X" >&5
9684 echo $ECHO_N "checking for X... $ECHO_C" >&6
9685 if test "$no_x" != "yes" ; then
9687 cat >>confdefs.h <<\_ACEOF
9691 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9692 my_includes="$my_includes -I/usr/X11R6/include"
9693 ctlib_graphics="$ctlibs_base -lctgraphics"
9694 echo "$as_me:$LINENO: result: yes" >&5
9695 echo "${ECHO_T}yes" >&6
9696 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9697 if test "$libgl" = "true" ; then
9698 # Removed "-lglut" for Mac OS X compilation
9699 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9700 if test "$wxwin" = "true" ; then
9702 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9703 elif "$wx_mac" ; then
9704 ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9708 if test "$wxwin" = "true" ; then
9710 cat >>confdefs.h <<\_ACEOF
9726 echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6
9730 if test "$png" = "true" ; then
9731 ctlibs_tools="$ctlibs_tools -lpng"
9733 if test "$zlib" = "true" ; then
9734 ctlibs_tools="$ctlibs_tools -lz"
9736 if test "$fftw" = "true" ; then
9737 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9739 if test "$ctn" = "true"; then
9740 ctlibs_tools="$ctlibs_tools -lctn"
9743 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9744 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9745 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 ac_check_lib_save_LIBS=$LIBS
9749 LIBS="-ldmallocxx $LIBS"
9750 cat >conftest.$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769 (eval $ac_link) 2>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try='test -s conftest$ac_exeext'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9779 ac_cv_lib_dmallocxx_main=yes
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 ac_cv_lib_dmallocxx_main=no
9786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9787 LIBS=$ac_check_lib_save_LIBS
9789 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9790 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9791 if test $ac_cv_lib_dmallocxx_main = yes; then
9797 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9798 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9799 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9800 if test "${enable_dmalloc+set}" = set; then
9801 enableval="$enable_dmalloc"
9802 case "${enableval}" in
9803 yes) usedmalloc=true
9804 echo "$as_me:$LINENO: result: yes" >&5
9805 echo "${ECHO_T}yes" >&6
9807 no) usedmalloc=false
9808 echo "$as_me:$LINENO: result: no" >&5
9809 echo "${ECHO_T}no" >&6
9811 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9812 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9816 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9817 echo "${ECHO_T}no" >&6
9820 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9821 ctlibs_tools="$ctlibs_tools -ldmallocxx"
9823 cat >>confdefs.h <<\_ACEOF
9824 #define HAVE_DMALLOC 1
9827 echo "$as_me:$LINENO: result: Using dmalloc" >&5
9828 echo "${ECHO_T}Using dmalloc" >&6
9831 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9832 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9833 if test "${ac_cv_lib_efence_main+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 ac_check_lib_save_LIBS=$LIBS
9837 LIBS="-lefence $LIBS"
9838 cat >conftest.$ac_ext <<_ACEOF
9839 #line $LINENO "configure"
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9857 (eval $ac_link) 2>&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
9861 { ac_try='test -s conftest$ac_exeext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9867 ac_cv_lib_efence_main=yes
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9872 ac_cv_lib_efence_main=no
9874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9875 LIBS=$ac_check_lib_save_LIBS
9877 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9878 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9879 if test $ac_cv_lib_efence_main = yes; then
9885 echo "$as_me:$LINENO: checking for enable-efence" >&5
9886 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9887 # Check whether --enable-efence or --disable-efence was given.
9888 if test "${enable_efence+set}" = set; then
9889 enableval="$enable_efence"
9890 case "${enableval}" in
9892 echo "$as_me:$LINENO: result: yes" >&5
9893 echo "${ECHO_T}yes" >&6
9896 echo "$as_me:$LINENO: result: no" >&5
9897 echo "${ECHO_T}no" >&6
9899 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9900 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9904 useefence=false; echo "$as_me:$LINENO: result: no" >&5
9905 echo "${ECHO_T}no" >&6
9908 if test "$efence" = "true" -a "$useefence" = "true" ; then
9909 ctlibs_tools="$ctlibs_tools -lefence"
9911 cat >>confdefs.h <<\_ACEOF
9912 #define HAVE_EFENCE 1
9915 echo "$as_me:$LINENO: result: Using efence" >&5
9916 echo "${ECHO_T}Using efence" >&6
9919 if test "$wxwin" = "true" ; then
9920 if "$wx_gtk" = "true" || "$wx_mac" == "true" ; then
9921 wxcflags=`$wxconfig --cflags`
9922 wxlibs=`$wxconfig --libs`
9924 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9925 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9927 CFLAGS="$CFLAGS -I../include $wxcflags"
9928 ctlib_graphics="$ctlib_graphics $wxlibs"
9932 HAVE_WXWINDOWS_TRUE=
9933 HAVE_WXWINDOWS_FALSE='#'
9935 HAVE_WXWINDOWS_TRUE='#'
9936 HAVE_WXWINDOWS_FALSE=
9943 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9944 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9947 if test -n "$lamdir" ; then
9948 lamprograms="ctsimtext-lam"
9956 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"
9959 cat >confcache <<\_ACEOF
9960 # This file is a shell script that caches the results of configure
9961 # tests run on this system so they can be shared between configure
9962 # scripts and configure runs, see configure's option --config-cache.
9963 # It is not useful on other systems. If it contains results you don't
9964 # want to keep, you may remove or edit it.
9966 # config.status only pays attention to the cache file if you give it
9967 # the --recheck option to rerun configure.
9969 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9975 # The following way of writing the cache mishandles newlines in values,
9976 # but we know of no workaround that is simple, portable, and efficient.
9977 # So, don't put newlines in cache variables' values.
9978 # Ultrix sh set writes to stderr and can't be redirected directly,
9979 # and sets the high bit in the cache file unless we assign to the vars.
9982 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9984 # `set' does not quote correctly, so add quotes (double-quote
9985 # substitution turns \\\\ into \\, and sed turns \\ into \).
9988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9991 # `set' quotes correctly as required by POSIX, so do not add quotes.
9993 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10002 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10004 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10005 if test -w $cache_file; then
10006 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10007 cat confcache >$cache_file
10009 echo "not updating unwritable cache $cache_file"
10014 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10015 # Let make expand exec_prefix.
10016 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10018 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10019 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10020 # trailing colons and then remove the whole line if VPATH becomes empty
10021 # (actually we leave an empty line to preserve line numbers).
10022 if test "x$srcdir" = x.; then
10023 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10024 s/:*\$(srcdir):*/:/;
10025 s/:*\${srcdir}:*/:/;
10027 s/^\([^=]*=[ ]*\):*/\1/;
10033 DEFS=-DHAVE_CONFIG_H
10037 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10038 # 1. Remove the extension, and $U if already installed.
10039 ac_i=`echo "$ac_i" |
10040 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10042 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10043 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10045 LIBOBJS=$ac_libobjs
10047 LTLIBOBJS=$ac_ltlibobjs
10050 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10051 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10052 Usually this means the macro was only invoked conditionally." >&5
10053 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10054 Usually this means the macro was only invoked conditionally." >&2;}
10055 { (exit 1); exit 1; }; }
10057 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10058 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10059 Usually this means the macro was only invoked conditionally." >&5
10060 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10061 Usually this means the macro was only invoked conditionally." >&2;}
10062 { (exit 1); exit 1; }; }
10064 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10065 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10066 Usually this means the macro was only invoked conditionally." >&5
10067 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10068 Usually this means the macro was only invoked conditionally." >&2;}
10069 { (exit 1); exit 1; }; }
10071 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10072 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10073 Usually this means the macro was only invoked conditionally." >&5
10074 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10075 Usually this means the macro was only invoked conditionally." >&2;}
10076 { (exit 1); exit 1; }; }
10078 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
10079 { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10080 Usually this means the macro was only invoked conditionally." >&5
10081 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10082 Usually this means the macro was only invoked conditionally." >&2;}
10083 { (exit 1); exit 1; }; }
10085 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
10086 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
10087 Usually this means the macro was only invoked conditionally." >&5
10088 echo "$as_me: error: conditional \"DEBUG\" was never defined.
10089 Usually this means the macro was only invoked conditionally." >&2;}
10090 { (exit 1); exit 1; }; }
10092 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
10093 { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
10094 Usually this means the macro was only invoked conditionally." >&5
10095 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
10096 Usually this means the macro was only invoked conditionally." >&2;}
10097 { (exit 1); exit 1; }; }
10099 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
10100 { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
10101 Usually this means the macro was only invoked conditionally." >&5
10102 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
10103 Usually this means the macro was only invoked conditionally." >&2;}
10104 { (exit 1); exit 1; }; }
10106 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
10107 { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
10108 Usually this means the macro was only invoked conditionally." >&5
10109 echo "$as_me: error: conditional \"NO_X\" was never defined.
10110 Usually this means the macro was only invoked conditionally." >&2;}
10111 { (exit 1); exit 1; }; }
10113 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
10114 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
10115 Usually this means the macro was only invoked conditionally." >&5
10116 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
10117 Usually this means the macro was only invoked conditionally." >&2;}
10118 { (exit 1); exit 1; }; }
10120 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
10121 { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10122 Usually this means the macro was only invoked conditionally." >&5
10123 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10124 Usually this means the macro was only invoked conditionally." >&2;}
10125 { (exit 1); exit 1; }; }
10128 : ${CONFIG_STATUS=./config.status}
10129 ac_clean_files_save=$ac_clean_files
10130 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10131 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10132 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10133 cat >$CONFIG_STATUS <<_ACEOF
10135 # Generated by $as_me.
10136 # Run this file to recreate the current configuration.
10137 # Compiler output produced by configure, useful for debugging
10138 # configure, is in config.log if it exists.
10141 ac_cs_recheck=false
10143 SHELL=\${CONFIG_SHELL-$SHELL}
10146 cat >>$CONFIG_STATUS <<\_ACEOF
10147 ## --------------------- ##
10148 ## M4sh Initialization. ##
10149 ## --------------------- ##
10151 # Be Bourne compatible
10152 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10155 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10156 # is contrary to our usage. Disable this feature.
10157 alias -g '${1+"$@"}'='"$@"'
10158 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10162 # Support unset when possible.
10163 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10170 # Work around bugs in pre-3.0 UWIN ksh.
10171 $as_unset ENV MAIL MAILPATH
10178 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10179 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10180 LC_TELEPHONE LC_TIME
10182 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10183 eval $as_var=C; export $as_var
10189 # Required to use basename.
10190 if expr a : '\(a\)' >/dev/null 2>&1; then
10196 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10197 as_basename=basename
10203 # Name of the executable.
10204 as_me=`$as_basename "$0" ||
10205 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10206 X"$0" : 'X\(//\)$' \| \
10207 X"$0" : 'X\(/\)$' \| \
10208 . : '\(.\)' 2>/dev/null ||
10210 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10211 /^X\/\(\/\/\)$/{ s//\1/; q; }
10212 /^X\/\(\/\).*/{ s//\1/; q; }
10216 # PATH needs CR, and LINENO needs CR and PATH.
10217 # Avoid depending upon Character Ranges.
10218 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10219 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10220 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10221 as_cr_digits='0123456789'
10222 as_cr_alnum=$as_cr_Letters$as_cr_digits
10224 # The user is always right.
10225 if test "${PATH_SEPARATOR+set}" != set; then
10226 echo "#! /bin/sh" >conf$$.sh
10227 echo "exit 0" >>conf$$.sh
10229 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10238 as_lineno_1=$LINENO
10239 as_lineno_2=$LINENO
10240 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10241 test "x$as_lineno_1" != "x$as_lineno_2" &&
10242 test "x$as_lineno_3" = "x$as_lineno_2" || {
10243 # Find who we are. Look in the path if we contain no path at all
10246 *[\\/]* ) as_myself=$0 ;;
10247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10251 test -z "$as_dir" && as_dir=.
10252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10257 # We did not find ourselves, most probably we were run as `sh COMMAND'
10258 # in which case we are not to be found in the path.
10259 if test "x$as_myself" = x; then
10262 if test ! -f "$as_myself"; then
10263 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10264 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10265 { (exit 1); exit 1; }; }
10267 case $CONFIG_SHELL in
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10273 test -z "$as_dir" && as_dir=.
10274 for as_base in sh bash ksh sh5; do
10277 if ("$as_dir/$as_base" -c '
10278 as_lineno_1=$LINENO
10279 as_lineno_2=$LINENO
10280 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10281 test "x$as_lineno_1" != "x$as_lineno_2" &&
10282 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10283 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10284 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10285 CONFIG_SHELL=$as_dir/$as_base
10286 export CONFIG_SHELL
10287 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10295 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10296 # uniformly replaced by the line number. The first 'sed' inserts a
10297 # line-number line before each line; the second 'sed' does the real
10298 # work. The second script uses 'N' to pair each line-number line
10299 # with the numbered line, and appends trailing '-' during
10300 # substitution so that $LINENO is not a special case at line end.
10301 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10302 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10303 sed '=' <$as_myself |
10308 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10311 s,^['$as_cr_digits']*\n,,
10312 ' >$as_me.lineno &&
10313 chmod +x $as_me.lineno ||
10314 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10315 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10316 { (exit 1); exit 1; }; }
10318 # Don't try to exec as it changes $[0], causing all sort of problems
10319 # (the dirname of $[0] is not the place where we might find the
10320 # original and so on. Autoconf is especially sensible to this).
10322 # Exit status is that of the last command.
10327 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10328 *c*,-n*) ECHO_N= ECHO_C='
10330 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10331 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10334 if expr a : '\(a\)' >/dev/null 2>&1; then
10340 rm -f conf$$ conf$$.exe conf$$.file
10342 if ln -s conf$$.file conf$$ 2>/dev/null; then
10343 # We could just check for DJGPP; but this test a) works b) is more generic
10344 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10345 if test -f conf$$.exe; then
10346 # Don't use ln at all; we don't have any links
10351 elif ln conf$$.file conf$$ 2>/dev/null; then
10356 rm -f conf$$ conf$$.exe conf$$.file
10358 if mkdir -p . 2>/dev/null; then
10364 as_executable_p="test -f"
10366 # Sed expression to map a string onto a valid CPP name.
10367 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10369 # Sed expression to map a string onto a valid variable name.
10370 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10374 # We need space, tab and new line, in precisely that order.
10384 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10385 # report actual input values of CONFIG_FILES etc. instead of their
10386 # values after options handling. Logging --version etc. is OK.
10390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10391 ## Running $as_me. ##
10396 This file was extended by $as_me, which was
10397 generated by GNU Autoconf 2.57. Invocation command line was
10399 CONFIG_FILES = $CONFIG_FILES
10400 CONFIG_HEADERS = $CONFIG_HEADERS
10401 CONFIG_LINKS = $CONFIG_LINKS
10402 CONFIG_COMMANDS = $CONFIG_COMMANDS
10406 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10410 # Files that config.status was made for.
10411 if test -n "$ac_config_files"; then
10412 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10415 if test -n "$ac_config_headers"; then
10416 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10419 if test -n "$ac_config_links"; then
10420 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10423 if test -n "$ac_config_commands"; then
10424 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10427 cat >>$CONFIG_STATUS <<\_ACEOF
10430 \`$as_me' instantiates files from templates according to the
10431 current configuration.
10433 Usage: $0 [OPTIONS] [FILE]...
10435 -h, --help print this help, then exit
10436 -V, --version print version number, then exit
10437 -q, --quiet do not print progress messages
10438 -d, --debug don't remove temporary files
10439 --recheck update $as_me by reconfiguring in the same conditions
10440 --file=FILE[:TEMPLATE]
10441 instantiate the configuration file FILE
10442 --header=FILE[:TEMPLATE]
10443 instantiate the configuration header FILE
10445 Configuration files:
10448 Configuration headers:
10451 Configuration commands:
10454 Report bugs to <bug-autoconf@gnu.org>."
10457 cat >>$CONFIG_STATUS <<_ACEOF
10460 configured by $0, generated by GNU Autoconf 2.57,
10461 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10463 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10464 Free Software Foundation, Inc.
10465 This config.status script is free software; the Free Software Foundation
10466 gives unlimited permission to copy, distribute and modify it."
10471 cat >>$CONFIG_STATUS <<\_ACEOF
10472 # If no file are specified by the user, then we need to provide default
10473 # value. By we need to know if files were specified by the user.
10479 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10480 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10488 *) # This is not an option, so the user has probably given explicit
10491 ac_need_defaults=false;;
10495 # Handling of the options.
10497 cat >>$CONFIG_STATUS <<\_ACEOF
10498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10500 --version | --vers* | -V )
10501 echo "$ac_cs_version"; exit 0 ;;
10503 # Conflict between --help and --header
10504 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10505 Try \`$0 --help' for more information." >&5
10506 echo "$as_me: error: ambiguous option: $1
10507 Try \`$0 --help' for more information." >&2;}
10508 { (exit 1); exit 1; }; };;
10509 --help | --hel | -h )
10510 echo "$ac_cs_usage"; exit 0 ;;
10511 --debug | --d* | -d )
10513 --file | --fil | --fi | --f )
10515 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10516 ac_need_defaults=false;;
10517 --header | --heade | --head | --hea )
10519 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10520 ac_need_defaults=false;;
10521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10522 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10525 # This is an error.
10526 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10527 Try \`$0 --help' for more information." >&5
10528 echo "$as_me: error: unrecognized option: $1
10529 Try \`$0 --help' for more information." >&2;}
10530 { (exit 1); exit 1; }; } ;;
10532 *) ac_config_targets="$ac_config_targets $1" ;;
10538 ac_configure_extra_args=
10540 if $ac_cs_silent; then
10542 ac_configure_extra_args="$ac_configure_extra_args --silent"
10546 cat >>$CONFIG_STATUS <<_ACEOF
10547 if \$ac_cs_recheck; then
10548 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10549 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10554 cat >>$CONFIG_STATUS <<_ACEOF
10556 # INIT-COMMANDS section.
10559 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10565 cat >>$CONFIG_STATUS <<\_ACEOF
10566 for ac_config_target in $ac_config_targets
10568 case "$ac_config_target" in
10569 # Handling of arguments.
10570 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10571 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10572 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10573 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10574 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10575 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10576 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10577 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10578 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10579 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10580 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10581 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10582 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10583 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10584 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10585 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10586 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10587 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10588 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10589 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10590 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10591 { (exit 1); exit 1; }; };;
10595 # If the user did not use the arguments to specify the items to instantiate,
10596 # then the envvar interface is used. Set only those that are not.
10597 # We use the long form for the default assignment because of an extremely
10598 # bizarre bug on SunOS 4.1.3.
10599 if $ac_need_defaults; then
10600 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10601 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10602 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10605 # Have a temporary directory for convenience. Make it in the build tree
10606 # simply because there is no reason to put it here, and in addition,
10607 # creating and moving files from /tmp can sometimes cause problems.
10608 # Create a temporary directory, and hook for its removal unless debugging.
10611 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10612 trap '{ (exit 1); exit 1; }' 1 2 13 15
10615 # Create a (secure) tmp directory for tmp files.
10618 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10619 test -n "$tmp" && test -d "$tmp"
10622 tmp=./confstat$$-$RANDOM
10623 (umask 077 && mkdir $tmp)
10626 echo "$me: cannot create a temporary directory in ." >&2
10627 { (exit 1); exit 1; }
10632 cat >>$CONFIG_STATUS <<_ACEOF
10635 # CONFIG_FILES section.
10638 # No need to generate the scripts if there are no CONFIG_FILES.
10639 # This happens for instance when ./config.status config.h
10640 if test -n "\$CONFIG_FILES"; then
10641 # Protect against being on the right side of a sed subst in config.status.
10642 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10643 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10644 s,@SHELL@,$SHELL,;t t
10645 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10646 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10647 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10648 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10649 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10650 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10651 s,@exec_prefix@,$exec_prefix,;t t
10652 s,@prefix@,$prefix,;t t
10653 s,@program_transform_name@,$program_transform_name,;t t
10654 s,@bindir@,$bindir,;t t
10655 s,@sbindir@,$sbindir,;t t
10656 s,@libexecdir@,$libexecdir,;t t
10657 s,@datadir@,$datadir,;t t
10658 s,@sysconfdir@,$sysconfdir,;t t
10659 s,@sharedstatedir@,$sharedstatedir,;t t
10660 s,@localstatedir@,$localstatedir,;t t
10661 s,@libdir@,$libdir,;t t
10662 s,@includedir@,$includedir,;t t
10663 s,@oldincludedir@,$oldincludedir,;t t
10664 s,@infodir@,$infodir,;t t
10665 s,@mandir@,$mandir,;t t
10666 s,@build_alias@,$build_alias,;t t
10667 s,@host_alias@,$host_alias,;t t
10668 s,@target_alias@,$target_alias,;t t
10669 s,@DEFS@,$DEFS,;t t
10670 s,@ECHO_C@,$ECHO_C,;t t
10671 s,@ECHO_N@,$ECHO_N,;t t
10672 s,@ECHO_T@,$ECHO_T,;t t
10673 s,@LIBS@,$LIBS,;t t
10674 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10675 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10676 s,@MAINT@,$MAINT,;t t
10677 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10678 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10679 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10680 s,@CYGPATH_W@,$CYGPATH_W,;t t
10681 s,@PACKAGE@,$PACKAGE,;t t
10682 s,@VERSION@,$VERSION,;t t
10683 s,@ACLOCAL@,$ACLOCAL,;t t
10684 s,@AUTOCONF@,$AUTOCONF,;t t
10685 s,@AUTOMAKE@,$AUTOMAKE,;t t
10686 s,@AUTOHEADER@,$AUTOHEADER,;t t
10687 s,@MAKEINFO@,$MAKEINFO,;t t
10688 s,@AMTAR@,$AMTAR,;t t
10689 s,@install_sh@,$install_sh,;t t
10690 s,@STRIP@,$STRIP,;t t
10691 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10692 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10694 s,@SET_MAKE@,$SET_MAKE,;t t
10695 s,@am__leading_dot@,$am__leading_dot,;t t
10696 s,@RANLIB@,$RANLIB,;t t
10697 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10699 s,@CFLAGS@,$CFLAGS,;t t
10700 s,@LDFLAGS@,$LDFLAGS,;t t
10701 s,@CPPFLAGS@,$CPPFLAGS,;t t
10702 s,@ac_ct_CC@,$ac_ct_CC,;t t
10703 s,@EXEEXT@,$EXEEXT,;t t
10704 s,@OBJEXT@,$OBJEXT,;t t
10705 s,@DEPDIR@,$DEPDIR,;t t
10706 s,@am__include@,$am__include,;t t
10707 s,@am__quote@,$am__quote,;t t
10708 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10709 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10710 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10711 s,@CCDEPMODE@,$CCDEPMODE,;t t
10712 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10713 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10715 s,@CXXFLAGS@,$CXXFLAGS,;t t
10716 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10717 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10718 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10719 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10720 s,@wxconfig@,$wxconfig,;t t
10721 s,@build@,$build,;t t
10722 s,@build_cpu@,$build_cpu,;t t
10723 s,@build_vendor@,$build_vendor,;t t
10724 s,@build_os@,$build_os,;t t
10725 s,@host@,$host,;t t
10726 s,@host_cpu@,$host_cpu,;t t
10727 s,@host_vendor@,$host_vendor,;t t
10728 s,@host_os@,$host_os,;t t
10730 s,@EGREP@,$EGREP,;t t
10731 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10732 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10733 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10734 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10735 s,@lamdir@,$lamdir,;t t
10736 s,@mpienable@,$mpienable,;t t
10737 s,@cgibindir@,$cgibindir,;t t
10738 s,@cgibinurl@,$cgibinurl,;t t
10739 s,@webdatadir@,$webdatadir,;t t
10740 s,@webdataurl@,$webdataurl,;t t
10741 s,@htmldir@,$htmldir,;t t
10742 s,@cgiprograms@,$cgiprograms,;t t
10743 s,@htmldata@,$htmldata,;t t
10744 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10745 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10746 s,@webenabled@,$webenabled,;t t
10747 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10748 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10749 s,@X_CFLAGS@,$X_CFLAGS,;t t
10750 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10751 s,@X_LIBS@,$X_LIBS,;t t
10752 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10753 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10754 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10755 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10756 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10757 s,@my_includes@,$my_includes,;t t
10758 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10759 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10760 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10761 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10762 s,@wxcflags@,$wxcflags,;t t
10763 s,@wxlibs@,$wxlibs,;t t
10764 s,@ctlibs@,$ctlibs,;t t
10765 s,@lamprograms@,$lamprograms,;t t
10766 s,@lamdefs@,$lamdefs,;t t
10767 s,@LIBOBJS@,$LIBOBJS,;t t
10768 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10773 cat >>$CONFIG_STATUS <<\_ACEOF
10774 # Split the substitutions into bite-sized pieces for seds with
10775 # small command number limits, like on Digital OSF/1 and HP-UX.
10776 ac_max_sed_lines=48
10777 ac_sed_frag=1 # Number of current file.
10778 ac_beg=1 # First line for current file.
10779 ac_end=$ac_max_sed_lines # Line after last line for current file.
10782 while $ac_more_lines; do
10783 if test $ac_beg -gt 1; then
10784 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10786 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10788 if test ! -s $tmp/subs.frag; then
10789 ac_more_lines=false
10791 # The purpose of the label and of the branching condition is to
10792 # speed up the sed processing (if there are no `@' at all, there
10793 # is no need to browse any of the substitutions).
10794 # These are the two extra sed commands mentioned above.
10796 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10797 if test -z "$ac_sed_cmds"; then
10798 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10800 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10802 ac_sed_frag=`expr $ac_sed_frag + 1`
10804 ac_end=`expr $ac_end + $ac_max_sed_lines`
10807 if test -z "$ac_sed_cmds"; then
10810 fi # test -n "$CONFIG_FILES"
10813 cat >>$CONFIG_STATUS <<\_ACEOF
10814 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10815 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10817 - | *:- | *:-:* ) # input from stdin
10819 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10820 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10821 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10822 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10823 * ) ac_file_in=$ac_file.in ;;
10826 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10827 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10828 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10829 X"$ac_file" : 'X\(//\)[^/]' \| \
10830 X"$ac_file" : 'X\(//\)$' \| \
10831 X"$ac_file" : 'X\(/\)' \| \
10832 . : '\(.\)' 2>/dev/null ||
10834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10835 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10836 /^X\(\/\/\)$/{ s//\1/; q; }
10837 /^X\(\/\).*/{ s//\1/; q; }
10839 { if $as_mkdir_p; then
10844 while test ! -d "$as_dir"; do
10845 as_dirs="$as_dir $as_dirs"
10846 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10848 X"$as_dir" : 'X\(//\)[^/]' \| \
10849 X"$as_dir" : 'X\(//\)$' \| \
10850 X"$as_dir" : 'X\(/\)' \| \
10851 . : '\(.\)' 2>/dev/null ||
10853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10855 /^X\(\/\/\)$/{ s//\1/; q; }
10856 /^X\(\/\).*/{ s//\1/; q; }
10859 test ! -n "$as_dirs" || mkdir $as_dirs
10860 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10861 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10862 { (exit 1); exit 1; }; }; }
10866 if test "$ac_dir" != .; then
10867 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10868 # A "../" for each directory in $ac_dir_suffix.
10869 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10871 ac_dir_suffix= ac_top_builddir=
10875 .) # No --srcdir option. We are building in place.
10877 if test -z "$ac_top_builddir"; then
10880 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10882 [\\/]* | ?:[\\/]* ) # Absolute path.
10883 ac_srcdir=$srcdir$ac_dir_suffix;
10884 ac_top_srcdir=$srcdir ;;
10885 *) # Relative path.
10886 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10887 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10889 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10891 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10892 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10893 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10894 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10899 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10902 if test x"$ac_file" != x-; then
10903 { echo "$as_me:$LINENO: creating $ac_file" >&5
10904 echo "$as_me: creating $ac_file" >&6;}
10907 # Let's still pretend it is `configure' which instantiates (i.e., don't
10908 # use $as_me), people would be surprised to read:
10909 # /* config.h. Generated by config.status. */
10910 if test x"$ac_file" = x-; then
10913 configure_input="$ac_file. "
10915 configure_input=$configure_input"Generated from `echo $ac_file_in |
10916 sed 's,.*/,,'` by configure."
10918 # First look for the input files in the build tree, otherwise in the
10920 ac_file_inputs=`IFS=:
10921 for f in $ac_file_in; do
10923 -) echo $tmp/stdin ;;
10925 # Absolute (can't be DOS-style, as IFS=:)
10926 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10927 echo "$as_me: error: cannot find input file: $f" >&2;}
10928 { (exit 1); exit 1; }; }
10931 if test -f "$f"; then
10934 elif test -f "$srcdir/$f"; then
10939 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10940 echo "$as_me: error: cannot find input file: $f" >&2;}
10941 { (exit 1); exit 1; }; }
10944 done` || { (exit 1); exit 1; }
10946 cat >>$CONFIG_STATUS <<_ACEOF
10950 cat >>$CONFIG_STATUS <<\_ACEOF
10952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10953 s,@configure_input@,$configure_input,;t t
10954 s,@srcdir@,$ac_srcdir,;t t
10955 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10956 s,@top_srcdir@,$ac_top_srcdir,;t t
10957 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10958 s,@builddir@,$ac_builddir,;t t
10959 s,@abs_builddir@,$ac_abs_builddir,;t t
10960 s,@top_builddir@,$ac_top_builddir,;t t
10961 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10962 s,@INSTALL@,$ac_INSTALL,;t t
10963 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10965 if test x"$ac_file" != x-; then
10966 mv $tmp/out $ac_file
10974 cat >>$CONFIG_STATUS <<\_ACEOF
10977 # CONFIG_HEADER section.
10980 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10981 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10983 # ac_d sets the value in "#define NAME VALUE" lines.
10984 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10985 ac_dB='[ ].*$,\1#\2'
10988 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10989 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10990 ac_uB='$,\1#\2define\3'
10994 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10995 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10997 - | *:- | *:-:* ) # input from stdin
10999 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11000 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11001 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11002 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11003 * ) ac_file_in=$ac_file.in ;;
11006 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11007 echo "$as_me: creating $ac_file" >&6;}
11009 # First look for the input files in the build tree, otherwise in the
11011 ac_file_inputs=`IFS=:
11012 for f in $ac_file_in; do
11014 -) echo $tmp/stdin ;;
11016 # Absolute (can't be DOS-style, as IFS=:)
11017 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11018 echo "$as_me: error: cannot find input file: $f" >&2;}
11019 { (exit 1); exit 1; }; }
11022 if test -f "$f"; then
11025 elif test -f "$srcdir/$f"; then
11030 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11031 echo "$as_me: error: cannot find input file: $f" >&2;}
11032 { (exit 1); exit 1; }; }
11035 done` || { (exit 1); exit 1; }
11036 # Remove the trailing spaces.
11037 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11041 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11042 # `conftest.undefs', that substitutes the proper values into
11043 # config.h.in to produce config.h. The first handles `#define'
11044 # templates, and the second `#undef' templates.
11045 # And first: Protect against being on the right side of a sed subst in
11046 # config.status. Protect against being in an unquoted here document
11047 # in config.status.
11048 rm -f conftest.defines conftest.undefs
11049 # Using a here document instead of a string reduces the quoting nightmare.
11050 # Putting comments in sed scripts is not portable.
11052 # `end' is used to avoid that the second main sed command (meant for
11053 # 0-ary CPP macros) applies to n-ary macro definitions.
11054 # See the Autoconf documentation for `clear'.
11055 cat >confdef2sed.sed <<\_ACEOF
11060 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11062 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11065 # If some macros were called several times there might be several times
11066 # the same #defines, which is useless. Nevertheless, we may not want to
11067 # sort them, since we want the *last* AC-DEFINE to be honored.
11068 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11069 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11070 rm -f confdef2sed.sed
11072 # This sed command replaces #undef with comments. This is necessary, for
11073 # example, in the case of _POSIX_SOURCE, which is predefined and required
11074 # on some systems where configure will not decide to define it.
11075 cat >>conftest.undefs <<\_ACEOF
11076 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11079 # Break up conftest.defines because some shells have a limit on the size
11080 # of here documents, and old seds have small limits too (100 cmds).
11081 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11082 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11083 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11084 echo ' :' >>$CONFIG_STATUS
11085 rm -f conftest.tail
11086 while grep . conftest.defines >/dev/null
11088 # Write a limited-size here document to $tmp/defines.sed.
11089 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11090 # Speed up: don't consider the non `#define' lines.
11091 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11092 # Work around the forget-to-reset-the-flag bug.
11093 echo 't clr' >>$CONFIG_STATUS
11094 echo ': clr' >>$CONFIG_STATUS
11095 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11097 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11099 mv $tmp/out $tmp/in
11101 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11102 rm -f conftest.defines
11103 mv conftest.tail conftest.defines
11105 rm -f conftest.defines
11106 echo ' fi # grep' >>$CONFIG_STATUS
11107 echo >>$CONFIG_STATUS
11109 # Break up conftest.undefs because some shells have a limit on the size
11110 # of here documents, and old seds have small limits too (100 cmds).
11111 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11112 rm -f conftest.tail
11113 while grep . conftest.undefs >/dev/null
11115 # Write a limited-size here document to $tmp/undefs.sed.
11116 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11117 # Speed up: don't consider the non `#undef'
11118 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11119 # Work around the forget-to-reset-the-flag bug.
11120 echo 't clr' >>$CONFIG_STATUS
11121 echo ': clr' >>$CONFIG_STATUS
11122 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11124 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11126 mv $tmp/out $tmp/in
11128 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11129 rm -f conftest.undefs
11130 mv conftest.tail conftest.undefs
11132 rm -f conftest.undefs
11134 cat >>$CONFIG_STATUS <<\_ACEOF
11135 # Let's still pretend it is `configure' which instantiates (i.e., don't
11136 # use $as_me), people would be surprised to read:
11137 # /* config.h. Generated by config.status. */
11138 if test x"$ac_file" = x-; then
11139 echo "/* Generated by configure. */" >$tmp/config.h
11141 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11143 cat $tmp/in >>$tmp/config.h
11145 if test x"$ac_file" != x-; then
11146 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11147 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11148 echo "$as_me: $ac_file is unchanged" >&6;}
11150 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11152 X"$ac_file" : 'X\(//\)[^/]' \| \
11153 X"$ac_file" : 'X\(//\)$' \| \
11154 X"$ac_file" : 'X\(/\)' \| \
11155 . : '\(.\)' 2>/dev/null ||
11157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11159 /^X\(\/\/\)$/{ s//\1/; q; }
11160 /^X\(\/\).*/{ s//\1/; q; }
11162 { if $as_mkdir_p; then
11167 while test ! -d "$as_dir"; do
11168 as_dirs="$as_dir $as_dirs"
11169 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11171 X"$as_dir" : 'X\(//\)[^/]' \| \
11172 X"$as_dir" : 'X\(//\)$' \| \
11173 X"$as_dir" : 'X\(/\)' \| \
11174 . : '\(.\)' 2>/dev/null ||
11176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11178 /^X\(\/\/\)$/{ s//\1/; q; }
11179 /^X\(\/\).*/{ s//\1/; q; }
11182 test ! -n "$as_dirs" || mkdir $as_dirs
11183 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11184 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11185 { (exit 1); exit 1; }; }; }
11188 mv $tmp/config.h $ac_file
11192 rm -f $tmp/config.h
11194 # Compute $ac_file's index in $config_headers.
11196 for _am_header in $config_headers :; do
11197 case $_am_header in
11198 $ac_file | $ac_file:* )
11201 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11204 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11205 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11206 X$ac_file : 'X\(//\)[^/]' \| \
11207 X$ac_file : 'X\(//\)$' \| \
11208 X$ac_file : 'X\(/\)' \| \
11209 . : '\(.\)' 2>/dev/null ||
11211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11213 /^X\(\/\/\)$/{ s//\1/; q; }
11214 /^X\(\/\).*/{ s//\1/; q; }
11215 s/.*/./; q'`/stamp-h$_am_stamp_count
11218 cat >>$CONFIG_STATUS <<\_ACEOF
11221 # CONFIG_COMMANDS section.
11223 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11224 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11225 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11226 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11227 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11228 X"$ac_dest" : 'X\(//\)[^/]' \| \
11229 X"$ac_dest" : 'X\(//\)$' \| \
11230 X"$ac_dest" : 'X\(/\)' \| \
11231 . : '\(.\)' 2>/dev/null ||
11233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11234 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11235 /^X\(\/\/\)$/{ s//\1/; q; }
11236 /^X\(\/\).*/{ s//\1/; q; }
11240 if test "$ac_dir" != .; then
11241 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11242 # A "../" for each directory in $ac_dir_suffix.
11243 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11245 ac_dir_suffix= ac_top_builddir=
11249 .) # No --srcdir option. We are building in place.
11251 if test -z "$ac_top_builddir"; then
11254 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11256 [\\/]* | ?:[\\/]* ) # Absolute path.
11257 ac_srcdir=$srcdir$ac_dir_suffix;
11258 ac_top_srcdir=$srcdir ;;
11259 *) # Relative path.
11260 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11261 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11263 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11265 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11266 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11267 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11268 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11271 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11272 echo "$as_me: executing $ac_dest commands" >&6;}
11274 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11275 # Strip MF so we end up with the name of the file.
11276 mf=`echo "$mf" | sed -e 's/:.*$//'`
11277 # Check whether this is an Automake generated Makefile or not.
11278 # We used to match only the files named `Makefile.in', but
11279 # some people rename them; so instead we look at the file content.
11280 # Grep'ing the first line is not enough: some people post-process
11281 # each Makefile.in and add a new line on top of each file to say so.
11282 # So let's grep whole file.
11283 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11284 dirpart=`(dirname "$mf") 2>/dev/null ||
11285 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11286 X"$mf" : 'X\(//\)[^/]' \| \
11287 X"$mf" : 'X\(//\)$' \| \
11288 X"$mf" : 'X\(/\)' \| \
11289 . : '\(.\)' 2>/dev/null ||
11291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11292 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11293 /^X\(\/\/\)$/{ s//\1/; q; }
11294 /^X\(\/\).*/{ s//\1/; q; }
11299 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11300 # Extract the definition of DEP_FILES from the Makefile without
11302 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11303 test -z "$DEPDIR" && continue
11304 # When using ansi2knr, U may be empty or an underscore; expand it
11305 U=`sed -n -e '/^U = / s///p' < "$mf"`
11306 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11307 # We invoke sed twice because it is the simplest approach to
11308 # changing $(DEPDIR) to its actual value in the expansion.
11309 for file in `sed -n -e '
11310 /^DEP_FILES = .*\\\\$/ {
11319 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11320 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11321 # Make sure the directory exists.
11322 test -f "$dirpart/$file" && continue
11323 fdir=`(dirname "$file") 2>/dev/null ||
11324 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11325 X"$file" : 'X\(//\)[^/]' \| \
11326 X"$file" : 'X\(//\)$' \| \
11327 X"$file" : 'X\(/\)' \| \
11328 . : '\(.\)' 2>/dev/null ||
11330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11332 /^X\(\/\/\)$/{ s//\1/; q; }
11333 /^X\(\/\).*/{ s//\1/; q; }
11335 { if $as_mkdir_p; then
11336 mkdir -p $dirpart/$fdir
11338 as_dir=$dirpart/$fdir
11340 while test ! -d "$as_dir"; do
11341 as_dirs="$as_dir $as_dirs"
11342 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11344 X"$as_dir" : 'X\(//\)[^/]' \| \
11345 X"$as_dir" : 'X\(//\)$' \| \
11346 X"$as_dir" : 'X\(/\)' \| \
11347 . : '\(.\)' 2>/dev/null ||
11349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11351 /^X\(\/\/\)$/{ s//\1/; q; }
11352 /^X\(\/\).*/{ s//\1/; q; }
11355 test ! -n "$as_dirs" || mkdir $as_dirs
11356 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11357 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11358 { (exit 1); exit 1; }; }; }
11360 # echo "creating $dirpart/$file"
11361 echo '# dummy' > "$dirpart/$file"
11369 cat >>$CONFIG_STATUS <<\_ACEOF
11371 { (exit 0); exit 0; }
11373 chmod +x $CONFIG_STATUS
11374 ac_clean_files=$ac_clean_files_save
11377 # configure is writing to config.log, and then calls config.status.
11378 # config.status does its own redirection, appending to config.log.
11379 # Unfortunately, on DOS this fails, as config.log is still kept open
11380 # by configure, so config.status won't be able to write to it; its
11381 # output is simply discarded. So we exec the FD to /dev/null,
11382 # effectively closing config.log, so it can be properly (re)opened and
11383 # appended to by config.status. When coming back to configure, we
11384 # need to make the FD available again.
11385 if test "$no_create" != yes; then
11387 ac_config_status_args=
11388 test "$silent" = yes &&
11389 ac_config_status_args="$ac_config_status_args --quiet"
11391 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11393 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11394 # would make configure fail if this is the last instruction.
11395 $ac_cs_success || { (exit 1); exit 1; }