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 -lg2""... $ac_c" 1>&6
1890 echo "configure:1891: checking for main in -lg2" >&5
1891 ac_lib_var=`echo g2'_'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"
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
1922 echo "$ac_t""no" 1>&6
1926 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
1927 echo "configure:1928: checking for main in -lreadline" >&5
1928 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
1929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 ac_save_LIBS="$LIBS"
1933 LIBS="-lreadline -lcurses $LIBS"
1934 cat > conftest.$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1942 if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1944 eval "ac_cv_lib_$ac_lib_var=yes"
1946 echo "configure: failed program was:" >&5
1947 cat conftest.$ac_ext >&5
1949 eval "ac_cv_lib_$ac_lib_var=no"
1952 LIBS="$ac_save_LIBS"
1955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1956 echo "$ac_t""yes" 1>&6
1957 readline=true; cat >> confdefs.h <<\EOF
1958 #define HAVE_READLINE 1
1962 echo "$ac_t""no" 1>&6
1966 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1967 echo "configure:1968: checking for main in -lncurses" >&5
1968 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 ac_save_LIBS="$LIBS"
1973 LIBS="-lncurses $LIBS"
1974 cat > conftest.$ac_ext <<EOF
1975 #line 1976 "configure"
1976 #include "confdefs.h"
1982 if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1984 eval "ac_cv_lib_$ac_lib_var=yes"
1986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1989 eval "ac_cv_lib_$ac_lib_var=no"
1992 LIBS="$ac_save_LIBS"
1995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1996 echo "$ac_t""yes" 1>&6
1997 ncurses=true; cat >> confdefs.h <<\EOF
1998 #define HAVE_NCURSES 1
2002 echo "$ac_t""no" 1>&6
2006 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2007 echo "configure:2008: checking for main in -lcurses" >&5
2008 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2012 ac_save_LIBS="$LIBS"
2013 LIBS="-lcurses $LIBS"
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2022 if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2024 eval "ac_cv_lib_$ac_lib_var=yes"
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2029 eval "ac_cv_lib_$ac_lib_var=no"
2032 LIBS="$ac_save_LIBS"
2035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2036 echo "$ac_t""yes" 1>&6
2037 curses=true; cat >> confdefs.h <<\EOF
2038 #define HAVE_CURSES 1
2042 echo "$ac_t""no" 1>&6
2047 echo $ac_n "checking for main in -lwx_gtk-2.2""... $ac_c" 1>&6
2048 echo "configure:2049: checking for main in -lwx_gtk-2.2" >&5
2049 ac_lib_var=`echo wx_gtk-2.2'_'main | sed 'y%./+-%__p_%'`
2050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 ac_save_LIBS="$LIBS"
2054 LIBS="-lwx_gtk-2.2 $LIBS"
2055 cat > conftest.$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2063 if { (eval echo configure:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2065 eval "ac_cv_lib_$ac_lib_var=yes"
2067 echo "configure: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2070 eval "ac_cv_lib_$ac_lib_var=no"
2073 LIBS="$ac_save_LIBS"
2076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2077 echo "$ac_t""yes" 1>&6
2078 wxwin=true; wx_gtk=true; cat >> confdefs.h <<\EOF
2079 #define HAVE_WXWINDOWS 1
2083 echo "$ac_t""no" 1>&6
2086 echo $ac_n "checking for main in -lwx""... $ac_c" 1>&6
2087 echo "configure:2088: checking for main in -lwx" >&5
2088 ac_lib_var=`echo wx'_'main | sed 'y%./+-%__p_%'`
2089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 ac_save_LIBS="$LIBS"
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2102 if { (eval echo configure:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2104 eval "ac_cv_lib_$ac_lib_var=yes"
2106 echo "configure: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2109 eval "ac_cv_lib_$ac_lib_var=no"
2112 LIBS="$ac_save_LIBS"
2115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2116 echo "$ac_t""yes" 1>&6
2117 wxwin=true; wx_msw=true; cat >> confdefs.h <<\EOF
2118 #define HAVE_WXWINDOWS 1
2122 echo "$ac_t""no" 1>&6
2125 echo $ac_n "checking for main in -lhdf5""... $ac_c" 1>&6
2126 echo "configure:2127: checking for main in -lhdf5" >&5
2127 ac_lib_var=`echo hdf5'_'main | 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"
2132 LIBS="-lhdf5 -lz $LIBS"
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2141 if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2143 eval "ac_cv_lib_$ac_lib_var=yes"
2145 echo "configure: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2148 eval "ac_cv_lib_$ac_lib_var=no"
2151 LIBS="$ac_save_LIBS"
2154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2155 echo "$ac_t""yes" 1>&6
2158 echo "$ac_t""no" 1>&6
2162 echo $ac_n "checking for fftw_one in -lfftw""... $ac_c" 1>&6
2163 echo "configure:2164: checking for fftw_one in -lfftw" >&5
2164 ac_lib_var=`echo fftw'_'fftw_one | sed 'y%./+-%__p_%'`
2165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 ac_save_LIBS="$LIBS"
2170 cat > conftest.$ac_ext <<EOF
2171 #line 2172 "configure"
2172 #include "confdefs.h"
2173 /* Override any gcc2 internal prototype to avoid an error. */
2174 /* We use char because int might match the return type of a gcc2
2175 builtin and then its argument prototype would still apply. */
2182 if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2184 eval "ac_cv_lib_$ac_lib_var=yes"
2186 echo "configure: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2189 eval "ac_cv_lib_$ac_lib_var=no"
2192 LIBS="$ac_save_LIBS"
2195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2196 echo "$ac_t""yes" 1>&6
2197 fftw=true; cat >> confdefs.h <<\EOF
2202 echo "$ac_t""no" 1>&6
2206 echo $ac_n "checking for main in -lGL""... $ac_c" 1>&6
2207 echo "configure:2208: checking for main in -lGL" >&5
2208 ac_lib_var=`echo GL'_'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="-lGL -L/usr/X11R6/lib -lXt -lXext $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
2243 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
2244 echo "configure:2245: checking for main in -lpthread" >&5
2245 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
2246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2249 ac_save_LIBS="$LIBS"
2250 LIBS="-lpthread $LIBS"
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2259 if { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2261 eval "ac_cv_lib_$ac_lib_var=yes"
2263 echo "configure: failed program was:" >&5
2264 cat conftest.$ac_ext >&5
2266 eval "ac_cv_lib_$ac_lib_var=no"
2269 LIBS="$ac_save_LIBS"
2272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2273 echo "$ac_t""yes" 1>&6
2276 echo "$ac_t""no" 1>&6
2281 if test "$zlib" = "true" ; then
2282 echo $ac_n "checking for main in -lpng""... $ac_c" 1>&6
2283 echo "configure:2284: checking for main in -lpng" >&5
2284 ac_lib_var=`echo png'_'main | sed 'y%./+-%__p_%'`
2285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 ac_save_LIBS="$LIBS"
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2300 eval "ac_cv_lib_$ac_lib_var=yes"
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2305 eval "ac_cv_lib_$ac_lib_var=no"
2308 LIBS="$ac_save_LIBS"
2311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2312 echo "$ac_t""yes" 1>&6
2313 png=true ; cat >> confdefs.h <<\EOF
2318 echo "$ac_t""no" 1>&6
2324 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2325 echo "configure:2326: checking how to run the C preprocessor" >&5
2326 # On Suns, sometimes $CPP names a directory.
2327 if test -n "$CPP" && test -d "$CPP"; then
2330 if test -z "$CPP"; then
2331 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 # This must be in double quotes, not single quotes, because CPP may get
2335 # substituted into the Makefile and "${CC-cc}" will confuse make.
2337 # On the NeXT, cc -E runs the code through the compiler's parser,
2338 # not just through cpp.
2339 cat > conftest.$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2346 { (eval echo configure:2347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2348 if test -z "$ac_err"; then
2352 echo "configure: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2355 CPP="${CC-cc} -E -traditional-cpp"
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2363 { (eval echo configure:2364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2365 if test -z "$ac_err"; then
2369 echo "configure: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2372 CPP="${CC-cc} -nologo -E"
2373 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2380 { (eval echo configure:2381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2382 if test -z "$ac_err"; then
2386 echo "configure: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2396 ac_cv_prog_CPP="$CPP"
2398 CPP="$ac_cv_prog_CPP"
2400 ac_cv_prog_CPP="$CPP"
2402 echo "$ac_t""$CPP" 1>&6
2404 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2405 echo "configure:2406: checking for ANSI C header files" >&5
2406 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 cat > conftest.$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2418 { (eval echo configure:2419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2420 if test -z "$ac_err"; then
2422 ac_cv_header_stdc=yes
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2428 ac_cv_header_stdc=no
2432 if test $ac_cv_header_stdc = yes; then
2433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2434 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2440 egrep "memchr" >/dev/null 2>&1; then
2444 ac_cv_header_stdc=no
2450 if test $ac_cv_header_stdc = yes; then
2451 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2452 cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2458 egrep "free" >/dev/null 2>&1; then
2462 ac_cv_header_stdc=no
2468 if test $ac_cv_header_stdc = yes; then
2469 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2470 if test "$cross_compiling" = yes; then
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2477 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2478 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2480 int main () { int i; for (i = 0; i < 256; i++)
2481 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2485 if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2489 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2492 ac_cv_header_stdc=no
2500 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2501 if test $ac_cv_header_stdc = yes; then
2502 cat >> confdefs.h <<\EOF
2503 #define STDC_HEADERS 1
2508 for ac_hdr in fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h g2.h assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
2510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2512 echo "configure:2513: checking for $ac_hdr" >&5
2513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2522 { (eval echo configure:2523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2524 if test -z "$ac_err"; then
2526 eval "ac_cv_header_$ac_safe=yes"
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2532 eval "ac_cv_header_$ac_safe=no"
2536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2537 echo "$ac_t""yes" 1>&6
2538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2539 cat >> confdefs.h <<EOF
2540 #define $ac_tr_hdr 1
2544 echo "$ac_t""no" 1>&6
2549 echo $ac_n "checking for working const""... $ac_c" 1>&6
2550 echo "configure:2551: checking for working const" >&5
2551 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2560 /* Ultrix mips cc rejects this. */
2561 typedef int charset[2]; const charset x;
2562 /* SunOS 4.1.1 cc rejects this. */
2563 char const *const *ccp;
2565 /* NEC SVR4.0.2 mips cc rejects this. */
2566 struct point {int x, y;};
2567 static struct point const zero = {0,0};
2568 /* AIX XL C 1.02.0.0 rejects this.
2569 It does not let you subtract one const X* pointer from another in an arm
2570 of an if-expression whose if-part is not a constant expression */
2571 const char *g = "string";
2572 ccp = &g + (g ? g-g : 0);
2573 /* HPUX 7.0 cc rejects these. */
2576 ccp = (char const *const *) p;
2577 { /* SCO 3.2v4 cc rejects this. */
2579 char const *s = 0 ? (char *) 0 : (char const *) 0;
2583 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2585 const int *foo = &x[0];
2588 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2589 typedef const int *iptr;
2593 { /* AIX XL C 1.02.0.0 rejects this saying
2594 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2595 struct s { int j; const int *ap[3]; };
2596 struct s *b; b->j = 5;
2598 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2604 if { (eval echo configure:2605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2608 echo "configure: failed program was:" >&5
2609 cat conftest.$ac_ext >&5
2616 echo "$ac_t""$ac_cv_c_const" 1>&6
2617 if test $ac_cv_c_const = no; then
2618 cat >> confdefs.h <<\EOF
2624 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2625 echo "configure:2626: checking for off_t" >&5
2626 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2632 #include <sys/types.h>
2638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2639 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2641 ac_cv_type_off_t=yes
2649 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2650 if test $ac_cv_type_off_t = no; then
2651 cat >> confdefs.h <<\EOF
2657 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2658 echo "configure:2659: checking for size_t" >&5
2659 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 #include <sys/types.h>
2671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2672 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2674 ac_cv_type_size_t=yes
2677 ac_cv_type_size_t=no
2682 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2683 if test $ac_cv_type_size_t = no; then
2684 cat >> confdefs.h <<\EOF
2685 #define size_t unsigned
2690 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2691 echo "configure:2692: checking whether struct tm is in sys/time.h or time.h" >&5
2692 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <sys/types.h>
2701 struct tm *tp; tp->tm_sec;
2704 if { (eval echo configure:2705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2706 ac_cv_struct_tm=time.h
2708 echo "configure: failed program was:" >&5
2709 cat conftest.$ac_ext >&5
2711 ac_cv_struct_tm=sys/time.h
2716 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2717 if test $ac_cv_struct_tm = sys/time.h; then
2718 cat >> confdefs.h <<\EOF
2719 #define TM_IN_SYS_TIME 1
2725 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2726 echo "configure:2727: checking for vprintf" >&5
2727 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 cat > conftest.$ac_ext <<EOF
2731 #line 2732 "configure"
2732 #include "confdefs.h"
2733 /* System header to define __stub macros and hopefully few prototypes,
2734 which can conflict with char vprintf(); below. */
2736 /* Override any gcc2 internal prototype to avoid an error. */
2737 /* We use char because int might match the return type of a gcc2
2738 builtin and then its argument prototype would still apply. */
2743 /* The GNU C library defines this for functions which it implements
2744 to always fail with ENOSYS. Some functions are actually named
2745 something starting with __ and the normal name is an alias. */
2746 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2756 eval "ac_cv_func_vprintf=yes"
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2761 eval "ac_cv_func_vprintf=no"
2766 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2767 echo "$ac_t""yes" 1>&6
2768 cat >> confdefs.h <<\EOF
2769 #define HAVE_VPRINTF 1
2773 echo "$ac_t""no" 1>&6
2776 if test "$ac_cv_func_vprintf" != yes; then
2777 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2778 echo "configure:2779: checking for _doprnt" >&5
2779 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 cat > conftest.$ac_ext <<EOF
2783 #line 2784 "configure"
2784 #include "confdefs.h"
2785 /* System header to define __stub macros and hopefully few prototypes,
2786 which can conflict with char _doprnt(); below. */
2788 /* Override any gcc2 internal prototype to avoid an error. */
2789 /* We use char because int might match the return type of a gcc2
2790 builtin and then its argument prototype would still apply. */
2795 /* The GNU C library defines this for functions which it implements
2796 to always fail with ENOSYS. Some functions are actually named
2797 something starting with __ and the normal name is an alias. */
2798 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2806 if { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2808 eval "ac_cv_func__doprnt=yes"
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2813 eval "ac_cv_func__doprnt=no"
2818 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2819 echo "$ac_t""yes" 1>&6
2820 cat >> confdefs.h <<\EOF
2821 #define HAVE_DOPRNT 1
2825 echo "$ac_t""no" 1>&6
2830 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
2832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2833 echo "configure:2834: checking for $ac_func" >&5
2834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 cat > conftest.$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2840 /* System header to define __stub macros and hopefully few prototypes,
2841 which can conflict with char $ac_func(); below. */
2843 /* Override any gcc2 internal prototype to avoid an error. */
2844 /* We use char because int might match the return type of a gcc2
2845 builtin and then its argument prototype would still apply. */
2850 /* The GNU C library defines this for functions which it implements
2851 to always fail with ENOSYS. Some functions are actually named
2852 something starting with __ and the normal name is an alias. */
2853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2861 if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2863 eval "ac_cv_func_$ac_func=yes"
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2868 eval "ac_cv_func_$ac_func=no"
2873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2874 echo "$ac_t""yes" 1>&6
2875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2876 cat >> confdefs.h <<EOF
2877 #define $ac_tr_func 1
2881 echo "$ac_t""no" 1>&6
2885 echo $ac_n "checking for basename""... $ac_c" 1>&6
2886 echo "configure:2887: checking for basename" >&5
2887 if eval "test \"`echo '$''{'ac_cv_func_basename'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 cat > conftest.$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2893 /* System header to define __stub macros and hopefully few prototypes,
2894 which can conflict with char basename(); below. */
2896 /* Override any gcc2 internal prototype to avoid an error. */
2897 /* We use char because int might match the return type of a gcc2
2898 builtin and then its argument prototype would still apply. */
2903 /* The GNU C library defines this for functions which it implements
2904 to always fail with ENOSYS. Some functions are actually named
2905 something starting with __ and the normal name is an alias. */
2906 #if defined (__stub_basename) || defined (__stub___basename)
2914 if { (eval echo configure:2915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2916 eval "ac_cv_func_basename=yes"
2918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2921 eval "ac_cv_func_basename=no"
2926 if eval "test \"`echo '$ac_cv_func_'basename`\" = yes"; then
2927 echo "$ac_t""yes" 1>&6
2930 echo "$ac_t""no" 1>&6
2933 echo $ac_n "checking for setjmp""... $ac_c" 1>&6
2934 echo "configure:2935: checking for setjmp" >&5
2935 if eval "test \"`echo '$''{'ac_cv_func_setjmp'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2941 /* System header to define __stub macros and hopefully few prototypes,
2942 which can conflict with char setjmp(); below. */
2944 /* Override any gcc2 internal prototype to avoid an error. */
2945 /* We use char because int might match the return type of a gcc2
2946 builtin and then its argument prototype would still apply. */
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined (__stub_setjmp) || defined (__stub___setjmp)
2962 if { (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2964 eval "ac_cv_func_setjmp=yes"
2966 echo "configure: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2969 eval "ac_cv_func_setjmp=no"
2974 if eval "test \"`echo '$ac_cv_func_'setjmp`\" = yes"; then
2975 echo "$ac_t""yes" 1>&6
2978 echo "$ac_t""no" 1>&6
2981 echo $ac_n "checking for setpriority""... $ac_c" 1>&6
2982 echo "configure:2983: checking for setpriority" >&5
2983 if eval "test \"`echo '$''{'ac_cv_func_setpriority'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 /* System header to define __stub macros and hopefully few prototypes,
2990 which can conflict with char setpriority(); below. */
2992 /* Override any gcc2 internal prototype to avoid an error. */
2993 /* We use char because int might match the return type of a gcc2
2994 builtin and then its argument prototype would still apply. */
2999 /* The GNU C library defines this for functions which it implements
3000 to always fail with ENOSYS. Some functions are actually named
3001 something starting with __ and the normal name is an alias. */
3002 #if defined (__stub_setpriority) || defined (__stub___setpriority)
3010 if { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3012 eval "ac_cv_func_setpriority=yes"
3014 echo "configure: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3017 eval "ac_cv_func_setpriority=no"
3022 if eval "test \"`echo '$ac_cv_func_'setpriority`\" = yes"; then
3023 echo "$ac_t""yes" 1>&6
3026 echo "$ac_t""no" 1>&6
3029 echo $ac_n "checking for time""... $ac_c" 1>&6
3030 echo "configure:3031: checking for time" >&5
3031 if eval "test \"`echo '$''{'ac_cv_func_time'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 /* System header to define __stub macros and hopefully few prototypes,
3038 which can conflict with char time(); below. */
3040 /* Override any gcc2 internal prototype to avoid an error. */
3041 /* We use char because int might match the return type of a gcc2
3042 builtin and then its argument prototype would still apply. */
3047 /* The GNU C library defines this for functions which it implements
3048 to always fail with ENOSYS. Some functions are actually named
3049 something starting with __ and the normal name is an alias. */
3050 #if defined (__stub_time) || defined (__stub___time)
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3060 eval "ac_cv_func_time=yes"
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 eval "ac_cv_func_time=no"
3070 if eval "test \"`echo '$ac_cv_func_'time`\" = yes"; then
3071 echo "$ac_t""yes" 1>&6
3074 echo "$ac_t""no" 1>&6
3077 echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3078 echo "configure:3079: checking for gettimeofday" >&5
3079 if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 cat > conftest.$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3085 /* System header to define __stub macros and hopefully few prototypes,
3086 which can conflict with char gettimeofday(); below. */
3088 /* Override any gcc2 internal prototype to avoid an error. */
3089 /* We use char because int might match the return type of a gcc2
3090 builtin and then its argument prototype would still apply. */
3091 char gettimeofday();
3095 /* The GNU C library defines this for functions which it implements
3096 to always fail with ENOSYS. Some functions are actually named
3097 something starting with __ and the normal name is an alias. */
3098 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
3106 if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3108 eval "ac_cv_func_gettimeofday=yes"
3110 echo "configure: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3113 eval "ac_cv_func_gettimeofday=no"
3118 if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
3119 echo "$ac_t""yes" 1>&6
3122 echo "$ac_t""no" 1>&6
3126 if test "${OSTYPE}" = "cygwin" ; then
3129 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3130 echo "configure:3131: checking for getopt_long" >&5
3131 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 cat > conftest.$ac_ext <<EOF
3135 #line 3136 "configure"
3136 #include "confdefs.h"
3137 /* System header to define __stub macros and hopefully few prototypes,
3138 which can conflict with char getopt_long(); below. */
3140 /* Override any gcc2 internal prototype to avoid an error. */
3141 /* We use char because int might match the return type of a gcc2
3142 builtin and then its argument prototype would still apply. */
3147 /* The GNU C library defines this for functions which it implements
3148 to always fail with ENOSYS. Some functions are actually named
3149 something starting with __ and the normal name is an alias. */
3150 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3158 if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3160 eval "ac_cv_func_getopt_long=yes"
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3165 eval "ac_cv_func_getopt_long=no"
3170 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3171 echo "$ac_t""yes" 1>&6
3174 echo "$ac_t""no" 1>&6
3180 if test "${pthread}" = "true" ; then
3182 if test -n "$GCC"; then
3183 CFLAGS="$CFLAGS -pthread -D_REENTRANT"
3186 cat >> confdefs.h <<\EOF
3187 #define HAVE_WXTHREADS 1
3192 if test "${getopt_long}" = "false" ; then
3193 my_includes="$my_includes -I../getopt"
3194 cat >> confdefs.h <<\EOF
3195 #define HAVE_GETOPT_LONG 1
3198 ctlibs_base="$ctlibs_base -lgetopt"
3199 LDFLAGS="$LDFLAGS -L../getopt"
3203 INCLUDED_GETOPT_LONG_TRUE=
3204 INCLUDED_GETOPT_LONG_FALSE='#'
3206 INCLUDED_GETOPT_LONG_TRUE='#'
3207 INCLUDED_GETOPT_LONG_FALSE=
3211 if test "${readline}" = "true" ; then
3212 ctlibs_base="$ctlibs_base -lreadline"
3213 if test "${ncurses}" = "true"; then
3214 ctlibs_base="$ctlibs_base -lncurses"
3215 elif test "${curses}" = "true"; then
3216 ctlibs_base="$ctlibs_base -lcurses"
3220 echo $ac_n "checking debug""... $ac_c" 1>&6
3221 echo "configure:3222: checking debug" >&5
3222 # Check whether --enable-debug or --disable-debug was given.
3223 if test "${enable_debug+set}" = set; then
3224 enableval="$enable_debug"
3225 case "${enableval}" in
3227 echo "$ac_t""yes" 1>&6
3230 echo "$ac_t""no" 1>&6
3232 *) echo "$ac_t""bad value ${enableval} for --enable-debug" 1>&6
3236 debug=false; echo "$ac_t""no" 1>&6
3241 if test "$debug" = "true"; then
3249 if test "$debug" = "true" ; then
3251 cat >> confdefs.h <<\EOF
3256 CFLAGS="-O3 -DNDEBUG -fomit-frame-pointer"
3257 cat >> confdefs.h <<\EOF
3263 echo $ac_n "checking sstream""... $ac_c" 1>&6
3264 echo "configure:3265: checking sstream" >&5
3265 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
3266 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ; then
3267 cat >> confdefs.h <<\EOF
3268 #define HAVE_SSTREAM 1
3271 echo "$ac_t""yes" 1>&6
3273 echo "$ac_t""no" 1>&6
3277 if test -n "$GCC"; then
3278 CFLAGS="$CFLAGS -Wall"
3281 echo $ac_n "checking whether to enable verbose warnings""... $ac_c" 1>&6
3282 echo "configure:3283: checking whether to enable verbose warnings" >&5
3283 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
3284 if test "${enable_verbose_warnings+set}" = set; then
3285 enableval="$enable_verbose_warnings"
3286 case "$enableval" in
3288 echo "$ac_t""yes" 1>&6
3290 if test -n "$GCC"; then
3295 if test -n "$GCC"; then
3296 CFLAGS="$CFLAGS -Wshadow -Wpointer-arith -Wbad-function-cast"
3300 if test -n "$GCC"; then
3301 CFLAGS="$CFLAGS -Wcast-align -Wwrite-strings -Waggregate-return"
3305 if test -n "$GCC"; then
3306 CFLAGS="$CFLAGS -Wmissing-prototypes -Wstrict-prototypes"
3310 if test -n "$GCC"; then
3311 CFLAGS="$CFLAGS -pedantic"
3315 if test -n "$GCC"; then
3316 CFLAGS="$CFLAGS -Wredundant-decls"
3322 echo "$ac_t""no" 1>&6
3326 echo "$ac_t""no" 1>&6
3331 echo $ac_n "checking static executables""... $ac_c" 1>&6
3332 echo "configure:3333: checking static executables" >&5
3333 # Check whether --enable-static or --disable-static was given.
3334 if test "${enable_static+set}" = set; then
3335 enableval="$enable_static"
3336 case "$enableval" in
3338 echo "$ac_t""yes" 1>&6
3340 if test -n "$GCC"; then
3341 CFLAGS="$CFLAGS --static"
3346 echo "$ac_t""no" 1>&6
3350 echo "$ac_t""no" 1>&6
3355 # Check whether --with-lam or --without-lam was given.
3356 if test "${with_lam+set}" = set; then
3358 if test "$withval" != "no" ; then
3365 if test "$withval" != "no" ; then
3366 if test "$prefix" != "NONE" ; then
3367 trylamdir="$trylamdir $prefix"
3370 echo $ac_n "checking for LAM MPI installation""... $ac_c" 1>&6
3371 echo "configure:3372: checking for LAM MPI installation" >&5
3372 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
3373 if test -x "$testlamdir/bin/hcp" ; then
3374 if test "$testlamdir" != "/usr"; then
3375 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
3376 CFLAGS="$CFLAGS -I$testlamdir/include"
3378 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
3379 lamdir="$testlamdir"
3386 echo "$ac_t""$lamdir" 1>&6
3388 echo "$ac_t""no" 1>&6
3392 # Check whether --with-ctn or --without-ctn was given.
3393 if test "${with_ctn+set}" = set; then
3395 if test "$withval" != "no" ; then
3402 if test "$withval" != "no" ; then
3403 if test "$prefix" != "NONE" ; then
3404 tryctndir="$tryctndir $prefix"
3407 echo $ac_n "checking for CTN DICOM installation""... $ac_c" 1>&6
3408 echo "configure:3409: checking for CTN DICOM installation" >&5
3409 for testctndir in "." $tryctndir /usr/local /usr/local/ctn /usr /usr/ctn /opt /opt/ctn ; do
3410 if test -f "$testctndir/lib/libctn.a" ; then
3411 if test "$testctndir" != "/usr"; then
3412 LDFLAGS="$LDFLAGS -L$testctndir/lib"
3413 CFLAGS="$CFLAGS -I$testctndir/include"
3415 ctndir="$testctndir"
3417 cat >> confdefs.h <<\EOF
3418 #define HAVE_CTN_DICOM 1
3424 echo "$ac_t""$ctndir" 1>&6
3426 echo "$ac_t""no" 1>&6
3431 echo $ac_n "checking for web access""... $ac_c" 1>&6
3432 echo "configure:3433: checking for web access" >&5
3433 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
3434 if test "${with_cgibin_dir+set}" = set; then
3435 withval="$with_cgibin_dir"
3436 cgibindir=$withval ;
3440 # Check whether --with-cgibin-url or --without-cgibin-url was given.
3441 if test "${with_cgibin_url+set}" = set; then
3442 withval="$with_cgibin_url"
3443 cgibinurl=$withval ;
3447 # Check whether --with-webdata-dir or --without-webdata-dir was given.
3448 if test "${with_webdata_dir+set}" = set; then
3449 withval="$with_webdata_dir"
3450 webdatadir=$withval ;
3454 # Check whether --with-webdata-url or --without-webdata-url was given.
3455 if test "${with_webdata_url+set}" = set; then
3456 withval="$with_webdata_url"
3457 webdataurl=$withval ;
3461 # Check whether --with-html-dir or --without-html-dir was given.
3462 if test "${with_html_dir+set}" = set; then
3463 withval="$with_html_dir"
3468 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
3469 cgiprograms="ctsim.cgi ctsim.conf"
3473 if test -n "$htmldir" ; then
3474 htmldata=simulate.html
3479 if test -n "$htmldir"; then
3487 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
3490 echo "$ac_t""yes" 1>&6
3491 if test -z "$cgibindir" ; then
3492 { echo "configure: error: --with-cgibin-dir not set for web access" 1>&2; exit 1; }
3493 elif test -z "$cgibinurl" ; then
3494 { echo "configure: error: --with-cgibin-url not set for web access" 1>&2; exit 1; }
3495 elif test -z "$webdatadir" ; then
3496 { echo "configure: error: --with-webdata-dir not set for web access" 1>&2; exit 1; }
3497 elif test -z "$webdataurl" ; then
3498 { echo "configure: error: --with-webdata-url not set for web access" 1>&2; exit 1; }
3499 elif test -z "$htmldir" ; then
3500 { echo "configure: error: --with-html-dir not set for web access" 1>&2; exit 1; }
3503 echo "$ac_t""no" 1>&6
3508 if test -n "$lamdir"; then
3517 # If we find X, set shell vars x_includes and x_libraries to the
3518 # paths, otherwise set no_x=yes.
3519 # Uses ac_ vars as temps to allow command line to override cache and checks.
3520 # --without-x overrides everything else, but does not touch the cache.
3521 echo $ac_n "checking for X""... $ac_c" 1>&6
3522 echo "configure:3523: checking for X" >&5
3524 # Check whether --with-x or --without-x was given.
3525 if test "${with_x+set}" = set; then
3530 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3531 if test "x$with_x" = xno; then
3532 # The user explicitly disabled X.
3535 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3536 # Both variables are already set.
3539 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3542 # One or both of the vars are not set, and there is no cached value.
3543 ac_x_includes=NO ac_x_libraries=NO
3545 if mkdir conftestdir; then
3547 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3548 cat > Imakefile <<'EOF'
3550 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3552 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3553 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3554 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3555 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3556 for ac_extension in a so sl; do
3557 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3558 test -f $ac_im_libdir/libX11.$ac_extension; then
3559 ac_im_usrlibdir=$ac_im_libdir; break
3562 # Screen out bogus values from the imake configuration. They are
3563 # bogus both because they are the default anyway, and because
3564 # using them would break gcc on systems where it needs fixed includes.
3565 case "$ac_im_incroot" in
3567 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3569 case "$ac_im_usrlibdir" in
3571 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3578 if test "$ac_x_includes" = NO; then
3579 # Guess where to find include files, by looking for this one X11 .h file.
3580 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3582 # First, try using that file with no special directory specified.
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 #include <$x_direct_test_include>
3588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3589 { (eval echo configure:3590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3591 if test -z "$ac_err"; then
3593 # We can compile using X headers with no special include directory.
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3600 # Look for the header file in a standard set of common directories.
3601 # Check X11 before X11Rn because it is often a symlink to the current release.
3604 /usr/X11R6/include \
3605 /usr/X11R5/include \
3606 /usr/X11R4/include \
3609 /usr/include/X11R6 \
3610 /usr/include/X11R5 \
3611 /usr/include/X11R4 \
3613 /usr/local/X11/include \
3614 /usr/local/X11R6/include \
3615 /usr/local/X11R5/include \
3616 /usr/local/X11R4/include \
3618 /usr/local/include/X11 \
3619 /usr/local/include/X11R6 \
3620 /usr/local/include/X11R5 \
3621 /usr/local/include/X11R4 \
3625 /usr/XFree86/include/X11 \
3628 /usr/local/include \
3629 /usr/unsupported/include \
3630 /usr/athena/include \
3631 /usr/local/x11r5/include \
3632 /usr/lpp/Xamples/include \
3634 /usr/openwin/include \
3635 /usr/openwin/share/include \
3638 if test -r "$ac_dir/$x_direct_test_include"; then
3639 ac_x_includes=$ac_dir
3645 fi # $ac_x_includes = NO
3647 if test "$ac_x_libraries" = NO; then
3648 # Check for the libraries.
3650 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3651 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3653 # See if we find them without any special options.
3654 # Don't add to $LIBS permanently.
3655 ac_save_LIBS="$LIBS"
3656 LIBS="-l$x_direct_test_library $LIBS"
3657 cat > conftest.$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3662 ${x_direct_test_function}()
3665 if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3667 LIBS="$ac_save_LIBS"
3668 # We can link X programs with no special library path.
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3674 LIBS="$ac_save_LIBS"
3675 # First see if replacing the include by lib works.
3676 # Check X11 before X11Rn because it is often a symlink to the current release.
3677 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3688 /usr/local/X11/lib \
3689 /usr/local/X11R6/lib \
3690 /usr/local/X11R5/lib \
3691 /usr/local/X11R4/lib \
3693 /usr/local/lib/X11 \
3694 /usr/local/lib/X11R6 \
3695 /usr/local/lib/X11R5 \
3696 /usr/local/lib/X11R4 \
3700 /usr/XFree86/lib/X11 \
3704 /usr/unsupported/lib \
3706 /usr/local/x11r5/lib \
3707 /usr/lpp/Xamples/lib \
3711 /usr/openwin/share/lib \
3714 for ac_extension in a so sl; do
3715 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3716 ac_x_libraries=$ac_dir
3723 fi # $ac_x_libraries = NO
3725 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3726 # Didn't find X anywhere. Cache the known absence of X.
3727 ac_cv_have_x="have_x=no"
3729 # Record where we found X for the cache.
3730 ac_cv_have_x="have_x=yes \
3731 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3735 eval "$ac_cv_have_x"
3738 if test "$have_x" != yes; then
3739 echo "$ac_t""$have_x" 1>&6
3742 # If each of the values was on the command line, it overrides each guess.
3743 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3744 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3745 # Update the cache value to reflect the command line values.
3746 ac_cv_have_x="have_x=yes \
3747 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3748 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3751 if test "$no_x" = yes; then
3752 # Not all programs may use this symbol, but it does not hurt to define it.
3753 cat >> confdefs.h <<\EOF
3754 #define X_DISPLAY_MISSING 1
3757 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3759 if test -n "$x_includes"; then
3760 X_CFLAGS="$X_CFLAGS -I$x_includes"
3763 # It would also be nice to do this for all -L options, not just this one.
3764 if test -n "$x_libraries"; then
3765 X_LIBS="$X_LIBS -L$x_libraries"
3766 # For Solaris; some versions of Sun CC require a space after -R and
3767 # others require no space. Words are not sufficient . . . .
3768 case "`(uname -sr) 2>/dev/null`" in
3770 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3771 echo "configure:3772: checking whether -R must be followed by a space" >&5
3772 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3781 if { (eval echo configure:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3791 if test $ac_R_nospace = yes; then
3792 echo "$ac_t""no" 1>&6
3793 X_LIBS="$X_LIBS -R$x_libraries"
3795 LIBS="$ac_xsave_LIBS -R $x_libraries"
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3804 if { (eval echo configure:3805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3808 echo "configure: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3814 if test $ac_R_space = yes; then
3815 echo "$ac_t""yes" 1>&6
3816 X_LIBS="$X_LIBS -R $x_libraries"
3818 echo "$ac_t""neither works" 1>&6
3821 LIBS="$ac_xsave_LIBS"
3825 # Check for system-dependent libraries X programs must link with.
3826 # Do this before checking for the system-independent R6 libraries
3827 # (-lICE), since we may need -lsocket or whatever for X linking.
3829 if test "$ISC" = yes; then
3830 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3832 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3833 # libraries were built with DECnet support. And karl@cs.umb.edu says
3834 # the Alpha needs dnet_stub (dnet does not exist).
3835 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3836 echo "configure:3837: checking for dnet_ntoa in -ldnet" >&5
3837 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3838 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3839 echo $ac_n "(cached) $ac_c" 1>&6
3841 ac_save_LIBS="$LIBS"
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3846 /* Override any gcc2 internal prototype to avoid an error. */
3847 /* We use char because int might match the return type of a gcc2
3848 builtin and then its argument prototype would still apply. */
3855 if { (eval echo configure:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3857 eval "ac_cv_lib_$ac_lib_var=yes"
3859 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3862 eval "ac_cv_lib_$ac_lib_var=no"
3865 LIBS="$ac_save_LIBS"
3868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3869 echo "$ac_t""yes" 1>&6
3870 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3872 echo "$ac_t""no" 1>&6
3875 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3876 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3877 echo "configure:3878: checking for dnet_ntoa in -ldnet_stub" >&5
3878 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3882 ac_save_LIBS="$LIBS"
3883 LIBS="-ldnet_stub $LIBS"
3884 cat > conftest.$ac_ext <<EOF
3885 #line 3886 "configure"
3886 #include "confdefs.h"
3887 /* Override any gcc2 internal prototype to avoid an error. */
3888 /* We use char because int might match the return type of a gcc2
3889 builtin and then its argument prototype would still apply. */
3896 if { (eval echo configure:3897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3898 eval "ac_cv_lib_$ac_lib_var=yes"
3900 echo "configure: failed program was:" >&5
3901 cat conftest.$ac_ext >&5
3903 eval "ac_cv_lib_$ac_lib_var=no"
3906 LIBS="$ac_save_LIBS"
3909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3910 echo "$ac_t""yes" 1>&6
3911 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3913 echo "$ac_t""no" 1>&6
3918 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3919 # to get the SysV transport functions.
3920 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3922 # The nsl library prevents programs from opening the X display
3923 # on Irix 5.2, according to dickey@clark.net.
3924 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3925 echo "configure:3926: checking for gethostbyname" >&5
3926 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3929 cat > conftest.$ac_ext <<EOF
3930 #line 3931 "configure"
3931 #include "confdefs.h"
3932 /* System header to define __stub macros and hopefully few prototypes,
3933 which can conflict with char gethostbyname(); below. */
3935 /* Override any gcc2 internal prototype to avoid an error. */
3936 /* We use char because int might match the return type of a gcc2
3937 builtin and then its argument prototype would still apply. */
3938 char gethostbyname();
3942 /* The GNU C library defines this for functions which it implements
3943 to always fail with ENOSYS. Some functions are actually named
3944 something starting with __ and the normal name is an alias. */
3945 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3953 if { (eval echo configure:3954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3955 eval "ac_cv_func_gethostbyname=yes"
3957 echo "configure: failed program was:" >&5
3958 cat conftest.$ac_ext >&5
3960 eval "ac_cv_func_gethostbyname=no"
3965 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3966 echo "$ac_t""yes" 1>&6
3969 echo "$ac_t""no" 1>&6
3972 if test $ac_cv_func_gethostbyname = no; then
3973 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3974 echo "configure:3975: checking for gethostbyname in -lnsl" >&5
3975 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3977 echo $ac_n "(cached) $ac_c" 1>&6
3979 ac_save_LIBS="$LIBS"
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3984 /* Override any gcc2 internal prototype to avoid an error. */
3985 /* We use char because int might match the return type of a gcc2
3986 builtin and then its argument prototype would still apply. */
3987 char gethostbyname();
3993 if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3995 eval "ac_cv_lib_$ac_lib_var=yes"
3997 echo "configure: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
4000 eval "ac_cv_lib_$ac_lib_var=no"
4003 LIBS="$ac_save_LIBS"
4006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4007 echo "$ac_t""yes" 1>&6
4008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4010 echo "$ac_t""no" 1>&6
4015 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4016 # socket/setsockopt and other routines are undefined under SCO ODT
4017 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4018 # on later versions), says simon@lia.di.epfl.ch: it contains
4019 # gethostby* variants that don't use the nameserver (or something).
4020 # -lsocket must be given before -lnsl if both are needed.
4021 # We assume that if connect needs -lnsl, so does gethostbyname.
4022 echo $ac_n "checking for connect""... $ac_c" 1>&6
4023 echo "configure:4024: checking for connect" >&5
4024 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4030 /* System header to define __stub macros and hopefully few prototypes,
4031 which can conflict with char connect(); below. */
4033 /* Override any gcc2 internal prototype to avoid an error. */
4034 /* We use char because int might match the return type of a gcc2
4035 builtin and then its argument prototype would still apply. */
4040 /* The GNU C library defines this for functions which it implements
4041 to always fail with ENOSYS. Some functions are actually named
4042 something starting with __ and the normal name is an alias. */
4043 #if defined (__stub_connect) || defined (__stub___connect)
4051 if { (eval echo configure:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4053 eval "ac_cv_func_connect=yes"
4055 echo "configure: failed program was:" >&5
4056 cat conftest.$ac_ext >&5
4058 eval "ac_cv_func_connect=no"
4063 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4064 echo "$ac_t""yes" 1>&6
4067 echo "$ac_t""no" 1>&6
4070 if test $ac_cv_func_connect = no; then
4071 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4072 echo "configure:4073: checking for connect in -lsocket" >&5
4073 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4077 ac_save_LIBS="$LIBS"
4078 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4079 cat > conftest.$ac_ext <<EOF
4080 #line 4081 "configure"
4081 #include "confdefs.h"
4082 /* Override any gcc2 internal prototype to avoid an error. */
4083 /* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */
4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4093 eval "ac_cv_lib_$ac_lib_var=yes"
4095 echo "configure: failed program was:" >&5
4096 cat conftest.$ac_ext >&5
4098 eval "ac_cv_lib_$ac_lib_var=no"
4101 LIBS="$ac_save_LIBS"
4104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4108 echo "$ac_t""no" 1>&6
4113 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4114 echo $ac_n "checking for remove""... $ac_c" 1>&6
4115 echo "configure:4116: checking for remove" >&5
4116 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4119 cat > conftest.$ac_ext <<EOF
4120 #line 4121 "configure"
4121 #include "confdefs.h"
4122 /* System header to define __stub macros and hopefully few prototypes,
4123 which can conflict with char remove(); below. */
4125 /* Override any gcc2 internal prototype to avoid an error. */
4126 /* We use char because int might match the return type of a gcc2
4127 builtin and then its argument prototype would still apply. */
4132 /* The GNU C library defines this for functions which it implements
4133 to always fail with ENOSYS. Some functions are actually named
4134 something starting with __ and the normal name is an alias. */
4135 #if defined (__stub_remove) || defined (__stub___remove)
4143 if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4145 eval "ac_cv_func_remove=yes"
4147 echo "configure: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4150 eval "ac_cv_func_remove=no"
4155 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4156 echo "$ac_t""yes" 1>&6
4159 echo "$ac_t""no" 1>&6
4162 if test $ac_cv_func_remove = no; then
4163 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4164 echo "configure:4165: checking for remove in -lposix" >&5
4165 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4169 ac_save_LIBS="$LIBS"
4170 LIBS="-lposix $LIBS"
4171 cat > conftest.$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4174 /* Override any gcc2 internal prototype to avoid an error. */
4175 /* We use char because int might match the return type of a gcc2
4176 builtin and then its argument prototype would still apply. */
4183 if { (eval echo configure:4184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4185 eval "ac_cv_lib_$ac_lib_var=yes"
4187 echo "configure: failed program was:" >&5
4188 cat conftest.$ac_ext >&5
4190 eval "ac_cv_lib_$ac_lib_var=no"
4193 LIBS="$ac_save_LIBS"
4196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4197 echo "$ac_t""yes" 1>&6
4198 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4200 echo "$ac_t""no" 1>&6
4205 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4206 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4207 echo "configure:4208: checking for shmat" >&5
4208 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4209 echo $ac_n "(cached) $ac_c" 1>&6
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4214 /* System header to define __stub macros and hopefully few prototypes,
4215 which can conflict with char shmat(); below. */
4217 /* Override any gcc2 internal prototype to avoid an error. */
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4224 /* The GNU C library defines this for functions which it implements
4225 to always fail with ENOSYS. Some functions are actually named
4226 something starting with __ and the normal name is an alias. */
4227 #if defined (__stub_shmat) || defined (__stub___shmat)
4235 if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4237 eval "ac_cv_func_shmat=yes"
4239 echo "configure: failed program was:" >&5
4240 cat conftest.$ac_ext >&5
4242 eval "ac_cv_func_shmat=no"
4247 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4248 echo "$ac_t""yes" 1>&6
4251 echo "$ac_t""no" 1>&6
4254 if test $ac_cv_func_shmat = no; then
4255 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4256 echo "configure:4257: checking for shmat in -lipc" >&5
4257 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 ac_save_LIBS="$LIBS"
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4277 eval "ac_cv_lib_$ac_lib_var=yes"
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4282 eval "ac_cv_lib_$ac_lib_var=no"
4285 LIBS="$ac_save_LIBS"
4288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4290 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4292 echo "$ac_t""no" 1>&6
4298 # Check for libraries that X11R6 Xt/Xaw programs need.
4299 ac_save_LDFLAGS="$LDFLAGS"
4300 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4301 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4302 # check for ICE first), but we must link in the order -lSM -lICE or
4303 # we get undefined symbols. So assume we have SM if we have ICE.
4304 # These have to be linked with before -lX11, unlike the other
4305 # libraries we check for below, so use a different variable.
4306 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4307 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4308 echo "configure:4309: checking for IceConnectionNumber in -lICE" >&5
4309 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4313 ac_save_LIBS="$LIBS"
4314 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4315 cat > conftest.$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4318 /* Override any gcc2 internal prototype to avoid an error. */
4319 /* We use char because int might match the return type of a gcc2
4320 builtin and then its argument prototype would still apply. */
4321 char IceConnectionNumber();
4324 IceConnectionNumber()
4327 if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4329 eval "ac_cv_lib_$ac_lib_var=yes"
4331 echo "configure: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4334 eval "ac_cv_lib_$ac_lib_var=no"
4337 LIBS="$ac_save_LIBS"
4340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4341 echo "$ac_t""yes" 1>&6
4342 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4344 echo "$ac_t""no" 1>&6
4347 LDFLAGS="$ac_save_LDFLAGS"
4358 X_TOOLKIT_LIBS="-lXt"
4359 X_BASIC_LIBS="-lXext -lX11 -lXmu"
4361 our_saved_LDFLAGS="$LDFLAGS"
4362 LDFLAGS="$X_LIBS $LDFLAGS"
4363 echo $ac_n "checking for XtToolkitThreadInitialize in -lXt""... $ac_c" 1>&6
4364 echo "configure:4365: checking for XtToolkitThreadInitialize in -lXt" >&5
4365 ac_lib_var=`echo Xt'_'XtToolkitThreadInitialize | sed 'y%./+-%__p_%'`
4366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4369 ac_save_LIBS="$LIBS"
4370 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
4371 cat > conftest.$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4374 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4377 char XtToolkitThreadInitialize();
4380 XtToolkitThreadInitialize()
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4385 eval "ac_cv_lib_$ac_lib_var=yes"
4387 echo "configure: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4390 eval "ac_cv_lib_$ac_lib_var=no"
4393 LIBS="$ac_save_LIBS"
4396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4397 echo "$ac_t""yes" 1>&6
4398 cat >> confdefs.h <<\EOF
4399 #define X_THREAD_SUPPORT 1
4403 echo "$ac_t""no" 1>&6
4406 LDFLAGS="$our_saved_LDFLAGS"
4408 our_saved_LDFLAGS="$LDFLAGS"
4409 LDFLAGS="$X_LIBS $LDFLAGS"
4410 echo $ac_n "checking for XdbeQueryExtension in -lXext""... $ac_c" 1>&6
4411 echo "configure:4412: checking for XdbeQueryExtension in -lXext" >&5
4412 ac_lib_var=`echo Xext'_'XdbeQueryExtension | sed 'y%./+-%__p_%'`
4413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 ac_save_LIBS="$LIBS"
4417 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4421 /* Override any gcc2 internal prototype to avoid an error. */
4422 /* We use char because int might match the return type of a gcc2
4423 builtin and then its argument prototype would still apply. */
4424 char XdbeQueryExtension();
4427 XdbeQueryExtension()
4430 if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4432 eval "ac_cv_lib_$ac_lib_var=yes"
4434 echo "configure: failed program was:" >&5
4435 cat conftest.$ac_ext >&5
4437 eval "ac_cv_lib_$ac_lib_var=no"
4440 LIBS="$ac_save_LIBS"
4443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4444 echo "$ac_t""yes" 1>&6
4445 cat >> confdefs.h <<\EOF
4446 #define HAVE_DBE_SUPPORT 1
4450 echo "$ac_t""no" 1>&6
4453 echo $ac_n "checking for XmbufQueryExtension in -lXext""... $ac_c" 1>&6
4454 echo "configure:4455: checking for XmbufQueryExtension in -lXext" >&5
4455 ac_lib_var=`echo Xext'_'XmbufQueryExtension | sed 'y%./+-%__p_%'`
4456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 ac_save_LIBS="$LIBS"
4460 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
4461 cat > conftest.$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4464 /* Override any gcc2 internal prototype to avoid an error. */
4465 /* We use char because int might match the return type of a gcc2
4466 builtin and then its argument prototype would still apply. */
4467 char XmbufQueryExtension();
4470 XmbufQueryExtension()
4473 if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4475 eval "ac_cv_lib_$ac_lib_var=yes"
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 eval "ac_cv_lib_$ac_lib_var=no"
4483 LIBS="$ac_save_LIBS"
4486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4487 echo "$ac_t""yes" 1>&6
4488 cat >> confdefs.h <<\EOF
4489 #define HAVE_MBX_SUPPORT 1
4493 echo "$ac_t""no" 1>&6
4496 LDFLAGS="$our_saved_LDFLAGS"
4497 our_saved_CPPFLAGS="$CPPFLAGS"
4498 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
4499 for ac_hdr in X11/extensions/Xdbe.h X11/extensions/multibuf.h
4501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4503 echo "configure:4504: checking for $ac_hdr" >&5
4504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4507 cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4513 { (eval echo configure:4514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4515 if test -z "$ac_err"; then
4517 eval "ac_cv_header_$ac_safe=yes"
4520 echo "configure: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4523 eval "ac_cv_header_$ac_safe=no"
4527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4528 echo "$ac_t""yes" 1>&6
4529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4530 cat >> confdefs.h <<EOF
4531 #define $ac_tr_hdr 1
4535 echo "$ac_t""no" 1>&6
4539 CPPFLAGS="$our_saved_CPPFLAGS"
4543 if test "x$no_x" = "xyes"; then
4551 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
4554 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4556 echo $ac_n "checking for X""... $ac_c" 1>&6
4557 echo "configure:4558: checking for X" >&5
4558 if test "$no_x" != "yes" ; then
4559 cat >> confdefs.h <<\EOF
4563 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
4564 ctlib_graphics="$ctlibs_base -lctgraphics"
4565 echo "$ac_t""yes" 1>&6
4566 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
4567 if test "$libgl" = "true" ; then
4568 ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
4569 if test "$wxwin" = "true" ; then
4570 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.2"
4573 if test "$wxwin" = "true" ; then
4574 cat >> confdefs.h <<\EOF
4589 echo "$ac_t""no" 1>&6
4592 if test "$png" = "true" ; then
4593 ctlibs_tools="$ctlibs_tools -lpng"
4595 if test "$zlib" = "true" ; then
4596 ctlibs_tools="$ctlibs_tools -lz"
4598 if test "$fftw" = "true" ; then
4599 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
4601 if test "$ctn" = "true"; then
4602 ctlibs_tools="$ctlibs_tools -lctn"
4605 echo $ac_n "checking for main in -ldmallocxx""... $ac_c" 1>&6
4606 echo "configure:4607: checking for main in -ldmallocxx" >&5
4607 ac_lib_var=`echo dmallocxx'_'main | sed 'y%./+-%__p_%'`
4608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4611 ac_save_LIBS="$LIBS"
4612 LIBS="-ldmallocxx $LIBS"
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4623 eval "ac_cv_lib_$ac_lib_var=yes"
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4628 eval "ac_cv_lib_$ac_lib_var=no"
4631 LIBS="$ac_save_LIBS"
4634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4638 echo "$ac_t""no" 1>&6
4642 echo $ac_n "checking for enable-dmalloc""... $ac_c" 1>&6
4643 echo "configure:4644: checking for enable-dmalloc" >&5
4644 # Check whether --enable-dmalloc or --disable-dmalloc was given.
4645 if test "${enable_dmalloc+set}" = set; then
4646 enableval="$enable_dmalloc"
4647 case "${enableval}" in
4648 yes) usedmalloc=true
4649 echo "$ac_t""yes" 1>&6
4651 no) usedmalloc=false
4652 echo "$ac_t""no" 1>&6
4654 *) echo "$ac_t""bad value ${enableval} for --enable-dmalloc" 1>&6
4658 usedmalloc=false; echo "$ac_t""no" 1>&6
4662 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
4663 ctlibs_tools="$ctlibs_tools -ldmallocxx"
4664 cat >> confdefs.h <<\EOF
4665 #define HAVE_DMALLOC 1
4668 echo "$ac_t""Using dmalloc" 1>&6
4671 echo $ac_n "checking for main in -lefence""... $ac_c" 1>&6
4672 echo "configure:4673: checking for main in -lefence" >&5
4673 ac_lib_var=`echo efence'_'main | sed 'y%./+-%__p_%'`
4674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4675 echo $ac_n "(cached) $ac_c" 1>&6
4677 ac_save_LIBS="$LIBS"
4678 LIBS="-lefence $LIBS"
4679 cat > conftest.$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4687 if { (eval echo configure:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4689 eval "ac_cv_lib_$ac_lib_var=yes"
4691 echo "configure: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4694 eval "ac_cv_lib_$ac_lib_var=no"
4697 LIBS="$ac_save_LIBS"
4700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4701 echo "$ac_t""yes" 1>&6
4704 echo "$ac_t""no" 1>&6
4708 echo $ac_n "checking for enable-efence""... $ac_c" 1>&6
4709 echo "configure:4710: checking for enable-efence" >&5
4710 # Check whether --enable-efence or --disable-efence was given.
4711 if test "${enable_efence+set}" = set; then
4712 enableval="$enable_efence"
4713 case "${enableval}" in
4715 echo "$ac_t""yes" 1>&6
4718 echo "$ac_t""no" 1>&6
4720 *) echo "$ac_t""bad value ${enableval} for --enable-efence" 1>&6
4724 useefence=false; echo "$ac_t""no" 1>&6
4728 if test "$efence" = "true" -a "$useefence" = "true" ; then
4729 ctlibs_tools="$ctlibs_tools -lefence"
4730 cat >> confdefs.h <<\EOF
4731 #define HAVE_EFENCE 1
4734 echo "$ac_t""Using efence" 1>&6
4737 if test "$wxwin" = "true" ; then
4738 if test "$wx_gtk" = "true" ; then
4739 wxcflags=`$wxconfig --cflags`
4740 wxlibs=`$wxconfig --libs`
4742 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
4743 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
4745 CFLAGS="$CFLAGS -I../include $wxcflags"
4746 ctlib_graphics="$ctlib_graphics $wxlibs"
4750 HAVE_WXWINDOWS_TRUE=
4751 HAVE_WXWINDOWS_FALSE='#'
4753 HAVE_WXWINDOWS_TRUE='#'
4754 HAVE_WXWINDOWS_FALSE=
4760 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
4761 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
4764 if test -n "$lamdir" ; then
4765 lamprograms="ctsimtext-lam"
4774 cat > confcache <<\EOF
4775 # This file is a shell script that caches the results of configure
4776 # tests run on this system so they can be shared between configure
4777 # scripts and configure runs. It is not useful on other systems.
4778 # If it contains results you don't want to keep, you may remove or edit it.
4780 # By default, configure uses ./config.cache as the cache file,
4781 # creating it if it does not exist already. You can give configure
4782 # the --cache-file=FILE option to use a different cache file; that is
4783 # what configure does when it calls configure scripts in
4784 # subdirectories, so they share the cache.
4785 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4786 # config.status only pays attention to the cache file if you give it the
4787 # --recheck option to rerun configure.
4790 # The following way of writing the cache mishandles newlines in values,
4791 # but we know of no workaround that is simple, portable, and efficient.
4792 # So, don't put newlines in cache variables' values.
4793 # Ultrix sh set writes to stderr and can't be redirected directly,
4794 # and sets the high bit in the cache file unless we assign to the vars.
4796 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4798 # `set' does not quote correctly, so add quotes (double-quote substitution
4799 # turns \\\\ into \\, and sed turns \\ into \).
4801 -e "s/'/'\\\\''/g" \
4802 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4805 # `set' quotes correctly as required by POSIX, so do not add quotes.
4806 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4809 if cmp -s $cache_file confcache; then
4812 if test -w $cache_file; then
4813 echo "updating cache $cache_file"
4814 cat confcache > $cache_file
4816 echo "not updating unwritable cache $cache_file"
4821 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4823 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4824 # Let make expand exec_prefix.
4825 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4827 # Any assignment to VPATH causes Sun make to only execute
4828 # the first set of double-colon rules, so remove it if not needed.
4829 # If there is a colon in the path, we need to keep it.
4830 if test "x$srcdir" = x.; then
4831 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4834 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4836 DEFS=-DHAVE_CONFIG_H
4838 # Without the "./", some shells look in PATH for config.status.
4839 : ${CONFIG_STATUS=./config.status}
4841 echo creating $CONFIG_STATUS
4842 rm -f $CONFIG_STATUS
4843 cat > $CONFIG_STATUS <<EOF
4845 # Generated automatically by configure.
4846 # Run this file to recreate the current configuration.
4847 # This directory was configured as follows,
4848 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4850 # $0 $ac_configure_args
4852 # Compiler output produced by configure, useful for debugging
4853 # configure, is in ./config.log if it exists.
4855 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4858 case "\$ac_option" in
4859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4860 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4861 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4862 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4863 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4865 -help | --help | --hel | --he | --h)
4866 echo "\$ac_cs_usage"; exit 0 ;;
4867 *) echo "\$ac_cs_usage"; exit 1 ;;
4871 ac_given_srcdir=$srcdir
4872 ac_given_INSTALL="$INSTALL"
4874 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
4876 cat >> $CONFIG_STATUS <<EOF
4878 # Protect against being on the right side of a sed subst in config.status.
4879 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4880 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4884 s%@CFLAGS@%$CFLAGS%g
4885 s%@CPPFLAGS@%$CPPFLAGS%g
4886 s%@CXXFLAGS@%$CXXFLAGS%g
4887 s%@FFLAGS@%$FFLAGS%g
4889 s%@LDFLAGS@%$LDFLAGS%g
4891 s%@exec_prefix@%$exec_prefix%g
4892 s%@prefix@%$prefix%g
4893 s%@program_transform_name@%$program_transform_name%g
4894 s%@bindir@%$bindir%g
4895 s%@sbindir@%$sbindir%g
4896 s%@libexecdir@%$libexecdir%g
4897 s%@datadir@%$datadir%g
4898 s%@sysconfdir@%$sysconfdir%g
4899 s%@sharedstatedir@%$sharedstatedir%g
4900 s%@localstatedir@%$localstatedir%g
4901 s%@libdir@%$libdir%g
4902 s%@includedir@%$includedir%g
4903 s%@oldincludedir@%$oldincludedir%g
4904 s%@infodir@%$infodir%g
4905 s%@mandir@%$mandir%g
4906 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4907 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4908 s%@INSTALL_DATA@%$INSTALL_DATA%g
4909 s%@PACKAGE@%$PACKAGE%g
4910 s%@VERSION@%$VERSION%g
4911 s%@ACLOCAL@%$ACLOCAL%g
4912 s%@AUTOCONF@%$AUTOCONF%g
4913 s%@AUTOMAKE@%$AUTOMAKE%g
4914 s%@AUTOHEADER@%$AUTOHEADER%g
4915 s%@MAKEINFO@%$MAKEINFO%g
4916 s%@SET_MAKE@%$SET_MAKE%g
4918 s%@RANLIB@%$RANLIB%g
4921 s%@wxconfig@%$wxconfig%g
4923 s%@host_alias@%$host_alias%g
4924 s%@host_cpu@%$host_cpu%g
4925 s%@host_vendor@%$host_vendor%g
4926 s%@host_os@%$host_os%g
4928 s%@INCLUDED_GETOPT_LONG_TRUE@%$INCLUDED_GETOPT_LONG_TRUE%g
4929 s%@INCLUDED_GETOPT_LONG_FALSE@%$INCLUDED_GETOPT_LONG_FALSE%g
4930 s%@DEBUG_TRUE@%$DEBUG_TRUE%g
4931 s%@DEBUG_FALSE@%$DEBUG_FALSE%g
4932 s%@lamdir@%$lamdir%g
4933 s%@mpienable@%$mpienable%g
4934 s%@cgibindir@%$cgibindir%g
4935 s%@cgibinurl@%$cgibinurl%g
4936 s%@webdatadir@%$webdatadir%g
4937 s%@webdataurl@%$webdataurl%g
4938 s%@htmldir@%$htmldir%g
4939 s%@cgiprograms@%$cgiprograms%g
4940 s%@htmldata@%$htmldata%g
4941 s%@USE_HTML_TRUE@%$USE_HTML_TRUE%g
4942 s%@USE_HTML_FALSE@%$USE_HTML_FALSE%g
4943 s%@webenabled@%$webenabled%g
4944 s%@USE_LAM_TRUE@%$USE_LAM_TRUE%g
4945 s%@USE_LAM_FALSE@%$USE_LAM_FALSE%g
4946 s%@X_CFLAGS@%$X_CFLAGS%g
4947 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4948 s%@X_LIBS@%$X_LIBS%g
4949 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4950 s%@X_TOOLKIT_LIBS@%$X_TOOLKIT_LIBS%g
4951 s%@X_BASIC_LIBS@%$X_BASIC_LIBS%g
4952 s%@NO_X_TRUE@%$NO_X_TRUE%g
4953 s%@NO_X_FALSE@%$NO_X_FALSE%g
4954 s%@my_includes@%$my_includes%g
4955 s%@HAVE_SGP_TRUE@%$HAVE_SGP_TRUE%g
4956 s%@HAVE_SGP_FALSE@%$HAVE_SGP_FALSE%g
4957 s%@HAVE_WXWINDOWS_TRUE@%$HAVE_WXWINDOWS_TRUE%g
4958 s%@HAVE_WXWINDOWS_FALSE@%$HAVE_WXWINDOWS_FALSE%g
4959 s%@wxcflags@%$wxcflags%g
4960 s%@wxlibs@%$wxlibs%g
4961 s%@ctlibs@%$ctlibs%g
4962 s%@lamprograms@%$lamprograms%g
4963 s%@lamdefs@%$lamdefs%g
4968 cat >> $CONFIG_STATUS <<\EOF
4970 # Split the substitutions into bite-sized pieces for seds with
4971 # small command number limits, like on Digital OSF/1 and HP-UX.
4972 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4973 ac_file=1 # Number of current file.
4974 ac_beg=1 # First line for current file.
4975 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4978 while $ac_more_lines; do
4979 if test $ac_beg -gt 1; then
4980 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4982 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4984 if test ! -s conftest.s$ac_file; then
4986 rm -f conftest.s$ac_file
4988 if test -z "$ac_sed_cmds"; then
4989 ac_sed_cmds="sed -f conftest.s$ac_file"
4991 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4993 ac_file=`expr $ac_file + 1`
4995 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4998 if test -z "$ac_sed_cmds"; then
5003 cat >> $CONFIG_STATUS <<EOF
5005 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"}
5007 cat >> $CONFIG_STATUS <<\EOF
5008 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5009 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5011 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5012 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5013 *) ac_file_in="${ac_file}.in" ;;
5016 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5018 # Remove last slash and all that follows it. Not all systems have dirname.
5019 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5020 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5021 # The file is in a subdirectory.
5022 test ! -d "$ac_dir" && mkdir "$ac_dir"
5023 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5024 # A "../" for each directory in $ac_dir_suffix.
5025 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5027 ac_dir_suffix= ac_dots=
5030 case "$ac_given_srcdir" in
5032 if test -z "$ac_dots"; then top_srcdir=.
5033 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5034 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5036 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5037 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5040 case "$ac_given_INSTALL" in
5041 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5042 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5045 echo creating "$ac_file"
5047 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5049 *Makefile*) ac_comsub="1i\\
5050 # $configure_input" ;;
5054 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5056 s%@configure_input@%$configure_input%g
5057 s%@srcdir@%$srcdir%g
5058 s%@top_srcdir@%$top_srcdir%g
5059 s%@INSTALL@%$INSTALL%g
5060 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5064 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5065 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5067 # ac_d sets the value in "#define NAME VALUE" lines.
5068 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5069 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5072 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5073 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5074 ac_uB='\([ ]\)%\1#\2define\3'
5077 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5078 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5079 ac_eB='$%\1#\2define\3'
5083 if test "${CONFIG_HEADERS+set}" != set; then
5085 cat >> $CONFIG_STATUS <<EOF
5086 CONFIG_HEADERS="config.h"
5088 cat >> $CONFIG_STATUS <<\EOF
5090 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5091 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5093 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5094 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5095 *) ac_file_in="${ac_file}.in" ;;
5098 echo creating $ac_file
5100 rm -f conftest.frag conftest.in conftest.out
5101 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5102 cat $ac_file_inputs > conftest.in
5106 # Transform confdefs.h into a sed script conftest.vals that substitutes
5107 # the proper values into config.h.in to produce config.h. And first:
5108 # Protect against being on the right side of a sed subst in config.status.
5109 # Protect against being in an unquoted here document in config.status.
5111 cat > conftest.hdr <<\EOF
5114 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5118 sed -n -f conftest.hdr confdefs.h > conftest.vals
5121 # This sed command replaces #undef with comments. This is necessary, for
5122 # example, in the case of _POSIX_SOURCE, which is predefined and required
5123 # on some systems where configure will not decide to define it.
5124 cat >> conftest.vals <<\EOF
5125 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5128 # Break up conftest.vals because some shells have a limit on
5129 # the size of here documents, and old seds have small limits too.
5134 ac_lines=`grep -c . conftest.vals`
5135 # grep -c gives empty output for an empty file on some AIX systems.
5136 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5137 # Write a limited-size here document to conftest.frag.
5138 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5139 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5141 sed -f conftest.frag conftest.in > conftest.out
5143 mv conftest.out conftest.in
5145 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5147 mv conftest.tail conftest.vals
5151 cat >> $CONFIG_STATUS <<\EOF
5152 rm -f conftest.frag conftest.h
5153 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5154 cat conftest.in >> conftest.h
5156 if cmp -s $ac_file conftest.h 2>/dev/null; then
5157 echo "$ac_file is unchanged"
5160 # Remove last slash and all that follows it. Not all systems have dirname.
5161 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5162 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5163 # The file is in a subdirectory.
5164 test ! -d "$ac_dir" && mkdir "$ac_dir"
5167 mv conftest.h $ac_file
5172 cat >> $CONFIG_STATUS <<EOF
5176 cat >> $CONFIG_STATUS <<\EOF
5177 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5181 chmod +x $CONFIG_STATUS
5182 rm -fr confdefs* $ac_clean_files
5183 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1