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-cgibin-dir=PATH Set path of CGI binaries directory "
27 --with-cgibin-url=PATH Set URL path of CGI binaries "
29 --with-webdata-dir=PATH Set path of webdata"
31 --with-webdata-url=PATH Set URL path of webdata"
33 --with-html-dir=PATH Set directory of html files"
35 --with-x use the X Window System"
37 --enable-dmalloc Use dmalloc memory allocation"
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
43 cache_file=./config.cache
52 program_transform_name=s,x,x,
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
73 # Initialize some other variables.
76 SHELL=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
105 -build | --build | --buil | --bui | --bu)
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 datadir="$ac_optarg" ;;
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200 Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
213 -host | --host | --hos | --ho)
215 -host=* | --host=* | --hos=* | --ho=*)
218 -includedir | --includedir | --includedi | --included | --include \
219 | --includ | --inclu | --incl | --inc)
220 ac_prev=includedir ;;
221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222 | --includ=* | --inclu=* | --incl=* | --inc=*)
223 includedir="$ac_optarg" ;;
225 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228 infodir="$ac_optarg" ;;
230 -libdir | --libdir | --libdi | --libd)
232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
233 libdir="$ac_optarg" ;;
235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236 | --libexe | --libex | --libe)
237 ac_prev=libexecdir ;;
238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239 | --libexe=* | --libex=* | --libe=*)
240 libexecdir="$ac_optarg" ;;
242 -localstatedir | --localstatedir | --localstatedi | --localstated \
243 | --localstate | --localstat | --localsta | --localst \
244 | --locals | --local | --loca | --loc | --lo)
245 ac_prev=localstatedir ;;
246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249 localstatedir="$ac_optarg" ;;
251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254 mandir="$ac_optarg" ;;
257 # Obsolete; use --without-fp.
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270 | --oldin | --oldi | --old | --ol | --o)
271 ac_prev=oldincludedir ;;
272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275 oldincludedir="$ac_optarg" ;;
277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280 prefix="$ac_optarg" ;;
282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
283 | --program-pre | --program-pr | --program-p)
284 ac_prev=program_prefix ;;
285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287 program_prefix="$ac_optarg" ;;
289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
290 | --program-suf | --program-su | --program-s)
291 ac_prev=program_suffix ;;
292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294 program_suffix="$ac_optarg" ;;
296 -program-transform-name | --program-transform-name \
297 | --program-transform-nam | --program-transform-na \
298 | --program-transform-n | --program-transform- \
299 | --program-transform | --program-transfor \
300 | --program-transfo | --program-transf \
301 | --program-trans | --program-tran \
302 | --progr-tra | --program-tr | --program-t)
303 ac_prev=program_transform_name ;;
304 -program-transform-name=* | --program-transform-name=* \
305 | --program-transform-nam=* | --program-transform-na=* \
306 | --program-transform-n=* | --program-transform-=* \
307 | --program-transform=* | --program-transfor=* \
308 | --program-transfo=* | --program-transf=* \
309 | --program-trans=* | --program-tran=* \
310 | --progr-tra=* | --program-tr=* | --program-t=*)
311 program_transform_name="$ac_optarg" ;;
313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314 | -silent | --silent | --silen | --sile | --sil)
317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 sbindir="$ac_optarg" ;;
323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325 | --sharedst | --shareds | --shared | --share | --shar \
327 ac_prev=sharedstatedir ;;
328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 sharedstatedir="$ac_optarg" ;;
334 -site | --site | --sit)
336 -site=* | --site=* | --sit=*)
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
351 -target | --target | --targe | --targ | --tar | --ta | --t)
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.13"
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
386 # Obsolete; use --with-x.
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=src/ctsim.cpp
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 if test ! -r $srcdir/$ac_unique_file; then
492 ac_srcdir_defaulted=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE; then
506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
518 if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
522 echo "creating cache $cache_file"
527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528 ac_cpp='$CPP $CPPFLAGS'
529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531 cross_compiling=$ac_cv_prog_cc_cross
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
544 ac_n= ac_c='\c' ac_t=
549 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
550 if test -f $ac_dir/install-sh; then
552 ac_install_sh="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh; then
556 ac_install_sh="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563 ac_config_guess=$ac_aux_dir/config.guess
564 ac_config_sub=$ac_aux_dir/config.sub
565 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
567 # Find a good install program. We prefer a C program (faster),
568 # so one script is as good as another. But avoid the broken or
569 # incompatible versions:
570 # SysV /etc/install, /usr/sbin/install
571 # SunOS /usr/etc/install
574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
577 # ./install, which can be erroneously created by make from ./install.sh.
578 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
579 echo "configure:580: checking for a BSD compatible install" >&5
580 if test -z "$INSTALL"; then
581 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
582 echo $ac_n "(cached) $ac_c" 1>&6
584 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
585 for ac_dir in $PATH; do
586 # Account for people who put trailing slashes in PATH elements.
588 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
590 # OSF1 and SCO ODT 3.0 have their own names for install.
591 # Don't use installbsd from OSF since it installs stuff as root
593 for ac_prog in ginstall scoinst install; do
594 if test -f $ac_dir/$ac_prog; then
595 if test $ac_prog = install &&
596 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
597 # AIX install. It has an incompatible calling convention.
600 ac_cv_path_install="$ac_dir/$ac_prog -c"
611 if test "${ac_cv_path_install+set}" = set; then
612 INSTALL="$ac_cv_path_install"
614 # As a last resort, use the slow shell script. We don't cache a
615 # path for INSTALL within a source directory, because that will
616 # break other packages using the cache if that directory is
617 # removed, or if the path is relative.
618 INSTALL="$ac_install_sh"
621 echo "$ac_t""$INSTALL" 1>&6
623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
624 # It thinks the first close brace ends the variable substitution.
625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
631 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
632 echo "configure:633: checking whether build environment is sane" >&5
635 echo timestamp > conftestfile
636 # Do `set' in a subshell so we don't clobber the current shell's
637 # arguments. Must try -L first in case configure is actually a
638 # symlink; some systems play weird games with the mod time of symlinks
639 # (eg FreeBSD returns the mod time of the symlink's containing
642 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
643 if test "$*" = "X"; then
645 set X `ls -t $srcdir/configure conftestfile`
647 if test "$*" != "X $srcdir/configure conftestfile" \
648 && test "$*" != "X conftestfile $srcdir/configure"; then
650 # If neither matched, then we have a broken ls. This can happen
651 # if, for instance, CONFIG_SHELL is bash and it inherits a
652 # broken ls alias from the environment. This has actually
653 # happened. Such a system could not be considered "sane".
654 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
655 alias in your environment" 1>&2; exit 1; }
658 test "$2" = conftestfile
664 { echo "configure: error: newly created file is older than distributed files!
665 Check your system clock" 1>&2; exit 1; }
668 echo "$ac_t""yes" 1>&6
669 if test "$program_transform_name" = s,x,x,; then
670 program_transform_name=
672 # Double any \ or $. echo might interpret backslashes.
673 cat <<\EOF_SED > conftestsed
674 s,\\,\\\\,g; s,\$,$$,g
676 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
679 test "$program_prefix" != NONE &&
680 program_transform_name="s,^,${program_prefix},; $program_transform_name"
681 # Use a double $ so make ignores it.
682 test "$program_suffix" != NONE &&
683 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
685 # sed with no file args requires a program.
686 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
688 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
689 echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5
690 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
691 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
692 echo $ac_n "(cached) $ac_c" 1>&6
694 cat > conftestmake <<\EOF
696 @echo 'ac_maketemp="${MAKE}"'
698 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
699 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
700 if test -n "$ac_maketemp"; then
701 eval ac_cv_prog_make_${ac_make}_set=yes
703 eval ac_cv_prog_make_${ac_make}_set=no
707 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
708 echo "$ac_t""yes" 1>&6
711 echo "$ac_t""no" 1>&6
712 SET_MAKE="MAKE=${MAKE-make}"
720 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
721 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
723 cat >> confdefs.h <<EOF
724 #define PACKAGE "$PACKAGE"
727 cat >> confdefs.h <<EOF
728 #define VERSION "$VERSION"
733 missing_dir=`cd $ac_aux_dir && pwd`
734 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
735 echo "configure:736: checking for working aclocal" >&5
736 # Run test in a subshell; some versions of sh will print an error if
737 # an executable is not found, even if stderr is redirected.
738 # Redirect stdin to placate older versions of autoconf. Sigh.
739 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
741 echo "$ac_t""found" 1>&6
743 ACLOCAL="$missing_dir/missing aclocal"
744 echo "$ac_t""missing" 1>&6
747 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
748 echo "configure:749: checking for working autoconf" >&5
749 # Run test in a subshell; some versions of sh will print an error if
750 # an executable is not found, even if stderr is redirected.
751 # Redirect stdin to placate older versions of autoconf. Sigh.
752 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
754 echo "$ac_t""found" 1>&6
756 AUTOCONF="$missing_dir/missing autoconf"
757 echo "$ac_t""missing" 1>&6
760 echo $ac_n "checking for working automake""... $ac_c" 1>&6
761 echo "configure:762: checking for working automake" >&5
762 # Run test in a subshell; some versions of sh will print an error if
763 # an executable is not found, even if stderr is redirected.
764 # Redirect stdin to placate older versions of autoconf. Sigh.
765 if (automake --version) < /dev/null > /dev/null 2>&1; then
767 echo "$ac_t""found" 1>&6
769 AUTOMAKE="$missing_dir/missing automake"
770 echo "$ac_t""missing" 1>&6
773 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
774 echo "configure:775: checking for working autoheader" >&5
775 # Run test in a subshell; some versions of sh will print an error if
776 # an executable is not found, even if stderr is redirected.
777 # Redirect stdin to placate older versions of autoconf. Sigh.
778 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
779 AUTOHEADER=autoheader
780 echo "$ac_t""found" 1>&6
782 AUTOHEADER="$missing_dir/missing autoheader"
783 echo "$ac_t""missing" 1>&6
786 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
787 echo "configure:788: checking for working makeinfo" >&5
788 # Run test in a subshell; some versions of sh will print an error if
789 # an executable is not found, even if stderr is redirected.
790 # Redirect stdin to placate older versions of autoconf. Sigh.
791 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
793 echo "$ac_t""found" 1>&6
795 MAKEINFO="$missing_dir/missing makeinfo"
796 echo "$ac_t""missing" 1>&6
804 for ac_prog in gawk mawk nawk awk
806 # Extract the first word of "$ac_prog", so it can be a program name with args.
807 set dummy $ac_prog; ac_word=$2
808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
809 echo "configure:810: checking for $ac_word" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 if test -n "$AWK"; then
814 ac_cv_prog_AWK="$AWK" # Let the user override the test.
816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
818 for ac_dir in $ac_dummy; do
819 test -z "$ac_dir" && ac_dir=.
820 if test -f $ac_dir/$ac_word; then
821 ac_cv_prog_AWK="$ac_prog"
828 AWK="$ac_cv_prog_AWK"
829 if test -n "$AWK"; then
830 echo "$ac_t""$AWK" 1>&6
832 echo "$ac_t""no" 1>&6
835 test -n "$AWK" && break
838 # Find a good install program. We prefer a C program (faster),
839 # so one script is as good as another. But avoid the broken or
840 # incompatible versions:
841 # SysV /etc/install, /usr/sbin/install
842 # SunOS /usr/etc/install
845 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
846 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
847 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
848 # ./install, which can be erroneously created by make from ./install.sh.
849 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
850 echo "configure:851: checking for a BSD compatible install" >&5
851 if test -z "$INSTALL"; then
852 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
855 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
856 for ac_dir in $PATH; do
857 # Account for people who put trailing slashes in PATH elements.
859 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
861 # OSF1 and SCO ODT 3.0 have their own names for install.
862 # Don't use installbsd from OSF since it installs stuff as root
864 for ac_prog in ginstall scoinst install; do
865 if test -f $ac_dir/$ac_prog; then
866 if test $ac_prog = install &&
867 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
868 # AIX install. It has an incompatible calling convention.
871 ac_cv_path_install="$ac_dir/$ac_prog -c"
882 if test "${ac_cv_path_install+set}" = set; then
883 INSTALL="$ac_cv_path_install"
885 # As a last resort, use the slow shell script. We don't cache a
886 # path for INSTALL within a source directory, because that will
887 # break other packages using the cache if that directory is
888 # removed, or if the path is relative.
889 INSTALL="$ac_install_sh"
892 echo "$ac_t""$INSTALL" 1>&6
894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
895 # It thinks the first close brace ends the variable substitution.
896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
902 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
903 echo "configure:904: checking whether ${MAKE-make} sets \${MAKE}" >&5
904 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
905 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 cat > conftestmake <<\EOF
910 @echo 'ac_maketemp="${MAKE}"'
912 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
913 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
914 if test -n "$ac_maketemp"; then
915 eval ac_cv_prog_make_${ac_make}_set=yes
917 eval ac_cv_prog_make_${ac_make}_set=no
921 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
922 echo "$ac_t""yes" 1>&6
925 echo "$ac_t""no" 1>&6
926 SET_MAKE="MAKE=${MAKE-make}"
929 # Extract the first word of "ranlib", so it can be a program name with args.
930 set dummy ranlib; ac_word=$2
931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
932 echo "configure:933: checking for $ac_word" >&5
933 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 if test -n "$RANLIB"; then
937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
941 for ac_dir in $ac_dummy; do
942 test -z "$ac_dir" && ac_dir=.
943 if test -f $ac_dir/$ac_word; then
944 ac_cv_prog_RANLIB="ranlib"
949 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
952 RANLIB="$ac_cv_prog_RANLIB"
953 if test -n "$RANLIB"; then
954 echo "$ac_t""$RANLIB" 1>&6
956 echo "$ac_t""no" 1>&6
960 CFLAGS="$CFLAGS -I/usr/local/include"
961 LDFLAGS="$LDFLAGS -L/usr/local/lib"
962 # Extract the first word of "gcc", so it can be a program name with args.
963 set dummy gcc; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 if test -n "$CC"; then
970 ac_cv_prog_CC="$CC" # Let the user override the test.
972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
974 for ac_dir in $ac_dummy; do
975 test -z "$ac_dir" && ac_dir=.
976 if test -f $ac_dir/$ac_word; then
985 if test -n "$CC"; then
986 echo "$ac_t""$CC" 1>&6
988 echo "$ac_t""no" 1>&6
991 if test -z "$CC"; then
992 # Extract the first word of "cc", so it can be a program name with args.
993 set dummy cc; ac_word=$2
994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
995 echo "configure:996: checking for $ac_word" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 if test -n "$CC"; then
1000 ac_cv_prog_CC="$CC" # Let the user override the test.
1002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1005 for ac_dir in $ac_dummy; do
1006 test -z "$ac_dir" && ac_dir=.
1007 if test -f $ac_dir/$ac_word; then
1008 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1009 ac_prog_rejected=yes
1017 if test $ac_prog_rejected = yes; then
1018 # We found a bogon in the path, so make sure we never use it.
1019 set dummy $ac_cv_prog_CC
1021 if test $# -gt 0; then
1022 # We chose a different compiler from the bogus one.
1023 # However, it has the same basename, so the bogon will be chosen
1024 # first if we set CC to just the basename; use the full file name.
1026 set dummy "$ac_dir/$ac_word" "$@"
1034 if test -n "$CC"; then
1035 echo "$ac_t""$CC" 1>&6
1037 echo "$ac_t""no" 1>&6
1040 if test -z "$CC"; then
1041 case "`uname -s`" in
1043 # Extract the first word of "cl", so it can be a program name with args.
1044 set dummy cl; ac_word=$2
1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046 echo "configure:1047: checking for $ac_word" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 if test -n "$CC"; then
1051 ac_cv_prog_CC="$CC" # Let the user override the test.
1053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1055 for ac_dir in $ac_dummy; do
1056 test -z "$ac_dir" && ac_dir=.
1057 if test -f $ac_dir/$ac_word; then
1066 if test -n "$CC"; then
1067 echo "$ac_t""$CC" 1>&6
1069 echo "$ac_t""no" 1>&6
1074 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1077 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1082 ac_cpp='$CPP $CPPFLAGS'
1083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1085 cross_compiling=$ac_cv_prog_cc_cross
1087 cat > conftest.$ac_ext << EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1094 if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1095 ac_cv_prog_cc_works=yes
1096 # If we can't run a trivial program, we are probably using a cross compiler.
1097 if (./conftest; exit) 2>/dev/null; then
1098 ac_cv_prog_cc_cross=no
1100 ac_cv_prog_cc_cross=yes
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1105 ac_cv_prog_cc_works=no
1109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1112 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1113 cross_compiling=$ac_cv_prog_cc_cross
1115 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1116 if test $ac_cv_prog_cc_works = no; then
1117 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1119 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1121 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1122 cross_compiling=$ac_cv_prog_cc_cross
1124 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether we are using GNU C" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 cat > conftest.c <<EOF
1134 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1141 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1143 if test $ac_cv_prog_gcc = yes; then
1149 ac_test_CFLAGS="${CFLAGS+set}"
1150 ac_save_CFLAGS="$CFLAGS"
1152 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1153 echo "configure:1154: checking whether ${CC-cc} accepts -g" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 echo 'void f(){}' > conftest.c
1158 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1167 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1168 if test "$ac_test_CFLAGS" = set; then
1169 CFLAGS="$ac_save_CFLAGS"
1170 elif test $ac_cv_prog_cc_g = yes; then
1171 if test "$GCC" = yes; then
1177 if test "$GCC" = yes; then
1184 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1186 # Extract the first word of "$ac_prog", so it can be a program name with args.
1187 set dummy $ac_prog; ac_word=$2
1188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1189 echo "configure:1190: checking for $ac_word" >&5
1190 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 if test -n "$CXX"; then
1194 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1198 for ac_dir in $ac_dummy; do
1199 test -z "$ac_dir" && ac_dir=.
1200 if test -f $ac_dir/$ac_word; then
1201 ac_cv_prog_CXX="$ac_prog"
1208 CXX="$ac_cv_prog_CXX"
1209 if test -n "$CXX"; then
1210 echo "$ac_t""$CXX" 1>&6
1212 echo "$ac_t""no" 1>&6
1215 test -n "$CXX" && break
1217 test -n "$CXX" || CXX="gcc"
1220 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1221 echo "configure:1222: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1224 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1225 ac_cpp='$CXXCPP $CPPFLAGS'
1226 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1227 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1228 cross_compiling=$ac_cv_prog_cxx_cross
1230 cat > conftest.$ac_ext << EOF
1232 #line 1233 "configure"
1233 #include "confdefs.h"
1235 int main(){return(0);}
1237 if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1238 ac_cv_prog_cxx_works=yes
1239 # If we can't run a trivial program, we are probably using a cross compiler.
1240 if (./conftest; exit) 2>/dev/null; then
1241 ac_cv_prog_cxx_cross=no
1243 ac_cv_prog_cxx_cross=yes
1246 echo "configure: failed program was:" >&5
1247 cat conftest.$ac_ext >&5
1248 ac_cv_prog_cxx_works=no
1252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1255 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1256 cross_compiling=$ac_cv_prog_cc_cross
1258 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1259 if test $ac_cv_prog_cxx_works = no; then
1260 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1262 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1263 echo "configure:1264: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1264 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1265 cross_compiling=$ac_cv_prog_cxx_cross
1267 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1268 echo "configure:1269: checking whether we are using GNU C++" >&5
1269 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 cat > conftest.C <<EOF
1277 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1284 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1286 if test $ac_cv_prog_gxx = yes; then
1292 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1293 ac_save_CXXFLAGS="$CXXFLAGS"
1295 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1296 echo "configure:1297: checking whether ${CXX-g++} accepts -g" >&5
1297 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 echo 'void f(){}' > conftest.cc
1301 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1302 ac_cv_prog_cxx_g=yes
1310 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1311 if test "$ac_test_CXXFLAGS" = set; then
1312 CXXFLAGS="$ac_save_CXXFLAGS"
1313 elif test $ac_cv_prog_cxx_g = yes; then
1314 if test "$GXX" = yes; then
1320 if test "$GXX" = yes; then
1327 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1328 echo "configure:1329: checking whether byte ordering is bigendian" >&5
1329 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 ac_cv_c_bigendian=unknown
1333 # See if sys/param.h defines the BYTE_ORDER macro.
1334 cat > conftest.$ac_ext <<EOF
1335 #line 1336 "configure"
1336 #include "confdefs.h"
1337 #include <sys/types.h>
1338 #include <sys/param.h>
1341 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1346 if { (eval echo configure:1347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1348 # It does; now see whether it defined to BIG_ENDIAN or not.
1349 cat > conftest.$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1352 #include <sys/types.h>
1353 #include <sys/param.h>
1356 #if BYTE_ORDER != BIG_ENDIAN
1361 if { (eval echo configure:1362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1363 ac_cv_c_bigendian=yes
1365 echo "configure: failed program was:" >&5
1366 cat conftest.$ac_ext >&5
1368 ac_cv_c_bigendian=no
1372 echo "configure: failed program was:" >&5
1373 cat conftest.$ac_ext >&5
1376 if test $ac_cv_c_bigendian = unknown; then
1377 if test "$cross_compiling" = yes; then
1378 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1380 cat > conftest.$ac_ext <<EOF
1381 #line 1382 "configure"
1382 #include "confdefs.h"
1384 /* Are we little or big endian? From Harbison&Steele. */
1388 char c[sizeof (long)];
1391 exit (u.c[sizeof (long) - 1] == 1);
1394 if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1396 ac_cv_c_bigendian=no
1398 echo "configure: failed program was:" >&5
1399 cat conftest.$ac_ext >&5
1401 ac_cv_c_bigendian=yes
1409 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1410 if test $ac_cv_c_bigendian = yes; then
1411 cat >> confdefs.h <<\EOF
1412 #define WORDS_BIGENDIAN 1
1418 # Extract the first word of "wx-config", so it can be a program name with args.
1419 set dummy wx-config; ac_word=$2
1420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1421 echo "configure:1422: checking for $ac_word" >&5
1422 if eval "test \"`echo '$''{'ac_cv_path_wxconfig'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1427 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
1430 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a dos path.
1433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1435 for ac_dir in $ac_dummy; do
1436 test -z "$ac_dir" && ac_dir=.
1437 if test -f $ac_dir/$ac_word; then
1438 ac_cv_path_wxconfig="$ac_dir/$ac_word"
1446 wxconfig="$ac_cv_path_wxconfig"
1447 if test -n "$wxconfig"; then
1448 echo "$ac_t""$wxconfig" 1>&6
1450 echo "$ac_t""no" 1>&6
1456 # Make sure we can run config.sub.
1457 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1458 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1461 echo $ac_n "checking host system type""... $ac_c" 1>&6
1462 echo "configure:1463: checking host system type" >&5
1465 case "$host_alias" in
1469 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1470 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1472 *) host_alias=$nonopt ;;
1476 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1477 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480 echo "$ac_t""$host" 1>&6
1482 echo $ac_n "checking for inline""... $ac_c" 1>&6
1483 echo "configure:1484: checking for inline" >&5
1484 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1488 for ac_kw in inline __inline__ __inline; do
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1497 if { (eval echo configure:1498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1499 ac_cv_c_inline=$ac_kw; break
1501 echo "configure: failed program was:" >&5
1502 cat conftest.$ac_ext >&5
1509 echo "$ac_t""$ac_cv_c_inline" 1>&6
1510 case "$ac_cv_c_inline" in
1512 no) cat >> confdefs.h <<\EOF
1516 *) cat >> confdefs.h <<EOF
1517 #define inline $ac_cv_c_inline
1522 echo $ac_n "checking size of short""... $ac_c" 1>&6
1523 echo "configure:1524: checking size of short" >&5
1524 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 if test "$cross_compiling" = yes; then
1528 ac_cv_sizeof_short=2
1530 cat > conftest.$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1536 FILE *f=fopen("conftestval", "w");
1538 fprintf(f, "%d\n", sizeof(short));
1542 if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1544 ac_cv_sizeof_short=`cat conftestval`
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1549 ac_cv_sizeof_short=0
1555 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1556 cat >> confdefs.h <<EOF
1557 #define SIZEOF_SHORT $ac_cv_sizeof_short
1561 echo $ac_n "checking size of int""... $ac_c" 1>&6
1562 echo "configure:1563: checking size of int" >&5
1563 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1566 if test "$cross_compiling" = yes; then
1569 cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1575 FILE *f=fopen("conftestval", "w");
1577 fprintf(f, "%d\n", sizeof(int));
1581 if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1583 ac_cv_sizeof_int=`cat conftestval`
1585 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5
1594 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1595 cat >> confdefs.h <<EOF
1596 #define SIZEOF_INT $ac_cv_sizeof_int
1600 echo $ac_n "checking size of long""... $ac_c" 1>&6
1601 echo "configure:1602: checking size of long" >&5
1602 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 if test "$cross_compiling" = yes; then
1608 cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1614 FILE *f=fopen("conftestval", "w");
1616 fprintf(f, "%d\n", sizeof(long));
1620 if { (eval echo configure:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1622 ac_cv_sizeof_long=`cat conftestval`
1624 echo "configure: failed program was:" >&5
1625 cat conftest.$ac_ext >&5
1633 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1634 cat >> confdefs.h <<EOF
1635 #define SIZEOF_LONG $ac_cv_sizeof_long
1639 echo $ac_n "checking size of float""... $ac_c" 1>&6
1640 echo "configure:1641: checking size of float" >&5
1641 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 if test "$cross_compiling" = yes; then
1645 ac_cv_sizeof_float=4
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1653 FILE *f=fopen("conftestval", "w");
1655 fprintf(f, "%d\n", sizeof(float));
1659 if { (eval echo configure:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1661 ac_cv_sizeof_float=`cat conftestval`
1663 echo "configure: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1666 ac_cv_sizeof_float=0
1672 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
1673 cat >> confdefs.h <<EOF
1674 #define SIZEOF_FLOAT $ac_cv_sizeof_float
1678 echo $ac_n "checking size of double""... $ac_c" 1>&6
1679 echo "configure:1680: checking size of double" >&5
1680 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1683 if test "$cross_compiling" = yes; then
1684 ac_cv_sizeof_double=8
1686 cat > conftest.$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1692 FILE *f=fopen("conftestval", "w");
1694 fprintf(f, "%d\n", sizeof(double));
1698 if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1700 ac_cv_sizeof_double=`cat conftestval`
1702 echo "configure: failed program was:" >&5
1703 cat conftest.$ac_ext >&5
1705 ac_cv_sizeof_double=0
1711 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1712 cat >> confdefs.h <<EOF
1713 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1718 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1719 echo "configure:1720: checking for deflate in -lz" >&5
1720 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
1721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 ac_save_LIBS="$LIBS"
1726 cat > conftest.$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1729 /* Override any gcc2 internal prototype to avoid an error. */
1730 /* We use char because int might match the return type of a gcc2
1731 builtin and then its argument prototype would still apply. */
1738 if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1740 eval "ac_cv_lib_$ac_lib_var=yes"
1742 echo "configure: failed program was:" >&5
1743 cat conftest.$ac_ext >&5
1745 eval "ac_cv_lib_$ac_lib_var=no"
1748 LIBS="$ac_save_LIBS"
1751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1752 echo "$ac_t""yes" 1>&6
1755 echo "$ac_t""no" 1>&6
1756 zlib="false" ; echo "configure: warning: zlib missing. Will need zlib for PNG support" 1>&2
1759 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1760 echo "configure:1761: checking for sin in -lm" >&5
1761 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 ac_save_LIBS="$LIBS"
1767 cat > conftest.$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1770 /* Override any gcc2 internal prototype to avoid an error. */
1771 /* We use char because int might match the return type of a gcc2
1772 builtin and then its argument prototype would still apply. */
1779 if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1781 eval "ac_cv_lib_$ac_lib_var=yes"
1783 echo "configure: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1786 eval "ac_cv_lib_$ac_lib_var=no"
1789 LIBS="$ac_save_LIBS"
1792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1793 echo "$ac_t""yes" 1>&6
1794 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1795 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1796 cat >> confdefs.h <<EOF
1797 #define $ac_tr_lib 1
1803 echo "$ac_t""no" 1>&6
1806 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1807 echo "configure:1808: checking for main in -lcurses" >&5
1808 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 ac_save_LIBS="$LIBS"
1813 LIBS="-lcurses $LIBS"
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1822 if { (eval echo configure:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1824 eval "ac_cv_lib_$ac_lib_var=yes"
1826 echo "configure: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 eval "ac_cv_lib_$ac_lib_var=no"
1832 LIBS="$ac_save_LIBS"
1835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1836 echo "$ac_t""yes" 1>&6
1839 echo "$ac_t""no" 1>&6
1843 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1844 echo "configure:1845: checking for main in -lncurses" >&5
1845 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 ac_save_LIBS="$LIBS"
1850 LIBS="-lncurses $LIBS"
1851 cat > conftest.$ac_ext <<EOF
1852 #line 1853 "configure"
1853 #include "confdefs.h"
1859 if { (eval echo configure:1860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1861 eval "ac_cv_lib_$ac_lib_var=yes"
1863 echo "configure: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1866 eval "ac_cv_lib_$ac_lib_var=no"
1869 LIBS="$ac_save_LIBS"
1872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1873 echo "$ac_t""yes" 1>&6
1876 echo "$ac_t""no" 1>&6
1880 echo $ac_n "checking for main in -lg2""... $ac_c" 1>&6
1881 echo "configure:1882: checking for main in -lg2" >&5
1882 ac_lib_var=`echo g2'_'main | sed 'y%./+-%__p_%'`
1883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1886 ac_save_LIBS="$LIBS"
1888 cat > conftest.$ac_ext <<EOF
1889 #line 1890 "configure"
1890 #include "confdefs.h"
1896 if { (eval echo configure:1897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1898 eval "ac_cv_lib_$ac_lib_var=yes"
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1903 eval "ac_cv_lib_$ac_lib_var=no"
1906 LIBS="$ac_save_LIBS"
1909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1910 echo "$ac_t""yes" 1>&6
1913 echo "$ac_t""no" 1>&6
1917 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
1918 echo "configure:1919: checking for main in -lreadline" >&5
1919 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
1920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1923 ac_save_LIBS="$LIBS"
1924 LIBS="-lreadline $LIBS"
1925 cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1933 if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1935 eval "ac_cv_lib_$ac_lib_var=yes"
1937 echo "configure: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1940 eval "ac_cv_lib_$ac_lib_var=no"
1943 LIBS="$ac_save_LIBS"
1946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1948 readline=true; cat >> confdefs.h <<\EOF
1949 #define HAVE_READLINE 1
1953 echo "$ac_t""no" 1>&6
1957 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1958 echo "configure:1959: checking for main in -lncurses" >&5
1959 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1963 ac_save_LIBS="$LIBS"
1964 LIBS="-lncurses $LIBS"
1965 cat > conftest.$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1973 if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1975 eval "ac_cv_lib_$ac_lib_var=yes"
1977 echo "configure: failed program was:" >&5
1978 cat conftest.$ac_ext >&5
1980 eval "ac_cv_lib_$ac_lib_var=no"
1983 LIBS="$ac_save_LIBS"
1986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1987 echo "$ac_t""yes" 1>&6
1988 ncurses=true; cat >> confdefs.h <<\EOF
1989 #define HAVE_NCURSES 1
1993 echo "$ac_t""no" 1>&6
1997 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1998 echo "configure:1999: checking for main in -lcurses" >&5
1999 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2003 ac_save_LIBS="$LIBS"
2004 LIBS="-lcurses $LIBS"
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2013 if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2015 eval "ac_cv_lib_$ac_lib_var=yes"
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2020 eval "ac_cv_lib_$ac_lib_var=no"
2023 LIBS="$ac_save_LIBS"
2026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2027 echo "$ac_t""yes" 1>&6
2028 curses=true; cat >> confdefs.h <<\EOF
2029 #define HAVE_CURSES 1
2033 echo "$ac_t""no" 1>&6
2038 echo $ac_n "checking for main in -lwx_gtk""... $ac_c" 1>&6
2039 echo "configure:2040: checking for main in -lwx_gtk" >&5
2040 ac_lib_var=`echo wx_gtk'_'main | sed 'y%./+-%__p_%'`
2041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2044 ac_save_LIBS="$LIBS"
2045 LIBS="-lwx_gtk $LIBS"
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2054 if { (eval echo configure:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2056 eval "ac_cv_lib_$ac_lib_var=yes"
2058 echo "configure: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2061 eval "ac_cv_lib_$ac_lib_var=no"
2064 LIBS="$ac_save_LIBS"
2067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 wxwin=true; wx_gtk=true; cat >> confdefs.h <<\EOF
2070 #define HAVE_WXWINDOWS 1
2074 echo "$ac_t""no" 1>&6
2077 echo $ac_n "checking for main in -lwx""... $ac_c" 1>&6
2078 echo "configure:2079: checking for main in -lwx" >&5
2079 ac_lib_var=`echo wx'_'main | sed 'y%./+-%__p_%'`
2080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2083 ac_save_LIBS="$LIBS"
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2093 if { (eval echo configure:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2095 eval "ac_cv_lib_$ac_lib_var=yes"
2097 echo "configure: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
2100 eval "ac_cv_lib_$ac_lib_var=no"
2103 LIBS="$ac_save_LIBS"
2106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2107 echo "$ac_t""yes" 1>&6
2108 wxwin=true; wx_msw=true; cat >> confdefs.h <<\EOF
2109 #define HAVE_WXWINDOWS 1
2113 echo "$ac_t""no" 1>&6
2116 echo $ac_n "checking for main in -lhdf5""... $ac_c" 1>&6
2117 echo "configure:2118: checking for main in -lhdf5" >&5
2118 ac_lib_var=`echo hdf5'_'main | sed 'y%./+-%__p_%'`
2119 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 ac_save_LIBS="$LIBS"
2123 LIBS="-lhdf5 -lz $LIBS"
2124 cat > conftest.$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2132 if { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2134 eval "ac_cv_lib_$ac_lib_var=yes"
2136 echo "configure: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2139 eval "ac_cv_lib_$ac_lib_var=no"
2142 LIBS="$ac_save_LIBS"
2145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2149 echo "$ac_t""no" 1>&6
2153 echo $ac_n "checking for fftw_one in -lfftw""... $ac_c" 1>&6
2154 echo "configure:2155: checking for fftw_one in -lfftw" >&5
2155 ac_lib_var=`echo fftw'_'fftw_one | sed 'y%./+-%__p_%'`
2156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 ac_save_LIBS="$LIBS"
2161 cat > conftest.$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2164 /* Override any gcc2 internal prototype to avoid an error. */
2165 /* We use char because int might match the return type of a gcc2
2166 builtin and then its argument prototype would still apply. */
2173 if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2175 eval "ac_cv_lib_$ac_lib_var=yes"
2177 echo "configure: failed program was:" >&5
2178 cat conftest.$ac_ext >&5
2180 eval "ac_cv_lib_$ac_lib_var=no"
2183 LIBS="$ac_save_LIBS"
2186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2187 echo "$ac_t""yes" 1>&6
2188 fftw=true; cat >> confdefs.h <<\EOF
2193 echo "$ac_t""no" 1>&6
2197 echo $ac_n "checking for main in -lGL""... $ac_c" 1>&6
2198 echo "configure:2199: checking for main in -lGL" >&5
2199 ac_lib_var=`echo GL'_'main | sed 'y%./+-%__p_%'`
2200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 ac_save_LIBS="$LIBS"
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2213 if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2215 eval "ac_cv_lib_$ac_lib_var=yes"
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 eval "ac_cv_lib_$ac_lib_var=no"
2223 LIBS="$ac_save_LIBS"
2226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2227 echo "$ac_t""yes" 1>&6
2230 echo "$ac_t""no" 1>&6
2234 echo $ac_n "checking for main in -lwx_gtk_gl""... $ac_c" 1>&6
2235 echo "configure:2236: checking for main in -lwx_gtk_gl" >&5
2236 ac_lib_var=`echo wx_gtk_gl'_'main | sed 'y%./+-%__p_%'`
2237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 ac_save_LIBS="$LIBS"
2241 LIBS="-lwx_gtk_gl -lwx_gtk -lGL $LIBS"
2242 cat > conftest.$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2250 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2252 eval "ac_cv_lib_$ac_lib_var=yes"
2254 echo "configure: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
2257 eval "ac_cv_lib_$ac_lib_var=no"
2260 LIBS="$ac_save_LIBS"
2263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2264 echo "$ac_t""yes" 1>&6
2267 echo "$ac_t""no" 1>&6
2272 if test "$zlib" = "true" ; then
2273 echo $ac_n "checking for main in -lpng""... $ac_c" 1>&6
2274 echo "configure:2275: checking for main in -lpng" >&5
2275 ac_lib_var=`echo png'_'main | sed 'y%./+-%__p_%'`
2276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 ac_save_LIBS="$LIBS"
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2289 if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2291 eval "ac_cv_lib_$ac_lib_var=yes"
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 eval "ac_cv_lib_$ac_lib_var=no"
2299 LIBS="$ac_save_LIBS"
2302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2303 echo "$ac_t""yes" 1>&6
2304 png=true ; cat >> confdefs.h <<\EOF
2309 echo "$ac_t""no" 1>&6
2315 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2316 echo "configure:2317: checking how to run the C preprocessor" >&5
2317 # On Suns, sometimes $CPP names a directory.
2318 if test -n "$CPP" && test -d "$CPP"; then
2321 if test -z "$CPP"; then
2322 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 # This must be in double quotes, not single quotes, because CPP may get
2326 # substituted into the Makefile and "${CC-cc}" will confuse make.
2328 # On the NeXT, cc -E runs the code through the compiler's parser,
2329 # not just through cpp.
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2337 { (eval echo configure:2338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2339 if test -z "$ac_err"; then
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2346 CPP="${CC-cc} -E -traditional-cpp"
2347 cat > conftest.$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2360 echo "configure: failed program was:" >&5
2361 cat conftest.$ac_ext >&5
2363 CPP="${CC-cc} -nologo -E"
2364 cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2371 { (eval echo configure:2372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2373 if test -z "$ac_err"; then
2377 echo "configure: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2387 ac_cv_prog_CPP="$CPP"
2389 CPP="$ac_cv_prog_CPP"
2391 ac_cv_prog_CPP="$CPP"
2393 echo "$ac_t""$CPP" 1>&6
2395 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2396 echo "configure:2397: checking for ANSI C header files" >&5
2397 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2409 { (eval echo configure:2410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2411 if test -z "$ac_err"; then
2413 ac_cv_header_stdc=yes
2416 echo "configure: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2419 ac_cv_header_stdc=no
2423 if test $ac_cv_header_stdc = yes; then
2424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2425 cat > conftest.$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2431 egrep "memchr" >/dev/null 2>&1; then
2435 ac_cv_header_stdc=no
2441 if test $ac_cv_header_stdc = yes; then
2442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2449 egrep "free" >/dev/null 2>&1; then
2453 ac_cv_header_stdc=no
2459 if test $ac_cv_header_stdc = yes; then
2460 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2461 if test "$cross_compiling" = yes; then
2464 cat > conftest.$ac_ext <<EOF
2465 #line 2466 "configure"
2466 #include "confdefs.h"
2468 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2469 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2470 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2471 int main () { int i; for (i = 0; i < 256; i++)
2472 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2476 if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2480 echo "configure: failed program was:" >&5
2481 cat conftest.$ac_ext >&5
2483 ac_cv_header_stdc=no
2491 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2492 if test $ac_cv_header_stdc = yes; then
2493 cat >> confdefs.h <<\EOF
2494 #define STDC_HEADERS 1
2499 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
2501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_hdr" >&5
2504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2513 { (eval echo configure:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2515 if test -z "$ac_err"; then
2517 eval "ac_cv_header_$ac_safe=yes"
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2523 eval "ac_cv_header_$ac_safe=no"
2527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2528 echo "$ac_t""yes" 1>&6
2529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2530 cat >> confdefs.h <<EOF
2531 #define $ac_tr_hdr 1
2535 echo "$ac_t""no" 1>&6
2540 echo $ac_n "checking for working const""... $ac_c" 1>&6
2541 echo "configure:2542: checking for working const" >&5
2542 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2551 /* Ultrix mips cc rejects this. */
2552 typedef int charset[2]; const charset x;
2553 /* SunOS 4.1.1 cc rejects this. */
2554 char const *const *ccp;
2556 /* NEC SVR4.0.2 mips cc rejects this. */
2557 struct point {int x, y;};
2558 static struct point const zero = {0,0};
2559 /* AIX XL C 1.02.0.0 rejects this.
2560 It does not let you subtract one const X* pointer from another in an arm
2561 of an if-expression whose if-part is not a constant expression */
2562 const char *g = "string";
2563 ccp = &g + (g ? g-g : 0);
2564 /* HPUX 7.0 cc rejects these. */
2567 ccp = (char const *const *) p;
2568 { /* SCO 3.2v4 cc rejects this. */
2570 char const *s = 0 ? (char *) 0 : (char const *) 0;
2574 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2576 const int *foo = &x[0];
2579 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2580 typedef const int *iptr;
2584 { /* AIX XL C 1.02.0.0 rejects this saying
2585 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2586 struct s { int j; const int *ap[3]; };
2587 struct s *b; b->j = 5;
2589 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2595 if { (eval echo configure:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2607 echo "$ac_t""$ac_cv_c_const" 1>&6
2608 if test $ac_cv_c_const = no; then
2609 cat >> confdefs.h <<\EOF
2615 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2616 echo "configure:2617: checking for off_t" >&5
2617 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2620 cat > conftest.$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2623 #include <sys/types.h>
2629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2630 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2632 ac_cv_type_off_t=yes
2640 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2641 if test $ac_cv_type_off_t = no; then
2642 cat >> confdefs.h <<\EOF
2648 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2649 echo "configure:2650: checking for size_t" >&5
2650 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 cat > conftest.$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2656 #include <sys/types.h>
2662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2663 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2665 ac_cv_type_size_t=yes
2668 ac_cv_type_size_t=no
2673 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2674 if test $ac_cv_type_size_t = no; then
2675 cat >> confdefs.h <<\EOF
2676 #define size_t unsigned
2681 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2682 echo "configure:2683: checking whether struct tm is in sys/time.h or time.h" >&5
2683 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 #include <sys/types.h>
2692 struct tm *tp; tp->tm_sec;
2695 if { (eval echo configure:2696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2697 ac_cv_struct_tm=time.h
2699 echo "configure: failed program was:" >&5
2700 cat conftest.$ac_ext >&5
2702 ac_cv_struct_tm=sys/time.h
2707 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2708 if test $ac_cv_struct_tm = sys/time.h; then
2709 cat >> confdefs.h <<\EOF
2710 #define TM_IN_SYS_TIME 1
2716 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2717 echo "configure:2718: checking for vprintf" >&5
2718 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2724 /* System header to define __stub macros and hopefully few prototypes,
2725 which can conflict with char vprintf(); below. */
2727 /* Override any gcc2 internal prototype to avoid an error. */
2728 /* We use char because int might match the return type of a gcc2
2729 builtin and then its argument prototype would still apply. */
2734 /* The GNU C library defines this for functions which it implements
2735 to always fail with ENOSYS. Some functions are actually named
2736 something starting with __ and the normal name is an alias. */
2737 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2745 if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2747 eval "ac_cv_func_vprintf=yes"
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2752 eval "ac_cv_func_vprintf=no"
2757 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2758 echo "$ac_t""yes" 1>&6
2759 cat >> confdefs.h <<\EOF
2760 #define HAVE_VPRINTF 1
2764 echo "$ac_t""no" 1>&6
2767 if test "$ac_cv_func_vprintf" != yes; then
2768 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2769 echo "configure:2770: checking for _doprnt" >&5
2770 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 /* System header to define __stub macros and hopefully few prototypes,
2777 which can conflict with char _doprnt(); below. */
2779 /* Override any gcc2 internal prototype to avoid an error. */
2780 /* We use char because int might match the return type of a gcc2
2781 builtin and then its argument prototype would still apply. */
2786 /* The GNU C library defines this for functions which it implements
2787 to always fail with ENOSYS. Some functions are actually named
2788 something starting with __ and the normal name is an alias. */
2789 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2797 if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2799 eval "ac_cv_func__doprnt=yes"
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2804 eval "ac_cv_func__doprnt=no"
2809 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2810 echo "$ac_t""yes" 1>&6
2811 cat >> confdefs.h <<\EOF
2812 #define HAVE_DOPRNT 1
2816 echo "$ac_t""no" 1>&6
2821 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
2823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2824 echo "configure:2825: checking for $ac_func" >&5
2825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 /* System header to define __stub macros and hopefully few prototypes,
2832 which can conflict with char $ac_func(); below. */
2834 /* Override any gcc2 internal prototype to avoid an error. */
2835 /* We use char because int might match the return type of a gcc2
2836 builtin and then its argument prototype would still apply. */
2841 /* The GNU C library defines this for functions which it implements
2842 to always fail with ENOSYS. Some functions are actually named
2843 something starting with __ and the normal name is an alias. */
2844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2852 if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2854 eval "ac_cv_func_$ac_func=yes"
2856 echo "configure: failed program was:" >&5
2857 cat conftest.$ac_ext >&5
2859 eval "ac_cv_func_$ac_func=no"
2864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2865 echo "$ac_t""yes" 1>&6
2866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2867 cat >> confdefs.h <<EOF
2868 #define $ac_tr_func 1
2872 echo "$ac_t""no" 1>&6
2876 echo $ac_n "checking for basename""... $ac_c" 1>&6
2877 echo "configure:2878: checking for basename" >&5
2878 if eval "test \"`echo '$''{'ac_cv_func_basename'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2884 /* System header to define __stub macros and hopefully few prototypes,
2885 which can conflict with char basename(); below. */
2887 /* Override any gcc2 internal prototype to avoid an error. */
2888 /* We use char because int might match the return type of a gcc2
2889 builtin and then its argument prototype would still apply. */
2894 /* The GNU C library defines this for functions which it implements
2895 to always fail with ENOSYS. Some functions are actually named
2896 something starting with __ and the normal name is an alias. */
2897 #if defined (__stub_basename) || defined (__stub___basename)
2905 if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2907 eval "ac_cv_func_basename=yes"
2909 echo "configure: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2912 eval "ac_cv_func_basename=no"
2917 if eval "test \"`echo '$ac_cv_func_'basename`\" = yes"; then
2918 echo "$ac_t""yes" 1>&6
2921 echo "$ac_t""no" 1>&6
2924 echo $ac_n "checking for setjmp""... $ac_c" 1>&6
2925 echo "configure:2926: checking for setjmp" >&5
2926 if eval "test \"`echo '$''{'ac_cv_func_setjmp'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 /* System header to define __stub macros and hopefully few prototypes,
2933 which can conflict with char setjmp(); below. */
2935 /* Override any gcc2 internal prototype to avoid an error. */
2936 /* We use char because int might match the return type of a gcc2
2937 builtin and then its argument prototype would still apply. */
2942 /* The GNU C library defines this for functions which it implements
2943 to always fail with ENOSYS. Some functions are actually named
2944 something starting with __ and the normal name is an alias. */
2945 #if defined (__stub_setjmp) || defined (__stub___setjmp)
2953 if { (eval echo configure:2954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2955 eval "ac_cv_func_setjmp=yes"
2957 echo "configure: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2960 eval "ac_cv_func_setjmp=no"
2965 if eval "test \"`echo '$ac_cv_func_'setjmp`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2969 echo "$ac_t""no" 1>&6
2972 echo $ac_n "checking for setpriority""... $ac_c" 1>&6
2973 echo "configure:2974: checking for setpriority" >&5
2974 if eval "test \"`echo '$''{'ac_cv_func_setpriority'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 cat > conftest.$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2980 /* System header to define __stub macros and hopefully few prototypes,
2981 which can conflict with char setpriority(); below. */
2983 /* Override any gcc2 internal prototype to avoid an error. */
2984 /* We use char because int might match the return type of a gcc2
2985 builtin and then its argument prototype would still apply. */
2990 /* The GNU C library defines this for functions which it implements
2991 to always fail with ENOSYS. Some functions are actually named
2992 something starting with __ and the normal name is an alias. */
2993 #if defined (__stub_setpriority) || defined (__stub___setpriority)
3001 if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3003 eval "ac_cv_func_setpriority=yes"
3005 echo "configure: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3008 eval "ac_cv_func_setpriority=no"
3013 if eval "test \"`echo '$ac_cv_func_'setpriority`\" = yes"; then
3014 echo "$ac_t""yes" 1>&6
3017 echo "$ac_t""no" 1>&6
3020 echo $ac_n "checking for time""... $ac_c" 1>&6
3021 echo "configure:3022: checking for time" >&5
3022 if eval "test \"`echo '$''{'ac_cv_func_time'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 /* System header to define __stub macros and hopefully few prototypes,
3029 which can conflict with char time(); below. */
3031 /* Override any gcc2 internal prototype to avoid an error. */
3032 /* We use char because int might match the return type of a gcc2
3033 builtin and then its argument prototype would still apply. */
3038 /* The GNU C library defines this for functions which it implements
3039 to always fail with ENOSYS. Some functions are actually named
3040 something starting with __ and the normal name is an alias. */
3041 #if defined (__stub_time) || defined (__stub___time)
3049 if { (eval echo configure:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3051 eval "ac_cv_func_time=yes"
3053 echo "configure: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3056 eval "ac_cv_func_time=no"
3061 if eval "test \"`echo '$ac_cv_func_'time`\" = yes"; then
3062 echo "$ac_t""yes" 1>&6
3065 echo "$ac_t""no" 1>&6
3068 echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3069 echo "configure:3070: checking for gettimeofday" >&5
3070 if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 cat > conftest.$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 /* System header to define __stub macros and hopefully few prototypes,
3077 which can conflict with char gettimeofday(); below. */
3079 /* Override any gcc2 internal prototype to avoid an error. */
3080 /* We use char because int might match the return type of a gcc2
3081 builtin and then its argument prototype would still apply. */
3082 char gettimeofday();
3086 /* The GNU C library defines this for functions which it implements
3087 to always fail with ENOSYS. Some functions are actually named
3088 something starting with __ and the normal name is an alias. */
3089 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
3097 if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3099 eval "ac_cv_func_gettimeofday=yes"
3101 echo "configure: failed program was:" >&5
3102 cat conftest.$ac_ext >&5
3104 eval "ac_cv_func_gettimeofday=no"
3109 if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
3110 echo "$ac_t""yes" 1>&6
3113 echo "$ac_t""no" 1>&6
3117 if test "${OSTYPE}" = "cygwin" ; then
3120 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3121 echo "configure:3122: checking for getopt_long" >&5
3122 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 /* System header to define __stub macros and hopefully few prototypes,
3129 which can conflict with char getopt_long(); below. */
3131 /* Override any gcc2 internal prototype to avoid an error. */
3132 /* We use char because int might match the return type of a gcc2
3133 builtin and then its argument prototype would still apply. */
3138 /* The GNU C library defines this for functions which it implements
3139 to always fail with ENOSYS. Some functions are actually named
3140 something starting with __ and the normal name is an alias. */
3141 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3149 if { (eval echo configure:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3151 eval "ac_cv_func_getopt_long=yes"
3153 echo "configure: failed program was:" >&5
3154 cat conftest.$ac_ext >&5
3156 eval "ac_cv_func_getopt_long=no"
3161 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3162 echo "$ac_t""yes" 1>&6
3165 echo "$ac_t""no" 1>&6
3171 if test "${getopt_long}" = "false" ; then
3172 my_includes="$my_includes -I../getopt"
3173 cat >> confdefs.h <<\EOF
3174 #define HAVE_GETOPT_LONG 1
3177 ctlibs_base="$ctlibs_base -lgetopt"
3178 LDFLAGS="$LDFLAGS -L../getopt"
3182 INCLUDED_GETOPT_LONG_TRUE=
3183 INCLUDED_GETOPT_LONG_FALSE='#'
3185 INCLUDED_GETOPT_LONG_TRUE='#'
3186 INCLUDED_GETOPT_LONG_FALSE=
3190 if test "${readline}" = "true" ; then
3191 ctlibs_base="$ctlibs_base -lreadline"
3192 if test "${ncurses}" = "true"; then
3193 ctlibs_base="$ctlibs_base -lncurses"
3194 elif test "${curses}" = "true"; then
3195 ctlibs_base="$ctlibs_base -lcurses"
3199 echo $ac_n "checking debug""... $ac_c" 1>&6
3200 echo "configure:3201: checking debug" >&5
3201 # Check whether --enable-debug or --disable-debug was given.
3202 if test "${enable_debug+set}" = set; then
3203 enableval="$enable_debug"
3204 case "${enableval}" in
3206 echo "$ac_t""yes" 1>&6
3209 echo "$ac_t""no" 1>&6
3211 *) echo "$ac_t""bad value ${enableval} for --enable-debug" 1>&6
3215 debug=false; echo "$ac_t""no" 1>&6
3220 if test "$debug" = "true"; then
3228 if test "$debug" = "true" ; then
3230 cat >> confdefs.h <<\EOF
3235 CFLAGS="-O3 -DNDEBUG -fomit-frame-pointer"
3236 cat >> confdefs.h <<\EOF
3242 echo $ac_n "checking sstream""... $ac_c" 1>&6
3243 echo "configure:3244: checking sstream" >&5
3244 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
3245 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ; then
3246 cat >> confdefs.h <<\EOF
3247 #define HAVE_SSTREAM 1
3250 echo "$ac_t""yes" 1>&6
3252 echo "$ac_t""no" 1>&6
3256 if test -n "$GCC"; then
3257 CFLAGS="$CFLAGS -Wall"
3260 echo $ac_n "checking whether to enable verbose warnings""... $ac_c" 1>&6
3261 echo "configure:3262: checking whether to enable verbose warnings" >&5
3262 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
3263 if test "${enable_verbose_warnings+set}" = set; then
3264 enableval="$enable_verbose_warnings"
3265 case "$enableval" in
3267 echo "$ac_t""yes" 1>&6
3269 if test -n "$GCC"; then
3274 if test -n "$GCC"; then
3275 CFLAGS="$CFLAGS -Wshadow -Wpointer-arith -Wbad-function-cast"
3279 if test -n "$GCC"; then
3280 CFLAGS="$CFLAGS -Wcast-align -Wwrite-strings -Waggregate-return"
3284 if test -n "$GCC"; then
3285 CFLAGS="$CFLAGS -Wmissing-prototypes -Wstrict-prototypes"
3289 if test -n "$GCC"; then
3290 CFLAGS="$CFLAGS -pedantic"
3294 if test -n "$GCC"; then
3295 CFLAGS="$CFLAGS -Wredundant-decls"
3301 echo "$ac_t""no" 1>&6
3305 echo "$ac_t""no" 1>&6
3310 echo $ac_n "checking static executables""... $ac_c" 1>&6
3311 echo "configure:3312: checking static executables" >&5
3312 # Check whether --enable-static or --disable-static was given.
3313 if test "${enable_static+set}" = set; then
3314 enableval="$enable_static"
3315 case "$enableval" in
3317 echo "$ac_t""yes" 1>&6
3319 if test -n "$GCC"; then
3320 CFLAGS="$CFLAGS --static"
3325 echo "$ac_t""no" 1>&6
3329 echo "$ac_t""no" 1>&6
3334 # Check whether --with-lam or --without-lam was given.
3335 if test "${with_lam+set}" = set; then
3337 if test "$withval" != "no" ; then
3344 if test "$withval" != "no" ; then
3345 if test "$prefix" != "NONE" ; then
3346 trylamdir="$trylamdir $prefix"
3349 echo $ac_n "checking for LAM MPI installation""... $ac_c" 1>&6
3350 echo "configure:3351: checking for LAM MPI installation" >&5
3351 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
3352 if test -x "$testlamdir/bin/hcp" ; then
3353 if test "$testlamdir" != "/usr"; then
3354 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
3355 CFLAGS="$CFLAGS -I$testlamdir/include"
3357 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
3358 lamdir="$testlamdir"
3365 echo "$ac_t""$lamdir" 1>&6
3367 echo "$ac_t""no" 1>&6
3370 echo $ac_n "checking for web access""... $ac_c" 1>&6
3371 echo "configure:3372: checking for web access" >&5
3372 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
3373 if test "${with_cgibin_dir+set}" = set; then
3374 withval="$with_cgibin_dir"
3375 cgibindir=$withval ;
3379 # Check whether --with-cgibin-url or --without-cgibin-url was given.
3380 if test "${with_cgibin_url+set}" = set; then
3381 withval="$with_cgibin_url"
3382 cgibinurl=$withval ;
3386 # Check whether --with-webdata-dir or --without-webdata-dir was given.
3387 if test "${with_webdata_dir+set}" = set; then
3388 withval="$with_webdata_dir"
3389 webdatadir=$withval ;
3393 # Check whether --with-webdata-url or --without-webdata-url was given.
3394 if test "${with_webdata_url+set}" = set; then
3395 withval="$with_webdata_url"
3396 webdataurl=$withval ;
3400 # Check whether --with-html-dir or --without-html-dir was given.
3401 if test "${with_html_dir+set}" = set; then
3402 withval="$with_html_dir"
3407 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
3408 cgiprograms="ctsim.cgi ctsim.conf"
3412 if test -n "$htmldir" ; then
3413 htmldata=simulate.html
3418 if test -n "$htmldir"; then
3426 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
3429 echo "$ac_t""yes" 1>&6
3430 if test -z "$cgibindir" ; then
3431 { echo "configure: error: --with-cgibin-dir not set for web access" 1>&2; exit 1; }
3432 elif test -z "$cgibinurl" ; then
3433 { echo "configure: error: --with-cgibin-url not set for web access" 1>&2; exit 1; }
3434 elif test -z "$webdatadir" ; then
3435 { echo "configure: error: --with-webdata-dir not set for web access" 1>&2; exit 1; }
3436 elif test -z "$webdataurl" ; then
3437 { echo "configure: error: --with-webdata-url not set for web access" 1>&2; exit 1; }
3438 elif test -z "$htmldir" ; then
3439 { echo "configure: error: --with-html-dir not set for web access" 1>&2; exit 1; }
3442 echo "$ac_t""no" 1>&6
3447 if test -n "$lamdir"; then
3456 # If we find X, set shell vars x_includes and x_libraries to the
3457 # paths, otherwise set no_x=yes.
3458 # Uses ac_ vars as temps to allow command line to override cache and checks.
3459 # --without-x overrides everything else, but does not touch the cache.
3460 echo $ac_n "checking for X""... $ac_c" 1>&6
3461 echo "configure:3462: checking for X" >&5
3463 # Check whether --with-x or --without-x was given.
3464 if test "${with_x+set}" = set; then
3469 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3470 if test "x$with_x" = xno; then
3471 # The user explicitly disabled X.
3474 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3475 # Both variables are already set.
3478 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3481 # One or both of the vars are not set, and there is no cached value.
3482 ac_x_includes=NO ac_x_libraries=NO
3484 if mkdir conftestdir; then
3486 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3487 cat > Imakefile <<'EOF'
3489 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3491 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3492 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3493 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3494 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3495 for ac_extension in a so sl; do
3496 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3497 test -f $ac_im_libdir/libX11.$ac_extension; then
3498 ac_im_usrlibdir=$ac_im_libdir; break
3501 # Screen out bogus values from the imake configuration. They are
3502 # bogus both because they are the default anyway, and because
3503 # using them would break gcc on systems where it needs fixed includes.
3504 case "$ac_im_incroot" in
3506 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3508 case "$ac_im_usrlibdir" in
3510 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3517 if test "$ac_x_includes" = NO; then
3518 # Guess where to find include files, by looking for this one X11 .h file.
3519 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3521 # First, try using that file with no special directory specified.
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 #include <$x_direct_test_include>
3527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3528 { (eval echo configure:3529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3530 if test -z "$ac_err"; then
3532 # We can compile using X headers with no special include directory.
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3539 # Look for the header file in a standard set of common directories.
3540 # Check X11 before X11Rn because it is often a symlink to the current release.
3543 /usr/X11R6/include \
3544 /usr/X11R5/include \
3545 /usr/X11R4/include \
3548 /usr/include/X11R6 \
3549 /usr/include/X11R5 \
3550 /usr/include/X11R4 \
3552 /usr/local/X11/include \
3553 /usr/local/X11R6/include \
3554 /usr/local/X11R5/include \
3555 /usr/local/X11R4/include \
3557 /usr/local/include/X11 \
3558 /usr/local/include/X11R6 \
3559 /usr/local/include/X11R5 \
3560 /usr/local/include/X11R4 \
3564 /usr/XFree86/include/X11 \
3567 /usr/local/include \
3568 /usr/unsupported/include \
3569 /usr/athena/include \
3570 /usr/local/x11r5/include \
3571 /usr/lpp/Xamples/include \
3573 /usr/openwin/include \
3574 /usr/openwin/share/include \
3577 if test -r "$ac_dir/$x_direct_test_include"; then
3578 ac_x_includes=$ac_dir
3584 fi # $ac_x_includes = NO
3586 if test "$ac_x_libraries" = NO; then
3587 # Check for the libraries.
3589 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3590 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3592 # See if we find them without any special options.
3593 # Don't add to $LIBS permanently.
3594 ac_save_LIBS="$LIBS"
3595 LIBS="-l$x_direct_test_library $LIBS"
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3601 ${x_direct_test_function}()
3604 if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3606 LIBS="$ac_save_LIBS"
3607 # We can link X programs with no special library path.
3610 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5
3613 LIBS="$ac_save_LIBS"
3614 # First see if replacing the include by lib works.
3615 # Check X11 before X11Rn because it is often a symlink to the current release.
3616 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3627 /usr/local/X11/lib \
3628 /usr/local/X11R6/lib \
3629 /usr/local/X11R5/lib \
3630 /usr/local/X11R4/lib \
3632 /usr/local/lib/X11 \
3633 /usr/local/lib/X11R6 \
3634 /usr/local/lib/X11R5 \
3635 /usr/local/lib/X11R4 \
3639 /usr/XFree86/lib/X11 \
3643 /usr/unsupported/lib \
3645 /usr/local/x11r5/lib \
3646 /usr/lpp/Xamples/lib \
3650 /usr/openwin/share/lib \
3653 for ac_extension in a so sl; do
3654 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3655 ac_x_libraries=$ac_dir
3662 fi # $ac_x_libraries = NO
3664 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3665 # Didn't find X anywhere. Cache the known absence of X.
3666 ac_cv_have_x="have_x=no"
3668 # Record where we found X for the cache.
3669 ac_cv_have_x="have_x=yes \
3670 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3674 eval "$ac_cv_have_x"
3677 if test "$have_x" != yes; then
3678 echo "$ac_t""$have_x" 1>&6
3681 # If each of the values was on the command line, it overrides each guess.
3682 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3683 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3684 # Update the cache value to reflect the command line values.
3685 ac_cv_have_x="have_x=yes \
3686 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3687 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3690 if test "$no_x" = yes; then
3691 # Not all programs may use this symbol, but it does not hurt to define it.
3692 cat >> confdefs.h <<\EOF
3693 #define X_DISPLAY_MISSING 1
3696 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3698 if test -n "$x_includes"; then
3699 X_CFLAGS="$X_CFLAGS -I$x_includes"
3702 # It would also be nice to do this for all -L options, not just this one.
3703 if test -n "$x_libraries"; then
3704 X_LIBS="$X_LIBS -L$x_libraries"
3705 # For Solaris; some versions of Sun CC require a space after -R and
3706 # others require no space. Words are not sufficient . . . .
3707 case "`(uname -sr) 2>/dev/null`" in
3709 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3710 echo "configure:3711: checking whether -R must be followed by a space" >&5
3711 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3712 cat > conftest.$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3720 if { (eval echo configure:3721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3724 echo "configure: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3730 if test $ac_R_nospace = yes; then
3731 echo "$ac_t""no" 1>&6
3732 X_LIBS="$X_LIBS -R$x_libraries"
3734 LIBS="$ac_xsave_LIBS -R $x_libraries"
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3743 if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3747 echo "configure: failed program was:" >&5
3748 cat conftest.$ac_ext >&5
3753 if test $ac_R_space = yes; then
3754 echo "$ac_t""yes" 1>&6
3755 X_LIBS="$X_LIBS -R $x_libraries"
3757 echo "$ac_t""neither works" 1>&6
3760 LIBS="$ac_xsave_LIBS"
3764 # Check for system-dependent libraries X programs must link with.
3765 # Do this before checking for the system-independent R6 libraries
3766 # (-lICE), since we may need -lsocket or whatever for X linking.
3768 if test "$ISC" = yes; then
3769 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3771 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3772 # libraries were built with DECnet support. And karl@cs.umb.edu says
3773 # the Alpha needs dnet_stub (dnet does not exist).
3774 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3775 echo "configure:3776: checking for dnet_ntoa in -ldnet" >&5
3776 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 ac_save_LIBS="$LIBS"
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3785 /* Override any gcc2 internal prototype to avoid an error. */
3786 /* We use char because int might match the return type of a gcc2
3787 builtin and then its argument prototype would still apply. */
3794 if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3796 eval "ac_cv_lib_$ac_lib_var=yes"
3798 echo "configure: failed program was:" >&5
3799 cat conftest.$ac_ext >&5
3801 eval "ac_cv_lib_$ac_lib_var=no"
3804 LIBS="$ac_save_LIBS"
3807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3808 echo "$ac_t""yes" 1>&6
3809 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3811 echo "$ac_t""no" 1>&6
3814 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3815 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3816 echo "configure:3817: checking for dnet_ntoa in -ldnet_stub" >&5
3817 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3821 ac_save_LIBS="$LIBS"
3822 LIBS="-ldnet_stub $LIBS"
3823 cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 /* Override any gcc2 internal prototype to avoid an error. */
3827 /* We use char because int might match the return type of a gcc2
3828 builtin and then its argument prototype would still apply. */
3835 if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3837 eval "ac_cv_lib_$ac_lib_var=yes"
3839 echo "configure: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3842 eval "ac_cv_lib_$ac_lib_var=no"
3845 LIBS="$ac_save_LIBS"
3848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3852 echo "$ac_t""no" 1>&6
3857 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3858 # to get the SysV transport functions.
3859 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3861 # The nsl library prevents programs from opening the X display
3862 # on Irix 5.2, according to dickey@clark.net.
3863 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3864 echo "configure:3865: checking for gethostbyname" >&5
3865 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 /* System header to define __stub macros and hopefully few prototypes,
3872 which can conflict with char gethostbyname(); below. */
3874 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3877 char gethostbyname();
3881 /* The GNU C library defines this for functions which it implements
3882 to always fail with ENOSYS. Some functions are actually named
3883 something starting with __ and the normal name is an alias. */
3884 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3892 if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3894 eval "ac_cv_func_gethostbyname=yes"
3896 echo "configure: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3899 eval "ac_cv_func_gethostbyname=no"
3904 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3905 echo "$ac_t""yes" 1>&6
3908 echo "$ac_t""no" 1>&6
3911 if test $ac_cv_func_gethostbyname = no; then
3912 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3913 echo "configure:3914: checking for gethostbyname in -lnsl" >&5
3914 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3918 ac_save_LIBS="$LIBS"
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3923 /* Override any gcc2 internal prototype to avoid an error. */
3924 /* We use char because int might match the return type of a gcc2
3925 builtin and then its argument prototype would still apply. */
3926 char gethostbyname();
3932 if { (eval echo configure:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3934 eval "ac_cv_lib_$ac_lib_var=yes"
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3939 eval "ac_cv_lib_$ac_lib_var=no"
3942 LIBS="$ac_save_LIBS"
3945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3946 echo "$ac_t""yes" 1>&6
3947 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3949 echo "$ac_t""no" 1>&6
3954 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3955 # socket/setsockopt and other routines are undefined under SCO ODT
3956 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3957 # on later versions), says simon@lia.di.epfl.ch: it contains
3958 # gethostby* variants that don't use the nameserver (or something).
3959 # -lsocket must be given before -lnsl if both are needed.
3960 # We assume that if connect needs -lnsl, so does gethostbyname.
3961 echo $ac_n "checking for connect""... $ac_c" 1>&6
3962 echo "configure:3963: checking for connect" >&5
3963 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3966 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 /* System header to define __stub macros and hopefully few prototypes,
3970 which can conflict with char connect(); below. */
3972 /* Override any gcc2 internal prototype to avoid an error. */
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3979 /* The GNU C library defines this for functions which it implements
3980 to always fail with ENOSYS. Some functions are actually named
3981 something starting with __ and the normal name is an alias. */
3982 #if defined (__stub_connect) || defined (__stub___connect)
3990 if { (eval echo configure:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3992 eval "ac_cv_func_connect=yes"
3994 echo "configure: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3997 eval "ac_cv_func_connect=no"
4002 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4003 echo "$ac_t""yes" 1>&6
4006 echo "$ac_t""no" 1>&6
4009 if test $ac_cv_func_connect = no; then
4010 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4011 echo "configure:4012: checking for connect in -lsocket" >&5
4012 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4016 ac_save_LIBS="$LIBS"
4017 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4021 /* Override any gcc2 internal prototype to avoid an error. */
4022 /* We use char because int might match the return type of a gcc2
4023 builtin and then its argument prototype would still apply. */
4030 if { (eval echo configure:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4032 eval "ac_cv_lib_$ac_lib_var=yes"
4034 echo "configure: failed program was:" >&5
4035 cat conftest.$ac_ext >&5
4037 eval "ac_cv_lib_$ac_lib_var=no"
4040 LIBS="$ac_save_LIBS"
4043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4044 echo "$ac_t""yes" 1>&6
4045 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4047 echo "$ac_t""no" 1>&6
4052 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4053 echo $ac_n "checking for remove""... $ac_c" 1>&6
4054 echo "configure:4055: checking for remove" >&5
4055 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4058 cat > conftest.$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4061 /* System header to define __stub macros and hopefully few prototypes,
4062 which can conflict with char remove(); below. */
4064 /* Override any gcc2 internal prototype to avoid an error. */
4065 /* We use char because int might match the return type of a gcc2
4066 builtin and then its argument prototype would still apply. */
4071 /* The GNU C library defines this for functions which it implements
4072 to always fail with ENOSYS. Some functions are actually named
4073 something starting with __ and the normal name is an alias. */
4074 #if defined (__stub_remove) || defined (__stub___remove)
4082 if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4084 eval "ac_cv_func_remove=yes"
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4089 eval "ac_cv_func_remove=no"
4094 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4095 echo "$ac_t""yes" 1>&6
4098 echo "$ac_t""no" 1>&6
4101 if test $ac_cv_func_remove = no; then
4102 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4103 echo "configure:4104: checking for remove in -lposix" >&5
4104 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4108 ac_save_LIBS="$LIBS"
4109 LIBS="-lposix $LIBS"
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 /* Override any gcc2 internal prototype to avoid an error. */
4114 /* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4122 if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4124 eval "ac_cv_lib_$ac_lib_var=yes"
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4129 eval "ac_cv_lib_$ac_lib_var=no"
4132 LIBS="$ac_save_LIBS"
4135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4136 echo "$ac_t""yes" 1>&6
4137 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4139 echo "$ac_t""no" 1>&6
4144 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4145 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4146 echo "configure:4147: checking for shmat" >&5
4147 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4150 cat > conftest.$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4153 /* System header to define __stub macros and hopefully few prototypes,
4154 which can conflict with char shmat(); below. */
4156 /* Override any gcc2 internal prototype to avoid an error. */
4157 /* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4163 /* The GNU C library defines this for functions which it implements
4164 to always fail with ENOSYS. Some functions are actually named
4165 something starting with __ and the normal name is an alias. */
4166 #if defined (__stub_shmat) || defined (__stub___shmat)
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4176 eval "ac_cv_func_shmat=yes"
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4181 eval "ac_cv_func_shmat=no"
4186 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4187 echo "$ac_t""yes" 1>&6
4190 echo "$ac_t""no" 1>&6
4193 if test $ac_cv_func_shmat = no; then
4194 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4195 echo "configure:4196: checking for shmat in -lipc" >&5
4196 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4200 ac_save_LIBS="$LIBS"
4202 cat > conftest.$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4205 /* Override any gcc2 internal prototype to avoid an error. */
4206 /* We use char because int might match the return type of a gcc2
4207 builtin and then its argument prototype would still apply. */
4214 if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4216 eval "ac_cv_lib_$ac_lib_var=yes"
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4221 eval "ac_cv_lib_$ac_lib_var=no"
4224 LIBS="$ac_save_LIBS"
4227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4228 echo "$ac_t""yes" 1>&6
4229 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4231 echo "$ac_t""no" 1>&6
4237 # Check for libraries that X11R6 Xt/Xaw programs need.
4238 ac_save_LDFLAGS="$LDFLAGS"
4239 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4240 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4241 # check for ICE first), but we must link in the order -lSM -lICE or
4242 # we get undefined symbols. So assume we have SM if we have ICE.
4243 # These have to be linked with before -lX11, unlike the other
4244 # libraries we check for below, so use a different variable.
4245 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4246 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4247 echo "configure:4248: checking for IceConnectionNumber in -lICE" >&5
4248 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 ac_save_LIBS="$LIBS"
4253 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 /* Override any gcc2 internal prototype to avoid an error. */
4258 /* We use char because int might match the return type of a gcc2
4259 builtin and then its argument prototype would still apply. */
4260 char IceConnectionNumber();
4263 IceConnectionNumber()
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4268 eval "ac_cv_lib_$ac_lib_var=yes"
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4273 eval "ac_cv_lib_$ac_lib_var=no"
4276 LIBS="$ac_save_LIBS"
4279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4280 echo "$ac_t""yes" 1>&6
4281 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4283 echo "$ac_t""no" 1>&6
4286 LDFLAGS="$ac_save_LDFLAGS"
4297 X_TOOLKIT_LIBS="-lXt"
4298 X_BASIC_LIBS="-lXext -lX11"
4300 our_saved_LDFLAGS="$LDFLAGS"
4301 LDFLAGS="$X_LIBS $LDFLAGS"
4302 echo $ac_n "checking for XtToolkitThreadInitialize in -lXt""... $ac_c" 1>&6
4303 echo "configure:4304: checking for XtToolkitThreadInitialize in -lXt" >&5
4304 ac_lib_var=`echo Xt'_'XtToolkitThreadInitialize | sed 'y%./+-%__p_%'`
4305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 ac_save_LIBS="$LIBS"
4309 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 /* Override any gcc2 internal prototype to avoid an error. */
4314 /* We use char because int might match the return type of a gcc2
4315 builtin and then its argument prototype would still apply. */
4316 char XtToolkitThreadInitialize();
4319 XtToolkitThreadInitialize()
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4324 eval "ac_cv_lib_$ac_lib_var=yes"
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4329 eval "ac_cv_lib_$ac_lib_var=no"
4332 LIBS="$ac_save_LIBS"
4335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4336 echo "$ac_t""yes" 1>&6
4337 cat >> confdefs.h <<\EOF
4338 #define X_THREAD_SUPPORT 1
4342 echo "$ac_t""no" 1>&6
4345 LDFLAGS="$our_saved_LDFLAGS"
4347 our_saved_LDFLAGS="$LDFLAGS"
4348 LDFLAGS="$X_LIBS $LDFLAGS"
4349 echo $ac_n "checking for XdbeQueryExtension in -lXext""... $ac_c" 1>&6
4350 echo "configure:4351: checking for XdbeQueryExtension in -lXext" >&5
4351 ac_lib_var=`echo Xext'_'XdbeQueryExtension | sed 'y%./+-%__p_%'`
4352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4355 ac_save_LIBS="$LIBS"
4356 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4360 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4363 char XdbeQueryExtension();
4366 XdbeQueryExtension()
4369 if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4371 eval "ac_cv_lib_$ac_lib_var=yes"
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 eval "ac_cv_lib_$ac_lib_var=no"
4379 LIBS="$ac_save_LIBS"
4382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4383 echo "$ac_t""yes" 1>&6
4384 cat >> confdefs.h <<\EOF
4385 #define HAVE_DBE_SUPPORT 1
4389 echo "$ac_t""no" 1>&6
4392 echo $ac_n "checking for XmbufQueryExtension in -lXext""... $ac_c" 1>&6
4393 echo "configure:4394: checking for XmbufQueryExtension in -lXext" >&5
4394 ac_lib_var=`echo Xext'_'XmbufQueryExtension | sed 'y%./+-%__p_%'`
4395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4398 ac_save_LIBS="$LIBS"
4399 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4403 /* Override any gcc2 internal prototype to avoid an error. */
4404 /* We use char because int might match the return type of a gcc2
4405 builtin and then its argument prototype would still apply. */
4406 char XmbufQueryExtension();
4409 XmbufQueryExtension()
4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4414 eval "ac_cv_lib_$ac_lib_var=yes"
4416 echo "configure: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4419 eval "ac_cv_lib_$ac_lib_var=no"
4422 LIBS="$ac_save_LIBS"
4425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4426 echo "$ac_t""yes" 1>&6
4427 cat >> confdefs.h <<\EOF
4428 #define HAVE_MBX_SUPPORT 1
4432 echo "$ac_t""no" 1>&6
4435 LDFLAGS="$our_saved_LDFLAGS"
4436 our_saved_CPPFLAGS="$CPPFLAGS"
4437 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
4438 for ac_hdr in X11/extensions/Xdbe.h X11/extensions/multibuf.h
4440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4442 echo "configure:4443: checking for $ac_hdr" >&5
4443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4452 { (eval echo configure:4453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4454 if test -z "$ac_err"; then
4456 eval "ac_cv_header_$ac_safe=yes"
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4462 eval "ac_cv_header_$ac_safe=no"
4466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4467 echo "$ac_t""yes" 1>&6
4468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4469 cat >> confdefs.h <<EOF
4470 #define $ac_tr_hdr 1
4474 echo "$ac_t""no" 1>&6
4478 CPPFLAGS="$our_saved_CPPFLAGS"
4482 if test "x$no_x" = "xyes"; then
4490 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
4493 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4495 echo $ac_n "checking for X""... $ac_c" 1>&6
4496 echo "configure:4497: checking for X" >&5
4497 if test "$no_x" != "yes" ; then
4498 cat >> confdefs.h <<\EOF
4511 cat >> confdefs.h <<\EOF
4515 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
4516 ctlib_graphics="$ctlibs_base -lctgraphics"
4517 echo "$ac_t""yes" 1>&6
4518 if test "$g2" = "true" ; then
4519 ctlib_graphics="$ctlib_graphics -lg2"
4520 cat >> confdefs.h <<\EOF
4525 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
4526 if test "$libgl" = "true" -a "$wxgtkgl" = "true" ; then
4527 ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU -lwx_gtk_gl"
4530 if test "$wxwin" = "true" ; then
4531 cat >> confdefs.h <<\EOF
4545 echo "$ac_t""no" 1>&6
4548 if test "$png" = "true" ; then
4549 ctlibs_tools="$ctlibs_tools -lpng"
4551 if test "$zlib" = "true" ; then
4552 ctlibs_tools="$ctlibs_tools -lz"
4554 if test "$fftw" = "true" ; then
4555 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
4558 echo $ac_n "checking for main in -ldmallocxx""... $ac_c" 1>&6
4559 echo "configure:4560: checking for main in -ldmallocxx" >&5
4560 ac_lib_var=`echo dmallocxx'_'main | sed 'y%./+-%__p_%'`
4561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 ac_save_LIBS="$LIBS"
4565 LIBS="-ldmallocxx $LIBS"
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4574 if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4576 eval "ac_cv_lib_$ac_lib_var=yes"
4578 echo "configure: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4581 eval "ac_cv_lib_$ac_lib_var=no"
4584 LIBS="$ac_save_LIBS"
4587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4588 echo "$ac_t""yes" 1>&6
4591 echo "$ac_t""no" 1>&6
4595 echo $ac_n "checking for enable-dmalloc""... $ac_c" 1>&6
4596 echo "configure:4597: checking for enable-dmalloc" >&5
4597 # Check whether --enable-dmalloc or --disable-dmalloc was given.
4598 if test "${enable_dmalloc+set}" = set; then
4599 enableval="$enable_dmalloc"
4600 case "${enableval}" in
4601 yes) usedmalloc=true
4602 echo "$ac_t""yes" 1>&6
4604 no) usedmalloc=false
4605 echo "$ac_t""no" 1>&6
4607 *) echo "$ac_t""bad value ${enableval} for --enable-dmalloc" 1>&6
4611 usedmalloc=false; echo "$ac_t""no" 1>&6
4615 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
4616 ctlibs_tools="$ctlibs_tools -ldmallocxx"
4617 cat >> confdefs.h <<\EOF
4618 #define HAVE_DMALLOC 1
4621 echo "$ac_t""Using dmalloc" 1>&6
4624 if test "$wxwin" = "true" ; then
4625 if test "$wx_gtk" = "true" ; then
4626 wxcflags=`$wxconfig --cflags`
4627 wxlibs=`$wxconfig --libs`
4629 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
4630 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
4632 CFLAGS="$CFLAGS -I../include $wxcflags"
4633 ctlib_graphics="$ctlib_graphics $wxlibs"
4637 HAVE_WXWINDOWS_TRUE=
4638 HAVE_WXWINDOWS_FALSE='#'
4640 HAVE_WXWINDOWS_TRUE='#'
4641 HAVE_WXWINDOWS_FALSE=
4647 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
4648 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
4651 if test -n "$lamdir" ; then
4652 lamprograms="ctsimtext-lam"
4661 cat > confcache <<\EOF
4662 # This file is a shell script that caches the results of configure
4663 # tests run on this system so they can be shared between configure
4664 # scripts and configure runs. It is not useful on other systems.
4665 # If it contains results you don't want to keep, you may remove or edit it.
4667 # By default, configure uses ./config.cache as the cache file,
4668 # creating it if it does not exist already. You can give configure
4669 # the --cache-file=FILE option to use a different cache file; that is
4670 # what configure does when it calls configure scripts in
4671 # subdirectories, so they share the cache.
4672 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4673 # config.status only pays attention to the cache file if you give it the
4674 # --recheck option to rerun configure.
4677 # The following way of writing the cache mishandles newlines in values,
4678 # but we know of no workaround that is simple, portable, and efficient.
4679 # So, don't put newlines in cache variables' values.
4680 # Ultrix sh set writes to stderr and can't be redirected directly,
4681 # and sets the high bit in the cache file unless we assign to the vars.
4683 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4685 # `set' does not quote correctly, so add quotes (double-quote substitution
4686 # turns \\\\ into \\, and sed turns \\ into \).
4688 -e "s/'/'\\\\''/g" \
4689 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4692 # `set' quotes correctly as required by POSIX, so do not add quotes.
4693 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4696 if cmp -s $cache_file confcache; then
4699 if test -w $cache_file; then
4700 echo "updating cache $cache_file"
4701 cat confcache > $cache_file
4703 echo "not updating unwritable cache $cache_file"
4708 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4711 # Let make expand exec_prefix.
4712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4714 # Any assignment to VPATH causes Sun make to only execute
4715 # the first set of double-colon rules, so remove it if not needed.
4716 # If there is a colon in the path, we need to keep it.
4717 if test "x$srcdir" = x.; then
4718 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4721 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4723 DEFS=-DHAVE_CONFIG_H
4725 # Without the "./", some shells look in PATH for config.status.
4726 : ${CONFIG_STATUS=./config.status}
4728 echo creating $CONFIG_STATUS
4729 rm -f $CONFIG_STATUS
4730 cat > $CONFIG_STATUS <<EOF
4732 # Generated automatically by configure.
4733 # Run this file to recreate the current configuration.
4734 # This directory was configured as follows,
4735 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4737 # $0 $ac_configure_args
4739 # Compiler output produced by configure, useful for debugging
4740 # configure, is in ./config.log if it exists.
4742 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4745 case "\$ac_option" in
4746 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4747 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4748 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4749 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4750 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4752 -help | --help | --hel | --he | --h)
4753 echo "\$ac_cs_usage"; exit 0 ;;
4754 *) echo "\$ac_cs_usage"; exit 1 ;;
4758 ac_given_srcdir=$srcdir
4759 ac_given_INSTALL="$INSTALL"
4761 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 doc/tex2rtf/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4763 cat >> $CONFIG_STATUS <<EOF
4765 # Protect against being on the right side of a sed subst in config.status.
4766 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4767 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4771 s%@CFLAGS@%$CFLAGS%g
4772 s%@CPPFLAGS@%$CPPFLAGS%g
4773 s%@CXXFLAGS@%$CXXFLAGS%g
4774 s%@FFLAGS@%$FFLAGS%g
4776 s%@LDFLAGS@%$LDFLAGS%g
4778 s%@exec_prefix@%$exec_prefix%g
4779 s%@prefix@%$prefix%g
4780 s%@program_transform_name@%$program_transform_name%g
4781 s%@bindir@%$bindir%g
4782 s%@sbindir@%$sbindir%g
4783 s%@libexecdir@%$libexecdir%g
4784 s%@datadir@%$datadir%g
4785 s%@sysconfdir@%$sysconfdir%g
4786 s%@sharedstatedir@%$sharedstatedir%g
4787 s%@localstatedir@%$localstatedir%g
4788 s%@libdir@%$libdir%g
4789 s%@includedir@%$includedir%g
4790 s%@oldincludedir@%$oldincludedir%g
4791 s%@infodir@%$infodir%g
4792 s%@mandir@%$mandir%g
4793 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4794 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4795 s%@INSTALL_DATA@%$INSTALL_DATA%g
4796 s%@PACKAGE@%$PACKAGE%g
4797 s%@VERSION@%$VERSION%g
4798 s%@ACLOCAL@%$ACLOCAL%g
4799 s%@AUTOCONF@%$AUTOCONF%g
4800 s%@AUTOMAKE@%$AUTOMAKE%g
4801 s%@AUTOHEADER@%$AUTOHEADER%g
4802 s%@MAKEINFO@%$MAKEINFO%g
4803 s%@SET_MAKE@%$SET_MAKE%g
4805 s%@RANLIB@%$RANLIB%g
4808 s%@wxconfig@%$wxconfig%g
4810 s%@host_alias@%$host_alias%g
4811 s%@host_cpu@%$host_cpu%g
4812 s%@host_vendor@%$host_vendor%g
4813 s%@host_os@%$host_os%g
4815 s%@INCLUDED_GETOPT_LONG_TRUE@%$INCLUDED_GETOPT_LONG_TRUE%g
4816 s%@INCLUDED_GETOPT_LONG_FALSE@%$INCLUDED_GETOPT_LONG_FALSE%g
4817 s%@DEBUG_TRUE@%$DEBUG_TRUE%g
4818 s%@DEBUG_FALSE@%$DEBUG_FALSE%g
4819 s%@lamdir@%$lamdir%g
4820 s%@mpienable@%$mpienable%g
4821 s%@cgibindir@%$cgibindir%g
4822 s%@cgibinurl@%$cgibinurl%g
4823 s%@webdatadir@%$webdatadir%g
4824 s%@webdataurl@%$webdataurl%g
4825 s%@htmldir@%$htmldir%g
4826 s%@cgiprograms@%$cgiprograms%g
4827 s%@htmldata@%$htmldata%g
4828 s%@USE_HTML_TRUE@%$USE_HTML_TRUE%g
4829 s%@USE_HTML_FALSE@%$USE_HTML_FALSE%g
4830 s%@webenabled@%$webenabled%g
4831 s%@USE_LAM_TRUE@%$USE_LAM_TRUE%g
4832 s%@USE_LAM_FALSE@%$USE_LAM_FALSE%g
4833 s%@X_CFLAGS@%$X_CFLAGS%g
4834 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4835 s%@X_LIBS@%$X_LIBS%g
4836 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4837 s%@X_TOOLKIT_LIBS@%$X_TOOLKIT_LIBS%g
4838 s%@X_BASIC_LIBS@%$X_BASIC_LIBS%g
4839 s%@NO_X_TRUE@%$NO_X_TRUE%g
4840 s%@NO_X_FALSE@%$NO_X_FALSE%g
4841 s%@my_includes@%$my_includes%g
4842 s%@HAVE_SGP_TRUE@%$HAVE_SGP_TRUE%g
4843 s%@HAVE_SGP_FALSE@%$HAVE_SGP_FALSE%g
4844 s%@HAVE_WXWINDOWS_TRUE@%$HAVE_WXWINDOWS_TRUE%g
4845 s%@HAVE_WXWINDOWS_FALSE@%$HAVE_WXWINDOWS_FALSE%g
4846 s%@wxcflags@%$wxcflags%g
4847 s%@wxlibs@%$wxlibs%g
4848 s%@ctlibs@%$ctlibs%g
4849 s%@lamprograms@%$lamprograms%g
4850 s%@lamdefs@%$lamdefs%g
4855 cat >> $CONFIG_STATUS <<\EOF
4857 # Split the substitutions into bite-sized pieces for seds with
4858 # small command number limits, like on Digital OSF/1 and HP-UX.
4859 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4860 ac_file=1 # Number of current file.
4861 ac_beg=1 # First line for current file.
4862 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4865 while $ac_more_lines; do
4866 if test $ac_beg -gt 1; then
4867 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4869 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4871 if test ! -s conftest.s$ac_file; then
4873 rm -f conftest.s$ac_file
4875 if test -z "$ac_sed_cmds"; then
4876 ac_sed_cmds="sed -f conftest.s$ac_file"
4878 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4880 ac_file=`expr $ac_file + 1`
4882 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4885 if test -z "$ac_sed_cmds"; then
4890 cat >> $CONFIG_STATUS <<EOF
4892 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 doc/tex2rtf/Makefile"}
4894 cat >> $CONFIG_STATUS <<\EOF
4895 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4896 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4898 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4899 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4900 *) ac_file_in="${ac_file}.in" ;;
4903 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4905 # Remove last slash and all that follows it. Not all systems have dirname.
4906 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4907 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4908 # The file is in a subdirectory.
4909 test ! -d "$ac_dir" && mkdir "$ac_dir"
4910 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4911 # A "../" for each directory in $ac_dir_suffix.
4912 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4914 ac_dir_suffix= ac_dots=
4917 case "$ac_given_srcdir" in
4919 if test -z "$ac_dots"; then top_srcdir=.
4920 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4921 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4923 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4924 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4927 case "$ac_given_INSTALL" in
4928 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4929 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4932 echo creating "$ac_file"
4934 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4936 *Makefile*) ac_comsub="1i\\
4937 # $configure_input" ;;
4941 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4943 s%@configure_input@%$configure_input%g
4944 s%@srcdir@%$srcdir%g
4945 s%@top_srcdir@%$top_srcdir%g
4946 s%@INSTALL@%$INSTALL%g
4947 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4951 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4952 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4954 # ac_d sets the value in "#define NAME VALUE" lines.
4955 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4956 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4959 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4960 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4961 ac_uB='\([ ]\)%\1#\2define\3'
4964 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4965 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4966 ac_eB='$%\1#\2define\3'
4970 if test "${CONFIG_HEADERS+set}" != set; then
4972 cat >> $CONFIG_STATUS <<EOF
4973 CONFIG_HEADERS="config.h"
4975 cat >> $CONFIG_STATUS <<\EOF
4977 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4980 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4981 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4982 *) ac_file_in="${ac_file}.in" ;;
4985 echo creating $ac_file
4987 rm -f conftest.frag conftest.in conftest.out
4988 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4989 cat $ac_file_inputs > conftest.in
4993 # Transform confdefs.h into a sed script conftest.vals that substitutes
4994 # the proper values into config.h.in to produce config.h. And first:
4995 # Protect against being on the right side of a sed subst in config.status.
4996 # Protect against being in an unquoted here document in config.status.
4998 cat > conftest.hdr <<\EOF
5001 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5005 sed -n -f conftest.hdr confdefs.h > conftest.vals
5008 # This sed command replaces #undef with comments. This is necessary, for
5009 # example, in the case of _POSIX_SOURCE, which is predefined and required
5010 # on some systems where configure will not decide to define it.
5011 cat >> conftest.vals <<\EOF
5012 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5015 # Break up conftest.vals because some shells have a limit on
5016 # the size of here documents, and old seds have small limits too.
5021 ac_lines=`grep -c . conftest.vals`
5022 # grep -c gives empty output for an empty file on some AIX systems.
5023 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5024 # Write a limited-size here document to conftest.frag.
5025 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5026 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5028 sed -f conftest.frag conftest.in > conftest.out
5030 mv conftest.out conftest.in
5032 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5034 mv conftest.tail conftest.vals
5038 cat >> $CONFIG_STATUS <<\EOF
5039 rm -f conftest.frag conftest.h
5040 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5041 cat conftest.in >> conftest.h
5043 if cmp -s $ac_file conftest.h 2>/dev/null; then
5044 echo "$ac_file is unchanged"
5047 # Remove last slash and all that follows it. Not all systems have dirname.
5048 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5049 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5050 # The file is in a subdirectory.
5051 test ! -d "$ac_dir" && mkdir "$ac_dir"
5054 mv conftest.h $ac_file
5059 cat >> $CONFIG_STATUS <<EOF
5063 cat >> $CONFIG_STATUS <<\EOF
5064 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5068 chmod +x $CONFIG_STATUS
5069 rm -fr confdefs* $ac_clean_files
5070 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1