3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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-shared build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
28 --with-x use the X Window System"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file=./config.cache
43 program_transform_name=s,x,x,
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
64 # Initialize some other variables.
67 # Maximum number of lines to put in a shell here document.
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 # Accept the important Cygnus configure options, so we can diagnose typos.
90 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93 bindir="$ac_optarg" ;;
95 -build | --build | --buil | --bui | --bu)
97 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 -cache-file | --cache-file | --cache-fil | --cache-fi \
101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102 ac_prev=cache_file ;;
103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105 cache_file="$ac_optarg" ;;
107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 datadir="$ac_optarg" ;;
113 -disable-* | --disable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* | --enable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137 | --exec | --exe | --ex)
138 ac_prev=exec_prefix ;;
139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141 | --exec=* | --exe=* | --ex=*)
142 exec_prefix="$ac_optarg" ;;
144 -gas | --gas | --ga | --g)
145 # Obsolete; use --with-gas.
148 -help | --help | --hel | --he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
203 -host | --host | --hos | --ho)
205 -host=* | --host=* | --hos=* | --ho=*)
208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
220 -libdir | --libdir | --libdi | --libd)
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
247 # Obsolete; use --without-fp.
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
294 -program-transform-name=* | --program-transform-name=* \
295 | --program-transform-nam=* | --program-transform-na=* \
296 | --program-transform-n=* | --program-transform-=* \
297 | --program-transform=* | --program-transfor=* \
298 | --program-transfo=* | --program-transf=* \
299 | --program-trans=* | --program-tran=* \
300 | --progr-tra=* | --program-tr=* | --program-t=*)
301 program_transform_name="$ac_optarg" ;;
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311 sbindir="$ac_optarg" ;;
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322 sharedstatedir="$ac_optarg" ;;
324 -site | --site | --sit)
326 -site=* | --site=* | --sit=*)
329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332 srcdir="$ac_optarg" ;;
334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335 | --syscon | --sysco | --sysc | --sys | --sy)
336 ac_prev=sysconfdir ;;
337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339 sysconfdir="$ac_optarg" ;;
341 -target | --target | --targe | --targ | --tar | --ta | --t)
343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344 target="$ac_optarg" ;;
346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
349 -version | --version | --versio | --versi | --vers)
350 echo "configure generated by autoconf version 2.12"
354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* | --without-*)
367 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
376 # Obsolete; use --with-x.
379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380 | --x-incl | --x-inc | --x-in | --x-i)
381 ac_prev=x_includes ;;
382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384 x_includes="$ac_optarg" ;;
386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388 ac_prev=x_libraries ;;
389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391 x_libraries="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c) ;;
443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452 # Only set these to C if already set. These must not be set unconditionally
453 # because not all systems understand e.g. LANG=C (notably SCO).
454 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455 # Non-C LC_CTYPE values break the ctype check.
456 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
457 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
459 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
468 ac_unique_file=Simulator/Aircraft/aircraft.c
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472 ac_srcdir_defaulted=yes
473 # Try the directory containing this script, then its parent.
475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478 if test ! -r $srcdir/$ac_unique_file; then
482 ac_srcdir_defaulted=no
484 if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 for ac_site_file in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
508 if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
512 echo "creating cache $cache_file"
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp='$CPP $CPPFLAGS'
519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521 cross_compiling=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532 ac_n= ac_c='\c' ac_t=
538 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
539 if test -f $ac_dir/install-sh; then
541 ac_install_sh="$ac_aux_dir/install-sh -c"
543 elif test -f $ac_dir/install.sh; then
545 ac_install_sh="$ac_aux_dir/install.sh -c"
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
556 # Find a good install program. We prefer a C program (faster),
557 # so one script is as good as another. But avoid the broken or
558 # incompatible versions:
559 # SysV /etc/install, /usr/sbin/install
560 # SunOS /usr/etc/install
563 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
564 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
565 # ./install, which can be erroneously created by make from ./install.sh.
566 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
567 echo "configure:568: checking for a BSD compatible install" >&5
568 if test -z "$INSTALL"; then
569 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
570 echo $ac_n "(cached) $ac_c" 1>&6
572 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
573 for ac_dir in $PATH; do
574 # Account for people who put trailing slashes in PATH elements.
576 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
578 # OSF1 and SCO ODT 3.0 have their own names for install.
579 for ac_prog in ginstall installbsd scoinst install; do
580 if test -f $ac_dir/$ac_prog; then
581 if test $ac_prog = install &&
582 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
583 # AIX install. It has an incompatible calling convention.
584 # OSF/1 installbsd also uses dspmsg, but is usable.
587 ac_cv_path_install="$ac_dir/$ac_prog -c"
598 if test "${ac_cv_path_install+set}" = set; then
599 INSTALL="$ac_cv_path_install"
601 # As a last resort, use the slow shell script. We don't cache a
602 # path for INSTALL within a source directory, because that will
603 # break other packages using the cache if that directory is
604 # removed, or if the path is relative.
605 INSTALL="$ac_install_sh"
608 echo "$ac_t""$INSTALL" 1>&6
610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
611 # It thinks the first close brace ends the variable substitution.
612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
614 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
619 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
620 echo "configure:621: checking whether build environment is sane" >&5
623 echo timestamp > conftestfile
624 # Do `set' in a subshell so we don't clobber the current shell's
625 # arguments. Must try -L first in case configure is actually a
626 # symlink; some systems play weird games with the mod time of symlinks
627 # (eg FreeBSD returns the mod time of the symlink's containing
630 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
631 if test "$*" = "X"; then
633 set X `ls -t $srcdir/configure conftestfile`
635 if test "$*" != "X $srcdir/configure conftestfile" \
636 && test "$*" != "X conftestfile $srcdir/configure"; then
638 # If neither matched, then we have a broken ls. This can happen
639 # if, for instance, CONFIG_SHELL is bash and it inherits a
640 # broken ls alias from the environment. This has actually
641 # happened. Such a system could not be considered "sane".
642 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
643 alias in your environment" 1>&2; exit 1; }
646 test "$2" = conftestfile
652 { echo "configure: error: newly created file is older than distributed files!
653 Check your system clock" 1>&2; exit 1; }
656 echo "$ac_t""yes" 1>&6
657 if test "$program_transform_name" = s,x,x,; then
658 program_transform_name=
660 # Double any \ or $. echo might interpret backslashes.
661 cat <<\EOF_SED > conftestsed
662 s,\\,\\\\,g; s,\$,$$,g
664 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
667 test "$program_prefix" != NONE &&
668 program_transform_name="s,^,${program_prefix},; $program_transform_name"
669 # Use a double $ so make ignores it.
670 test "$program_suffix" != NONE &&
671 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
673 # sed with no file args requires a program.
674 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
676 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
677 echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5
678 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
679 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
682 cat > conftestmake <<\EOF
684 @echo 'ac_maketemp="${MAKE}"'
686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
687 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
688 if test -n "$ac_maketemp"; then
689 eval ac_cv_prog_make_${ac_make}_set=yes
691 eval ac_cv_prog_make_${ac_make}_set=no
695 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
696 echo "$ac_t""yes" 1>&6
699 echo "$ac_t""no" 1>&6
700 SET_MAKE="MAKE=${MAKE-make}"
708 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
709 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
711 cat >> confdefs.h <<EOF
712 #define PACKAGE "$PACKAGE"
715 cat >> confdefs.h <<EOF
716 #define VERSION "$VERSION"
721 missing_dir=`cd $ac_aux_dir && pwd`
722 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
723 echo "configure:724: checking for working aclocal" >&5
724 # Run test in a subshell; some versions of sh will print an error if
725 # an executable is not found, even if stderr is redirected.
726 # Redirect stdin to placate older versions of autoconf. Sigh.
727 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
729 echo "$ac_t""found" 1>&6
731 ACLOCAL="$missing_dir/missing aclocal"
732 echo "$ac_t""missing" 1>&6
735 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
736 echo "configure:737: checking for working autoconf" >&5
737 # Run test in a subshell; some versions of sh will print an error if
738 # an executable is not found, even if stderr is redirected.
739 # Redirect stdin to placate older versions of autoconf. Sigh.
740 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
742 echo "$ac_t""found" 1>&6
744 AUTOCONF="$missing_dir/missing autoconf"
745 echo "$ac_t""missing" 1>&6
748 echo $ac_n "checking for working automake""... $ac_c" 1>&6
749 echo "configure:750: checking for working automake" >&5
750 # Run test in a subshell; some versions of sh will print an error if
751 # an executable is not found, even if stderr is redirected.
752 # Redirect stdin to placate older versions of autoconf. Sigh.
753 if (automake --version) < /dev/null > /dev/null 2>&1; then
755 echo "$ac_t""found" 1>&6
757 AUTOMAKE="$missing_dir/missing automake"
758 echo "$ac_t""missing" 1>&6
761 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
762 echo "configure:763: checking for working autoheader" >&5
763 # Run test in a subshell; some versions of sh will print an error if
764 # an executable is not found, even if stderr is redirected.
765 # Redirect stdin to placate older versions of autoconf. Sigh.
766 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
767 AUTOHEADER=autoheader
768 echo "$ac_t""found" 1>&6
770 AUTOHEADER="$missing_dir/missing autoheader"
771 echo "$ac_t""missing" 1>&6
774 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
775 echo "configure:776: checking for working makeinfo" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf. Sigh.
779 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
781 echo "$ac_t""found" 1>&6
783 MAKEINFO="$missing_dir/missing makeinfo"
784 echo "$ac_t""missing" 1>&6
790 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
791 echo "configure:792: checking whether ${MAKE-make} sets \${MAKE}" >&5
792 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
793 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
796 cat > conftestmake <<\EOF
798 @echo 'ac_maketemp="${MAKE}"'
800 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
801 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
802 if test -n "$ac_maketemp"; then
803 eval ac_cv_prog_make_${ac_make}_set=yes
805 eval ac_cv_prog_make_${ac_make}_set=no
809 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
810 echo "$ac_t""yes" 1>&6
813 echo "$ac_t""no" 1>&6
814 SET_MAKE="MAKE=${MAKE-make}"
817 # Extract the first word of "gcc", so it can be a program name with args.
818 set dummy gcc; ac_word=$2
819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820 echo "configure:821: checking for $ac_word" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
824 if test -n "$CC"; then
825 ac_cv_prog_CC="$CC" # Let the user override the test.
827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
828 for ac_dir in $PATH; do
829 test -z "$ac_dir" && ac_dir=.
830 if test -f $ac_dir/$ac_word; then
839 if test -n "$CC"; then
840 echo "$ac_t""$CC" 1>&6
842 echo "$ac_t""no" 1>&6
845 if test -z "$CC"; then
846 # Extract the first word of "cc", so it can be a program name with args.
847 set dummy cc; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 if test -n "$CC"; then
854 ac_cv_prog_CC="$CC" # Let the user override the test.
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
858 for ac_dir in $PATH; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
861 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
870 if test $ac_prog_rejected = yes; then
871 # We found a bogon in the path, so make sure we never use it.
872 set dummy $ac_cv_prog_CC
874 if test $# -gt 0; then
875 # We chose a different compiler from the bogus one.
876 # However, it has the same basename, so the bogon will be chosen
877 # first if we set CC to just the basename; use the full file name.
879 set dummy "$ac_dir/$ac_word" "$@"
887 if test -n "$CC"; then
888 echo "$ac_t""$CC" 1>&6
890 echo "$ac_t""no" 1>&6
893 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
901 ac_cpp='$CPP $CPPFLAGS'
902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
903 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
904 cross_compiling=$ac_cv_prog_cc_cross
906 cat > conftest.$ac_ext <<EOF
907 #line 908 "configure"
908 #include "confdefs.h"
911 if { (eval echo configure:912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
912 ac_cv_prog_cc_works=yes
913 # If we can't run a trivial program, we are probably using a cross compiler.
914 if (./conftest; exit) 2>/dev/null; then
915 ac_cv_prog_cc_cross=no
917 ac_cv_prog_cc_cross=yes
920 echo "configure: failed program was:" >&5
921 cat conftest.$ac_ext >&5
922 ac_cv_prog_cc_works=no
926 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
927 if test $ac_cv_prog_cc_works = no; then
928 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
930 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
931 echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
932 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
933 cross_compiling=$ac_cv_prog_cc_cross
935 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
936 echo "configure:937: checking whether we are using GNU C" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 cat > conftest.c <<EOF
945 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
952 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
954 if test $ac_cv_prog_gcc = yes; then
956 ac_test_CFLAGS="${CFLAGS+set}"
957 ac_save_CFLAGS="$CFLAGS"
959 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
960 echo "configure:961: checking whether ${CC-cc} accepts -g" >&5
961 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 echo 'void f(){}' > conftest.c
965 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
974 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
975 if test "$ac_test_CFLAGS" = set; then
976 CFLAGS="$ac_save_CFLAGS"
977 elif test $ac_cv_prog_cc_g = yes; then
984 test "${CFLAGS+set}" = set || CFLAGS="-g"
987 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
989 # Extract the first word of "$ac_prog", so it can be a program name with args.
990 set dummy $ac_prog; ac_word=$2
991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
992 echo "configure:993: checking for $ac_word" >&5
993 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
996 if test -n "$CXX"; then
997 ac_cv_prog_CXX="$CXX" # Let the user override the test.
999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1000 for ac_dir in $PATH; do
1001 test -z "$ac_dir" && ac_dir=.
1002 if test -f $ac_dir/$ac_word; then
1003 ac_cv_prog_CXX="$ac_prog"
1010 CXX="$ac_cv_prog_CXX"
1011 if test -n "$CXX"; then
1012 echo "$ac_t""$CXX" 1>&6
1014 echo "$ac_t""no" 1>&6
1017 test -n "$CXX" && break
1019 test -n "$CXX" || CXX="gcc"
1022 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1023 echo "configure:1024: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1026 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1027 ac_cpp='$CXXCPP $CPPFLAGS'
1028 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1029 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1030 cross_compiling=$ac_cv_prog_cxx_cross
1032 cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1037 if { (eval echo configure:1038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1038 ac_cv_prog_cxx_works=yes
1039 # If we can't run a trivial program, we are probably using a cross compiler.
1040 if (./conftest; exit) 2>/dev/null; then
1041 ac_cv_prog_cxx_cross=no
1043 ac_cv_prog_cxx_cross=yes
1046 echo "configure: failed program was:" >&5
1047 cat conftest.$ac_ext >&5
1048 ac_cv_prog_cxx_works=no
1052 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1053 ac_cpp='$CPP $CPPFLAGS'
1054 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1055 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1056 cross_compiling=$ac_cv_prog_cc_cross
1058 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1059 if test $ac_cv_prog_cxx_works = no; then
1060 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1062 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1063 echo "configure:1064: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1064 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1065 cross_compiling=$ac_cv_prog_cxx_cross
1067 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1068 echo "configure:1069: checking whether we are using GNU C++" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 cat > conftest.C <<EOF
1077 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1084 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1086 if test $ac_cv_prog_gxx = yes; then
1088 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1089 ac_save_CXXFLAGS="$CXXFLAGS"
1091 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1092 echo "configure:1093: checking whether ${CXX-g++} accepts -g" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 echo 'void f(){}' > conftest.cc
1097 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1098 ac_cv_prog_cxx_g=yes
1106 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1107 if test "$ac_test_CXXFLAGS" = set; then
1108 CXXFLAGS="$ac_save_CXXFLAGS"
1109 elif test $ac_cv_prog_cxx_g = yes; then
1116 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1119 # Find a good install program. We prefer a C program (faster),
1120 # so one script is as good as another. But avoid the broken or
1121 # incompatible versions:
1122 # SysV /etc/install, /usr/sbin/install
1123 # SunOS /usr/etc/install
1124 # IRIX /sbin/install
1126 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1127 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1128 # ./install, which can be erroneously created by make from ./install.sh.
1129 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1130 echo "configure:1131: checking for a BSD compatible install" >&5
1131 if test -z "$INSTALL"; then
1132 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1136 for ac_dir in $PATH; do
1137 # Account for people who put trailing slashes in PATH elements.
1139 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1141 # OSF1 and SCO ODT 3.0 have their own names for install.
1142 for ac_prog in ginstall installbsd scoinst install; do
1143 if test -f $ac_dir/$ac_prog; then
1144 if test $ac_prog = install &&
1145 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1146 # AIX install. It has an incompatible calling convention.
1147 # OSF/1 installbsd also uses dspmsg, but is usable.
1150 ac_cv_path_install="$ac_dir/$ac_prog -c"
1161 if test "${ac_cv_path_install+set}" = set; then
1162 INSTALL="$ac_cv_path_install"
1164 # As a last resort, use the slow shell script. We don't cache a
1165 # path for INSTALL within a source directory, because that will
1166 # break other packages using the cache if that directory is
1167 # removed, or if the path is relative.
1168 INSTALL="$ac_install_sh"
1171 echo "$ac_t""$INSTALL" 1>&6
1173 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1174 # It thinks the first close brace ends the variable substitution.
1175 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1177 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1179 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether ln -s works" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1185 if ln -s X conftestdata 2>/dev/null
1188 ac_cv_prog_LN_S="ln -s"
1193 LN_S="$ac_cv_prog_LN_S"
1194 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1195 echo "$ac_t""yes" 1>&6
1197 echo "$ac_t""no" 1>&6
1200 # Check whether --enable-shared or --disable-shared was given.
1201 if test "${enable_shared+set}" = set; then
1202 enableval="$enable_shared"
1203 p=${PACKAGE-default}
1204 case "$enableval" in
1205 yes) enable_shared=yes ;;
1206 no) enable_shared=no ;;
1209 # Look at the argument we got. We use all the common list separators.
1210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1211 for pkg in $enableval; do
1212 if test "X$pkg" = "X$p"; then
1223 # Check whether --enable-static or --disable-static was given.
1224 if test "${enable_static+set}" = set; then
1225 enableval="$enable_static"
1226 p=${PACKAGE-default}
1227 case "$enableval" in
1228 yes) enable_static=yes ;;
1229 no) enable_static=no ;;
1232 # Look at the argument we got. We use all the common list separators.
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1234 for pkg in $enableval; do
1235 if test "X$pkg" = "X$p"; then
1247 # Make sure we can run config.sub.
1248 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1249 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1252 echo $ac_n "checking host system type""... $ac_c" 1>&6
1253 echo "configure:1254: checking host system type" >&5
1256 case "$host_alias" in
1260 if host_alias=`$ac_config_guess`; then :
1261 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1263 *) host_alias=$nonopt ;;
1267 host=`$ac_config_sub $host_alias`
1268 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1269 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1270 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 echo "$ac_t""$host" 1>&6
1273 # Extract the first word of "ranlib", so it can be a program name with args.
1274 set dummy ranlib; ac_word=$2
1275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1276 echo "configure:1277: checking for $ac_word" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 if test -n "$RANLIB"; then
1281 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1284 for ac_dir in $PATH; do
1285 test -z "$ac_dir" && ac_dir=.
1286 if test -f $ac_dir/$ac_word; then
1287 ac_cv_prog_RANLIB="ranlib"
1292 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1295 RANLIB="$ac_cv_prog_RANLIB"
1296 if test -n "$RANLIB"; then
1297 echo "$ac_t""$RANLIB" 1>&6
1299 echo "$ac_t""no" 1>&6
1302 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1303 if test "${with_gnu_ld+set}" = set; then
1304 withval="$with_gnu_ld"
1305 test "$withval" = no || with_gnu_ld=yes
1312 if test "$ac_cv_prog_gcc" = yes; then
1313 # Check if gcc -print-prog-name=ld gives a path.
1314 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1315 echo "configure:1316: checking for ld used by GCC" >&5
1316 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1318 # Accept absolute paths.
1320 test -z "$LD" && LD="$ac_prog"
1323 # If it fails, then pretend we aren't using GCC.
1327 # If it is relative, then search for the first ld in PATH.
1331 elif test "$with_gnu_ld" = yes; then
1332 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1333 echo "configure:1334: checking for GNU ld" >&5
1335 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1336 echo "configure:1337: checking for non-GNU ld" >&5
1338 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1341 if test -z "$LD"; then
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1343 for ac_dir in $PATH; do
1344 test -z "$ac_dir" && ac_dir=.
1345 if test -f "$ac_dir/$ac_prog"; then
1346 ac_cv_path_LD="$ac_dir/$ac_prog"
1347 # Check to see if the program is GNU ld. I'd rather use --version,
1348 # but apparently some GNU ld's only accept -v.
1349 # Break only if it was the GNU/non-GNU ld that we prefer.
1350 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1351 test "$with_gnu_ld" != no && break
1353 test "$with_gnu_ld" != yes && break
1359 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1364 if test -n "$LD"; then
1365 echo "$ac_t""$LD" 1>&6
1367 echo "$ac_t""no" 1>&6
1369 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1371 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1372 echo "configure:1373: checking if the linker ($LD) is GNU ld" >&5
1373 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1376 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1377 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1378 ac_cv_prog_gnu_ld=yes
1380 ac_cv_prog_gnu_ld=no
1384 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1387 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1388 echo "configure:1389: checking for BSD-compatible nm" >&5
1389 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1394 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1398 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1399 test -z "$ac_dir" && ac_dir=.
1400 if test -f $ac_dir/nm; then
1401 # Check to see if the nm accepts a BSD-compat flag.
1402 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1403 # nm: unknown option "B" ignored
1404 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1405 ac_cv_path_NM="$ac_dir/nm -B"
1406 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1407 ac_cv_path_NM="$ac_dir/nm -p"
1409 ac_cv_path_NM="$ac_dir/nm"
1415 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1421 echo "$ac_t""$NM" 1>&6
1424 # Always use our own libtool.
1425 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1427 # Check for any special flags to pass to ltconfig.
1429 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1430 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1431 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1432 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1433 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1435 # Some flags need to be propagated to the compiler or linker for good
1439 # Find out which ABI we are using.
1440 echo '#line 1441 "configure"' > conftest.$ac_ext
1441 if { (eval echo configure:1442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1442 case "`/usr/bin/file conftest.o`" in
1458 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1459 CFLAGS="$CFLAGS -belf"
1463 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1464 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1465 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1466 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1467 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1468 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1471 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1472 echo "configure:1473: checking whether to enable maintainer-specific portions of Makefiles" >&5
1473 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1474 if test "${enable_maintainer_mode+set}" = set; then
1475 enableval="$enable_maintainer_mode"
1476 USE_MAINTAINER_MODE=$enableval
1478 USE_MAINTAINER_MODE=no
1481 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1482 if test $USE_MAINTAINER_MODE = yes; then
1490 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1491 echo "configure:1492: checking for Cygwin32 environment" >&5
1492 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1495 cat > conftest.$ac_ext <<EOF
1496 #line 1497 "configure"
1497 #include "confdefs.h"
1500 return __CYGWIN32__;
1503 if { (eval echo configure:1504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1507 echo "configure: failed program was:" >&5
1508 cat conftest.$ac_ext >&5
1516 echo "$ac_t""$am_cv_cygwin32" 1>&6
1518 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1520 if test "x$am_cv_cygwin32" = "xyes" ; then
1521 echo "checking for extra include and lib directories..." 1>&6
1522 exdirs="$prefix /store /usr/local /local /user/local /usr/share \
1523 /usr/X11R6 /opt/X11R6 `pwd`/Win32"
1526 if test "$subexdirs" = "" ; then
1529 for subexdir in $subexdirs ; do
1530 if test "$subexdir" = "-" ; then
1533 subexdir="/$subexdir"
1535 for exdir in $exdirs ; do
1536 if test "$exdir" != "/usr" || test "$subexdir" != ""; then
1537 incdir="${exdir}/include${subexdir}"
1540 if test -r $incdir ; then
1543 # echo " + already had $incdir" 1>&6
1546 if test "$CPPFLAGS" = "" ; then
1547 CPPFLAGS="-I$incdir"
1549 CPPFLAGS="$CPPFLAGS -I$incdir"
1551 echo " + found $incdir" 1>&6
1557 libdir="${exdir}/lib${subexdir}"
1560 if test -r $libdir ; then
1563 # echo " + already had $libdir" 1>&6
1566 if test "$LDFLAGS" = "" ; then
1569 LDFLAGS="$LDFLAGS -L$libdir"
1571 echo " + found $libdir" 1>&6
1577 progdir="${exdir}/bin${subexdirr}"
1580 if test -r $progdir ; then
1583 # echo " + already had $progdir" 1>&6
1586 # echo " + already had $progdir" 1>&6
1589 if test "$PATH" = "" ; then
1592 PATH="$PATH:$progdir"
1594 echo " + found $progdir" 1>&6
1604 echo "checking for extra include and lib directories..." 1>&6
1605 exdirs="$prefix /store /usr/local /local /user/local /usr/share \
1606 /usr/X11R6 /opt/X11R6"
1609 if test "$subexdirs" = "" ; then
1612 for subexdir in $subexdirs ; do
1613 if test "$subexdir" = "-" ; then
1616 subexdir="/$subexdir"
1618 for exdir in $exdirs ; do
1619 if test "$exdir" != "/usr" || test "$subexdir" != ""; then
1620 incdir="${exdir}/include${subexdir}"
1623 if test -r $incdir ; then
1626 # echo " + already had $incdir" 1>&6
1629 if test "$CPPFLAGS" = "" ; then
1630 CPPFLAGS="-I$incdir"
1632 CPPFLAGS="$CPPFLAGS -I$incdir"
1634 echo " + found $incdir" 1>&6
1640 libdir="${exdir}/lib${subexdir}"
1643 if test -r $libdir ; then
1646 # echo " + already had $libdir" 1>&6
1649 if test "$LDFLAGS" = "" ; then
1652 LDFLAGS="$LDFLAGS -L$libdir"
1654 echo " + found $libdir" 1>&6
1660 progdir="${exdir}/bin${subexdirr}"
1663 if test -r $progdir ; then
1666 # echo " + already had $progdir" 1>&6
1669 # echo " + already had $progdir" 1>&6
1672 if test "$PATH" = "" ; then
1675 PATH="$PATH:$progdir"
1677 echo " + found $progdir" 1>&6
1688 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1689 echo "configure:1690: checking how to run the C preprocessor" >&5
1690 # On Suns, sometimes $CPP names a directory.
1691 if test -n "$CPP" && test -d "$CPP"; then
1694 if test -z "$CPP"; then
1695 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 # This must be in double quotes, not single quotes, because CPP may get
1699 # substituted into the Makefile and "${CC-cc}" will confuse make.
1701 # On the NeXT, cc -E runs the code through the compiler's parser,
1702 # not just through cpp.
1703 cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1710 { (eval echo configure:1711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1711 ac_err=`grep -v '^ *+' conftest.out`
1712 if test -z "$ac_err"; then
1716 echo "configure: failed program was:" >&5
1717 cat conftest.$ac_ext >&5
1719 CPP="${CC-cc} -E -traditional-cpp"
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1727 { (eval echo configure:1728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1728 ac_err=`grep -v '^ *+' conftest.out`
1729 if test -z "$ac_err"; then
1733 echo "configure: failed program was:" >&5
1734 cat conftest.$ac_ext >&5
1741 ac_cv_prog_CPP="$CPP"
1743 CPP="$ac_cv_prog_CPP"
1745 ac_cv_prog_CPP="$CPP"
1747 echo "$ac_t""$CPP" 1>&6
1749 # If we find X, set shell vars x_includes and x_libraries to the
1750 # paths, otherwise set no_x=yes.
1751 # Uses ac_ vars as temps to allow command line to override cache and checks.
1752 # --without-x overrides everything else, but does not touch the cache.
1753 echo $ac_n "checking for X""... $ac_c" 1>&6
1754 echo "configure:1755: checking for X" >&5
1756 # Check whether --with-x or --without-x was given.
1757 if test "${with_x+set}" = set; then
1762 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1763 if test "x$with_x" = xno; then
1764 # The user explicitly disabled X.
1767 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1768 # Both variables are already set.
1771 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 # One or both of the vars are not set, and there is no cached value.
1775 ac_x_includes=NO ac_x_libraries=NO
1777 if mkdir conftestdir; then
1779 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1780 cat > Imakefile <<'EOF'
1782 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1784 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1786 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1787 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1788 for ac_extension in a so sl; do
1789 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1790 test -f $ac_im_libdir/libX11.$ac_extension; then
1791 ac_im_usrlibdir=$ac_im_libdir; break
1794 # Screen out bogus values from the imake configuration. They are
1795 # bogus both because they are the default anyway, and because
1796 # using them would break gcc on systems where it needs fixed includes.
1797 case "$ac_im_incroot" in
1799 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1801 case "$ac_im_usrlibdir" in
1803 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1810 if test "$ac_x_includes" = NO; then
1811 # Guess where to find include files, by looking for this one X11 .h file.
1812 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1814 # First, try using that file with no special directory specified.
1815 cat > conftest.$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1818 #include <$x_direct_test_include>
1820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err=`grep -v '^ *+' conftest.out`
1823 if test -z "$ac_err"; then
1825 # We can compile using X headers with no special include directory.
1829 echo "configure: failed program was:" >&5
1830 cat conftest.$ac_ext >&5
1832 # Look for the header file in a standard set of common directories.
1833 # Check X11 before X11Rn because it is often a symlink to the current release.
1836 /usr/X11R6/include \
1837 /usr/X11R5/include \
1838 /usr/X11R4/include \
1841 /usr/include/X11R6 \
1842 /usr/include/X11R5 \
1843 /usr/include/X11R4 \
1845 /usr/local/X11/include \
1846 /usr/local/X11R6/include \
1847 /usr/local/X11R5/include \
1848 /usr/local/X11R4/include \
1850 /usr/local/include/X11 \
1851 /usr/local/include/X11R6 \
1852 /usr/local/include/X11R5 \
1853 /usr/local/include/X11R4 \
1857 /usr/XFree86/include/X11 \
1860 /usr/local/include \
1861 /usr/unsupported/include \
1862 /usr/athena/include \
1863 /usr/local/x11r5/include \
1864 /usr/lpp/Xamples/include \
1866 /usr/openwin/include \
1867 /usr/openwin/share/include \
1870 if test -r "$ac_dir/$x_direct_test_include"; then
1871 ac_x_includes=$ac_dir
1877 fi # $ac_x_includes = NO
1879 if test "$ac_x_libraries" = NO; then
1880 # Check for the libraries.
1882 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1883 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1885 # See if we find them without any special options.
1886 # Don't add to $LIBS permanently.
1887 ac_save_LIBS="$LIBS"
1888 LIBS="-l$x_direct_test_library $LIBS"
1889 cat > conftest.$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1894 ${x_direct_test_function}()
1897 if { (eval echo configure:1898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1899 LIBS="$ac_save_LIBS"
1900 # We can link X programs with no special library path.
1903 echo "configure: failed program was:" >&5
1904 cat conftest.$ac_ext >&5
1906 LIBS="$ac_save_LIBS"
1907 # First see if replacing the include by lib works.
1908 # Check X11 before X11Rn because it is often a symlink to the current release.
1909 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1920 /usr/local/X11/lib \
1921 /usr/local/X11R6/lib \
1922 /usr/local/X11R5/lib \
1923 /usr/local/X11R4/lib \
1925 /usr/local/lib/X11 \
1926 /usr/local/lib/X11R6 \
1927 /usr/local/lib/X11R5 \
1928 /usr/local/lib/X11R4 \
1932 /usr/XFree86/lib/X11 \
1936 /usr/unsupported/lib \
1938 /usr/local/x11r5/lib \
1939 /usr/lpp/Xamples/lib \
1943 /usr/openwin/share/lib \
1946 for ac_extension in a so sl; do
1947 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1948 ac_x_libraries=$ac_dir
1955 fi # $ac_x_libraries = NO
1957 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1958 # Didn't find X anywhere. Cache the known absence of X.
1959 ac_cv_have_x="have_x=no"
1961 # Record where we found X for the cache.
1962 ac_cv_have_x="have_x=yes \
1963 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1967 eval "$ac_cv_have_x"
1970 if test "$have_x" != yes; then
1971 echo "$ac_t""$have_x" 1>&6
1974 # If each of the values was on the command line, it overrides each guess.
1975 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1976 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1977 # Update the cache value to reflect the command line values.
1978 ac_cv_have_x="have_x=yes \
1979 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1980 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1983 if test "$no_x" = yes; then
1984 # Not all programs may use this symbol, but it does not hurt to define it.
1985 cat >> confdefs.h <<\EOF
1986 #define X_DISPLAY_MISSING 1
1989 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1991 if test -n "$x_includes"; then
1992 X_CFLAGS="$X_CFLAGS -I$x_includes"
1995 # It would also be nice to do this for all -L options, not just this one.
1996 if test -n "$x_libraries"; then
1997 X_LIBS="$X_LIBS -L$x_libraries"
1998 # For Solaris; some versions of Sun CC require a space after -R and
1999 # others require no space. Words are not sufficient . . . .
2000 case "`(uname -sr) 2>/dev/null`" in
2002 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2003 echo "configure:2004: checking whether -R must be followed by a space" >&5
2004 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
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; then
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2023 if test $ac_R_nospace = yes; then
2024 echo "$ac_t""no" 1>&6
2025 X_LIBS="$X_LIBS -R$x_libraries"
2027 LIBS="$ac_xsave_LIBS -R $x_libraries"
2028 cat > conftest.$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2036 if { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2040 echo "configure: failed program was:" >&5
2041 cat conftest.$ac_ext >&5
2046 if test $ac_R_space = yes; then
2047 echo "$ac_t""yes" 1>&6
2048 X_LIBS="$X_LIBS -R $x_libraries"
2050 echo "$ac_t""neither works" 1>&6
2053 LIBS="$ac_xsave_LIBS"
2057 # Check for system-dependent libraries X programs must link with.
2058 # Do this before checking for the system-independent R6 libraries
2059 # (-lICE), since we may need -lsocket or whatever for X linking.
2061 if test "$ISC" = yes; then
2062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2064 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2065 # libraries were built with DECnet support. And karl@cs.umb.edu says
2066 # the Alpha needs dnet_stub (dnet does not exist).
2067 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2068 echo "configure:2069: checking for dnet_ntoa in -ldnet" >&5
2069 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 ac_save_LIBS="$LIBS"
2075 cat > conftest.$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 /* Override any gcc2 internal prototype to avoid an error. */
2079 /* We use char because int might match the return type of a gcc2
2080 builtin and then its argument prototype would still apply. */
2087 if { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2089 eval "ac_cv_lib_$ac_lib_var=yes"
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2094 eval "ac_cv_lib_$ac_lib_var=no"
2097 LIBS="$ac_save_LIBS"
2100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2102 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2104 echo "$ac_t""no" 1>&6
2107 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2108 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2109 echo "configure:2110: checking for dnet_ntoa in -ldnet_stub" >&5
2110 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2114 ac_save_LIBS="$LIBS"
2115 LIBS="-ldnet_stub $LIBS"
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2119 /* Override any gcc2 internal prototype to avoid an error. */
2120 /* We use char because int might match the return type of a gcc2
2121 builtin and then its argument prototype would still apply. */
2128 if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2130 eval "ac_cv_lib_$ac_lib_var=yes"
2132 echo "configure: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2135 eval "ac_cv_lib_$ac_lib_var=no"
2138 LIBS="$ac_save_LIBS"
2141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2142 echo "$ac_t""yes" 1>&6
2143 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2145 echo "$ac_t""no" 1>&6
2150 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2151 # to get the SysV transport functions.
2152 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2154 # The nsl library prevents programs from opening the X display
2155 # on Irix 5.2, according to dickey@clark.net.
2156 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2157 echo "configure:2158: checking for gethostbyname" >&5
2158 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2161 cat > conftest.$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2164 /* System header to define __stub macros and hopefully few prototypes,
2165 which can conflict with char gethostbyname(); below. */
2167 /* Override any gcc2 internal prototype to avoid an error. */
2168 /* We use char because int might match the return type of a gcc2
2169 builtin and then its argument prototype would still apply. */
2170 char gethostbyname();
2174 /* The GNU C library defines this for functions which it implements
2175 to always fail with ENOSYS. Some functions are actually named
2176 something starting with __ and the normal name is an alias. */
2177 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2185 if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2187 eval "ac_cv_func_gethostbyname=yes"
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2192 eval "ac_cv_func_gethostbyname=no"
2197 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2198 echo "$ac_t""yes" 1>&6
2201 echo "$ac_t""no" 1>&6
2204 if test $ac_cv_func_gethostbyname = no; then
2205 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2206 echo "configure:2207: checking for gethostbyname in -lnsl" >&5
2207 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2211 ac_save_LIBS="$LIBS"
2213 cat > conftest.$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2216 /* Override any gcc2 internal prototype to avoid an error. */
2217 /* We use char because int might match the return type of a gcc2
2218 builtin and then its argument prototype would still apply. */
2219 char gethostbyname();
2225 if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2227 eval "ac_cv_lib_$ac_lib_var=yes"
2229 echo "configure: failed program was:" >&5
2230 cat conftest.$ac_ext >&5
2232 eval "ac_cv_lib_$ac_lib_var=no"
2235 LIBS="$ac_save_LIBS"
2238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2239 echo "$ac_t""yes" 1>&6
2240 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2242 echo "$ac_t""no" 1>&6
2247 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2248 # socket/setsockopt and other routines are undefined under SCO ODT
2249 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2250 # on later versions), says simon@lia.di.epfl.ch: it contains
2251 # gethostby* variants that don't use the nameserver (or something).
2252 # -lsocket must be given before -lnsl if both are needed.
2253 # We assume that if connect needs -lnsl, so does gethostbyname.
2254 echo $ac_n "checking for connect""... $ac_c" 1>&6
2255 echo "configure:2256: checking for connect" >&5
2256 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 /* System header to define __stub macros and hopefully few prototypes,
2263 which can conflict with char connect(); below. */
2265 /* Override any gcc2 internal prototype to avoid an error. */
2266 /* We use char because int might match the return type of a gcc2
2267 builtin and then its argument prototype would still apply. */
2272 /* The GNU C library defines this for functions which it implements
2273 to always fail with ENOSYS. Some functions are actually named
2274 something starting with __ and the normal name is an alias. */
2275 #if defined (__stub_connect) || defined (__stub___connect)
2283 if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2285 eval "ac_cv_func_connect=yes"
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2290 eval "ac_cv_func_connect=no"
2295 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2296 echo "$ac_t""yes" 1>&6
2299 echo "$ac_t""no" 1>&6
2302 if test $ac_cv_func_connect = no; then
2303 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2304 echo "configure:2305: checking for connect in -lsocket" >&5
2305 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 ac_save_LIBS="$LIBS"
2310 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2311 cat > conftest.$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2314 /* Override any gcc2 internal prototype to avoid an error. */
2315 /* We use char because int might match the return type of a gcc2
2316 builtin and then its argument prototype would still apply. */
2323 if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2325 eval "ac_cv_lib_$ac_lib_var=yes"
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2330 eval "ac_cv_lib_$ac_lib_var=no"
2333 LIBS="$ac_save_LIBS"
2336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2337 echo "$ac_t""yes" 1>&6
2338 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2340 echo "$ac_t""no" 1>&6
2345 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2346 echo $ac_n "checking for remove""... $ac_c" 1>&6
2347 echo "configure:2348: checking for remove" >&5
2348 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2354 /* System header to define __stub macros and hopefully few prototypes,
2355 which can conflict with char remove(); below. */
2357 /* Override any gcc2 internal prototype to avoid an error. */
2358 /* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2364 /* The GNU C library defines this for functions which it implements
2365 to always fail with ENOSYS. Some functions are actually named
2366 something starting with __ and the normal name is an alias. */
2367 #if defined (__stub_remove) || defined (__stub___remove)
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2377 eval "ac_cv_func_remove=yes"
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2382 eval "ac_cv_func_remove=no"
2387 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2388 echo "$ac_t""yes" 1>&6
2391 echo "$ac_t""no" 1>&6
2394 if test $ac_cv_func_remove = no; then
2395 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2396 echo "configure:2397: checking for remove in -lposix" >&5
2397 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 ac_save_LIBS="$LIBS"
2402 LIBS="-lposix $LIBS"
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 /* Override any gcc2 internal prototype to avoid an error. */
2407 /* We use char because int might match the return type of a gcc2
2408 builtin and then its argument prototype would still apply. */
2415 if { (eval echo configure:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2417 eval "ac_cv_lib_$ac_lib_var=yes"
2419 echo "configure: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2422 eval "ac_cv_lib_$ac_lib_var=no"
2425 LIBS="$ac_save_LIBS"
2428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2429 echo "$ac_t""yes" 1>&6
2430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2432 echo "$ac_t""no" 1>&6
2437 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2438 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2439 echo "configure:2440: checking for shmat" >&5
2440 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446 /* System header to define __stub macros and hopefully few prototypes,
2447 which can conflict with char shmat(); below. */
2449 /* Override any gcc2 internal prototype to avoid an error. */
2450 /* We use char because int might match the return type of a gcc2
2451 builtin and then its argument prototype would still apply. */
2456 /* The GNU C library defines this for functions which it implements
2457 to always fail with ENOSYS. Some functions are actually named
2458 something starting with __ and the normal name is an alias. */
2459 #if defined (__stub_shmat) || defined (__stub___shmat)
2467 if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2469 eval "ac_cv_func_shmat=yes"
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2474 eval "ac_cv_func_shmat=no"
2479 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2480 echo "$ac_t""yes" 1>&6
2483 echo "$ac_t""no" 1>&6
2486 if test $ac_cv_func_shmat = no; then
2487 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2488 echo "configure:2489: checking for shmat in -lipc" >&5
2489 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2493 ac_save_LIBS="$LIBS"
2495 cat > conftest.$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2498 /* Override any gcc2 internal prototype to avoid an error. */
2499 /* We use char because int might match the return type of a gcc2
2500 builtin and then its argument prototype would still apply. */
2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2509 eval "ac_cv_lib_$ac_lib_var=yes"
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2514 eval "ac_cv_lib_$ac_lib_var=no"
2517 LIBS="$ac_save_LIBS"
2520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2521 echo "$ac_t""yes" 1>&6
2522 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2524 echo "$ac_t""no" 1>&6
2530 # Check for libraries that X11R6 Xt/Xaw programs need.
2531 ac_save_LDFLAGS="$LDFLAGS"
2532 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2533 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2534 # check for ICE first), but we must link in the order -lSM -lICE or
2535 # we get undefined symbols. So assume we have SM if we have ICE.
2536 # These have to be linked with before -lX11, unlike the other
2537 # libraries we check for below, so use a different variable.
2538 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2539 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2540 echo "configure:2541: checking for IceConnectionNumber in -lICE" >&5
2541 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 ac_save_LIBS="$LIBS"
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 /* Override any gcc2 internal prototype to avoid an error. */
2551 /* We use char because int might match the return type of a gcc2
2552 builtin and then its argument prototype would still apply. */
2553 char IceConnectionNumber();
2556 IceConnectionNumber()
2559 if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2561 eval "ac_cv_lib_$ac_lib_var=yes"
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2566 eval "ac_cv_lib_$ac_lib_var=no"
2569 LIBS="$ac_save_LIBS"
2572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2574 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2576 echo "$ac_t""no" 1>&6
2579 LDFLAGS="$ac_save_LDFLAGS"
2585 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
2586 echo "configure:2587: checking for cos in -lm" >&5
2587 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
2588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2591 ac_save_LIBS="$LIBS"
2593 cat > conftest.$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2596 /* Override any gcc2 internal prototype to avoid an error. */
2597 /* We use char because int might match the return type of a gcc2
2598 builtin and then its argument prototype would still apply. */
2605 if { (eval echo configure:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2607 eval "ac_cv_lib_$ac_lib_var=yes"
2609 echo "configure: failed program was:" >&5
2610 cat conftest.$ac_ext >&5
2612 eval "ac_cv_lib_$ac_lib_var=no"
2615 LIBS="$ac_save_LIBS"
2618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2619 echo "$ac_t""yes" 1>&6
2620 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2621 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2622 cat >> confdefs.h <<EOF
2623 #define $ac_tr_lib 1
2629 echo "$ac_t""no" 1>&6
2632 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2633 echo "configure:2634: checking for socket in -lsocket" >&5
2634 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 ac_save_LIBS="$LIBS"
2639 LIBS="-lsocket $LIBS"
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2643 /* Override any gcc2 internal prototype to avoid an error. */
2644 /* We use char because int might match the return type of a gcc2
2645 builtin and then its argument prototype would still apply. */
2652 if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2654 eval "ac_cv_lib_$ac_lib_var=yes"
2656 echo "configure: failed program was:" >&5
2657 cat conftest.$ac_ext >&5
2659 eval "ac_cv_lib_$ac_lib_var=no"
2662 LIBS="$ac_save_LIBS"
2665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2666 echo "$ac_t""yes" 1>&6
2667 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2668 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2669 cat >> confdefs.h <<EOF
2670 #define $ac_tr_lib 1
2673 LIBS="-lsocket $LIBS"
2676 echo "$ac_t""no" 1>&6
2679 echo $ac_n "checking for XCreateWindow in -lX11""... $ac_c" 1>&6
2680 echo "configure:2681: checking for XCreateWindow in -lX11" >&5
2681 ac_lib_var=`echo X11'_'XCreateWindow | sed 'y%./+-%__p_%'`
2682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 ac_save_LIBS="$LIBS"
2687 cat > conftest.$ac_ext <<EOF
2688 #line 2689 "configure"
2689 #include "confdefs.h"
2690 /* Override any gcc2 internal prototype to avoid an error. */
2691 /* We use char because int might match the return type of a gcc2
2692 builtin and then its argument prototype would still apply. */
2693 char XCreateWindow();
2699 if { (eval echo configure:2700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2701 eval "ac_cv_lib_$ac_lib_var=yes"
2703 echo "configure: failed program was:" >&5
2704 cat conftest.$ac_ext >&5
2706 eval "ac_cv_lib_$ac_lib_var=no"
2709 LIBS="$ac_save_LIBS"
2712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2713 echo "$ac_t""yes" 1>&6
2714 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2715 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2716 cat >> confdefs.h <<EOF
2717 #define $ac_tr_lib 1
2723 echo "$ac_t""no" 1>&6
2726 echo $ac_n "checking for XShmCreateImage in -lXext""... $ac_c" 1>&6
2727 echo "configure:2728: checking for XShmCreateImage in -lXext" >&5
2728 ac_lib_var=`echo Xext'_'XShmCreateImage | sed 'y%./+-%__p_%'`
2729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2732 ac_save_LIBS="$LIBS"
2734 cat > conftest.$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2737 /* Override any gcc2 internal prototype to avoid an error. */
2738 /* We use char because int might match the return type of a gcc2
2739 builtin and then its argument prototype would still apply. */
2740 char XShmCreateImage();
2746 if { (eval echo configure:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2748 eval "ac_cv_lib_$ac_lib_var=yes"
2750 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2753 eval "ac_cv_lib_$ac_lib_var=no"
2756 LIBS="$ac_save_LIBS"
2759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2760 echo "$ac_t""yes" 1>&6
2761 ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2762 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2763 cat >> confdefs.h <<EOF
2764 #define $ac_tr_lib 1
2770 echo "$ac_t""no" 1>&6
2773 echo $ac_n "checking for XGetExtensionVersion in -lXi""... $ac_c" 1>&6
2774 echo "configure:2775: checking for XGetExtensionVersion in -lXi" >&5
2775 ac_lib_var=`echo Xi'_'XGetExtensionVersion | sed 'y%./+-%__p_%'`
2776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 ac_save_LIBS="$LIBS"
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2784 /* Override any gcc2 internal prototype to avoid an error. */
2785 /* We use char because int might match the return type of a gcc2
2786 builtin and then its argument prototype would still apply. */
2787 char XGetExtensionVersion();
2790 XGetExtensionVersion()
2793 if { (eval echo configure:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2795 eval "ac_cv_lib_$ac_lib_var=yes"
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2800 eval "ac_cv_lib_$ac_lib_var=no"
2803 LIBS="$ac_save_LIBS"
2806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2807 echo "$ac_t""yes" 1>&6
2808 ac_tr_lib=HAVE_LIB`echo Xi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2809 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2810 cat >> confdefs.h <<EOF
2811 #define $ac_tr_lib 1
2817 echo "$ac_t""no" 1>&6
2820 echo $ac_n "checking for IceOpenConnection in -lICE""... $ac_c" 1>&6
2821 echo "configure:2822: checking for IceOpenConnection in -lICE" >&5
2822 ac_lib_var=`echo ICE'_'IceOpenConnection | sed 'y%./+-%__p_%'`
2823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2826 ac_save_LIBS="$LIBS"
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 /* Override any gcc2 internal prototype to avoid an error. */
2832 /* We use char because int might match the return type of a gcc2
2833 builtin and then its argument prototype would still apply. */
2834 char IceOpenConnection();
2840 if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2842 eval "ac_cv_lib_$ac_lib_var=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2847 eval "ac_cv_lib_$ac_lib_var=no"
2850 LIBS="$ac_save_LIBS"
2853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2855 ac_tr_lib=HAVE_LIB`echo ICE | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2856 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2857 cat >> confdefs.h <<EOF
2858 #define $ac_tr_lib 1
2864 echo "$ac_t""no" 1>&6
2867 echo $ac_n "checking for SmcOpenConnection in -lSM""... $ac_c" 1>&6
2868 echo "configure:2869: checking for SmcOpenConnection in -lSM" >&5
2869 ac_lib_var=`echo SM'_'SmcOpenConnection | sed 'y%./+-%__p_%'`
2870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 ac_save_LIBS="$LIBS"
2875 cat > conftest.$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2878 /* Override any gcc2 internal prototype to avoid an error. */
2879 /* We use char because int might match the return type of a gcc2
2880 builtin and then its argument prototype would still apply. */
2881 char SmcOpenConnection();
2887 if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2889 eval "ac_cv_lib_$ac_lib_var=yes"
2891 echo "configure: failed program was:" >&5
2892 cat conftest.$ac_ext >&5
2894 eval "ac_cv_lib_$ac_lib_var=no"
2897 LIBS="$ac_save_LIBS"
2900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2901 echo "$ac_t""yes" 1>&6
2902 ac_tr_lib=HAVE_LIB`echo SM | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2903 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2904 cat >> confdefs.h <<EOF
2905 #define $ac_tr_lib 1
2911 echo "$ac_t""no" 1>&6
2914 echo $ac_n "checking for XtMalloc in -lXt""... $ac_c" 1>&6
2915 echo "configure:2916: checking for XtMalloc in -lXt" >&5
2916 ac_lib_var=`echo Xt'_'XtMalloc | sed 'y%./+-%__p_%'`
2917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 ac_save_LIBS="$LIBS"
2922 cat > conftest.$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2925 /* Override any gcc2 internal prototype to avoid an error. */
2926 /* We use char because int might match the return type of a gcc2
2927 builtin and then its argument prototype would still apply. */
2934 if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2936 eval "ac_cv_lib_$ac_lib_var=yes"
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2941 eval "ac_cv_lib_$ac_lib_var=no"
2944 LIBS="$ac_save_LIBS"
2947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2948 echo "$ac_t""yes" 1>&6
2949 ac_tr_lib=HAVE_LIB`echo Xt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2950 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2951 cat >> confdefs.h <<EOF
2952 #define $ac_tr_lib 1
2958 echo "$ac_t""no" 1>&6
2961 echo $ac_n "checking for XmuLookupStandardColormap in -lXmu""... $ac_c" 1>&6
2962 echo "configure:2963: checking for XmuLookupStandardColormap in -lXmu" >&5
2963 ac_lib_var=`echo Xmu'_'XmuLookupStandardColormap | sed 'y%./+-%__p_%'`
2964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2967 ac_save_LIBS="$LIBS"
2969 cat > conftest.$ac_ext <<EOF
2970 #line 2971 "configure"
2971 #include "confdefs.h"
2972 /* Override any gcc2 internal prototype to avoid an error. */
2973 /* We use char because int might match the return type of a gcc2
2974 builtin and then its argument prototype would still apply. */
2975 char XmuLookupStandardColormap();
2978 XmuLookupStandardColormap()
2981 if { (eval echo configure:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2983 eval "ac_cv_lib_$ac_lib_var=yes"
2985 echo "configure: failed program was:" >&5
2986 cat conftest.$ac_ext >&5
2988 eval "ac_cv_lib_$ac_lib_var=no"
2991 LIBS="$ac_save_LIBS"
2994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2995 echo "$ac_t""yes" 1>&6
2996 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2997 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2998 cat >> confdefs.h <<EOF
2999 #define $ac_tr_lib 1
3005 echo "$ac_t""no" 1>&6
3009 echo $ac_n "checking for glNewList in -lGLcore""... $ac_c" 1>&6
3010 echo "configure:3011: checking for glNewList in -lGLcore" >&5
3011 ac_lib_var=`echo GLcore'_'glNewList | sed 'y%./+-%__p_%'`
3012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 ac_save_LIBS="$LIBS"
3016 LIBS="-lGLcore $LIBS"
3017 cat > conftest.$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3020 /* Override any gcc2 internal prototype to avoid an error. */
3021 /* We use char because int might match the return type of a gcc2
3022 builtin and then its argument prototype would still apply. */
3029 if { (eval echo configure:3030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3031 eval "ac_cv_lib_$ac_lib_var=yes"
3033 echo "configure: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3036 eval "ac_cv_lib_$ac_lib_var=no"
3039 LIBS="$ac_save_LIBS"
3042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3043 echo "$ac_t""yes" 1>&6
3044 ac_tr_lib=HAVE_LIB`echo GLcore | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3045 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3046 cat >> confdefs.h <<EOF
3047 #define $ac_tr_lib 1
3050 LIBS="-lGLcore $LIBS"
3053 echo "$ac_t""no" 1>&6
3056 if test "x$ac_cv_lib_GLcore_glNewList" = "xno" ; then
3057 echo $ac_n "checking for glNewList in -lGL""... $ac_c" 1>&6
3058 echo "configure:3059: checking for glNewList in -lGL" >&5
3059 ac_lib_var=`echo GL'_'glNewList | sed 'y%./+-%__p_%'`
3060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 ac_save_LIBS="$LIBS"
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 /* Override any gcc2 internal prototype to avoid an error. */
3069 /* We use char because int might match the return type of a gcc2
3070 builtin and then its argument prototype would still apply. */
3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3079 eval "ac_cv_lib_$ac_lib_var=yes"
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3084 eval "ac_cv_lib_$ac_lib_var=no"
3087 LIBS="$ac_save_LIBS"
3090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 ac_tr_lib=HAVE_LIB`echo GL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3093 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3094 cat >> confdefs.h <<EOF
3095 #define $ac_tr_lib 1
3101 echo "$ac_t""no" 1>&6
3104 if test "x$ac_cv_lib_GL_glNewList" = "xno" ; then
3105 echo $ac_n "checking for glNewList in -lMesaGL""... $ac_c" 1>&6
3106 echo "configure:3107: checking for glNewList in -lMesaGL" >&5
3107 ac_lib_var=`echo MesaGL'_'glNewList | sed 'y%./+-%__p_%'`
3108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 ac_save_LIBS="$LIBS"
3112 LIBS="-lMesaGL $LIBS"
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 /* Override any gcc2 internal prototype to avoid an error. */
3117 /* We use char because int might match the return type of a gcc2
3118 builtin and then its argument prototype would still apply. */
3125 if { (eval echo configure:3126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3127 eval "ac_cv_lib_$ac_lib_var=yes"
3129 echo "configure: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3132 eval "ac_cv_lib_$ac_lib_var=no"
3135 LIBS="$ac_save_LIBS"
3138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3139 echo "$ac_t""yes" 1>&6
3140 ac_tr_lib=HAVE_LIB`echo MesaGL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3141 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3142 cat >> confdefs.h <<EOF
3143 #define $ac_tr_lib 1
3146 LIBS="-lMesaGL $LIBS"
3149 echo "$ac_t""no" 1>&6
3154 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3155 echo "configure:3156: checking for glXCreateContext in -lGL" >&5
3156 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3158 echo $ac_n "(cached) $ac_c" 1>&6
3160 ac_save_LIBS="$LIBS"
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 /* Override any gcc2 internal prototype to avoid an error. */
3166 /* We use char because int might match the return type of a gcc2
3167 builtin and then its argument prototype would still apply. */
3168 char glXCreateContext();
3174 if { (eval echo configure:3175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3176 eval "ac_cv_lib_$ac_lib_var=yes"
3178 echo "configure: failed program was:" >&5
3179 cat conftest.$ac_ext >&5
3181 eval "ac_cv_lib_$ac_lib_var=no"
3184 LIBS="$ac_save_LIBS"
3187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3188 echo "$ac_t""yes" 1>&6
3189 ac_tr_lib=HAVE_LIB`echo GL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3190 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3191 cat >> confdefs.h <<EOF
3192 #define $ac_tr_lib 1
3198 echo "$ac_t""no" 1>&6
3203 echo $ac_n "checking for gluLookAt in -lGLU""... $ac_c" 1>&6
3204 echo "configure:3205: checking for gluLookAt in -lGLU" >&5
3205 ac_lib_var=`echo GLU'_'gluLookAt | sed 'y%./+-%__p_%'`
3206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3209 ac_save_LIBS="$LIBS"
3211 cat > conftest.$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3214 /* Override any gcc2 internal prototype to avoid an error. */
3215 /* We use char because int might match the return type of a gcc2
3216 builtin and then its argument prototype would still apply. */
3223 if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3225 eval "ac_cv_lib_$ac_lib_var=yes"
3227 echo "configure: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3230 eval "ac_cv_lib_$ac_lib_var=no"
3233 LIBS="$ac_save_LIBS"
3236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3237 echo "$ac_t""yes" 1>&6
3238 ac_tr_lib=HAVE_LIB`echo GLU | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3240 cat >> confdefs.h <<EOF
3241 #define $ac_tr_lib 1
3247 echo "$ac_t""no" 1>&6
3250 if test "x$ac_cv_lib_GLU_gluLookAt" = "xno" ; then
3251 echo $ac_n "checking for gluLookAt in -lMesaGLU""... $ac_c" 1>&6
3252 echo "configure:3253: checking for gluLookAt in -lMesaGLU" >&5
3253 ac_lib_var=`echo MesaGLU'_'gluLookAt | sed 'y%./+-%__p_%'`
3254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3255 echo $ac_n "(cached) $ac_c" 1>&6
3257 ac_save_LIBS="$LIBS"
3258 LIBS="-lMesaGLU $LIBS"
3259 cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 /* Override any gcc2 internal prototype to avoid an error. */
3263 /* We use char because int might match the return type of a gcc2
3264 builtin and then its argument prototype would still apply. */
3271 if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3273 eval "ac_cv_lib_$ac_lib_var=yes"
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3278 eval "ac_cv_lib_$ac_lib_var=no"
3281 LIBS="$ac_save_LIBS"
3284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3285 echo "$ac_t""yes" 1>&6
3286 ac_tr_lib=HAVE_LIB`echo MesaGLU | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3287 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3288 cat >> confdefs.h <<EOF
3289 #define $ac_tr_lib 1
3292 LIBS="-lMesaGLU $LIBS"
3295 echo "$ac_t""no" 1>&6
3300 echo $ac_n "checking for glutGetModifiers in -lglut""... $ac_c" 1>&6
3301 echo "configure:3302: checking for glutGetModifiers in -lglut" >&5
3302 ac_lib_var=`echo glut'_'glutGetModifiers | sed 'y%./+-%__p_%'`
3303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3306 ac_save_LIBS="$LIBS"
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 /* Override any gcc2 internal prototype to avoid an error. */
3312 /* We use char because int might match the return type of a gcc2
3313 builtin and then its argument prototype would still apply. */
3314 char glutGetModifiers();
3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3322 eval "ac_cv_lib_$ac_lib_var=yes"
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3327 eval "ac_cv_lib_$ac_lib_var=no"
3330 LIBS="$ac_save_LIBS"
3333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3334 echo "$ac_t""yes" 1>&6
3335 ac_tr_lib=HAVE_LIB`echo glut | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3336 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3337 cat >> confdefs.h <<EOF
3338 #define $ac_tr_lib 1
3344 echo "$ac_t""no" 1>&6
3348 if test "x$am_cv_cygwin32" = "xyes" ; then
3349 echo Cygnus Win32 specific hacks...
3350 cat >> confdefs.h <<\EOF
3355 if [ -f `pwd`/Win32/glut.dll ]; then
3356 echo " found glut.dll, adding -lglut"
3359 echo " Cannot find glut.dll"
3362 if [ -f `pwd`/Win32/glu.dll ]; then
3363 echo " found glu.dll"
3365 echo " Can't find glu.dll, assuming it's someplace"
3367 echo " adding -lglu"
3369 if [ -f `pwd`/Win32/opengl.dll ]; then
3370 echo " found opengl.dll"
3372 echo " Can't find opengl.dll, assuming it's somplace"
3374 echo " adding -lopengl"
3375 LIBS="$LIBS -lopengl"
3376 echo " adding -luser32 -lgdi32"
3377 LIBS="$LIBS -luser32 -lgdi32"
3378 ac_cv_lib_glut_glutGetModifiers="yes"
3381 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3382 echo "configure:3383: checking for ANSI C header files" >&5
3383 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 cat > conftest.$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3395 { (eval echo configure:3396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3396 ac_err=`grep -v '^ *+' conftest.out`
3397 if test -z "$ac_err"; then
3399 ac_cv_header_stdc=yes
3402 echo "configure: failed program was:" >&5
3403 cat conftest.$ac_ext >&5
3405 ac_cv_header_stdc=no
3409 if test $ac_cv_header_stdc = yes; then
3410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3411 cat > conftest.$ac_ext <<EOF
3412 #line 3413 "configure"
3413 #include "confdefs.h"
3416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3417 egrep "memchr" >/dev/null 2>&1; then
3421 ac_cv_header_stdc=no
3427 if test $ac_cv_header_stdc = yes; then
3428 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3429 cat > conftest.$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3435 egrep "free" >/dev/null 2>&1; then
3439 ac_cv_header_stdc=no
3445 if test $ac_cv_header_stdc = yes; then
3446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3447 if test "$cross_compiling" = yes; then
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3454 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3455 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3457 int main () { int i; for (i = 0; i < 256; i++)
3458 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3462 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3466 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3469 ac_cv_header_stdc=no
3477 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3478 if test $ac_cv_header_stdc = yes; then
3479 cat >> confdefs.h <<\EOF
3480 #define STDC_HEADERS 1
3485 for ac_hdr in fcntl.h getopt.h malloc.h stdlib.h sys/time.h sys/timeb.h \
3486 unistd.h windows.h winbase.h values.h
3488 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3490 echo "configure:3491: checking for $ac_hdr" >&5
3491 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3494 cat > conftest.$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3500 { (eval echo configure:3501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3501 ac_err=`grep -v '^ *+' conftest.out`
3502 if test -z "$ac_err"; then
3504 eval "ac_cv_header_$ac_safe=yes"
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3510 eval "ac_cv_header_$ac_safe=no"
3514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3515 echo "$ac_t""yes" 1>&6
3516 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3517 cat >> confdefs.h <<EOF
3518 #define $ac_tr_hdr 1
3522 echo "$ac_t""no" 1>&6
3527 echo $ac_n "checking for working const""... $ac_c" 1>&6
3528 echo "configure:3529: checking for working const" >&5
3529 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3538 /* Ultrix mips cc rejects this. */
3539 typedef int charset[2]; const charset x;
3540 /* SunOS 4.1.1 cc rejects this. */
3541 char const *const *ccp;
3543 /* NEC SVR4.0.2 mips cc rejects this. */
3544 struct point {int x, y;};
3545 static struct point const zero = {0,0};
3546 /* AIX XL C 1.02.0.0 rejects this.
3547 It does not let you subtract one const X* pointer from another in an arm
3548 of an if-expression whose if-part is not a constant expression */
3549 const char *g = "string";
3550 ccp = &g + (g ? g-g : 0);
3551 /* HPUX 7.0 cc rejects these. */
3554 ccp = (char const *const *) p;
3555 { /* SCO 3.2v4 cc rejects this. */
3557 char const *s = 0 ? (char *) 0 : (char const *) 0;
3561 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3563 const int *foo = &x[0];
3566 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3567 typedef const int *iptr;
3571 { /* AIX XL C 1.02.0.0 rejects this saying
3572 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3573 struct s { int j; const int *ap[3]; };
3574 struct s *b; b->j = 5;
3576 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3582 if { (eval echo configure:3583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3594 echo "$ac_t""$ac_cv_c_const" 1>&6
3595 if test $ac_cv_c_const = no; then
3596 cat >> confdefs.h <<\EOF
3602 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3603 echo "configure:3604: checking for size_t" >&5
3604 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3610 #include <sys/types.h>
3616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3617 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3619 ac_cv_type_size_t=yes
3622 ac_cv_type_size_t=no
3627 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3628 if test $ac_cv_type_size_t = no; then
3629 cat >> confdefs.h <<\EOF
3630 #define size_t unsigned
3635 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3636 echo "configure:3637: checking whether time.h and sys/time.h may both be included" >&5
3637 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 #include <sys/types.h>
3644 #include <sys/time.h>
3650 if { (eval echo configure:3651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3652 ac_cv_header_time=yes
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3657 ac_cv_header_time=no
3662 echo "$ac_t""$ac_cv_header_time" 1>&6
3663 if test $ac_cv_header_time = yes; then
3664 cat >> confdefs.h <<\EOF
3665 #define TIME_WITH_SYS_TIME 1
3670 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3671 echo "configure:3672: checking whether struct tm is in sys/time.h or time.h" >&5
3672 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3675 cat > conftest.$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3678 #include <sys/types.h>
3681 struct tm *tp; tp->tm_sec;
3684 if { (eval echo configure:3685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3686 ac_cv_struct_tm=time.h
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3691 ac_cv_struct_tm=sys/time.h
3696 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3697 if test $ac_cv_struct_tm = sys/time.h; then
3698 cat >> confdefs.h <<\EOF
3699 #define TM_IN_SYS_TIME 1
3705 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3706 echo "configure:3707: checking return type of signal handlers" >&5
3707 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3710 cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 #include <sys/types.h>
3719 extern "C" void (*signal (int, void (*)(int)))(int);
3721 void (*signal ()) ();
3728 if { (eval echo configure:3729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3730 ac_cv_type_signal=void
3732 echo "configure: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3735 ac_cv_type_signal=int
3740 echo "$ac_t""$ac_cv_type_signal" 1>&6
3741 cat >> confdefs.h <<EOF
3742 #define RETSIGTYPE $ac_cv_type_signal
3746 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3747 echo "configure:3748: checking for vprintf" >&5
3748 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3751 cat > conftest.$ac_ext <<EOF
3752 #line 3753 "configure"
3753 #include "confdefs.h"
3754 /* System header to define __stub macros and hopefully few prototypes,
3755 which can conflict with char vprintf(); below. */
3757 /* Override any gcc2 internal prototype to avoid an error. */
3758 /* We use char because int might match the return type of a gcc2
3759 builtin and then its argument prototype would still apply. */
3764 /* The GNU C library defines this for functions which it implements
3765 to always fail with ENOSYS. Some functions are actually named
3766 something starting with __ and the normal name is an alias. */
3767 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3775 if { (eval echo configure:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3777 eval "ac_cv_func_vprintf=yes"
3779 echo "configure: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3782 eval "ac_cv_func_vprintf=no"
3787 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3788 echo "$ac_t""yes" 1>&6
3789 cat >> confdefs.h <<\EOF
3790 #define HAVE_VPRINTF 1
3794 echo "$ac_t""no" 1>&6
3797 if test "$ac_cv_func_vprintf" != yes; then
3798 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3799 echo "configure:3800: checking for _doprnt" >&5
3800 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 /* System header to define __stub macros and hopefully few prototypes,
3807 which can conflict with char _doprnt(); below. */
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3816 /* The GNU C library defines this for functions which it implements
3817 to always fail with ENOSYS. Some functions are actually named
3818 something starting with __ and the normal name is an alias. */
3819 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3829 eval "ac_cv_func__doprnt=yes"
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3834 eval "ac_cv_func__doprnt=no"
3839 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3841 cat >> confdefs.h <<\EOF
3842 #define HAVE_DOPRNT 1
3846 echo "$ac_t""no" 1>&6
3851 for ac_func in ftime gettimeofday mktime strstr rand random \
3852 setitimer getitimer signal GetLocalTime rint
3854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3855 echo "configure:3856: checking for $ac_func" >&5
3856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 /* System header to define __stub macros and hopefully few prototypes,
3863 which can conflict with char $ac_func(); below. */
3865 /* Override any gcc2 internal prototype to avoid an error. */
3866 /* We use char because int might match the return type of a gcc2
3867 builtin and then its argument prototype would still apply. */
3872 /* The GNU C library defines this for functions which it implements
3873 to always fail with ENOSYS. Some functions are actually named
3874 something starting with __ and the normal name is an alias. */
3875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3883 if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3885 eval "ac_cv_func_$ac_func=yes"
3887 echo "configure: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3890 eval "ac_cv_func_$ac_func=no"
3895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3898 cat >> confdefs.h <<EOF
3899 #define $ac_tr_func 1
3903 echo "$ac_t""no" 1>&6
3908 if test "x$ac_cv_lib_glut_glutGetModifiers" = "xno"; then
3910 echo "Unable to find the necessary GL libraries."
3919 cat > confcache <<\EOF
3920 # This file is a shell script that caches the results of configure
3921 # tests run on this system so they can be shared between configure
3922 # scripts and configure runs. It is not useful on other systems.
3923 # If it contains results you don't want to keep, you may remove or edit it.
3925 # By default, configure uses ./config.cache as the cache file,
3926 # creating it if it does not exist already. You can give configure
3927 # the --cache-file=FILE option to use a different cache file; that is
3928 # what configure does when it calls configure scripts in
3929 # subdirectories, so they share the cache.
3930 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3931 # config.status only pays attention to the cache file if you give it the
3932 # --recheck option to rerun configure.
3935 # The following way of writing the cache mishandles newlines in values,
3936 # but we know of no workaround that is simple, portable, and efficient.
3937 # So, don't put newlines in cache variables' values.
3938 # Ultrix sh set writes to stderr and can't be redirected directly,
3939 # and sets the high bit in the cache file unless we assign to the vars.
3941 case `(ac_space=' '; set) 2>&1` in
3943 # `set' does not quote correctly, so add quotes (double-quote substitution
3944 # turns \\\\ into \\, and sed turns \\ into \).
3946 -e "s/'/'\\\\''/g" \
3947 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3950 # `set' quotes correctly as required by POSIX, so do not add quotes.
3951 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3954 if cmp -s $cache_file confcache; then
3957 if test -w $cache_file; then
3958 echo "updating cache $cache_file"
3959 cat confcache > $cache_file
3961 echo "not updating unwritable cache $cache_file"
3966 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3969 # Let make expand exec_prefix.
3970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3972 # Any assignment to VPATH causes Sun make to only execute
3973 # the first set of double-colon rules, so remove it if not needed.
3974 # If there is a colon in the path, we need to keep it.
3975 if test "x$srcdir" = x.; then
3976 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3979 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3981 DEFS=-DHAVE_CONFIG_H
3983 # Without the "./", some shells look in PATH for config.status.
3984 : ${CONFIG_STATUS=./config.status}
3986 echo creating $CONFIG_STATUS
3987 rm -f $CONFIG_STATUS
3988 cat > $CONFIG_STATUS <<EOF
3990 # Generated automatically by configure.
3991 # Run this file to recreate the current configuration.
3992 # This directory was configured as follows,
3993 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3995 # $0 $ac_configure_args
3997 # Compiler output produced by configure, useful for debugging
3998 # configure, is in ./config.log if it exists.
4000 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4003 case "\$ac_option" in
4004 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4005 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4006 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4007 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4008 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4010 -help | --help | --hel | --he | --h)
4011 echo "\$ac_cs_usage"; exit 0 ;;
4012 *) echo "\$ac_cs_usage"; exit 1 ;;
4016 ac_given_srcdir=$srcdir
4017 ac_given_INSTALL="$INSTALL"
4019 trap 'rm -fr `echo "\
4023 Lib/Bucket/Makefile \
4024 Lib/Debug/Makefile \
4029 Simulator/Makefile \
4030 Simulator/Aircraft/Makefile \
4031 Simulator/Astro/Makefile \
4032 Simulator/Autopilot/Makefile \
4033 Simulator/Cockpit/Makefile \
4034 Simulator/Controls/Makefile \
4035 Simulator/Flight/LaRCsim/Makefile \
4036 Simulator/Flight/Slew/Makefile \
4037 Simulator/Flight/Makefile \
4038 Simulator/Joystick/Makefile \
4039 Simulator/Main/Makefile \
4040 Simulator/Main/runfg \
4041 Simulator/Main/runfg.bat \
4042 Simulator/Makefile \
4043 Simulator/Scenery/Makefile \
4044 Simulator/Time/Makefile \
4045 Simulator/Weather/Makefile \
4047 Tools/AssemTris/Makefile \
4048 Tools/Dem2node/Makefile \
4049 Tools/DemRaw2ascii/Makefile \
4050 Tools/FixNode/Makefile \
4051 Tools/FixObj/Makefile \
4052 Tools/SplitTris/Makefile \
4053 Tools/Stripe_u/Makefile \
4054 Tools/Tri2obj/Makefile \
4055 Tools/Triangle/Makefile \
4057 Include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4059 cat >> $CONFIG_STATUS <<EOF
4061 # Protect against being on the right side of a sed subst in config.status.
4062 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4063 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4066 s%@CFLAGS@%$CFLAGS%g
4067 s%@CPPFLAGS@%$CPPFLAGS%g
4068 s%@CXXFLAGS@%$CXXFLAGS%g
4070 s%@LDFLAGS@%$LDFLAGS%g
4072 s%@exec_prefix@%$exec_prefix%g
4073 s%@prefix@%$prefix%g
4074 s%@program_transform_name@%$program_transform_name%g
4075 s%@bindir@%$bindir%g
4076 s%@sbindir@%$sbindir%g
4077 s%@libexecdir@%$libexecdir%g
4078 s%@datadir@%$datadir%g
4079 s%@sysconfdir@%$sysconfdir%g
4080 s%@sharedstatedir@%$sharedstatedir%g
4081 s%@localstatedir@%$localstatedir%g
4082 s%@libdir@%$libdir%g
4083 s%@includedir@%$includedir%g
4084 s%@oldincludedir@%$oldincludedir%g
4085 s%@infodir@%$infodir%g
4086 s%@mandir@%$mandir%g
4087 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4088 s%@INSTALL_DATA@%$INSTALL_DATA%g
4089 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4090 s%@PACKAGE@%$PACKAGE%g
4091 s%@VERSION@%$VERSION%g
4092 s%@ACLOCAL@%$ACLOCAL%g
4093 s%@AUTOCONF@%$AUTOCONF%g
4094 s%@AUTOMAKE@%$AUTOMAKE%g
4095 s%@AUTOHEADER@%$AUTOHEADER%g
4096 s%@MAKEINFO@%$MAKEINFO%g
4097 s%@SET_MAKE@%$SET_MAKE%g
4102 s%@host_alias@%$host_alias%g
4103 s%@host_cpu@%$host_cpu%g
4104 s%@host_vendor@%$host_vendor%g
4105 s%@host_os@%$host_os%g
4106 s%@RANLIB@%$RANLIB%g
4109 s%@LIBTOOL@%$LIBTOOL%g
4112 s%@X_CFLAGS@%$X_CFLAGS%g
4113 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4114 s%@X_LIBS@%$X_LIBS%g
4115 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4120 cat >> $CONFIG_STATUS <<\EOF
4122 # Split the substitutions into bite-sized pieces for seds with
4123 # small command number limits, like on Digital OSF/1 and HP-UX.
4124 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4125 ac_file=1 # Number of current file.
4126 ac_beg=1 # First line for current file.
4127 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4130 while $ac_more_lines; do
4131 if test $ac_beg -gt 1; then
4132 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4134 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4136 if test ! -s conftest.s$ac_file; then
4138 rm -f conftest.s$ac_file
4140 if test -z "$ac_sed_cmds"; then
4141 ac_sed_cmds="sed -f conftest.s$ac_file"
4143 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4145 ac_file=`expr $ac_file + 1`
4147 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4150 if test -z "$ac_sed_cmds"; then
4155 cat >> $CONFIG_STATUS <<EOF
4157 CONFIG_FILES=\${CONFIG_FILES-"\
4161 Lib/Bucket/Makefile \
4162 Lib/Debug/Makefile \
4167 Simulator/Makefile \
4168 Simulator/Aircraft/Makefile \
4169 Simulator/Astro/Makefile \
4170 Simulator/Autopilot/Makefile \
4171 Simulator/Cockpit/Makefile \
4172 Simulator/Controls/Makefile \
4173 Simulator/Flight/LaRCsim/Makefile \
4174 Simulator/Flight/Slew/Makefile \
4175 Simulator/Flight/Makefile \
4176 Simulator/Joystick/Makefile \
4177 Simulator/Main/Makefile \
4178 Simulator/Main/runfg \
4179 Simulator/Main/runfg.bat \
4180 Simulator/Makefile \
4181 Simulator/Scenery/Makefile \
4182 Simulator/Time/Makefile \
4183 Simulator/Weather/Makefile \
4185 Tools/AssemTris/Makefile \
4186 Tools/Dem2node/Makefile \
4187 Tools/DemRaw2ascii/Makefile \
4188 Tools/FixNode/Makefile \
4189 Tools/FixObj/Makefile \
4190 Tools/SplitTris/Makefile \
4191 Tools/Stripe_u/Makefile \
4192 Tools/Tri2obj/Makefile \
4193 Tools/Triangle/Makefile \
4197 cat >> $CONFIG_STATUS <<\EOF
4198 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4199 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4201 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4202 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4203 *) ac_file_in="${ac_file}.in" ;;
4206 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4208 # Remove last slash and all that follows it. Not all systems have dirname.
4209 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4210 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4211 # The file is in a subdirectory.
4212 test ! -d "$ac_dir" && mkdir "$ac_dir"
4213 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4214 # A "../" for each directory in $ac_dir_suffix.
4215 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4217 ac_dir_suffix= ac_dots=
4220 case "$ac_given_srcdir" in
4222 if test -z "$ac_dots"; then top_srcdir=.
4223 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4224 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4226 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4227 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4230 case "$ac_given_INSTALL" in
4231 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4232 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4235 echo creating "$ac_file"
4237 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4239 *Makefile*) ac_comsub="1i\\
4240 # $configure_input" ;;
4244 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4246 s%@configure_input@%$configure_input%g
4247 s%@srcdir@%$srcdir%g
4248 s%@top_srcdir@%$top_srcdir%g
4249 s%@INSTALL@%$INSTALL%g
4250 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4254 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4255 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4257 # ac_d sets the value in "#define NAME VALUE" lines.
4258 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4259 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4262 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4263 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4264 ac_uB='\([ ]\)%\1#\2define\3'
4267 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4268 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4269 ac_eB='$%\1#\2define\3'
4273 if test "${CONFIG_HEADERS+set}" != set; then
4275 cat >> $CONFIG_STATUS <<EOF
4276 CONFIG_HEADERS="Include/config.h"
4278 cat >> $CONFIG_STATUS <<\EOF
4280 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4281 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4283 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4284 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4285 *) ac_file_in="${ac_file}.in" ;;
4288 echo creating $ac_file
4290 rm -f conftest.frag conftest.in conftest.out
4291 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4292 cat $ac_file_inputs > conftest.in
4296 # Transform confdefs.h into a sed script conftest.vals that substitutes
4297 # the proper values into config.h.in to produce config.h. And first:
4298 # Protect against being on the right side of a sed subst in config.status.
4299 # Protect against being in an unquoted here document in config.status.
4301 cat > conftest.hdr <<\EOF
4304 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4308 sed -n -f conftest.hdr confdefs.h > conftest.vals
4311 # This sed command replaces #undef with comments. This is necessary, for
4312 # example, in the case of _POSIX_SOURCE, which is predefined and required
4313 # on some systems where configure will not decide to define it.
4314 cat >> conftest.vals <<\EOF
4315 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4318 # Break up conftest.vals because some shells have a limit on
4319 # the size of here documents, and old seds have small limits too.
4324 ac_lines=`grep -c . conftest.vals`
4325 # grep -c gives empty output for an empty file on some AIX systems.
4326 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4327 # Write a limited-size here document to conftest.frag.
4328 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4329 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4331 sed -f conftest.frag conftest.in > conftest.out
4333 mv conftest.out conftest.in
4335 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4337 mv conftest.tail conftest.vals
4341 cat >> $CONFIG_STATUS <<\EOF
4342 rm -f conftest.frag conftest.h
4343 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4344 cat conftest.in >> conftest.h
4346 if cmp -s $ac_file conftest.h 2>/dev/null; then
4347 echo "$ac_file is unchanged"
4350 # Remove last slash and all that follows it. Not all systems have dirname.
4351 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4352 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4353 # The file is in a subdirectory.
4354 test ! -d "$ac_dir" && mkdir "$ac_dir"
4357 mv conftest.h $ac_file
4362 cat >> $CONFIG_STATUS <<EOF
4366 cat >> $CONFIG_STATUS <<\EOF
4367 test -z "$CONFIG_HEADERS" || echo timestamp > Include/stamp-h
4371 chmod +x $CONFIG_STATUS
4372 rm -fr confdefs* $ac_clean_files
4373 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1