2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
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.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file="src/ctsim.cpp"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CXX_set=${CXX+set}
752 ac_env_CXX_value=$CXX
753 ac_cv_env_CXX_set=${CXX+set}
754 ac_cv_env_CXX_value=$CXX
755 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
756 ac_env_CXXFLAGS_value=$CXXFLAGS
757 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
759 ac_env_CPP_set=${CPP+set}
760 ac_env_CPP_value=$CPP
761 ac_cv_env_CPP_set=${CPP+set}
762 ac_cv_env_CPP_value=$CPP
765 # Report the --help message.
767 if test "$ac_init_help" = "long"; then
768 # Omit some internal or obsolete options to make the list less imposing.
769 # This message is too long to be a string in the A/UX 3.1 sh.
771 \`configure' configures this package to adapt to many kinds of systems.
773 Usage: $0 [OPTION]... [VAR=VALUE]...
775 To assign environment variables (e.g., CC, CFLAGS...), specify them as
776 VAR=VALUE. See below for descriptions of some of the useful variables.
778 Defaults for the options are specified in brackets.
781 -h, --help display this help and exit
782 --help=short display options specific to this package
783 --help=recursive display the short help of all the included packages
784 -V, --version display version information and exit
785 -q, --quiet, --silent do not print \`checking...' messages
786 --cache-file=FILE cache test results in FILE [disabled]
787 -C, --config-cache alias for \`--cache-file=config.cache'
788 -n, --no-create do not create output files
789 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794 Installation directories:
795 --prefix=PREFIX install architecture-independent files in PREFIX
797 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
800 By default, \`make install' will install all the files in
801 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
802 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
803 for instance \`--prefix=\$HOME'.
805 For better control, use the options below.
807 Fine tuning of the installation directories:
808 --bindir=DIR user executables [EPREFIX/bin]
809 --sbindir=DIR system admin executables [EPREFIX/sbin]
810 --libexecdir=DIR program executables [EPREFIX/libexec]
811 --datadir=DIR read-only architecture-independent data [PREFIX/share]
812 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
813 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
814 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
815 --libdir=DIR object code libraries [EPREFIX/lib]
816 --includedir=DIR C header files [PREFIX/include]
817 --oldincludedir=DIR C header files for non-gcc [/usr/include]
818 --infodir=DIR info documentation [PREFIX/info]
819 --mandir=DIR man documentation [PREFIX/man]
825 --program-prefix=PREFIX prepend PREFIX to installed program names
826 --program-suffix=SUFFIX append SUFFIX to installed program names
827 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
830 --x-includes=DIR X include files are in DIR
831 --x-libraries=DIR X library files are in DIR
834 --build=BUILD configure for building on BUILD [guessed]
835 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 if test -n "$ac_init_help"; then
844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
846 --enable-debug Turn on debugging
847 --enable-verbose-warnings
848 Enable verbose compiler warnings.
850 Enable static executables.
851 --enable-dmalloc Use dmalloc memory allocation
852 --enable-efence Use ElectricFence memory allocation
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-lam=PATH Set path of LAM MPI
858 --with-ctn=PATH Set path of CTN DICOM library
859 --with-cgibin-dir=PATH Set path of CGI binaries directory
860 --with-cgibin-url=PATH Set URL path of CGI binaries
861 --with-webdata-dir=PATH Set path of webdata
862 --with-webdata-url=PATH Set URL path of webdata
863 --with-html-dir=PATH Set directory of html files
864 --with-x use the X Window System
866 Some influential environment variables:
867 CC C compiler command
868 CFLAGS C compiler flags
869 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
870 nonstandard directory <lib dir>
871 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
872 headers in a nonstandard directory <include dir>
873 CXX C++ compiler command
874 CXXFLAGS C++ compiler flags
877 Use these variables to override the choices made by `configure' or to help
878 it to find libraries and programs with nonstandard names/locations.
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895 ac_dir_suffix= ac_top_builddir=
899 .) # No --srcdir option. We are building in place.
901 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
913 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
915 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
916 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
917 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
918 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
921 # Check for guested configure; otherwise get Cygnus style configure.
922 if test -f $ac_srcdir/configure.gnu; then
924 $SHELL $ac_srcdir/configure.gnu --help=recursive
925 elif test -f $ac_srcdir/configure; then
927 $SHELL $ac_srcdir/configure --help=recursive
928 elif test -f $ac_srcdir/configure.ac ||
929 test -f $ac_srcdir/configure.in; then
933 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
939 test -n "$ac_init_help" && exit 0
940 if $ac_init_version; then
943 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
944 Free Software Foundation, Inc.
945 This configure script is free software; the Free Software Foundation
946 gives unlimited permission to copy, distribute and modify it.
952 This file contains any messages produced by compilers while
953 running configure, to aid debugging if configure makes a mistake.
955 It was created by $as_me, which was
956 generated by GNU Autoconf 2.53. Invocation command line was
967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
974 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
976 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
977 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
979 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
980 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
981 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
982 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
990 test -z "$as_dir" && as_dir=.
1006 # Keep a trace of the command line.
1007 # Strip out --no-create and --no-recursion so they do not pile up.
1008 # Also quote any args containing shell meta-characters.
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n ) continue ;;
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1022 case " $ac_configure_args " in
1023 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1024 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1027 # Get rid of the leading space.
1030 # When interrupted or exit'd, cleanup temporary files, and complete
1031 # config.log. We remove comments because anyway the quotes in there
1032 # would cause problems or look ugly.
1033 # WARNING: Be sure not to use single quotes in there, as some shells,
1034 # such as our DU 5.0 friend, will then `close' the trap.
1035 trap 'exit_status=$?
1036 # Save into config.log some information that might help in debugging.
1040 ## ---------------- ##
1041 ## Cache variables. ##
1042 ## ---------------- ##
1045 # The following way of writing the cache mishandles newlines in values,
1048 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1051 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1056 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1061 if test -s confdefs.h; then
1068 sed "/^$/d" confdefs.h
1071 test "$ac_signal" != 0 &&
1072 echo "$as_me: caught signal $ac_signal"
1073 echo "$as_me: exit $exit_status"
1075 rm -f core core.* *.core &&
1076 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1079 for ac_signal in 1 2 13 15; do
1080 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1084 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1085 rm -rf conftest* confdefs.h
1086 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1089 # Predefined preprocessor variables.
1091 cat >>confdefs.h <<_ACEOF
1092 #define PACKAGE_NAME "$PACKAGE_NAME"
1096 cat >>confdefs.h <<_ACEOF
1097 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1101 cat >>confdefs.h <<_ACEOF
1102 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_STRING "$PACKAGE_STRING"
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1116 # Let the site file select an alternate cache file if it wants to.
1117 # Prefer explicitly selected file to automatically selected ones.
1118 if test -z "$CONFIG_SITE"; then
1119 if test "x$prefix" != xNONE; then
1120 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1122 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1125 for ac_site_file in $CONFIG_SITE; do
1126 if test -r "$ac_site_file"; then
1127 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1128 echo "$as_me: loading site script $ac_site_file" >&6;}
1129 sed 's/^/| /' "$ac_site_file" >&5
1134 if test -r "$cache_file"; then
1135 # Some versions of bash will fail to source /dev/null (special
1136 # files actually), so we avoid doing that.
1137 if test -f "$cache_file"; then
1138 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1139 echo "$as_me: loading cache $cache_file" >&6;}
1141 [\\/]* | ?:[\\/]* ) . $cache_file;;
1142 *) . ./$cache_file;;
1146 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1147 echo "$as_me: creating cache $cache_file" >&6;}
1151 # Check that the precious variables saved in the cache have kept the same
1153 ac_cache_corrupted=false
1154 for ac_var in `(set) 2>&1 |
1155 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1156 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1157 eval ac_new_set=\$ac_env_${ac_var}_set
1158 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1159 eval ac_new_val="\$ac_env_${ac_var}_value"
1160 case $ac_old_set,$ac_new_set in
1162 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1163 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1164 ac_cache_corrupted=: ;;
1166 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1167 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1168 ac_cache_corrupted=: ;;
1171 if test "x$ac_old_val" != "x$ac_new_val"; then
1172 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1173 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1174 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1175 echo "$as_me: former value: $ac_old_val" >&2;}
1176 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1177 echo "$as_me: current value: $ac_new_val" >&2;}
1178 ac_cache_corrupted=:
1181 # Pass precious variables to config.status.
1182 if test "$ac_new_set" = set; then
1184 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1185 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1186 *) ac_arg=$ac_var=$ac_new_val ;;
1188 case " $ac_configure_args " in
1189 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1190 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1194 if $ac_cache_corrupted; then
1195 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1196 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1197 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1198 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1199 { (exit 1); exit 1; }; }
1203 ac_cpp='$CPP $CPPFLAGS'
1204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1227 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1228 if test -f $ac_dir/install-sh; then
1230 ac_install_sh="$ac_aux_dir/install-sh -c"
1232 elif test -f $ac_dir/install.sh; then
1234 ac_install_sh="$ac_aux_dir/install.sh -c"
1236 elif test -f $ac_dir/shtool; then
1238 ac_install_sh="$ac_aux_dir/shtool install -c"
1242 if test -z "$ac_aux_dir"; then
1243 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1244 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1245 { (exit 1); exit 1; }; }
1247 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1248 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1249 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1251 # Find a good install program. We prefer a C program (faster),
1252 # so one script is as good as another. But avoid the broken or
1253 # incompatible versions:
1254 # SysV /etc/install, /usr/sbin/install
1255 # SunOS /usr/etc/install
1256 # IRIX /sbin/install
1258 # AmigaOS /C/install, which installs bootblocks on floppy discs
1259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1262 # ./install, which can be erroneously created by make from ./install.sh.
1263 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1265 if test -z "$INSTALL"; then
1266 if test "${ac_cv_path_install+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1273 test -z "$as_dir" && as_dir=.
1274 # Account for people who put trailing slashes in PATH elements.
1276 ./ | .// | /cC/* | \
1277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1280 # OSF1 and SCO ODT 3.0 have their own names for install.
1281 # Don't use installbsd from OSF since it installs stuff as root
1283 for ac_prog in ginstall scoinst install; do
1284 for ac_exec_ext in '' $ac_executable_extensions; do
1285 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1286 if test $ac_prog = install &&
1287 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1288 # AIX install. It has an incompatible calling convention.
1290 elif test $ac_prog = install &&
1291 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1292 # program-specific install script used by HP pwplus--don't use.
1295 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1307 if test "${ac_cv_path_install+set}" = set; then
1308 INSTALL=$ac_cv_path_install
1310 # As a last resort, use the slow shell script. We don't cache a
1311 # path for INSTALL within a source directory, because that will
1312 # break other packages using the cache if that directory is
1313 # removed, or if the path is relative.
1314 INSTALL=$ac_install_sh
1317 echo "$as_me:$LINENO: result: $INSTALL" >&5
1318 echo "${ECHO_T}$INSTALL" >&6
1320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1321 # It thinks the first close brace ends the variable substitution.
1322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1328 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1329 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1332 echo timestamp > conftestfile
1333 # Do `set' in a subshell so we don't clobber the current shell's
1334 # arguments. Must try -L first in case configure is actually a
1335 # symlink; some systems play weird games with the mod time of symlinks
1336 # (eg FreeBSD returns the mod time of the symlink's containing
1339 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1340 if test "$*" = "X"; then
1342 set X `ls -t $srcdir/configure conftestfile`
1344 if test "$*" != "X $srcdir/configure conftestfile" \
1345 && test "$*" != "X conftestfile $srcdir/configure"; then
1347 # If neither matched, then we have a broken ls. This can happen
1348 # if, for instance, CONFIG_SHELL is bash and it inherits a
1349 # broken ls alias from the environment. This has actually
1350 # happened. Such a system could not be considered "sane".
1351 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1352 alias in your environment" >&5
1353 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1354 alias in your environment" >&2;}
1355 { (exit 1); exit 1; }; }
1358 test "$2" = conftestfile
1364 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1365 Check your system clock" >&5
1366 echo "$as_me: error: newly created file is older than distributed files!
1367 Check your system clock" >&2;}
1368 { (exit 1); exit 1; }; }
1371 echo "$as_me:$LINENO: result: yes" >&5
1372 echo "${ECHO_T}yes" >&6
1373 test "$program_prefix" != NONE &&
1374 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1375 # Use a double $ so make ignores it.
1376 test "$program_suffix" != NONE &&
1377 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1378 # Double any \ or $. echo might interpret backslashes.
1379 # By default was `s,x,x', remove it if useless.
1380 cat <<\_ACEOF >conftest.sed
1381 s/[\\$]/&&/g;s/;s,x,x,$//
1383 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1386 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1387 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1388 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1389 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1392 cat >conftest.make <<\_ACEOF
1394 @echo 'ac_maketemp="${MAKE}"'
1396 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1397 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1398 if test -n "$ac_maketemp"; then
1399 eval ac_cv_prog_make_${ac_make}_set=yes
1401 eval ac_cv_prog_make_${ac_make}_set=no
1405 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1406 echo "$as_me:$LINENO: result: yes" >&5
1407 echo "${ECHO_T}yes" >&6
1410 echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1412 SET_MAKE="MAKE=${MAKE-make}"
1420 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1421 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1422 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1423 { (exit 1); exit 1; }; }
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE "$PACKAGE"
1431 cat >>confdefs.h <<_ACEOF
1432 #define VERSION "$VERSION"
1437 missing_dir=`cd $ac_aux_dir && pwd`
1438 echo "$as_me:$LINENO: checking for working aclocal" >&5
1439 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1440 # Run test in a subshell; some versions of sh will print an error if
1441 # an executable is not found, even if stderr is redirected.
1442 # Redirect stdin to placate older versions of autoconf. Sigh.
1443 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1445 echo "$as_me:$LINENO: result: found" >&5
1446 echo "${ECHO_T}found" >&6
1448 ACLOCAL="$missing_dir/missing aclocal"
1449 echo "$as_me:$LINENO: result: missing" >&5
1450 echo "${ECHO_T}missing" >&6
1453 echo "$as_me:$LINENO: checking for working autoconf" >&5
1454 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1455 # Run test in a subshell; some versions of sh will print an error if
1456 # an executable is not found, even if stderr is redirected.
1457 # Redirect stdin to placate older versions of autoconf. Sigh.
1458 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1460 echo "$as_me:$LINENO: result: found" >&5
1461 echo "${ECHO_T}found" >&6
1463 AUTOCONF="$missing_dir/missing autoconf"
1464 echo "$as_me:$LINENO: result: missing" >&5
1465 echo "${ECHO_T}missing" >&6
1468 echo "$as_me:$LINENO: checking for working automake" >&5
1469 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1470 # Run test in a subshell; some versions of sh will print an error if
1471 # an executable is not found, even if stderr is redirected.
1472 # Redirect stdin to placate older versions of autoconf. Sigh.
1473 if (automake --version) < /dev/null > /dev/null 2>&1; then
1475 echo "$as_me:$LINENO: result: found" >&5
1476 echo "${ECHO_T}found" >&6
1478 AUTOMAKE="$missing_dir/missing automake"
1479 echo "$as_me:$LINENO: result: missing" >&5
1480 echo "${ECHO_T}missing" >&6
1483 echo "$as_me:$LINENO: checking for working autoheader" >&5
1484 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1485 # Run test in a subshell; some versions of sh will print an error if
1486 # an executable is not found, even if stderr is redirected.
1487 # Redirect stdin to placate older versions of autoconf. Sigh.
1488 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1489 AUTOHEADER=autoheader
1490 echo "$as_me:$LINENO: result: found" >&5
1491 echo "${ECHO_T}found" >&6
1493 AUTOHEADER="$missing_dir/missing autoheader"
1494 echo "$as_me:$LINENO: result: missing" >&5
1495 echo "${ECHO_T}missing" >&6
1498 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1499 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1500 # Run test in a subshell; some versions of sh will print an error if
1501 # an executable is not found, even if stderr is redirected.
1502 # Redirect stdin to placate older versions of autoconf. Sigh.
1503 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1505 echo "$as_me:$LINENO: result: found" >&5
1506 echo "${ECHO_T}found" >&6
1508 MAKEINFO="$missing_dir/missing makeinfo"
1509 echo "$as_me:$LINENO: result: missing" >&5
1510 echo "${ECHO_T}missing" >&6
1515 ac_config_headers="$ac_config_headers config.h"
1517 ac_config_commands="$ac_config_commands default-1"
1520 for ac_prog in gawk mawk nawk awk
1522 # Extract the first word of "$ac_prog", so it can be a program name with args.
1523 set dummy $ac_prog; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_AWK+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 if test -n "$AWK"; then
1530 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_AWK="$ac_prog"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549 if test -n "$AWK"; then
1550 echo "$as_me:$LINENO: result: $AWK" >&5
1551 echo "${ECHO_T}$AWK" >&6
1553 echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1557 test -n "$AWK" && break
1560 # Find a good install program. We prefer a C program (faster),
1561 # so one script is as good as another. But avoid the broken or
1562 # incompatible versions:
1563 # SysV /etc/install, /usr/sbin/install
1564 # SunOS /usr/etc/install
1565 # IRIX /sbin/install
1567 # AmigaOS /C/install, which installs bootblocks on floppy discs
1568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1571 # ./install, which can be erroneously created by make from ./install.sh.
1572 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1573 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1574 if test -z "$INSTALL"; then
1575 if test "${ac_cv_path_install+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 test -z "$as_dir" && as_dir=.
1583 # Account for people who put trailing slashes in PATH elements.
1585 ./ | .// | /cC/* | \
1586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1589 # OSF1 and SCO ODT 3.0 have their own names for install.
1590 # Don't use installbsd from OSF since it installs stuff as root
1592 for ac_prog in ginstall scoinst install; do
1593 for ac_exec_ext in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1595 if test $ac_prog = install &&
1596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1597 # AIX install. It has an incompatible calling convention.
1599 elif test $ac_prog = install &&
1600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1601 # program-specific install script used by HP pwplus--don't use.
1604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1616 if test "${ac_cv_path_install+set}" = set; then
1617 INSTALL=$ac_cv_path_install
1619 # As a last resort, use the slow shell script. We don't cache a
1620 # path for INSTALL within a source directory, because that will
1621 # break other packages using the cache if that directory is
1622 # removed, or if the path is relative.
1623 INSTALL=$ac_install_sh
1626 echo "$as_me:$LINENO: result: $INSTALL" >&5
1627 echo "${ECHO_T}$INSTALL" >&6
1629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1630 # It thinks the first close brace ends the variable substitution.
1631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1635 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1637 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1638 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1639 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1640 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 cat >conftest.make <<\_ACEOF
1645 @echo 'ac_maketemp="${MAKE}"'
1647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1648 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1649 if test -n "$ac_maketemp"; then
1650 eval ac_cv_prog_make_${ac_make}_set=yes
1652 eval ac_cv_prog_make_${ac_make}_set=no
1656 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1657 echo "$as_me:$LINENO: result: yes" >&5
1658 echo "${ECHO_T}yes" >&6
1661 echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1663 SET_MAKE="MAKE=${MAKE-make}"
1666 if test -n "$ac_tool_prefix"; then
1667 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1668 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_RANLIB+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 if test -n "$RANLIB"; then
1675 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693 RANLIB=$ac_cv_prog_RANLIB
1694 if test -n "$RANLIB"; then
1695 echo "$as_me:$LINENO: result: $RANLIB" >&5
1696 echo "${ECHO_T}$RANLIB" >&6
1698 echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1703 if test -z "$ac_cv_prog_RANLIB"; then
1704 ac_ct_RANLIB=$RANLIB
1705 # Extract the first word of "ranlib", so it can be a program name with args.
1706 set dummy ranlib; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 if test -n "$ac_ct_RANLIB"; then
1713 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_ac_ct_RANLIB="ranlib"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1732 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1733 if test -n "$ac_ct_RANLIB"; then
1734 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1735 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1741 RANLIB=$ac_ct_RANLIB
1743 RANLIB="$ac_cv_prog_RANLIB"
1748 ac_cpp='$CPP $CPPFLAGS'
1749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1752 if test -n "$ac_tool_prefix"; then
1753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1754 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$CC"; then
1761 ac_cv_prog_CC="$CC" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 if test -n "$CC"; then
1781 echo "$as_me:$LINENO: result: $CC" >&5
1782 echo "${ECHO_T}$CC" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1789 if test -z "$ac_cv_prog_CC"; then
1791 # Extract the first word of "gcc", so it can be a program name with args.
1792 set dummy gcc; ac_word=$2
1793 echo "$as_me:$LINENO: checking for $ac_word" >&5
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 if test -n "$ac_ct_CC"; then
1799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 test -z "$as_dir" && as_dir=.
1806 for ac_exec_ext in '' $ac_executable_extensions; do
1807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808 ac_cv_prog_ac_ct_CC="gcc"
1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1818 if test -n "$ac_ct_CC"; then
1819 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1820 echo "${ECHO_T}$ac_ct_CC" >&6
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1831 if test -z "$CC"; then
1832 if test -n "$ac_tool_prefix"; then
1833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1834 set dummy ${ac_tool_prefix}cc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850 ac_cv_prog_CC="${ac_tool_prefix}cc"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 if test -n "$CC"; then
1861 echo "$as_me:$LINENO: result: $CC" >&5
1862 echo "${ECHO_T}$CC" >&6
1864 echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1869 if test -z "$ac_cv_prog_CC"; then
1871 # Extract the first word of "cc", so it can be a program name with args.
1872 set dummy cc; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test -n "$ac_ct_CC"; then
1879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 ac_cv_prog_ac_ct_CC="cc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1898 if test -n "$ac_ct_CC"; then
1899 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1900 echo "${ECHO_T}$ac_ct_CC" >&6
1902 echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1912 if test -z "$CC"; then
1913 # Extract the first word of "cc", so it can be a program name with args.
1914 set dummy cc; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$CC"; then
1921 ac_cv_prog_CC="$CC" # Let the user override the test.
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1932 ac_prog_rejected=yes
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 if test $ac_prog_rejected = yes; then
1943 # We found a bogon in the path, so make sure we never use it.
1944 set dummy $ac_cv_prog_CC
1946 if test $# != 0; then
1947 # We chose a different compiler from the bogus one.
1948 # However, it has the same basename, so the bogon will be chosen
1949 # first if we set CC to just the basename; use the full file name.
1951 set dummy "$as_dir/$ac_word" ${1+"$@"}
1959 if test -n "$CC"; then
1960 echo "$as_me:$LINENO: result: $CC" >&5
1961 echo "${ECHO_T}$CC" >&6
1963 echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1968 if test -z "$CC"; then
1969 if test -n "$ac_tool_prefix"; then
1972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 if test -n "$CC"; then
2000 echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2007 test -n "$CC" && break
2010 if test -z "$CC"; then
2014 # Extract the first word of "$ac_prog", so it can be a program name with args.
2015 set dummy $ac_prog; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test -n "$ac_ct_CC"; then
2022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031 ac_cv_prog_ac_ct_CC="$ac_prog"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2041 if test -n "$ac_ct_CC"; then
2042 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2043 echo "${ECHO_T}$ac_ct_CC" >&6
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2049 test -n "$ac_ct_CC" && break
2058 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2059 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2060 { (exit 1); exit 1; }; }
2062 # Provide some information about the compiler.
2063 echo "$as_me:$LINENO:" \
2064 "checking for C compiler version" >&5
2065 ac_compiler=`set X $ac_compile; echo $2`
2066 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2067 (eval $ac_compiler --version </dev/null >&5) 2>&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2072 (eval $ac_compiler -v </dev/null >&5) 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2076 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2077 (eval $ac_compiler -V </dev/null >&5) 2>&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2084 #include "confdefs.h"
2086 #ifdef F77_DUMMY_MAIN
2090 int F77_DUMMY_MAIN() { return 1; }
2100 ac_clean_files_save=$ac_clean_files
2101 ac_clean_files="$ac_clean_files a.out a.exe"
2102 # Try to create an executable without -o first, disregard a.out.
2103 # It will help us diagnose broken compilers, and finding out an intuition
2105 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2106 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2107 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2108 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2109 (eval $ac_link_default) 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; then
2113 # Find the output, starting from the most likely. This scheme is
2114 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2117 # Be careful to initialize this variable, since it used to be cached.
2118 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2120 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2121 ls a.out conftest 2>/dev/null;
2122 ls a.* conftest.* 2>/dev/null`; do
2124 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2125 a.out ) # We found the default executable, but exeext='' is most
2128 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2136 echo "$as_me: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2138 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2139 echo "$as_me: error: C compiler cannot create executables" >&2;}
2140 { (exit 77); exit 77; }; }
2143 ac_exeext=$ac_cv_exeext
2144 echo "$as_me:$LINENO: result: $ac_file" >&5
2145 echo "${ECHO_T}$ac_file" >&6
2147 # Check the compiler produces executables we can run. If not, either
2148 # the compiler is broken, or we cross compile.
2149 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2150 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2151 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2152 # If not cross compiling, check that we can run a simple program.
2153 if test "$cross_compiling" != yes; then
2154 if { ac_try='./$ac_file'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2162 if test "$cross_compiling" = maybe; then
2165 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2166 If you meant to cross compile, use \`--host'." >&5
2167 echo "$as_me: error: cannot run C compiled programs.
2168 If you meant to cross compile, use \`--host'." >&2;}
2169 { (exit 1); exit 1; }; }
2173 echo "$as_me:$LINENO: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6
2176 rm -f a.out a.exe conftest$ac_cv_exeext
2177 ac_clean_files=$ac_clean_files_save
2178 # Check the compiler produces executables we can run. If not, either
2179 # the compiler is broken, or we cross compile.
2180 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183 echo "${ECHO_T}$cross_compiling" >&6
2185 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188 (eval $ac_link) 2>&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
2192 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2194 # work properly (i.e., refer to `conftest.exe'), while it won't with
2196 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2198 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2199 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2207 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2208 { (exit 1); exit 1; }; }
2211 rm -f conftest$ac_cv_exeext
2212 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2213 echo "${ECHO_T}$ac_cv_exeext" >&6
2215 rm -f conftest.$ac_ext
2216 EXEEXT=$ac_cv_exeext
2218 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2219 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2220 if test "${ac_cv_objext+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 cat >conftest.$ac_ext <<_ACEOF
2224 #line $LINENO "configure"
2225 #include "confdefs.h"
2227 #ifdef F77_DUMMY_MAIN
2231 int F77_DUMMY_MAIN() { return 1; }
2241 rm -f conftest.o conftest.obj
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; then
2247 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2255 echo "$as_me: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2258 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2259 { (exit 1); exit 1; }; }
2262 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2264 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2265 echo "${ECHO_T}$ac_cv_objext" >&6
2266 OBJEXT=$ac_cv_objext
2268 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2269 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2270 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2275 #include "confdefs.h"
2277 #ifdef F77_DUMMY_MAIN
2281 int F77_DUMMY_MAIN() { return 1; }
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2308 echo "$as_me: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2316 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2317 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2318 GCC=`test $ac_compiler_gnu = yes && echo yes`
2319 ac_test_CFLAGS=${CFLAGS+set}
2320 ac_save_CFLAGS=$CFLAGS
2322 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2323 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2324 if test "${ac_cv_prog_cc_g+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.$ac_ext <<_ACEOF
2328 #line $LINENO "configure"
2329 #include "confdefs.h"
2331 #ifdef F77_DUMMY_MAIN
2335 int F77_DUMMY_MAIN() { return 1; }
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -s conftest.$ac_objext'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; }; then
2359 echo "$as_me: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2363 rm -f conftest.$ac_objext conftest.$ac_ext
2365 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2366 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2367 if test "$ac_test_CFLAGS" = set; then
2368 CFLAGS=$ac_save_CFLAGS
2369 elif test $ac_cv_prog_cc_g = yes; then
2370 if test "$GCC" = yes; then
2376 if test "$GCC" = yes; then
2382 # Some people use a C++ compiler to compile C. Since we use `exit',
2383 # in C++ we need to declare it. In case someone uses the same compiler
2384 # for both compiling C and C++ we need to have the C++ compiler decide
2385 # the declaration of exit, since it's the most demanding environment.
2386 cat >conftest.$ac_ext <<_ACEOF
2391 rm -f conftest.$ac_objext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2393 (eval $ac_compile) 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2403 for ac_declaration in \
2405 '#include <stdlib.h>' \
2406 'extern "C" void std::exit (int) throw (); using std::exit;' \
2407 'extern "C" void std::exit (int); using std::exit;' \
2408 'extern "C" void exit (int) throw ();' \
2409 'extern "C" void exit (int);' \
2412 cat >conftest.$ac_ext <<_ACEOF
2413 #line $LINENO "configure"
2414 #include "confdefs.h"
2417 #ifdef F77_DUMMY_MAIN
2421 int F77_DUMMY_MAIN() { return 1; }
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2445 echo "$as_me: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2449 rm -f conftest.$ac_objext conftest.$ac_ext
2450 cat >conftest.$ac_ext <<_ACEOF
2451 #line $LINENO "configure"
2452 #include "confdefs.h"
2454 #ifdef F77_DUMMY_MAIN
2458 int F77_DUMMY_MAIN() { return 1; }
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2482 echo "$as_me: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 rm -f conftest.$ac_objext conftest.$ac_ext
2488 if test -n "$ac_declaration"; then
2489 echo '#ifdef __cplusplus' >>confdefs.h
2490 echo $ac_declaration >>confdefs.h
2491 echo '#endif' >>confdefs.h
2495 echo "$as_me: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 rm -f conftest.$ac_objext conftest.$ac_ext
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506 ac_cpp='$CXXCPP $CPPFLAGS'
2507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2510 if test -n "$ac_tool_prefix"; then
2511 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2515 echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517 if test "${ac_cv_prog_CXX+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$CXX"; then
2521 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 if test -n "$CXX"; then
2541 echo "$as_me:$LINENO: result: $CXX" >&5
2542 echo "${ECHO_T}$CXX" >&6
2544 echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6
2548 test -n "$CXX" && break
2551 if test -z "$CXX"; then
2553 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2555 # Extract the first word of "$ac_prog", so it can be a program name with args.
2556 set dummy $ac_prog; ac_word=$2
2557 echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2559 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 if test -n "$ac_ct_CXX"; then
2563 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572 ac_cv_prog_ac_ct_CXX="$ac_prog"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2582 if test -n "$ac_ct_CXX"; then
2583 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2584 echo "${ECHO_T}$ac_ct_CXX" >&6
2586 echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6
2590 test -n "$ac_ct_CXX" && break
2592 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2598 # Provide some information about the compiler.
2599 echo "$as_me:$LINENO:" \
2600 "checking for C++ compiler version" >&5
2601 ac_compiler=`set X $ac_compile; echo $2`
2602 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2603 (eval $ac_compiler --version </dev/null >&5) 2>&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }
2607 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2608 (eval $ac_compiler -v </dev/null >&5) 2>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2612 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2613 (eval $ac_compiler -V </dev/null >&5) 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2618 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2619 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2620 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 cat >conftest.$ac_ext <<_ACEOF
2624 #line $LINENO "configure"
2625 #include "confdefs.h"
2627 #ifdef F77_DUMMY_MAIN
2631 int F77_DUMMY_MAIN() { return 1; }
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2658 echo "$as_me: failed program was:" >&5
2659 cat conftest.$ac_ext >&5
2662 rm -f conftest.$ac_objext conftest.$ac_ext
2663 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2666 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2667 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2668 GXX=`test $ac_compiler_gnu = yes && echo yes`
2669 ac_test_CXXFLAGS=${CXXFLAGS+set}
2670 ac_save_CXXFLAGS=$CXXFLAGS
2672 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2673 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2674 if test "${ac_cv_prog_cxx_g+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2679 #include "confdefs.h"
2681 #ifdef F77_DUMMY_MAIN
2685 int F77_DUMMY_MAIN() { return 1; }
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 ac_cv_prog_cxx_g=yes
2709 echo "$as_me: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2713 rm -f conftest.$ac_objext conftest.$ac_ext
2715 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2716 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2717 if test "$ac_test_CXXFLAGS" = set; then
2718 CXXFLAGS=$ac_save_CXXFLAGS
2719 elif test $ac_cv_prog_cxx_g = yes; then
2720 if test "$GXX" = yes; then
2726 if test "$GXX" = yes; then
2732 for ac_declaration in \
2734 '#include <stdlib.h>' \
2735 'extern "C" void std::exit (int) throw (); using std::exit;' \
2736 'extern "C" void std::exit (int); using std::exit;' \
2737 'extern "C" void exit (int) throw ();' \
2738 'extern "C" void exit (int);' \
2741 cat >conftest.$ac_ext <<_ACEOF
2742 #line $LINENO "configure"
2743 #include "confdefs.h"
2746 #ifdef F77_DUMMY_MAIN
2750 int F77_DUMMY_MAIN() { return 1; }
2760 rm -f conftest.$ac_objext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2774 echo "$as_me: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2778 rm -f conftest.$ac_objext conftest.$ac_ext
2779 cat >conftest.$ac_ext <<_ACEOF
2780 #line $LINENO "configure"
2781 #include "confdefs.h"
2783 #ifdef F77_DUMMY_MAIN
2787 int F77_DUMMY_MAIN() { return 1; }
2797 rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799 (eval $ac_compile) 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2811 echo "$as_me: failed program was:" >&5
2812 cat conftest.$ac_ext >&5
2814 rm -f conftest.$ac_objext conftest.$ac_ext
2817 if test -n "$ac_declaration"; then
2818 echo '#ifdef __cplusplus' >>confdefs.h
2819 echo $ac_declaration >>confdefs.h
2820 echo '#endif' >>confdefs.h
2824 ac_cpp='$CPP $CPPFLAGS'
2825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2831 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2832 if test "${ac_cv_c_bigendian+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 # See if sys/param.h defines the BYTE_ORDER macro.
2836 cat >conftest.$ac_ext <<_ACEOF
2837 #line $LINENO "configure"
2838 #include "confdefs.h"
2839 #include <sys/types.h>
2840 #include <sys/param.h>
2842 #ifdef F77_DUMMY_MAIN
2846 int F77_DUMMY_MAIN() { return 1; }
2851 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try='test -s conftest.$ac_objext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 # It does; now see whether it defined to BIG_ENDIAN or not.
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line $LINENO "configure"
2874 #include "confdefs.h"
2875 #include <sys/types.h>
2876 #include <sys/param.h>
2878 #ifdef F77_DUMMY_MAIN
2882 int F77_DUMMY_MAIN() { return 1; }
2887 #if BYTE_ORDER != BIG_ENDIAN
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897 (eval $ac_compile) 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } &&
2901 { ac_try='test -s conftest.$ac_objext'
2902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; }; then
2907 ac_cv_c_bigendian=yes
2909 echo "$as_me: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2911 ac_cv_c_bigendian=no
2913 rm -f conftest.$ac_objext conftest.$ac_ext
2915 echo "$as_me: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2917 # It does not; compile a test program.
2918 if test "$cross_compiling" = yes; then
2919 # try to guess the endianess by grep'ing values into an object file
2920 ac_cv_c_bigendian=unknown
2921 cat >conftest.$ac_ext <<_ACEOF
2922 #line $LINENO "configure"
2923 #include "confdefs.h"
2924 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2925 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2926 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2927 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2928 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2929 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2930 #ifdef F77_DUMMY_MAIN
2934 int F77_DUMMY_MAIN() { return 1; }
2939 _ascii (); _ebcdic ();
2944 rm -f conftest.$ac_objext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2946 (eval $ac_compile) 2>&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2957 ac_cv_c_bigendian=yes
2959 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2960 if test "$ac_cv_c_bigendian" = unknown; then
2961 ac_cv_c_bigendian=no
2963 # finding both strings is unlikely to happen, but who knows?
2964 ac_cv_c_bigendian=unknown
2968 echo "$as_me: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2971 rm -f conftest.$ac_objext conftest.$ac_ext
2973 cat >conftest.$ac_ext <<_ACEOF
2974 #line $LINENO "configure"
2975 #include "confdefs.h"
2979 /* Are we little or big endian? From Harbison&Steele. */
2983 char c[sizeof (long)];
2986 exit (u.c[sizeof (long) - 1] == 1);
2989 rm -f conftest$ac_exeext
2990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2991 (eval $ac_link) 2>&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 ac_cv_c_bigendian=no
3002 echo "$as_me: program exited with status $ac_status" >&5
3003 echo "$as_me: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 ac_cv_c_bigendian=yes
3008 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3011 rm -f conftest.$ac_objext conftest.$ac_ext
3013 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3014 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3015 case $ac_cv_c_bigendian in
3018 cat >>confdefs.h <<\_ACEOF
3019 #define WORDS_BIGENDIAN 1
3025 { { echo "$as_me:$LINENO: error: unknown endianess
3026 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3027 echo "$as_me: error: unknown endianess
3028 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3029 { (exit 1); exit 1; }; } ;;
3033 # Extract the first word of "wx-config", so it can be a program name with args.
3034 set dummy wx-config; ac_word=$2
3035 echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037 if test "${ac_cv_path_wxconfig+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 wxconfig=$ac_cv_path_wxconfig
3064 if test -n "$wxconfig"; then
3065 echo "$as_me:$LINENO: result: $wxconfig" >&5
3066 echo "${ECHO_T}$wxconfig" >&6
3068 echo "$as_me:$LINENO: result: no" >&5
3069 echo "${ECHO_T}no" >&6
3073 # Make sure we can run config.sub.
3074 $ac_config_sub sun4 >/dev/null 2>&1 ||
3075 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3076 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3077 { (exit 1); exit 1; }; }
3079 echo "$as_me:$LINENO: checking build system type" >&5
3080 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3081 if test "${ac_cv_build+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 ac_cv_build_alias=$build_alias
3085 test -z "$ac_cv_build_alias" &&
3086 ac_cv_build_alias=`$ac_config_guess`
3087 test -z "$ac_cv_build_alias" &&
3088 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3089 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3090 { (exit 1); exit 1; }; }
3091 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3092 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3093 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3094 { (exit 1); exit 1; }; }
3097 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3098 echo "${ECHO_T}$ac_cv_build" >&6
3100 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3101 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3102 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3105 echo "$as_me:$LINENO: checking host system type" >&5
3106 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3107 if test "${ac_cv_host+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 ac_cv_host_alias=$host_alias
3111 test -z "$ac_cv_host_alias" &&
3112 ac_cv_host_alias=$ac_cv_build_alias
3113 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3114 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3115 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3116 { (exit 1); exit 1; }; }
3119 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3120 echo "${ECHO_T}$ac_cv_host" >&6
3122 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3123 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3124 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3127 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3128 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3129 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 ac_cv_prog_cc_stdc=no
3134 cat >conftest.$ac_ext <<_ACEOF
3135 #line $LINENO "configure"
3136 #include "confdefs.h"
3139 #include <sys/types.h>
3140 #include <sys/stat.h>
3141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3142 struct buf { int x; };
3143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3144 static char *e (p, i)
3150 static char *f (char * (*g) (char **, int), char **p, ...)
3155 s = g (p, va_arg (v,int));
3159 int test (int i, double x);
3160 struct s1 {int (*f) (int a);};
3161 struct s2 {int (*f) (double a);};
3162 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3165 #ifdef F77_DUMMY_MAIN
3169 int F77_DUMMY_MAIN() { return 1; }
3174 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3179 # Don't try gcc -ansi; that turns off useful extensions and
3180 # breaks some systems' header files.
3181 # AIX -qlanglvl=ansi
3182 # Ultrix and OSF/1 -std1
3183 # HP-UX 10.20 and later -Ae
3184 # HP-UX older versions -Aa -D_HPUX_SOURCE
3185 # SVR4 -Xc -D__EXTENSIONS__
3186 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3188 CC="$ac_save_CC $ac_arg"
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 ac_cv_prog_cc_stdc=$ac_arg
3204 echo "$as_me: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3207 rm -f conftest.$ac_objext
3209 rm -f conftest.$ac_ext conftest.$ac_objext
3214 case "x$ac_cv_prog_cc_stdc" in
3216 echo "$as_me:$LINENO: result: none needed" >&5
3217 echo "${ECHO_T}none needed" >&6 ;;
3219 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3220 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3221 CC="$CC $ac_cv_prog_cc_stdc" ;;
3224 echo "$as_me:$LINENO: checking for inline" >&5
3225 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3226 if test "${ac_cv_c_inline+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 for ac_kw in inline __inline__ __inline; do
3231 cat >conftest.$ac_ext <<_ACEOF
3232 #line $LINENO "configure"
3233 #include "confdefs.h"
3235 static $ac_kw int static_foo () {return 0; }
3236 $ac_kw int foo () {return 0; }
3240 rm -f conftest.$ac_objext
3241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3242 (eval $ac_compile) 2>&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try='test -s conftest.$ac_objext'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; }; then
3252 ac_cv_c_inline=$ac_kw; break
3254 echo "$as_me: failed program was:" >&5
3255 cat conftest.$ac_ext >&5
3257 rm -f conftest.$ac_objext conftest.$ac_ext
3261 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3262 echo "${ECHO_T}$ac_cv_c_inline" >&6
3263 case $ac_cv_c_inline in
3266 cat >>confdefs.h <<\_ACEOF
3270 *) cat >>confdefs.h <<_ACEOF
3271 #define inline $ac_cv_c_inline
3277 ac_cpp='$CPP $CPPFLAGS'
3278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3282 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3283 # On Suns, sometimes $CPP names a directory.
3284 if test -n "$CPP" && test -d "$CPP"; then
3287 if test -z "$CPP"; then
3288 if test "${ac_cv_prog_CPP+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 # Double quotes because CPP needs to be expanded
3292 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3295 for ac_c_preproc_warn_flag in '' yes
3297 # Use a header file that comes with gcc, so configuring glibc
3298 # with a fresh cross-compiler works.
3299 # On the NeXT, cc -E runs the code through the compiler's parser,
3300 # not just through cpp. "Syntax error" is here to catch this case.
3301 cat >conftest.$ac_ext <<_ACEOF
3302 #line $LINENO "configure"
3303 #include "confdefs.h"
3307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310 egrep -v '^ *\+' conftest.er1 >conftest.err
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } >/dev/null; then
3315 if test -s conftest.err; then
3316 ac_cpp_err=$ac_c_preproc_warn_flag
3323 if test -z "$ac_cpp_err"; then
3326 echo "$as_me: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3328 # Broken: fails on valid input.
3331 rm -f conftest.err conftest.$ac_ext
3333 # OK, works on sane cases. Now check whether non-existent headers
3334 # can be detected and how.
3335 cat >conftest.$ac_ext <<_ACEOF
3336 #line $LINENO "configure"
3337 #include "confdefs.h"
3338 #include <ac_nonexistent.h>
3340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3343 egrep -v '^ *\+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null; then
3348 if test -s conftest.err; then
3349 ac_cpp_err=$ac_c_preproc_warn_flag
3356 if test -z "$ac_cpp_err"; then
3357 # Broken: success on invalid input.
3360 echo "$as_me: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3362 # Passes both tests.
3366 rm -f conftest.err conftest.$ac_ext
3369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3370 rm -f conftest.err conftest.$ac_ext
3371 if $ac_preproc_ok; then
3383 echo "$as_me:$LINENO: result: $CPP" >&5
3384 echo "${ECHO_T}$CPP" >&6
3386 for ac_c_preproc_warn_flag in '' yes
3388 # Use a header file that comes with gcc, so configuring glibc
3389 # with a fresh cross-compiler works.
3390 # On the NeXT, cc -E runs the code through the compiler's parser,
3391 # not just through cpp. "Syntax error" is here to catch this case.
3392 cat >conftest.$ac_ext <<_ACEOF
3393 #line $LINENO "configure"
3394 #include "confdefs.h"
3398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3401 egrep -v '^ *\+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3414 if test -z "$ac_cpp_err"; then
3417 echo "$as_me: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3419 # Broken: fails on valid input.
3422 rm -f conftest.err conftest.$ac_ext
3424 # OK, works on sane cases. Now check whether non-existent headers
3425 # can be detected and how.
3426 cat >conftest.$ac_ext <<_ACEOF
3427 #line $LINENO "configure"
3428 #include "confdefs.h"
3429 #include <ac_nonexistent.h>
3431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3434 egrep -v '^ *\+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3447 if test -z "$ac_cpp_err"; then
3448 # Broken: success on invalid input.
3451 echo "$as_me: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3453 # Passes both tests.
3457 rm -f conftest.err conftest.$ac_ext
3460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461 rm -f conftest.err conftest.$ac_ext
3462 if $ac_preproc_ok; then
3465 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3466 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3467 { (exit 1); exit 1; }; }
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3478 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3479 if test "${ac_cv_header_stdc+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 cat >conftest.$ac_ext <<_ACEOF
3483 #line $LINENO "configure"
3484 #include "confdefs.h"
3491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3494 egrep -v '^ *\+' conftest.er1 >conftest.err
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } >/dev/null; then
3499 if test -s conftest.err; then
3500 ac_cpp_err=$ac_c_preproc_warn_flag
3507 if test -z "$ac_cpp_err"; then
3508 ac_cv_header_stdc=yes
3510 echo "$as_me: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3512 ac_cv_header_stdc=no
3514 rm -f conftest.err conftest.$ac_ext
3516 if test $ac_cv_header_stdc = yes; then
3517 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 #line $LINENO "configure"
3520 #include "confdefs.h"
3524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3525 egrep "memchr" >/dev/null 2>&1; then
3528 ac_cv_header_stdc=no
3534 if test $ac_cv_header_stdc = yes; then
3535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3536 cat >conftest.$ac_ext <<_ACEOF
3537 #line $LINENO "configure"
3538 #include "confdefs.h"
3542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3543 egrep "free" >/dev/null 2>&1; then
3546 ac_cv_header_stdc=no
3552 if test $ac_cv_header_stdc = yes; then
3553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3554 if test "$cross_compiling" = yes; then
3557 cat >conftest.$ac_ext <<_ACEOF
3558 #line $LINENO "configure"
3559 #include "confdefs.h"
3561 #if ((' ' & 0x0FF) == 0x020)
3562 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3563 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3565 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3566 || ('j' <= (c) && (c) <= 'r') \
3567 || ('s' <= (c) && (c) <= 'z'))
3568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3576 for (i = 0; i < 256; i++)
3577 if (XOR (islower (i), ISLOWER (i))
3578 || toupper (i) != TOUPPER (i))
3583 rm -f conftest$ac_exeext
3584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3585 (eval $ac_link) 2>&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3596 echo "$as_me: program exited with status $ac_status" >&5
3597 echo "$as_me: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3600 ac_cv_header_stdc=no
3602 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3606 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3607 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3608 if test $ac_cv_header_stdc = yes; then
3610 cat >>confdefs.h <<\_ACEOF
3611 #define STDC_HEADERS 1
3616 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3626 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3627 inttypes.h stdint.h unistd.h
3629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3630 echo "$as_me:$LINENO: checking for $ac_header" >&5
3631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 cat >conftest.$ac_ext <<_ACEOF
3636 #line $LINENO "configure"
3637 #include "confdefs.h"
3638 $ac_includes_default
3640 #include <$ac_header>
3642 rm -f conftest.$ac_objext
3643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644 (eval $ac_compile) 2>&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } &&
3648 { ac_try='test -s conftest.$ac_objext'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; }; then
3654 eval "$as_ac_Header=yes"
3656 echo "$as_me: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658 eval "$as_ac_Header=no"
3660 rm -f conftest.$ac_objext conftest.$ac_ext
3662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3665 cat >>confdefs.h <<_ACEOF
3666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3674 echo "$as_me:$LINENO: checking for short" >&5
3675 echo $ECHO_N "checking for short... $ECHO_C" >&6
3676 if test "${ac_cv_type_short+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 cat >conftest.$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3681 #include "confdefs.h"
3682 $ac_includes_default
3683 #ifdef F77_DUMMY_MAIN
3687 int F77_DUMMY_MAIN() { return 1; }
3700 rm -f conftest.$ac_objext
3701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702 (eval $ac_compile) 2>&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } &&
3706 { ac_try='test -s conftest.$ac_objext'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3712 ac_cv_type_short=yes
3714 echo "$as_me: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3718 rm -f conftest.$ac_objext conftest.$ac_ext
3720 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3721 echo "${ECHO_T}$ac_cv_type_short" >&6
3723 echo "$as_me:$LINENO: checking size of short" >&5
3724 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3725 if test "${ac_cv_sizeof_short+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 if test "$ac_cv_type_short" = yes; then
3729 # The cast to unsigned long works around a bug in the HP C Compiler
3730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3732 # This bug is HP SR number 8606223364.
3733 if test "$cross_compiling" = yes; then
3734 # Depending upon the size, compute the lo and hi bounds.
3735 cat >conftest.$ac_ext <<_ACEOF
3736 #line $LINENO "configure"
3737 #include "confdefs.h"
3738 $ac_includes_default
3739 #ifdef F77_DUMMY_MAIN
3743 int F77_DUMMY_MAIN() { return 1; }
3748 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3755 rm -f conftest.$ac_objext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3757 (eval $ac_compile) 2>&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } &&
3761 { ac_try='test -s conftest.$ac_objext'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3769 cat >conftest.$ac_ext <<_ACEOF
3770 #line $LINENO "configure"
3771 #include "confdefs.h"
3772 $ac_includes_default
3773 #ifdef F77_DUMMY_MAIN
3777 int F77_DUMMY_MAIN() { return 1; }
3782 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3789 rm -f conftest.$ac_objext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791 (eval $ac_compile) 2>&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -s conftest.$ac_objext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 ac_hi=$ac_mid; break
3803 echo "$as_me: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3805 ac_lo=`expr $ac_mid + 1`
3806 if test $ac_lo -le $ac_mid; then
3810 ac_mid=`expr 2 '*' $ac_mid + 1`
3812 rm -f conftest.$ac_objext conftest.$ac_ext
3815 echo "$as_me: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3817 cat >conftest.$ac_ext <<_ACEOF
3818 #line $LINENO "configure"
3819 #include "confdefs.h"
3820 $ac_includes_default
3821 #ifdef F77_DUMMY_MAIN
3825 int F77_DUMMY_MAIN() { return 1; }
3830 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3837 rm -f conftest.$ac_objext
3838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3839 (eval $ac_compile) 2>&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } &&
3843 { ac_try='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3851 cat >conftest.$ac_ext <<_ACEOF
3852 #line $LINENO "configure"
3853 #include "confdefs.h"
3854 $ac_includes_default
3855 #ifdef F77_DUMMY_MAIN
3859 int F77_DUMMY_MAIN() { return 1; }
3864 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3871 rm -f conftest.$ac_objext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_lo=$ac_mid; break
3885 echo "$as_me: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 ac_hi=`expr '(' $ac_mid ')' - 1`
3888 if test $ac_mid -le $ac_hi; then
3892 ac_mid=`expr 2 '*' $ac_mid`
3894 rm -f conftest.$ac_objext conftest.$ac_ext
3897 echo "$as_me: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3901 rm -f conftest.$ac_objext conftest.$ac_ext
3903 rm -f conftest.$ac_objext conftest.$ac_ext
3904 # Binary search between lo and hi bounds.
3905 while test "x$ac_lo" != "x$ac_hi"; do
3906 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3907 cat >conftest.$ac_ext <<_ACEOF
3908 #line $LINENO "configure"
3909 #include "confdefs.h"
3910 $ac_includes_default
3911 #ifdef F77_DUMMY_MAIN
3915 int F77_DUMMY_MAIN() { return 1; }
3920 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3927 rm -f conftest.$ac_objext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3941 echo "$as_me: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3943 ac_lo=`expr '(' $ac_mid ')' + 1`
3945 rm -f conftest.$ac_objext conftest.$ac_ext
3948 ?*) ac_cv_sizeof_short=$ac_lo;;
3949 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
3950 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
3951 { (exit 1); exit 1; }; } ;;
3954 if test "$cross_compiling" = yes; then
3955 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3956 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3957 { (exit 1); exit 1; }; }
3959 cat >conftest.$ac_ext <<_ACEOF
3960 #line $LINENO "configure"
3961 #include "confdefs.h"
3962 $ac_includes_default
3963 long longval () { return (long) (sizeof (short)); }
3964 unsigned long ulongval () { return (long) (sizeof (short)); }
3967 #ifdef F77_DUMMY_MAIN
3971 int F77_DUMMY_MAIN() { return 1; }
3977 FILE *f = fopen ("conftest.val", "w");
3980 if (((long) (sizeof (short))) < 0)
3982 long i = longval ();
3983 if (i != ((long) (sizeof (short))))
3985 fprintf (f, "%ld\n", i);
3989 unsigned long i = ulongval ();
3990 if (i != ((long) (sizeof (short))))
3992 fprintf (f, "%lu\n", i);
3994 exit (ferror (f) || fclose (f) != 0);
4000 rm -f conftest$ac_exeext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002 (eval $ac_link) 2>&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_sizeof_short=`cat conftest.val`
4013 echo "$as_me: program exited with status $ac_status" >&5
4014 echo "$as_me: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4017 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4018 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4019 { (exit 1); exit 1; }; }
4021 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4026 ac_cv_sizeof_short=0
4029 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4030 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4031 cat >>confdefs.h <<_ACEOF
4032 #define SIZEOF_SHORT $ac_cv_sizeof_short
4036 echo "$as_me:$LINENO: checking for int" >&5
4037 echo $ECHO_N "checking for int... $ECHO_C" >&6
4038 if test "${ac_cv_type_int+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 cat >conftest.$ac_ext <<_ACEOF
4042 #line $LINENO "configure"
4043 #include "confdefs.h"
4044 $ac_includes_default
4045 #ifdef F77_DUMMY_MAIN
4049 int F77_DUMMY_MAIN() { return 1; }
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4076 echo "$as_me: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4080 rm -f conftest.$ac_objext conftest.$ac_ext
4082 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4083 echo "${ECHO_T}$ac_cv_type_int" >&6
4085 echo "$as_me:$LINENO: checking size of int" >&5
4086 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4087 if test "${ac_cv_sizeof_int+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 if test "$ac_cv_type_int" = yes; then
4091 # The cast to unsigned long works around a bug in the HP C Compiler
4092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4094 # This bug is HP SR number 8606223364.
4095 if test "$cross_compiling" = yes; then
4096 # Depending upon the size, compute the lo and hi bounds.
4097 cat >conftest.$ac_ext <<_ACEOF
4098 #line $LINENO "configure"
4099 #include "confdefs.h"
4100 $ac_includes_default
4101 #ifdef F77_DUMMY_MAIN
4105 int F77_DUMMY_MAIN() { return 1; }
4110 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4117 rm -f conftest.$ac_objext
4118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4119 (eval $ac_compile) 2>&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4131 cat >conftest.$ac_ext <<_ACEOF
4132 #line $LINENO "configure"
4133 #include "confdefs.h"
4134 $ac_includes_default
4135 #ifdef F77_DUMMY_MAIN
4139 int F77_DUMMY_MAIN() { return 1; }
4144 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4151 rm -f conftest.$ac_objext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153 (eval $ac_compile) 2>&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 ac_hi=$ac_mid; break
4165 echo "$as_me: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4167 ac_lo=`expr $ac_mid + 1`
4168 if test $ac_lo -le $ac_mid; then
4172 ac_mid=`expr 2 '*' $ac_mid + 1`
4174 rm -f conftest.$ac_objext conftest.$ac_ext
4177 echo "$as_me: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4179 cat >conftest.$ac_ext <<_ACEOF
4180 #line $LINENO "configure"
4181 #include "confdefs.h"
4182 $ac_includes_default
4183 #ifdef F77_DUMMY_MAIN
4187 int F77_DUMMY_MAIN() { return 1; }
4192 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4199 rm -f conftest.$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } &&
4205 { ac_try='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4213 cat >conftest.$ac_ext <<_ACEOF
4214 #line $LINENO "configure"
4215 #include "confdefs.h"
4216 $ac_includes_default
4217 #ifdef F77_DUMMY_MAIN
4221 int F77_DUMMY_MAIN() { return 1; }
4226 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4233 rm -f conftest.$ac_objext
4234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -s conftest.$ac_objext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_lo=$ac_mid; break
4247 echo "$as_me: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4249 ac_hi=`expr '(' $ac_mid ')' - 1`
4250 if test $ac_mid -le $ac_hi; then
4254 ac_mid=`expr 2 '*' $ac_mid`
4256 rm -f conftest.$ac_objext conftest.$ac_ext
4259 echo "$as_me: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4263 rm -f conftest.$ac_objext conftest.$ac_ext
4265 rm -f conftest.$ac_objext conftest.$ac_ext
4266 # Binary search between lo and hi bounds.
4267 while test "x$ac_lo" != "x$ac_hi"; do
4268 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4269 cat >conftest.$ac_ext <<_ACEOF
4270 #line $LINENO "configure"
4271 #include "confdefs.h"
4272 $ac_includes_default
4273 #ifdef F77_DUMMY_MAIN
4277 int F77_DUMMY_MAIN() { return 1; }
4282 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4303 echo "$as_me: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4305 ac_lo=`expr '(' $ac_mid ')' + 1`
4307 rm -f conftest.$ac_objext conftest.$ac_ext
4310 ?*) ac_cv_sizeof_int=$ac_lo;;
4311 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4312 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4313 { (exit 1); exit 1; }; } ;;
4316 if test "$cross_compiling" = yes; then
4317 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4318 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4319 { (exit 1); exit 1; }; }
4321 cat >conftest.$ac_ext <<_ACEOF
4322 #line $LINENO "configure"
4323 #include "confdefs.h"
4324 $ac_includes_default
4325 long longval () { return (long) (sizeof (int)); }
4326 unsigned long ulongval () { return (long) (sizeof (int)); }
4329 #ifdef F77_DUMMY_MAIN
4333 int F77_DUMMY_MAIN() { return 1; }
4339 FILE *f = fopen ("conftest.val", "w");
4342 if (((long) (sizeof (int))) < 0)
4344 long i = longval ();
4345 if (i != ((long) (sizeof (int))))
4347 fprintf (f, "%ld\n", i);
4351 unsigned long i = ulongval ();
4352 if (i != ((long) (sizeof (int))))
4354 fprintf (f, "%lu\n", i);
4356 exit (ferror (f) || fclose (f) != 0);
4362 rm -f conftest$ac_exeext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364 (eval $ac_link) 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 ac_cv_sizeof_int=`cat conftest.val`
4375 echo "$as_me: program exited with status $ac_status" >&5
4376 echo "$as_me: failed program was:" >&5
4377 cat conftest.$ac_ext >&5
4379 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4380 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4381 { (exit 1); exit 1; }; }
4383 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4392 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4393 cat >>confdefs.h <<_ACEOF
4394 #define SIZEOF_INT $ac_cv_sizeof_int
4398 echo "$as_me:$LINENO: checking for long" >&5
4399 echo $ECHO_N "checking for long... $ECHO_C" >&6
4400 if test "${ac_cv_type_long+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 cat >conftest.$ac_ext <<_ACEOF
4404 #line $LINENO "configure"
4405 #include "confdefs.h"
4406 $ac_includes_default
4407 #ifdef F77_DUMMY_MAIN
4411 int F77_DUMMY_MAIN() { return 1; }
4424 rm -f conftest.$ac_objext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4426 (eval $ac_compile) 2>&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -s conftest.$ac_objext'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4438 echo "$as_me: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4442 rm -f conftest.$ac_objext conftest.$ac_ext
4444 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4445 echo "${ECHO_T}$ac_cv_type_long" >&6
4447 echo "$as_me:$LINENO: checking size of long" >&5
4448 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4449 if test "${ac_cv_sizeof_long+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 if test "$ac_cv_type_long" = yes; then
4453 # The cast to unsigned long works around a bug in the HP C Compiler
4454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4456 # This bug is HP SR number 8606223364.
4457 if test "$cross_compiling" = yes; then
4458 # Depending upon the size, compute the lo and hi bounds.
4459 cat >conftest.$ac_ext <<_ACEOF
4460 #line $LINENO "configure"
4461 #include "confdefs.h"
4462 $ac_includes_default
4463 #ifdef F77_DUMMY_MAIN
4467 int F77_DUMMY_MAIN() { return 1; }
4472 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4479 rm -f conftest.$ac_objext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481 (eval $ac_compile) 2>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try='test -s conftest.$ac_objext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4493 cat >conftest.$ac_ext <<_ACEOF
4494 #line $LINENO "configure"
4495 #include "confdefs.h"
4496 $ac_includes_default
4497 #ifdef F77_DUMMY_MAIN
4501 int F77_DUMMY_MAIN() { return 1; }
4506 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4513 rm -f conftest.$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515 (eval $ac_compile) 2>&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } &&
4519 { ac_try='test -s conftest.$ac_objext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4525 ac_hi=$ac_mid; break
4527 echo "$as_me: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4529 ac_lo=`expr $ac_mid + 1`
4530 if test $ac_lo -le $ac_mid; then
4534 ac_mid=`expr 2 '*' $ac_mid + 1`
4536 rm -f conftest.$ac_objext conftest.$ac_ext
4539 echo "$as_me: failed program was:" >&5
4540 cat conftest.$ac_ext >&5
4541 cat >conftest.$ac_ext <<_ACEOF
4542 #line $LINENO "configure"
4543 #include "confdefs.h"
4544 $ac_includes_default
4545 #ifdef F77_DUMMY_MAIN
4549 int F77_DUMMY_MAIN() { return 1; }
4554 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4561 rm -f conftest.$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4575 cat >conftest.$ac_ext <<_ACEOF
4576 #line $LINENO "configure"
4577 #include "confdefs.h"
4578 $ac_includes_default
4579 #ifdef F77_DUMMY_MAIN
4583 int F77_DUMMY_MAIN() { return 1; }
4588 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4595 rm -f conftest.$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_lo=$ac_mid; break
4609 echo "$as_me: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4611 ac_hi=`expr '(' $ac_mid ')' - 1`
4612 if test $ac_mid -le $ac_hi; then
4616 ac_mid=`expr 2 '*' $ac_mid`
4618 rm -f conftest.$ac_objext conftest.$ac_ext
4621 echo "$as_me: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4625 rm -f conftest.$ac_objext conftest.$ac_ext
4627 rm -f conftest.$ac_objext conftest.$ac_ext
4628 # Binary search between lo and hi bounds.
4629 while test "x$ac_lo" != "x$ac_hi"; do
4630 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4631 cat >conftest.$ac_ext <<_ACEOF
4632 #line $LINENO "configure"
4633 #include "confdefs.h"
4634 $ac_includes_default
4635 #ifdef F77_DUMMY_MAIN
4639 int F77_DUMMY_MAIN() { return 1; }
4644 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4651 rm -f conftest.$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } &&
4657 { ac_try='test -s conftest.$ac_objext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4665 echo "$as_me: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4667 ac_lo=`expr '(' $ac_mid ')' + 1`
4669 rm -f conftest.$ac_objext conftest.$ac_ext
4672 ?*) ac_cv_sizeof_long=$ac_lo;;
4673 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4674 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4675 { (exit 1); exit 1; }; } ;;
4678 if test "$cross_compiling" = yes; then
4679 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4680 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4681 { (exit 1); exit 1; }; }
4683 cat >conftest.$ac_ext <<_ACEOF
4684 #line $LINENO "configure"
4685 #include "confdefs.h"
4686 $ac_includes_default
4687 long longval () { return (long) (sizeof (long)); }
4688 unsigned long ulongval () { return (long) (sizeof (long)); }
4691 #ifdef F77_DUMMY_MAIN
4695 int F77_DUMMY_MAIN() { return 1; }
4701 FILE *f = fopen ("conftest.val", "w");
4704 if (((long) (sizeof (long))) < 0)
4706 long i = longval ();
4707 if (i != ((long) (sizeof (long))))
4709 fprintf (f, "%ld\n", i);
4713 unsigned long i = ulongval ();
4714 if (i != ((long) (sizeof (long))))
4716 fprintf (f, "%lu\n", i);
4718 exit (ferror (f) || fclose (f) != 0);
4724 rm -f conftest$ac_exeext
4725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4726 (eval $ac_link) 2>&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 ac_cv_sizeof_long=`cat conftest.val`
4737 echo "$as_me: program exited with status $ac_status" >&5
4738 echo "$as_me: failed program was:" >&5
4739 cat conftest.$ac_ext >&5
4741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4742 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4743 { (exit 1); exit 1; }; }
4745 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4753 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4754 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4755 cat >>confdefs.h <<_ACEOF
4756 #define SIZEOF_LONG $ac_cv_sizeof_long
4760 echo "$as_me:$LINENO: checking for float" >&5
4761 echo $ECHO_N "checking for float... $ECHO_C" >&6
4762 if test "${ac_cv_type_float+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 cat >conftest.$ac_ext <<_ACEOF
4766 #line $LINENO "configure"
4767 #include "confdefs.h"
4768 $ac_includes_default
4769 #ifdef F77_DUMMY_MAIN
4773 int F77_DUMMY_MAIN() { return 1; }
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -s conftest.$ac_objext'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4798 ac_cv_type_float=yes
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4804 rm -f conftest.$ac_objext conftest.$ac_ext
4806 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4807 echo "${ECHO_T}$ac_cv_type_float" >&6
4809 echo "$as_me:$LINENO: checking size of float" >&5
4810 echo $ECHO_N "checking size of float... $ECHO_C" >&6
4811 if test "${ac_cv_sizeof_float+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 if test "$ac_cv_type_float" = yes; then
4815 # The cast to unsigned long works around a bug in the HP C Compiler
4816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4818 # This bug is HP SR number 8606223364.
4819 if test "$cross_compiling" = yes; then
4820 # Depending upon the size, compute the lo and hi bounds.
4821 cat >conftest.$ac_ext <<_ACEOF
4822 #line $LINENO "configure"
4823 #include "confdefs.h"
4824 $ac_includes_default
4825 #ifdef F77_DUMMY_MAIN
4829 int F77_DUMMY_MAIN() { return 1; }
4834 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4855 cat >conftest.$ac_ext <<_ACEOF
4856 #line $LINENO "configure"
4857 #include "confdefs.h"
4858 $ac_includes_default
4859 #ifdef F77_DUMMY_MAIN
4863 int F77_DUMMY_MAIN() { return 1; }
4868 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
4875 rm -f conftest.$ac_objext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877 (eval $ac_compile) 2>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_hi=$ac_mid; break
4889 echo "$as_me: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4891 ac_lo=`expr $ac_mid + 1`
4892 if test $ac_lo -le $ac_mid; then
4896 ac_mid=`expr 2 '*' $ac_mid + 1`
4898 rm -f conftest.$ac_objext conftest.$ac_ext
4901 echo "$as_me: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4903 cat >conftest.$ac_ext <<_ACEOF
4904 #line $LINENO "configure"
4905 #include "confdefs.h"
4906 $ac_includes_default
4907 #ifdef F77_DUMMY_MAIN
4911 int F77_DUMMY_MAIN() { return 1; }
4916 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
4923 rm -f conftest.$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925 (eval $ac_compile) 2>&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try='test -s conftest.$ac_objext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4937 cat >conftest.$ac_ext <<_ACEOF
4938 #line $LINENO "configure"
4939 #include "confdefs.h"
4940 $ac_includes_default
4941 #ifdef F77_DUMMY_MAIN
4945 int F77_DUMMY_MAIN() { return 1; }
4950 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
4957 rm -f conftest.$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try='test -s conftest.$ac_objext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 ac_lo=$ac_mid; break
4971 echo "$as_me: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4973 ac_hi=`expr '(' $ac_mid ')' - 1`
4974 if test $ac_mid -le $ac_hi; then
4978 ac_mid=`expr 2 '*' $ac_mid`
4980 rm -f conftest.$ac_objext conftest.$ac_ext
4983 echo "$as_me: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4987 rm -f conftest.$ac_objext conftest.$ac_ext
4989 rm -f conftest.$ac_objext conftest.$ac_ext
4990 # Binary search between lo and hi bounds.
4991 while test "x$ac_lo" != "x$ac_hi"; do
4992 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4993 cat >conftest.$ac_ext <<_ACEOF
4994 #line $LINENO "configure"
4995 #include "confdefs.h"
4996 $ac_includes_default
4997 #ifdef F77_DUMMY_MAIN
5001 int F77_DUMMY_MAIN() { return 1; }
5006 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5013 rm -f conftest.$ac_objext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015 (eval $ac_compile) 2>&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } &&
5019 { ac_try='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5027 echo "$as_me: failed program was:" >&5
5028 cat conftest.$ac_ext >&5
5029 ac_lo=`expr '(' $ac_mid ')' + 1`
5031 rm -f conftest.$ac_objext conftest.$ac_ext
5034 ?*) ac_cv_sizeof_float=$ac_lo;;
5035 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
5036 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
5037 { (exit 1); exit 1; }; } ;;
5040 if test "$cross_compiling" = yes; then
5041 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5042 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5043 { (exit 1); exit 1; }; }
5045 cat >conftest.$ac_ext <<_ACEOF
5046 #line $LINENO "configure"
5047 #include "confdefs.h"
5048 $ac_includes_default
5049 long longval () { return (long) (sizeof (float)); }
5050 unsigned long ulongval () { return (long) (sizeof (float)); }
5053 #ifdef F77_DUMMY_MAIN
5057 int F77_DUMMY_MAIN() { return 1; }
5063 FILE *f = fopen ("conftest.val", "w");
5066 if (((long) (sizeof (float))) < 0)
5068 long i = longval ();
5069 if (i != ((long) (sizeof (float))))
5071 fprintf (f, "%ld\n", i);
5075 unsigned long i = ulongval ();
5076 if (i != ((long) (sizeof (float))))
5078 fprintf (f, "%lu\n", i);
5080 exit (ferror (f) || fclose (f) != 0);
5086 rm -f conftest$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 ac_cv_sizeof_float=`cat conftest.val`
5099 echo "$as_me: program exited with status $ac_status" >&5
5100 echo "$as_me: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5103 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
5104 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
5105 { (exit 1); exit 1; }; }
5107 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5112 ac_cv_sizeof_float=0
5115 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5116 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5117 cat >>confdefs.h <<_ACEOF
5118 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5122 echo "$as_me:$LINENO: checking for double" >&5
5123 echo $ECHO_N "checking for double... $ECHO_C" >&6
5124 if test "${ac_cv_type_double+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 cat >conftest.$ac_ext <<_ACEOF
5128 #line $LINENO "configure"
5129 #include "confdefs.h"
5130 $ac_includes_default
5131 #ifdef F77_DUMMY_MAIN
5135 int F77_DUMMY_MAIN() { return 1; }
5142 if (sizeof (double))
5148 rm -f conftest.$ac_objext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5150 (eval $ac_compile) 2>&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } &&
5154 { ac_try='test -s conftest.$ac_objext'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 ac_cv_type_double=yes
5162 echo "$as_me: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5164 ac_cv_type_double=no
5166 rm -f conftest.$ac_objext conftest.$ac_ext
5168 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5169 echo "${ECHO_T}$ac_cv_type_double" >&6
5171 echo "$as_me:$LINENO: checking size of double" >&5
5172 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5173 if test "${ac_cv_sizeof_double+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 if test "$ac_cv_type_double" = yes; then
5177 # The cast to unsigned long works around a bug in the HP C Compiler
5178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5179 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5180 # This bug is HP SR number 8606223364.
5181 if test "$cross_compiling" = yes; then
5182 # Depending upon the size, compute the lo and hi bounds.
5183 cat >conftest.$ac_ext <<_ACEOF
5184 #line $LINENO "configure"
5185 #include "confdefs.h"
5186 $ac_includes_default
5187 #ifdef F77_DUMMY_MAIN
5191 int F77_DUMMY_MAIN() { return 1; }
5196 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5203 rm -f conftest.$ac_objext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205 (eval $ac_compile) 2>&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } &&
5209 { ac_try='test -s conftest.$ac_objext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5217 cat >conftest.$ac_ext <<_ACEOF
5218 #line $LINENO "configure"
5219 #include "confdefs.h"
5220 $ac_includes_default
5221 #ifdef F77_DUMMY_MAIN
5225 int F77_DUMMY_MAIN() { return 1; }
5230 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5237 rm -f conftest.$ac_objext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5239 (eval $ac_compile) 2>&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -s conftest.$ac_objext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 ac_hi=$ac_mid; break
5251 echo "$as_me: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 ac_lo=`expr $ac_mid + 1`
5254 if test $ac_lo -le $ac_mid; then
5258 ac_mid=`expr 2 '*' $ac_mid + 1`
5260 rm -f conftest.$ac_objext conftest.$ac_ext
5263 echo "$as_me: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5265 cat >conftest.$ac_ext <<_ACEOF
5266 #line $LINENO "configure"
5267 #include "confdefs.h"
5268 $ac_includes_default
5269 #ifdef F77_DUMMY_MAIN
5273 int F77_DUMMY_MAIN() { return 1; }
5278 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5285 rm -f conftest.$ac_objext
5286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287 (eval $ac_compile) 2>&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } &&
5291 { ac_try='test -s conftest.$ac_objext'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5299 cat >conftest.$ac_ext <<_ACEOF
5300 #line $LINENO "configure"
5301 #include "confdefs.h"
5302 $ac_includes_default
5303 #ifdef F77_DUMMY_MAIN
5307 int F77_DUMMY_MAIN() { return 1; }
5312 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5319 rm -f conftest.$ac_objext
5320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5321 (eval $ac_compile) 2>&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -s conftest.$ac_objext'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5331 ac_lo=$ac_mid; break
5333 echo "$as_me: failed program was:" >&5
5334 cat conftest.$ac_ext >&5
5335 ac_hi=`expr '(' $ac_mid ')' - 1`
5336 if test $ac_mid -le $ac_hi; then
5340 ac_mid=`expr 2 '*' $ac_mid`
5342 rm -f conftest.$ac_objext conftest.$ac_ext
5345 echo "$as_me: failed program was:" >&5
5346 cat conftest.$ac_ext >&5
5349 rm -f conftest.$ac_objext conftest.$ac_ext
5351 rm -f conftest.$ac_objext conftest.$ac_ext
5352 # Binary search between lo and hi bounds.
5353 while test "x$ac_lo" != "x$ac_hi"; do
5354 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5355 cat >conftest.$ac_ext <<_ACEOF
5356 #line $LINENO "configure"
5357 #include "confdefs.h"
5358 $ac_includes_default
5359 #ifdef F77_DUMMY_MAIN
5363 int F77_DUMMY_MAIN() { return 1; }
5368 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5375 rm -f conftest.$ac_objext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5377 (eval $ac_compile) 2>&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5389 echo "$as_me: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5391 ac_lo=`expr '(' $ac_mid ')' + 1`
5393 rm -f conftest.$ac_objext conftest.$ac_ext
5396 ?*) ac_cv_sizeof_double=$ac_lo;;
5397 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
5398 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
5399 { (exit 1); exit 1; }; } ;;
5402 if test "$cross_compiling" = yes; then
5403 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5404 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5405 { (exit 1); exit 1; }; }
5407 cat >conftest.$ac_ext <<_ACEOF
5408 #line $LINENO "configure"
5409 #include "confdefs.h"
5410 $ac_includes_default
5411 long longval () { return (long) (sizeof (double)); }
5412 unsigned long ulongval () { return (long) (sizeof (double)); }
5415 #ifdef F77_DUMMY_MAIN
5419 int F77_DUMMY_MAIN() { return 1; }
5425 FILE *f = fopen ("conftest.val", "w");
5428 if (((long) (sizeof (double))) < 0)
5430 long i = longval ();
5431 if (i != ((long) (sizeof (double))))
5433 fprintf (f, "%ld\n", i);
5437 unsigned long i = ulongval ();
5438 if (i != ((long) (sizeof (double))))
5440 fprintf (f, "%lu\n", i);
5442 exit (ferror (f) || fclose (f) != 0);
5448 rm -f conftest$ac_exeext
5449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5450 (eval $ac_link) 2>&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_cv_sizeof_double=`cat conftest.val`
5461 echo "$as_me: program exited with status $ac_status" >&5
5462 echo "$as_me: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5465 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
5466 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
5467 { (exit 1); exit 1; }; }
5469 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5474 ac_cv_sizeof_double=0
5477 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5478 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5479 cat >>confdefs.h <<_ACEOF
5480 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5486 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5487 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5488 if test "${ac_cv_lib_z_deflate+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 ac_check_lib_save_LIBS=$LIBS
5493 cat >conftest.$ac_ext <<_ACEOF
5494 #line $LINENO "configure"
5495 #include "confdefs.h"
5497 /* Override any gcc2 internal prototype to avoid an error. */
5501 /* We use char because int might match the return type of a gcc2
5502 builtin and then its argument prototype would still apply. */
5504 #ifdef F77_DUMMY_MAIN
5508 int F77_DUMMY_MAIN() { return 1; }
5518 rm -f conftest.$ac_objext conftest$ac_exeext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520 (eval $ac_link) 2>&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
5524 { ac_try='test -s conftest$ac_exeext'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; }; then
5530 ac_cv_lib_z_deflate=yes
5532 echo "$as_me: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5534 ac_cv_lib_z_deflate=no
5536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5537 LIBS=$ac_check_lib_save_LIBS
5539 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5540 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5541 if test $ac_cv_lib_z_deflate = yes; then
5544 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5545 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5549 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5550 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5551 if test "${ac_cv_lib_m_sin+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 ac_check_lib_save_LIBS=$LIBS
5556 cat >conftest.$ac_ext <<_ACEOF
5557 #line $LINENO "configure"
5558 #include "confdefs.h"
5560 /* Override any gcc2 internal prototype to avoid an error. */
5564 /* We use char because int might match the return type of a gcc2
5565 builtin and then its argument prototype would still apply. */
5567 #ifdef F77_DUMMY_MAIN
5571 int F77_DUMMY_MAIN() { return 1; }
5581 rm -f conftest.$ac_objext conftest$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -s conftest$ac_exeext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5595 echo "$as_me: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5600 LIBS=$ac_check_lib_save_LIBS
5602 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5603 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5604 if test $ac_cv_lib_m_sin = yes; then
5605 cat >>confdefs.h <<_ACEOF
5613 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5614 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5615 if test "${ac_cv_lib_curses_main+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 ac_check_lib_save_LIBS=$LIBS
5619 LIBS="-lcurses $LIBS"
5620 cat >conftest.$ac_ext <<_ACEOF
5621 #line $LINENO "configure"
5622 #include "confdefs.h"
5625 #ifdef F77_DUMMY_MAIN
5629 int F77_DUMMY_MAIN() { return 1; }
5639 rm -f conftest.$ac_objext conftest$ac_exeext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5641 (eval $ac_link) 2>&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try='test -s conftest$ac_exeext'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
5651 ac_cv_lib_curses_main=yes
5653 echo "$as_me: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5655 ac_cv_lib_curses_main=no
5657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5658 LIBS=$ac_check_lib_save_LIBS
5660 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5661 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5662 if test $ac_cv_lib_curses_main = yes; then
5668 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5669 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5670 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 ac_check_lib_save_LIBS=$LIBS
5674 LIBS="-lncurses $LIBS"
5675 cat >conftest.$ac_ext <<_ACEOF
5676 #line $LINENO "configure"
5677 #include "confdefs.h"
5680 #ifdef F77_DUMMY_MAIN
5684 int F77_DUMMY_MAIN() { return 1; }
5694 rm -f conftest.$ac_objext conftest$ac_exeext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5696 (eval $ac_link) 2>&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } &&
5700 { ac_try='test -s conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 ac_cv_lib_ncurses_main=yes
5708 echo "$as_me: failed program was:" >&5
5709 cat conftest.$ac_ext >&5
5710 ac_cv_lib_ncurses_main=no
5712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5713 LIBS=$ac_check_lib_save_LIBS
5715 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5716 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5717 if test $ac_cv_lib_ncurses_main = yes; then
5723 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5724 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5725 if test "${ac_cv_lib_readline_main+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 ac_check_lib_save_LIBS=$LIBS
5729 LIBS="-lreadline -lcurses $LIBS"
5730 cat >conftest.$ac_ext <<_ACEOF
5731 #line $LINENO "configure"
5732 #include "confdefs.h"
5735 #ifdef F77_DUMMY_MAIN
5739 int F77_DUMMY_MAIN() { return 1; }
5749 rm -f conftest.$ac_objext conftest$ac_exeext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5751 (eval $ac_link) 2>&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -s conftest$ac_exeext'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
5761 ac_cv_lib_readline_main=yes
5763 echo "$as_me: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5765 ac_cv_lib_readline_main=no
5767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5768 LIBS=$ac_check_lib_save_LIBS
5770 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5771 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5772 if test $ac_cv_lib_readline_main = yes; then
5775 cat >>confdefs.h <<\_ACEOF
5776 #define HAVE_READLINE 1
5784 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.2" >&5
5785 echo $ECHO_N "checking for main in -lwx_gtk-2.2... $ECHO_C" >&6
5786 if test "${ac_cv_lib_wx_gtk_2_2_main+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 ac_check_lib_save_LIBS=$LIBS
5790 LIBS="-lwx_gtk-2.2 $LIBS"
5791 cat >conftest.$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5793 #include "confdefs.h"
5796 #ifdef F77_DUMMY_MAIN
5800 int F77_DUMMY_MAIN() { return 1; }
5810 rm -f conftest.$ac_objext conftest$ac_exeext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5812 (eval $ac_link) 2>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -s conftest$ac_exeext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_cv_lib_wx_gtk_2_2_main=yes
5824 echo "$as_me: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5826 ac_cv_lib_wx_gtk_2_2_main=no
5828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5829 LIBS=$ac_check_lib_save_LIBS
5831 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_2_main" >&5
5832 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_2_main" >&6
5833 if test $ac_cv_lib_wx_gtk_2_2_main = yes; then
5834 wxwin=true; wx_gtk=true;
5835 cat >>confdefs.h <<\_ACEOF
5836 #define HAVE_WXWINDOWS 1
5841 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
5842 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
5843 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 ac_check_lib_save_LIBS=$LIBS
5848 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 #include "confdefs.h"
5852 /* Override any gcc2 internal prototype to avoid an error. */
5856 /* We use char because int might match the return type of a gcc2
5857 builtin and then its argument prototype would still apply. */
5859 #ifdef F77_DUMMY_MAIN
5863 int F77_DUMMY_MAIN() { return 1; }
5873 rm -f conftest.$ac_objext conftest$ac_exeext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5875 (eval $ac_link) 2>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } &&
5879 { ac_try='test -s conftest$ac_exeext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_cv_lib_fftw_fftw_one=yes
5887 echo "$as_me: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5889 ac_cv_lib_fftw_fftw_one=no
5891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5892 LIBS=$ac_check_lib_save_LIBS
5894 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
5895 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
5896 if test $ac_cv_lib_fftw_fftw_one = yes; then
5898 cat >>confdefs.h <<\_ACEOF
5906 echo "$as_me:$LINENO: checking for main in -lGL" >&5
5907 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5908 if test "${ac_cv_lib_GL_main+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 ac_check_lib_save_LIBS=$LIBS
5912 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
5913 cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
5915 #include "confdefs.h"
5918 #ifdef F77_DUMMY_MAIN
5922 int F77_DUMMY_MAIN() { return 1; }
5932 rm -f conftest.$ac_objext conftest$ac_exeext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934 (eval $ac_link) 2>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -s conftest$ac_exeext'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5944 ac_cv_lib_GL_main=yes
5946 echo "$as_me: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5948 ac_cv_lib_GL_main=no
5950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5951 LIBS=$ac_check_lib_save_LIBS
5953 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
5954 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
5955 if test $ac_cv_lib_GL_main = yes; then
5961 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
5962 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
5963 if test "${ac_cv_lib_pthread_main+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 ac_check_lib_save_LIBS=$LIBS
5967 LIBS="-lpthread $LIBS"
5968 cat >conftest.$ac_ext <<_ACEOF
5969 #line $LINENO "configure"
5970 #include "confdefs.h"
5973 #ifdef F77_DUMMY_MAIN
5977 int F77_DUMMY_MAIN() { return 1; }
5987 rm -f conftest.$ac_objext conftest$ac_exeext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989 (eval $ac_link) 2>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -s conftest$ac_exeext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
5999 ac_cv_lib_pthread_main=yes
6001 echo "$as_me: failed program was:" >&5
6002 cat conftest.$ac_ext >&5
6003 ac_cv_lib_pthread_main=no
6005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6006 LIBS=$ac_check_lib_save_LIBS
6008 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6009 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6010 if test $ac_cv_lib_pthread_main = yes; then
6017 if test "$zlib" = "true" ; then
6018 echo "$as_me:$LINENO: checking for main in -lpng" >&5
6019 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6020 if test "${ac_cv_lib_png_main+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 ac_check_lib_save_LIBS=$LIBS
6025 cat >conftest.$ac_ext <<_ACEOF
6026 #line $LINENO "configure"
6027 #include "confdefs.h"
6030 #ifdef F77_DUMMY_MAIN
6034 int F77_DUMMY_MAIN() { return 1; }
6044 rm -f conftest.$ac_objext conftest$ac_exeext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6046 (eval $ac_link) 2>&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try='test -s conftest$ac_exeext'
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; }; then
6056 ac_cv_lib_png_main=yes
6058 echo "$as_me: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6060 ac_cv_lib_png_main=no
6062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6063 LIBS=$ac_check_lib_save_LIBS
6065 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6066 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6067 if test $ac_cv_lib_png_main = yes; then
6069 cat >>confdefs.h <<\_ACEOF
6079 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6081 if test "${ac_cv_header_stdc+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 cat >conftest.$ac_ext <<_ACEOF
6085 #line $LINENO "configure"
6086 #include "confdefs.h"
6093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6096 egrep -v '^ *\+' conftest.er1 >conftest.err
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } >/dev/null; then
6101 if test -s conftest.err; then
6102 ac_cpp_err=$ac_c_preproc_warn_flag
6109 if test -z "$ac_cpp_err"; then
6110 ac_cv_header_stdc=yes
6112 echo "$as_me: failed program was:" >&5
6113 cat conftest.$ac_ext >&5
6114 ac_cv_header_stdc=no
6116 rm -f conftest.err conftest.$ac_ext
6118 if test $ac_cv_header_stdc = yes; then
6119 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6120 cat >conftest.$ac_ext <<_ACEOF
6121 #line $LINENO "configure"
6122 #include "confdefs.h"
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127 egrep "memchr" >/dev/null 2>&1; then
6130 ac_cv_header_stdc=no
6136 if test $ac_cv_header_stdc = yes; then
6137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6138 cat >conftest.$ac_ext <<_ACEOF
6139 #line $LINENO "configure"
6140 #include "confdefs.h"
6144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6145 egrep "free" >/dev/null 2>&1; then
6148 ac_cv_header_stdc=no
6154 if test $ac_cv_header_stdc = yes; then
6155 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6156 if test "$cross_compiling" = yes; then
6159 cat >conftest.$ac_ext <<_ACEOF
6160 #line $LINENO "configure"
6161 #include "confdefs.h"
6163 #if ((' ' & 0x0FF) == 0x020)
6164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6167 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6168 || ('j' <= (c) && (c) <= 'r') \
6169 || ('s' <= (c) && (c) <= 'z'))
6170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6178 for (i = 0; i < 256; i++)
6179 if (XOR (islower (i), ISLOWER (i))
6180 || toupper (i) != TOUPPER (i))
6185 rm -f conftest$ac_exeext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187 (eval $ac_link) 2>&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6198 echo "$as_me: program exited with status $ac_status" >&5
6199 echo "$as_me: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6202 ac_cv_header_stdc=no
6204 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6208 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6209 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6210 if test $ac_cv_header_stdc = yes; then
6212 cat >>confdefs.h <<\_ACEOF
6213 #define STDC_HEADERS 1
6242 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
6244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6246 echo "$as_me:$LINENO: checking for $ac_header" >&5
6247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6254 # Is the header compilable?
6255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6257 cat >conftest.$ac_ext <<_ACEOF
6258 #line $LINENO "configure"
6259 #include "confdefs.h"
6260 $ac_includes_default
6261 #include <$ac_header>
6263 rm -f conftest.$ac_objext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try='test -s conftest.$ac_objext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_header_compiler=yes
6277 echo "$as_me: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6279 ac_header_compiler=no
6281 rm -f conftest.$ac_objext conftest.$ac_ext
6282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6283 echo "${ECHO_T}$ac_header_compiler" >&6
6285 # Is the header present?
6286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6288 cat >conftest.$ac_ext <<_ACEOF
6289 #line $LINENO "configure"
6290 #include "confdefs.h"
6291 #include <$ac_header>
6293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6296 egrep -v '^ *\+' conftest.er1 >conftest.err
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } >/dev/null; then
6301 if test -s conftest.err; then
6302 ac_cpp_err=$ac_c_preproc_warn_flag
6309 if test -z "$ac_cpp_err"; then
6310 ac_header_preproc=yes
6312 echo "$as_me: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6314 ac_header_preproc=no
6316 rm -f conftest.err conftest.$ac_ext
6317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6318 echo "${ECHO_T}$ac_header_preproc" >&6
6320 # So? What about this header?
6321 case $ac_header_compiler:$ac_header_preproc in
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6335 echo "$as_me:$LINENO: checking for $ac_header" >&5
6336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 eval "$as_ac_Header=$ac_header_preproc"
6342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6347 cat >>confdefs.h <<_ACEOF
6348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6356 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6357 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6358 if test "${ac_cv_c_const+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 cat >conftest.$ac_ext <<_ACEOF
6362 #line $LINENO "configure"
6363 #include "confdefs.h"
6365 #ifdef F77_DUMMY_MAIN
6369 int F77_DUMMY_MAIN() { return 1; }
6374 /* FIXME: Include the comments suggested by Paul. */
6376 /* Ultrix mips cc rejects this. */
6377 typedef int charset[2];
6379 /* SunOS 4.1.1 cc rejects this. */
6380 char const *const *ccp;
6382 /* NEC SVR4.0.2 mips cc rejects this. */
6383 struct point {int x, y;};
6384 static struct point const zero = {0,0};
6385 /* AIX XL C 1.02.0.0 rejects this.
6386 It does not let you subtract one const X* pointer from another in
6387 an arm of an if-expression whose if-part is not a constant
6389 const char *g = "string";
6390 ccp = &g + (g ? g-g : 0);
6391 /* HPUX 7.0 cc rejects these. */
6394 ccp = (char const *const *) p;
6395 { /* SCO 3.2v4 cc rejects this. */
6397 char const *s = 0 ? (char *) 0 : (char const *) 0;
6401 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6403 const int *foo = &x[0];
6406 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6407 typedef const int *iptr;
6411 { /* AIX XL C 1.02.0.0 rejects this saying
6412 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6413 struct s { int j; const int *ap[3]; };
6414 struct s *b; b->j = 5;
6416 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6439 echo "$as_me: failed program was:" >&5
6440 cat conftest.$ac_ext >&5
6443 rm -f conftest.$ac_objext conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6446 echo "${ECHO_T}$ac_cv_c_const" >&6
6447 if test $ac_cv_c_const = no; then
6449 cat >>confdefs.h <<\_ACEOF
6455 echo "$as_me:$LINENO: checking for off_t" >&5
6456 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6457 if test "${ac_cv_type_off_t+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 cat >conftest.$ac_ext <<_ACEOF
6461 #line $LINENO "configure"
6462 #include "confdefs.h"
6463 $ac_includes_default
6464 #ifdef F77_DUMMY_MAIN
6468 int F77_DUMMY_MAIN() { return 1; }
6481 rm -f conftest.$ac_objext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483 (eval $ac_compile) 2>&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
6487 { ac_try='test -s conftest.$ac_objext'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }; then
6493 ac_cv_type_off_t=yes
6495 echo "$as_me: failed program was:" >&5
6496 cat conftest.$ac_ext >&5
6499 rm -f conftest.$ac_objext conftest.$ac_ext
6501 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6502 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6503 if test $ac_cv_type_off_t = yes; then
6507 cat >>confdefs.h <<_ACEOF
6513 echo "$as_me:$LINENO: checking for size_t" >&5
6514 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6515 if test "${ac_cv_type_size_t+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 cat >conftest.$ac_ext <<_ACEOF
6519 #line $LINENO "configure"
6520 #include "confdefs.h"
6521 $ac_includes_default
6522 #ifdef F77_DUMMY_MAIN
6526 int F77_DUMMY_MAIN() { return 1; }
6533 if (sizeof (size_t))
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 ac_cv_type_size_t=yes
6553 echo "$as_me: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 ac_cv_type_size_t=no
6557 rm -f conftest.$ac_objext conftest.$ac_ext
6559 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6560 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6561 if test $ac_cv_type_size_t = yes; then
6565 cat >>confdefs.h <<_ACEOF
6566 #define size_t unsigned
6571 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6572 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6573 if test "${ac_cv_struct_tm+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 cat >conftest.$ac_ext <<_ACEOF
6577 #line $LINENO "configure"
6578 #include "confdefs.h"
6579 #include <sys/types.h>
6582 #ifdef F77_DUMMY_MAIN
6586 int F77_DUMMY_MAIN() { return 1; }
6591 struct tm *tp; tp->tm_sec;
6596 rm -f conftest.$ac_objext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598 (eval $ac_compile) 2>&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_cv_struct_tm=time.h
6610 echo "$as_me: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6612 ac_cv_struct_tm=sys/time.h
6614 rm -f conftest.$ac_objext conftest.$ac_ext
6616 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6617 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6618 if test $ac_cv_struct_tm = sys/time.h; then
6620 cat >>confdefs.h <<\_ACEOF
6621 #define TM_IN_SYS_TIME 1
6628 for ac_func in vprintf
6630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6631 echo "$as_me:$LINENO: checking for $ac_func" >&5
6632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6633 if eval "test \"\${$as_ac_var+set}\" = set"; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 cat >conftest.$ac_ext <<_ACEOF
6637 #line $LINENO "configure"
6638 #include "confdefs.h"
6639 /* System header to define __stub macros and hopefully few prototypes,
6640 which can conflict with char $ac_func (); below. */
6642 /* Override any gcc2 internal prototype to avoid an error. */
6646 /* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6651 #ifdef F77_DUMMY_MAIN
6655 int F77_DUMMY_MAIN() { return 1; }
6660 /* The GNU C library defines this for functions which it implements
6661 to always fail with ENOSYS. Some functions are actually named
6662 something starting with __ and the normal name is an alias. */
6663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6673 rm -f conftest.$ac_objext conftest$ac_exeext
6674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6675 (eval $ac_link) 2>&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -s conftest$ac_exeext'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 eval "$as_ac_var=yes"
6687 echo "$as_me: failed program was:" >&5
6688 cat conftest.$ac_ext >&5
6689 eval "$as_ac_var=no"
6691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6695 if test `eval echo '${'$as_ac_var'}'` = yes; then
6696 cat >>confdefs.h <<_ACEOF
6697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6700 echo "$as_me:$LINENO: checking for _doprnt" >&5
6701 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6702 if test "${ac_cv_func__doprnt+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6707 #include "confdefs.h"
6708 /* System header to define __stub macros and hopefully few prototypes,
6709 which can conflict with char _doprnt (); below. */
6711 /* Override any gcc2 internal prototype to avoid an error. */
6715 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */
6720 #ifdef F77_DUMMY_MAIN
6724 int F77_DUMMY_MAIN() { return 1; }
6729 /* The GNU C library defines this for functions which it implements
6730 to always fail with ENOSYS. Some functions are actually named
6731 something starting with __ and the normal name is an alias. */
6732 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6742 rm -f conftest.$ac_objext conftest$ac_exeext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744 (eval $ac_link) 2>&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } &&
6748 { ac_try='test -s conftest$ac_exeext'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; }; then
6754 ac_cv_func__doprnt=yes
6756 echo "$as_me: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6758 ac_cv_func__doprnt=no
6760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6762 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6763 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6764 if test $ac_cv_func__doprnt = yes; then
6766 cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_DOPRNT 1
6783 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
6785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6786 echo "$as_me:$LINENO: checking for $ac_func" >&5
6787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6788 if eval "test \"\${$as_ac_var+set}\" = set"; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 cat >conftest.$ac_ext <<_ACEOF
6792 #line $LINENO "configure"
6793 #include "confdefs.h"
6794 /* System header to define __stub macros and hopefully few prototypes,
6795 which can conflict with char $ac_func (); below. */
6797 /* Override any gcc2 internal prototype to avoid an error. */
6801 /* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6806 #ifdef F77_DUMMY_MAIN
6810 int F77_DUMMY_MAIN() { return 1; }
6815 /* The GNU C library defines this for functions which it implements
6816 to always fail with ENOSYS. Some functions are actually named
6817 something starting with __ and the normal name is an alias. */
6818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6828 rm -f conftest.$ac_objext conftest$ac_exeext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6830 (eval $ac_link) 2>&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } &&
6834 { ac_try='test -s conftest$ac_exeext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 eval "$as_ac_var=yes"
6842 echo "$as_me: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6844 eval "$as_ac_var=no"
6846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6850 if test `eval echo '${'$as_ac_var'}'` = yes; then
6851 cat >>confdefs.h <<_ACEOF
6852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6858 echo "$as_me:$LINENO: checking for basename" >&5
6859 echo $ECHO_N "checking for basename... $ECHO_C" >&6
6860 if test "${ac_cv_func_basename+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 cat >conftest.$ac_ext <<_ACEOF
6864 #line $LINENO "configure"
6865 #include "confdefs.h"
6866 /* System header to define __stub macros and hopefully few prototypes,
6867 which can conflict with char basename (); below. */
6869 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6878 #ifdef F77_DUMMY_MAIN
6882 int F77_DUMMY_MAIN() { return 1; }
6887 /* The GNU C library defines this for functions which it implements
6888 to always fail with ENOSYS. Some functions are actually named
6889 something starting with __ and the normal name is an alias. */
6890 #if defined (__stub_basename) || defined (__stub___basename)
6900 rm -f conftest.$ac_objext conftest$ac_exeext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6902 (eval $ac_link) 2>&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -s conftest$ac_exeext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 ac_cv_func_basename=yes
6914 echo "$as_me: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6916 ac_cv_func_basename=no
6918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6920 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
6921 echo "${ECHO_T}$ac_cv_func_basename" >&6
6923 echo "$as_me:$LINENO: checking for setjmp" >&5
6924 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
6925 if test "${ac_cv_func_setjmp+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 cat >conftest.$ac_ext <<_ACEOF
6929 #line $LINENO "configure"
6930 #include "confdefs.h"
6931 /* System header to define __stub macros and hopefully few prototypes,
6932 which can conflict with char setjmp (); below. */
6934 /* Override any gcc2 internal prototype to avoid an error. */
6938 /* We use char because int might match the return type of a gcc2
6939 builtin and then its argument prototype would still apply. */
6943 #ifdef F77_DUMMY_MAIN
6947 int F77_DUMMY_MAIN() { return 1; }
6952 /* The GNU C library defines this for functions which it implements
6953 to always fail with ENOSYS. Some functions are actually named
6954 something starting with __ and the normal name is an alias. */
6955 #if defined (__stub_setjmp) || defined (__stub___setjmp)
6965 rm -f conftest.$ac_objext conftest$ac_exeext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967 (eval $ac_link) 2>&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
6971 { ac_try='test -s conftest$ac_exeext'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; }; then
6977 ac_cv_func_setjmp=yes
6979 echo "$as_me: failed program was:" >&5
6980 cat conftest.$ac_ext >&5
6981 ac_cv_func_setjmp=no
6983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6985 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
6986 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
6988 echo "$as_me:$LINENO: checking for setpriority" >&5
6989 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
6990 if test "${ac_cv_func_setpriority+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 cat >conftest.$ac_ext <<_ACEOF
6994 #line $LINENO "configure"
6995 #include "confdefs.h"
6996 /* System header to define __stub macros and hopefully few prototypes,
6997 which can conflict with char setpriority (); below. */
6999 /* Override any gcc2 internal prototype to avoid an error. */
7003 /* We use char because int might match the return type of a gcc2
7004 builtin and then its argument prototype would still apply. */
7005 char setpriority ();
7008 #ifdef F77_DUMMY_MAIN
7012 int F77_DUMMY_MAIN() { return 1; }
7017 /* The GNU C library defines this for functions which it implements
7018 to always fail with ENOSYS. Some functions are actually named
7019 something starting with __ and the normal name is an alias. */
7020 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7030 rm -f conftest.$ac_objext conftest$ac_exeext
7031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7032 (eval $ac_link) 2>&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } &&
7036 { ac_try='test -s conftest$ac_exeext'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042 ac_cv_func_setpriority=yes
7044 echo "$as_me: failed program was:" >&5
7045 cat conftest.$ac_ext >&5
7046 ac_cv_func_setpriority=no
7048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7050 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7051 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7053 echo "$as_me:$LINENO: checking for time" >&5
7054 echo $ECHO_N "checking for time... $ECHO_C" >&6
7055 if test "${ac_cv_func_time+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 cat >conftest.$ac_ext <<_ACEOF
7059 #line $LINENO "configure"
7060 #include "confdefs.h"
7061 /* System header to define __stub macros and hopefully few prototypes,
7062 which can conflict with char time (); below. */
7064 /* Override any gcc2 internal prototype to avoid an error. */
7068 /* We use char because int might match the return type of a gcc2
7069 builtin and then its argument prototype would still apply. */
7073 #ifdef F77_DUMMY_MAIN
7077 int F77_DUMMY_MAIN() { return 1; }
7082 /* The GNU C library defines this for functions which it implements
7083 to always fail with ENOSYS. Some functions are actually named
7084 something starting with __ and the normal name is an alias. */
7085 #if defined (__stub_time) || defined (__stub___time)
7095 rm -f conftest.$ac_objext conftest$ac_exeext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7097 (eval $ac_link) 2>&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7109 echo "$as_me: failed program was:" >&5
7110 cat conftest.$ac_ext >&5
7113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7115 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7116 echo "${ECHO_T}$ac_cv_func_time" >&6
7118 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7119 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7120 if test "${ac_cv_func_gettimeofday+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 cat >conftest.$ac_ext <<_ACEOF
7124 #line $LINENO "configure"
7125 #include "confdefs.h"
7126 /* System header to define __stub macros and hopefully few prototypes,
7127 which can conflict with char gettimeofday (); below. */
7129 /* Override any gcc2 internal prototype to avoid an error. */
7133 /* We use char because int might match the return type of a gcc2
7134 builtin and then its argument prototype would still apply. */
7135 char gettimeofday ();
7138 #ifdef F77_DUMMY_MAIN
7142 int F77_DUMMY_MAIN() { return 1; }
7147 /* The GNU C library defines this for functions which it implements
7148 to always fail with ENOSYS. Some functions are actually named
7149 something starting with __ and the normal name is an alias. */
7150 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7160 rm -f conftest.$ac_objext conftest$ac_exeext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7162 (eval $ac_link) 2>&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -s conftest$ac_exeext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172 ac_cv_func_gettimeofday=yes
7174 echo "$as_me: failed program was:" >&5
7175 cat conftest.$ac_ext >&5
7176 ac_cv_func_gettimeofday=no
7178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7180 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7181 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7184 if test "${OSTYPE}" = "cygwin" ; then
7187 echo "$as_me:$LINENO: checking for getopt_long" >&5
7188 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7189 if test "${ac_cv_func_getopt_long+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 cat >conftest.$ac_ext <<_ACEOF
7193 #line $LINENO "configure"
7194 #include "confdefs.h"
7195 /* System header to define __stub macros and hopefully few prototypes,
7196 which can conflict with char getopt_long (); below. */
7198 /* Override any gcc2 internal prototype to avoid an error. */
7202 /* We use char because int might match the return type of a gcc2
7203 builtin and then its argument prototype would still apply. */
7204 char getopt_long ();
7207 #ifdef F77_DUMMY_MAIN
7211 int F77_DUMMY_MAIN() { return 1; }
7216 /* The GNU C library defines this for functions which it implements
7217 to always fail with ENOSYS. Some functions are actually named
7218 something starting with __ and the normal name is an alias. */
7219 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7229 rm -f conftest.$ac_objext conftest$ac_exeext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7231 (eval $ac_link) 2>&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } &&
7235 { ac_try='test -s conftest$ac_exeext'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; }; then
7241 ac_cv_func_getopt_long=yes
7243 echo "$as_me: failed program was:" >&5
7244 cat conftest.$ac_ext >&5
7245 ac_cv_func_getopt_long=no
7247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7249 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7250 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7251 if test $ac_cv_func_getopt_long = yes; then
7259 if test "${getopt_long}" = "false" ; then
7260 my_includes="$my_includes -I../getopt"
7262 cat >>confdefs.h <<\_ACEOF
7263 #define HAVE_GETOPT_LONG 1
7266 ctlibs_base="$ctlibs_base -lgetopt"
7267 LDFLAGS="$LDFLAGS -L../getopt"
7271 INCLUDED_GETOPT_LONG_TRUE=
7272 INCLUDED_GETOPT_LONG_FALSE='#'
7274 INCLUDED_GETOPT_LONG_TRUE='#'
7275 INCLUDED_GETOPT_LONG_FALSE=
7279 if test "${readline}" = "true" ; then
7280 ctlibs_base="$ctlibs_base -lreadline"
7281 if test "${ncurses}" = "true"; then
7282 ctlibs_base="$ctlibs_base -lncurses"
7283 elif test "${curses}" = "true"; then
7284 ctlibs_base="$ctlibs_base -lcurses"
7288 echo "$as_me:$LINENO: checking debug" >&5
7289 echo $ECHO_N "checking debug... $ECHO_C" >&6
7290 # Check whether --enable-debug or --disable-debug was given.
7291 if test "${enable_debug+set}" = set; then
7292 enableval="$enable_debug"
7293 case "${enableval}" in
7295 echo "$as_me:$LINENO: result: yes" >&5
7296 echo "${ECHO_T}yes" >&6
7299 echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6
7302 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7303 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7307 debug=false; echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6
7312 if test "$debug" = "true"; then
7320 if test "$datadir" != "" ; then
7321 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7324 if test "$debug" = "true" ; then
7325 CFLAGS="$CFLAGS -g -DDEBUG"
7327 cat >>confdefs.h <<\_ACEOF
7332 CFLAGS="$CFLAGS -O3 -DNDEBUG -fomit-frame-pointer"
7334 cat >>confdefs.h <<\_ACEOF
7340 if test "${pthread}" = "true" ; then
7341 CFLAGS="$FLAGS -pthread -D_REENTRANT"
7343 cat >>confdefs.h <<\_ACEOF
7344 #define HAVE_WXTHREADS 1
7349 echo "$as_me:$LINENO: checking sstream" >&5
7350 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7351 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7352 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ; then
7354 cat >>confdefs.h <<\_ACEOF
7355 #define HAVE_SSTREAM 1
7358 echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7361 echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6
7365 CFLAGS="$CFLAGS -Wall"
7366 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7367 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7368 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7369 if test "${enable_verbose_warnings+set}" = set; then
7370 enableval="$enable_verbose_warnings"
7371 case "$enableval" in
7373 echo "$as_me:$LINENO: result: yes" >&5
7374 echo "${ECHO_T}yes" >&6
7375 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7378 echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6
7383 echo "$as_me:$LINENO: result: no" >&5
7384 echo "${ECHO_T}no" >&6
7388 echo "$as_me:$LINENO: checking static executables" >&5
7389 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7390 # Check whether --enable-static or --disable-static was given.
7391 if test "${enable_static+set}" = set; then
7392 enableval="$enable_static"
7393 case "$enableval" in
7395 echo "$as_me:$LINENO: result: yes" >&5
7396 echo "${ECHO_T}yes" >&6
7397 CFLAGS="$CFLAGS --static"
7400 echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6
7405 echo "$as_me:$LINENO: result: no" >&5
7406 echo "${ECHO_T}no" >&6
7411 # Check whether --with-lam or --without-lam was given.
7412 if test "${with_lam+set}" = set; then
7414 if test "$withval" != "no" ; then
7420 if test "$withval" != "no" ; then
7421 if test "$prefix" != "NONE" ; then
7422 trylamdir="$trylamdir $prefix"
7425 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7426 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7427 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7428 if test -x "$testlamdir/bin/hcp" ; then
7429 if test "$testlamdir" != "/usr"; then
7430 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7431 CFLAGS="$CFLAGS -I$testlamdir/include"
7433 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7434 lamdir="$testlamdir"
7441 echo "$as_me:$LINENO: result: $lamdir" >&5
7442 echo "${ECHO_T}$lamdir" >&6
7444 echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6
7450 # Check whether --with-ctn or --without-ctn was given.
7451 if test "${with_ctn+set}" = set; then
7453 if test "$withval" != "no" ; then
7459 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7460 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7461 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7462 echo "$as_me:$LINENO: result: disabled" >&5
7463 echo "${ECHO_T}disabled" >&6
7465 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7466 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7467 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7468 if test -f "$testctndir/libctn.a" ; then
7469 LDFLAGS="$LDFLAGS -L$testctndir"
7474 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7475 if test -f "$testctndir/ctn_os.h" ; then
7476 CFLAGS="$CFLAGS -I$testctndir"
7481 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7484 cat >>confdefs.h <<\_ACEOF
7485 #define HAVE_CTN_DICOM 1
7488 echo "$as_me:$LINENO: result: yes" >&5
7489 echo "${ECHO_T}yes" >&6
7491 echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6
7496 echo "$as_me:$LINENO: checking for web access" >&5
7497 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7499 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7500 if test "${with_cgibin_dir+set}" = set; then
7501 withval="$with_cgibin_dir"
7502 cgibindir=$withval ;
7506 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7507 if test "${with_cgibin_url+set}" = set; then
7508 withval="$with_cgibin_url"
7509 cgibinurl=$withval ;
7513 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7514 if test "${with_webdata_dir+set}" = set; then
7515 withval="$with_webdata_dir"
7516 webdatadir=$withval ;
7520 # Check whether --with-webdata-url or --without-webdata-url was given.
7521 if test "${with_webdata_url+set}" = set; then
7522 withval="$with_webdata_url"
7523 webdataurl=$withval ;
7527 # Check whether --with-html-dir or --without-html-dir was given.
7528 if test "${with_html_dir+set}" = set; then
7529 withval="$with_html_dir"
7533 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7534 cgiprograms="ctsim.cgi ctsim.conf"
7538 if test -n "$htmldir" ; then
7539 htmldata=simulate.html
7544 if test -n "$htmldir"; then
7552 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7555 echo "$as_me:$LINENO: result: yes" >&5
7556 echo "${ECHO_T}yes" >&6
7557 if test -z "$cgibindir" ; then
7558 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7559 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7560 { (exit 1); exit 1; }; }
7561 elif test -z "$cgibinurl" ; then
7562 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7563 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7564 { (exit 1); exit 1; }; }
7565 elif test -z "$webdatadir" ; then
7566 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7567 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7568 { (exit 1); exit 1; }; }
7569 elif test -z "$webdataurl" ; then
7570 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7571 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7572 { (exit 1); exit 1; }; }
7573 elif test -z "$htmldir" ; then
7574 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7575 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7576 { (exit 1); exit 1; }; }
7579 echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6
7585 if test -n "$lamdir"; then
7594 echo "$as_me:$LINENO: checking for X" >&5
7595 echo $ECHO_N "checking for X... $ECHO_C" >&6
7598 # Check whether --with-x or --without-x was given.
7599 if test "${with_x+set}" = set; then
7603 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7604 if test "x$with_x" = xno; then
7605 # The user explicitly disabled X.
7608 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7609 # Both variables are already set.
7612 if test "${ac_cv_have_x+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 # One or both of the vars are not set, and there is no cached value.
7616 ac_x_includes=no ac_x_libraries=no
7618 if mkdir conftest.dir; then
7620 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7621 cat >Imakefile <<'_ACEOF'
7623 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7625 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7626 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7627 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7628 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7629 for ac_extension in a so sl; do
7630 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7631 test -f $ac_im_libdir/libX11.$ac_extension; then
7632 ac_im_usrlibdir=$ac_im_libdir; break
7635 # Screen out bogus values from the imake configuration. They are
7636 # bogus both because they are the default anyway, and because
7637 # using them would break gcc on systems where it needs fixed includes.
7638 case $ac_im_incroot in
7640 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7642 case $ac_im_usrlibdir in
7644 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7651 # Standard set of common directories for X headers.
7652 # Check X11 before X11Rn because it is often a symlink to the current release.
7664 /usr/local/X11/include
7665 /usr/local/X11R6/include
7666 /usr/local/X11R5/include
7667 /usr/local/X11R4/include
7669 /usr/local/include/X11
7670 /usr/local/include/X11R6
7671 /usr/local/include/X11R5
7672 /usr/local/include/X11R4
7676 /usr/XFree86/include/X11
7680 /usr/unsupported/include
7682 /usr/local/x11r5/include
7683 /usr/lpp/Xamples/include
7685 /usr/openwin/include
7686 /usr/openwin/share/include'
7688 if test "$ac_x_includes" = no; then
7689 # Guess where to find include files, by looking for Intrinsic.h.
7690 # First, try using that file with no special directory specified.
7691 cat >conftest.$ac_ext <<_ACEOF
7692 #line $LINENO "configure"
7693 #include "confdefs.h"
7694 #include <X11/Intrinsic.h>
7696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7699 egrep -v '^ *\+' conftest.er1 >conftest.err
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } >/dev/null; then
7704 if test -s conftest.err; then
7705 ac_cpp_err=$ac_c_preproc_warn_flag
7712 if test -z "$ac_cpp_err"; then
7713 # We can compile using X headers with no special include directory.
7716 echo "$as_me: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7718 for ac_dir in $ac_x_header_dirs; do
7719 if test -r "$ac_dir/X11/Intrinsic.h"; then
7720 ac_x_includes=$ac_dir
7725 rm -f conftest.err conftest.$ac_ext
7726 fi # $ac_x_includes = no
7728 if test "$ac_x_libraries" = no; then
7729 # Check for the libraries.
7730 # See if we find them without any special options.
7731 # Don't add to $LIBS permanently.
7734 cat >conftest.$ac_ext <<_ACEOF
7735 #line $LINENO "configure"
7736 #include "confdefs.h"
7737 #include <X11/Intrinsic.h>
7738 #ifdef F77_DUMMY_MAIN
7742 int F77_DUMMY_MAIN() { return 1; }
7752 rm -f conftest.$ac_objext conftest$ac_exeext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7754 (eval $ac_link) 2>&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } &&
7758 { ac_try='test -s conftest$ac_exeext'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7765 # We can link X programs with no special library path.
7768 echo "$as_me: failed program was:" >&5
7769 cat conftest.$ac_ext >&5
7771 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7773 # Don't even attempt the hair of trying to link an X program!
7774 for ac_extension in a so sl; do
7775 if test -r $ac_dir/libXt.$ac_extension; then
7776 ac_x_libraries=$ac_dir
7782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7783 fi # $ac_x_libraries = no
7785 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7786 # Didn't find X anywhere. Cache the known absence of X.
7787 ac_cv_have_x="have_x=no"
7789 # Record where we found X for the cache.
7790 ac_cv_have_x="have_x=yes \
7791 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7796 eval "$ac_cv_have_x"
7799 if test "$have_x" != yes; then
7800 echo "$as_me:$LINENO: result: $have_x" >&5
7801 echo "${ECHO_T}$have_x" >&6
7804 # If each of the values was on the command line, it overrides each guess.
7805 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7806 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7807 # Update the cache value to reflect the command line values.
7808 ac_cv_have_x="have_x=yes \
7809 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7810 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7811 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7814 if test "$no_x" = yes; then
7815 # Not all programs may use this symbol, but it does not hurt to define it.
7817 cat >>confdefs.h <<\_ACEOF
7818 #define X_DISPLAY_MISSING 1
7821 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7823 if test -n "$x_includes"; then
7824 X_CFLAGS="$X_CFLAGS -I$x_includes"
7827 # It would also be nice to do this for all -L options, not just this one.
7828 if test -n "$x_libraries"; then
7829 X_LIBS="$X_LIBS -L$x_libraries"
7830 # For Solaris; some versions of Sun CC require a space after -R and
7831 # others require no space. Words are not sufficient . . . .
7832 case `(uname -sr) 2>/dev/null` in
7834 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7835 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7836 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7837 cat >conftest.$ac_ext <<_ACEOF
7838 #line $LINENO "configure"
7839 #include "confdefs.h"
7841 #ifdef F77_DUMMY_MAIN
7845 int F77_DUMMY_MAIN() { return 1; }
7855 rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857 (eval $ac_link) 2>&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } &&
7861 { ac_try='test -s conftest$ac_exeext'
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; }; then
7869 echo "$as_me: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7874 if test $ac_R_nospace = yes; then
7875 echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6
7877 X_LIBS="$X_LIBS -R$x_libraries"
7879 LIBS="$ac_xsave_LIBS -R $x_libraries"
7880 cat >conftest.$ac_ext <<_ACEOF
7881 #line $LINENO "configure"
7882 #include "confdefs.h"
7884 #ifdef F77_DUMMY_MAIN
7888 int F77_DUMMY_MAIN() { return 1; }
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900 (eval $ac_link) 2>&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -s conftest$ac_exeext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7912 echo "$as_me: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7917 if test $ac_R_space = yes; then
7918 echo "$as_me:$LINENO: result: yes" >&5
7919 echo "${ECHO_T}yes" >&6
7920 X_LIBS="$X_LIBS -R $x_libraries"
7922 echo "$as_me:$LINENO: result: neither works" >&5
7923 echo "${ECHO_T}neither works" >&6
7930 # Check for system-dependent libraries X programs must link with.
7931 # Do this before checking for the system-independent R6 libraries
7932 # (-lICE), since we may need -lsocket or whatever for X linking.
7934 if test "$ISC" = yes; then
7935 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7937 # Martyn Johnson says this is needed for Ultrix, if the X
7938 # libraries were built with DECnet support. And Karl Berry says
7939 # the Alpha needs dnet_stub (dnet does not exist).
7940 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7941 cat >conftest.$ac_ext <<_ACEOF
7942 #line $LINENO "configure"
7943 #include "confdefs.h"
7945 /* Override any gcc2 internal prototype to avoid an error. */
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7951 char XOpenDisplay ();
7952 #ifdef F77_DUMMY_MAIN
7956 int F77_DUMMY_MAIN() { return 1; }
7966 rm -f conftest.$ac_objext conftest$ac_exeext
7967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7968 (eval $ac_link) 2>&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try='test -s conftest$ac_exeext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7980 echo "$as_me: failed program was:" >&5
7981 cat conftest.$ac_ext >&5
7982 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7983 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7984 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 ac_check_lib_save_LIBS=$LIBS
7989 cat >conftest.$ac_ext <<_ACEOF
7990 #line $LINENO "configure"
7991 #include "confdefs.h"
7993 /* Override any gcc2 internal prototype to avoid an error. */
7997 /* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
8000 #ifdef F77_DUMMY_MAIN
8004 int F77_DUMMY_MAIN() { return 1; }
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8016 (eval $ac_link) 2>&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
8020 { ac_try='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_lib_dnet_dnet_ntoa=yes
8028 echo "$as_me: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8030 ac_cv_lib_dnet_dnet_ntoa=no
8032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8033 LIBS=$ac_check_lib_save_LIBS
8035 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8036 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8037 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8038 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8041 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8042 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8043 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8044 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 ac_check_lib_save_LIBS=$LIBS
8048 LIBS="-ldnet_stub $LIBS"
8049 cat >conftest.$ac_ext <<_ACEOF
8050 #line $LINENO "configure"
8051 #include "confdefs.h"
8053 /* Override any gcc2 internal prototype to avoid an error. */
8057 /* We use char because int might match the return type of a gcc2
8058 builtin and then its argument prototype would still apply. */
8060 #ifdef F77_DUMMY_MAIN
8064 int F77_DUMMY_MAIN() { return 1; }
8074 rm -f conftest.$ac_objext conftest$ac_exeext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8076 (eval $ac_link) 2>&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } &&
8080 { ac_try='test -s conftest$ac_exeext'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8088 echo "$as_me: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8090 ac_cv_lib_dnet_stub_dnet_ntoa=no
8092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8093 LIBS=$ac_check_lib_save_LIBS
8095 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8096 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8097 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8098 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8104 LIBS="$ac_xsave_LIBS"
8106 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8107 # to get the SysV transport functions.
8108 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8110 # The nsl library prevents programs from opening the X display
8111 # on Irix 5.2, according to T.E. Dickey.
8112 # The functions gethostbyname, getservbyname, and inet_addr are
8113 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8114 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8115 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8116 if test "${ac_cv_func_gethostbyname+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 #include "confdefs.h"
8122 /* System header to define __stub macros and hopefully few prototypes,
8123 which can conflict with char gethostbyname (); below. */
8125 /* Override any gcc2 internal prototype to avoid an error. */
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8131 char gethostbyname ();
8134 #ifdef F77_DUMMY_MAIN
8138 int F77_DUMMY_MAIN() { return 1; }
8143 /* The GNU C library defines this for functions which it implements
8144 to always fail with ENOSYS. Some functions are actually named
8145 something starting with __ and the normal name is an alias. */
8146 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8156 rm -f conftest.$ac_objext conftest$ac_exeext
8157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8158 (eval $ac_link) 2>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } &&
8162 { ac_try='test -s conftest$ac_exeext'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 ac_cv_func_gethostbyname=yes
8170 echo "$as_me: failed program was:" >&5
8171 cat conftest.$ac_ext >&5
8172 ac_cv_func_gethostbyname=no
8174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8176 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8177 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8179 if test $ac_cv_func_gethostbyname = no; then
8180 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8181 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8182 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 ac_check_lib_save_LIBS=$LIBS
8187 cat >conftest.$ac_ext <<_ACEOF
8188 #line $LINENO "configure"
8189 #include "confdefs.h"
8191 /* Override any gcc2 internal prototype to avoid an error. */
8195 /* We use char because int might match the return type of a gcc2
8196 builtin and then its argument prototype would still apply. */
8197 char gethostbyname ();
8198 #ifdef F77_DUMMY_MAIN
8202 int F77_DUMMY_MAIN() { return 1; }
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8214 (eval $ac_link) 2>&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -s conftest$ac_exeext'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8224 ac_cv_lib_nsl_gethostbyname=yes
8226 echo "$as_me: failed program was:" >&5
8227 cat conftest.$ac_ext >&5
8228 ac_cv_lib_nsl_gethostbyname=no
8230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8231 LIBS=$ac_check_lib_save_LIBS
8233 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8234 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8235 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8236 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8239 if test $ac_cv_lib_nsl_gethostbyname = no; then
8240 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8241 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8242 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 ac_check_lib_save_LIBS=$LIBS
8247 cat >conftest.$ac_ext <<_ACEOF
8248 #line $LINENO "configure"
8249 #include "confdefs.h"
8251 /* Override any gcc2 internal prototype to avoid an error. */
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8257 char gethostbyname ();
8258 #ifdef F77_DUMMY_MAIN
8262 int F77_DUMMY_MAIN() { return 1; }
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274 (eval $ac_link) 2>&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try='test -s conftest$ac_exeext'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 ac_cv_lib_bsd_gethostbyname=yes
8286 echo "$as_me: failed program was:" >&5
8287 cat conftest.$ac_ext >&5
8288 ac_cv_lib_bsd_gethostbyname=no
8290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8291 LIBS=$ac_check_lib_save_LIBS
8293 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8294 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8295 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8296 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8302 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8303 # socket/setsockopt and other routines are undefined under SCO ODT
8304 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8305 # on later versions), says Simon Leinen: it contains gethostby*
8306 # variants that don't use the nameserver (or something). -lsocket
8307 # must be given before -lnsl if both are needed. We assume that
8308 # if connect needs -lnsl, so does gethostbyname.
8309 echo "$as_me:$LINENO: checking for connect" >&5
8310 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8311 if test "${ac_cv_func_connect+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 cat >conftest.$ac_ext <<_ACEOF
8315 #line $LINENO "configure"
8316 #include "confdefs.h"
8317 /* System header to define __stub macros and hopefully few prototypes,
8318 which can conflict with char connect (); below. */
8320 /* Override any gcc2 internal prototype to avoid an error. */
8324 /* We use char because int might match the return type of a gcc2
8325 builtin and then its argument prototype would still apply. */
8329 #ifdef F77_DUMMY_MAIN
8333 int F77_DUMMY_MAIN() { return 1; }
8338 /* The GNU C library defines this for functions which it implements
8339 to always fail with ENOSYS. Some functions are actually named
8340 something starting with __ and the normal name is an alias. */
8341 #if defined (__stub_connect) || defined (__stub___connect)
8351 rm -f conftest.$ac_objext conftest$ac_exeext
8352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8353 (eval $ac_link) 2>&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try='test -s conftest$ac_exeext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_cv_func_connect=yes
8365 echo "$as_me: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8367 ac_cv_func_connect=no
8369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8371 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8372 echo "${ECHO_T}$ac_cv_func_connect" >&6
8374 if test $ac_cv_func_connect = no; then
8375 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8376 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8377 if test "${ac_cv_lib_socket_connect+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 ac_check_lib_save_LIBS=$LIBS
8381 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8382 cat >conftest.$ac_ext <<_ACEOF
8383 #line $LINENO "configure"
8384 #include "confdefs.h"
8386 /* Override any gcc2 internal prototype to avoid an error. */
8390 /* We use char because int might match the return type of a gcc2
8391 builtin and then its argument prototype would still apply. */
8393 #ifdef F77_DUMMY_MAIN
8397 int F77_DUMMY_MAIN() { return 1; }
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_lib_socket_connect=yes
8421 echo "$as_me: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8423 ac_cv_lib_socket_connect=no
8425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8426 LIBS=$ac_check_lib_save_LIBS
8428 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8429 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8430 if test $ac_cv_lib_socket_connect = yes; then
8431 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8436 # Guillermo Gomez says -lposix is necessary on A/UX.
8437 echo "$as_me:$LINENO: checking for remove" >&5
8438 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8439 if test "${ac_cv_func_remove+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 cat >conftest.$ac_ext <<_ACEOF
8443 #line $LINENO "configure"
8444 #include "confdefs.h"
8445 /* System header to define __stub macros and hopefully few prototypes,
8446 which can conflict with char remove (); below. */
8448 /* Override any gcc2 internal prototype to avoid an error. */
8452 /* We use char because int might match the return type of a gcc2
8453 builtin and then its argument prototype would still apply. */
8457 #ifdef F77_DUMMY_MAIN
8461 int F77_DUMMY_MAIN() { return 1; }
8466 /* The GNU C library defines this for functions which it implements
8467 to always fail with ENOSYS. Some functions are actually named
8468 something starting with __ and the normal name is an alias. */
8469 #if defined (__stub_remove) || defined (__stub___remove)
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -s conftest$ac_exeext'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; }; then
8491 ac_cv_func_remove=yes
8493 echo "$as_me: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8495 ac_cv_func_remove=no
8497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8499 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8500 echo "${ECHO_T}$ac_cv_func_remove" >&6
8502 if test $ac_cv_func_remove = no; then
8503 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8504 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8505 if test "${ac_cv_lib_posix_remove+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 ac_check_lib_save_LIBS=$LIBS
8509 LIBS="-lposix $LIBS"
8510 cat >conftest.$ac_ext <<_ACEOF
8511 #line $LINENO "configure"
8512 #include "confdefs.h"
8514 /* Override any gcc2 internal prototype to avoid an error. */
8518 /* We use char because int might match the return type of a gcc2
8519 builtin and then its argument prototype would still apply. */
8521 #ifdef F77_DUMMY_MAIN
8525 int F77_DUMMY_MAIN() { return 1; }
8535 rm -f conftest.$ac_objext conftest$ac_exeext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8537 (eval $ac_link) 2>&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -s conftest$ac_exeext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_lib_posix_remove=yes
8549 echo "$as_me: failed program was:" >&5
8550 cat conftest.$ac_ext >&5
8551 ac_cv_lib_posix_remove=no
8553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8554 LIBS=$ac_check_lib_save_LIBS
8556 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8557 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8558 if test $ac_cv_lib_posix_remove = yes; then
8559 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8564 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8565 echo "$as_me:$LINENO: checking for shmat" >&5
8566 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8567 if test "${ac_cv_func_shmat+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 cat >conftest.$ac_ext <<_ACEOF
8571 #line $LINENO "configure"
8572 #include "confdefs.h"
8573 /* System header to define __stub macros and hopefully few prototypes,
8574 which can conflict with char shmat (); below. */
8576 /* Override any gcc2 internal prototype to avoid an error. */
8580 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */
8585 #ifdef F77_DUMMY_MAIN
8589 int F77_DUMMY_MAIN() { return 1; }
8594 /* The GNU C library defines this for functions which it implements
8595 to always fail with ENOSYS. Some functions are actually named
8596 something starting with __ and the normal name is an alias. */
8597 #if defined (__stub_shmat) || defined (__stub___shmat)
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -s conftest$ac_exeext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 ac_cv_func_shmat=yes
8621 echo "$as_me: failed program was:" >&5
8622 cat conftest.$ac_ext >&5
8625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8627 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8628 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8630 if test $ac_cv_func_shmat = no; then
8631 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8632 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8633 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 ac_check_lib_save_LIBS=$LIBS
8638 cat >conftest.$ac_ext <<_ACEOF
8639 #line $LINENO "configure"
8640 #include "confdefs.h"
8642 /* Override any gcc2 internal prototype to avoid an error. */
8646 /* We use char because int might match the return type of a gcc2
8647 builtin and then its argument prototype would still apply. */
8649 #ifdef F77_DUMMY_MAIN
8653 int F77_DUMMY_MAIN() { return 1; }
8663 rm -f conftest.$ac_objext conftest$ac_exeext
8664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8665 (eval $ac_link) 2>&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try='test -s conftest$ac_exeext'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
8675 ac_cv_lib_ipc_shmat=yes
8677 echo "$as_me: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8679 ac_cv_lib_ipc_shmat=no
8681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8682 LIBS=$ac_check_lib_save_LIBS
8684 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8685 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8686 if test $ac_cv_lib_ipc_shmat = yes; then
8687 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8693 # Check for libraries that X11R6 Xt/Xaw programs need.
8694 ac_save_LDFLAGS=$LDFLAGS
8695 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8696 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8697 # check for ICE first), but we must link in the order -lSM -lICE or
8698 # we get undefined symbols. So assume we have SM if we have ICE.
8699 # These have to be linked with before -lX11, unlike the other
8700 # libraries we check for below, so use a different variable.
8701 # John Interrante, Karl Berry
8702 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8703 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8704 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 ac_check_lib_save_LIBS=$LIBS
8708 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8709 cat >conftest.$ac_ext <<_ACEOF
8710 #line $LINENO "configure"
8711 #include "confdefs.h"
8713 /* Override any gcc2 internal prototype to avoid an error. */
8717 /* We use char because int might match the return type of a gcc2
8718 builtin and then its argument prototype would still apply. */
8719 char IceConnectionNumber ();
8720 #ifdef F77_DUMMY_MAIN
8724 int F77_DUMMY_MAIN() { return 1; }
8729 IceConnectionNumber ();
8734 rm -f conftest.$ac_objext conftest$ac_exeext
8735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8736 (eval $ac_link) 2>&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try='test -s conftest$ac_exeext'
8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 ac_cv_lib_ICE_IceConnectionNumber=yes
8748 echo "$as_me: failed program was:" >&5
8749 cat conftest.$ac_ext >&5
8750 ac_cv_lib_ICE_IceConnectionNumber=no
8752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8753 LIBS=$ac_check_lib_save_LIBS
8755 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8756 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8757 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8758 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8761 LDFLAGS=$ac_save_LDFLAGS
8772 X_TOOLKIT_LIBS="-lXt"
8773 X_BASIC_LIBS="-lXext -lX11 -lXmu"
8775 our_saved_LDFLAGS="$LDFLAGS"
8776 LDFLAGS="$X_LIBS $LDFLAGS"
8777 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
8778 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
8779 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 ac_check_lib_save_LIBS=$LIBS
8783 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
8784 cat >conftest.$ac_ext <<_ACEOF
8785 #line $LINENO "configure"
8786 #include "confdefs.h"
8788 /* Override any gcc2 internal prototype to avoid an error. */
8792 /* We use char because int might match the return type of a gcc2
8793 builtin and then its argument prototype would still apply. */
8794 char XtToolkitThreadInitialize ();
8795 #ifdef F77_DUMMY_MAIN
8799 int F77_DUMMY_MAIN() { return 1; }
8804 XtToolkitThreadInitialize ();
8809 rm -f conftest.$ac_objext conftest$ac_exeext
8810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8811 (eval $ac_link) 2>&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -s conftest$ac_exeext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
8823 echo "$as_me: failed program was:" >&5
8824 cat conftest.$ac_ext >&5
8825 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
8827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8828 LIBS=$ac_check_lib_save_LIBS
8830 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
8831 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
8832 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
8834 cat >>confdefs.h <<\_ACEOF
8835 #define X_THREAD_SUPPORT 1
8840 LDFLAGS="$our_saved_LDFLAGS"
8844 if test "x$no_x" = "xyes"; then
8852 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
8855 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8857 echo "$as_me:$LINENO: checking for X" >&5
8858 echo $ECHO_N "checking for X... $ECHO_C" >&6
8859 if test "$no_x" != "yes" ; then
8861 cat >>confdefs.h <<\_ACEOF
8865 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
8866 ctlib_graphics="$ctlibs_base -lctgraphics"
8867 echo "$as_me:$LINENO: result: yes" >&5
8868 echo "${ECHO_T}yes" >&6
8869 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
8870 if test "$libgl" = "true" ; then
8871 ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
8872 if test "$wxwin" = "true" ; then
8873 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.2"
8876 if test "$wxwin" = "true" ; then
8878 cat >>confdefs.h <<\_ACEOF
8893 echo "$as_me:$LINENO: result: no" >&5
8894 echo "${ECHO_T}no" >&6
8897 if test "$png" = "true" ; then
8898 ctlibs_tools="$ctlibs_tools -lpng"
8900 if test "$zlib" = "true" ; then
8901 ctlibs_tools="$ctlibs_tools -lz"
8903 if test "$fftw" = "true" ; then
8904 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
8906 if test "$ctn" = "true"; then
8907 ctlibs_tools="$ctlibs_tools -lctn"
8910 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
8911 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
8912 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 ac_check_lib_save_LIBS=$LIBS
8916 LIBS="-ldmallocxx $LIBS"
8917 cat >conftest.$ac_ext <<_ACEOF
8918 #line $LINENO "configure"
8919 #include "confdefs.h"
8922 #ifdef F77_DUMMY_MAIN
8926 int F77_DUMMY_MAIN() { return 1; }
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938 (eval $ac_link) 2>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -s conftest$ac_exeext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 ac_cv_lib_dmallocxx_main=yes
8950 echo "$as_me: failed program was:" >&5
8951 cat conftest.$ac_ext >&5
8952 ac_cv_lib_dmallocxx_main=no
8954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8955 LIBS=$ac_check_lib_save_LIBS
8957 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
8958 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
8959 if test $ac_cv_lib_dmallocxx_main = yes; then
8965 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
8966 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
8967 # Check whether --enable-dmalloc or --disable-dmalloc was given.
8968 if test "${enable_dmalloc+set}" = set; then
8969 enableval="$enable_dmalloc"
8970 case "${enableval}" in
8971 yes) usedmalloc=true
8972 echo "$as_me:$LINENO: result: yes" >&5
8973 echo "${ECHO_T}yes" >&6
8975 no) usedmalloc=false
8976 echo "$as_me:$LINENO: result: no" >&5
8977 echo "${ECHO_T}no" >&6
8979 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
8980 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
8984 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
8985 echo "${ECHO_T}no" >&6
8988 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
8989 ctlibs_tools="$ctlibs_tools -ldmallocxx"
8991 cat >>confdefs.h <<\_ACEOF
8992 #define HAVE_DMALLOC 1
8995 echo "$as_me:$LINENO: result: Using dmalloc" >&5
8996 echo "${ECHO_T}Using dmalloc" >&6
8999 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9000 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9001 if test "${ac_cv_lib_efence_main+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 ac_check_lib_save_LIBS=$LIBS
9005 LIBS="-lefence $LIBS"
9006 cat >conftest.$ac_ext <<_ACEOF
9007 #line $LINENO "configure"
9008 #include "confdefs.h"
9011 #ifdef F77_DUMMY_MAIN
9015 int F77_DUMMY_MAIN() { return 1; }
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027 (eval $ac_link) 2>&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -s conftest$ac_exeext'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
9037 ac_cv_lib_efence_main=yes
9039 echo "$as_me: failed program was:" >&5
9040 cat conftest.$ac_ext >&5
9041 ac_cv_lib_efence_main=no
9043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9044 LIBS=$ac_check_lib_save_LIBS
9046 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9047 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9048 if test $ac_cv_lib_efence_main = yes; then
9054 echo "$as_me:$LINENO: checking for enable-efence" >&5
9055 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9056 # Check whether --enable-efence or --disable-efence was given.
9057 if test "${enable_efence+set}" = set; then
9058 enableval="$enable_efence"
9059 case "${enableval}" in
9061 echo "$as_me:$LINENO: result: yes" >&5
9062 echo "${ECHO_T}yes" >&6
9065 echo "$as_me:$LINENO: result: no" >&5
9066 echo "${ECHO_T}no" >&6
9068 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9069 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9073 useefence=false; echo "$as_me:$LINENO: result: no" >&5
9074 echo "${ECHO_T}no" >&6
9077 if test "$efence" = "true" -a "$useefence" = "true" ; then
9078 ctlibs_tools="$ctlibs_tools -lefence"
9080 cat >>confdefs.h <<\_ACEOF
9081 #define HAVE_EFENCE 1
9084 echo "$as_me:$LINENO: result: Using efence" >&5
9085 echo "${ECHO_T}Using efence" >&6
9088 if test "$wxwin" = "true" ; then
9089 if test "$wx_gtk" = "true" ; then
9090 wxcflags=`$wxconfig --cflags`
9091 wxlibs=`$wxconfig --libs`
9093 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9094 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9096 CFLAGS="$CFLAGS -I../include $wxcflags"
9097 ctlib_graphics="$ctlib_graphics $wxlibs"
9101 HAVE_WXWINDOWS_TRUE=
9102 HAVE_WXWINDOWS_FALSE='#'
9104 HAVE_WXWINDOWS_TRUE='#'
9105 HAVE_WXWINDOWS_FALSE=
9111 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9112 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9115 if test -n "$lamdir" ; then
9116 lamprograms="ctsimtext-lam"
9124 ac_config_files="$ac_config_files Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile 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"
9126 cat >confcache <<\_ACEOF
9127 # This file is a shell script that caches the results of configure
9128 # tests run on this system so they can be shared between configure
9129 # scripts and configure runs, see configure's option --config-cache.
9130 # It is not useful on other systems. If it contains results you don't
9131 # want to keep, you may remove or edit it.
9133 # config.status only pays attention to the cache file if you give it
9134 # the --recheck option to rerun configure.
9136 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9137 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9142 # The following way of writing the cache mishandles newlines in values,
9143 # but we know of no workaround that is simple, portable, and efficient.
9144 # So, don't put newlines in cache variables' values.
9145 # Ultrix sh set writes to stderr and can't be redirected directly,
9146 # and sets the high bit in the cache file unless we assign to the vars.
9149 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9151 # `set' does not quote correctly, so add quotes (double-quote
9152 # substitution turns \\\\ into \\, and sed turns \\ into \).
9155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9158 # `set' quotes correctly as required by POSIX, so do not add quotes.
9160 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9167 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9169 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9171 if cmp -s $cache_file confcache; then :; else
9172 if test -w $cache_file; then
9173 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9174 cat confcache >$cache_file
9176 echo "not updating unwritable cache $cache_file"
9181 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9182 # Let make expand exec_prefix.
9183 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9185 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9186 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9187 # trailing colons and then remove the whole line if VPATH becomes empty
9188 # (actually we leave an empty line to preserve line numbers).
9189 if test "x$srcdir" = x.; then
9190 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9191 s/:*\$(srcdir):*/:/;
9192 s/:*\${srcdir}:*/:/;
9194 s/^\([^=]*=[ ]*\):*/\1/;
9200 DEFS=-DHAVE_CONFIG_H
9203 : ${CONFIG_STATUS=./config.status}
9204 ac_clean_files_save=$ac_clean_files
9205 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9206 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9207 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9208 cat >$CONFIG_STATUS <<_ACEOF
9210 # Generated by $as_me.
9211 # Run this file to recreate the current configuration.
9212 # Compiler output produced by configure, useful for debugging
9213 # configure, is in config.log if it exists.
9216 SHELL=\${CONFIG_SHELL-$SHELL}
9219 cat >>$CONFIG_STATUS <<\_ACEOF
9221 ## --------------------- ##
9222 ## M4sh Initialization. ##
9223 ## --------------------- ##
9225 # Be Bourne compatible
9226 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9229 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9234 # Support unset when possible.
9235 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9241 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9242 { $as_unset LANG || test "${LANG+set}" != set; } ||
9243 { LANG=C; export LANG; }
9244 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9245 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9246 { LC_ALL=C; export LC_ALL; }
9247 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9248 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9249 { LC_TIME=C; export LC_TIME; }
9250 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9251 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9252 { LC_CTYPE=C; export LC_CTYPE; }
9253 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9254 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9255 { LANGUAGE=C; export LANGUAGE; }
9256 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9257 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9258 { LC_COLLATE=C; export LC_COLLATE; }
9259 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9260 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9261 { LC_NUMERIC=C; export LC_NUMERIC; }
9262 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9263 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9264 { LC_MESSAGES=C; export LC_MESSAGES; }
9267 # Name of the executable.
9268 as_me=`(basename "$0") 2>/dev/null ||
9269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9270 X"$0" : 'X\(//\)$' \| \
9271 X"$0" : 'X\(/\)$' \| \
9272 . : '\(.\)' 2>/dev/null ||
9274 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9275 /^X\/\(\/\/\)$/{ s//\1/; q; }
9276 /^X\/\(\/\).*/{ s//\1/; q; }
9279 # PATH needs CR, and LINENO needs CR and PATH.
9280 # Avoid depending upon Character Ranges.
9281 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9282 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9283 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9284 as_cr_digits='0123456789'
9285 as_cr_alnum=$as_cr_Letters$as_cr_digits
9287 # The user is always right.
9288 if test "${PATH_SEPARATOR+set}" != set; then
9289 echo "#! /bin/sh" >conftest.sh
9290 echo "exit 0" >>conftest.sh
9291 chmod +x conftest.sh
9292 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9303 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9304 test "x$as_lineno_1" != "x$as_lineno_2" &&
9305 test "x$as_lineno_3" = "x$as_lineno_2" || {
9306 # Find who we are. Look in the path if we contain no path at all
9309 *[\\/]* ) as_myself=$0 ;;
9310 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 test -z "$as_dir" && as_dir=.
9315 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9320 # We did not find ourselves, most probably we were run as `sh COMMAND'
9321 # in which case we are not to be found in the path.
9322 if test "x$as_myself" = x; then
9325 if test ! -f "$as_myself"; then
9326 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9327 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9328 { (exit 1); exit 1; }; }
9330 case $CONFIG_SHELL in
9332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9336 test -z "$as_dir" && as_dir=.
9337 for as_base in sh bash ksh sh5; do
9340 if ("$as_dir/$as_base" -c '
9343 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9344 test "x$as_lineno_1" != "x$as_lineno_2" &&
9345 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9346 CONFIG_SHELL=$as_dir/$as_base
9348 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9356 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9357 # uniformly replaced by the line number. The first 'sed' inserts a
9358 # line-number line before each line; the second 'sed' does the real
9359 # work. The second script uses 'N' to pair each line-number line
9360 # with the numbered line, and appends trailing '-' during
9361 # substitution so that $LINENO is not a special case at line end.
9362 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9363 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9364 sed '=' <$as_myself |
9369 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9372 s,^['$as_cr_digits']*\n,,
9374 chmod +x $as_me.lineno ||
9375 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9376 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9377 { (exit 1); exit 1; }; }
9379 # Don't try to exec as it changes $[0], causing all sort of problems
9380 # (the dirname of $[0] is not the place where we might find the
9381 # original and so on. Autoconf is especially sensible to this).
9383 # Exit status is that of the last command.
9388 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9389 *c*,-n*) ECHO_N= ECHO_C='
9391 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9392 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9395 if expr a : '\(a\)' >/dev/null 2>&1; then
9401 rm -f conf$$ conf$$.exe conf$$.file
9403 if ln -s conf$$.file conf$$ 2>/dev/null; then
9404 # We could just check for DJGPP; but this test a) works b) is more generic
9405 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9406 if test -f conf$$.exe; then
9407 # Don't use ln at all; we don't have any links
9412 elif ln conf$$.file conf$$ 2>/dev/null; then
9417 rm -f conf$$ conf$$.exe conf$$.file
9419 as_executable_p="test -f"
9421 # Sed expression to map a string onto a valid CPP name.
9422 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9424 # Sed expression to map a string onto a valid variable name.
9425 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9429 # We need space, tab and new line, in precisely that order.
9435 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9439 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9440 # report actual input values of CONFIG_FILES etc. instead of their
9441 # values after options handling. Logging --version etc. is OK.
9445 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9446 ## Running $as_me. ##
9451 This file was extended by $as_me, which was
9452 generated by GNU Autoconf 2.53. Invocation command line was
9454 CONFIG_FILES = $CONFIG_FILES
9455 CONFIG_HEADERS = $CONFIG_HEADERS
9456 CONFIG_LINKS = $CONFIG_LINKS
9457 CONFIG_COMMANDS = $CONFIG_COMMANDS
9461 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9465 # Files that config.status was made for.
9466 if test -n "$ac_config_files"; then
9467 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9470 if test -n "$ac_config_headers"; then
9471 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9474 if test -n "$ac_config_links"; then
9475 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9478 if test -n "$ac_config_commands"; then
9479 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9482 cat >>$CONFIG_STATUS <<\_ACEOF
9485 \`$as_me' instantiates files from templates according to the
9486 current configuration.
9488 Usage: $0 [OPTIONS] [FILE]...
9490 -h, --help print this help, then exit
9491 -V, --version print version number, then exit
9492 -d, --debug don't remove temporary files
9493 --recheck update $as_me by reconfiguring in the same conditions
9494 --file=FILE[:TEMPLATE]
9495 instantiate the configuration file FILE
9496 --header=FILE[:TEMPLATE]
9497 instantiate the configuration header FILE
9499 Configuration files:
9502 Configuration headers:
9505 Configuration commands:
9508 Report bugs to <bug-autoconf@gnu.org>."
9511 cat >>$CONFIG_STATUS <<_ACEOF
9514 configured by $0, generated by GNU Autoconf 2.53,
9515 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9517 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9518 Free Software Foundation, Inc.
9519 This config.status script is free software; the Free Software Foundation
9520 gives unlimited permission to copy, distribute and modify it."
9525 cat >>$CONFIG_STATUS <<\_ACEOF
9526 # If no file are specified by the user, then we need to provide default
9527 # value. By we need to know if files were specified by the user.
9533 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9534 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9536 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9540 *) # This is not an option, so the user has probably given explicit
9542 ac_need_defaults=false;;
9546 # Handling of the options.
9548 cat >>$CONFIG_STATUS <<_ACEOF
9549 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9550 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9551 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9553 cat >>$CONFIG_STATUS <<\_ACEOF
9554 --version | --vers* | -V )
9555 echo "$ac_cs_version"; exit 0 ;;
9557 # Conflict between --help and --header
9558 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9559 Try \`$0 --help' for more information." >&5
9560 echo "$as_me: error: ambiguous option: $1
9561 Try \`$0 --help' for more information." >&2;}
9562 { (exit 1); exit 1; }; };;
9563 --help | --hel | -h )
9564 echo "$ac_cs_usage"; exit 0 ;;
9565 --debug | --d* | -d )
9567 --file | --fil | --fi | --f )
9569 CONFIG_FILES="$CONFIG_FILES $1"
9570 ac_need_defaults=false;;
9571 --header | --heade | --head | --hea )
9573 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9574 ac_need_defaults=false;;
9577 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9578 Try \`$0 --help' for more information." >&5
9579 echo "$as_me: error: unrecognized option: $1
9580 Try \`$0 --help' for more information." >&2;}
9581 { (exit 1); exit 1; }; } ;;
9583 *) ac_config_targets="$ac_config_targets $1" ;;
9591 cat >>$CONFIG_STATUS <<_ACEOF
9593 # INIT-COMMANDS section.
9602 cat >>$CONFIG_STATUS <<\_ACEOF
9603 for ac_config_target in $ac_config_targets
9605 case "$ac_config_target" in
9606 # Handling of arguments.
9607 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9608 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
9609 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
9610 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
9611 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9612 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9613 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
9614 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
9615 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
9616 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
9617 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9618 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
9619 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
9620 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
9621 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9622 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9623 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
9624 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
9625 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9626 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9627 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9628 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9629 { (exit 1); exit 1; }; };;
9633 # If the user did not use the arguments to specify the items to instantiate,
9634 # then the envvar interface is used. Set only those that are not.
9635 # We use the long form for the default assignment because of an extremely
9636 # bizarre bug on SunOS 4.1.3.
9637 if $ac_need_defaults; then
9638 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9639 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9640 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9643 # Create a temporary directory, and hook for its removal unless debugging.
9646 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9647 trap '{ (exit 1); exit 1; }' 1 2 13 15
9650 # Create a (secure) tmp directory for tmp files.
9653 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9654 test -n "$tmp" && test -d "$tmp"
9657 tmp=$TMPDIR/cs$$-$RANDOM
9658 (umask 077 && mkdir $tmp)
9661 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9662 { (exit 1); exit 1; }
9667 cat >>$CONFIG_STATUS <<_ACEOF
9670 # CONFIG_FILES section.
9673 # No need to generate the scripts if there are no CONFIG_FILES.
9674 # This happens for instance when ./config.status config.h
9675 if test -n "\$CONFIG_FILES"; then
9676 # Protect against being on the right side of a sed subst in config.status.
9677 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9678 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9679 s,@SHELL@,$SHELL,;t t
9680 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9681 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9682 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9683 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9684 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9685 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9686 s,@exec_prefix@,$exec_prefix,;t t
9687 s,@prefix@,$prefix,;t t
9688 s,@program_transform_name@,$program_transform_name,;t t
9689 s,@bindir@,$bindir,;t t
9690 s,@sbindir@,$sbindir,;t t
9691 s,@libexecdir@,$libexecdir,;t t
9692 s,@datadir@,$datadir,;t t
9693 s,@sysconfdir@,$sysconfdir,;t t
9694 s,@sharedstatedir@,$sharedstatedir,;t t
9695 s,@localstatedir@,$localstatedir,;t t
9696 s,@libdir@,$libdir,;t t
9697 s,@includedir@,$includedir,;t t
9698 s,@oldincludedir@,$oldincludedir,;t t
9699 s,@infodir@,$infodir,;t t
9700 s,@mandir@,$mandir,;t t
9701 s,@build_alias@,$build_alias,;t t
9702 s,@host_alias@,$host_alias,;t t
9703 s,@target_alias@,$target_alias,;t t
9705 s,@ECHO_C@,$ECHO_C,;t t
9706 s,@ECHO_N@,$ECHO_N,;t t
9707 s,@ECHO_T@,$ECHO_T,;t t
9709 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9710 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9711 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9712 s,@PACKAGE@,$PACKAGE,;t t
9713 s,@VERSION@,$VERSION,;t t
9714 s,@ACLOCAL@,$ACLOCAL,;t t
9715 s,@AUTOCONF@,$AUTOCONF,;t t
9716 s,@AUTOMAKE@,$AUTOMAKE,;t t
9717 s,@AUTOHEADER@,$AUTOHEADER,;t t
9718 s,@MAKEINFO@,$MAKEINFO,;t t
9719 s,@SET_MAKE@,$SET_MAKE,;t t
9721 s,@RANLIB@,$RANLIB,;t t
9722 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9724 s,@CFLAGS@,$CFLAGS,;t t
9725 s,@LDFLAGS@,$LDFLAGS,;t t
9726 s,@CPPFLAGS@,$CPPFLAGS,;t t
9727 s,@ac_ct_CC@,$ac_ct_CC,;t t
9728 s,@EXEEXT@,$EXEEXT,;t t
9729 s,@OBJEXT@,$OBJEXT,;t t
9731 s,@CXXFLAGS@,$CXXFLAGS,;t t
9732 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9733 s,@wxconfig@,$wxconfig,;t t
9734 s,@build@,$build,;t t
9735 s,@build_cpu@,$build_cpu,;t t
9736 s,@build_vendor@,$build_vendor,;t t
9737 s,@build_os@,$build_os,;t t
9739 s,@host_cpu@,$host_cpu,;t t
9740 s,@host_vendor@,$host_vendor,;t t
9741 s,@host_os@,$host_os,;t t
9743 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
9744 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
9745 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
9746 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
9747 s,@lamdir@,$lamdir,;t t
9748 s,@mpienable@,$mpienable,;t t
9749 s,@cgibindir@,$cgibindir,;t t
9750 s,@cgibinurl@,$cgibinurl,;t t
9751 s,@webdatadir@,$webdatadir,;t t
9752 s,@webdataurl@,$webdataurl,;t t
9753 s,@htmldir@,$htmldir,;t t
9754 s,@cgiprograms@,$cgiprograms,;t t
9755 s,@htmldata@,$htmldata,;t t
9756 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
9757 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
9758 s,@webenabled@,$webenabled,;t t
9759 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
9760 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
9761 s,@X_CFLAGS@,$X_CFLAGS,;t t
9762 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9763 s,@X_LIBS@,$X_LIBS,;t t
9764 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9765 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
9766 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
9767 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
9768 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
9769 s,@my_includes@,$my_includes,;t t
9770 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
9771 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
9772 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
9773 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
9774 s,@wxcflags@,$wxcflags,;t t
9775 s,@wxlibs@,$wxlibs,;t t
9776 s,@ctlibs@,$ctlibs,;t t
9777 s,@lamprograms@,$lamprograms,;t t
9778 s,@lamdefs@,$lamdefs,;t t
9783 cat >>$CONFIG_STATUS <<\_ACEOF
9784 # Split the substitutions into bite-sized pieces for seds with
9785 # small command number limits, like on Digital OSF/1 and HP-UX.
9787 ac_sed_frag=1 # Number of current file.
9788 ac_beg=1 # First line for current file.
9789 ac_end=$ac_max_sed_lines # Line after last line for current file.
9792 while $ac_more_lines; do
9793 if test $ac_beg -gt 1; then
9794 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9796 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9798 if test ! -s $tmp/subs.frag; then
9801 # The purpose of the label and of the branching condition is to
9802 # speed up the sed processing (if there are no `@' at all, there
9803 # is no need to browse any of the substitutions).
9804 # These are the two extra sed commands mentioned above.
9806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9807 if test -z "$ac_sed_cmds"; then
9808 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9810 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9812 ac_sed_frag=`expr $ac_sed_frag + 1`
9814 ac_end=`expr $ac_end + $ac_max_sed_lines`
9817 if test -z "$ac_sed_cmds"; then
9820 fi # test -n "$CONFIG_FILES"
9823 cat >>$CONFIG_STATUS <<\_ACEOF
9824 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9825 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9827 - | *:- | *:-:* ) # input from stdin
9829 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9830 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9831 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9832 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9833 * ) ac_file_in=$ac_file.in ;;
9836 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9837 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9839 X"$ac_file" : 'X\(//\)[^/]' \| \
9840 X"$ac_file" : 'X\(//\)$' \| \
9841 X"$ac_file" : 'X\(/\)' \| \
9842 . : '\(.\)' 2>/dev/null ||
9844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9846 /^X\(\/\/\)$/{ s//\1/; q; }
9847 /^X\(\/\).*/{ s//\1/; q; }
9850 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9854 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9855 case $as_mkdir_dir in
9856 # Skip DOS drivespec
9857 ?:) as_incr_dir=$as_mkdir_dir ;;
9859 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9860 test -d "$as_incr_dir" ||
9861 mkdir "$as_incr_dir" ||
9862 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9863 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9864 { (exit 1); exit 1; }; }
9871 if test "$ac_dir" != .; then
9872 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9873 # A "../" for each directory in $ac_dir_suffix.
9874 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9876 ac_dir_suffix= ac_top_builddir=
9880 .) # No --srcdir option. We are building in place.
9882 if test -z "$ac_top_builddir"; then
9885 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9887 [\\/]* | ?:[\\/]* ) # Absolute path.
9888 ac_srcdir=$srcdir$ac_dir_suffix;
9889 ac_top_srcdir=$srcdir ;;
9891 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9892 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9894 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9896 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9897 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9898 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9899 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9903 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9904 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9907 if test x"$ac_file" != x-; then
9908 { echo "$as_me:$LINENO: creating $ac_file" >&5
9909 echo "$as_me: creating $ac_file" >&6;}
9912 # Let's still pretend it is `configure' which instantiates (i.e., don't
9913 # use $as_me), people would be surprised to read:
9914 # /* config.h. Generated by config.status. */
9915 if test x"$ac_file" = x-; then
9918 configure_input="$ac_file. "
9920 configure_input=$configure_input"Generated from `echo $ac_file_in |
9921 sed 's,.*/,,'` by configure."
9923 # First look for the input files in the build tree, otherwise in the
9925 ac_file_inputs=`IFS=:
9926 for f in $ac_file_in; do
9928 -) echo $tmp/stdin ;;
9930 # Absolute (can't be DOS-style, as IFS=:)
9931 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9932 echo "$as_me: error: cannot find input file: $f" >&2;}
9933 { (exit 1); exit 1; }; }
9936 if test -f "$f"; then
9939 elif test -f "$srcdir/$f"; then
9944 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9945 echo "$as_me: error: cannot find input file: $f" >&2;}
9946 { (exit 1); exit 1; }; }
9949 done` || { (exit 1); exit 1; }
9951 cat >>$CONFIG_STATUS <<_ACEOF
9955 cat >>$CONFIG_STATUS <<\_ACEOF
9957 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9958 s,@configure_input@,$configure_input,;t t
9959 s,@srcdir@,$ac_srcdir,;t t
9960 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9961 s,@top_srcdir@,$ac_top_srcdir,;t t
9962 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9963 s,@builddir@,$ac_builddir,;t t
9964 s,@abs_builddir@,$ac_abs_builddir,;t t
9965 s,@top_builddir@,$ac_top_builddir,;t t
9966 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9967 s,@INSTALL@,$ac_INSTALL,;t t
9968 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9970 if test x"$ac_file" != x-; then
9971 mv $tmp/out $ac_file
9979 cat >>$CONFIG_STATUS <<\_ACEOF
9982 # CONFIG_HEADER section.
9985 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9986 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9988 # ac_d sets the value in "#define NAME VALUE" lines.
9989 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9990 ac_dB='[ ].*$,\1#\2'
9993 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9994 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9995 ac_uB='$,\1#\2define\3'
9999 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10000 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10002 - | *:- | *:-:* ) # input from stdin
10004 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10005 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10006 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10007 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10008 * ) ac_file_in=$ac_file.in ;;
10011 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10012 echo "$as_me: creating $ac_file" >&6;}
10014 # First look for the input files in the build tree, otherwise in the
10016 ac_file_inputs=`IFS=:
10017 for f in $ac_file_in; do
10019 -) echo $tmp/stdin ;;
10021 # Absolute (can't be DOS-style, as IFS=:)
10022 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10023 echo "$as_me: error: cannot find input file: $f" >&2;}
10024 { (exit 1); exit 1; }; }
10027 if test -f "$f"; then
10030 elif test -f "$srcdir/$f"; then
10035 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10036 echo "$as_me: error: cannot find input file: $f" >&2;}
10037 { (exit 1); exit 1; }; }
10040 done` || { (exit 1); exit 1; }
10041 # Remove the trailing spaces.
10042 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10046 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10047 # `conftest.undefs', that substitutes the proper values into
10048 # config.h.in to produce config.h. The first handles `#define'
10049 # templates, and the second `#undef' templates.
10050 # And first: Protect against being on the right side of a sed subst in
10051 # config.status. Protect against being in an unquoted here document
10052 # in config.status.
10053 rm -f conftest.defines conftest.undefs
10054 # Using a here document instead of a string reduces the quoting nightmare.
10055 # Putting comments in sed scripts is not portable.
10057 # `end' is used to avoid that the second main sed command (meant for
10058 # 0-ary CPP macros) applies to n-ary macro definitions.
10059 # See the Autoconf documentation for `clear'.
10060 cat >confdef2sed.sed <<\_ACEOF
10065 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10067 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10070 # If some macros were called several times there might be several times
10071 # the same #defines, which is useless. Nevertheless, we may not want to
10072 # sort them, since we want the *last* AC-DEFINE to be honored.
10073 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10074 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10075 rm -f confdef2sed.sed
10077 # This sed command replaces #undef with comments. This is necessary, for
10078 # example, in the case of _POSIX_SOURCE, which is predefined and required
10079 # on some systems where configure will not decide to define it.
10080 cat >>conftest.undefs <<\_ACEOF
10081 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10084 # Break up conftest.defines because some shells have a limit on the size
10085 # of here documents, and old seds have small limits too (100 cmds).
10086 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10087 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10088 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10089 echo ' :' >>$CONFIG_STATUS
10090 rm -f conftest.tail
10091 while grep . conftest.defines >/dev/null
10093 # Write a limited-size here document to $tmp/defines.sed.
10094 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10095 # Speed up: don't consider the non `#define' lines.
10096 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10097 # Work around the forget-to-reset-the-flag bug.
10098 echo 't clr' >>$CONFIG_STATUS
10099 echo ': clr' >>$CONFIG_STATUS
10100 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10102 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10104 mv $tmp/out $tmp/in
10106 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10107 rm -f conftest.defines
10108 mv conftest.tail conftest.defines
10110 rm -f conftest.defines
10111 echo ' fi # egrep' >>$CONFIG_STATUS
10112 echo >>$CONFIG_STATUS
10114 # Break up conftest.undefs because some shells have a limit on the size
10115 # of here documents, and old seds have small limits too (100 cmds).
10116 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10117 rm -f conftest.tail
10118 while grep . conftest.undefs >/dev/null
10120 # Write a limited-size here document to $tmp/undefs.sed.
10121 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10122 # Speed up: don't consider the non `#undef'
10123 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10124 # Work around the forget-to-reset-the-flag bug.
10125 echo 't clr' >>$CONFIG_STATUS
10126 echo ': clr' >>$CONFIG_STATUS
10127 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10129 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10131 mv $tmp/out $tmp/in
10133 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10134 rm -f conftest.undefs
10135 mv conftest.tail conftest.undefs
10137 rm -f conftest.undefs
10139 cat >>$CONFIG_STATUS <<\_ACEOF
10140 # Let's still pretend it is `configure' which instantiates (i.e., don't
10141 # use $as_me), people would be surprised to read:
10142 # /* config.h. Generated by config.status. */
10143 if test x"$ac_file" = x-; then
10144 echo "/* Generated by configure. */" >$tmp/config.h
10146 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10148 cat $tmp/in >>$tmp/config.h
10150 if test x"$ac_file" != x-; then
10151 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10152 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10153 echo "$as_me: $ac_file is unchanged" >&6;}
10155 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10156 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10157 X"$ac_file" : 'X\(//\)[^/]' \| \
10158 X"$ac_file" : 'X\(//\)$' \| \
10159 X"$ac_file" : 'X\(/\)' \| \
10160 . : '\(.\)' 2>/dev/null ||
10162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10164 /^X\(\/\/\)$/{ s//\1/; q; }
10165 /^X\(\/\).*/{ s//\1/; q; }
10167 { case "$ac_dir" in
10168 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10172 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10173 case $as_mkdir_dir in
10174 # Skip DOS drivespec
10175 ?:) as_incr_dir=$as_mkdir_dir ;;
10177 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10178 test -d "$as_incr_dir" ||
10179 mkdir "$as_incr_dir" ||
10180 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10181 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10182 { (exit 1); exit 1; }; }
10188 mv $tmp/config.h $ac_file
10192 rm -f $tmp/config.h
10196 cat >>$CONFIG_STATUS <<\_ACEOF
10199 # CONFIG_COMMANDS section.
10201 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10202 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10203 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10204 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10205 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10206 X"$ac_dest" : 'X\(//\)[^/]' \| \
10207 X"$ac_dest" : 'X\(//\)$' \| \
10208 X"$ac_dest" : 'X\(/\)' \| \
10209 . : '\(.\)' 2>/dev/null ||
10211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10213 /^X\(\/\/\)$/{ s//\1/; q; }
10214 /^X\(\/\).*/{ s//\1/; q; }
10218 if test "$ac_dir" != .; then
10219 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10220 # A "../" for each directory in $ac_dir_suffix.
10221 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10223 ac_dir_suffix= ac_top_builddir=
10227 .) # No --srcdir option. We are building in place.
10229 if test -z "$ac_top_builddir"; then
10232 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10234 [\\/]* | ?:[\\/]* ) # Absolute path.
10235 ac_srcdir=$srcdir$ac_dir_suffix;
10236 ac_top_srcdir=$srcdir ;;
10237 *) # Relative path.
10238 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10239 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10241 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10243 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10244 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10245 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10246 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10249 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10250 echo "$as_me: executing $ac_dest commands" >&6;}
10252 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10257 cat >>$CONFIG_STATUS <<\_ACEOF
10259 { (exit 0); exit 0; }
10261 chmod +x $CONFIG_STATUS
10262 ac_clean_files=$ac_clean_files_save
10265 # configure is writing to config.log, and then calls config.status.
10266 # config.status does its own redirection, appending to config.log.
10267 # Unfortunately, on DOS this fails, as config.log is still kept open
10268 # by configure, so config.status won't be able to write to it; its
10269 # output is simply discarded. So we exec the FD to /dev/null,
10270 # effectively closing config.log, so it can be properly (re)opened and
10271 # appended to by config.status. When coming back to configure, we
10272 # need to make the FD available again.
10273 if test "$no_create" != yes; then
10276 $SHELL $CONFIG_STATUS || ac_cs_success=false
10278 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10279 # would make configure fail if this is the last instruction.
10280 $ac_cs_success || { (exit 1); exit 1; }