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-debug Turn on debugging"
17 --enable-verbose-warnings
18 Enable verbose compiler warnings."
21 Enable static executables."
23 --with-lam[=PATH] Set path of LAM MPI "
25 --with-ctn[=PATH] Set path of CTN DICOM library "
27 --with-cgibin-dir=PATH Set path of CGI binaries directory "
29 --with-cgibin-url=PATH Set URL path of CGI binaries "
31 --with-webdata-dir=PATH Set path of webdata"
33 --with-webdata-url=PATH Set URL path of webdata"
35 --with-html-dir=PATH Set directory of html files"
37 --with-x use the X Window System"
39 --enable-dmalloc Use dmalloc memory allocation"
41 --enable-efence Use ElectricFence memory allocation"
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
47 cache_file=./config.cache
56 program_transform_name=s,x,x,
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
77 # Initialize some other variables.
80 SHELL=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 # Accept the important Cygnus configure options, so we can diagnose typos.
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
109 -build | --build | --buil | --bui | --bu)
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112 build="$ac_optarg" ;;
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125 datadir="$ac_optarg" ;;
127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --version print the version of autoconf that created configure
174 Directory and file names:
175 --prefix=PREFIX install architecture-independent files in PREFIX
177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179 --bindir=DIR user executables in DIR [EPREFIX/bin]
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
182 --datadir=DIR read-only architecture-independent data in DIR
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
189 --includedir=DIR C header files in DIR [PREFIX/include]
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
191 --infodir=DIR info documentation in DIR [PREFIX/info]
192 --mandir=DIR man documentation in DIR [PREFIX/man]
193 --srcdir=DIR find the sources in DIR [configure dir or ..]
194 --program-prefix=PREFIX prepend PREFIX to installed program names
195 --program-suffix=SUFFIX append SUFFIX to installed program names
196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
202 --host=HOST configure for HOST [guessed]
203 --target=TARGET configure for TARGET [TARGET=HOST]
204 Features and packages:
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
209 --x-includes=DIR X include files are in DIR
210 --x-libraries=DIR X library files are in DIR
212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
217 -host | --host | --hos | --ho)
219 -host=* | --host=* | --hos=* | --ho=*)
222 -includedir | --includedir | --includedi | --included | --include \
223 | --includ | --inclu | --incl | --inc)
224 ac_prev=includedir ;;
225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
226 | --includ=* | --inclu=* | --incl=* | --inc=*)
227 includedir="$ac_optarg" ;;
229 -infodir | --infodir | --infodi | --infod | --info | --inf)
231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
232 infodir="$ac_optarg" ;;
234 -libdir | --libdir | --libdi | --libd)
236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
237 libdir="$ac_optarg" ;;
239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
240 | --libexe | --libex | --libe)
241 ac_prev=libexecdir ;;
242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
243 | --libexe=* | --libex=* | --libe=*)
244 libexecdir="$ac_optarg" ;;
246 -localstatedir | --localstatedir | --localstatedi | --localstated \
247 | --localstate | --localstat | --localsta | --localst \
248 | --locals | --local | --loca | --loc | --lo)
249 ac_prev=localstatedir ;;
250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
253 localstatedir="$ac_optarg" ;;
255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
258 mandir="$ac_optarg" ;;
261 # Obsolete; use --without-fp.
264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
274 | --oldin | --oldi | --old | --ol | --o)
275 ac_prev=oldincludedir ;;
276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
279 oldincludedir="$ac_optarg" ;;
281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
284 prefix="$ac_optarg" ;;
286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
287 | --program-pre | --program-pr | --program-p)
288 ac_prev=program_prefix ;;
289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
291 program_prefix="$ac_optarg" ;;
293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
294 | --program-suf | --program-su | --program-s)
295 ac_prev=program_suffix ;;
296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
298 program_suffix="$ac_optarg" ;;
300 -program-transform-name | --program-transform-name \
301 | --program-transform-nam | --program-transform-na \
302 | --program-transform-n | --program-transform- \
303 | --program-transform | --program-transfor \
304 | --program-transfo | --program-transf \
305 | --program-trans | --program-tran \
306 | --progr-tra | --program-tr | --program-t)
307 ac_prev=program_transform_name ;;
308 -program-transform-name=* | --program-transform-name=* \
309 | --program-transform-nam=* | --program-transform-na=* \
310 | --program-transform-n=* | --program-transform-=* \
311 | --program-transform=* | --program-transfor=* \
312 | --program-transfo=* | --program-transf=* \
313 | --program-trans=* | --program-tran=* \
314 | --progr-tra=* | --program-tr=* | --program-t=*)
315 program_transform_name="$ac_optarg" ;;
317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
318 | -silent | --silent | --silen | --sile | --sil)
321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325 sbindir="$ac_optarg" ;;
327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
329 | --sharedst | --shareds | --shared | --share | --shar \
331 ac_prev=sharedstatedir ;;
332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336 sharedstatedir="$ac_optarg" ;;
338 -site | --site | --sit)
340 -site=* | --site=* | --sit=*)
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=src/ctsim.cpp
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$CONFIG_SITE"; then
509 if test "x$prefix" != xNONE; then
510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
515 for ac_site_file in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
522 if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
526 echo "creating cache $cache_file"
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp='$CPP $CPPFLAGS'
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling=$ac_cv_prog_cc_cross
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548 ac_n= ac_c='\c' ac_t=
553 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
554 if test -f $ac_dir/install-sh; then
556 ac_install_sh="$ac_aux_dir/install-sh -c"
558 elif test -f $ac_dir/install.sh; then
560 ac_install_sh="$ac_aux_dir/install.sh -c"
564 if test -z "$ac_aux_dir"; then
565 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
567 ac_config_guess=$ac_aux_dir/config.guess
568 ac_config_sub=$ac_aux_dir/config.sub
569 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
571 # Find a good install program. We prefer a C program (faster),
572 # so one script is as good as another. But avoid the broken or
573 # incompatible versions:
574 # SysV /etc/install, /usr/sbin/install
575 # SunOS /usr/etc/install
578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
581 # ./install, which can be erroneously created by make from ./install.sh.
582 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
583 echo "configure:584: checking for a BSD compatible install" >&5
584 if test -z "$INSTALL"; then
585 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
588 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
589 for ac_dir in $PATH; do
590 # Account for people who put trailing slashes in PATH elements.
592 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
594 # OSF1 and SCO ODT 3.0 have their own names for install.
595 # Don't use installbsd from OSF since it installs stuff as root
597 for ac_prog in ginstall scoinst install; do
598 if test -f $ac_dir/$ac_prog; then
599 if test $ac_prog = install &&
600 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
601 # AIX install. It has an incompatible calling convention.
604 ac_cv_path_install="$ac_dir/$ac_prog -c"
615 if test "${ac_cv_path_install+set}" = set; then
616 INSTALL="$ac_cv_path_install"
618 # As a last resort, use the slow shell script. We don't cache a
619 # path for INSTALL within a source directory, because that will
620 # break other packages using the cache if that directory is
621 # removed, or if the path is relative.
622 INSTALL="$ac_install_sh"
625 echo "$ac_t""$INSTALL" 1>&6
627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
628 # It thinks the first close brace ends the variable substitution.
629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
635 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
636 echo "configure:637: checking whether build environment is sane" >&5
639 echo timestamp > conftestfile
640 # Do `set' in a subshell so we don't clobber the current shell's
641 # arguments. Must try -L first in case configure is actually a
642 # symlink; some systems play weird games with the mod time of symlinks
643 # (eg FreeBSD returns the mod time of the symlink's containing
646 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
647 if test "$*" = "X"; then
649 set X `ls -t $srcdir/configure conftestfile`
651 if test "$*" != "X $srcdir/configure conftestfile" \
652 && test "$*" != "X conftestfile $srcdir/configure"; then
654 # If neither matched, then we have a broken ls. This can happen
655 # if, for instance, CONFIG_SHELL is bash and it inherits a
656 # broken ls alias from the environment. This has actually
657 # happened. Such a system could not be considered "sane".
658 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
659 alias in your environment" 1>&2; exit 1; }
662 test "$2" = conftestfile
668 { echo "configure: error: newly created file is older than distributed files!
669 Check your system clock" 1>&2; exit 1; }
672 echo "$ac_t""yes" 1>&6
673 if test "$program_transform_name" = s,x,x,; then
674 program_transform_name=
676 # Double any \ or $. echo might interpret backslashes.
677 cat <<\EOF_SED > conftestsed
678 s,\\,\\\\,g; s,\$,$$,g
680 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
683 test "$program_prefix" != NONE &&
684 program_transform_name="s,^,${program_prefix},; $program_transform_name"
685 # Use a double $ so make ignores it.
686 test "$program_suffix" != NONE &&
687 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
689 # sed with no file args requires a program.
690 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
692 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
693 echo "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5
694 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
695 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 cat > conftestmake <<\EOF
700 @echo 'ac_maketemp="${MAKE}"'
702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
703 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
704 if test -n "$ac_maketemp"; then
705 eval ac_cv_prog_make_${ac_make}_set=yes
707 eval ac_cv_prog_make_${ac_make}_set=no
711 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
712 echo "$ac_t""yes" 1>&6
715 echo "$ac_t""no" 1>&6
716 SET_MAKE="MAKE=${MAKE-make}"
724 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
725 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
727 cat >> confdefs.h <<EOF
728 #define PACKAGE "$PACKAGE"
731 cat >> confdefs.h <<EOF
732 #define VERSION "$VERSION"
737 missing_dir=`cd $ac_aux_dir && pwd`
738 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
739 echo "configure:740: checking for working aclocal" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf. Sigh.
743 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
745 echo "$ac_t""found" 1>&6
747 ACLOCAL="$missing_dir/missing aclocal"
748 echo "$ac_t""missing" 1>&6
751 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
752 echo "configure:753: checking for working autoconf" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
758 echo "$ac_t""found" 1>&6
760 AUTOCONF="$missing_dir/missing autoconf"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working automake""... $ac_c" 1>&6
765 echo "configure:766: checking for working automake" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (automake --version) < /dev/null > /dev/null 2>&1; then
771 echo "$ac_t""found" 1>&6
773 AUTOMAKE="$missing_dir/missing automake"
774 echo "$ac_t""missing" 1>&6
777 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
778 echo "configure:779: checking for working autoheader" >&5
779 # Run test in a subshell; some versions of sh will print an error if
780 # an executable is not found, even if stderr is redirected.
781 # Redirect stdin to placate older versions of autoconf. Sigh.
782 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
783 AUTOHEADER=autoheader
784 echo "$ac_t""found" 1>&6
786 AUTOHEADER="$missing_dir/missing autoheader"
787 echo "$ac_t""missing" 1>&6
790 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
791 echo "configure:792: checking for working makeinfo" >&5
792 # Run test in a subshell; some versions of sh will print an error if
793 # an executable is not found, even if stderr is redirected.
794 # Redirect stdin to placate older versions of autoconf. Sigh.
795 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
797 echo "$ac_t""found" 1>&6
799 MAKEINFO="$missing_dir/missing makeinfo"
800 echo "$ac_t""missing" 1>&6
808 for ac_prog in mawk gawk nawk awk
810 # Extract the first word of "$ac_prog", so it can be a program name with args.
811 set dummy $ac_prog; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$AWK"; then
818 ac_cv_prog_AWK="$AWK" # Let the user override the test.
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
822 for ac_dir in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir=.
824 if test -f $ac_dir/$ac_word; then
825 ac_cv_prog_AWK="$ac_prog"
832 AWK="$ac_cv_prog_AWK"
833 if test -n "$AWK"; then
834 echo "$ac_t""$AWK" 1>&6
836 echo "$ac_t""no" 1>&6
839 test -n "$AWK" && break
842 # Find a good install program. We prefer a C program (faster),
843 # so one script is as good as another. But avoid the broken or
844 # incompatible versions:
845 # SysV /etc/install, /usr/sbin/install
846 # SunOS /usr/etc/install
849 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
850 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
851 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
852 # ./install, which can be erroneously created by make from ./install.sh.
853 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
854 echo "configure:855: checking for a BSD compatible install" >&5
855 if test -z "$INSTALL"; then
856 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
859 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
860 for ac_dir in $PATH; do
861 # Account for people who put trailing slashes in PATH elements.
863 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
865 # OSF1 and SCO ODT 3.0 have their own names for install.
866 # Don't use installbsd from OSF since it installs stuff as root
868 for ac_prog in ginstall scoinst install; do
869 if test -f $ac_dir/$ac_prog; then
870 if test $ac_prog = install &&
871 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
872 # AIX install. It has an incompatible calling convention.
875 ac_cv_path_install="$ac_dir/$ac_prog -c"
886 if test "${ac_cv_path_install+set}" = set; then
887 INSTALL="$ac_cv_path_install"
889 # As a last resort, use the slow shell script. We don't cache a
890 # path for INSTALL within a source directory, because that will
891 # break other packages using the cache if that directory is
892 # removed, or if the path is relative.
893 INSTALL="$ac_install_sh"
896 echo "$ac_t""$INSTALL" 1>&6
898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
899 # It thinks the first close brace ends the variable substitution.
900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
906 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
907 echo "configure:908: checking whether ${MAKE-make} sets \${MAKE}" >&5
908 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
909 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
912 cat > conftestmake <<\EOF
914 @echo 'ac_maketemp="${MAKE}"'
916 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
917 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
918 if test -n "$ac_maketemp"; then
919 eval ac_cv_prog_make_${ac_make}_set=yes
921 eval ac_cv_prog_make_${ac_make}_set=no
925 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
926 echo "$ac_t""yes" 1>&6
929 echo "$ac_t""no" 1>&6
930 SET_MAKE="MAKE=${MAKE-make}"
933 # Extract the first word of "ranlib", so it can be a program name with args.
934 set dummy ranlib; ac_word=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 if test -n "$RANLIB"; then
941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
945 for ac_dir in $ac_dummy; do
946 test -z "$ac_dir" && ac_dir=.
947 if test -f $ac_dir/$ac_word; then
948 ac_cv_prog_RANLIB="ranlib"
953 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
956 RANLIB="$ac_cv_prog_RANLIB"
957 if test -n "$RANLIB"; then
958 echo "$ac_t""$RANLIB" 1>&6
960 echo "$ac_t""no" 1>&6
964 CFLAGS="$CFLAGS -I/usr/local/include"
965 LDFLAGS="$LDFLAGS -L/usr/local/lib"
966 # Extract the first word of "gcc", so it can be a program name with args.
967 set dummy gcc; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 if test -n "$CC"; then
974 ac_cv_prog_CC="$CC" # Let the user override the test.
976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
978 for ac_dir in $ac_dummy; do
979 test -z "$ac_dir" && ac_dir=.
980 if test -f $ac_dir/$ac_word; then
989 if test -n "$CC"; then
990 echo "$ac_t""$CC" 1>&6
992 echo "$ac_t""no" 1>&6
995 if test -z "$CC"; then
996 # Extract the first word of "cc", so it can be a program name with args.
997 set dummy cc; ac_word=$2
998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
999 echo "configure:1000: checking for $ac_word" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 if test -n "$CC"; then
1004 ac_cv_prog_CC="$CC" # Let the user override the test.
1006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1009 for ac_dir in $ac_dummy; do
1010 test -z "$ac_dir" && ac_dir=.
1011 if test -f $ac_dir/$ac_word; then
1012 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1013 ac_prog_rejected=yes
1021 if test $ac_prog_rejected = yes; then
1022 # We found a bogon in the path, so make sure we never use it.
1023 set dummy $ac_cv_prog_CC
1025 if test $# -gt 0; then
1026 # We chose a different compiler from the bogus one.
1027 # However, it has the same basename, so the bogon will be chosen
1028 # first if we set CC to just the basename; use the full file name.
1030 set dummy "$ac_dir/$ac_word" "$@"
1038 if test -n "$CC"; then
1039 echo "$ac_t""$CC" 1>&6
1041 echo "$ac_t""no" 1>&6
1044 if test -z "$CC"; then
1045 case "`uname -s`" in
1047 # Extract the first word of "cl", so it can be a program name with args.
1048 set dummy cl; ac_word=$2
1049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1050 echo "configure:1051: checking for $ac_word" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 if test -n "$CC"; then
1055 ac_cv_prog_CC="$CC" # Let the user override the test.
1057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1059 for ac_dir in $ac_dummy; do
1060 test -z "$ac_dir" && ac_dir=.
1061 if test -f $ac_dir/$ac_word; then
1070 if test -n "$CC"; then
1071 echo "$ac_t""$CC" 1>&6
1073 echo "$ac_t""no" 1>&6
1078 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1081 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1082 echo "configure:1083: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1086 ac_cpp='$CPP $CPPFLAGS'
1087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1089 cross_compiling=$ac_cv_prog_cc_cross
1091 cat > conftest.$ac_ext << EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1098 if { (eval echo configure:1099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1099 ac_cv_prog_cc_works=yes
1100 # If we can't run a trivial program, we are probably using a cross compiler.
1101 if (./conftest; exit) 2>/dev/null; then
1102 ac_cv_prog_cc_cross=no
1104 ac_cv_prog_cc_cross=yes
1107 echo "configure: failed program was:" >&5
1108 cat conftest.$ac_ext >&5
1109 ac_cv_prog_cc_works=no
1113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1114 ac_cpp='$CPP $CPPFLAGS'
1115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1117 cross_compiling=$ac_cv_prog_cc_cross
1119 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1120 if test $ac_cv_prog_cc_works = no; then
1121 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1123 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1124 echo "configure:1125: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1125 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1126 cross_compiling=$ac_cv_prog_cc_cross
1128 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1129 echo "configure:1130: checking whether we are using GNU C" >&5
1130 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 cat > conftest.c <<EOF
1138 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1145 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1147 if test $ac_cv_prog_gcc = yes; then
1153 ac_test_CFLAGS="${CFLAGS+set}"
1154 ac_save_CFLAGS="$CFLAGS"
1156 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1157 echo "configure:1158: checking whether ${CC-cc} accepts -g" >&5
1158 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 echo 'void f(){}' > conftest.c
1162 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1171 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1172 if test "$ac_test_CFLAGS" = set; then
1173 CFLAGS="$ac_save_CFLAGS"
1174 elif test $ac_cv_prog_cc_g = yes; then
1175 if test "$GCC" = yes; then
1181 if test "$GCC" = yes; then
1188 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1190 # Extract the first word of "$ac_prog", so it can be a program name with args.
1191 set dummy $ac_prog; ac_word=$2
1192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1193 echo "configure:1194: checking for $ac_word" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 if test -n "$CXX"; then
1198 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1202 for ac_dir in $ac_dummy; do
1203 test -z "$ac_dir" && ac_dir=.
1204 if test -f $ac_dir/$ac_word; then
1205 ac_cv_prog_CXX="$ac_prog"
1212 CXX="$ac_cv_prog_CXX"
1213 if test -n "$CXX"; then
1214 echo "$ac_t""$CXX" 1>&6
1216 echo "$ac_t""no" 1>&6
1219 test -n "$CXX" && break
1221 test -n "$CXX" || CXX="gcc"
1224 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1228 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1229 ac_cpp='$CXXCPP $CPPFLAGS'
1230 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1231 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1232 cross_compiling=$ac_cv_prog_cxx_cross
1234 cat > conftest.$ac_ext << EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1239 int main(){return(0);}
1241 if { (eval echo configure:1242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1242 ac_cv_prog_cxx_works=yes
1243 # If we can't run a trivial program, we are probably using a cross compiler.
1244 if (./conftest; exit) 2>/dev/null; then
1245 ac_cv_prog_cxx_cross=no
1247 ac_cv_prog_cxx_cross=yes
1250 echo "configure: failed program was:" >&5
1251 cat conftest.$ac_ext >&5
1252 ac_cv_prog_cxx_works=no
1256 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1257 ac_cpp='$CPP $CPPFLAGS'
1258 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1259 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1260 cross_compiling=$ac_cv_prog_cc_cross
1262 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1263 if test $ac_cv_prog_cxx_works = no; then
1264 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1266 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1267 echo "configure:1268: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1268 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1269 cross_compiling=$ac_cv_prog_cxx_cross
1271 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1272 echo "configure:1273: checking whether we are using GNU C++" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 cat > conftest.C <<EOF
1281 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1288 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1290 if test $ac_cv_prog_gxx = yes; then
1296 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1297 ac_save_CXXFLAGS="$CXXFLAGS"
1299 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether ${CXX-g++} accepts -g" >&5
1301 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 echo 'void f(){}' > conftest.cc
1305 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1306 ac_cv_prog_cxx_g=yes
1314 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1315 if test "$ac_test_CXXFLAGS" = set; then
1316 CXXFLAGS="$ac_save_CXXFLAGS"
1317 elif test $ac_cv_prog_cxx_g = yes; then
1318 if test "$GXX" = yes; then
1324 if test "$GXX" = yes; then
1331 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1332 echo "configure:1333: checking whether byte ordering is bigendian" >&5
1333 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 ac_cv_c_bigendian=unknown
1337 # See if sys/param.h defines the BYTE_ORDER macro.
1338 cat > conftest.$ac_ext <<EOF
1339 #line 1340 "configure"
1340 #include "confdefs.h"
1341 #include <sys/types.h>
1342 #include <sys/param.h>
1345 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1350 if { (eval echo configure:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1352 # It does; now see whether it defined to BIG_ENDIAN or not.
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1356 #include <sys/types.h>
1357 #include <sys/param.h>
1360 #if BYTE_ORDER != BIG_ENDIAN
1365 if { (eval echo configure:1366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1367 ac_cv_c_bigendian=yes
1369 echo "configure: failed program was:" >&5
1370 cat conftest.$ac_ext >&5
1372 ac_cv_c_bigendian=no
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1380 if test $ac_cv_c_bigendian = unknown; then
1381 if test "$cross_compiling" = yes; then
1382 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1388 /* Are we little or big endian? From Harbison&Steele. */
1392 char c[sizeof (long)];
1395 exit (u.c[sizeof (long) - 1] == 1);
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1400 ac_cv_c_bigendian=no
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1405 ac_cv_c_bigendian=yes
1413 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1414 if test $ac_cv_c_bigendian = yes; then
1415 cat >> confdefs.h <<\EOF
1416 #define WORDS_BIGENDIAN 1
1422 # Extract the first word of "wx-config", so it can be a program name with args.
1423 set dummy wx-config; ac_word=$2
1424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1425 echo "configure:1426: checking for $ac_word" >&5
1426 if eval "test \"`echo '$''{'ac_cv_path_wxconfig'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1431 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
1434 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a dos path.
1437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1439 for ac_dir in $ac_dummy; do
1440 test -z "$ac_dir" && ac_dir=.
1441 if test -f $ac_dir/$ac_word; then
1442 ac_cv_path_wxconfig="$ac_dir/$ac_word"
1450 wxconfig="$ac_cv_path_wxconfig"
1451 if test -n "$wxconfig"; then
1452 echo "$ac_t""$wxconfig" 1>&6
1454 echo "$ac_t""no" 1>&6
1460 # Make sure we can run config.sub.
1461 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1462 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1465 echo $ac_n "checking host system type""... $ac_c" 1>&6
1466 echo "configure:1467: checking host system type" >&5
1469 case "$host_alias" in
1473 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1474 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1476 *) host_alias=$nonopt ;;
1480 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1481 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1484 echo "$ac_t""$host" 1>&6
1486 echo $ac_n "checking for inline""... $ac_c" 1>&6
1487 echo "configure:1488: checking for inline" >&5
1488 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1492 for ac_kw in inline __inline__ __inline; do
1493 cat > conftest.$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1501 if { (eval echo configure:1502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1503 ac_cv_c_inline=$ac_kw; break
1505 echo "configure: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1513 echo "$ac_t""$ac_cv_c_inline" 1>&6
1514 case "$ac_cv_c_inline" in
1516 no) cat >> confdefs.h <<\EOF
1520 *) cat >> confdefs.h <<EOF
1521 #define inline $ac_cv_c_inline
1526 echo $ac_n "checking size of short""... $ac_c" 1>&6
1527 echo "configure:1528: checking size of short" >&5
1528 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 if test "$cross_compiling" = yes; then
1532 ac_cv_sizeof_short=2
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1538 #include <sys/types.h>
1541 FILE *f=fopen("conftestval", "w");
1543 fprintf(f, "%d\n", sizeof(short));
1547 if { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1549 ac_cv_sizeof_short=`cat conftestval`
1551 echo "configure: failed program was:" >&5
1552 cat conftest.$ac_ext >&5
1554 ac_cv_sizeof_short=0
1560 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1561 cat >> confdefs.h <<EOF
1562 #define SIZEOF_SHORT $ac_cv_sizeof_short
1566 echo $ac_n "checking size of int""... $ac_c" 1>&6
1567 echo "configure:1568: checking size of int" >&5
1568 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1571 if test "$cross_compiling" = yes; then
1574 cat > conftest.$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1578 #include <sys/types.h>
1581 FILE *f=fopen("conftestval", "w");
1583 fprintf(f, "%d\n", sizeof(int));
1587 if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1589 ac_cv_sizeof_int=`cat conftestval`
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1600 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1601 cat >> confdefs.h <<EOF
1602 #define SIZEOF_INT $ac_cv_sizeof_int
1606 echo $ac_n "checking size of long""... $ac_c" 1>&6
1607 echo "configure:1608: checking size of long" >&5
1608 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 if test "$cross_compiling" = yes; then
1614 cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1618 #include <sys/types.h>
1621 FILE *f=fopen("conftestval", "w");
1623 fprintf(f, "%d\n", sizeof(long));
1627 if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1629 ac_cv_sizeof_long=`cat conftestval`
1631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1640 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1641 cat >> confdefs.h <<EOF
1642 #define SIZEOF_LONG $ac_cv_sizeof_long
1646 echo $ac_n "checking size of float""... $ac_c" 1>&6
1647 echo "configure:1648: checking size of float" >&5
1648 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 if test "$cross_compiling" = yes; then
1652 ac_cv_sizeof_float=4
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1658 #include <sys/types.h>
1661 FILE *f=fopen("conftestval", "w");
1663 fprintf(f, "%d\n", sizeof(float));
1667 if { (eval echo configure:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1669 ac_cv_sizeof_float=`cat conftestval`
1671 echo "configure: failed program was:" >&5
1672 cat conftest.$ac_ext >&5
1674 ac_cv_sizeof_float=0
1680 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
1681 cat >> confdefs.h <<EOF
1682 #define SIZEOF_FLOAT $ac_cv_sizeof_float
1686 echo $ac_n "checking size of double""... $ac_c" 1>&6
1687 echo "configure:1688: checking size of double" >&5
1688 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 if test "$cross_compiling" = yes; then
1692 ac_cv_sizeof_double=8
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1698 #include <sys/types.h>
1701 FILE *f=fopen("conftestval", "w");
1703 fprintf(f, "%d\n", sizeof(double));
1707 if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1709 ac_cv_sizeof_double=`cat conftestval`
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1714 ac_cv_sizeof_double=0
1720 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1721 cat >> confdefs.h <<EOF
1722 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1727 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1728 echo "configure:1729: checking for deflate in -lz" >&5
1729 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
1730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 ac_save_LIBS="$LIBS"
1735 cat > conftest.$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1738 /* Override any gcc2 internal prototype to avoid an error. */
1739 /* We use char because int might match the return type of a gcc2
1740 builtin and then its argument prototype would still apply. */
1747 if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1749 eval "ac_cv_lib_$ac_lib_var=yes"
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1754 eval "ac_cv_lib_$ac_lib_var=no"
1757 LIBS="$ac_save_LIBS"
1760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1761 echo "$ac_t""yes" 1>&6
1764 echo "$ac_t""no" 1>&6
1765 zlib="false" ; echo "configure: warning: zlib missing. Will need zlib for PNG support" 1>&2
1768 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1769 echo "configure:1770: checking for sin in -lm" >&5
1770 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 ac_save_LIBS="$LIBS"
1776 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1779 /* Override any gcc2 internal prototype to avoid an error. */
1780 /* We use char because int might match the return type of a gcc2
1781 builtin and then its argument prototype would still apply. */
1788 if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1790 eval "ac_cv_lib_$ac_lib_var=yes"
1792 echo "configure: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1795 eval "ac_cv_lib_$ac_lib_var=no"
1798 LIBS="$ac_save_LIBS"
1801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1802 echo "$ac_t""yes" 1>&6
1803 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1804 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1805 cat >> confdefs.h <<EOF
1806 #define $ac_tr_lib 1
1812 echo "$ac_t""no" 1>&6
1815 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1816 echo "configure:1817: checking for main in -lcurses" >&5
1817 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 ac_save_LIBS="$LIBS"
1822 LIBS="-lcurses $LIBS"
1823 cat > conftest.$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1833 eval "ac_cv_lib_$ac_lib_var=yes"
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1838 eval "ac_cv_lib_$ac_lib_var=no"
1841 LIBS="$ac_save_LIBS"
1844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1845 echo "$ac_t""yes" 1>&6
1848 echo "$ac_t""no" 1>&6
1852 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1853 echo "configure:1854: checking for main in -lncurses" >&5
1854 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 ac_save_LIBS="$LIBS"
1859 LIBS="-lncurses $LIBS"
1860 cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1868 if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1870 eval "ac_cv_lib_$ac_lib_var=yes"
1872 echo "configure: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1875 eval "ac_cv_lib_$ac_lib_var=no"
1878 LIBS="$ac_save_LIBS"
1881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1882 echo "$ac_t""yes" 1>&6
1885 echo "$ac_t""no" 1>&6
1889 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
1890 echo "configure:1891: checking for main in -lreadline" >&5
1891 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
1892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1895 ac_save_LIBS="$LIBS"
1896 LIBS="-lreadline -lcurses $LIBS"
1897 cat > conftest.$ac_ext <<EOF
1898 #line 1899 "configure"
1899 #include "confdefs.h"
1905 if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1907 eval "ac_cv_lib_$ac_lib_var=yes"
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1912 eval "ac_cv_lib_$ac_lib_var=no"
1915 LIBS="$ac_save_LIBS"
1918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1919 echo "$ac_t""yes" 1>&6
1920 readline=true; cat >> confdefs.h <<\EOF
1921 #define HAVE_READLINE 1
1925 echo "$ac_t""no" 1>&6
1929 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1930 echo "configure:1931: checking for main in -lncurses" >&5
1931 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 ac_save_LIBS="$LIBS"
1936 LIBS="-lncurses $LIBS"
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1945 if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1947 eval "ac_cv_lib_$ac_lib_var=yes"
1949 echo "configure: failed program was:" >&5
1950 cat conftest.$ac_ext >&5
1952 eval "ac_cv_lib_$ac_lib_var=no"
1955 LIBS="$ac_save_LIBS"
1958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1959 echo "$ac_t""yes" 1>&6
1960 ncurses=true; cat >> confdefs.h <<\EOF
1961 #define HAVE_NCURSES 1
1965 echo "$ac_t""no" 1>&6
1969 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1970 echo "configure:1971: checking for main in -lcurses" >&5
1971 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1975 ac_save_LIBS="$LIBS"
1976 LIBS="-lcurses $LIBS"
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1985 if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1987 eval "ac_cv_lib_$ac_lib_var=yes"
1989 echo "configure: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1992 eval "ac_cv_lib_$ac_lib_var=no"
1995 LIBS="$ac_save_LIBS"
1998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1999 echo "$ac_t""yes" 1>&6
2000 curses=true; cat >> confdefs.h <<\EOF
2001 #define HAVE_CURSES 1
2005 echo "$ac_t""no" 1>&6
2010 echo $ac_n "checking for main in -lwx_gtk-2.2""... $ac_c" 1>&6
2011 echo "configure:2012: checking for main in -lwx_gtk-2.2" >&5
2012 ac_lib_var=`echo wx_gtk-2.2'_'main | sed 'y%./+-%__p_%'`
2013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2016 ac_save_LIBS="$LIBS"
2017 LIBS="-lwx_gtk-2.2 $LIBS"
2018 cat > conftest.$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2026 if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2028 eval "ac_cv_lib_$ac_lib_var=yes"
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2033 eval "ac_cv_lib_$ac_lib_var=no"
2036 LIBS="$ac_save_LIBS"
2039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2040 echo "$ac_t""yes" 1>&6
2041 wxwin=true; wx_gtk=true; cat >> confdefs.h <<\EOF
2042 #define HAVE_WXWINDOWS 1
2046 echo "$ac_t""no" 1>&6
2049 echo $ac_n "checking for main in -lwx""... $ac_c" 1>&6
2050 echo "configure:2051: checking for main in -lwx" >&5
2051 ac_lib_var=`echo wx'_'main | sed 'y%./+-%__p_%'`
2052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 ac_save_LIBS="$LIBS"
2057 cat > conftest.$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2065 if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2067 eval "ac_cv_lib_$ac_lib_var=yes"
2069 echo "configure: failed program was:" >&5
2070 cat conftest.$ac_ext >&5
2072 eval "ac_cv_lib_$ac_lib_var=no"
2075 LIBS="$ac_save_LIBS"
2078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2079 echo "$ac_t""yes" 1>&6
2080 wxwin=true; wx_msw=true; cat >> confdefs.h <<\EOF
2081 #define HAVE_WXWINDOWS 1
2085 echo "$ac_t""no" 1>&6
2088 echo $ac_n "checking for main in -lhdf4""... $ac_c" 1>&6
2089 echo "configure:2090: checking for main in -lhdf4" >&5
2090 ac_lib_var=`echo hdf4'_'main | sed 'y%./+-%__p_%'`
2091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 ac_save_LIBS="$LIBS"
2095 LIBS="-lhdf4 -lz $LIBS"
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2104 if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2106 eval "ac_cv_lib_$ac_lib_var=yes"
2108 echo "configure: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2111 eval "ac_cv_lib_$ac_lib_var=no"
2114 LIBS="$ac_save_LIBS"
2117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2118 echo "$ac_t""yes" 1>&6
2121 echo "$ac_t""no" 1>&6
2125 echo $ac_n "checking for fftw_one in -lfftw""... $ac_c" 1>&6
2126 echo "configure:2127: checking for fftw_one in -lfftw" >&5
2127 ac_lib_var=`echo fftw'_'fftw_one | sed 'y%./+-%__p_%'`
2128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 ac_save_LIBS="$LIBS"
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 /* Override any gcc2 internal prototype to avoid an error. */
2137 /* We use char because int might match the return type of a gcc2
2138 builtin and then its argument prototype would still apply. */
2145 if { (eval echo configure:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2147 eval "ac_cv_lib_$ac_lib_var=yes"
2149 echo "configure: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2152 eval "ac_cv_lib_$ac_lib_var=no"
2155 LIBS="$ac_save_LIBS"
2158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 fftw=true; cat >> confdefs.h <<\EOF
2165 echo "$ac_t""no" 1>&6
2169 echo $ac_n "checking for main in -lGL""... $ac_c" 1>&6
2170 echo "configure:2171: checking for main in -lGL" >&5
2171 ac_lib_var=`echo GL'_'main | sed 'y%./+-%__p_%'`
2172 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 ac_save_LIBS="$LIBS"
2176 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
2177 cat > conftest.$ac_ext <<EOF
2178 #line 2179 "configure"
2179 #include "confdefs.h"
2185 if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2187 eval "ac_cv_lib_$ac_lib_var=yes"
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2192 eval "ac_cv_lib_$ac_lib_var=no"
2195 LIBS="$ac_save_LIBS"
2198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2199 echo "$ac_t""yes" 1>&6
2202 echo "$ac_t""no" 1>&6
2206 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
2207 echo "configure:2208: checking for main in -lpthread" >&5
2208 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
2209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 ac_save_LIBS="$LIBS"
2213 LIBS="-lpthread $LIBS"
2214 cat > conftest.$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2222 if { (eval echo configure:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2224 eval "ac_cv_lib_$ac_lib_var=yes"
2226 echo "configure: failed program was:" >&5
2227 cat conftest.$ac_ext >&5
2229 eval "ac_cv_lib_$ac_lib_var=no"
2232 LIBS="$ac_save_LIBS"
2235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2236 echo "$ac_t""yes" 1>&6
2239 echo "$ac_t""no" 1>&6
2244 if test "$zlib" = "true" ; then
2245 echo $ac_n "checking for main in -lpng""... $ac_c" 1>&6
2246 echo "configure:2247: checking for main in -lpng" >&5
2247 ac_lib_var=`echo png'_'main | sed 'y%./+-%__p_%'`
2248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2251 ac_save_LIBS="$LIBS"
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2263 eval "ac_cv_lib_$ac_lib_var=yes"
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2268 eval "ac_cv_lib_$ac_lib_var=no"
2271 LIBS="$ac_save_LIBS"
2274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2275 echo "$ac_t""yes" 1>&6
2276 png=true ; cat >> confdefs.h <<\EOF
2281 echo "$ac_t""no" 1>&6
2287 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2288 echo "configure:2289: checking how to run the C preprocessor" >&5
2289 # On Suns, sometimes $CPP names a directory.
2290 if test -n "$CPP" && test -d "$CPP"; then
2293 if test -z "$CPP"; then
2294 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 # This must be in double quotes, not single quotes, because CPP may get
2298 # substituted into the Makefile and "${CC-cc}" will confuse make.
2300 # On the NeXT, cc -E runs the code through the compiler's parser,
2301 # not just through cpp.
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2309 { (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2311 if test -z "$ac_err"; then
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2318 CPP="${CC-cc} -E -traditional-cpp"
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2326 { (eval echo configure:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2328 if test -z "$ac_err"; then
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2335 CPP="${CC-cc} -nologo -E"
2336 cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2343 { (eval echo configure:2344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2345 if test -z "$ac_err"; then
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2359 ac_cv_prog_CPP="$CPP"
2361 CPP="$ac_cv_prog_CPP"
2363 ac_cv_prog_CPP="$CPP"
2365 echo "$ac_t""$CPP" 1>&6
2367 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2368 echo "configure:2369: checking for ANSI C header files" >&5
2369 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2381 { (eval echo configure:2382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2383 if test -z "$ac_err"; then
2385 ac_cv_header_stdc=yes
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2391 ac_cv_header_stdc=no
2395 if test $ac_cv_header_stdc = yes; then
2396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2403 egrep "memchr" >/dev/null 2>&1; then
2407 ac_cv_header_stdc=no
2413 if test $ac_cv_header_stdc = yes; then
2414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2415 cat > conftest.$ac_ext <<EOF
2416 #line 2417 "configure"
2417 #include "confdefs.h"
2420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2421 egrep "free" >/dev/null 2>&1; then
2425 ac_cv_header_stdc=no
2431 if test $ac_cv_header_stdc = yes; then
2432 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2433 if test "$cross_compiling" = yes; then
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2440 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2441 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2443 int main () { int i; for (i = 0; i < 256; i++)
2444 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2448 if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2455 ac_cv_header_stdc=no
2463 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2464 if test $ac_cv_header_stdc = yes; then
2465 cat >> confdefs.h <<\EOF
2466 #define STDC_HEADERS 1
2471 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 assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
2473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2475 echo "configure:2476: checking for $ac_hdr" >&5
2476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2479 cat > conftest.$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2485 { (eval echo configure:2486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2487 if test -z "$ac_err"; then
2489 eval "ac_cv_header_$ac_safe=yes"
2492 echo "configure: failed program was:" >&5
2493 cat conftest.$ac_ext >&5
2495 eval "ac_cv_header_$ac_safe=no"
2499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2500 echo "$ac_t""yes" 1>&6
2501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2502 cat >> confdefs.h <<EOF
2503 #define $ac_tr_hdr 1
2507 echo "$ac_t""no" 1>&6
2512 echo $ac_n "checking for working const""... $ac_c" 1>&6
2513 echo "configure:2514: checking for working const" >&5
2514 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2523 /* Ultrix mips cc rejects this. */
2524 typedef int charset[2]; const charset x;
2525 /* SunOS 4.1.1 cc rejects this. */
2526 char const *const *ccp;
2528 /* NEC SVR4.0.2 mips cc rejects this. */
2529 struct point {int x, y;};
2530 static struct point const zero = {0,0};
2531 /* AIX XL C 1.02.0.0 rejects this.
2532 It does not let you subtract one const X* pointer from another in an arm
2533 of an if-expression whose if-part is not a constant expression */
2534 const char *g = "string";
2535 ccp = &g + (g ? g-g : 0);
2536 /* HPUX 7.0 cc rejects these. */
2539 ccp = (char const *const *) p;
2540 { /* SCO 3.2v4 cc rejects this. */
2542 char const *s = 0 ? (char *) 0 : (char const *) 0;
2546 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2548 const int *foo = &x[0];
2551 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2552 typedef const int *iptr;
2556 { /* AIX XL C 1.02.0.0 rejects this saying
2557 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2558 struct s { int j; const int *ap[3]; };
2559 struct s *b; b->j = 5;
2561 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2567 if { (eval echo configure:2568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2579 echo "$ac_t""$ac_cv_c_const" 1>&6
2580 if test $ac_cv_c_const = no; then
2581 cat >> confdefs.h <<\EOF
2587 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2588 echo "configure:2589: checking for off_t" >&5
2589 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 cat > conftest.$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2595 #include <sys/types.h>
2601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2602 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2604 ac_cv_type_off_t=yes
2612 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2613 if test $ac_cv_type_off_t = no; then
2614 cat >> confdefs.h <<\EOF
2620 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2621 echo "configure:2622: checking for size_t" >&5
2622 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2628 #include <sys/types.h>
2634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2635 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2637 ac_cv_type_size_t=yes
2640 ac_cv_type_size_t=no
2645 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2646 if test $ac_cv_type_size_t = no; then
2647 cat >> confdefs.h <<\EOF
2648 #define size_t unsigned
2653 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2654 echo "configure:2655: checking whether struct tm is in sys/time.h or time.h" >&5
2655 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 cat > conftest.$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2661 #include <sys/types.h>
2664 struct tm *tp; tp->tm_sec;
2667 if { (eval echo configure:2668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2669 ac_cv_struct_tm=time.h
2671 echo "configure: failed program was:" >&5
2672 cat conftest.$ac_ext >&5
2674 ac_cv_struct_tm=sys/time.h
2679 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2680 if test $ac_cv_struct_tm = sys/time.h; then
2681 cat >> confdefs.h <<\EOF
2682 #define TM_IN_SYS_TIME 1
2688 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2689 echo "configure:2690: checking for vprintf" >&5
2690 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 /* System header to define __stub macros and hopefully few prototypes,
2697 which can conflict with char vprintf(); below. */
2699 /* Override any gcc2 internal prototype to avoid an error. */
2700 /* We use char because int might match the return type of a gcc2
2701 builtin and then its argument prototype would still apply. */
2706 /* The GNU C library defines this for functions which it implements
2707 to always fail with ENOSYS. Some functions are actually named
2708 something starting with __ and the normal name is an alias. */
2709 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2717 if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2719 eval "ac_cv_func_vprintf=yes"
2721 echo "configure: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2724 eval "ac_cv_func_vprintf=no"
2729 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 cat >> confdefs.h <<\EOF
2732 #define HAVE_VPRINTF 1
2736 echo "$ac_t""no" 1>&6
2739 if test "$ac_cv_func_vprintf" != yes; then
2740 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2741 echo "configure:2742: checking for _doprnt" >&5
2742 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 /* System header to define __stub macros and hopefully few prototypes,
2749 which can conflict with char _doprnt(); below. */
2751 /* Override any gcc2 internal prototype to avoid an error. */
2752 /* We use char because int might match the return type of a gcc2
2753 builtin and then its argument prototype would still apply. */
2758 /* The GNU C library defines this for functions which it implements
2759 to always fail with ENOSYS. Some functions are actually named
2760 something starting with __ and the normal name is an alias. */
2761 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2769 if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2771 eval "ac_cv_func__doprnt=yes"
2773 echo "configure: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2776 eval "ac_cv_func__doprnt=no"
2781 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
2783 cat >> confdefs.h <<\EOF
2784 #define HAVE_DOPRNT 1
2788 echo "$ac_t""no" 1>&6
2793 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
2795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2796 echo "configure:2797: checking for $ac_func" >&5
2797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2800 cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803 /* System header to define __stub macros and hopefully few prototypes,
2804 which can conflict with char $ac_func(); below. */
2806 /* Override any gcc2 internal prototype to avoid an error. */
2807 /* We use char because int might match the return type of a gcc2
2808 builtin and then its argument prototype would still apply. */
2813 /* The GNU C library defines this for functions which it implements
2814 to always fail with ENOSYS. Some functions are actually named
2815 something starting with __ and the normal name is an alias. */
2816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2824 if { (eval echo configure:2825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2826 eval "ac_cv_func_$ac_func=yes"
2828 echo "configure: failed program was:" >&5
2829 cat conftest.$ac_ext >&5
2831 eval "ac_cv_func_$ac_func=no"
2836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2837 echo "$ac_t""yes" 1>&6
2838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2839 cat >> confdefs.h <<EOF
2840 #define $ac_tr_func 1
2844 echo "$ac_t""no" 1>&6
2848 echo $ac_n "checking for basename""... $ac_c" 1>&6
2849 echo "configure:2850: checking for basename" >&5
2850 if eval "test \"`echo '$''{'ac_cv_func_basename'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 cat > conftest.$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2856 /* System header to define __stub macros and hopefully few prototypes,
2857 which can conflict with char basename(); below. */
2859 /* Override any gcc2 internal prototype to avoid an error. */
2860 /* We use char because int might match the return type of a gcc2
2861 builtin and then its argument prototype would still apply. */
2866 /* The GNU C library defines this for functions which it implements
2867 to always fail with ENOSYS. Some functions are actually named
2868 something starting with __ and the normal name is an alias. */
2869 #if defined (__stub_basename) || defined (__stub___basename)
2877 if { (eval echo configure:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2879 eval "ac_cv_func_basename=yes"
2881 echo "configure: failed program was:" >&5
2882 cat conftest.$ac_ext >&5
2884 eval "ac_cv_func_basename=no"
2889 if eval "test \"`echo '$ac_cv_func_'basename`\" = yes"; then
2890 echo "$ac_t""yes" 1>&6
2893 echo "$ac_t""no" 1>&6
2896 echo $ac_n "checking for setjmp""... $ac_c" 1>&6
2897 echo "configure:2898: checking for setjmp" >&5
2898 if eval "test \"`echo '$''{'ac_cv_func_setjmp'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2901 cat > conftest.$ac_ext <<EOF
2902 #line 2903 "configure"
2903 #include "confdefs.h"
2904 /* System header to define __stub macros and hopefully few prototypes,
2905 which can conflict with char setjmp(); below. */
2907 /* Override any gcc2 internal prototype to avoid an error. */
2908 /* We use char because int might match the return type of a gcc2
2909 builtin and then its argument prototype would still apply. */
2914 /* The GNU C library defines this for functions which it implements
2915 to always fail with ENOSYS. Some functions are actually named
2916 something starting with __ and the normal name is an alias. */
2917 #if defined (__stub_setjmp) || defined (__stub___setjmp)
2925 if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2927 eval "ac_cv_func_setjmp=yes"
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2932 eval "ac_cv_func_setjmp=no"
2937 if eval "test \"`echo '$ac_cv_func_'setjmp`\" = yes"; then
2938 echo "$ac_t""yes" 1>&6
2941 echo "$ac_t""no" 1>&6
2944 echo $ac_n "checking for setpriority""... $ac_c" 1>&6
2945 echo "configure:2946: checking for setpriority" >&5
2946 if eval "test \"`echo '$''{'ac_cv_func_setpriority'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 cat > conftest.$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2952 /* System header to define __stub macros and hopefully few prototypes,
2953 which can conflict with char setpriority(); below. */
2955 /* Override any gcc2 internal prototype to avoid an error. */
2956 /* We use char because int might match the return type of a gcc2
2957 builtin and then its argument prototype would still apply. */
2962 /* The GNU C library defines this for functions which it implements
2963 to always fail with ENOSYS. Some functions are actually named
2964 something starting with __ and the normal name is an alias. */
2965 #if defined (__stub_setpriority) || defined (__stub___setpriority)
2973 if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2975 eval "ac_cv_func_setpriority=yes"
2977 echo "configure: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2980 eval "ac_cv_func_setpriority=no"
2985 if eval "test \"`echo '$ac_cv_func_'setpriority`\" = yes"; then
2986 echo "$ac_t""yes" 1>&6
2989 echo "$ac_t""no" 1>&6
2992 echo $ac_n "checking for time""... $ac_c" 1>&6
2993 echo "configure:2994: checking for time" >&5
2994 if eval "test \"`echo '$''{'ac_cv_func_time'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 cat > conftest.$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3000 /* System header to define __stub macros and hopefully few prototypes,
3001 which can conflict with char time(); below. */
3003 /* Override any gcc2 internal prototype to avoid an error. */
3004 /* We use char because int might match the return type of a gcc2
3005 builtin and then its argument prototype would still apply. */
3010 /* The GNU C library defines this for functions which it implements
3011 to always fail with ENOSYS. Some functions are actually named
3012 something starting with __ and the normal name is an alias. */
3013 #if defined (__stub_time) || defined (__stub___time)
3021 if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3023 eval "ac_cv_func_time=yes"
3025 echo "configure: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3028 eval "ac_cv_func_time=no"
3033 if eval "test \"`echo '$ac_cv_func_'time`\" = yes"; then
3034 echo "$ac_t""yes" 1>&6
3037 echo "$ac_t""no" 1>&6
3040 echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3041 echo "configure:3042: checking for gettimeofday" >&5
3042 if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 cat > conftest.$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3048 /* System header to define __stub macros and hopefully few prototypes,
3049 which can conflict with char gettimeofday(); below. */
3051 /* Override any gcc2 internal prototype to avoid an error. */
3052 /* We use char because int might match the return type of a gcc2
3053 builtin and then its argument prototype would still apply. */
3054 char gettimeofday();
3058 /* The GNU C library defines this for functions which it implements
3059 to always fail with ENOSYS. Some functions are actually named
3060 something starting with __ and the normal name is an alias. */
3061 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
3069 if { (eval echo configure:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3071 eval "ac_cv_func_gettimeofday=yes"
3073 echo "configure: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3076 eval "ac_cv_func_gettimeofday=no"
3081 if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
3082 echo "$ac_t""yes" 1>&6
3085 echo "$ac_t""no" 1>&6
3089 if test "${OSTYPE}" = "cygwin" ; then
3092 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3093 echo "configure:3094: checking for getopt_long" >&5
3094 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3100 /* System header to define __stub macros and hopefully few prototypes,
3101 which can conflict with char getopt_long(); below. */
3103 /* Override any gcc2 internal prototype to avoid an error. */
3104 /* We use char because int might match the return type of a gcc2
3105 builtin and then its argument prototype would still apply. */
3110 /* The GNU C library defines this for functions which it implements
3111 to always fail with ENOSYS. Some functions are actually named
3112 something starting with __ and the normal name is an alias. */
3113 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3123 eval "ac_cv_func_getopt_long=yes"
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 eval "ac_cv_func_getopt_long=no"
3133 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3134 echo "$ac_t""yes" 1>&6
3137 echo "$ac_t""no" 1>&6
3143 if test "${pthread}" = "true" ; then
3145 if test -n "$GCC"; then
3146 CFLAGS="$CFLAGS -pthread -D_REENTRANT"
3149 cat >> confdefs.h <<\EOF
3150 #define HAVE_WXTHREADS 1
3155 if test "${getopt_long}" = "false" ; then
3156 my_includes="$my_includes -I../getopt"
3157 cat >> confdefs.h <<\EOF
3158 #define HAVE_GETOPT_LONG 1
3161 ctlibs_base="$ctlibs_base -lgetopt"
3162 LDFLAGS="$LDFLAGS -L../getopt"
3166 INCLUDED_GETOPT_LONG_TRUE=
3167 INCLUDED_GETOPT_LONG_FALSE='#'
3169 INCLUDED_GETOPT_LONG_TRUE='#'
3170 INCLUDED_GETOPT_LONG_FALSE=
3174 if test "${readline}" = "true" ; then
3175 ctlibs_base="$ctlibs_base -lreadline"
3176 if test "${ncurses}" = "true"; then
3177 ctlibs_base="$ctlibs_base -lncurses"
3178 elif test "${curses}" = "true"; then
3179 ctlibs_base="$ctlibs_base -lcurses"
3183 echo $ac_n "checking debug""... $ac_c" 1>&6
3184 echo "configure:3185: checking debug" >&5
3185 # Check whether --enable-debug or --disable-debug was given.
3186 if test "${enable_debug+set}" = set; then
3187 enableval="$enable_debug"
3188 case "${enableval}" in
3190 echo "$ac_t""yes" 1>&6
3193 echo "$ac_t""no" 1>&6
3195 *) echo "$ac_t""bad value ${enableval} for --enable-debug" 1>&6
3199 debug=false; echo "$ac_t""no" 1>&6
3204 if test "$debug" = "true"; then
3212 if test "$debug" = "true" ; then
3214 cat >> confdefs.h <<\EOF
3219 CFLAGS="-O3 -DNDEBUG -fomit-frame-pointer"
3220 cat >> confdefs.h <<\EOF
3226 echo $ac_n "checking sstream""... $ac_c" 1>&6
3227 echo "configure:3228: checking sstream" >&5
3228 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
3229 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ; then
3230 cat >> confdefs.h <<\EOF
3231 #define HAVE_SSTREAM 1
3234 echo "$ac_t""yes" 1>&6
3236 echo "$ac_t""no" 1>&6
3240 if test -n "$GCC"; then
3241 CFLAGS="$CFLAGS -Wall"
3244 echo $ac_n "checking whether to enable verbose warnings""... $ac_c" 1>&6
3245 echo "configure:3246: checking whether to enable verbose warnings" >&5
3246 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
3247 if test "${enable_verbose_warnings+set}" = set; then
3248 enableval="$enable_verbose_warnings"
3249 case "$enableval" in
3251 echo "$ac_t""yes" 1>&6
3253 if test -n "$GCC"; then
3258 if test -n "$GCC"; then
3259 CFLAGS="$CFLAGS -Wshadow -Wpointer-arith -Wbad-function-cast"
3263 if test -n "$GCC"; then
3264 CFLAGS="$CFLAGS -Wcast-align -Wwrite-strings -Waggregate-return"
3268 if test -n "$GCC"; then
3269 CFLAGS="$CFLAGS -Wmissing-prototypes -Wstrict-prototypes"
3273 if test -n "$GCC"; then
3274 CFLAGS="$CFLAGS -pedantic"
3278 if test -n "$GCC"; then
3279 CFLAGS="$CFLAGS -Wredundant-decls"
3285 echo "$ac_t""no" 1>&6
3289 echo "$ac_t""no" 1>&6
3294 echo $ac_n "checking static executables""... $ac_c" 1>&6
3295 echo "configure:3296: checking static executables" >&5
3296 # Check whether --enable-static or --disable-static was given.
3297 if test "${enable_static+set}" = set; then
3298 enableval="$enable_static"
3299 case "$enableval" in
3301 echo "$ac_t""yes" 1>&6
3303 if test -n "$GCC"; then
3304 CFLAGS="$CFLAGS --static"
3309 echo "$ac_t""no" 1>&6
3313 echo "$ac_t""no" 1>&6
3318 # Check whether --with-lam or --without-lam was given.
3319 if test "${with_lam+set}" = set; then
3321 if test "$withval" != "no" ; then
3328 if test "$withval" != "no" ; then
3329 if test "$prefix" != "NONE" ; then
3330 trylamdir="$trylamdir $prefix"
3333 echo $ac_n "checking for LAM MPI installation""... $ac_c" 1>&6
3334 echo "configure:3335: checking for LAM MPI installation" >&5
3335 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
3336 if test -x "$testlamdir/bin/hcp" ; then
3337 if test "$testlamdir" != "/usr"; then
3338 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
3339 CFLAGS="$CFLAGS -I$testlamdir/include"
3341 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
3342 lamdir="$testlamdir"
3349 echo "$ac_t""$lamdir" 1>&6
3351 echo "$ac_t""no" 1>&6
3355 # Check whether --with-ctn or --without-ctn was given.
3356 if test "${with_ctn+set}" = set; then
3358 if test "$withval" != "no" ; then
3365 if test "$withval" != "no" ; then
3366 if test "$prefix" != "NONE" ; then
3367 tryctndir="$tryctndir $prefix"
3370 echo $ac_n "checking for CTN DICOM installation""... $ac_c" 1>&6
3371 echo "configure:3372: checking for CTN DICOM installation" >&5
3372 for testctndir in "." $tryctndir /usr/local /usr/local/ctn /usr /usr/ctn /opt /opt/ctn ; do
3373 if test -f "$testctndir/lib/libctn.a" ; then
3374 if test "$testctndir" != "/usr"; then
3375 LDFLAGS="$LDFLAGS -L$testctndir/lib"
3376 CFLAGS="$CFLAGS -I$testctndir/include"
3378 ctndir="$testctndir"
3380 cat >> confdefs.h <<\EOF
3381 #define HAVE_CTN_DICOM 1
3387 echo "$ac_t""$ctndir" 1>&6
3389 echo "$ac_t""no" 1>&6
3394 echo $ac_n "checking for web access""... $ac_c" 1>&6
3395 echo "configure:3396: checking for web access" >&5
3396 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
3397 if test "${with_cgibin_dir+set}" = set; then
3398 withval="$with_cgibin_dir"
3399 cgibindir=$withval ;
3403 # Check whether --with-cgibin-url or --without-cgibin-url was given.
3404 if test "${with_cgibin_url+set}" = set; then
3405 withval="$with_cgibin_url"
3406 cgibinurl=$withval ;
3410 # Check whether --with-webdata-dir or --without-webdata-dir was given.
3411 if test "${with_webdata_dir+set}" = set; then
3412 withval="$with_webdata_dir"
3413 webdatadir=$withval ;
3417 # Check whether --with-webdata-url or --without-webdata-url was given.
3418 if test "${with_webdata_url+set}" = set; then
3419 withval="$with_webdata_url"
3420 webdataurl=$withval ;
3424 # Check whether --with-html-dir or --without-html-dir was given.
3425 if test "${with_html_dir+set}" = set; then
3426 withval="$with_html_dir"
3431 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
3432 cgiprograms="ctsim.cgi ctsim.conf"
3436 if test -n "$htmldir" ; then
3437 htmldata=simulate.html
3442 if test -n "$htmldir"; then
3450 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
3453 echo "$ac_t""yes" 1>&6
3454 if test -z "$cgibindir" ; then
3455 { echo "configure: error: --with-cgibin-dir not set for web access" 1>&2; exit 1; }
3456 elif test -z "$cgibinurl" ; then
3457 { echo "configure: error: --with-cgibin-url not set for web access" 1>&2; exit 1; }
3458 elif test -z "$webdatadir" ; then
3459 { echo "configure: error: --with-webdata-dir not set for web access" 1>&2; exit 1; }
3460 elif test -z "$webdataurl" ; then
3461 { echo "configure: error: --with-webdata-url not set for web access" 1>&2; exit 1; }
3462 elif test -z "$htmldir" ; then
3463 { echo "configure: error: --with-html-dir not set for web access" 1>&2; exit 1; }
3466 echo "$ac_t""no" 1>&6
3471 if test -n "$lamdir"; then
3480 # If we find X, set shell vars x_includes and x_libraries to the
3481 # paths, otherwise set no_x=yes.
3482 # Uses ac_ vars as temps to allow command line to override cache and checks.
3483 # --without-x overrides everything else, but does not touch the cache.
3484 echo $ac_n "checking for X""... $ac_c" 1>&6
3485 echo "configure:3486: checking for X" >&5
3487 # Check whether --with-x or --without-x was given.
3488 if test "${with_x+set}" = set; then
3493 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3494 if test "x$with_x" = xno; then
3495 # The user explicitly disabled X.
3498 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3499 # Both variables are already set.
3502 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 # One or both of the vars are not set, and there is no cached value.
3506 ac_x_includes=NO ac_x_libraries=NO
3508 if mkdir conftestdir; then
3510 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3511 cat > Imakefile <<'EOF'
3513 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3515 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3516 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3517 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3518 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3519 for ac_extension in a so sl; do
3520 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3521 test -f $ac_im_libdir/libX11.$ac_extension; then
3522 ac_im_usrlibdir=$ac_im_libdir; break
3525 # Screen out bogus values from the imake configuration. They are
3526 # bogus both because they are the default anyway, and because
3527 # using them would break gcc on systems where it needs fixed includes.
3528 case "$ac_im_incroot" in
3530 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3532 case "$ac_im_usrlibdir" in
3534 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3541 if test "$ac_x_includes" = NO; then
3542 # Guess where to find include files, by looking for this one X11 .h file.
3543 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3545 # First, try using that file with no special directory specified.
3546 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3549 #include <$x_direct_test_include>
3551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3552 { (eval echo configure:3553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3554 if test -z "$ac_err"; then
3556 # We can compile using X headers with no special include directory.
3560 echo "configure: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3563 # Look for the header file in a standard set of common directories.
3564 # Check X11 before X11Rn because it is often a symlink to the current release.
3567 /usr/X11R6/include \
3568 /usr/X11R5/include \
3569 /usr/X11R4/include \
3572 /usr/include/X11R6 \
3573 /usr/include/X11R5 \
3574 /usr/include/X11R4 \
3576 /usr/local/X11/include \
3577 /usr/local/X11R6/include \
3578 /usr/local/X11R5/include \
3579 /usr/local/X11R4/include \
3581 /usr/local/include/X11 \
3582 /usr/local/include/X11R6 \
3583 /usr/local/include/X11R5 \
3584 /usr/local/include/X11R4 \
3588 /usr/XFree86/include/X11 \
3591 /usr/local/include \
3592 /usr/unsupported/include \
3593 /usr/athena/include \
3594 /usr/local/x11r5/include \
3595 /usr/lpp/Xamples/include \
3597 /usr/openwin/include \
3598 /usr/openwin/share/include \
3601 if test -r "$ac_dir/$x_direct_test_include"; then
3602 ac_x_includes=$ac_dir
3608 fi # $ac_x_includes = NO
3610 if test "$ac_x_libraries" = NO; then
3611 # Check for the libraries.
3613 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3614 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3616 # See if we find them without any special options.
3617 # Don't add to $LIBS permanently.
3618 ac_save_LIBS="$LIBS"
3619 LIBS="-l$x_direct_test_library $LIBS"
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3625 ${x_direct_test_function}()
3628 if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3630 LIBS="$ac_save_LIBS"
3631 # We can link X programs with no special library path.
3634 echo "configure: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3637 LIBS="$ac_save_LIBS"
3638 # First see if replacing the include by lib works.
3639 # Check X11 before X11Rn because it is often a symlink to the current release.
3640 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3651 /usr/local/X11/lib \
3652 /usr/local/X11R6/lib \
3653 /usr/local/X11R5/lib \
3654 /usr/local/X11R4/lib \
3656 /usr/local/lib/X11 \
3657 /usr/local/lib/X11R6 \
3658 /usr/local/lib/X11R5 \
3659 /usr/local/lib/X11R4 \
3663 /usr/XFree86/lib/X11 \
3667 /usr/unsupported/lib \
3669 /usr/local/x11r5/lib \
3670 /usr/lpp/Xamples/lib \
3674 /usr/openwin/share/lib \
3677 for ac_extension in a so sl; do
3678 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3679 ac_x_libraries=$ac_dir
3686 fi # $ac_x_libraries = NO
3688 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3689 # Didn't find X anywhere. Cache the known absence of X.
3690 ac_cv_have_x="have_x=no"
3692 # Record where we found X for the cache.
3693 ac_cv_have_x="have_x=yes \
3694 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3698 eval "$ac_cv_have_x"
3701 if test "$have_x" != yes; then
3702 echo "$ac_t""$have_x" 1>&6
3705 # If each of the values was on the command line, it overrides each guess.
3706 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3707 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3708 # Update the cache value to reflect the command line values.
3709 ac_cv_have_x="have_x=yes \
3710 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3711 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3714 if test "$no_x" = yes; then
3715 # Not all programs may use this symbol, but it does not hurt to define it.
3716 cat >> confdefs.h <<\EOF
3717 #define X_DISPLAY_MISSING 1
3720 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3722 if test -n "$x_includes"; then
3723 X_CFLAGS="$X_CFLAGS -I$x_includes"
3726 # It would also be nice to do this for all -L options, not just this one.
3727 if test -n "$x_libraries"; then
3728 X_LIBS="$X_LIBS -L$x_libraries"
3729 # For Solaris; some versions of Sun CC require a space after -R and
3730 # others require no space. Words are not sufficient . . . .
3731 case "`(uname -sr) 2>/dev/null`" in
3733 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3734 echo "configure:3735: checking whether -R must be followed by a space" >&5
3735 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3754 if test $ac_R_nospace = yes; then
3755 echo "$ac_t""no" 1>&6
3756 X_LIBS="$X_LIBS -R$x_libraries"
3758 LIBS="$ac_xsave_LIBS -R $x_libraries"
3759 cat > conftest.$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3767 if { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3771 echo "configure: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3777 if test $ac_R_space = yes; then
3778 echo "$ac_t""yes" 1>&6
3779 X_LIBS="$X_LIBS -R $x_libraries"
3781 echo "$ac_t""neither works" 1>&6
3784 LIBS="$ac_xsave_LIBS"
3788 # Check for system-dependent libraries X programs must link with.
3789 # Do this before checking for the system-independent R6 libraries
3790 # (-lICE), since we may need -lsocket or whatever for X linking.
3792 if test "$ISC" = yes; then
3793 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3795 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3796 # libraries were built with DECnet support. And karl@cs.umb.edu says
3797 # the Alpha needs dnet_stub (dnet does not exist).
3798 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3799 echo "configure:3800: checking for dnet_ntoa in -ldnet" >&5
3800 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3804 ac_save_LIBS="$LIBS"
3806 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3818 if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3820 eval "ac_cv_lib_$ac_lib_var=yes"
3822 echo "configure: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3825 eval "ac_cv_lib_$ac_lib_var=no"
3828 LIBS="$ac_save_LIBS"
3831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3832 echo "$ac_t""yes" 1>&6
3833 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3835 echo "$ac_t""no" 1>&6
3838 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3839 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3840 echo "configure:3841: checking for dnet_ntoa in -ldnet_stub" >&5
3841 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3843 echo $ac_n "(cached) $ac_c" 1>&6
3845 ac_save_LIBS="$LIBS"
3846 LIBS="-ldnet_stub $LIBS"
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3850 /* Override any gcc2 internal prototype to avoid an error. */
3851 /* We use char because int might match the return type of a gcc2
3852 builtin and then its argument prototype would still apply. */
3859 if { (eval echo configure:3860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3861 eval "ac_cv_lib_$ac_lib_var=yes"
3863 echo "configure: failed program was:" >&5
3864 cat conftest.$ac_ext >&5
3866 eval "ac_cv_lib_$ac_lib_var=no"
3869 LIBS="$ac_save_LIBS"
3872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3873 echo "$ac_t""yes" 1>&6
3874 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3876 echo "$ac_t""no" 1>&6
3881 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3882 # to get the SysV transport functions.
3883 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3885 # The nsl library prevents programs from opening the X display
3886 # on Irix 5.2, according to dickey@clark.net.
3887 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3888 echo "configure:3889: checking for gethostbyname" >&5
3889 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3892 cat > conftest.$ac_ext <<EOF
3893 #line 3894 "configure"
3894 #include "confdefs.h"
3895 /* System header to define __stub macros and hopefully few prototypes,
3896 which can conflict with char gethostbyname(); below. */
3898 /* Override any gcc2 internal prototype to avoid an error. */
3899 /* We use char because int might match the return type of a gcc2
3900 builtin and then its argument prototype would still apply. */
3901 char gethostbyname();
3905 /* The GNU C library defines this for functions which it implements
3906 to always fail with ENOSYS. Some functions are actually named
3907 something starting with __ and the normal name is an alias. */
3908 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3916 if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3918 eval "ac_cv_func_gethostbyname=yes"
3920 echo "configure: failed program was:" >&5
3921 cat conftest.$ac_ext >&5
3923 eval "ac_cv_func_gethostbyname=no"
3928 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3929 echo "$ac_t""yes" 1>&6
3932 echo "$ac_t""no" 1>&6
3935 if test $ac_cv_func_gethostbyname = no; then
3936 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3937 echo "configure:3938: checking for gethostbyname in -lnsl" >&5
3938 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3942 ac_save_LIBS="$LIBS"
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3947 /* Override any gcc2 internal prototype to avoid an error. */
3948 /* We use char because int might match the return type of a gcc2
3949 builtin and then its argument prototype would still apply. */
3950 char gethostbyname();
3956 if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3958 eval "ac_cv_lib_$ac_lib_var=yes"
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3963 eval "ac_cv_lib_$ac_lib_var=no"
3966 LIBS="$ac_save_LIBS"
3969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3970 echo "$ac_t""yes" 1>&6
3971 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3973 echo "$ac_t""no" 1>&6
3978 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3979 # socket/setsockopt and other routines are undefined under SCO ODT
3980 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3981 # on later versions), says simon@lia.di.epfl.ch: it contains
3982 # gethostby* variants that don't use the nameserver (or something).
3983 # -lsocket must be given before -lnsl if both are needed.
3984 # We assume that if connect needs -lnsl, so does gethostbyname.
3985 echo $ac_n "checking for connect""... $ac_c" 1>&6
3986 echo "configure:3987: checking for connect" >&5
3987 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 cat > conftest.$ac_ext <<EOF
3991 #line 3992 "configure"
3992 #include "confdefs.h"
3993 /* System header to define __stub macros and hopefully few prototypes,
3994 which can conflict with char connect(); below. */
3996 /* Override any gcc2 internal prototype to avoid an error. */
3997 /* We use char because int might match the return type of a gcc2
3998 builtin and then its argument prototype would still apply. */
4003 /* The GNU C library defines this for functions which it implements
4004 to always fail with ENOSYS. Some functions are actually named
4005 something starting with __ and the normal name is an alias. */
4006 #if defined (__stub_connect) || defined (__stub___connect)
4014 if { (eval echo configure:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4016 eval "ac_cv_func_connect=yes"
4018 echo "configure: failed program was:" >&5
4019 cat conftest.$ac_ext >&5
4021 eval "ac_cv_func_connect=no"
4026 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4027 echo "$ac_t""yes" 1>&6
4030 echo "$ac_t""no" 1>&6
4033 if test $ac_cv_func_connect = no; then
4034 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4035 echo "configure:4036: checking for connect in -lsocket" >&5
4036 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 ac_save_LIBS="$LIBS"
4041 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 /* Override any gcc2 internal prototype to avoid an error. */
4046 /* We use char because int might match the return type of a gcc2
4047 builtin and then its argument prototype would still apply. */
4054 if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4056 eval "ac_cv_lib_$ac_lib_var=yes"
4058 echo "configure: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4061 eval "ac_cv_lib_$ac_lib_var=no"
4064 LIBS="$ac_save_LIBS"
4067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4068 echo "$ac_t""yes" 1>&6
4069 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4071 echo "$ac_t""no" 1>&6
4076 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4077 echo $ac_n "checking for remove""... $ac_c" 1>&6
4078 echo "configure:4079: checking for remove" >&5
4079 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4082 cat > conftest.$ac_ext <<EOF
4083 #line 4084 "configure"
4084 #include "confdefs.h"
4085 /* System header to define __stub macros and hopefully few prototypes,
4086 which can conflict with char remove(); below. */
4088 /* Override any gcc2 internal prototype to avoid an error. */
4089 /* We use char because int might match the return type of a gcc2
4090 builtin and then its argument prototype would still apply. */
4095 /* The GNU C library defines this for functions which it implements
4096 to always fail with ENOSYS. Some functions are actually named
4097 something starting with __ and the normal name is an alias. */
4098 #if defined (__stub_remove) || defined (__stub___remove)
4106 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4108 eval "ac_cv_func_remove=yes"
4110 echo "configure: failed program was:" >&5
4111 cat conftest.$ac_ext >&5
4113 eval "ac_cv_func_remove=no"
4118 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4122 echo "$ac_t""no" 1>&6
4125 if test $ac_cv_func_remove = no; then
4126 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4127 echo "configure:4128: checking for remove in -lposix" >&5
4128 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4129 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 ac_save_LIBS="$LIBS"
4133 LIBS="-lposix $LIBS"
4134 cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4137 /* Override any gcc2 internal prototype to avoid an error. */
4138 /* We use char because int might match the return type of a gcc2
4139 builtin and then its argument prototype would still apply. */
4146 if { (eval echo configure:4147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4148 eval "ac_cv_lib_$ac_lib_var=yes"
4150 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4153 eval "ac_cv_lib_$ac_lib_var=no"
4156 LIBS="$ac_save_LIBS"
4159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4160 echo "$ac_t""yes" 1>&6
4161 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4163 echo "$ac_t""no" 1>&6
4168 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4169 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4170 echo "configure:4171: checking for shmat" >&5
4171 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4172 echo $ac_n "(cached) $ac_c" 1>&6
4174 cat > conftest.$ac_ext <<EOF
4175 #line 4176 "configure"
4176 #include "confdefs.h"
4177 /* System header to define __stub macros and hopefully few prototypes,
4178 which can conflict with char shmat(); below. */
4180 /* Override any gcc2 internal prototype to avoid an error. */
4181 /* We use char because int might match the return type of a gcc2
4182 builtin and then its argument prototype would still apply. */
4187 /* The GNU C library defines this for functions which it implements
4188 to always fail with ENOSYS. Some functions are actually named
4189 something starting with __ and the normal name is an alias. */
4190 #if defined (__stub_shmat) || defined (__stub___shmat)
4198 if { (eval echo configure:4199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4200 eval "ac_cv_func_shmat=yes"
4202 echo "configure: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4205 eval "ac_cv_func_shmat=no"
4210 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4211 echo "$ac_t""yes" 1>&6
4214 echo "$ac_t""no" 1>&6
4217 if test $ac_cv_func_shmat = no; then
4218 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4219 echo "configure:4220: checking for shmat in -lipc" >&5
4220 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 ac_save_LIBS="$LIBS"
4226 cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 /* Override any gcc2 internal prototype to avoid an error. */
4230 /* We use char because int might match the return type of a gcc2
4231 builtin and then its argument prototype would still apply. */
4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4240 eval "ac_cv_lib_$ac_lib_var=yes"
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 eval "ac_cv_lib_$ac_lib_var=no"
4248 LIBS="$ac_save_LIBS"
4251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4252 echo "$ac_t""yes" 1>&6
4253 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4255 echo "$ac_t""no" 1>&6
4261 # Check for libraries that X11R6 Xt/Xaw programs need.
4262 ac_save_LDFLAGS="$LDFLAGS"
4263 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4264 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4265 # check for ICE first), but we must link in the order -lSM -lICE or
4266 # we get undefined symbols. So assume we have SM if we have ICE.
4267 # These have to be linked with before -lX11, unlike the other
4268 # libraries we check for below, so use a different variable.
4269 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4270 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4271 echo "configure:4272: checking for IceConnectionNumber in -lICE" >&5
4272 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4276 ac_save_LIBS="$LIBS"
4277 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 /* Override any gcc2 internal prototype to avoid an error. */
4282 /* We use char because int might match the return type of a gcc2
4283 builtin and then its argument prototype would still apply. */
4284 char IceConnectionNumber();
4287 IceConnectionNumber()
4290 if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4292 eval "ac_cv_lib_$ac_lib_var=yes"
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4297 eval "ac_cv_lib_$ac_lib_var=no"
4300 LIBS="$ac_save_LIBS"
4303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4304 echo "$ac_t""yes" 1>&6
4305 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4307 echo "$ac_t""no" 1>&6
4310 LDFLAGS="$ac_save_LDFLAGS"
4321 X_TOOLKIT_LIBS="-lXt"
4322 X_BASIC_LIBS="-lXext -lX11 -lXmu"
4324 our_saved_LDFLAGS="$LDFLAGS"
4325 LDFLAGS="$X_LIBS $LDFLAGS"
4326 echo $ac_n "checking for XtToolkitThreadInitialize in -lXt""... $ac_c" 1>&6
4327 echo "configure:4328: checking for XtToolkitThreadInitialize in -lXt" >&5
4328 ac_lib_var=`echo Xt'_'XtToolkitThreadInitialize | sed 'y%./+-%__p_%'`
4329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4332 ac_save_LIBS="$LIBS"
4333 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
4334 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4337 /* Override any gcc2 internal prototype to avoid an error. */
4338 /* We use char because int might match the return type of a gcc2
4339 builtin and then its argument prototype would still apply. */
4340 char XtToolkitThreadInitialize();
4343 XtToolkitThreadInitialize()
4346 if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4348 eval "ac_cv_lib_$ac_lib_var=yes"
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4353 eval "ac_cv_lib_$ac_lib_var=no"
4356 LIBS="$ac_save_LIBS"
4359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4360 echo "$ac_t""yes" 1>&6
4361 cat >> confdefs.h <<\EOF
4362 #define X_THREAD_SUPPORT 1
4366 echo "$ac_t""no" 1>&6
4369 LDFLAGS="$our_saved_LDFLAGS"
4371 our_saved_LDFLAGS="$LDFLAGS"
4372 LDFLAGS="$X_LIBS $LDFLAGS"
4373 echo $ac_n "checking for XdbeQueryExtension in -lXext""... $ac_c" 1>&6
4374 echo "configure:4375: checking for XdbeQueryExtension in -lXext" >&5
4375 ac_lib_var=`echo Xext'_'XdbeQueryExtension | sed 'y%./+-%__p_%'`
4376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 ac_save_LIBS="$LIBS"
4380 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
4381 cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4384 /* Override any gcc2 internal prototype to avoid an error. */
4385 /* We use char because int might match the return type of a gcc2
4386 builtin and then its argument prototype would still apply. */
4387 char XdbeQueryExtension();
4390 XdbeQueryExtension()
4393 if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4395 eval "ac_cv_lib_$ac_lib_var=yes"
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4400 eval "ac_cv_lib_$ac_lib_var=no"
4403 LIBS="$ac_save_LIBS"
4406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4407 echo "$ac_t""yes" 1>&6
4408 cat >> confdefs.h <<\EOF
4409 #define HAVE_DBE_SUPPORT 1
4413 echo "$ac_t""no" 1>&6
4416 echo $ac_n "checking for XmbufQueryExtension in -lXext""... $ac_c" 1>&6
4417 echo "configure:4418: checking for XmbufQueryExtension in -lXext" >&5
4418 ac_lib_var=`echo Xext'_'XmbufQueryExtension | sed 'y%./+-%__p_%'`
4419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4420 echo $ac_n "(cached) $ac_c" 1>&6
4422 ac_save_LIBS="$LIBS"
4423 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
4424 cat > conftest.$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4427 /* Override any gcc2 internal prototype to avoid an error. */
4428 /* We use char because int might match the return type of a gcc2
4429 builtin and then its argument prototype would still apply. */
4430 char XmbufQueryExtension();
4433 XmbufQueryExtension()
4436 if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4438 eval "ac_cv_lib_$ac_lib_var=yes"
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4443 eval "ac_cv_lib_$ac_lib_var=no"
4446 LIBS="$ac_save_LIBS"
4449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4450 echo "$ac_t""yes" 1>&6
4451 cat >> confdefs.h <<\EOF
4452 #define HAVE_MBX_SUPPORT 1
4456 echo "$ac_t""no" 1>&6
4459 LDFLAGS="$our_saved_LDFLAGS"
4460 our_saved_CPPFLAGS="$CPPFLAGS"
4461 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
4462 for ac_hdr in X11/extensions/Xdbe.h X11/extensions/multibuf.h
4464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4466 echo "configure:4467: checking for $ac_hdr" >&5
4467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4476 { (eval echo configure:4477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4478 if test -z "$ac_err"; then
4480 eval "ac_cv_header_$ac_safe=yes"
4483 echo "configure: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4486 eval "ac_cv_header_$ac_safe=no"
4490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4491 echo "$ac_t""yes" 1>&6
4492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4493 cat >> confdefs.h <<EOF
4494 #define $ac_tr_hdr 1
4498 echo "$ac_t""no" 1>&6
4502 CPPFLAGS="$our_saved_CPPFLAGS"
4506 if test "x$no_x" = "xyes"; then
4514 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
4517 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4519 echo $ac_n "checking for X""... $ac_c" 1>&6
4520 echo "configure:4521: checking for X" >&5
4521 if test "$no_x" != "yes" ; then
4522 cat >> confdefs.h <<\EOF
4526 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
4527 ctlib_graphics="$ctlibs_base -lctgraphics"
4528 echo "$ac_t""yes" 1>&6
4529 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
4530 if test "$libgl" = "true" ; then
4531 ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
4532 if test "$wxwin" = "true" ; then
4533 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.2"
4536 if test "$wxwin" = "true" ; then
4537 cat >> confdefs.h <<\EOF
4552 echo "$ac_t""no" 1>&6
4555 if test "$png" = "true" ; then
4556 ctlibs_tools="$ctlibs_tools -lpng"
4558 if test "$zlib" = "true" ; then
4559 ctlibs_tools="$ctlibs_tools -lz"
4561 if test "$fftw" = "true" ; then
4562 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
4564 if test "$ctn" = "true"; then
4565 ctlibs_tools="$ctlibs_tools -lctn"
4568 echo $ac_n "checking for main in -ldmallocxx""... $ac_c" 1>&6
4569 echo "configure:4570: checking for main in -ldmallocxx" >&5
4570 ac_lib_var=`echo dmallocxx'_'main | sed 'y%./+-%__p_%'`
4571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4574 ac_save_LIBS="$LIBS"
4575 LIBS="-ldmallocxx $LIBS"
4576 cat > conftest.$ac_ext <<EOF
4577 #line 4578 "configure"
4578 #include "confdefs.h"
4584 if { (eval echo configure:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4586 eval "ac_cv_lib_$ac_lib_var=yes"
4588 echo "configure: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
4591 eval "ac_cv_lib_$ac_lib_var=no"
4594 LIBS="$ac_save_LIBS"
4597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4598 echo "$ac_t""yes" 1>&6
4601 echo "$ac_t""no" 1>&6
4605 echo $ac_n "checking for enable-dmalloc""... $ac_c" 1>&6
4606 echo "configure:4607: checking for enable-dmalloc" >&5
4607 # Check whether --enable-dmalloc or --disable-dmalloc was given.
4608 if test "${enable_dmalloc+set}" = set; then
4609 enableval="$enable_dmalloc"
4610 case "${enableval}" in
4611 yes) usedmalloc=true
4612 echo "$ac_t""yes" 1>&6
4614 no) usedmalloc=false
4615 echo "$ac_t""no" 1>&6
4617 *) echo "$ac_t""bad value ${enableval} for --enable-dmalloc" 1>&6
4621 usedmalloc=false; echo "$ac_t""no" 1>&6
4625 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
4626 ctlibs_tools="$ctlibs_tools -ldmallocxx"
4627 cat >> confdefs.h <<\EOF
4628 #define HAVE_DMALLOC 1
4631 echo "$ac_t""Using dmalloc" 1>&6
4634 echo $ac_n "checking for main in -lefence""... $ac_c" 1>&6
4635 echo "configure:4636: checking for main in -lefence" >&5
4636 ac_lib_var=`echo efence'_'main | sed 'y%./+-%__p_%'`
4637 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4638 echo $ac_n "(cached) $ac_c" 1>&6
4640 ac_save_LIBS="$LIBS"
4641 LIBS="-lefence $LIBS"
4642 cat > conftest.$ac_ext <<EOF
4643 #line 4644 "configure"
4644 #include "confdefs.h"
4650 if { (eval echo configure:4651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4652 eval "ac_cv_lib_$ac_lib_var=yes"
4654 echo "configure: failed program was:" >&5
4655 cat conftest.$ac_ext >&5
4657 eval "ac_cv_lib_$ac_lib_var=no"
4660 LIBS="$ac_save_LIBS"
4663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4664 echo "$ac_t""yes" 1>&6
4667 echo "$ac_t""no" 1>&6
4671 echo $ac_n "checking for enable-efence""... $ac_c" 1>&6
4672 echo "configure:4673: checking for enable-efence" >&5
4673 # Check whether --enable-efence or --disable-efence was given.
4674 if test "${enable_efence+set}" = set; then
4675 enableval="$enable_efence"
4676 case "${enableval}" in
4678 echo "$ac_t""yes" 1>&6
4681 echo "$ac_t""no" 1>&6
4683 *) echo "$ac_t""bad value ${enableval} for --enable-efence" 1>&6
4687 useefence=false; echo "$ac_t""no" 1>&6
4691 if test "$efence" = "true" -a "$useefence" = "true" ; then
4692 ctlibs_tools="$ctlibs_tools -lefence"
4693 cat >> confdefs.h <<\EOF
4694 #define HAVE_EFENCE 1
4697 echo "$ac_t""Using efence" 1>&6
4700 if test "$wxwin" = "true" ; then
4701 if test "$wx_gtk" = "true" ; then
4702 wxcflags=`$wxconfig --cflags`
4703 wxlibs=`$wxconfig --libs`
4705 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
4706 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
4708 CFLAGS="$CFLAGS -I../include $wxcflags"
4709 ctlib_graphics="$ctlib_graphics $wxlibs"
4713 HAVE_WXWINDOWS_TRUE=
4714 HAVE_WXWINDOWS_FALSE='#'
4716 HAVE_WXWINDOWS_TRUE='#'
4717 HAVE_WXWINDOWS_FALSE=
4723 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
4724 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
4727 if test -n "$lamdir" ; then
4728 lamprograms="ctsimtext-lam"
4737 cat > confcache <<\EOF
4738 # This file is a shell script that caches the results of configure
4739 # tests run on this system so they can be shared between configure
4740 # scripts and configure runs. It is not useful on other systems.
4741 # If it contains results you don't want to keep, you may remove or edit it.
4743 # By default, configure uses ./config.cache as the cache file,
4744 # creating it if it does not exist already. You can give configure
4745 # the --cache-file=FILE option to use a different cache file; that is
4746 # what configure does when it calls configure scripts in
4747 # subdirectories, so they share the cache.
4748 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4749 # config.status only pays attention to the cache file if you give it the
4750 # --recheck option to rerun configure.
4753 # The following way of writing the cache mishandles newlines in values,
4754 # but we know of no workaround that is simple, portable, and efficient.
4755 # So, don't put newlines in cache variables' values.
4756 # Ultrix sh set writes to stderr and can't be redirected directly,
4757 # and sets the high bit in the cache file unless we assign to the vars.
4759 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4761 # `set' does not quote correctly, so add quotes (double-quote substitution
4762 # turns \\\\ into \\, and sed turns \\ into \).
4764 -e "s/'/'\\\\''/g" \
4765 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4768 # `set' quotes correctly as required by POSIX, so do not add quotes.
4769 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4772 if cmp -s $cache_file confcache; then
4775 if test -w $cache_file; then
4776 echo "updating cache $cache_file"
4777 cat confcache > $cache_file
4779 echo "not updating unwritable cache $cache_file"
4784 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4786 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4787 # Let make expand exec_prefix.
4788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4790 # Any assignment to VPATH causes Sun make to only execute
4791 # the first set of double-colon rules, so remove it if not needed.
4792 # If there is a colon in the path, we need to keep it.
4793 if test "x$srcdir" = x.; then
4794 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4797 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4799 DEFS=-DHAVE_CONFIG_H
4801 # Without the "./", some shells look in PATH for config.status.
4802 : ${CONFIG_STATUS=./config.status}
4804 echo creating $CONFIG_STATUS
4805 rm -f $CONFIG_STATUS
4806 cat > $CONFIG_STATUS <<EOF
4808 # Generated automatically by configure.
4809 # Run this file to recreate the current configuration.
4810 # This directory was configured as follows,
4811 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4813 # $0 $ac_configure_args
4815 # Compiler output produced by configure, useful for debugging
4816 # configure, is in ./config.log if it exists.
4818 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4821 case "\$ac_option" in
4822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4823 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4824 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4825 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4826 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4828 -help | --help | --hel | --he | --h)
4829 echo "\$ac_cs_usage"; exit 0 ;;
4830 *) echo "\$ac_cs_usage"; exit 1 ;;
4834 ac_given_srcdir=$srcdir
4835 ac_given_INSTALL="$INSTALL"
4837 trap 'rm -fr `echo "Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile Makefile man/Makefile doc/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile helical/Makefile helical/sample-helical.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4839 cat >> $CONFIG_STATUS <<EOF
4841 # Protect against being on the right side of a sed subst in config.status.
4842 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4843 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4847 s%@CFLAGS@%$CFLAGS%g
4848 s%@CPPFLAGS@%$CPPFLAGS%g
4849 s%@CXXFLAGS@%$CXXFLAGS%g
4850 s%@FFLAGS@%$FFLAGS%g
4852 s%@LDFLAGS@%$LDFLAGS%g
4854 s%@exec_prefix@%$exec_prefix%g
4855 s%@prefix@%$prefix%g
4856 s%@program_transform_name@%$program_transform_name%g
4857 s%@bindir@%$bindir%g
4858 s%@sbindir@%$sbindir%g
4859 s%@libexecdir@%$libexecdir%g
4860 s%@datadir@%$datadir%g
4861 s%@sysconfdir@%$sysconfdir%g
4862 s%@sharedstatedir@%$sharedstatedir%g
4863 s%@localstatedir@%$localstatedir%g
4864 s%@libdir@%$libdir%g
4865 s%@includedir@%$includedir%g
4866 s%@oldincludedir@%$oldincludedir%g
4867 s%@infodir@%$infodir%g
4868 s%@mandir@%$mandir%g
4869 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4870 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4871 s%@INSTALL_DATA@%$INSTALL_DATA%g
4872 s%@PACKAGE@%$PACKAGE%g
4873 s%@VERSION@%$VERSION%g
4874 s%@ACLOCAL@%$ACLOCAL%g
4875 s%@AUTOCONF@%$AUTOCONF%g
4876 s%@AUTOMAKE@%$AUTOMAKE%g
4877 s%@AUTOHEADER@%$AUTOHEADER%g
4878 s%@MAKEINFO@%$MAKEINFO%g
4879 s%@SET_MAKE@%$SET_MAKE%g
4881 s%@RANLIB@%$RANLIB%g
4884 s%@wxconfig@%$wxconfig%g
4886 s%@host_alias@%$host_alias%g
4887 s%@host_cpu@%$host_cpu%g
4888 s%@host_vendor@%$host_vendor%g
4889 s%@host_os@%$host_os%g
4891 s%@INCLUDED_GETOPT_LONG_TRUE@%$INCLUDED_GETOPT_LONG_TRUE%g
4892 s%@INCLUDED_GETOPT_LONG_FALSE@%$INCLUDED_GETOPT_LONG_FALSE%g
4893 s%@DEBUG_TRUE@%$DEBUG_TRUE%g
4894 s%@DEBUG_FALSE@%$DEBUG_FALSE%g
4895 s%@lamdir@%$lamdir%g
4896 s%@mpienable@%$mpienable%g
4897 s%@cgibindir@%$cgibindir%g
4898 s%@cgibinurl@%$cgibinurl%g
4899 s%@webdatadir@%$webdatadir%g
4900 s%@webdataurl@%$webdataurl%g
4901 s%@htmldir@%$htmldir%g
4902 s%@cgiprograms@%$cgiprograms%g
4903 s%@htmldata@%$htmldata%g
4904 s%@USE_HTML_TRUE@%$USE_HTML_TRUE%g
4905 s%@USE_HTML_FALSE@%$USE_HTML_FALSE%g
4906 s%@webenabled@%$webenabled%g
4907 s%@USE_LAM_TRUE@%$USE_LAM_TRUE%g
4908 s%@USE_LAM_FALSE@%$USE_LAM_FALSE%g
4909 s%@X_CFLAGS@%$X_CFLAGS%g
4910 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4911 s%@X_LIBS@%$X_LIBS%g
4912 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4913 s%@X_TOOLKIT_LIBS@%$X_TOOLKIT_LIBS%g
4914 s%@X_BASIC_LIBS@%$X_BASIC_LIBS%g
4915 s%@NO_X_TRUE@%$NO_X_TRUE%g
4916 s%@NO_X_FALSE@%$NO_X_FALSE%g
4917 s%@my_includes@%$my_includes%g
4918 s%@HAVE_SGP_TRUE@%$HAVE_SGP_TRUE%g
4919 s%@HAVE_SGP_FALSE@%$HAVE_SGP_FALSE%g
4920 s%@HAVE_WXWINDOWS_TRUE@%$HAVE_WXWINDOWS_TRUE%g
4921 s%@HAVE_WXWINDOWS_FALSE@%$HAVE_WXWINDOWS_FALSE%g
4922 s%@wxcflags@%$wxcflags%g
4923 s%@wxlibs@%$wxlibs%g
4924 s%@ctlibs@%$ctlibs%g
4925 s%@lamprograms@%$lamprograms%g
4926 s%@lamdefs@%$lamdefs%g
4931 cat >> $CONFIG_STATUS <<\EOF
4933 # Split the substitutions into bite-sized pieces for seds with
4934 # small command number limits, like on Digital OSF/1 and HP-UX.
4935 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4936 ac_file=1 # Number of current file.
4937 ac_beg=1 # First line for current file.
4938 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4941 while $ac_more_lines; do
4942 if test $ac_beg -gt 1; then
4943 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4945 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4947 if test ! -s conftest.s$ac_file; then
4949 rm -f conftest.s$ac_file
4951 if test -z "$ac_sed_cmds"; then
4952 ac_sed_cmds="sed -f conftest.s$ac_file"
4954 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4956 ac_file=`expr $ac_file + 1`
4958 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4961 if test -z "$ac_sed_cmds"; then
4966 cat >> $CONFIG_STATUS <<EOF
4968 CONFIG_FILES=\${CONFIG_FILES-"Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile Makefile man/Makefile doc/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile helical/Makefile helical/sample-helical.sh"}
4970 cat >> $CONFIG_STATUS <<\EOF
4971 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4972 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4974 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4975 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4976 *) ac_file_in="${ac_file}.in" ;;
4979 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4981 # Remove last slash and all that follows it. Not all systems have dirname.
4982 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4983 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4984 # The file is in a subdirectory.
4985 test ! -d "$ac_dir" && mkdir "$ac_dir"
4986 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4987 # A "../" for each directory in $ac_dir_suffix.
4988 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4990 ac_dir_suffix= ac_dots=
4993 case "$ac_given_srcdir" in
4995 if test -z "$ac_dots"; then top_srcdir=.
4996 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4997 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4999 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5000 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5003 case "$ac_given_INSTALL" in
5004 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5005 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5008 echo creating "$ac_file"
5010 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5012 *Makefile*) ac_comsub="1i\\
5013 # $configure_input" ;;
5017 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5019 s%@configure_input@%$configure_input%g
5020 s%@srcdir@%$srcdir%g
5021 s%@top_srcdir@%$top_srcdir%g
5022 s%@INSTALL@%$INSTALL%g
5023 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5027 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5028 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5030 # ac_d sets the value in "#define NAME VALUE" lines.
5031 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5032 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5035 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5036 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5037 ac_uB='\([ ]\)%\1#\2define\3'
5040 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5041 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5042 ac_eB='$%\1#\2define\3'
5046 if test "${CONFIG_HEADERS+set}" != set; then
5048 cat >> $CONFIG_STATUS <<EOF
5049 CONFIG_HEADERS="config.h"
5051 cat >> $CONFIG_STATUS <<\EOF
5053 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5054 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5056 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5057 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5058 *) ac_file_in="${ac_file}.in" ;;
5061 echo creating $ac_file
5063 rm -f conftest.frag conftest.in conftest.out
5064 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5065 cat $ac_file_inputs > conftest.in
5069 # Transform confdefs.h into a sed script conftest.vals that substitutes
5070 # the proper values into config.h.in to produce config.h. And first:
5071 # Protect against being on the right side of a sed subst in config.status.
5072 # Protect against being in an unquoted here document in config.status.
5074 cat > conftest.hdr <<\EOF
5077 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5081 sed -n -f conftest.hdr confdefs.h > conftest.vals
5084 # This sed command replaces #undef with comments. This is necessary, for
5085 # example, in the case of _POSIX_SOURCE, which is predefined and required
5086 # on some systems where configure will not decide to define it.
5087 cat >> conftest.vals <<\EOF
5088 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5091 # Break up conftest.vals because some shells have a limit on
5092 # the size of here documents, and old seds have small limits too.
5097 ac_lines=`grep -c . conftest.vals`
5098 # grep -c gives empty output for an empty file on some AIX systems.
5099 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5100 # Write a limited-size here document to conftest.frag.
5101 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5102 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5104 sed -f conftest.frag conftest.in > conftest.out
5106 mv conftest.out conftest.in
5108 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5110 mv conftest.tail conftest.vals
5114 cat >> $CONFIG_STATUS <<\EOF
5115 rm -f conftest.frag conftest.h
5116 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5117 cat conftest.in >> conftest.h
5119 if cmp -s $ac_file conftest.h 2>/dev/null; then
5120 echo "$ac_file is unchanged"
5123 # Remove last slash and all that follows it. Not all systems have dirname.
5124 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5125 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5126 # The file is in a subdirectory.
5127 test ! -d "$ac_dir" && mkdir "$ac_dir"
5130 mv conftest.h $ac_file
5135 cat >> $CONFIG_STATUS <<EOF
5139 cat >> $CONFIG_STATUS <<\EOF
5140 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5144 chmod +x $CONFIG_STATUS
5145 rm -fr confdefs* $ac_clean_files
5146 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1