3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-verbose-warnings
16 Enable verbose compiler warnings."
18 --enable-debug Turn on debugging"
20 --with-lam[=PATH] Set path of LAM MPI "
22 --with-cgibin-dir=PATH Set path of CGI binaries directory "
24 --with-cgibin-url=PATH Set URL path of CGI binaries "
26 --with-webdata-dir=PATH Set path of webdata"
28 --with-webdata-url=PATH Set URL path of webdata"
30 --with-html-dir=PATH Set directory of html files"
32 --with-x use the X Window System"
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
38 cache_file=./config.cache
47 program_transform_name=s,x,x,
55 bindir='${exec_prefix}/bin'
56 sbindir='${exec_prefix}/sbin'
57 libexecdir='${exec_prefix}/libexec'
58 datadir='${prefix}/share'
59 sysconfdir='${prefix}/etc'
60 sharedstatedir='${prefix}/com'
61 localstatedir='${prefix}/var'
62 libdir='${exec_prefix}/lib'
63 includedir='${prefix}/include'
64 oldincludedir='/usr/include'
65 infodir='${prefix}/info'
66 mandir='${prefix}/man'
68 # Initialize some other variables.
71 SHELL=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
100 -build | --build | --buil | --bui | --bu)
102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103 build="$ac_optarg" ;;
105 -cache-file | --cache-file | --cache-fil | --cache-fi \
106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107 ac_prev=cache_file ;;
108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110 cache_file="$ac_optarg" ;;
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116 datadir="$ac_optarg" ;;
118 -disable-* | --disable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* | --enable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142 | --exec | --exe | --ex)
143 ac_prev=exec_prefix ;;
144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146 | --exec=* | --exe=* | --ex=*)
147 exec_prefix="$ac_optarg" ;;
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
153 -help | --help | --hel | --he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host | --host | --hos | --ho)
210 -host=* | --host=* | --hos=* | --ho=*)
213 -includedir | --includedir | --includedi | --included | --include \
214 | --includ | --inclu | --incl | --inc)
215 ac_prev=includedir ;;
216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217 | --includ=* | --inclu=* | --incl=* | --inc=*)
218 includedir="$ac_optarg" ;;
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
225 -libdir | --libdir | --libdi | --libd)
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231 | --libexe | --libex | --libe)
232 ac_prev=libexecdir ;;
233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234 | --libexe=* | --libex=* | --libe=*)
235 libexecdir="$ac_optarg" ;;
237 -localstatedir | --localstatedir | --localstatedi | --localstated \
238 | --localstate | --localstat | --localsta | --localst \
239 | --locals | --local | --loca | --loc | --lo)
240 ac_prev=localstatedir ;;
241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244 localstatedir="$ac_optarg" ;;
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265 | --oldin | --oldi | --old | --ol | --o)
266 ac_prev=oldincludedir ;;
267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270 oldincludedir="$ac_optarg" ;;
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
278 | --program-pre | --program-pr | --program-p)
279 ac_prev=program_prefix ;;
280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282 program_prefix="$ac_optarg" ;;
284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
285 | --program-suf | --program-su | --program-s)
286 ac_prev=program_suffix ;;
287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289 program_suffix="$ac_optarg" ;;
291 -program-transform-name | --program-transform-name \
292 | --program-transform-nam | --program-transform-na \
293 | --program-transform-n | --program-transform- \
294 | --program-transform | --program-transfor \
295 | --program-transfo | --program-transf \
296 | --program-trans | --program-tran \
297 | --progr-tra | --program-tr | --program-t)
298 ac_prev=program_transform_name ;;
299 -program-transform-name=* | --program-transform-name=* \
300 | --program-transform-nam=* | --program-transform-na=* \
301 | --program-transform-n=* | --program-transform-=* \
302 | --program-transform=* | --program-transfor=* \
303 | --program-transfo=* | --program-transf=* \
304 | --program-trans=* | --program-tran=* \
305 | --progr-tra=* | --program-tr=* | --program-t=*)
306 program_transform_name="$ac_optarg" ;;
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316 sbindir="$ac_optarg" ;;
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327 sharedstatedir="$ac_optarg" ;;
329 -site | --site | --sit)
331 -site=* | --site=* | --sit=*)
334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337 srcdir="$ac_optarg" ;;
339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340 | --syscon | --sysco | --sysc | --sys | --sy)
341 ac_prev=sysconfdir ;;
342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344 sysconfdir="$ac_optarg" ;;
346 -target | --target | --targe | --targ | --tar | --ta | --t)
348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349 target="$ac_optarg" ;;
351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 -version | --version | --versio | --versi | --vers)
355 echo "configure generated by autoconf version 2.13"
359 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* | --without-*)
372 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385 | --x-incl | --x-inc | --x-in | --x-i)
386 ac_prev=x_includes ;;
387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389 x_includes="$ac_optarg" ;;
391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393 ac_prev=x_libraries ;;
394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396 x_libraries="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c) ;;
448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=src/pjrec.cpp
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted=yes
478 # Try the directory containing this script, then its parent.
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE; then
501 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539 ac_n= ac_c='\c' ac_t=
544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
545 if test -f $ac_dir/install-sh; then
547 ac_install_sh="$ac_aux_dir/install-sh -c"
549 elif test -f $ac_dir/install.sh; then
551 ac_install_sh="$ac_aux_dir/install.sh -c"
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
558 ac_config_guess=$ac_aux_dir/config.guess
559 ac_config_sub=$ac_aux_dir/config.sub
560 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
562 # Find a good install program. We prefer a C program (faster),
563 # so one script is as good as another. But avoid the broken or
564 # incompatible versions:
565 # SysV /etc/install, /usr/sbin/install
566 # SunOS /usr/etc/install
569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
572 # ./install, which can be erroneously created by make from ./install.sh.
573 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
574 echo "configure:575: checking for a BSD compatible install" >&5
575 if test -z "$INSTALL"; then
576 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
577 echo $ac_n "(cached) $ac_c" 1>&6
579 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
580 for ac_dir in $PATH; do
581 # Account for people who put trailing slashes in PATH elements.
583 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
585 # OSF1 and SCO ODT 3.0 have their own names for install.
586 # Don't use installbsd from OSF since it installs stuff as root
588 for ac_prog in ginstall scoinst install; do
589 if test -f $ac_dir/$ac_prog; then
590 if test $ac_prog = install &&
591 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
592 # AIX install. It has an incompatible calling convention.
595 ac_cv_path_install="$ac_dir/$ac_prog -c"
606 if test "${ac_cv_path_install+set}" = set; then
607 INSTALL="$ac_cv_path_install"
609 # As a last resort, use the slow shell script. We don't cache a
610 # path for INSTALL within a source directory, because that will
611 # break other packages using the cache if that directory is
612 # removed, or if the path is relative.
613 INSTALL="$ac_install_sh"
616 echo "$ac_t""$INSTALL" 1>&6
618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
619 # It thinks the first close brace ends the variable substitution.
620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
624 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
626 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
627 echo "configure:628: checking whether build environment is sane" >&5
630 echo timestamp > conftestfile
631 # Do `set' in a subshell so we don't clobber the current shell's
632 # arguments. Must try -L first in case configure is actually a
633 # symlink; some systems play weird games with the mod time of symlinks
634 # (eg FreeBSD returns the mod time of the symlink's containing
637 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
638 if test "$*" = "X"; then
640 set X `ls -t $srcdir/configure conftestfile`
642 if test "$*" != "X $srcdir/configure conftestfile" \
643 && test "$*" != "X conftestfile $srcdir/configure"; then
645 # If neither matched, then we have a broken ls. This can happen
646 # if, for instance, CONFIG_SHELL is bash and it inherits a
647 # broken ls alias from the environment. This has actually
648 # happened. Such a system could not be considered "sane".
649 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
650 alias in your environment" 1>&2; exit 1; }
653 test "$2" = conftestfile
659 { echo "configure: error: newly created file is older than distributed files!
660 Check your system clock" 1>&2; exit 1; }
663 echo "$ac_t""yes" 1>&6
664 if test "$program_transform_name" = s,x,x,; then
665 program_transform_name=
667 # Double any \ or $. echo might interpret backslashes.
668 cat <<\EOF_SED > conftestsed
669 s,\\,\\\\,g; s,\$,$$,g
671 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
674 test "$program_prefix" != NONE &&
675 program_transform_name="s,^,${program_prefix},; $program_transform_name"
676 # Use a double $ so make ignores it.
677 test "$program_suffix" != NONE &&
678 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
680 # sed with no file args requires a program.
681 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
683 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
684 echo "configure:685: checking whether ${MAKE-make} sets \${MAKE}" >&5
685 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
686 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
689 cat > conftestmake <<\EOF
691 @echo 'ac_maketemp="${MAKE}"'
693 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
694 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
695 if test -n "$ac_maketemp"; then
696 eval ac_cv_prog_make_${ac_make}_set=yes
698 eval ac_cv_prog_make_${ac_make}_set=no
702 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
703 echo "$ac_t""yes" 1>&6
706 echo "$ac_t""no" 1>&6
707 SET_MAKE="MAKE=${MAKE-make}"
715 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
716 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
718 cat >> confdefs.h <<EOF
719 #define PACKAGE "$PACKAGE"
722 cat >> confdefs.h <<EOF
723 #define VERSION "$VERSION"
728 missing_dir=`cd $ac_aux_dir && pwd`
729 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
730 echo "configure:731: checking for working aclocal" >&5
731 # Run test in a subshell; some versions of sh will print an error if
732 # an executable is not found, even if stderr is redirected.
733 # Redirect stdin to placate older versions of autoconf. Sigh.
734 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
736 echo "$ac_t""found" 1>&6
738 ACLOCAL="$missing_dir/missing aclocal"
739 echo "$ac_t""missing" 1>&6
742 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
743 echo "configure:744: checking for working autoconf" >&5
744 # Run test in a subshell; some versions of sh will print an error if
745 # an executable is not found, even if stderr is redirected.
746 # Redirect stdin to placate older versions of autoconf. Sigh.
747 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
749 echo "$ac_t""found" 1>&6
751 AUTOCONF="$missing_dir/missing autoconf"
752 echo "$ac_t""missing" 1>&6
755 echo $ac_n "checking for working automake""... $ac_c" 1>&6
756 echo "configure:757: checking for working automake" >&5
757 # Run test in a subshell; some versions of sh will print an error if
758 # an executable is not found, even if stderr is redirected.
759 # Redirect stdin to placate older versions of autoconf. Sigh.
760 if (automake --version) < /dev/null > /dev/null 2>&1; then
762 echo "$ac_t""found" 1>&6
764 AUTOMAKE="$missing_dir/missing automake"
765 echo "$ac_t""missing" 1>&6
768 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
769 echo "configure:770: checking for working autoheader" >&5
770 # Run test in a subshell; some versions of sh will print an error if
771 # an executable is not found, even if stderr is redirected.
772 # Redirect stdin to placate older versions of autoconf. Sigh.
773 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
774 AUTOHEADER=autoheader
775 echo "$ac_t""found" 1>&6
777 AUTOHEADER="$missing_dir/missing autoheader"
778 echo "$ac_t""missing" 1>&6
781 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
782 echo "configure:783: checking for working makeinfo" >&5
783 # Run test in a subshell; some versions of sh will print an error if
784 # an executable is not found, even if stderr is redirected.
785 # Redirect stdin to placate older versions of autoconf. Sigh.
786 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
788 echo "$ac_t""found" 1>&6
790 MAKEINFO="$missing_dir/missing makeinfo"
791 echo "$ac_t""missing" 1>&6
799 for ac_prog in gawk mawk nawk awk
801 # Extract the first word of "$ac_prog", so it can be a program name with args.
802 set dummy $ac_prog; ac_word=$2
803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
804 echo "configure:805: checking for $ac_word" >&5
805 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 if test -n "$AWK"; then
809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
813 for ac_dir in $ac_dummy; do
814 test -z "$ac_dir" && ac_dir=.
815 if test -f $ac_dir/$ac_word; then
816 ac_cv_prog_AWK="$ac_prog"
823 AWK="$ac_cv_prog_AWK"
824 if test -n "$AWK"; then
825 echo "$ac_t""$AWK" 1>&6
827 echo "$ac_t""no" 1>&6
830 test -n "$AWK" && break
833 # Find a good install program. We prefer a C program (faster),
834 # so one script is as good as another. But avoid the broken or
835 # incompatible versions:
836 # SysV /etc/install, /usr/sbin/install
837 # SunOS /usr/etc/install
840 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
841 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
842 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
843 # ./install, which can be erroneously created by make from ./install.sh.
844 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
845 echo "configure:846: checking for a BSD compatible install" >&5
846 if test -z "$INSTALL"; then
847 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
851 for ac_dir in $PATH; do
852 # Account for people who put trailing slashes in PATH elements.
854 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
856 # OSF1 and SCO ODT 3.0 have their own names for install.
857 # Don't use installbsd from OSF since it installs stuff as root
859 for ac_prog in ginstall scoinst install; do
860 if test -f $ac_dir/$ac_prog; then
861 if test $ac_prog = install &&
862 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
863 # AIX install. It has an incompatible calling convention.
866 ac_cv_path_install="$ac_dir/$ac_prog -c"
877 if test "${ac_cv_path_install+set}" = set; then
878 INSTALL="$ac_cv_path_install"
880 # As a last resort, use the slow shell script. We don't cache a
881 # path for INSTALL within a source directory, because that will
882 # break other packages using the cache if that directory is
883 # removed, or if the path is relative.
884 INSTALL="$ac_install_sh"
887 echo "$ac_t""$INSTALL" 1>&6
889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
890 # It thinks the first close brace ends the variable substitution.
891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
897 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
898 echo "configure:899: checking whether ${MAKE-make} sets \${MAKE}" >&5
899 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
900 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 cat > conftestmake <<\EOF
905 @echo 'ac_maketemp="${MAKE}"'
907 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
908 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
909 if test -n "$ac_maketemp"; then
910 eval ac_cv_prog_make_${ac_make}_set=yes
912 eval ac_cv_prog_make_${ac_make}_set=no
916 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
917 echo "$ac_t""yes" 1>&6
920 echo "$ac_t""no" 1>&6
921 SET_MAKE="MAKE=${MAKE-make}"
924 # Extract the first word of "ranlib", so it can be a program name with args.
925 set dummy ranlib; ac_word=$2
926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
927 echo "configure:928: checking for $ac_word" >&5
928 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
931 if test -n "$RANLIB"; then
932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
936 for ac_dir in $ac_dummy; do
937 test -z "$ac_dir" && ac_dir=.
938 if test -f $ac_dir/$ac_word; then
939 ac_cv_prog_RANLIB="ranlib"
944 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
947 RANLIB="$ac_cv_prog_RANLIB"
948 if test -n "$RANLIB"; then
949 echo "$ac_t""$RANLIB" 1>&6
951 echo "$ac_t""no" 1>&6
954 # Extract the first word of "gcc", so it can be a program name with args.
955 set dummy gcc; ac_word=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 if test -n "$CC"; then
962 ac_cv_prog_CC="$CC" # Let the user override the test.
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
966 for ac_dir in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
977 if test -n "$CC"; then
978 echo "$ac_t""$CC" 1>&6
980 echo "$ac_t""no" 1>&6
983 if test -z "$CC"; then
984 # Extract the first word of "cc", so it can be a program name with args.
985 set dummy cc; ac_word=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 if test -n "$CC"; then
992 ac_cv_prog_CC="$CC" # Let the user override the test.
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
997 for ac_dir in $ac_dummy; do
998 test -z "$ac_dir" && ac_dir=.
999 if test -f $ac_dir/$ac_word; then
1000 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1001 ac_prog_rejected=yes
1009 if test $ac_prog_rejected = yes; then
1010 # We found a bogon in the path, so make sure we never use it.
1011 set dummy $ac_cv_prog_CC
1013 if test $# -gt 0; then
1014 # We chose a different compiler from the bogus one.
1015 # However, it has the same basename, so the bogon will be chosen
1016 # first if we set CC to just the basename; use the full file name.
1018 set dummy "$ac_dir/$ac_word" "$@"
1026 if test -n "$CC"; then
1027 echo "$ac_t""$CC" 1>&6
1029 echo "$ac_t""no" 1>&6
1032 if test -z "$CC"; then
1033 case "`uname -s`" in
1035 # Extract the first word of "cl", so it can be a program name with args.
1036 set dummy cl; ac_word=$2
1037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1038 echo "configure:1039: checking for $ac_word" >&5
1039 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 if test -n "$CC"; then
1043 ac_cv_prog_CC="$CC" # Let the user override the test.
1045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1047 for ac_dir in $ac_dummy; do
1048 test -z "$ac_dir" && ac_dir=.
1049 if test -f $ac_dir/$ac_word; then
1058 if test -n "$CC"; then
1059 echo "$ac_t""$CC" 1>&6
1061 echo "$ac_t""no" 1>&6
1066 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1069 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1070 echo "configure:1071: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1073 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1074 ac_cpp='$CPP $CPPFLAGS'
1075 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1076 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1077 cross_compiling=$ac_cv_prog_cc_cross
1079 cat > conftest.$ac_ext << EOF
1081 #line 1082 "configure"
1082 #include "confdefs.h"
1086 if { (eval echo configure:1087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1087 ac_cv_prog_cc_works=yes
1088 # If we can't run a trivial program, we are probably using a cross compiler.
1089 if (./conftest; exit) 2>/dev/null; then
1090 ac_cv_prog_cc_cross=no
1092 ac_cv_prog_cc_cross=yes
1095 echo "configure: failed program was:" >&5
1096 cat conftest.$ac_ext >&5
1097 ac_cv_prog_cc_works=no
1101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1102 ac_cpp='$CPP $CPPFLAGS'
1103 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1104 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1105 cross_compiling=$ac_cv_prog_cc_cross
1107 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1108 if test $ac_cv_prog_cc_works = no; then
1109 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1111 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1112 echo "configure:1113: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1113 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1114 cross_compiling=$ac_cv_prog_cc_cross
1116 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether we are using GNU C" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 cat > conftest.c <<EOF
1126 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1133 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1135 if test $ac_cv_prog_gcc = yes; then
1141 ac_test_CFLAGS="${CFLAGS+set}"
1142 ac_save_CFLAGS="$CFLAGS"
1144 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether ${CC-cc} accepts -g" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 echo 'void f(){}' > conftest.c
1150 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1159 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1160 if test "$ac_test_CFLAGS" = set; then
1161 CFLAGS="$ac_save_CFLAGS"
1162 elif test $ac_cv_prog_cc_g = yes; then
1163 if test "$GCC" = yes; then
1169 if test "$GCC" = yes; then
1176 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1178 # Extract the first word of "$ac_prog", so it can be a program name with args.
1179 set dummy $ac_prog; ac_word=$2
1180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1181 echo "configure:1182: checking for $ac_word" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 if test -n "$CXX"; then
1186 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1190 for ac_dir in $ac_dummy; do
1191 test -z "$ac_dir" && ac_dir=.
1192 if test -f $ac_dir/$ac_word; then
1193 ac_cv_prog_CXX="$ac_prog"
1200 CXX="$ac_cv_prog_CXX"
1201 if test -n "$CXX"; then
1202 echo "$ac_t""$CXX" 1>&6
1204 echo "$ac_t""no" 1>&6
1207 test -n "$CXX" && break
1209 test -n "$CXX" || CXX="gcc"
1212 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1216 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1217 ac_cpp='$CXXCPP $CPPFLAGS'
1218 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1219 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1220 cross_compiling=$ac_cv_prog_cxx_cross
1222 cat > conftest.$ac_ext << EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1227 int main(){return(0);}
1229 if { (eval echo configure:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1230 ac_cv_prog_cxx_works=yes
1231 # If we can't run a trivial program, we are probably using a cross compiler.
1232 if (./conftest; exit) 2>/dev/null; then
1233 ac_cv_prog_cxx_cross=no
1235 ac_cv_prog_cxx_cross=yes
1238 echo "configure: failed program was:" >&5
1239 cat conftest.$ac_ext >&5
1240 ac_cv_prog_cxx_works=no
1244 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1245 ac_cpp='$CPP $CPPFLAGS'
1246 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1247 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1248 cross_compiling=$ac_cv_prog_cc_cross
1250 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1251 if test $ac_cv_prog_cxx_works = no; then
1252 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1254 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1256 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1257 cross_compiling=$ac_cv_prog_cxx_cross
1259 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1260 echo "configure:1261: checking whether we are using GNU C++" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 cat > conftest.C <<EOF
1269 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1276 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1278 if test $ac_cv_prog_gxx = yes; then
1284 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1285 ac_save_CXXFLAGS="$CXXFLAGS"
1287 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1288 echo "configure:1289: checking whether ${CXX-g++} accepts -g" >&5
1289 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 echo 'void f(){}' > conftest.cc
1293 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1294 ac_cv_prog_cxx_g=yes
1302 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1303 if test "$ac_test_CXXFLAGS" = set; then
1304 CXXFLAGS="$ac_save_CXXFLAGS"
1305 elif test $ac_cv_prog_cxx_g = yes; then
1306 if test "$GXX" = yes; then
1312 if test "$GXX" = yes; then
1323 # Make sure we can run config.sub.
1324 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1325 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1328 echo $ac_n "checking host system type""... $ac_c" 1>&6
1329 echo "configure:1330: checking host system type" >&5
1332 case "$host_alias" in
1336 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1337 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1339 *) host_alias=$nonopt ;;
1343 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1344 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1345 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1346 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1347 echo "$ac_t""$host" 1>&6
1349 echo $ac_n "checking for inline""... $ac_c" 1>&6
1350 echo "configure:1351: checking for inline" >&5
1351 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1355 for ac_kw in inline __inline__ __inline; do
1356 cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1364 if { (eval echo configure:1365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1366 ac_cv_c_inline=$ac_kw; break
1368 echo "configure: failed program was:" >&5
1369 cat conftest.$ac_ext >&5
1376 echo "$ac_t""$ac_cv_c_inline" 1>&6
1377 case "$ac_cv_c_inline" in
1379 no) cat >> confdefs.h <<\EOF
1383 *) cat >> confdefs.h <<EOF
1384 #define inline $ac_cv_c_inline
1389 echo $ac_n "checking size of short""... $ac_c" 1>&6
1390 echo "configure:1391: checking size of short" >&5
1391 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 if test "$cross_compiling" = yes; then
1395 ac_cv_sizeof_short=2
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1403 FILE *f=fopen("conftestval", "w");
1405 fprintf(f, "%d\n", sizeof(short));
1409 if { (eval echo configure:1410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1411 ac_cv_sizeof_short=`cat conftestval`
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1416 ac_cv_sizeof_short=0
1422 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1423 cat >> confdefs.h <<EOF
1424 #define SIZEOF_SHORT $ac_cv_sizeof_short
1428 echo $ac_n "checking size of int""... $ac_c" 1>&6
1429 echo "configure:1430: checking size of int" >&5
1430 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 if test "$cross_compiling" = yes; then
1436 cat > conftest.$ac_ext <<EOF
1437 #line 1438 "configure"
1438 #include "confdefs.h"
1442 FILE *f=fopen("conftestval", "w");
1444 fprintf(f, "%d\n", sizeof(int));
1448 if { (eval echo configure:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1450 ac_cv_sizeof_int=`cat conftestval`
1452 echo "configure: failed program was:" >&5
1453 cat conftest.$ac_ext >&5
1461 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1462 cat >> confdefs.h <<EOF
1463 #define SIZEOF_INT $ac_cv_sizeof_int
1467 echo $ac_n "checking size of long""... $ac_c" 1>&6
1468 echo "configure:1469: checking size of long" >&5
1469 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1472 if test "$cross_compiling" = yes; then
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1481 FILE *f=fopen("conftestval", "w");
1483 fprintf(f, "%d\n", sizeof(long));
1487 if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1489 ac_cv_sizeof_long=`cat conftestval`
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1500 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1501 cat >> confdefs.h <<EOF
1502 #define SIZEOF_LONG $ac_cv_sizeof_long
1506 echo $ac_n "checking size of float""... $ac_c" 1>&6
1507 echo "configure:1508: checking size of float" >&5
1508 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 if test "$cross_compiling" = yes; then
1512 ac_cv_sizeof_float=4
1514 cat > conftest.$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1520 FILE *f=fopen("conftestval", "w");
1522 fprintf(f, "%d\n", sizeof(float));
1526 if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1528 ac_cv_sizeof_float=`cat conftestval`
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1533 ac_cv_sizeof_float=0
1539 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
1540 cat >> confdefs.h <<EOF
1541 #define SIZEOF_FLOAT $ac_cv_sizeof_float
1545 echo $ac_n "checking size of double""... $ac_c" 1>&6
1546 echo "configure:1547: checking size of double" >&5
1547 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 if test "$cross_compiling" = yes; then
1551 ac_cv_sizeof_double=8
1553 cat > conftest.$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1559 FILE *f=fopen("conftestval", "w");
1561 fprintf(f, "%d\n", sizeof(double));
1565 if { (eval echo configure:1566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1567 ac_cv_sizeof_double=`cat conftestval`
1569 echo "configure: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1572 ac_cv_sizeof_double=0
1578 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1579 cat >> confdefs.h <<EOF
1580 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1588 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1589 echo "configure:1590: checking whether byte ordering is bigendian" >&5
1590 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1593 ac_cv_c_bigendian=unknown
1594 # See if sys/param.h defines the BYTE_ORDER macro.
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1598 #include <sys/types.h>
1599 #include <sys/param.h>
1602 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1607 if { (eval echo configure:1608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1609 # It does; now see whether it defined to BIG_ENDIAN or not.
1610 cat > conftest.$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1613 #include <sys/types.h>
1614 #include <sys/param.h>
1617 #if BYTE_ORDER != BIG_ENDIAN
1622 if { (eval echo configure:1623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1624 ac_cv_c_bigendian=yes
1626 echo "configure: failed program was:" >&5
1627 cat conftest.$ac_ext >&5
1629 ac_cv_c_bigendian=no
1633 echo "configure: failed program was:" >&5
1634 cat conftest.$ac_ext >&5
1637 if test $ac_cv_c_bigendian = unknown; then
1638 if test "$cross_compiling" = yes; then
1639 ac_cv_c_bigendian=unknown
1641 cat > conftest.$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1645 /* Are we little or big endian? From Harbison&Steele. */
1649 char c[sizeof (long)];
1652 exit (u.c[sizeof (long) - 1] == 1);
1655 if { (eval echo configure:1656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1657 ac_cv_c_bigendian=no
1659 echo "configure: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1662 ac_cv_c_bigendian=yes
1670 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1671 if test $ac_cv_c_bigendian = unknown; then
1672 echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}"
1673 to config.cache file" 1>&2
1675 if test $ac_cv_c_bigendian = yes; then
1676 cat >> confdefs.h <<\EOF
1677 #define WORDS_BIGENDIAN 1
1684 echo $ac_n "checking for main in -lz""... $ac_c" 1>&6
1685 echo "configure:1686: checking for main in -lz" >&5
1686 ac_lib_var=`echo z'_'main | sed 'y%./+-%__p_%'`
1687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 ac_save_LIBS="$LIBS"
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1702 eval "ac_cv_lib_$ac_lib_var=yes"
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1707 eval "ac_cv_lib_$ac_lib_var=no"
1710 LIBS="$ac_save_LIBS"
1713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1714 echo "$ac_t""yes" 1>&6
1717 echo "$ac_t""no" 1>&6
1718 zlib="false" ; echo "configure: warning: zlib missing. Will need zlib for PNG support" 1>&2
1721 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1722 echo "configure:1723: checking for main in -lm" >&5
1723 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 ac_save_LIBS="$LIBS"
1729 cat > conftest.$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1737 if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1739 eval "ac_cv_lib_$ac_lib_var=yes"
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1744 eval "ac_cv_lib_$ac_lib_var=no"
1747 LIBS="$ac_save_LIBS"
1750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1751 echo "$ac_t""yes" 1>&6
1752 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1753 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1754 cat >> confdefs.h <<EOF
1755 #define $ac_tr_lib 1
1761 echo "$ac_t""no" 1>&6
1764 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1765 echo "configure:1766: checking for main in -lcurses" >&5
1766 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1770 ac_save_LIBS="$LIBS"
1771 LIBS="-lcurses $LIBS"
1772 cat > conftest.$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1780 if { (eval echo configure:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1782 eval "ac_cv_lib_$ac_lib_var=yes"
1784 echo "configure: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1787 eval "ac_cv_lib_$ac_lib_var=no"
1790 LIBS="$ac_save_LIBS"
1793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1794 echo "$ac_t""yes" 1>&6
1797 echo "$ac_t""no" 1>&6
1801 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1802 echo "configure:1803: checking for main in -lncurses" >&5
1803 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 ac_save_LIBS="$LIBS"
1808 LIBS="-lncurses $LIBS"
1809 cat > conftest.$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1817 if { (eval echo configure:1818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1819 eval "ac_cv_lib_$ac_lib_var=yes"
1821 echo "configure: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1824 eval "ac_cv_lib_$ac_lib_var=no"
1827 LIBS="$ac_save_LIBS"
1830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1831 echo "$ac_t""yes" 1>&6
1834 echo "$ac_t""no" 1>&6
1838 echo $ac_n "checking for main in -lg2""... $ac_c" 1>&6
1839 echo "configure:1840: checking for main in -lg2" >&5
1840 ac_lib_var=`echo g2'_'main | sed 'y%./+-%__p_%'`
1841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 ac_save_LIBS="$LIBS"
1846 cat > conftest.$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1854 if { (eval echo configure:1855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1856 eval "ac_cv_lib_$ac_lib_var=yes"
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1861 eval "ac_cv_lib_$ac_lib_var=no"
1864 LIBS="$ac_save_LIBS"
1867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1868 echo "$ac_t""yes" 1>&6
1871 echo "$ac_t""no" 1>&6
1875 echo $ac_n "checking for main in -lwx_gtk""... $ac_c" 1>&6
1876 echo "configure:1877: checking for main in -lwx_gtk" >&5
1877 ac_lib_var=`echo wx_gtk'_'main | sed 'y%./+-%__p_%'`
1878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 ac_save_LIBS="$LIBS"
1882 LIBS="-lwx_gtk $LIBS"
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1891 if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1893 eval "ac_cv_lib_$ac_lib_var=yes"
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1898 eval "ac_cv_lib_$ac_lib_var=no"
1901 LIBS="$ac_save_LIBS"
1904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1905 echo "$ac_t""yes" 1>&6
1906 wxwin=true; wx_gtk=true; cat >> confdefs.h <<\EOF
1907 #define HAVE_WXWINDOWS 1
1911 echo "$ac_t""no" 1>&6
1915 echo $ac_n "checking for main in -lwx_msw""... $ac_c" 1>&6
1916 echo "configure:1917: checking for main in -lwx_msw" >&5
1917 ac_lib_var=`echo wx_msw'_'main | sed 'y%./+-%__p_%'`
1918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 ac_save_LIBS="$LIBS"
1922 LIBS="-lwx_msw $LIBS"
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1931 if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1933 eval "ac_cv_lib_$ac_lib_var=yes"
1935 echo "configure: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1938 eval "ac_cv_lib_$ac_lib_var=no"
1941 LIBS="$ac_save_LIBS"
1944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1945 echo "$ac_t""yes" 1>&6
1946 wxwin=true; wx_msw=true; cat >> confdefs.h <<\EOF
1947 #define HAVE_WXWINDOWS 1
1951 echo "$ac_t""no" 1>&6
1955 echo $ac_n "checking for main in -ldmallocxx""... $ac_c" 1>&6
1956 echo "configure:1957: checking for main in -ldmallocxx" >&5
1957 ac_lib_var=`echo dmallocxx'_'main | sed 'y%./+-%__p_%'`
1958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1961 ac_save_LIBS="$LIBS"
1962 LIBS="-ldmallocxx $LIBS"
1963 cat > conftest.$ac_ext <<EOF
1964 #line 1965 "configure"
1965 #include "confdefs.h"
1971 if { (eval echo configure:1972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1973 eval "ac_cv_lib_$ac_lib_var=yes"
1975 echo "configure: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1978 eval "ac_cv_lib_$ac_lib_var=no"
1981 LIBS="$ac_save_LIBS"
1984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1985 echo "$ac_t""yes" 1>&6
1988 echo "$ac_t""no" 1>&6
1992 echo $ac_n "checking for main in -lfftw""... $ac_c" 1>&6
1993 echo "configure:1994: checking for main in -lfftw" >&5
1994 ac_lib_var=`echo fftw'_'main | sed 'y%./+-%__p_%'`
1995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 ac_save_LIBS="$LIBS"
2000 cat > conftest.$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2008 if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2010 eval "ac_cv_lib_$ac_lib_var=yes"
2012 echo "configure: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2015 eval "ac_cv_lib_$ac_lib_var=no"
2018 LIBS="$ac_save_LIBS"
2021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2023 fftw=true; cat >> confdefs.h <<\EOF
2028 echo "$ac_t""no" 1>&6
2033 if test "$zlib" = "true" ; then
2034 echo $ac_n "checking for main in -lpng""... $ac_c" 1>&6
2035 echo "configure:2036: checking for main in -lpng" >&5
2036 ac_lib_var=`echo png'_'main | sed 'y%./+-%__p_%'`
2037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2040 ac_save_LIBS="$LIBS"
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2050 if { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2052 eval "ac_cv_lib_$ac_lib_var=yes"
2054 echo "configure: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2057 eval "ac_cv_lib_$ac_lib_var=no"
2060 LIBS="$ac_save_LIBS"
2063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2064 echo "$ac_t""yes" 1>&6
2065 png=true ; cat >> confdefs.h <<\EOF
2070 echo "$ac_t""no" 1>&6
2076 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2077 echo "configure:2078: checking how to run the C preprocessor" >&5
2078 # On Suns, sometimes $CPP names a directory.
2079 if test -n "$CPP" && test -d "$CPP"; then
2082 if test -z "$CPP"; then
2083 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2086 # This must be in double quotes, not single quotes, because CPP may get
2087 # substituted into the Makefile and "${CC-cc}" will confuse make.
2089 # On the NeXT, cc -E runs the code through the compiler's parser,
2090 # not just through cpp.
2091 cat > conftest.$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2098 { (eval echo configure:2099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2100 if test -z "$ac_err"; then
2104 echo "configure: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2107 CPP="${CC-cc} -E -traditional-cpp"
2108 cat > conftest.$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2115 { (eval echo configure:2116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2117 if test -z "$ac_err"; then
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2124 CPP="${CC-cc} -nologo -E"
2125 cat > conftest.$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2132 { (eval echo configure:2133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2134 if test -z "$ac_err"; then
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2148 ac_cv_prog_CPP="$CPP"
2150 CPP="$ac_cv_prog_CPP"
2152 ac_cv_prog_CPP="$CPP"
2154 echo "$ac_t""$CPP" 1>&6
2156 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2157 echo "configure:2158: checking for ANSI C header files" >&5
2158 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2161 cat > conftest.$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2170 { (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2172 if test -z "$ac_err"; then
2174 ac_cv_header_stdc=yes
2177 echo "configure: failed program was:" >&5
2178 cat conftest.$ac_ext >&5
2180 ac_cv_header_stdc=no
2184 if test $ac_cv_header_stdc = yes; then
2185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2192 egrep "memchr" >/dev/null 2>&1; then
2196 ac_cv_header_stdc=no
2202 if test $ac_cv_header_stdc = yes; then
2203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2210 egrep "free" >/dev/null 2>&1; then
2214 ac_cv_header_stdc=no
2220 if test $ac_cv_header_stdc = yes; then
2221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2222 if test "$cross_compiling" = yes; then
2225 cat > conftest.$ac_ext <<EOF
2226 #line 2227 "configure"
2227 #include "confdefs.h"
2229 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2230 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2232 int main () { int i; for (i = 0; i < 256; i++)
2233 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2237 if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2241 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2244 ac_cv_header_stdc=no
2252 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2253 if test $ac_cv_header_stdc = yes; then
2254 cat >> confdefs.h <<\EOF
2255 #define STDC_HEADERS 1
2260 for ac_hdr 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 g2.h assert.h
2262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_hdr" >&5
2265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2276 if test -z "$ac_err"; then
2278 eval "ac_cv_header_$ac_safe=yes"
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2284 eval "ac_cv_header_$ac_safe=no"
2288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2291 cat >> confdefs.h <<EOF
2292 #define $ac_tr_hdr 1
2296 echo "$ac_t""no" 1>&6
2301 echo $ac_n "checking for working const""... $ac_c" 1>&6
2302 echo "configure:2303: checking for working const" >&5
2303 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2312 /* Ultrix mips cc rejects this. */
2313 typedef int charset[2]; const charset x;
2314 /* SunOS 4.1.1 cc rejects this. */
2315 char const *const *ccp;
2317 /* NEC SVR4.0.2 mips cc rejects this. */
2318 struct point {int x, y;};
2319 static struct point const zero = {0,0};
2320 /* AIX XL C 1.02.0.0 rejects this.
2321 It does not let you subtract one const X* pointer from another in an arm
2322 of an if-expression whose if-part is not a constant expression */
2323 const char *g = "string";
2324 ccp = &g + (g ? g-g : 0);
2325 /* HPUX 7.0 cc rejects these. */
2328 ccp = (char const *const *) p;
2329 { /* SCO 3.2v4 cc rejects this. */
2331 char const *s = 0 ? (char *) 0 : (char const *) 0;
2335 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2337 const int *foo = &x[0];
2340 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2341 typedef const int *iptr;
2345 { /* AIX XL C 1.02.0.0 rejects this saying
2346 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2347 struct s { int j; const int *ap[3]; };
2348 struct s *b; b->j = 5;
2350 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2356 if { (eval echo configure:2357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2360 echo "configure: failed program was:" >&5
2361 cat conftest.$ac_ext >&5
2368 echo "$ac_t""$ac_cv_c_const" 1>&6
2369 if test $ac_cv_c_const = no; then
2370 cat >> confdefs.h <<\EOF
2376 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2377 echo "configure:2378: checking for off_t" >&5
2378 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2381 cat > conftest.$ac_ext <<EOF
2382 #line 2383 "configure"
2383 #include "confdefs.h"
2384 #include <sys/types.h>
2390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2391 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2393 ac_cv_type_off_t=yes
2401 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2402 if test $ac_cv_type_off_t = no; then
2403 cat >> confdefs.h <<\EOF
2409 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2410 echo "configure:2411: checking for size_t" >&5
2411 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 cat > conftest.$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2417 #include <sys/types.h>
2423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2424 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2426 ac_cv_type_size_t=yes
2429 ac_cv_type_size_t=no
2434 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2435 if test $ac_cv_type_size_t = no; then
2436 cat >> confdefs.h <<\EOF
2437 #define size_t unsigned
2442 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2443 echo "configure:2444: checking whether struct tm is in sys/time.h or time.h" >&5
2444 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2447 cat > conftest.$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2450 #include <sys/types.h>
2453 struct tm *tp; tp->tm_sec;
2456 if { (eval echo configure:2457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2458 ac_cv_struct_tm=time.h
2460 echo "configure: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2463 ac_cv_struct_tm=sys/time.h
2468 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2469 if test $ac_cv_struct_tm = sys/time.h; then
2470 cat >> confdefs.h <<\EOF
2471 #define TM_IN_SYS_TIME 1
2477 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2478 echo "configure:2479: checking for vprintf" >&5
2479 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 /* System header to define __stub macros and hopefully few prototypes,
2486 which can conflict with char vprintf(); below. */
2488 /* Override any gcc2 internal prototype to avoid an error. */
2489 /* We use char because int might match the return type of a gcc2
2490 builtin and then its argument prototype would still apply. */
2495 /* The GNU C library defines this for functions which it implements
2496 to always fail with ENOSYS. Some functions are actually named
2497 something starting with __ and the normal name is an alias. */
2498 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2506 if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2508 eval "ac_cv_func_vprintf=yes"
2510 echo "configure: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2513 eval "ac_cv_func_vprintf=no"
2518 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 cat >> confdefs.h <<\EOF
2521 #define HAVE_VPRINTF 1
2525 echo "$ac_t""no" 1>&6
2528 if test "$ac_cv_func_vprintf" != yes; then
2529 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2530 echo "configure:2531: checking for _doprnt" >&5
2531 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 /* System header to define __stub macros and hopefully few prototypes,
2538 which can conflict with char _doprnt(); below. */
2540 /* Override any gcc2 internal prototype to avoid an error. */
2541 /* We use char because int might match the return type of a gcc2
2542 builtin and then its argument prototype would still apply. */
2547 /* The GNU C library defines this for functions which it implements
2548 to always fail with ENOSYS. Some functions are actually named
2549 something starting with __ and the normal name is an alias. */
2550 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2558 if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2560 eval "ac_cv_func__doprnt=yes"
2562 echo "configure: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2565 eval "ac_cv_func__doprnt=no"
2570 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2572 cat >> confdefs.h <<\EOF
2573 #define HAVE_DOPRNT 1
2577 echo "$ac_t""no" 1>&6
2582 for ac_func in strtod strtol snprintf htonl
2584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_func" >&5
2586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2589 cat > conftest.$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2592 /* System header to define __stub macros and hopefully few prototypes,
2593 which can conflict with char $ac_func(); below. */
2595 /* Override any gcc2 internal prototype to avoid an error. */
2596 /* We use char because int might match the return type of a gcc2
2597 builtin and then its argument prototype would still apply. */
2602 /* The GNU C library defines this for functions which it implements
2603 to always fail with ENOSYS. Some functions are actually named
2604 something starting with __ and the normal name is an alias. */
2605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2613 if { (eval echo configure:2614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2615 eval "ac_cv_func_$ac_func=yes"
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2620 eval "ac_cv_func_$ac_func=no"
2625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2626 echo "$ac_t""yes" 1>&6
2627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2628 cat >> confdefs.h <<EOF
2629 #define $ac_tr_func 1
2633 echo "$ac_t""no" 1>&6
2637 echo $ac_n "checking for basename""... $ac_c" 1>&6
2638 echo "configure:2639: checking for basename" >&5
2639 if eval "test \"`echo '$''{'ac_cv_func_basename'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2642 cat > conftest.$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2645 /* System header to define __stub macros and hopefully few prototypes,
2646 which can conflict with char basename(); below. */
2648 /* Override any gcc2 internal prototype to avoid an error. */
2649 /* We use char because int might match the return type of a gcc2
2650 builtin and then its argument prototype would still apply. */
2655 /* The GNU C library defines this for functions which it implements
2656 to always fail with ENOSYS. Some functions are actually named
2657 something starting with __ and the normal name is an alias. */
2658 #if defined (__stub_basename) || defined (__stub___basename)
2666 if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2668 eval "ac_cv_func_basename=yes"
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2673 eval "ac_cv_func_basename=no"
2678 if eval "test \"`echo '$ac_cv_func_'basename`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2682 echo "$ac_t""no" 1>&6
2685 echo $ac_n "checking for setjmp""... $ac_c" 1>&6
2686 echo "configure:2687: checking for setjmp" >&5
2687 if eval "test \"`echo '$''{'ac_cv_func_setjmp'+set}'`\" = set"; then
2688 echo $ac_n "(cached) $ac_c" 1>&6
2690 cat > conftest.$ac_ext <<EOF
2691 #line 2692 "configure"
2692 #include "confdefs.h"
2693 /* System header to define __stub macros and hopefully few prototypes,
2694 which can conflict with char setjmp(); below. */
2696 /* Override any gcc2 internal prototype to avoid an error. */
2697 /* We use char because int might match the return type of a gcc2
2698 builtin and then its argument prototype would still apply. */
2703 /* The GNU C library defines this for functions which it implements
2704 to always fail with ENOSYS. Some functions are actually named
2705 something starting with __ and the normal name is an alias. */
2706 #if defined (__stub_setjmp) || defined (__stub___setjmp)
2714 if { (eval echo configure:2715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2716 eval "ac_cv_func_setjmp=yes"
2718 echo "configure: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2721 eval "ac_cv_func_setjmp=no"
2726 if eval "test \"`echo '$ac_cv_func_'setjmp`\" = yes"; then
2727 echo "$ac_t""yes" 1>&6
2730 echo "$ac_t""no" 1>&6
2733 if test "${OSTYPE}" = "cygwin" ; then
2736 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2737 echo "configure:2738: checking for getopt_long" >&5
2738 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2744 /* System header to define __stub macros and hopefully few prototypes,
2745 which can conflict with char getopt_long(); below. */
2747 /* Override any gcc2 internal prototype to avoid an error. */
2748 /* We use char because int might match the return type of a gcc2
2749 builtin and then its argument prototype would still apply. */
2754 /* The GNU C library defines this for functions which it implements
2755 to always fail with ENOSYS. Some functions are actually named
2756 something starting with __ and the normal name is an alias. */
2757 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2765 if { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2767 eval "ac_cv_func_getopt_long=yes"
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2772 eval "ac_cv_func_getopt_long=no"
2777 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2778 echo "$ac_t""yes" 1>&6
2781 echo "$ac_t""no" 1>&6
2786 if test "${getopt_long}" = "false" ; then
2787 my_includes="$myincludes -I../getopt"
2788 cat >> confdefs.h <<\EOF
2789 #define HAVE_GETOPT_LONG 1
2792 ctlibs_base="$ctlibs_base -lgetopt"
2793 LDFLAGS="$LDFLAGS -L../getopt"
2797 INCLUDED_GETOPT_LONG_TRUE=
2798 INCLUDED_GETOPT_LONG_FALSE='#'
2800 INCLUDED_GETOPT_LONG_TRUE='#'
2801 INCLUDED_GETOPT_LONG_FALSE=
2806 if test -n "$GCC"; then
2807 CFLAGS="$CFLAGS -Wall"
2810 echo $ac_n "checking whether to enable verbose warnings""... $ac_c" 1>&6
2811 echo "configure:2812: checking whether to enable verbose warnings" >&5
2812 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
2813 if test "${enable_verbose_warnings+set}" = set; then
2814 enableval="$enable_verbose_warnings"
2815 case "$enableval" in
2817 echo "$ac_t""yes" 1>&6
2819 if test -n "$GCC"; then
2824 if test -n "$GCC"; then
2825 CFLAGS="$CFLAGS -Wshadow -Wpointer-arith -Wbad-function-cast"
2829 if test -n "$GCC"; then
2830 CFLAGS="$CFLAGS -Wcast-align -Wwrite-strings -Waggregate-return"
2834 if test -n "$GCC"; then
2835 CFLAGS="$CFLAGS -Wmissing-prototypes -Wstrict-prototypes"
2839 if test -n "$GCC"; then
2840 CFLAGS="$CFLAGS -pedantic"
2844 if test -n "$GCC"; then
2845 CFLAGS="$CFLAGS -Wredundant-decls"
2851 echo "$ac_t""no" 1>&6
2855 echo "$ac_t""no" 1>&6
2860 echo $ac_n "checking debug""... $ac_c" 1>&6
2861 echo "configure:2862: checking debug" >&5
2862 # Check whether --enable-debug or --disable-debug was given.
2863 if test "${enable_debug+set}" = set; then
2864 enableval="$enable_debug"
2865 case "${enableval}" in
2867 echo "$ac_t""yes" 1>&6
2870 echo "$ac_t""no" 1>&6
2872 *) echo "$ac_t""bad value ${enableval} for --enable-debug" 1>&6
2876 debug=false; echo "$ac_t""no" 1>&6
2881 if test "$debug" = "true"; then
2889 if test "$debug" = "true" ; then
2891 if test -n "$GCC"; then
2892 CFLAGS="$CFLAGS -g -DDEBUG"
2895 cat >> confdefs.h <<\EOF
2901 if test -n "$GCC"; then
2902 CFLAGS="$CFLAGS -g -O3 -DNDEBUG --fast-math"
2905 cat >> confdefs.h <<\EOF
2911 # Check whether --with-lam or --without-lam was given.
2912 if test "${with_lam+set}" = set; then
2914 if test "$withval" != "no" ; then
2921 if test "$withval" != "no" ; then
2922 if test "$prefix" != "NONE" ; then
2923 trylamdir="$trylamdir $prefix"
2926 echo $ac_n "checking for LAM MPI installation""... $ac_c" 1>&6
2927 echo "configure:2928: checking for LAM MPI installation" >&5
2928 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
2929 if test -x "$testlamdir/bin/hcc" ; then
2930 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
2931 CFLAGS="$CFLAGS -I$testlamdir/include"
2932 lamdir="$testlamdir"
2939 echo "$ac_t""$lamdir" 1>&6
2941 echo "$ac_t""no" 1>&6
2944 echo $ac_n "checking for web access""... $ac_c" 1>&6
2945 echo "configure:2946: checking for web access" >&5
2946 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
2947 if test "${with_cgibin_dir+set}" = set; then
2948 withval="$with_cgibin_dir"
2949 cgibindir=$withval ;
2953 # Check whether --with-cgibin-url or --without-cgibin-url was given.
2954 if test "${with_cgibin_url+set}" = set; then
2955 withval="$with_cgibin_url"
2956 cgibinurl=$withval ;
2960 # Check whether --with-webdata-dir or --without-webdata-dir was given.
2961 if test "${with_webdata_dir+set}" = set; then
2962 withval="$with_webdata_dir"
2963 webdatadir=$withval ;
2967 # Check whether --with-webdata-url or --without-webdata-url was given.
2968 if test "${with_webdata_url+set}" = set; then
2969 withval="$with_webdata_url"
2970 webdataurl=$withval ;
2974 # Check whether --with-html-dir or --without-html-dir was given.
2975 if test "${with_html_dir+set}" = set; then
2976 withval="$with_html_dir"
2981 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
2982 cgiprograms="ctsim.cgi ctsim.conf"
2986 if test -n "$htmldir" ; then
2987 htmldata=simulate.html
2992 if test -n "$htmldir"; then
3000 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
3003 echo "$ac_t""yes" 1>&6
3004 if test -z "$cgibindir" ; then
3005 { echo "configure: error: --with-cgibin-dir not set for web access" 1>&2; exit 1; }
3006 elif test -z "$cgibinurl" ; then
3007 { echo "configure: error: --with-cgibin-url not set for web access" 1>&2; exit 1; }
3008 elif test -z "$webdatadir" ; then
3009 { echo "configure: error: --with-webdata-dir not set for web access" 1>&2; exit 1; }
3010 elif test -z "$webdataurl" ; then
3011 { echo "configure: error: --with-webdata-url not set for web access" 1>&2; exit 1; }
3012 elif test -z "$htmldir" ; then
3013 { echo "configure: error: --with-html-dir not set for web access" 1>&2; exit 1; }
3016 echo "$ac_t""no" 1>&6
3021 if test -n "$lamdir"; then
3030 # If we find X, set shell vars x_includes and x_libraries to the
3031 # paths, otherwise set no_x=yes.
3032 # Uses ac_ vars as temps to allow command line to override cache and checks.
3033 # --without-x overrides everything else, but does not touch the cache.
3034 echo $ac_n "checking for X""... $ac_c" 1>&6
3035 echo "configure:3036: checking for X" >&5
3037 # Check whether --with-x or --without-x was given.
3038 if test "${with_x+set}" = set; then
3043 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3044 if test "x$with_x" = xno; then
3045 # The user explicitly disabled X.
3048 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3049 # Both variables are already set.
3052 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 # One or both of the vars are not set, and there is no cached value.
3056 ac_x_includes=NO ac_x_libraries=NO
3058 if mkdir conftestdir; then
3060 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3061 cat > Imakefile <<'EOF'
3063 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3065 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3066 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3067 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3068 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3069 for ac_extension in a so sl; do
3070 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3071 test -f $ac_im_libdir/libX11.$ac_extension; then
3072 ac_im_usrlibdir=$ac_im_libdir; break
3075 # Screen out bogus values from the imake configuration. They are
3076 # bogus both because they are the default anyway, and because
3077 # using them would break gcc on systems where it needs fixed includes.
3078 case "$ac_im_incroot" in
3080 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3082 case "$ac_im_usrlibdir" in
3084 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3091 if test "$ac_x_includes" = NO; then
3092 # Guess where to find include files, by looking for this one X11 .h file.
3093 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3095 # First, try using that file with no special directory specified.
3096 cat > conftest.$ac_ext <<EOF
3097 #line 3098 "configure"
3098 #include "confdefs.h"
3099 #include <$x_direct_test_include>
3101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3102 { (eval echo configure:3103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3104 if test -z "$ac_err"; then
3106 # We can compile using X headers with no special include directory.
3110 echo "configure: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3113 # Look for the header file in a standard set of common directories.
3114 # Check X11 before X11Rn because it is often a symlink to the current release.
3117 /usr/X11R6/include \
3118 /usr/X11R5/include \
3119 /usr/X11R4/include \
3122 /usr/include/X11R6 \
3123 /usr/include/X11R5 \
3124 /usr/include/X11R4 \
3126 /usr/local/X11/include \
3127 /usr/local/X11R6/include \
3128 /usr/local/X11R5/include \
3129 /usr/local/X11R4/include \
3131 /usr/local/include/X11 \
3132 /usr/local/include/X11R6 \
3133 /usr/local/include/X11R5 \
3134 /usr/local/include/X11R4 \
3138 /usr/XFree86/include/X11 \
3141 /usr/local/include \
3142 /usr/unsupported/include \
3143 /usr/athena/include \
3144 /usr/local/x11r5/include \
3145 /usr/lpp/Xamples/include \
3147 /usr/openwin/include \
3148 /usr/openwin/share/include \
3151 if test -r "$ac_dir/$x_direct_test_include"; then
3152 ac_x_includes=$ac_dir
3158 fi # $ac_x_includes = NO
3160 if test "$ac_x_libraries" = NO; then
3161 # Check for the libraries.
3163 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3164 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3166 # See if we find them without any special options.
3167 # Don't add to $LIBS permanently.
3168 ac_save_LIBS="$LIBS"
3169 LIBS="-l$x_direct_test_library $LIBS"
3170 cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3175 ${x_direct_test_function}()
3178 if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3180 LIBS="$ac_save_LIBS"
3181 # We can link X programs with no special library path.
3184 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3187 LIBS="$ac_save_LIBS"
3188 # First see if replacing the include by lib works.
3189 # Check X11 before X11Rn because it is often a symlink to the current release.
3190 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3201 /usr/local/X11/lib \
3202 /usr/local/X11R6/lib \
3203 /usr/local/X11R5/lib \
3204 /usr/local/X11R4/lib \
3206 /usr/local/lib/X11 \
3207 /usr/local/lib/X11R6 \
3208 /usr/local/lib/X11R5 \
3209 /usr/local/lib/X11R4 \
3213 /usr/XFree86/lib/X11 \
3217 /usr/unsupported/lib \
3219 /usr/local/x11r5/lib \
3220 /usr/lpp/Xamples/lib \
3224 /usr/openwin/share/lib \
3227 for ac_extension in a so sl; do
3228 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3229 ac_x_libraries=$ac_dir
3236 fi # $ac_x_libraries = NO
3238 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3239 # Didn't find X anywhere. Cache the known absence of X.
3240 ac_cv_have_x="have_x=no"
3242 # Record where we found X for the cache.
3243 ac_cv_have_x="have_x=yes \
3244 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3248 eval "$ac_cv_have_x"
3251 if test "$have_x" != yes; then
3252 echo "$ac_t""$have_x" 1>&6
3255 # If each of the values was on the command line, it overrides each guess.
3256 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3257 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3258 # Update the cache value to reflect the command line values.
3259 ac_cv_have_x="have_x=yes \
3260 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3261 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3264 if test "$no_x" = yes; then
3265 # Not all programs may use this symbol, but it does not hurt to define it.
3266 cat >> confdefs.h <<\EOF
3267 #define X_DISPLAY_MISSING 1
3270 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3272 if test -n "$x_includes"; then
3273 X_CFLAGS="$X_CFLAGS -I$x_includes"
3276 # It would also be nice to do this for all -L options, not just this one.
3277 if test -n "$x_libraries"; then
3278 X_LIBS="$X_LIBS -L$x_libraries"
3279 # For Solaris; some versions of Sun CC require a space after -R and
3280 # others require no space. Words are not sufficient . . . .
3281 case "`(uname -sr) 2>/dev/null`" in
3283 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3284 echo "configure:3285: checking whether -R must be followed by a space" >&5
3285 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3294 if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3304 if test $ac_R_nospace = yes; then
3305 echo "$ac_t""no" 1>&6
3306 X_LIBS="$X_LIBS -R$x_libraries"
3308 LIBS="$ac_xsave_LIBS -R $x_libraries"
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3317 if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3327 if test $ac_R_space = yes; then
3328 echo "$ac_t""yes" 1>&6
3329 X_LIBS="$X_LIBS -R $x_libraries"
3331 echo "$ac_t""neither works" 1>&6
3334 LIBS="$ac_xsave_LIBS"
3338 # Check for system-dependent libraries X programs must link with.
3339 # Do this before checking for the system-independent R6 libraries
3340 # (-lICE), since we may need -lsocket or whatever for X linking.
3342 if test "$ISC" = yes; then
3343 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3345 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3346 # libraries were built with DECnet support. And karl@cs.umb.edu says
3347 # the Alpha needs dnet_stub (dnet does not exist).
3348 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3349 echo "configure:3350: checking for dnet_ntoa in -ldnet" >&5
3350 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 ac_save_LIBS="$LIBS"
3356 cat > conftest.$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3359 /* Override any gcc2 internal prototype to avoid an error. */
3360 /* We use char because int might match the return type of a gcc2
3361 builtin and then its argument prototype would still apply. */
3368 if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3370 eval "ac_cv_lib_$ac_lib_var=yes"
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3375 eval "ac_cv_lib_$ac_lib_var=no"
3378 LIBS="$ac_save_LIBS"
3381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3382 echo "$ac_t""yes" 1>&6
3383 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3385 echo "$ac_t""no" 1>&6
3388 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3389 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3390 echo "configure:3391: checking for dnet_ntoa in -ldnet_stub" >&5
3391 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 ac_save_LIBS="$LIBS"
3396 LIBS="-ldnet_stub $LIBS"
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 /* Override any gcc2 internal prototype to avoid an error. */
3401 /* We use char because int might match the return type of a gcc2
3402 builtin and then its argument prototype would still apply. */
3409 if { (eval echo configure:3410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3411 eval "ac_cv_lib_$ac_lib_var=yes"
3413 echo "configure: failed program was:" >&5
3414 cat conftest.$ac_ext >&5
3416 eval "ac_cv_lib_$ac_lib_var=no"
3419 LIBS="$ac_save_LIBS"
3422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3423 echo "$ac_t""yes" 1>&6
3424 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3426 echo "$ac_t""no" 1>&6
3431 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3432 # to get the SysV transport functions.
3433 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3435 # The nsl library prevents programs from opening the X display
3436 # on Irix 5.2, according to dickey@clark.net.
3437 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3438 echo "configure:3439: checking for gethostbyname" >&5
3439 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 /* System header to define __stub macros and hopefully few prototypes,
3446 which can conflict with char gethostbyname(); below. */
3448 /* Override any gcc2 internal prototype to avoid an error. */
3449 /* We use char because int might match the return type of a gcc2
3450 builtin and then its argument prototype would still apply. */
3451 char gethostbyname();
3455 /* The GNU C library defines this for functions which it implements
3456 to always fail with ENOSYS. Some functions are actually named
3457 something starting with __ and the normal name is an alias. */
3458 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3466 if { (eval echo configure:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3468 eval "ac_cv_func_gethostbyname=yes"
3470 echo "configure: failed program was:" >&5
3471 cat conftest.$ac_ext >&5
3473 eval "ac_cv_func_gethostbyname=no"
3478 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3479 echo "$ac_t""yes" 1>&6
3482 echo "$ac_t""no" 1>&6
3485 if test $ac_cv_func_gethostbyname = no; then
3486 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3487 echo "configure:3488: checking for gethostbyname in -lnsl" >&5
3488 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 ac_save_LIBS="$LIBS"
3494 cat > conftest.$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3497 /* Override any gcc2 internal prototype to avoid an error. */
3498 /* We use char because int might match the return type of a gcc2
3499 builtin and then its argument prototype would still apply. */
3500 char gethostbyname();
3506 if { (eval echo configure:3507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3508 eval "ac_cv_lib_$ac_lib_var=yes"
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3513 eval "ac_cv_lib_$ac_lib_var=no"
3516 LIBS="$ac_save_LIBS"
3519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3520 echo "$ac_t""yes" 1>&6
3521 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3523 echo "$ac_t""no" 1>&6
3528 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3529 # socket/setsockopt and other routines are undefined under SCO ODT
3530 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3531 # on later versions), says simon@lia.di.epfl.ch: it contains
3532 # gethostby* variants that don't use the nameserver (or something).
3533 # -lsocket must be given before -lnsl if both are needed.
3534 # We assume that if connect needs -lnsl, so does gethostbyname.
3535 echo $ac_n "checking for connect""... $ac_c" 1>&6
3536 echo "configure:3537: checking for connect" >&5
3537 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* System header to define __stub macros and hopefully few prototypes,
3544 which can conflict with char connect(); below. */
3546 /* Override any gcc2 internal prototype to avoid an error. */
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3553 /* The GNU C library defines this for functions which it implements
3554 to always fail with ENOSYS. Some functions are actually named
3555 something starting with __ and the normal name is an alias. */
3556 #if defined (__stub_connect) || defined (__stub___connect)
3564 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3566 eval "ac_cv_func_connect=yes"
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3571 eval "ac_cv_func_connect=no"
3576 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3577 echo "$ac_t""yes" 1>&6
3580 echo "$ac_t""no" 1>&6
3583 if test $ac_cv_func_connect = no; then
3584 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3585 echo "configure:3586: checking for connect in -lsocket" >&5
3586 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3590 ac_save_LIBS="$LIBS"
3591 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 /* Override any gcc2 internal prototype to avoid an error. */
3596 /* We use char because int might match the return type of a gcc2
3597 builtin and then its argument prototype would still apply. */
3604 if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3606 eval "ac_cv_lib_$ac_lib_var=yes"
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3611 eval "ac_cv_lib_$ac_lib_var=no"
3614 LIBS="$ac_save_LIBS"
3617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3618 echo "$ac_t""yes" 1>&6
3619 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3621 echo "$ac_t""no" 1>&6
3626 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3627 echo $ac_n "checking for remove""... $ac_c" 1>&6
3628 echo "configure:3629: checking for remove" >&5
3629 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 /* System header to define __stub macros and hopefully few prototypes,
3636 which can conflict with char remove(); below. */
3638 /* Override any gcc2 internal prototype to avoid an error. */
3639 /* We use char because int might match the return type of a gcc2
3640 builtin and then its argument prototype would still apply. */
3645 /* The GNU C library defines this for functions which it implements
3646 to always fail with ENOSYS. Some functions are actually named
3647 something starting with __ and the normal name is an alias. */
3648 #if defined (__stub_remove) || defined (__stub___remove)
3656 if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3658 eval "ac_cv_func_remove=yes"
3660 echo "configure: failed program was:" >&5
3661 cat conftest.$ac_ext >&5
3663 eval "ac_cv_func_remove=no"
3668 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3669 echo "$ac_t""yes" 1>&6
3672 echo "$ac_t""no" 1>&6
3675 if test $ac_cv_func_remove = no; then
3676 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3677 echo "configure:3678: checking for remove in -lposix" >&5
3678 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3682 ac_save_LIBS="$LIBS"
3683 LIBS="-lposix $LIBS"
3684 cat > conftest.$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3687 /* Override any gcc2 internal prototype to avoid an error. */
3688 /* We use char because int might match the return type of a gcc2
3689 builtin and then its argument prototype would still apply. */
3696 if { (eval echo configure:3697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3698 eval "ac_cv_lib_$ac_lib_var=yes"
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3703 eval "ac_cv_lib_$ac_lib_var=no"
3706 LIBS="$ac_save_LIBS"
3709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3710 echo "$ac_t""yes" 1>&6
3711 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3713 echo "$ac_t""no" 1>&6
3718 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3719 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3720 echo "configure:3721: checking for shmat" >&5
3721 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3724 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 /* System header to define __stub macros and hopefully few prototypes,
3728 which can conflict with char shmat(); below. */
3730 /* Override any gcc2 internal prototype to avoid an error. */
3731 /* We use char because int might match the return type of a gcc2
3732 builtin and then its argument prototype would still apply. */
3737 /* The GNU C library defines this for functions which it implements
3738 to always fail with ENOSYS. Some functions are actually named
3739 something starting with __ and the normal name is an alias. */
3740 #if defined (__stub_shmat) || defined (__stub___shmat)
3748 if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3750 eval "ac_cv_func_shmat=yes"
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3755 eval "ac_cv_func_shmat=no"
3760 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3761 echo "$ac_t""yes" 1>&6
3764 echo "$ac_t""no" 1>&6
3767 if test $ac_cv_func_shmat = no; then
3768 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3769 echo "configure:3770: checking for shmat in -lipc" >&5
3770 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3774 ac_save_LIBS="$LIBS"
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 /* Override any gcc2 internal prototype to avoid an error. */
3780 /* We use char because int might match the return type of a gcc2
3781 builtin and then its argument prototype would still apply. */
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3790 eval "ac_cv_lib_$ac_lib_var=yes"
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3795 eval "ac_cv_lib_$ac_lib_var=no"
3798 LIBS="$ac_save_LIBS"
3801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3802 echo "$ac_t""yes" 1>&6
3803 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3805 echo "$ac_t""no" 1>&6
3811 # Check for libraries that X11R6 Xt/Xaw programs need.
3812 ac_save_LDFLAGS="$LDFLAGS"
3813 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3814 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3815 # check for ICE first), but we must link in the order -lSM -lICE or
3816 # we get undefined symbols. So assume we have SM if we have ICE.
3817 # These have to be linked with before -lX11, unlike the other
3818 # libraries we check for below, so use a different variable.
3819 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3820 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3821 echo "configure:3822: checking for IceConnectionNumber in -lICE" >&5
3822 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3826 ac_save_LIBS="$LIBS"
3827 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 /* Override any gcc2 internal prototype to avoid an error. */
3832 /* We use char because int might match the return type of a gcc2
3833 builtin and then its argument prototype would still apply. */
3834 char IceConnectionNumber();
3837 IceConnectionNumber()
3840 if { (eval echo configure:3841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3842 eval "ac_cv_lib_$ac_lib_var=yes"
3844 echo "configure: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3847 eval "ac_cv_lib_$ac_lib_var=no"
3850 LIBS="$ac_save_LIBS"
3853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3854 echo "$ac_t""yes" 1>&6
3855 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3857 echo "$ac_t""no" 1>&6
3860 LDFLAGS="$ac_save_LDFLAGS"
3871 X_TOOLKIT_LIBS="-lXt"
3872 X_BASIC_LIBS="-lXext -lX11"
3874 our_saved_LDFLAGS="$LDFLAGS"
3875 LDFLAGS="$X_LIBS $LDFLAGS"
3876 echo $ac_n "checking for XtToolkitThreadInitialize in -lXt""... $ac_c" 1>&6
3877 echo "configure:3878: checking for XtToolkitThreadInitialize in -lXt" >&5
3878 ac_lib_var=`echo Xt'_'XtToolkitThreadInitialize | sed 'y%./+-%__p_%'`
3879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3882 ac_save_LIBS="$LIBS"
3883 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
3884 cat > conftest.$ac_ext <<EOF
3885 #line 3886 "configure"
3886 #include "confdefs.h"
3887 /* Override any gcc2 internal prototype to avoid an error. */
3888 /* We use char because int might match the return type of a gcc2
3889 builtin and then its argument prototype would still apply. */
3890 char XtToolkitThreadInitialize();
3893 XtToolkitThreadInitialize()
3896 if { (eval echo configure:3897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3898 eval "ac_cv_lib_$ac_lib_var=yes"
3900 echo "configure: failed program was:" >&5
3901 cat conftest.$ac_ext >&5
3903 eval "ac_cv_lib_$ac_lib_var=no"
3906 LIBS="$ac_save_LIBS"
3909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3910 echo "$ac_t""yes" 1>&6
3911 cat >> confdefs.h <<\EOF
3912 #define X_THREAD_SUPPORT 1
3916 echo "$ac_t""no" 1>&6
3919 LDFLAGS="$our_saved_LDFLAGS"
3921 our_saved_LDFLAGS="$LDFLAGS"
3922 LDFLAGS="$X_LIBS $LDFLAGS"
3923 echo $ac_n "checking for XdbeQueryExtension in -lXext""... $ac_c" 1>&6
3924 echo "configure:3925: checking for XdbeQueryExtension in -lXext" >&5
3925 ac_lib_var=`echo Xext'_'XdbeQueryExtension | sed 'y%./+-%__p_%'`
3926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3929 ac_save_LIBS="$LIBS"
3930 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
3931 cat > conftest.$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3934 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3937 char XdbeQueryExtension();
3940 XdbeQueryExtension()
3943 if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3945 eval "ac_cv_lib_$ac_lib_var=yes"
3947 echo "configure: failed program was:" >&5
3948 cat conftest.$ac_ext >&5
3950 eval "ac_cv_lib_$ac_lib_var=no"
3953 LIBS="$ac_save_LIBS"
3956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3957 echo "$ac_t""yes" 1>&6
3958 cat >> confdefs.h <<\EOF
3959 #define HAVE_DBE_SUPPORT 1
3963 echo "$ac_t""no" 1>&6
3966 echo $ac_n "checking for XmbufQueryExtension in -lXext""... $ac_c" 1>&6
3967 echo "configure:3968: checking for XmbufQueryExtension in -lXext" >&5
3968 ac_lib_var=`echo Xext'_'XmbufQueryExtension | sed 'y%./+-%__p_%'`
3969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3972 ac_save_LIBS="$LIBS"
3973 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
3974 cat > conftest.$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3977 /* Override any gcc2 internal prototype to avoid an error. */
3978 /* We use char because int might match the return type of a gcc2
3979 builtin and then its argument prototype would still apply. */
3980 char XmbufQueryExtension();
3983 XmbufQueryExtension()
3986 if { (eval echo configure:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3988 eval "ac_cv_lib_$ac_lib_var=yes"
3990 echo "configure: failed program was:" >&5
3991 cat conftest.$ac_ext >&5
3993 eval "ac_cv_lib_$ac_lib_var=no"
3996 LIBS="$ac_save_LIBS"
3999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4000 echo "$ac_t""yes" 1>&6
4001 cat >> confdefs.h <<\EOF
4002 #define HAVE_MBX_SUPPORT 1
4006 echo "$ac_t""no" 1>&6
4009 LDFLAGS="$our_saved_LDFLAGS"
4010 our_saved_CPPFLAGS="$CPPFLAGS"
4011 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
4012 for ac_hdr in X11/extensions/Xdbe.h X11/extensions/multibuf.h
4014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4016 echo "configure:4017: checking for $ac_hdr" >&5
4017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4026 { (eval echo configure:4027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4028 if test -z "$ac_err"; then
4030 eval "ac_cv_header_$ac_safe=yes"
4033 echo "configure: failed program was:" >&5
4034 cat conftest.$ac_ext >&5
4036 eval "ac_cv_header_$ac_safe=no"
4040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4041 echo "$ac_t""yes" 1>&6
4042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4043 cat >> confdefs.h <<EOF
4044 #define $ac_tr_hdr 1
4048 echo "$ac_t""no" 1>&6
4052 CPPFLAGS="$our_saved_CPPFLAGS"
4056 if test "x$no_x" = "xyes"; then
4064 my_includes="$my_includes -I../include -I.."
4067 echo $ac_n "checking interactive graphics""... $ac_c" 1>&6
4068 echo "configure:4069: checking interactive graphics" >&5
4069 if test "$no_x" != "yes" ; then
4070 cat >> confdefs.h <<\EOF
4074 cat >> confdefs.h <<\EOF
4087 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
4088 ctlibs_graphics="$ctlibs_base -lctgraphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
4089 echo "$ac_t""yes" 1>&6
4091 echo "$ac_t""no" 1>&6
4094 if test "$png" = "true" ; then
4095 ctlibs_tools="$ctlibs_tools -lpng"
4097 if test "$zlib" = "true" ; then
4098 ctlibs_tools="$ctlibs_tools -lz"
4100 if test "$g2" = "true" ; then
4101 ctlibs_tools="$ctlibs_tools -lg2"
4103 if test "$wx_gtk" = "true" ; then
4104 ctlibs_tools="$ctlibs_tools -lwx_gtk"
4107 if test "$fftw" = "true" ; then
4108 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
4111 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
4112 ctlibs="$ctlibs_base -lctsim $ctlibs_graphics -lctsupport $ctlibs_tools"
4115 if test -n "$lamdir" ; then
4116 lamprograms="pjrec-lam phm2if-lam phm2pj-lam"
4121 cat > confcache <<\EOF
4122 # This file is a shell script that caches the results of configure
4123 # tests run on this system so they can be shared between configure
4124 # scripts and configure runs. It is not useful on other systems.
4125 # If it contains results you don't want to keep, you may remove or edit it.
4127 # By default, configure uses ./config.cache as the cache file,
4128 # creating it if it does not exist already. You can give configure
4129 # the --cache-file=FILE option to use a different cache file; that is
4130 # what configure does when it calls configure scripts in
4131 # subdirectories, so they share the cache.
4132 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4133 # config.status only pays attention to the cache file if you give it the
4134 # --recheck option to rerun configure.
4137 # The following way of writing the cache mishandles newlines in values,
4138 # but we know of no workaround that is simple, portable, and efficient.
4139 # So, don't put newlines in cache variables' values.
4140 # Ultrix sh set writes to stderr and can't be redirected directly,
4141 # and sets the high bit in the cache file unless we assign to the vars.
4143 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4145 # `set' does not quote correctly, so add quotes (double-quote substitution
4146 # turns \\\\ into \\, and sed turns \\ into \).
4148 -e "s/'/'\\\\''/g" \
4149 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4152 # `set' quotes correctly as required by POSIX, so do not add quotes.
4153 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4156 if cmp -s $cache_file confcache; then
4159 if test -w $cache_file; then
4160 echo "updating cache $cache_file"
4161 cat confcache > $cache_file
4163 echo "not updating unwritable cache $cache_file"
4168 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4170 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4171 # Let make expand exec_prefix.
4172 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4174 # Any assignment to VPATH causes Sun make to only execute
4175 # the first set of double-colon rules, so remove it if not needed.
4176 # If there is a colon in the path, we need to keep it.
4177 if test "x$srcdir" = x.; then
4178 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4181 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4183 DEFS=-DHAVE_CONFIG_H
4185 # Without the "./", some shells look in PATH for config.status.
4186 : ${CONFIG_STATUS=./config.status}
4188 echo creating $CONFIG_STATUS
4189 rm -f $CONFIG_STATUS
4190 cat > $CONFIG_STATUS <<EOF
4192 # Generated automatically by configure.
4193 # Run this file to recreate the current configuration.
4194 # This directory was configured as follows,
4195 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4197 # $0 $ac_configure_args
4199 # Compiler output produced by configure, useful for debugging
4200 # configure, is in ./config.log if it exists.
4202 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4205 case "\$ac_option" in
4206 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4207 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4208 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4209 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4210 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4212 -help | --help | --hel | --he | --h)
4213 echo "\$ac_cs_usage"; exit 0 ;;
4214 *) echo "\$ac_cs_usage"; exit 1 ;;
4218 ac_given_srcdir=$srcdir
4219 ac_given_INSTALL="$INSTALL"
4221 trap 'rm -fr `echo "Makefile src/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 src/sample-ctsim.sh cgi-bin/ctsim.conf config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4223 cat >> $CONFIG_STATUS <<EOF
4225 # Protect against being on the right side of a sed subst in config.status.
4226 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4227 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4231 s%@CFLAGS@%$CFLAGS%g
4232 s%@CPPFLAGS@%$CPPFLAGS%g
4233 s%@CXXFLAGS@%$CXXFLAGS%g
4234 s%@FFLAGS@%$FFLAGS%g
4236 s%@LDFLAGS@%$LDFLAGS%g
4238 s%@exec_prefix@%$exec_prefix%g
4239 s%@prefix@%$prefix%g
4240 s%@program_transform_name@%$program_transform_name%g
4241 s%@bindir@%$bindir%g
4242 s%@sbindir@%$sbindir%g
4243 s%@libexecdir@%$libexecdir%g
4244 s%@datadir@%$datadir%g
4245 s%@sysconfdir@%$sysconfdir%g
4246 s%@sharedstatedir@%$sharedstatedir%g
4247 s%@localstatedir@%$localstatedir%g
4248 s%@libdir@%$libdir%g
4249 s%@includedir@%$includedir%g
4250 s%@oldincludedir@%$oldincludedir%g
4251 s%@infodir@%$infodir%g
4252 s%@mandir@%$mandir%g
4253 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4254 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4255 s%@INSTALL_DATA@%$INSTALL_DATA%g
4256 s%@PACKAGE@%$PACKAGE%g
4257 s%@VERSION@%$VERSION%g
4258 s%@ACLOCAL@%$ACLOCAL%g
4259 s%@AUTOCONF@%$AUTOCONF%g
4260 s%@AUTOMAKE@%$AUTOMAKE%g
4261 s%@AUTOHEADER@%$AUTOHEADER%g
4262 s%@MAKEINFO@%$MAKEINFO%g
4263 s%@SET_MAKE@%$SET_MAKE%g
4265 s%@RANLIB@%$RANLIB%g
4269 s%@host_alias@%$host_alias%g
4270 s%@host_cpu@%$host_cpu%g
4271 s%@host_vendor@%$host_vendor%g
4272 s%@host_os@%$host_os%g
4274 s%@INCLUDED_GETOPT_LONG_TRUE@%$INCLUDED_GETOPT_LONG_TRUE%g
4275 s%@INCLUDED_GETOPT_LONG_FALSE@%$INCLUDED_GETOPT_LONG_FALSE%g
4276 s%@DEBUG_TRUE@%$DEBUG_TRUE%g
4277 s%@DEBUG_FALSE@%$DEBUG_FALSE%g
4278 s%@lamdir@%$lamdir%g
4279 s%@mpienable@%$mpienable%g
4280 s%@cgibindir@%$cgibindir%g
4281 s%@cgibinurl@%$cgibinurl%g
4282 s%@webdatadir@%$webdatadir%g
4283 s%@webdataurl@%$webdataurl%g
4284 s%@htmldir@%$htmldir%g
4285 s%@cgiprograms@%$cgiprograms%g
4286 s%@htmldata@%$htmldata%g
4287 s%@USE_HTML_TRUE@%$USE_HTML_TRUE%g
4288 s%@USE_HTML_FALSE@%$USE_HTML_FALSE%g
4289 s%@webenabled@%$webenabled%g
4290 s%@USE_LAM_TRUE@%$USE_LAM_TRUE%g
4291 s%@USE_LAM_FALSE@%$USE_LAM_FALSE%g
4292 s%@X_CFLAGS@%$X_CFLAGS%g
4293 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4294 s%@X_LIBS@%$X_LIBS%g
4295 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4296 s%@X_TOOLKIT_LIBS@%$X_TOOLKIT_LIBS%g
4297 s%@X_BASIC_LIBS@%$X_BASIC_LIBS%g
4298 s%@NO_X_TRUE@%$NO_X_TRUE%g
4299 s%@NO_X_FALSE@%$NO_X_FALSE%g
4300 s%@my_includes@%$my_includes%g
4301 s%@HAVE_SGP_TRUE@%$HAVE_SGP_TRUE%g
4302 s%@HAVE_SGP_FALSE@%$HAVE_SGP_FALSE%g
4303 s%@ctlibs@%$ctlibs%g
4304 s%@lamprograms@%$lamprograms%g
4309 cat >> $CONFIG_STATUS <<\EOF
4311 # Split the substitutions into bite-sized pieces for seds with
4312 # small command number limits, like on Digital OSF/1 and HP-UX.
4313 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4314 ac_file=1 # Number of current file.
4315 ac_beg=1 # First line for current file.
4316 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4319 while $ac_more_lines; do
4320 if test $ac_beg -gt 1; then
4321 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4323 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4325 if test ! -s conftest.s$ac_file; then
4327 rm -f conftest.s$ac_file
4329 if test -z "$ac_sed_cmds"; then
4330 ac_sed_cmds="sed -f conftest.s$ac_file"
4332 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4334 ac_file=`expr $ac_file + 1`
4336 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4339 if test -z "$ac_sed_cmds"; then
4344 cat >> $CONFIG_STATUS <<EOF
4346 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/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 src/sample-ctsim.sh cgi-bin/ctsim.conf"}
4348 cat >> $CONFIG_STATUS <<\EOF
4349 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4352 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4353 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4354 *) ac_file_in="${ac_file}.in" ;;
4357 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4359 # Remove last slash and all that follows it. Not all systems have dirname.
4360 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4361 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4362 # The file is in a subdirectory.
4363 test ! -d "$ac_dir" && mkdir "$ac_dir"
4364 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4365 # A "../" for each directory in $ac_dir_suffix.
4366 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4368 ac_dir_suffix= ac_dots=
4371 case "$ac_given_srcdir" in
4373 if test -z "$ac_dots"; then top_srcdir=.
4374 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4375 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4377 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4378 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4381 case "$ac_given_INSTALL" in
4382 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4383 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4386 echo creating "$ac_file"
4388 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4390 *Makefile*) ac_comsub="1i\\
4391 # $configure_input" ;;
4395 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4397 s%@configure_input@%$configure_input%g
4398 s%@srcdir@%$srcdir%g
4399 s%@top_srcdir@%$top_srcdir%g
4400 s%@INSTALL@%$INSTALL%g
4401 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4405 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4406 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4408 # ac_d sets the value in "#define NAME VALUE" lines.
4409 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4410 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4413 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4414 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4415 ac_uB='\([ ]\)%\1#\2define\3'
4418 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4419 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4420 ac_eB='$%\1#\2define\3'
4424 if test "${CONFIG_HEADERS+set}" != set; then
4426 cat >> $CONFIG_STATUS <<EOF
4427 CONFIG_HEADERS="config.h"
4429 cat >> $CONFIG_STATUS <<\EOF
4431 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4432 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4434 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4435 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4436 *) ac_file_in="${ac_file}.in" ;;
4439 echo creating $ac_file
4441 rm -f conftest.frag conftest.in conftest.out
4442 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4443 cat $ac_file_inputs > conftest.in
4447 # Transform confdefs.h into a sed script conftest.vals that substitutes
4448 # the proper values into config.h.in to produce config.h. And first:
4449 # Protect against being on the right side of a sed subst in config.status.
4450 # Protect against being in an unquoted here document in config.status.
4452 cat > conftest.hdr <<\EOF
4455 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4459 sed -n -f conftest.hdr confdefs.h > conftest.vals
4462 # This sed command replaces #undef with comments. This is necessary, for
4463 # example, in the case of _POSIX_SOURCE, which is predefined and required
4464 # on some systems where configure will not decide to define it.
4465 cat >> conftest.vals <<\EOF
4466 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4469 # Break up conftest.vals because some shells have a limit on
4470 # the size of here documents, and old seds have small limits too.
4475 ac_lines=`grep -c . conftest.vals`
4476 # grep -c gives empty output for an empty file on some AIX systems.
4477 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4478 # Write a limited-size here document to conftest.frag.
4479 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4480 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4482 sed -f conftest.frag conftest.in > conftest.out
4484 mv conftest.out conftest.in
4486 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4488 mv conftest.tail conftest.vals
4492 cat >> $CONFIG_STATUS <<\EOF
4493 rm -f conftest.frag conftest.h
4494 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4495 cat conftest.in >> conftest.h
4497 if cmp -s $ac_file conftest.h 2>/dev/null; then
4498 echo "$ac_file is unchanged"
4501 # Remove last slash and all that follows it. Not all systems have dirname.
4502 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4503 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4504 # The file is in a subdirectory.
4505 test ! -d "$ac_dir" && mkdir "$ac_dir"
4508 mv conftest.h $ac_file
4513 cat >> $CONFIG_STATUS <<EOF
4517 cat >> $CONFIG_STATUS <<\EOF
4518 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4522 chmod +x $CONFIG_STATUS
4523 rm -fr confdefs* $ac_clean_files
4524 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1