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 --with-long-double=yes/no Used to enable/disable usage of long double"
17 --with-pthread=yes Used to enable SMP support (experimental)"
19 --with-x11-driver=no Used to disable x11 driver"
21 --with-svga-driver=no Used to disable svga driver"
23 --with-curses-driver=no Used to disable curses driver"
25 --with-aa-driver=no Used to disable aa-lib driver"
27 --with-x use the X Window System"
29 --with-sunos-curses Used to force SunOS 4.x curses"
31 --with-osf1-curses Used to force OSF/1 curses"
33 --with-vcurses[=incdir] Used to force SysV curses"
35 --with-ncurses[=base-dir] Compile with ncurses/locate base dir"
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
41 cache_file
=.
/config.cache
50 program_transform_name
=s
,x
,x
,
58 bindir
='${exec_prefix}/bin'
59 sbindir
='${exec_prefix}/sbin'
60 libexecdir
='${exec_prefix}/libexec'
61 datadir
='${prefix}/share'
62 sysconfdir
='${prefix}/etc'
63 sharedstatedir
='${prefix}/com'
64 localstatedir
='${prefix}/var'
65 libdir
='${exec_prefix}/lib'
66 includedir
='${prefix}/include'
67 oldincludedir
='/usr/include'
68 infodir
='${prefix}/info'
69 mandir
='${prefix}/man'
71 # Initialize some other variables.
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
99 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
100 bindir
="$ac_optarg" ;;
102 -build |
--build |
--buil |
--bui |
--bu)
104 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
108 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
109 ac_prev
=cache_file
;;
110 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
111 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* |
--disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* |
--enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
144 |
--exec |
--exe |
--ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
148 |
--exec=* |
--exe=* |
--ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas |
--gas |
--ga |
--g)
152 # Obsolete; use --with-gas.
155 -help |
--help |
--hel |
--he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host |
--host |
--hos |
--ho)
212 -host=* |
--host=* |
--hos=* |
--ho=*)
215 -includedir |
--includedir |
--includedi |
--included |
--include \
216 |
--includ |
--inclu |
--incl |
--inc)
217 ac_prev
=includedir
;;
218 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
219 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
224 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir |
--libdir |
--libdi |
--libd)
229 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
233 |
--libexe |
--libex |
--libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
236 |
--libexe=* |
--libex=* |
--libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
240 |
--localstate |
--localstat |
--localsta |
--localst \
241 |
--locals |
--local |
--loca |
--loc |
--lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
244 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
245 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
267 |
--oldin |
--oldi |
--old |
--ol |
--o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
280 |
--program-pre |
--program-pr |
--program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
287 |
--program-suf |
--program-su |
--program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name |
--program-transform-name \
294 |
--program-transform-nam |
--program-transform-na \
295 |
--program-transform-n |
--program-transform- \
296 |
--program-transform |
--program-transfor \
297 |
--program-transfo |
--program-transf \
298 |
--program-trans |
--program-tran \
299 |
--progr-tra |
--program-tr |
--program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* |
--program-transform-name=* \
302 |
--program-transform-nam=* |
--program-transform-na=* \
303 |
--program-transform-n=* |
--program-transform-=* \
304 |
--program-transform=* |
--program-transfor=* \
305 |
--program-transfo=* |
--program-transf=* \
306 |
--program-trans=* |
--program-tran=* \
307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
311 |
-silent |
--silent |
--silen |
--sile |
--sil)
314 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
316 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
321 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
322 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
326 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
327 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site |
--site |
--sit)
333 -site=* |
--site=* |
--sit=*)
336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
342 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
345 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
350 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
351 target
="$ac_optarg" ;;
353 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
356 -version |
--version |
--versio |
--versi |
--vers)
357 echo "configure generated by autoconf version 2.12"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* |
--without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c) ;;
450 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
451 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
452 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=src
/engine
/zoom.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
539 ac_n
= ac_c
='\c' ac_t
=
545 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
546 if test -f $ac_dir/install-sh
; then
548 ac_install_sh
="$ac_aux_dir/install-sh -c"
550 elif test -f $ac_dir/install.sh
; then
552 ac_install_sh
="$ac_aux_dir/install.sh -c"
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
559 ac_config_guess
=$ac_aux_dir/config.guess
560 ac_config_sub
=$ac_aux_dir/config.sub
561 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
564 # Do some error checking and defaulting for the host and target type.
566 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
569 # 1. You are not allowed to specify --host, --target, and nonopt at the
571 # 2. Host defaults to nonopt.
572 # 3. If nonopt is not specified, then host defaults to the current host,
573 # as determined by config.guess.
574 # 4. Target and build default to nonopt.
575 # 5. If nonopt is not specified, then target and build default to host.
577 # The aliases save the names the user supplied, while $host etc.
578 # will get canonicalized.
579 case $host---$target---$nonopt in
580 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
581 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
585 # Make sure we can run config.sub.
586 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
587 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
590 echo $ac_n "checking host system type""... $ac_c" 1>&6
591 echo "configure:592: checking host system type" >&5
594 case "$host_alias" in
598 if host_alias
=`$ac_config_guess`; then :
599 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
601 *) host_alias
=$nonopt ;;
605 host=`$ac_config_sub $host_alias`
606 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
607 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
608 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
609 echo "$ac_t""$host" 1>&6
611 echo $ac_n "checking target system type""... $ac_c" 1>&6
612 echo "configure:613: checking target system type" >&5
615 case "$target_alias" in
618 NONE
) target_alias
=$host_alias ;;
619 *) target_alias
=$nonopt ;;
623 target
=`$ac_config_sub $target_alias`
624 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
625 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
626 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
627 echo "$ac_t""$target" 1>&6
629 echo $ac_n "checking build system type""... $ac_c" 1>&6
630 echo "configure:631: checking build system type" >&5
633 case "$build_alias" in
636 NONE
) build_alias
=$host_alias ;;
637 *) build_alias
=$nonopt ;;
641 build
=`$ac_config_sub $build_alias`
642 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
643 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
644 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
645 echo "$ac_t""$build" 1>&6
647 test "$host_alias" != "$target_alias" &&
648 test "$program_prefix$program_suffix$program_transform_name" = \
650 program_prefix
=${target_alias}-
654 # Extract the first word of "gcc", so it can be a program name with args.
655 set dummy gcc
; ac_word
=$2
656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
657 echo "configure:658: checking for $ac_word" >&5
658 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
659 echo $ac_n "(cached) $ac_c" 1>&6
661 if test -n "$CC"; then
662 ac_cv_prog_CC
="$CC" # Let the user override the test.
664 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
665 for ac_dir
in $PATH; do
666 test -z "$ac_dir" && ac_dir
=.
667 if test -f $ac_dir/$ac_word; then
676 if test -n "$CC"; then
677 echo "$ac_t""$CC" 1>&6
679 echo "$ac_t""no" 1>&6
682 if test -z "$CC"; then
683 # Extract the first word of "cc", so it can be a program name with args.
684 set dummy cc
; ac_word
=$2
685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
686 echo "configure:687: checking for $ac_word" >&5
687 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
688 echo $ac_n "(cached) $ac_c" 1>&6
690 if test -n "$CC"; then
691 ac_cv_prog_CC
="$CC" # Let the user override the test.
693 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
695 for ac_dir
in $PATH; do
696 test -z "$ac_dir" && ac_dir
=.
697 if test -f $ac_dir/$ac_word; then
698 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
707 if test $ac_prog_rejected = yes; then
708 # We found a bogon in the path, so make sure we never use it.
709 set dummy
$ac_cv_prog_CC
711 if test $# -gt 0; then
712 # We chose a different compiler from the bogus one.
713 # However, it has the same basename, so the bogon will be chosen
714 # first if we set CC to just the basename; use the full file name.
716 set dummy
"$ac_dir/$ac_word" "$@"
724 if test -n "$CC"; then
725 echo "$ac_t""$CC" 1>&6
727 echo "$ac_t""no" 1>&6
730 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
733 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
734 echo "configure:735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
738 ac_cpp
='$CPP $CPPFLAGS'
739 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
740 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
741 cross_compiling
=$ac_cv_prog_cc_cross
743 cat > conftest.
$ac_ext <<EOF
744 #line 745 "configure"
745 #include "confdefs.h"
748 if { (eval echo configure
:749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
749 ac_cv_prog_cc_works
=yes
750 # If we can't run a trivial program, we are probably using a cross compiler.
751 if (.
/conftest
; exit) 2>/dev
/null
; then
752 ac_cv_prog_cc_cross
=no
754 ac_cv_prog_cc_cross
=yes
757 echo "configure: failed program was:" >&5
758 cat conftest.
$ac_ext >&5
759 ac_cv_prog_cc_works
=no
763 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
764 if test $ac_cv_prog_cc_works = no
; then
765 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
767 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
768 echo "configure:769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
769 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
770 cross_compiling
=$ac_cv_prog_cc_cross
772 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
773 echo "configure:774: checking whether we are using GNU C" >&5
774 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
777 cat > conftest.c
<<EOF
782 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
789 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
791 if test $ac_cv_prog_gcc = yes; then
793 ac_test_CFLAGS
="${CFLAGS+set}"
794 ac_save_CFLAGS
="$CFLAGS"
796 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
797 echo "configure:798: checking whether ${CC-cc} accepts -g" >&5
798 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 echo 'void f(){}' > conftest.c
802 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
811 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
812 if test "$ac_test_CFLAGS" = set; then
813 CFLAGS
="$ac_save_CFLAGS"
814 elif test $ac_cv_prog_cc_g = yes; then
821 test "${CFLAGS+set}" = set || CFLAGS
="-g"
824 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
825 echo "configure:826: checking how to run the C preprocessor" >&5
826 # On Suns, sometimes $CPP names a directory.
827 if test -n "$CPP" && test -d "$CPP"; then
830 if test -z "$CPP"; then
831 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
834 # This must be in double quotes, not single quotes, because CPP may get
835 # substituted into the Makefile and "${CC-cc}" will confuse make.
837 # On the NeXT, cc -E runs the code through the compiler's parser,
838 # not just through cpp.
839 cat > conftest.
$ac_ext <<EOF
840 #line 841 "configure"
841 #include "confdefs.h"
845 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
846 { (eval echo configure
:847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
847 ac_err
=`grep -v '^ *+' conftest.out`
848 if test -z "$ac_err"; then
852 echo "configure: failed program was:" >&5
853 cat conftest.
$ac_ext >&5
855 CPP
="${CC-cc} -E -traditional-cpp"
856 cat > conftest.
$ac_ext <<EOF
857 #line 858 "configure"
858 #include "confdefs.h"
862 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
863 { (eval echo configure
:864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
864 ac_err
=`grep -v '^ *+' conftest.out`
865 if test -z "$ac_err"; then
869 echo "configure: failed program was:" >&5
870 cat conftest.
$ac_ext >&5
877 ac_cv_prog_CPP
="$CPP"
879 CPP
="$ac_cv_prog_CPP"
881 ac_cv_prog_CPP
="$CPP"
883 echo "$ac_t""$CPP" 1>&6
885 if test $ac_cv_prog_gcc = yes; then
886 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
887 echo "configure:888: checking whether ${CC-cc} needs -traditional" >&5
888 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
891 ac_pattern
="Autoconf.*'x'"
892 cat > conftest.
$ac_ext <<EOF
893 #line 894 "configure"
894 #include "confdefs.h"
898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
899 egrep "$ac_pattern" >/dev
/null
2>&1; then
901 ac_cv_prog_gcc_traditional
=yes
904 ac_cv_prog_gcc_traditional
=no
909 if test $ac_cv_prog_gcc_traditional = no
; then
910 cat > conftest.
$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
917 egrep "$ac_pattern" >/dev
/null
2>&1; then
919 ac_cv_prog_gcc_traditional
=yes
926 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
927 if test $ac_cv_prog_gcc_traditional = yes; then
928 CC
="$CC -traditional"
935 curses_driver_test
=yes
941 # Check whether --with-long-double or --without-long-double was given.
942 if test "${with_long_double+set}" = set; then
943 withval
="$with_long_double"
945 if test x
$withval = xyes
; then
948 if test x
$withval = xno
; then
954 # Check whether --with-pthread or --without-pthread was given.
955 if test "${with_pthread+set}" = set; then
956 withval
="$with_pthread"
958 if test x
$withval = xyes
; then
961 if test x
$withval = xno
; then
975 if test x
$long_double = xtest
; then
977 i?
86*) long_double
=yes
987 echo $ac_n "checking whether ${CC-cc} accepts -mpentium""... $ac_c" 1>&6
988 echo "configure:989: checking whether ${CC-cc} accepts -mpentium" >&5
989 if eval "test \"`echo '$''{'ac_cv_prog_cc_mpentium'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
992 echo 'void f(){}' > conftest.c
993 if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
994 ac_cv_prog_cc_mpentium
=yes
996 ac_cv_prog_cc_mpentium
=no
1002 echo "$ac_t""$ac_cv_prog_cc_mpentium" 1>&6
1003 if test $ac_cv_prog_cc_mpentium = yes; then
1006 echo $ac_n "checking whether ${CC-cc} accepts -m586""... $ac_c" 1>&6
1007 echo "configure:1008: checking whether ${CC-cc} accepts -m586" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_cc_m586'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 echo 'void f(){}' > conftest.c
1012 if test -z "`${CC-cc} -m586 -c conftest.c 2>&1`"; then
1013 ac_cv_prog_cc_m586
=yes
1015 ac_cv_prog_cc_m586
=no
1021 echo "$ac_t""$ac_cv_prog_cc_m586" 1>&6
1022 if test $ac_cv_prog_cc_m586 = yes; then
1030 echo $ac_n "checking whether ${CC-cc} accepts -mpentiumpro""... $ac_c" 1>&6
1031 echo "configure:1032: checking whether ${CC-cc} accepts -mpentiumpro" >&5
1032 if eval "test \"`echo '$''{'ac_cv_prog_cc_mpentiumpro'+set}'`\" = set"; then
1033 echo $ac_n "(cached) $ac_c" 1>&6
1035 echo 'void f(){}' > conftest.c
1036 if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
1037 ac_cv_prog_cc_mpentiumpro
=yes
1039 ac_cv_prog_cc_mpentiumpro
=no
1045 echo "$ac_t""$ac_cv_prog_cc_mpentiumpro" 1>&6
1046 if test $ac_cv_prog_cc_mpentiumpro = yes; then
1049 echo $ac_n "checking whether ${CC-cc} accepts -m686""... $ac_c" 1>&6
1050 echo "configure:1051: checking whether ${CC-cc} accepts -m686" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_cc_m686'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 echo 'void f(){}' > conftest.c
1055 if test -z "`${CC-cc} -m686 -c conftest.c 2>&1`"; then
1056 ac_cv_prog_cc_m686
=yes
1058 ac_cv_prog_cc_m686
=no
1064 echo "$ac_t""$ac_cv_prog_cc_m686" 1>&6
1065 if test $ac_cv_prog_cc_m686 = yes; then
1073 #PROG_CC_SWITCH(mno-ieee-fp,ieefp)
1081 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1082 echo "configure:1083: checking whether ${MAKE-make} sets \${MAKE}" >&5
1083 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1084 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 cat > conftestmake
<<\EOF
1089 @
echo 'ac_maketemp="${MAKE}"'
1091 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1092 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1093 if test -n "$ac_maketemp"; then
1094 eval ac_cv_prog_make_
${ac_make}_set
=yes
1096 eval ac_cv_prog_make_
${ac_make}_set
=no
1100 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1101 echo "$ac_t""yes" 1>&6
1104 echo "$ac_t""no" 1>&6
1105 SET_MAKE
="MAKE=${MAKE-make}"
1108 # Extract the first word of "ranlib", so it can be a program name with args.
1109 set dummy ranlib
; ac_word
=$2
1110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1111 echo "configure:1112: checking for $ac_word" >&5
1112 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1115 if test -n "$RANLIB"; then
1116 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1118 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1119 for ac_dir
in $PATH; do
1120 test -z "$ac_dir" && ac_dir
=.
1121 if test -f $ac_dir/$ac_word; then
1122 ac_cv_prog_RANLIB
="ranlib"
1127 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1130 RANLIB
="$ac_cv_prog_RANLIB"
1131 if test -n "$RANLIB"; then
1132 echo "$ac_t""$RANLIB" 1>&6
1134 echo "$ac_t""no" 1>&6
1145 # Find a good install program. We prefer a C program (faster),
1146 # so one script is as good as another. But avoid the broken or
1147 # incompatible versions:
1148 # SysV /etc/install, /usr/sbin/install
1149 # SunOS /usr/etc/install
1150 # IRIX /sbin/install
1152 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1153 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1154 # ./install, which can be erroneously created by make from ./install.sh.
1155 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1156 echo "configure:1157: checking for a BSD compatible install" >&5
1157 if test -z "$INSTALL"; then
1158 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1162 for ac_dir
in $PATH; do
1163 # Account for people who put trailing slashes in PATH elements.
1165 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1167 # OSF1 and SCO ODT 3.0 have their own names for install.
1168 for ac_prog
in ginstall installbsd scoinst
install; do
1169 if test -f $ac_dir/$ac_prog; then
1170 if test $ac_prog = install &&
1171 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1172 # AIX install. It has an incompatible calling convention.
1173 # OSF/1 installbsd also uses dspmsg, but is usable.
1176 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1187 if test "${ac_cv_path_install+set}" = set; then
1188 INSTALL
="$ac_cv_path_install"
1190 # As a last resort, use the slow shell script. We don't cache a
1191 # path for INSTALL within a source directory, because that will
1192 # break other packages using the cache if that directory is
1193 # removed, or if the path is relative.
1194 INSTALL
="$ac_install_sh"
1197 echo "$ac_t""$INSTALL" 1>&6
1199 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1200 # It thinks the first close brace ends the variable substitution.
1201 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1203 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1206 # Check whether --with-x11-driver or --without-x11-driver was given.
1207 if test "${with_x11_driver+set}" = set; then
1208 withval
="$with_x11_driver"
1210 if test x
$withval = xno
; then
1216 # Check whether --with-svga-driver or --without-svga-driver was given.
1217 if test "${with_svga_driver+set}" = set; then
1218 withval
="$with_svga_driver"
1220 if test x
$withval = xno
; then
1226 # Check whether --with-curses-driver or --without-curses-driver was given.
1227 if test "${with_curses_driver+set}" = set; then
1228 withval
="$with_curses_driver"
1230 if test x
$withval = xno
; then
1231 curses_driver_test
=no
1236 # Check whether --with-aa-driver or --without-aa-driver was given.
1237 if test "${with_aa_driver+set}" = set; then
1238 withval
="$with_aa_driver"
1240 if test x
$withval = xno
; then
1247 if test "$x_driver_test" = yes -o "$aa_driver_test" = yes; then
1248 # If we find X, set shell vars x_includes and x_libraries to the
1249 # paths, otherwise set no_x=yes.
1250 # Uses ac_ vars as temps to allow command line to override cache and checks.
1251 # --without-x overrides everything else, but does not touch the cache.
1252 echo $ac_n "checking for X""... $ac_c" 1>&6
1253 echo "configure:1254: checking for X" >&5
1255 # Check whether --with-x or --without-x was given.
1256 if test "${with_x+set}" = set; then
1261 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1262 if test "x$with_x" = xno
; then
1263 # The user explicitly disabled X.
1266 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1267 # Both variables are already set.
1270 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1273 # One or both of the vars are not set, and there is no cached value.
1274 ac_x_includes
=NO ac_x_libraries
=NO
1276 if mkdir conftestdir
; then
1278 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1279 cat > Imakefile
<<'EOF'
1281 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1283 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1284 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1285 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1286 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1287 for ac_extension
in a so sl
; do
1288 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1289 test -f $ac_im_libdir/libX11.
$ac_extension; then
1290 ac_im_usrlibdir
=$ac_im_libdir; break
1293 # Screen out bogus values from the imake configuration. They are
1294 # bogus both because they are the default anyway, and because
1295 # using them would break gcc on systems where it needs fixed includes.
1296 case "$ac_im_incroot" in
1298 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1300 case "$ac_im_usrlibdir" in
1302 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1309 if test "$ac_x_includes" = NO
; then
1310 # Guess where to find include files, by looking for this one X11 .h file.
1311 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1313 # First, try using that file with no special directory specified.
1314 cat > conftest.
$ac_ext <<EOF
1315 #line 1316 "configure"
1316 #include "confdefs.h"
1317 #include <$x_direct_test_include>
1319 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1320 { (eval echo configure
:1321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1321 ac_err
=`grep -v '^ *+' conftest.out`
1322 if test -z "$ac_err"; then
1324 # We can compile using X headers with no special include directory.
1328 echo "configure: failed program was:" >&5
1329 cat conftest.
$ac_ext >&5
1331 # Look for the header file in a standard set of common directories.
1332 # Check X11 before X11Rn because it is often a symlink to the current release.
1335 /usr
/X11R
6/include \
1336 /usr
/X11R
5/include \
1337 /usr
/X11R
4/include \
1340 /usr
/include
/X11R6 \
1341 /usr
/include
/X11R5 \
1342 /usr
/include
/X11R4 \
1344 /usr
/local
/X11
/include \
1345 /usr
/local
/X11R
6/include \
1346 /usr
/local
/X11R
5/include \
1347 /usr
/local
/X11R
4/include \
1349 /usr
/local
/include
/X11 \
1350 /usr
/local
/include
/X11R6 \
1351 /usr
/local
/include
/X11R5 \
1352 /usr
/local
/include
/X11R4 \
1356 /usr
/XFree86
/include
/X11 \
1359 /usr
/local
/include \
1360 /usr
/unsupported
/include \
1361 /usr
/athena
/include \
1362 /usr
/local
/x11r
5/include \
1363 /usr
/lpp
/Xamples
/include \
1365 /usr
/openwin
/include \
1366 /usr
/openwin
/share
/include \
1369 if test -r "$ac_dir/$x_direct_test_include"; then
1370 ac_x_includes
=$ac_dir
1376 fi # $ac_x_includes = NO
1378 if test "$ac_x_libraries" = NO
; then
1379 # Check for the libraries.
1381 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1382 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1384 # See if we find them without any special options.
1385 # Don't add to $LIBS permanently.
1386 ac_save_LIBS
="$LIBS"
1387 LIBS
="-l$x_direct_test_library $LIBS"
1388 cat > conftest.
$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1393 ${x_direct_test_function}()
1396 if { (eval echo configure
:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1398 LIBS
="$ac_save_LIBS"
1399 # We can link X programs with no special library path.
1402 echo "configure: failed program was:" >&5
1403 cat conftest.
$ac_ext >&5
1405 LIBS
="$ac_save_LIBS"
1406 # First see if replacing the include by lib works.
1407 # Check X11 before X11Rn because it is often a symlink to the current release.
1408 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1419 /usr
/local
/X11
/lib \
1420 /usr
/local
/X11R
6/lib \
1421 /usr
/local
/X11R
5/lib \
1422 /usr
/local
/X11R
4/lib \
1424 /usr
/local
/lib
/X11 \
1425 /usr
/local
/lib
/X11R6 \
1426 /usr
/local
/lib
/X11R5 \
1427 /usr
/local
/lib
/X11R4 \
1431 /usr
/XFree86
/lib
/X11 \
1435 /usr
/unsupported
/lib \
1437 /usr
/local
/x11r
5/lib \
1438 /usr
/lpp
/Xamples
/lib \
1442 /usr
/openwin
/share
/lib \
1445 for ac_extension
in a so sl
; do
1446 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1447 ac_x_libraries
=$ac_dir
1454 fi # $ac_x_libraries = NO
1456 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1457 # Didn't find X anywhere. Cache the known absence of X.
1458 ac_cv_have_x
="have_x=no"
1460 # Record where we found X for the cache.
1461 ac_cv_have_x
="have_x=yes \
1462 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1466 eval "$ac_cv_have_x"
1469 if test "$have_x" != yes; then
1470 echo "$ac_t""$have_x" 1>&6
1473 # If each of the values was on the command line, it overrides each guess.
1474 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1475 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1476 # Update the cache value to reflect the command line values.
1477 ac_cv_have_x
="have_x=yes \
1478 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1479 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1482 if test "$no_x" = yes; then
1483 # Not all programs may use this symbol, but it does not hurt to define it.
1484 cat >> confdefs.h
<<\EOF
1485 #define X_DISPLAY_MISSING 1
1488 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1490 if test -n "$x_includes"; then
1491 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1494 # It would also be nice to do this for all -L options, not just this one.
1495 if test -n "$x_libraries"; then
1496 X_LIBS
="$X_LIBS -L$x_libraries"
1497 # For Solaris; some versions of Sun CC require a space after -R and
1498 # others require no space. Words are not sufficient . . . .
1499 case "`(uname -sr) 2>/dev/null`" in
1501 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether -R must be followed by a space" >&5
1503 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1504 cat > conftest.
$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1512 if { (eval echo configure
:1513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1516 echo "configure: failed program was:" >&5
1517 cat conftest.
$ac_ext >&5
1522 if test $ac_R_nospace = yes; then
1523 echo "$ac_t""no" 1>&6
1524 X_LIBS
="$X_LIBS -R$x_libraries"
1526 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1527 cat > conftest.
$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1535 if { (eval echo configure
:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1539 echo "configure: failed program was:" >&5
1540 cat conftest.
$ac_ext >&5
1545 if test $ac_R_space = yes; then
1546 echo "$ac_t""yes" 1>&6
1547 X_LIBS
="$X_LIBS -R $x_libraries"
1549 echo "$ac_t""neither works" 1>&6
1552 LIBS
="$ac_xsave_LIBS"
1556 # Check for system-dependent libraries X programs must link with.
1557 # Do this before checking for the system-independent R6 libraries
1558 # (-lICE), since we may need -lsocket or whatever for X linking.
1560 if test "$ISC" = yes; then
1561 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1563 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1564 # libraries were built with DECnet support. And karl@cs.umb.edu says
1565 # the Alpha needs dnet_stub (dnet does not exist).
1566 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1567 echo "configure:1568: checking for dnet_ntoa in -ldnet" >&5
1568 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1572 ac_save_LIBS
="$LIBS"
1574 cat > conftest.
$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1577 /* Override any gcc2 internal prototype to avoid an error. */
1578 /* We use char because int might match the return type of a gcc2
1579 builtin and then its argument prototype would still apply. */
1586 if { (eval echo configure
:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1588 eval "ac_cv_lib_$ac_lib_var=yes"
1590 echo "configure: failed program was:" >&5
1591 cat conftest.
$ac_ext >&5
1593 eval "ac_cv_lib_$ac_lib_var=no"
1596 LIBS
="$ac_save_LIBS"
1599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1600 echo "$ac_t""yes" 1>&6
1601 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1603 echo "$ac_t""no" 1>&6
1606 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1607 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1608 echo "configure:1609: checking for dnet_ntoa in -ldnet_stub" >&5
1609 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1613 ac_save_LIBS
="$LIBS"
1614 LIBS
="-ldnet_stub $LIBS"
1615 cat > conftest.
$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1618 /* Override any gcc2 internal prototype to avoid an error. */
1619 /* We use char because int might match the return type of a gcc2
1620 builtin and then its argument prototype would still apply. */
1627 if { (eval echo configure
:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1629 eval "ac_cv_lib_$ac_lib_var=yes"
1631 echo "configure: failed program was:" >&5
1632 cat conftest.
$ac_ext >&5
1634 eval "ac_cv_lib_$ac_lib_var=no"
1637 LIBS
="$ac_save_LIBS"
1640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1641 echo "$ac_t""yes" 1>&6
1642 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1644 echo "$ac_t""no" 1>&6
1649 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1650 # to get the SysV transport functions.
1651 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1653 # The nsl library prevents programs from opening the X display
1654 # on Irix 5.2, according to dickey@clark.net.
1655 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1656 echo "configure:1657: checking for gethostbyname" >&5
1657 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1660 cat > conftest.
$ac_ext <<EOF
1661 #line 1662 "configure"
1662 #include "confdefs.h"
1663 /* System header to define __stub macros and hopefully few prototypes,
1664 which can conflict with char gethostbyname(); below. */
1666 /* Override any gcc2 internal prototype to avoid an error. */
1667 /* We use char because int might match the return type of a gcc2
1668 builtin and then its argument prototype would still apply. */
1669 char gethostbyname();
1673 /* The GNU C library defines this for functions which it implements
1674 to always fail with ENOSYS. Some functions are actually named
1675 something starting with __ and the normal name is an alias. */
1676 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1684 if { (eval echo configure
:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1686 eval "ac_cv_func_gethostbyname=yes"
1688 echo "configure: failed program was:" >&5
1689 cat conftest.
$ac_ext >&5
1691 eval "ac_cv_func_gethostbyname=no"
1696 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1697 echo "$ac_t""yes" 1>&6
1700 echo "$ac_t""no" 1>&6
1703 if test $ac_cv_func_gethostbyname = no
; then
1704 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1705 echo "configure:1706: checking for gethostbyname in -lnsl" >&5
1706 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 ac_save_LIBS
="$LIBS"
1712 cat > conftest.
$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* Override any gcc2 internal prototype to avoid an error. */
1716 /* We use char because int might match the return type of a gcc2
1717 builtin and then its argument prototype would still apply. */
1718 char gethostbyname();
1724 if { (eval echo configure
:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1726 eval "ac_cv_lib_$ac_lib_var=yes"
1728 echo "configure: failed program was:" >&5
1729 cat conftest.
$ac_ext >&5
1731 eval "ac_cv_lib_$ac_lib_var=no"
1734 LIBS
="$ac_save_LIBS"
1737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1738 echo "$ac_t""yes" 1>&6
1739 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1741 echo "$ac_t""no" 1>&6
1746 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1747 # socket/setsockopt and other routines are undefined under SCO ODT
1748 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1749 # on later versions), says simon@lia.di.epfl.ch: it contains
1750 # gethostby* variants that don't use the nameserver (or something).
1751 # -lsocket must be given before -lnsl if both are needed.
1752 # We assume that if connect needs -lnsl, so does gethostbyname.
1753 echo $ac_n "checking for connect""... $ac_c" 1>&6
1754 echo "configure:1755: checking for connect" >&5
1755 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1756 echo $ac_n "(cached) $ac_c" 1>&6
1758 cat > conftest.
$ac_ext <<EOF
1759 #line 1760 "configure"
1760 #include "confdefs.h"
1761 /* System header to define __stub macros and hopefully few prototypes,
1762 which can conflict with char connect(); below. */
1764 /* Override any gcc2 internal prototype to avoid an error. */
1765 /* We use char because int might match the return type of a gcc2
1766 builtin and then its argument prototype would still apply. */
1771 /* The GNU C library defines this for functions which it implements
1772 to always fail with ENOSYS. Some functions are actually named
1773 something starting with __ and the normal name is an alias. */
1774 #if defined (__stub_connect) || defined (__stub___connect)
1782 if { (eval echo configure
:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1784 eval "ac_cv_func_connect=yes"
1786 echo "configure: failed program was:" >&5
1787 cat conftest.
$ac_ext >&5
1789 eval "ac_cv_func_connect=no"
1794 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1795 echo "$ac_t""yes" 1>&6
1798 echo "$ac_t""no" 1>&6
1801 if test $ac_cv_func_connect = no
; then
1802 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1803 echo "configure:1804: checking for connect in -lsocket" >&5
1804 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 ac_save_LIBS
="$LIBS"
1809 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1810 cat > conftest.
$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1813 /* Override any gcc2 internal prototype to avoid an error. */
1814 /* We use char because int might match the return type of a gcc2
1815 builtin and then its argument prototype would still apply. */
1822 if { (eval echo configure
:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1824 eval "ac_cv_lib_$ac_lib_var=yes"
1826 echo "configure: failed program was:" >&5
1827 cat conftest.
$ac_ext >&5
1829 eval "ac_cv_lib_$ac_lib_var=no"
1832 LIBS
="$ac_save_LIBS"
1835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1836 echo "$ac_t""yes" 1>&6
1837 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1839 echo "$ac_t""no" 1>&6
1844 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1845 echo $ac_n "checking for remove""... $ac_c" 1>&6
1846 echo "configure:1847: checking for remove" >&5
1847 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 cat > conftest.
$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char remove(); below. */
1856 /* Override any gcc2 internal prototype to avoid an error. */
1857 /* We use char because int might match the return type of a gcc2
1858 builtin and then its argument prototype would still apply. */
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined (__stub_remove) || defined (__stub___remove)
1874 if { (eval echo configure
:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1876 eval "ac_cv_func_remove=yes"
1878 echo "configure: failed program was:" >&5
1879 cat conftest.
$ac_ext >&5
1881 eval "ac_cv_func_remove=no"
1886 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1887 echo "$ac_t""yes" 1>&6
1890 echo "$ac_t""no" 1>&6
1893 if test $ac_cv_func_remove = no
; then
1894 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1895 echo "configure:1896: checking for remove in -lposix" >&5
1896 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 ac_save_LIBS
="$LIBS"
1901 LIBS
="-lposix $LIBS"
1902 cat > conftest.
$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1905 /* Override any gcc2 internal prototype to avoid an error. */
1906 /* We use char because int might match the return type of a gcc2
1907 builtin and then its argument prototype would still apply. */
1914 if { (eval echo configure
:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1916 eval "ac_cv_lib_$ac_lib_var=yes"
1918 echo "configure: failed program was:" >&5
1919 cat conftest.
$ac_ext >&5
1921 eval "ac_cv_lib_$ac_lib_var=no"
1924 LIBS
="$ac_save_LIBS"
1927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1928 echo "$ac_t""yes" 1>&6
1929 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1931 echo "$ac_t""no" 1>&6
1936 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1937 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1938 echo "configure:1939: checking for shmat" >&5
1939 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 cat > conftest.
$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char shmat(); below. */
1948 /* Override any gcc2 internal prototype to avoid an error. */
1949 /* We use char because int might match the return type of a gcc2
1950 builtin and then its argument prototype would still apply. */
1955 /* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958 #if defined (__stub_shmat) || defined (__stub___shmat)
1966 if { (eval echo configure
:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1968 eval "ac_cv_func_shmat=yes"
1970 echo "configure: failed program was:" >&5
1971 cat conftest.
$ac_ext >&5
1973 eval "ac_cv_func_shmat=no"
1978 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1979 echo "$ac_t""yes" 1>&6
1982 echo "$ac_t""no" 1>&6
1985 if test $ac_cv_func_shmat = no
; then
1986 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1987 echo "configure:1988: checking for shmat in -lipc" >&5
1988 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 ac_save_LIBS
="$LIBS"
1994 cat > conftest.
$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 /* Override any gcc2 internal prototype to avoid an error. */
1998 /* We use char because int might match the return type of a gcc2
1999 builtin and then its argument prototype would still apply. */
2006 if { (eval echo configure
:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2008 eval "ac_cv_lib_$ac_lib_var=yes"
2010 echo "configure: failed program was:" >&5
2011 cat conftest.
$ac_ext >&5
2013 eval "ac_cv_lib_$ac_lib_var=no"
2016 LIBS
="$ac_save_LIBS"
2019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2020 echo "$ac_t""yes" 1>&6
2021 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2023 echo "$ac_t""no" 1>&6
2029 # Check for libraries that X11R6 Xt/Xaw programs need.
2030 ac_save_LDFLAGS
="$LDFLAGS"
2031 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2032 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2033 # check for ICE first), but we must link in the order -lSM -lICE or
2034 # we get undefined symbols. So assume we have SM if we have ICE.
2035 # These have to be linked with before -lX11, unlike the other
2036 # libraries we check for below, so use a different variable.
2037 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2038 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2039 echo "configure:2040: checking for IceConnectionNumber in -lICE" >&5
2040 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2044 ac_save_LIBS
="$LIBS"
2046 cat > conftest.
$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2049 /* Override any gcc2 internal prototype to avoid an error. */
2050 /* We use char because int might match the return type of a gcc2
2051 builtin and then its argument prototype would still apply. */
2052 char IceConnectionNumber();
2055 IceConnectionNumber()
2058 if { (eval echo configure
:2059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2060 eval "ac_cv_lib_$ac_lib_var=yes"
2062 echo "configure: failed program was:" >&5
2063 cat conftest.
$ac_ext >&5
2065 eval "ac_cv_lib_$ac_lib_var=no"
2068 LIBS
="$ac_save_LIBS"
2071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2072 echo "$ac_t""yes" 1>&6
2073 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2075 echo "$ac_t""no" 1>&6
2078 LDFLAGS
="$ac_save_LDFLAGS"
2085 if test x
$GCC = xyes
; then
2086 if test x
$ac_cv_prog_gcc_g = xyes
; then
2093 if test "x$CCOPTS" = x
; then
2094 if test x
$GCC = xyes
; then
2095 echo $ac_n "checking whether ${CC-cc} accepts -Os""... $ac_c" 1>&6
2096 echo "configure:2097: checking whether ${CC-cc} accepts -Os" >&5
2097 if eval "test \"`echo '$''{'ac_Os'+set}'`\" = set"; then
2098 echo $ac_n "(cached) $ac_c" 1>&6
2100 echo 'void f(){}' > conftest.c
2101 if test -z "`${CC-cc} -Os -c conftest.c 2>&1`"; then
2111 echo "$ac_t""$ac_Os" 1>&6
2112 if test x
$mflag = x486
; then
2113 CCOPTS
="-Wall $mmflag -fstrength-reduce -ffast-math -fomit-frame-pointer -pipe "
2114 echo $ac_n "checking whether ${CC-cc} accepts -fno-exceptions""... $ac_c" 1>&6
2115 echo "configure:2116: checking whether ${CC-cc} accepts -fno-exceptions" >&5
2116 if eval "test \"`echo '$''{'ac_exceptions'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 echo 'void f(){}' > conftest.c
2120 if test -z "`${CC-cc} -fno-exceptions -c conftest.c 2>&1`"; then
2121 eval "ac_exceptions=yes"
2122 CCOPTS
="$CCOPTS -fno-exceptions"
2124 eval "ac_exceptions=no"
2130 echo "$ac_t""$ac_exceptions" 1>&6
2131 CCOPTS1
="$CCOPTS -O6 -funroll-loops"
2132 if test x
$use_cc_g_flag = xyes
; then
2133 if test $cc_uses_g = yes; then
2134 CCOPTS
='-m486 -g -O'
2138 CCOPTS
='-Wall -fstrength-reduce -ffast-math -pipe'
2139 echo $ac_n "checking whether ${CC-cc} accepts -fno-exceptions""... $ac_c" 1>&6
2140 echo "configure:2141: checking whether ${CC-cc} accepts -fno-exceptions" >&5
2141 if eval "test \"`echo '$''{'ac_exceptions'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 echo 'void f(){}' > conftest.c
2145 if test -z "`${CC-cc} -fno-exceptions -c conftest.c 2>&1`"; then
2146 eval "ac_exceptions=yes"
2147 CCOPTS
="$CCOPTS -fno-exceptions"
2149 eval "ac_exceptions=no"
2155 echo "$ac_t""$ac_exceptions" 1>&6
2156 CCOPTS1
='-O6 -Wall -fstrength-reduce -ffast-math -fforce-mem -fforce-addr -funroll-loops -pipe'
2157 if test x
$use_cc_g_flag = xyes
; then
2158 if test $cc_uses_g = yes; then
2163 if test x
$ac_Os = xyes
; then
2164 CCOPTS
="$CCOPTS -Os"
2166 CCOPTS
="$CCOPTS -O2"
2168 echo $ac_n "checking whether ${CC-cc} accepts -fmove-all-movables""... $ac_c" 1>&6
2169 echo "configure:2170: checking whether ${CC-cc} accepts -fmove-all-movables" >&5
2170 if eval "test \"`echo '$''{'ac_movables'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 echo 'void f(){}' > conftest.c
2174 if test -z "`${CC-cc} -fmove-all-movables -c conftest.c 2>&1`"; then
2175 eval "ac_movables=yes"
2176 CCOPTS1
="$CCOPTS1 -fmove-all-movables"
2178 eval "ac_movables=no"
2184 echo "$ac_t""$ac_movables" 1>&6
2185 echo $ac_n "checking whether ${CC-cc} accepts -frerun-loop-opt""... $ac_c" 1>&6
2186 echo "configure:2187: checking whether ${CC-cc} accepts -frerun-loop-opt" >&5
2187 if eval "test \"`echo '$''{'ac_loopopt'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2190 echo 'void f(){}' > conftest.c
2191 if test -z "`${CC-cc} -frerun-loop-opt -c conftest.c 2>&1`"; then
2192 eval "ac_loopopt=yes"
2193 CCOPTS1
="$CCOPTS1 -frerun-loop-opt"
2195 eval "ac_loopopt=no"
2201 echo "$ac_t""$ac_loopopt" 1>&6
2203 if test x
$use_cc_g_flag = xyes
; then
2209 CCOPTS
="-Aa -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_HPUX_SOURCE -D_INCLUDE_XOPEN_SOURCE +O3"
2212 echo $ac_n "checking whether ${CC-cc} accepts -O""... $ac_c" 1>&6
2213 echo "configure:2214: checking whether ${CC-cc} accepts -O" >&5
2214 if eval "test \"`echo '$''{'ac_optimizations'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2217 echo 'void f(){}' > conftest.c
2218 if test -z "`${CC-cc} -O -c conftest.c 2>&1`"; then
2219 eval "ac_optimizations=yes"
2222 eval "ac_optimizations=no"
2228 echo "$ac_t""$ac_optimizations" 1>&6
2236 if test "$CCOPTS1" = "" ; then
2246 CFLAGS1
=${CFLAGS1--O}
2247 LDFLAGS
=${LDFLAGS--O}
2249 if test x
$pthread = xtest
; then
2250 for ac_func
in pthread_create
2252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2253 echo "configure:2254: checking for $ac_func" >&5
2254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2257 cat > conftest.
$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2260 /* System header to define __stub macros and hopefully few prototypes,
2261 which can conflict with char $ac_func(); below. */
2263 /* Override any gcc2 internal prototype to avoid an error. */
2264 /* We use char because int might match the return type of a gcc2
2265 builtin and then its argument prototype would still apply. */
2270 /* The GNU C library defines this for functions which it implements
2271 to always fail with ENOSYS. Some functions are actually named
2272 something starting with __ and the normal name is an alias. */
2273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2281 if { (eval echo configure
:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2283 eval "ac_cv_func_$ac_func=yes"
2285 echo "configure: failed program was:" >&5
2286 cat conftest.
$ac_ext >&5
2288 eval "ac_cv_func_$ac_func=no"
2293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2294 echo "$ac_t""yes" 1>&6
2295 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2296 cat >> confdefs.h
<<EOF
2297 #define $ac_tr_func 1
2301 echo "$ac_t""no" 1>&6
2305 if test "x$ac_cv_func_pthread_create" = xyes
; then
2306 cat >> confdefs.h
<<\EOF
2307 #define USE_PTHREAD 1
2310 CFLAGS
="$CFLAGS -D_REENTRANT"
2311 CFLAGS1
="$CFLAGS1 -D_REENTRANT"
2312 for ac_func
in pthread_sighandler
2314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_func" >&5
2316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 cat > conftest.
$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 /* System header to define __stub macros and hopefully few prototypes,
2323 which can conflict with char $ac_func(); below. */
2325 /* Override any gcc2 internal prototype to avoid an error. */
2326 /* We use char because int might match the return type of a gcc2
2327 builtin and then its argument prototype would still apply. */
2332 /* The GNU C library defines this for functions which it implements
2333 to always fail with ENOSYS. Some functions are actually named
2334 something starting with __ and the normal name is an alias. */
2335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2343 if { (eval echo configure
:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2345 eval "ac_cv_func_$ac_func=yes"
2347 echo "configure: failed program was:" >&5
2348 cat conftest.
$ac_ext >&5
2350 eval "ac_cv_func_$ac_func=no"
2355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2356 echo "$ac_t""yes" 1>&6
2357 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2358 cat >> confdefs.h
<<EOF
2359 #define $ac_tr_func 1
2363 echo "$ac_t""no" 1>&6
2368 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2369 echo "configure:2370: checking for pthread_create in -lpthread" >&5
2370 ac_lib_var
=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 ac_save_LIBS
="$LIBS"
2375 LIBS
="-lpthread $LIBS"
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char pthread_create();
2388 if { (eval echo configure
:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2395 eval "ac_cv_lib_$ac_lib_var=no"
2398 LIBS
="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 ac_tr_lib
=HAVE_LIB
`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2404 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2405 cat >> confdefs.h
<<EOF
2406 #define $ac_tr_lib 1
2409 LIBS
="-lpthread $LIBS"
2412 echo "$ac_t""no" 1>&6
2415 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then
2416 cat >> confdefs.h
<<\EOF
2417 #define USE_PTHREAD 1
2420 CFLAGS
="$CFLAGS -D_REENTRANT"
2421 CFLAGS1
="$CFLAGS1 -D_REENTRANT"
2422 for ac_func
in pthread_sighandler
2424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2425 echo "configure:2426: checking for $ac_func" >&5
2426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 cat > conftest.
$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2432 /* System header to define __stub macros and hopefully few prototypes,
2433 which can conflict with char $ac_func(); below. */
2435 /* Override any gcc2 internal prototype to avoid an error. */
2436 /* We use char because int might match the return type of a gcc2
2437 builtin and then its argument prototype would still apply. */
2442 /* The GNU C library defines this for functions which it implements
2443 to always fail with ENOSYS. Some functions are actually named
2444 something starting with __ and the normal name is an alias. */
2445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2453 if { (eval echo configure
:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2455 eval "ac_cv_func_$ac_func=yes"
2457 echo "configure: failed program was:" >&5
2458 cat conftest.
$ac_ext >&5
2460 eval "ac_cv_func_$ac_func=no"
2465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2466 echo "$ac_t""yes" 1>&6
2467 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2468 cat >> confdefs.h
<<EOF
2469 #define $ac_tr_func 1
2473 echo "$ac_t""no" 1>&6
2478 echo "No pthread library available! Can not compile threaded version"
2492 # Check whether --with-sunos-curses or --without-sunos-curses was given.
2493 if test "${with_sunos_curses+set}" = set; then
2494 withval
="$with_sunos_curses"
2496 if test x
$withval = xyes
; then
2498 search_ncurses
=false
2500 screen_manager
="SunOS 4.x /usr/5include curses"
2501 echo "$ac_t""Using SunOS 4.x /usr/5include curses" 1>&6
2502 cat >> confdefs.h
<<\EOF
2503 #define SUNOS_CURSES 1
2506 cat >> confdefs.h
<<\EOF
2507 #define NO_COLOR_SUPPORT 1
2510 cat >> confdefs.h
<<\EOF
2511 #define USE_SYSV_CURSES 1
2514 CFLAGS
="$CFLAGS -I/usr/5include"
2515 echo "$ac_t""Please note that some screen refreshs may fail" 1>&6
2516 echo "configure: warning: Reconsider using Slang" 1>&2
2523 # Check whether --with-osf1-curses or --without-osf1-curses was given.
2524 if test "${with_osf1_curses+set}" = set; then
2525 withval
="$with_osf1_curses"
2527 if test x
$withval = xyes
; then
2529 echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
2530 echo "configure:2531: checking for initscr in -lcurses" >&5
2531 ac_lib_var
=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
2532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2535 ac_save_LIBS
="$LIBS"
2536 LIBS
="-lcurses $LIBS"
2537 cat > conftest.
$ac_ext <<EOF
2538 #line 2539 "configure"
2539 #include "confdefs.h"
2540 /* Override any gcc2 internal prototype to avoid an error. */
2541 /* We use char because int might match the return type of a gcc2
2542 builtin and then its argument prototype would still apply. */
2549 if { (eval echo configure
:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2551 eval "ac_cv_lib_$ac_lib_var=yes"
2553 echo "configure: failed program was:" >&5
2554 cat conftest.
$ac_ext >&5
2556 eval "ac_cv_lib_$ac_lib_var=no"
2559 LIBS
="$ac_save_LIBS"
2562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2563 echo "$ac_t""yes" 1>&6
2564 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2565 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2566 cat >> confdefs.h
<<EOF
2567 #define $ac_tr_lib 1
2570 LIBS
="-lcurses $LIBS"
2573 echo "$ac_t""no" 1>&6
2576 if test "x$ac_cv_lib_curses_initscr" = xyes
; then
2577 echo "$ac_t""Using OSF1 curses" 1>&6
2578 search_ncurses
=false
2580 screen_manager
="OSF1 curses"
2581 cat >> confdefs.h
<<\EOF
2582 #define NO_COLOR_SUPPORT 1
2585 cat >> confdefs.h
<<\EOF
2586 #define USE_SYSV_CURSES 1
2596 # Check whether --with-vcurses or --without-vcurses was given.
2597 if test "${with_vcurses+set}" = set; then
2598 withval
="$with_vcurses"
2599 if test x
$withval = xyes
; then
2602 CFLAGS
="$CFLAGS -I$withval"
2605 echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
2606 echo "configure:2607: checking for initscr in -lcurses" >&5
2607 ac_lib_var
=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
2608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 ac_save_LIBS
="$LIBS"
2612 LIBS
="-lcurses $LIBS"
2613 cat > conftest.
$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2616 /* Override any gcc2 internal prototype to avoid an error. */
2617 /* We use char because int might match the return type of a gcc2
2618 builtin and then its argument prototype would still apply. */
2625 if { (eval echo configure
:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2627 eval "ac_cv_lib_$ac_lib_var=yes"
2629 echo "configure: failed program was:" >&5
2630 cat conftest.
$ac_ext >&5
2632 eval "ac_cv_lib_$ac_lib_var=no"
2635 LIBS
="$ac_save_LIBS"
2638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2639 echo "$ac_t""yes" 1>&6
2640 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
2641 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2642 cat >> confdefs.h
<<EOF
2643 #define $ac_tr_lib 1
2646 LIBS
="-lcurses $LIBS"
2649 echo "$ac_t""no" 1>&6
2652 if test "x$ac_cv_lib_curses_initscr" = xyes
; then
2653 echo "$ac_t""Using SysV curses" 1>&6
2655 cat >> confdefs.h
<<\EOF
2656 #define USE_SYSV_CURSES 1
2659 search_ncurses
=false
2660 screen_manager
="SysV/curses"
2667 # Check whether --with-ncurses or --without-ncurses was given.
2668 if test "${with_ncurses+set}" = set; then
2669 withval
="$with_ncurses"
2670 if test x
$withval = xyes
2674 LIBS
="$LIBS -L$withval/lib -lncurses"
2675 CFLAGS
="$CFLAGS -I$withval/include"
2676 search_ncurses
=false
2678 screen_manager
="ncurses"
2679 cat >> confdefs.h
<<\EOF
2680 #define USE_NCURSES 1
2693 if test "$aa_driver_test" = yes; then
2694 echo "checking "location of curses
"" 1>&6
2695 echo "configure:2696: checking "location of curses
"" >&5
2696 echo $ac_n "checking for Gpm_Repeat in -lgpm""... $ac_c" 1>&6
2697 echo "configure:2698: checking for Gpm_Repeat in -lgpm" >&5
2698 ac_lib_var
=`echo gpm'_'Gpm_Repeat | sed 'y%./+-%__p_%'`
2699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 ac_save_LIBS
="$LIBS"
2704 cat > conftest.
$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2707 /* Override any gcc2 internal prototype to avoid an error. */
2708 /* We use char because int might match the return type of a gcc2
2709 builtin and then its argument prototype would still apply. */
2716 if { (eval echo configure
:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2718 eval "ac_cv_lib_$ac_lib_var=yes"
2720 echo "configure: failed program was:" >&5
2721 cat conftest.
$ac_ext >&5
2723 eval "ac_cv_lib_$ac_lib_var=no"
2726 LIBS
="$ac_save_LIBS"
2729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 ac_tr_lib
=HAVE_LIB
`echo gpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2732 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2733 cat >> confdefs.h
<<EOF
2734 #define $ac_tr_lib 1
2740 echo "$ac_t""no" 1>&6
2743 echo $ac_n "checking for SLsmg_init_smg in -lslang""... $ac_c" 1>&6
2744 echo "configure:2745: checking for SLsmg_init_smg in -lslang" >&5
2745 ac_lib_var
=`echo slang'_'SLsmg_init_smg | sed 'y%./+-%__p_%'`
2746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2749 ac_save_LIBS
="$LIBS"
2750 LIBS
="-lslang $LIBS"
2751 cat > conftest.
$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 /* Override any gcc2 internal prototype to avoid an error. */
2755 /* We use char because int might match the return type of a gcc2
2756 builtin and then its argument prototype would still apply. */
2757 char SLsmg_init_smg();
2763 if { (eval echo configure
:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2765 eval "ac_cv_lib_$ac_lib_var=yes"
2767 echo "configure: failed program was:" >&5
2768 cat conftest.
$ac_ext >&5
2770 eval "ac_cv_lib_$ac_lib_var=no"
2773 LIBS
="$ac_save_LIBS"
2776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2777 echo "$ac_t""yes" 1>&6
2778 ac_tr_lib
=HAVE_LIB
`echo slang | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2780 cat >> confdefs.h
<<EOF
2781 #define $ac_tr_lib 1
2784 LIBS
="-lslang $LIBS"
2787 echo "$ac_t""no" 1>&6
2794 if test -f /usr
/include
/ncurses.h
2798 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
2799 echo "configure:2800: checking for initscr in -lncurses" >&5
2800 ac_lib_var
=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
2801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2804 ac_save_LIBS
="$LIBS"
2805 LIBS
="-lncurses $LIBS"
2806 cat > conftest.
$ac_ext <<EOF
2807 #line 2808 "configure"
2808 #include "confdefs.h"
2809 /* Override any gcc2 internal prototype to avoid an error. */
2810 /* We use char because int might match the return type of a gcc2
2811 builtin and then its argument prototype would still apply. */
2818 if { (eval echo configure
:2819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2820 eval "ac_cv_lib_$ac_lib_var=yes"
2822 echo "configure: failed program was:" >&5
2823 cat conftest.
$ac_ext >&5
2825 eval "ac_cv_lib_$ac_lib_var=no"
2828 LIBS
="$ac_save_LIBS"
2831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2832 echo "$ac_t""yes" 1>&6
2833 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2834 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2835 cat >> confdefs.h
<<EOF
2836 #define $ac_tr_lib 1
2839 LIBS
="-lncurses $LIBS"
2842 echo "$ac_t""no" 1>&6
2845 if test "x$ac_cv_lib_ncurses_initscr" = xyes
; then
2846 echo "$ac_t""Found ncurses on /usr/include/ncurses.h" 1>&6
2848 CFLAGS
="$CFLAGS -I/usr/include/ncurses "
2849 search_ncurses
=false
2851 screen_manager
="ncurses on /usr/include"
2852 cat >> confdefs.h
<<\EOF
2853 #define USE_NCURSES 1
2857 unset ac_cv_lib_ncurses_initscr
2866 if test -f /usr
/include
/ncurses
/ncurses.h
2870 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
2871 echo "configure:2872: checking for initscr in -lncurses" >&5
2872 ac_lib_var
=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
2873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 ac_save_LIBS
="$LIBS"
2877 LIBS
="-lncurses $LIBS"
2878 cat > conftest.
$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2881 /* Override any gcc2 internal prototype to avoid an error. */
2882 /* We use char because int might match the return type of a gcc2
2883 builtin and then its argument prototype would still apply. */
2890 if { (eval echo configure
:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2892 eval "ac_cv_lib_$ac_lib_var=yes"
2894 echo "configure: failed program was:" >&5
2895 cat conftest.
$ac_ext >&5
2897 eval "ac_cv_lib_$ac_lib_var=no"
2900 LIBS
="$ac_save_LIBS"
2903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2904 echo "$ac_t""yes" 1>&6
2905 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2906 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2907 cat >> confdefs.h
<<EOF
2908 #define $ac_tr_lib 1
2911 LIBS
="-lncurses $LIBS"
2914 echo "$ac_t""no" 1>&6
2917 if test "x$ac_cv_lib_ncurses_initscr" = xyes
; then
2918 echo "$ac_t""Found ncurses on /usr/include/ncurses/ncurses.h" 1>&6
2920 CFLAGS
="$CFLAGS -I/usr/include/ncurses"
2921 search_ncurses
=false
2923 screen_manager
="ncurses on /usr/include/ncurses"
2924 cat >> confdefs.h
<<\EOF
2925 #define USE_NCURSES 1
2929 unset ac_cv_lib_ncurses_initscr
2938 if test -f /usr
/local
/include
/ncurses.h
2942 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
2943 echo "configure:2944: checking for initscr in -lncurses" >&5
2944 ac_lib_var
=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
2945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2948 ac_save_LIBS
="$LIBS"
2949 LIBS
="-lncurses $LIBS"
2950 cat > conftest.
$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 /* Override any gcc2 internal prototype to avoid an error. */
2954 /* We use char because int might match the return type of a gcc2
2955 builtin and then its argument prototype would still apply. */
2962 if { (eval echo configure
:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2964 eval "ac_cv_lib_$ac_lib_var=yes"
2966 echo "configure: failed program was:" >&5
2967 cat conftest.
$ac_ext >&5
2969 eval "ac_cv_lib_$ac_lib_var=no"
2972 LIBS
="$ac_save_LIBS"
2975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2976 echo "$ac_t""yes" 1>&6
2977 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2978 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2979 cat >> confdefs.h
<<EOF
2980 #define $ac_tr_lib 1
2983 LIBS
="-lncurses $LIBS"
2986 echo "$ac_t""no" 1>&6
2989 if test "x$ac_cv_lib_ncurses_initscr" = xyes
; then
2990 echo "$ac_t""Found ncurses on /usr/local/include/ncurses.h" 1>&6
2992 CFLAGS
="$CFLAGS -L/usr/local/lib"
2993 search_ncurses
=false
2995 screen_manager
=-I/usr
/local
/include
2996 cat >> confdefs.h
<<\EOF
2997 #define USE_NCURSES 1
3001 unset ac_cv_lib_ncurses_initscr
3010 if test -f /usr
/local
/include
/ncurses
/ncurses.h
3013 LIBS
="$LIBS -L/usr/local/lib -L/usr/local/lib/ncurses"
3014 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
3015 echo "configure:3016: checking for initscr in -lncurses" >&5
3016 ac_lib_var
=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
3017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 ac_save_LIBS
="$LIBS"
3021 LIBS
="-lncurses $LIBS"
3022 cat > conftest.
$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3025 /* Override any gcc2 internal prototype to avoid an error. */
3026 /* We use char because int might match the return type of a gcc2
3027 builtin and then its argument prototype would still apply. */
3034 if { (eval echo configure
:3035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3036 eval "ac_cv_lib_$ac_lib_var=yes"
3038 echo "configure: failed program was:" >&5
3039 cat conftest.
$ac_ext >&5
3041 eval "ac_cv_lib_$ac_lib_var=no"
3044 LIBS
="$ac_save_LIBS"
3047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3048 echo "$ac_t""yes" 1>&6
3049 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3050 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3051 cat >> confdefs.h
<<EOF
3052 #define $ac_tr_lib 1
3055 LIBS
="-lncurses $LIBS"
3058 echo "$ac_t""no" 1>&6
3061 if test "x$ac_cv_lib_ncurses_initscr" = xyes
; then
3062 echo "$ac_t""Found ncurses on /usr/local/include/ncurses/ncurses.h" 1>&6
3063 LIBS
="$LIBS -L/usr/local/lib -L/usr/local/lib/ncurses"
3064 CFLAGS
="$CFLAGS -I/usr/local/include/ncurses"
3065 search_ncurses
=false
3067 screen_manager
="ncurses on /usr/local/include/ncurses"
3068 cat >> confdefs.h
<<\EOF
3069 #define USE_NCURSES 1
3073 unset ac_cv_lib_ncurses_initscr
3083 if test -f /usr
/local
/include
/ncurses
/curses.h
3086 LIBS
="$LIBS -L/usr/local/lib"
3087 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
3088 echo "configure:3089: checking for initscr in -lncurses" >&5
3089 ac_lib_var
=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
3090 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 ac_save_LIBS
="$LIBS"
3094 LIBS
="-lncurses $LIBS"
3095 cat > conftest.
$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3098 /* Override any gcc2 internal prototype to avoid an error. */
3099 /* We use char because int might match the return type of a gcc2
3100 builtin and then its argument prototype would still apply. */
3107 if { (eval echo configure
:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3109 eval "ac_cv_lib_$ac_lib_var=yes"
3111 echo "configure: failed program was:" >&5
3112 cat conftest.
$ac_ext >&5
3114 eval "ac_cv_lib_$ac_lib_var=no"
3117 LIBS
="$ac_save_LIBS"
3120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3121 echo "$ac_t""yes" 1>&6
3122 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3123 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3124 cat >> confdefs.h
<<EOF
3125 #define $ac_tr_lib 1
3128 LIBS
="-lncurses $LIBS"
3131 echo "$ac_t""no" 1>&6
3134 if test "x$ac_cv_lib_ncurses_initscr" = xyes
; then
3135 echo "$ac_t""Found ncurses on /usr/local/include/ncurses/curses.h" 1>&6
3136 LIBS
="$LIBS -L/usr/local/lib"
3137 CFLAGS
="$CFLAGS -I/usr/local/include/ncurses -DRENAMED_NCURSES"
3138 search_ncurses
=false
3140 screen_manager
="renamed ncurses on /usr/local/.../ncurses"
3141 cat >> confdefs.h
<<\EOF
3142 #define USE_NCURSES 1
3146 unset ac_cv_lib_ncurses_initscr
3156 if test -f /usr
/include
/ncurses
/curses.h
3160 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
3161 echo "configure:3162: checking for initscr in -lncurses" >&5
3162 ac_lib_var
=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
3163 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 ac_save_LIBS
="$LIBS"
3167 LIBS
="-lncurses $LIBS"
3168 cat > conftest.
$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3171 /* Override any gcc2 internal prototype to avoid an error. */
3172 /* We use char because int might match the return type of a gcc2
3173 builtin and then its argument prototype would still apply. */
3180 if { (eval echo configure
:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3182 eval "ac_cv_lib_$ac_lib_var=yes"
3184 echo "configure: failed program was:" >&5
3185 cat conftest.
$ac_ext >&5
3187 eval "ac_cv_lib_$ac_lib_var=no"
3190 LIBS
="$ac_save_LIBS"
3193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3194 echo "$ac_t""yes" 1>&6
3195 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3196 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3197 cat >> confdefs.h
<<EOF
3198 #define $ac_tr_lib 1
3201 LIBS
="-lncurses $LIBS"
3204 echo "$ac_t""no" 1>&6
3207 if test "x$ac_cv_lib_ncurses_initscr" = xyes
; then
3208 echo "$ac_t""Found ncurses on /usr/include/ncurses/curses.h" 1>&6
3210 CFLAGS
="$CFLAGS -I/usr/include/ncurses -DRENAMED_NCURSES"
3211 search_ncurses
=false
3213 screen_manager
="renamed ncurses on /usr/include/ncurses"
3214 cat >> confdefs.h
<<\EOF
3215 #define USE_NCURSES 1
3219 unset ac_cv_lib_ncurses_initscr
3228 if test -f /usr
/include
/curses.h
3232 echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
3233 echo "configure:3234: checking for initscr in -lcurses" >&5
3234 ac_lib_var
=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
3235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 ac_save_LIBS
="$LIBS"
3239 LIBS
="-lcurses $LIBS"
3240 cat > conftest.
$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 /* Override any gcc2 internal prototype to avoid an error. */
3244 /* We use char because int might match the return type of a gcc2
3245 builtin and then its argument prototype would still apply. */
3252 if { (eval echo configure
:3253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3254 eval "ac_cv_lib_$ac_lib_var=yes"
3256 echo "configure: failed program was:" >&5
3257 cat conftest.
$ac_ext >&5
3259 eval "ac_cv_lib_$ac_lib_var=no"
3262 LIBS
="$ac_save_LIBS"
3265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3266 echo "$ac_t""yes" 1>&6
3267 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3268 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3269 cat >> confdefs.h
<<EOF
3270 #define $ac_tr_lib 1
3273 LIBS
="-lcurses $LIBS"
3276 echo "$ac_t""no" 1>&6
3279 if test "x$ac_cv_lib_curses_initscr" = xyes
; then
3280 echo "$ac_t""Found generic curses on /usr/include/curses.h" 1>&6
3282 search_ncurses
=false
3284 screen_manager
="curses on /usr/include"
3285 cat >> confdefs.h
<<\EOF
3286 #define USE_CURSES 1
3290 unset ac_cv_lib_curses_initscr
3299 cat > conftest.
$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3302 #include </usr/include/curses.h>
3304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305 egrep "init_color" >/dev
/null
2>&1; then
3308 echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
3309 echo "configure:3310: checking for initscr in -lcurses" >&5
3310 ac_lib_var
=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
3311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 ac_save_LIBS
="$LIBS"
3315 LIBS
="-lcurses $LIBS"
3316 cat > conftest.
$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3319 /* Override any gcc2 internal prototype to avoid an error. */
3320 /* We use char because int might match the return type of a gcc2
3321 builtin and then its argument prototype would still apply. */
3328 if { (eval echo configure
:3329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3330 eval "ac_cv_lib_$ac_lib_var=yes"
3332 echo "configure: failed program was:" >&5
3333 cat conftest.
$ac_ext >&5
3335 eval "ac_cv_lib_$ac_lib_var=no"
3338 LIBS
="$ac_save_LIBS"
3341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3342 echo "$ac_t""yes" 1>&6
3343 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
3344 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3345 cat >> confdefs.h
<<EOF
3346 #define $ac_tr_lib 1
3349 LIBS
="-lcurses $LIBS"
3352 echo "$ac_t""no" 1>&6
3355 if test "x$ac_cv_lib_curses_initscr" = xyes
; then
3356 echo "$ac_t""Using SysV curses" 1>&6
3358 cat >> confdefs.h
<<\EOF
3359 #define USE_SYSV_CURSES 1
3362 search_ncurses
=false
3363 screen_manager
="SysV/curses"
3373 if test -f /usr
/5include
/curses.h
3376 search_ncurses
=false
3378 screen_manager
="SunOS 4.x /usr/5include curses"
3379 echo "$ac_t""Using SunOS 4.x /usr/5include curses" 1>&6
3380 cat >> confdefs.h
<<\EOF
3381 #define SUNOS_CURSES 1
3384 cat >> confdefs.h
<<\EOF
3385 #define NO_COLOR_SUPPORT 1
3388 cat >> confdefs.h
<<\EOF
3389 #define USE_SYSV_CURSES 1
3392 CFLAGS
="$CFLAGS -I/usr/5include"
3393 echo "$ac_t""Please note that some screen refreshs may fail" 1>&6
3394 echo "configure: warning: Reconsider using Slang" 1>&2
3400 if test "x$no_x" = x
; then
3401 LIBS
="$LIBS $X_EXTRA_LIBS $X_LIBS"
3402 CFLAGS
="$CFLAGS $X_CFLAGS"
3408 LIBS
="$LIBS $X_EXTRA_LIBS $X_LIBS -lX11"
3409 if test -f /usr
/include
/aalib.h
3413 unset ac_cv_lib_aa_aa_init
3414 echo $ac_n "checking for aa_init in -laa""... $ac_c" 1>&6
3415 echo "configure:3416: checking for aa_init in -laa" >&5
3416 ac_lib_var
=`echo aa'_'aa_init | sed 'y%./+-%__p_%'`
3417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3420 ac_save_LIBS
="$LIBS"
3422 cat > conftest.
$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3425 /* Override any gcc2 internal prototype to avoid an error. */
3426 /* We use char because int might match the return type of a gcc2
3427 builtin and then its argument prototype would still apply. */
3434 if { (eval echo configure
:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3436 eval "ac_cv_lib_$ac_lib_var=yes"
3438 echo "configure: failed program was:" >&5
3439 cat conftest.
$ac_ext >&5
3441 eval "ac_cv_lib_$ac_lib_var=no"
3444 LIBS
="$ac_save_LIBS"
3447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3448 echo "$ac_t""yes" 1>&6
3449 ac_tr_lib
=HAVE_LIB
`echo aa | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3451 cat >> confdefs.h
<<EOF
3452 #define $ac_tr_lib 1
3458 echo "$ac_t""no" 1>&6
3461 if test "x$ac_cv_lib_aa_aa_init" = xyes
; then
3462 echo "$ac_t""Found aalib on /usr/include/aalib.h" 1>&6
3468 unset ac_cv_lib_aa_aa_init
3478 LIBS
="$LIBS $X_EXTRA_LIBS $X_LIBS -lX11"
3479 if test -f /usr
/local
/include
/aalib.h
3482 LIBS
="$LIBS -L/usr/local/lib"
3483 unset ac_cv_lib_aa_aa_init
3484 echo $ac_n "checking for aa_init in -laa""... $ac_c" 1>&6
3485 echo "configure:3486: checking for aa_init in -laa" >&5
3486 ac_lib_var
=`echo aa'_'aa_init | sed 'y%./+-%__p_%'`
3487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 ac_save_LIBS
="$LIBS"
3492 cat > conftest.
$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3495 /* Override any gcc2 internal prototype to avoid an error. */
3496 /* We use char because int might match the return type of a gcc2
3497 builtin and then its argument prototype would still apply. */
3504 if { (eval echo configure
:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3506 eval "ac_cv_lib_$ac_lib_var=yes"
3508 echo "configure: failed program was:" >&5
3509 cat conftest.
$ac_ext >&5
3511 eval "ac_cv_lib_$ac_lib_var=no"
3514 LIBS
="$ac_save_LIBS"
3517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3518 echo "$ac_t""yes" 1>&6
3519 ac_tr_lib
=HAVE_LIB
`echo aa | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3520 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3521 cat >> confdefs.h
<<EOF
3522 #define $ac_tr_lib 1
3528 echo "$ac_t""no" 1>&6
3531 if test "x$ac_cv_lib_aa_aa_init" = xyes
; then
3532 echo "$ac_t""Found aalib on /usr/local/include/aalib.h" 1>&6
3533 LIBS
="$LIBS -L/usr/local/lib"
3534 CFLAGS
="$CFLAGS -I/usr/local/include"
3538 unset ac_cv_lib_aa_aa_init
3544 for name
in ..
/aalib-
*.
*
3550 LIBS
="$LIBS $X_EXTRA_LIBS $X_LIBS -lX11"
3551 if test -f $name/aalib.h
3554 LIBS
="$LIBS "-L$name""
3555 unset ac_cv_lib_aa_aa_init
3556 echo $ac_n "checking for aa_init in -laa""... $ac_c" 1>&6
3557 echo "configure:3558: checking for aa_init in -laa" >&5
3558 ac_lib_var
=`echo aa'_'aa_init | sed 'y%./+-%__p_%'`
3559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3562 ac_save_LIBS
="$LIBS"
3564 cat > conftest.
$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 /* Override any gcc2 internal prototype to avoid an error. */
3568 /* We use char because int might match the return type of a gcc2
3569 builtin and then its argument prototype would still apply. */
3576 if { (eval echo configure
:3577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3578 eval "ac_cv_lib_$ac_lib_var=yes"
3580 echo "configure: failed program was:" >&5
3581 cat conftest.
$ac_ext >&5
3583 eval "ac_cv_lib_$ac_lib_var=no"
3586 LIBS
="$ac_save_LIBS"
3589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3590 echo "$ac_t""yes" 1>&6
3591 ac_tr_lib
=HAVE_LIB
`echo aa | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3592 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3593 cat >> confdefs.h
<<EOF
3594 #define $ac_tr_lib 1
3600 echo "$ac_t""no" 1>&6
3603 if test "x$ac_cv_lib_aa_aa_init" = xyes
; then
3604 echo "$ac_t""Found aalib on $name/aalib.h" 1>&6
3605 LIBS
="$LIBS "-L$name""
3606 CFLAGS
="$CFLAGS "-I$name""
3610 unset ac_cv_lib_aa_aa_init
3622 curses_driver_test
=no
3626 if test "$curses_driver_test" = yes; then
3629 echo "checking "location of curses
"" 1>&6
3630 echo "configure:3631: checking "location of curses
"" >&5
3635 if test -f /usr
/include
/ncurses.h
3639 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
3640 echo "configure:3641: checking for initscr in -lncurses" >&5
3641 ac_lib_var
=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
3642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 ac_save_LIBS
="$LIBS"
3646 LIBS
="-lncurses $LIBS"
3647 cat > conftest.
$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 /* Override any gcc2 internal prototype to avoid an error. */
3651 /* We use char because int might match the return type of a gcc2
3652 builtin and then its argument prototype would still apply. */
3659 if { (eval echo configure
:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3661 eval "ac_cv_lib_$ac_lib_var=yes"
3663 echo "configure: failed program was:" >&5
3664 cat conftest.
$ac_ext >&5
3666 eval "ac_cv_lib_$ac_lib_var=no"
3669 LIBS
="$ac_save_LIBS"
3672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3673 echo "$ac_t""yes" 1>&6
3674 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3675 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3676 cat >> confdefs.h
<<EOF
3677 #define $ac_tr_lib 1
3680 LIBS
="-lncurses $LIBS"
3683 echo "$ac_t""no" 1>&6
3686 if test "x$ac_cv_lib_ncurses_initscr" = xyes
; then
3687 echo "$ac_t""Found ncurses on /usr/include/ncurses.h" 1>&6
3689 CFLAGS
="$CFLAGS -I/usr/include/ncurses "
3690 search_ncurses
=false
3692 screen_manager
="ncurses on /usr/include"
3693 cat >> confdefs.h
<<\EOF
3694 #define USE_NCURSES 1
3698 unset ac_cv_lib_ncurses_initscr
3707 if test -f /usr
/include
/ncurses
/ncurses.h
3711 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
3712 echo "configure:3713: checking for initscr in -lncurses" >&5
3713 ac_lib_var
=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
3714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3717 ac_save_LIBS
="$LIBS"
3718 LIBS
="-lncurses $LIBS"
3719 cat > conftest.
$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 /* Override any gcc2 internal prototype to avoid an error. */
3723 /* We use char because int might match the return type of a gcc2
3724 builtin and then its argument prototype would still apply. */
3731 if { (eval echo configure
:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3733 eval "ac_cv_lib_$ac_lib_var=yes"
3735 echo "configure: failed program was:" >&5
3736 cat conftest.
$ac_ext >&5
3738 eval "ac_cv_lib_$ac_lib_var=no"
3741 LIBS
="$ac_save_LIBS"
3744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3745 echo "$ac_t""yes" 1>&6
3746 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3747 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3748 cat >> confdefs.h
<<EOF
3749 #define $ac_tr_lib 1
3752 LIBS
="-lncurses $LIBS"
3755 echo "$ac_t""no" 1>&6
3758 if test "x$ac_cv_lib_ncurses_initscr" = xyes
; then
3759 echo "$ac_t""Found ncurses on /usr/include/ncurses/ncurses.h" 1>&6
3761 CFLAGS
="$CFLAGS -I/usr/include/ncurses"
3762 search_ncurses
=false
3764 screen_manager
="ncurses on /usr/include/ncurses"
3765 cat >> confdefs.h
<<\EOF
3766 #define USE_NCURSES 1
3770 unset ac_cv_lib_ncurses_initscr
3779 if test -f /usr
/local
/include
/ncurses.h
3783 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
3784 echo "configure:3785: checking for initscr in -lncurses" >&5
3785 ac_lib_var
=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
3786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3789 ac_save_LIBS
="$LIBS"
3790 LIBS
="-lncurses $LIBS"
3791 cat > conftest.
$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 /* Override any gcc2 internal prototype to avoid an error. */
3795 /* We use char because int might match the return type of a gcc2
3796 builtin and then its argument prototype would still apply. */
3803 if { (eval echo configure
:3804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3805 eval "ac_cv_lib_$ac_lib_var=yes"
3807 echo "configure: failed program was:" >&5
3808 cat conftest.
$ac_ext >&5
3810 eval "ac_cv_lib_$ac_lib_var=no"
3813 LIBS
="$ac_save_LIBS"
3816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3817 echo "$ac_t""yes" 1>&6
3818 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3819 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3820 cat >> confdefs.h
<<EOF
3821 #define $ac_tr_lib 1
3824 LIBS
="-lncurses $LIBS"
3827 echo "$ac_t""no" 1>&6
3830 if test "x$ac_cv_lib_ncurses_initscr" = xyes
; then
3831 echo "$ac_t""Found ncurses on /usr/local/include/ncurses.h" 1>&6
3833 CFLAGS
="$CFLAGS -L/usr/local/lib"
3834 search_ncurses
=false
3836 screen_manager
=-I/usr
/local
/include
3837 cat >> confdefs.h
<<\EOF
3838 #define USE_NCURSES 1
3842 unset ac_cv_lib_ncurses_initscr
3851 if test -f /usr
/local
/include
/ncurses
/ncurses.h
3854 LIBS
="$LIBS -L/usr/local/lib -L/usr/local/lib/ncurses"
3855 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
3856 echo "configure:3857: checking for initscr in -lncurses" >&5
3857 ac_lib_var
=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
3858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 ac_save_LIBS
="$LIBS"
3862 LIBS
="-lncurses $LIBS"
3863 cat > conftest.
$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3866 /* Override any gcc2 internal prototype to avoid an error. */
3867 /* We use char because int might match the return type of a gcc2
3868 builtin and then its argument prototype would still apply. */
3875 if { (eval echo configure
:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3877 eval "ac_cv_lib_$ac_lib_var=yes"
3879 echo "configure: failed program was:" >&5
3880 cat conftest.
$ac_ext >&5
3882 eval "ac_cv_lib_$ac_lib_var=no"
3885 LIBS
="$ac_save_LIBS"
3888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3889 echo "$ac_t""yes" 1>&6
3890 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3891 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3892 cat >> confdefs.h
<<EOF
3893 #define $ac_tr_lib 1
3896 LIBS
="-lncurses $LIBS"
3899 echo "$ac_t""no" 1>&6
3902 if test "x$ac_cv_lib_ncurses_initscr" = xyes
; then
3903 echo "$ac_t""Found ncurses on /usr/local/include/ncurses/ncurses.h" 1>&6
3904 LIBS
="$LIBS -L/usr/local/lib -L/usr/local/lib/ncurses"
3905 CFLAGS
="$CFLAGS -I/usr/local/include/ncurses"
3906 search_ncurses
=false
3908 screen_manager
="ncurses on /usr/local/include/ncurses"
3909 cat >> confdefs.h
<<\EOF
3910 #define USE_NCURSES 1
3914 unset ac_cv_lib_ncurses_initscr
3924 if test -f /usr
/local
/include
/ncurses
/curses.h
3927 LIBS
="$LIBS -L/usr/local/lib"
3928 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
3929 echo "configure:3930: checking for initscr in -lncurses" >&5
3930 ac_lib_var
=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
3931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3932 echo $ac_n "(cached) $ac_c" 1>&6
3934 ac_save_LIBS
="$LIBS"
3935 LIBS
="-lncurses $LIBS"
3936 cat > conftest.
$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3939 /* Override any gcc2 internal prototype to avoid an error. */
3940 /* We use char because int might match the return type of a gcc2
3941 builtin and then its argument prototype would still apply. */
3948 if { (eval echo configure
:3949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3950 eval "ac_cv_lib_$ac_lib_var=yes"
3952 echo "configure: failed program was:" >&5
3953 cat conftest.
$ac_ext >&5
3955 eval "ac_cv_lib_$ac_lib_var=no"
3958 LIBS
="$ac_save_LIBS"
3961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3962 echo "$ac_t""yes" 1>&6
3963 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3964 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3965 cat >> confdefs.h
<<EOF
3966 #define $ac_tr_lib 1
3969 LIBS
="-lncurses $LIBS"
3972 echo "$ac_t""no" 1>&6
3975 if test "x$ac_cv_lib_ncurses_initscr" = xyes
; then
3976 echo "$ac_t""Found ncurses on /usr/local/include/ncurses/curses.h" 1>&6
3977 LIBS
="$LIBS -L/usr/local/lib"
3978 CFLAGS
="$CFLAGS -I/usr/local/include/ncurses -DRENAMED_NCURSES"
3979 search_ncurses
=false
3981 screen_manager
="renamed ncurses on /usr/local/.../ncurses"
3982 cat >> confdefs.h
<<\EOF
3983 #define USE_NCURSES 1
3987 unset ac_cv_lib_ncurses_initscr
3997 if test -f /usr
/include
/ncurses
/curses.h
4001 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
4002 echo "configure:4003: checking for initscr in -lncurses" >&5
4003 ac_lib_var
=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
4004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 ac_save_LIBS
="$LIBS"
4008 LIBS
="-lncurses $LIBS"
4009 cat > conftest.
$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4012 /* Override any gcc2 internal prototype to avoid an error. */
4013 /* We use char because int might match the return type of a gcc2
4014 builtin and then its argument prototype would still apply. */
4021 if { (eval echo configure
:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4023 eval "ac_cv_lib_$ac_lib_var=yes"
4025 echo "configure: failed program was:" >&5
4026 cat conftest.
$ac_ext >&5
4028 eval "ac_cv_lib_$ac_lib_var=no"
4031 LIBS
="$ac_save_LIBS"
4034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4035 echo "$ac_t""yes" 1>&6
4036 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4037 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4038 cat >> confdefs.h
<<EOF
4039 #define $ac_tr_lib 1
4042 LIBS
="-lncurses $LIBS"
4045 echo "$ac_t""no" 1>&6
4048 if test "x$ac_cv_lib_ncurses_initscr" = xyes
; then
4049 echo "$ac_t""Found ncurses on /usr/include/ncurses/curses.h" 1>&6
4051 CFLAGS
="$CFLAGS -I/usr/include/ncurses -DRENAMED_NCURSES"
4052 search_ncurses
=false
4054 screen_manager
="renamed ncurses on /usr/include/ncurses"
4055 cat >> confdefs.h
<<\EOF
4056 #define USE_NCURSES 1
4060 unset ac_cv_lib_ncurses_initscr
4069 if test -f /usr
/include
/curses.h
4073 echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
4074 echo "configure:4075: checking for initscr in -lcurses" >&5
4075 ac_lib_var
=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
4076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4079 ac_save_LIBS
="$LIBS"
4080 LIBS
="-lcurses $LIBS"
4081 cat > conftest.
$ac_ext <<EOF
4082 #line 4083 "configure"
4083 #include "confdefs.h"
4084 /* Override any gcc2 internal prototype to avoid an error. */
4085 /* We use char because int might match the return type of a gcc2
4086 builtin and then its argument prototype would still apply. */
4093 if { (eval echo configure
:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4095 eval "ac_cv_lib_$ac_lib_var=yes"
4097 echo "configure: failed program was:" >&5
4098 cat conftest.
$ac_ext >&5
4100 eval "ac_cv_lib_$ac_lib_var=no"
4103 LIBS
="$ac_save_LIBS"
4106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4107 echo "$ac_t""yes" 1>&6
4108 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4110 cat >> confdefs.h
<<EOF
4111 #define $ac_tr_lib 1
4114 LIBS
="-lcurses $LIBS"
4117 echo "$ac_t""no" 1>&6
4120 if test "x$ac_cv_lib_curses_initscr" = xyes
; then
4121 echo "$ac_t""Found generic curses on /usr/include/curses.h" 1>&6
4123 search_ncurses
=false
4125 screen_manager
="curses on /usr/include"
4126 cat >> confdefs.h
<<\EOF
4127 #define USE_CURSES 1
4131 unset ac_cv_lib_curses_initscr
4140 cat > conftest.
$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4143 #include </usr/include/curses.h>
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146 egrep "init_color" >/dev
/null
2>&1; then
4149 echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
4150 echo "configure:4151: checking for initscr in -lcurses" >&5
4151 ac_lib_var
=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
4152 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4155 ac_save_LIBS
="$LIBS"
4156 LIBS
="-lcurses $LIBS"
4157 cat > conftest.
$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 /* Override any gcc2 internal prototype to avoid an error. */
4161 /* We use char because int might match the return type of a gcc2
4162 builtin and then its argument prototype would still apply. */
4169 if { (eval echo configure
:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4171 eval "ac_cv_lib_$ac_lib_var=yes"
4173 echo "configure: failed program was:" >&5
4174 cat conftest.
$ac_ext >&5
4176 eval "ac_cv_lib_$ac_lib_var=no"
4179 LIBS
="$ac_save_LIBS"
4182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4183 echo "$ac_t""yes" 1>&6
4184 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
4185 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4186 cat >> confdefs.h
<<EOF
4187 #define $ac_tr_lib 1
4190 LIBS
="-lcurses $LIBS"
4193 echo "$ac_t""no" 1>&6
4196 if test "x$ac_cv_lib_curses_initscr" = xyes
; then
4197 echo "$ac_t""Using SysV curses" 1>&6
4199 cat >> confdefs.h
<<\EOF
4200 #define USE_SYSV_CURSES 1
4203 search_ncurses
=false
4204 screen_manager
="SysV/curses"
4214 if test -f /usr
/5include
/curses.h
4217 search_ncurses
=false
4219 screen_manager
="SunOS 4.x /usr/5include curses"
4220 echo "$ac_t""Using SunOS 4.x /usr/5include curses" 1>&6
4221 cat >> confdefs.h
<<\EOF
4222 #define SUNOS_CURSES 1
4225 cat >> confdefs.h
<<\EOF
4226 #define NO_COLOR_SUPPORT 1
4229 cat >> confdefs.h
<<\EOF
4230 #define USE_SYSV_CURSES 1
4233 CFLAGS
="$CFLAGS -I/usr/5include"
4234 echo "$ac_t""Please note that some screen refreshs may fail" 1>&6
4235 echo "configure: warning: Reconsider using Slang" 1>&2
4240 for ac_func
in mousemask termattrs wredrawln redrawwin
4242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4243 echo "configure:4244: checking for $ac_func" >&5
4244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4245 echo $ac_n "(cached) $ac_c" 1>&6
4247 cat > conftest.
$ac_ext <<EOF
4248 #line 4249 "configure"
4249 #include "confdefs.h"
4250 /* System header to define __stub macros and hopefully few prototypes,
4251 which can conflict with char $ac_func(); below. */
4253 /* Override any gcc2 internal prototype to avoid an error. */
4254 /* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4260 /* The GNU C library defines this for functions which it implements
4261 to always fail with ENOSYS. Some functions are actually named
4262 something starting with __ and the normal name is an alias. */
4263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4271 if { (eval echo configure
:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4273 eval "ac_cv_func_$ac_func=yes"
4275 echo "configure: failed program was:" >&5
4276 cat conftest.
$ac_ext >&5
4278 eval "ac_cv_func_$ac_func=no"
4283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4284 echo "$ac_t""yes" 1>&6
4285 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4286 cat >> confdefs.h
<<EOF
4287 #define $ac_tr_func 1
4291 echo "$ac_t""no" 1>&6
4297 if test "$vga_driver_test" = yes; then
4298 echo $ac_n "checking for vga_hasmode in -lvga""... $ac_c" 1>&6
4299 echo "configure:4300: checking for vga_hasmode in -lvga" >&5
4300 ac_lib_var
=`echo vga'_'vga_hasmode | sed 'y%./+-%__p_%'`
4301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4304 ac_save_LIBS
="$LIBS"
4306 cat > conftest.
$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 /* Override any gcc2 internal prototype to avoid an error. */
4310 /* We use char because int might match the return type of a gcc2
4311 builtin and then its argument prototype would still apply. */
4318 if { (eval echo configure
:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4320 eval "ac_cv_lib_$ac_lib_var=yes"
4322 echo "configure: failed program was:" >&5
4323 cat conftest.
$ac_ext >&5
4325 eval "ac_cv_lib_$ac_lib_var=no"
4328 LIBS
="$ac_save_LIBS"
4331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4332 echo "$ac_t""yes" 1>&6
4333 ac_tr_lib
=HAVE_LIB
`echo vga | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4334 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4335 cat >> confdefs.h
<<EOF
4336 #define $ac_tr_lib 1
4342 echo "$ac_t""no" 1>&6
4345 echo $ac_n "checking for gl_write in -lvgagl""... $ac_c" 1>&6
4346 echo "configure:4347: checking for gl_write in -lvgagl" >&5
4347 ac_lib_var
=`echo vgagl'_'gl_write | sed 'y%./+-%__p_%'`
4348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4351 ac_save_LIBS
="$LIBS"
4352 LIBS
="-lvgagl $LIBS"
4353 cat > conftest.
$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4356 /* Override any gcc2 internal prototype to avoid an error. */
4357 /* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4365 if { (eval echo configure
:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4367 eval "ac_cv_lib_$ac_lib_var=yes"
4369 echo "configure: failed program was:" >&5
4370 cat conftest.
$ac_ext >&5
4372 eval "ac_cv_lib_$ac_lib_var=no"
4375 LIBS
="$ac_save_LIBS"
4378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4379 echo "$ac_t""yes" 1>&6
4380 ac_tr_lib
=HAVE_LIB
`echo vgagl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4381 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4382 cat >> confdefs.h
<<EOF
4383 #define $ac_tr_lib 1
4386 LIBS
="-lvgagl $LIBS"
4389 echo "$ac_t""no" 1>&6
4396 for ac_hdr
in limits.h sys
/time.h unistd.h
4398 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4399 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4400 echo "configure:4401: checking for $ac_hdr" >&5
4401 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4404 cat > conftest.
$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4409 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4410 { (eval echo configure
:4411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4411 ac_err
=`grep -v '^ *+' conftest.out`
4412 if test -z "$ac_err"; then
4414 eval "ac_cv_header_$ac_safe=yes"
4417 echo "configure: failed program was:" >&5
4418 cat conftest.
$ac_ext >&5
4420 eval "ac_cv_header_$ac_safe=no"
4424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4425 echo "$ac_t""yes" 1>&6
4426 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4427 cat >> confdefs.h
<<EOF
4428 #define $ac_tr_hdr 1
4432 echo "$ac_t""no" 1>&6
4437 echo $ac_n "checking for working const""... $ac_c" 1>&6
4438 echo "configure:4439: checking for working const" >&5
4439 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4442 cat > conftest.
$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4448 /* Ultrix mips cc rejects this. */
4449 typedef int charset[2]; const charset x;
4450 /* SunOS 4.1.1 cc rejects this. */
4451 char const *const *ccp;
4453 /* NEC SVR4.0.2 mips cc rejects this. */
4454 struct point {int x, y;};
4455 static struct point const zero = {0,0};
4456 /* AIX XL C 1.02.0.0 rejects this.
4457 It does not let you subtract one const X* pointer from another in an arm
4458 of an if-expression whose if-part is not a constant expression */
4459 const char *g = "string";
4460 ccp = &g + (g ? g-g : 0);
4461 /* HPUX 7.0 cc rejects these. */
4464 ccp = (char const *const *) p;
4465 { /* SCO 3.2v4 cc rejects this. */
4467 char const *s = 0 ? (char *) 0 : (char const *) 0;
4471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4473 const int *foo = &x[0];
4476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4477 typedef const int *iptr;
4481 { /* AIX XL C 1.02.0.0 rejects this saying
4482 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4483 struct s { int j; const int *ap[3]; };
4484 struct s *b; b->j = 5;
4486 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4492 if { (eval echo configure
:4493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4496 echo "configure: failed program was:" >&5
4497 cat conftest.
$ac_ext >&5
4504 echo "$ac_t""$ac_cv_c_const" 1>&6
4505 if test $ac_cv_c_const = no
; then
4506 cat >> confdefs.h
<<\EOF
4512 echo $ac_n "checking for inline""... $ac_c" 1>&6
4513 echo "configure:4514: checking for inline" >&5
4514 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4515 echo $ac_n "(cached) $ac_c" 1>&6
4518 for ac_kw
in inline __inline__ __inline
; do
4519 cat > conftest.
$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4527 if { (eval echo configure
:4528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4529 ac_cv_c_inline
=$ac_kw; break
4531 echo "configure: failed program was:" >&5
4532 cat conftest.
$ac_ext >&5
4539 echo "$ac_t""$ac_cv_c_inline" 1>&6
4540 case "$ac_cv_c_inline" in
4542 no
) cat >> confdefs.h
<<\EOF
4546 *) cat >> confdefs.h
<<EOF
4547 #define inline $ac_cv_c_inline
4552 if test "x$long_double" = xyes
; then
4553 echo $ac_n "checking for long double""... $ac_c" 1>&6
4554 echo "configure:4555: checking for long double" >&5
4555 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 if test "$GCC" = yes; then
4559 ac_cv_c_long_double
=yes
4561 if test "$cross_compiling" = yes; then
4562 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4564 cat > conftest.
$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4568 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4569 long double foo = 0.0;
4570 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4571 exit(sizeof(long double) < sizeof(double)); }
4573 if { (eval echo configure
:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4575 ac_cv_c_long_double
=yes
4577 echo "configure: failed program was:" >&5
4578 cat conftest.
$ac_ext >&5
4580 ac_cv_c_long_double
=no
4588 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4589 if test $ac_cv_c_long_double = yes; then
4590 cat >> confdefs.h
<<\EOF
4591 #define HAVE_LONG_DOUBLE 1
4597 echo Long double disabled
, since it should be too slow
at this CPU
4599 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4600 echo "configure:4601: checking whether time.h and sys/time.h may both be included" >&5
4601 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4604 cat > conftest.
$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4607 #include <sys/types.h>
4608 #include <sys/time.h>
4614 if { (eval echo configure
:4615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4616 ac_cv_header_time
=yes
4618 echo "configure: failed program was:" >&5
4619 cat conftest.
$ac_ext >&5
4621 ac_cv_header_time
=no
4626 echo "$ac_t""$ac_cv_header_time" 1>&6
4627 if test $ac_cv_header_time = yes; then
4628 cat >> confdefs.h
<<\EOF
4629 #define TIME_WITH_SYS_TIME 1
4634 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4635 echo "configure:4636: checking return type of signal handlers" >&5
4636 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4639 cat > conftest.
$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4642 #include <sys/types.h>
4648 extern "C" void (*signal (int, void (*)(int)))(int);
4650 void (*signal ()) ();
4657 if { (eval echo configure
:4658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4659 ac_cv_type_signal
=void
4661 echo "configure: failed program was:" >&5
4662 cat conftest.
$ac_ext >&5
4664 ac_cv_type_signal
=int
4669 echo "$ac_t""$ac_cv_type_signal" 1>&6
4670 cat >> confdefs.h
<<EOF
4671 #define RETSIGTYPE $ac_cv_type_signal
4675 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4676 eval datadir2
=$datadir
4677 cat >> confdefs.h
<<EOF
4678 #define DATAPATH "${datadir2}/XaoS"
4682 echo $ac_n "checking size of short""... $ac_c" 1>&6
4683 echo "configure:4684: checking size of short" >&5
4684 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4687 if test "$cross_compiling" = yes; then
4688 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4690 cat > conftest.
$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4696 FILE *f=fopen("conftestval", "w");
4698 fprintf(f, "%d\n", sizeof(short));
4702 if { (eval echo configure
:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4704 ac_cv_sizeof_short
=`cat conftestval`
4706 echo "configure: failed program was:" >&5
4707 cat conftest.
$ac_ext >&5
4709 ac_cv_sizeof_short
=0
4715 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4716 cat >> confdefs.h
<<EOF
4717 #define SIZEOF_SHORT $ac_cv_sizeof_short
4721 echo $ac_n "checking size of int""... $ac_c" 1>&6
4722 echo "configure:4723: checking size of int" >&5
4723 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4726 if test "$cross_compiling" = yes; then
4727 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4729 cat > conftest.
$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4735 FILE *f=fopen("conftestval", "w");
4737 fprintf(f, "%d\n", sizeof(int));
4741 if { (eval echo configure
:4742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4743 ac_cv_sizeof_int
=`cat conftestval`
4745 echo "configure: failed program was:" >&5
4746 cat conftest.
$ac_ext >&5
4754 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4755 cat >> confdefs.h
<<EOF
4756 #define SIZEOF_INT $ac_cv_sizeof_int
4760 echo $ac_n "checking size of long""... $ac_c" 1>&6
4761 echo "configure:4762: checking size of long" >&5
4762 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4765 if test "$cross_compiling" = yes; then
4766 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4768 cat > conftest.
$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4774 FILE *f=fopen("conftestval", "w");
4776 fprintf(f, "%d\n", sizeof(long));
4780 if { (eval echo configure
:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4782 ac_cv_sizeof_long
=`cat conftestval`
4784 echo "configure: failed program was:" >&5
4785 cat conftest.
$ac_ext >&5
4793 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4794 cat >> confdefs.h
<<EOF
4795 #define SIZEOF_LONG $ac_cv_sizeof_long
4801 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4802 echo "configure:4803: checking for pow in -lm" >&5
4803 ac_lib_var
=`echo m'_'pow | sed 'y%./+-%__p_%'`
4804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4805 echo $ac_n "(cached) $ac_c" 1>&6
4807 ac_save_LIBS
="$LIBS"
4809 cat > conftest.
$ac_ext <<EOF
4810 #line 4811 "configure"
4811 #include "confdefs.h"
4812 /* Override any gcc2 internal prototype to avoid an error. */
4813 /* We use char because int might match the return type of a gcc2
4814 builtin and then its argument prototype would still apply. */
4821 if { (eval echo configure
:4822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4823 eval "ac_cv_lib_$ac_lib_var=yes"
4825 echo "configure: failed program was:" >&5
4826 cat conftest.
$ac_ext >&5
4828 eval "ac_cv_lib_$ac_lib_var=no"
4831 LIBS
="$ac_save_LIBS"
4834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4835 echo "$ac_t""yes" 1>&6
4836 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4837 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4838 cat >> confdefs.h
<<EOF
4839 #define $ac_tr_lib 1
4845 echo "$ac_t""no" 1>&6
4848 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4849 echo "configure:4850: checking for inflate in -lz" >&5
4850 ac_lib_var
=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4852 echo $ac_n "(cached) $ac_c" 1>&6
4854 ac_save_LIBS
="$LIBS"
4856 cat > conftest.
$ac_ext <<EOF
4857 #line 4858 "configure"
4858 #include "confdefs.h"
4859 /* Override any gcc2 internal prototype to avoid an error. */
4860 /* We use char because int might match the return type of a gcc2
4861 builtin and then its argument prototype would still apply. */
4868 if { (eval echo configure
:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4870 eval "ac_cv_lib_$ac_lib_var=yes"
4872 echo "configure: failed program was:" >&5
4873 cat conftest.
$ac_ext >&5
4875 eval "ac_cv_lib_$ac_lib_var=no"
4878 LIBS
="$ac_save_LIBS"
4881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4882 echo "$ac_t""yes" 1>&6
4883 ac_tr_lib
=HAVE_LIB
`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4884 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4885 cat >> confdefs.h
<<EOF
4886 #define $ac_tr_lib 1
4892 echo "$ac_t""no" 1>&6
4895 if test x
"$ac_cv_lib_z_inflate" = xno
; then
4896 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
4897 echo "configure:4898: checking for inflate in -lgz" >&5
4898 ac_lib_var
=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
4899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4902 ac_save_LIBS
="$LIBS"
4904 cat > conftest.
$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 /* Override any gcc2 internal prototype to avoid an error. */
4908 /* We use char because int might match the return type of a gcc2
4909 builtin and then its argument prototype would still apply. */
4916 if { (eval echo configure
:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4918 eval "ac_cv_lib_$ac_lib_var=yes"
4920 echo "configure: failed program was:" >&5
4921 cat conftest.
$ac_ext >&5
4923 eval "ac_cv_lib_$ac_lib_var=no"
4926 LIBS
="$ac_save_LIBS"
4929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4930 echo "$ac_t""yes" 1>&6
4931 ac_tr_lib
=HAVE_LIB
`echo gz | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4932 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4933 cat >> confdefs.h
<<EOF
4934 #define $ac_tr_lib 1
4940 echo "$ac_t""no" 1>&6
4943 if test x
"$ac_cv_lib_gz_inflate" = xno
; then
4947 echo $ac_n "checking for png_create_info_struct in -lpng""... $ac_c" 1>&6
4948 echo "configure:4949: checking for png_create_info_struct in -lpng" >&5
4949 ac_lib_var
=`echo png'_'png_create_info_struct | sed 'y%./+-%__p_%'`
4950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4953 ac_save_LIBS
="$LIBS"
4955 cat > conftest.
$ac_ext <<EOF
4956 #line 4957 "configure"
4957 #include "confdefs.h"
4958 /* Override any gcc2 internal prototype to avoid an error. */
4959 /* We use char because int might match the return type of a gcc2
4960 builtin and then its argument prototype would still apply. */
4961 char png_create_info_struct();
4964 png_create_info_struct()
4967 if { (eval echo configure
:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4969 eval "ac_cv_lib_$ac_lib_var=yes"
4971 echo "configure: failed program was:" >&5
4972 cat conftest.
$ac_ext >&5
4974 eval "ac_cv_lib_$ac_lib_var=no"
4977 LIBS
="$ac_save_LIBS"
4980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4981 echo "$ac_t""yes" 1>&6
4982 ac_tr_lib
=HAVE_LIB
`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4983 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4984 cat >> confdefs.h
<<EOF
4985 #define $ac_tr_lib 1
4991 echo "$ac_t""no" 1>&6
4994 if test x
"$ac_cv_lib_png_png_create_info_struct" = xno
; then
4997 if test "$save_code" = yes; then
4998 cat >> confdefs.h
<<\EOF
5003 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5004 # for constant arguments. Useless!
5005 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5006 echo "configure:5007: checking for working alloca.h" >&5
5007 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5010 cat > conftest.
$ac_ext <<EOF
5011 #line 5012 "configure"
5012 #include "confdefs.h"
5015 char *p = alloca(2 * sizeof(int));
5018 if { (eval echo configure
:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5020 ac_cv_header_alloca_h
=yes
5022 echo "configure: failed program was:" >&5
5023 cat conftest.
$ac_ext >&5
5025 ac_cv_header_alloca_h
=no
5030 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5031 if test $ac_cv_header_alloca_h = yes; then
5032 cat >> confdefs.h
<<\EOF
5033 #define HAVE_ALLOCA_H 1
5038 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5039 echo "configure:5040: checking for alloca" >&5
5040 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5043 cat > conftest.
$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5048 # define alloca __builtin_alloca
5051 # include <alloca.h>
5056 # ifndef alloca /* predefined by HP cc +Olibcalls */
5064 char *p = (char *) alloca(1);
5067 if { (eval echo configure
:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5069 ac_cv_func_alloca_works
=yes
5071 echo "configure: failed program was:" >&5
5072 cat conftest.
$ac_ext >&5
5074 ac_cv_func_alloca_works
=no
5079 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5080 if test $ac_cv_func_alloca_works = yes; then
5081 cat >> confdefs.h
<<\EOF
5082 #define HAVE_ALLOCA 1
5087 if test $ac_cv_func_alloca_works = no
; then
5088 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5089 # that cause trouble. Some versions do not even contain alloca or
5090 # contain a buggy version. If you still want to use their alloca,
5091 # use ar to extract alloca.o from them instead of compiling alloca.c.
5093 cat >> confdefs.h
<<\EOF
5098 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5099 echo "configure:5100: checking whether alloca needs Cray hooks" >&5
5100 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5101 echo $ac_n "(cached) $ac_c" 1>&6
5103 cat > conftest.
$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5106 #if defined(CRAY) && ! defined(CRAY2)
5113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5114 egrep "webecray" >/dev
/null
2>&1; then
5125 echo "$ac_t""$ac_cv_os_cray" 1>&6
5126 if test $ac_cv_os_cray = yes; then
5127 for ac_func
in _getb67 GETB67 getb67
; do
5128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5129 echo "configure:5130: checking for $ac_func" >&5
5130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5133 cat > conftest.
$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5136 /* System header to define __stub macros and hopefully few prototypes,
5137 which can conflict with char $ac_func(); below. */
5139 /* Override any gcc2 internal prototype to avoid an error. */
5140 /* We use char because int might match the return type of a gcc2
5141 builtin and then its argument prototype would still apply. */
5146 /* The GNU C library defines this for functions which it implements
5147 to always fail with ENOSYS. Some functions are actually named
5148 something starting with __ and the normal name is an alias. */
5149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5157 if { (eval echo configure
:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5159 eval "ac_cv_func_$ac_func=yes"
5161 echo "configure: failed program was:" >&5
5162 cat conftest.
$ac_ext >&5
5164 eval "ac_cv_func_$ac_func=no"
5169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5170 echo "$ac_t""yes" 1>&6
5171 cat >> confdefs.h
<<EOF
5172 #define CRAY_STACKSEG_END $ac_func
5177 echo "$ac_t""no" 1>&6
5183 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5184 echo "configure:5185: checking stack direction for C alloca" >&5
5185 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6
5188 if test "$cross_compiling" = yes; then
5189 ac_cv_c_stack_direction
=0
5191 cat > conftest.
$ac_ext <<EOF
5192 #line 5193 "configure"
5193 #include "confdefs.h"
5194 find_stack_direction ()
5196 static char *addr = 0;
5201 return find_stack_direction ();
5204 return (&dummy > addr) ? 1 : -1;
5208 exit (find_stack_direction() < 0);
5211 if { (eval echo configure
:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5213 ac_cv_c_stack_direction
=1
5215 echo "configure: failed program was:" >&5
5216 cat conftest.
$ac_ext >&5
5218 ac_cv_c_stack_direction
=-1
5225 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5226 cat >> confdefs.h
<<EOF
5227 #define STACK_DIRECTION $ac_cv_c_stack_direction
5232 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5233 echo "configure:5234: checking return type of signal handlers" >&5
5234 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5237 cat > conftest.
$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 #include <sys/types.h>
5246 extern "C" void (*signal (int, void (*)(int)))(int);
5248 void (*signal ()) ();
5255 if { (eval echo configure
:5256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5257 ac_cv_type_signal
=void
5259 echo "configure: failed program was:" >&5
5260 cat conftest.
$ac_ext >&5
5262 ac_cv_type_signal
=int
5267 echo "$ac_t""$ac_cv_type_signal" 1>&6
5268 cat >> confdefs.h
<<EOF
5269 #define RETSIGTYPE $ac_cv_type_signal
5273 for ac_func
in gettimeofday
usleep select setitimer ftime finite
5275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5276 echo "configure:5277: checking for $ac_func" >&5
5277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5280 cat > conftest.
$ac_ext <<EOF
5281 #line 5282 "configure"
5282 #include "confdefs.h"
5283 /* System header to define __stub macros and hopefully few prototypes,
5284 which can conflict with char $ac_func(); below. */
5286 /* Override any gcc2 internal prototype to avoid an error. */
5287 /* We use char because int might match the return type of a gcc2
5288 builtin and then its argument prototype would still apply. */
5293 /* The GNU C library defines this for functions which it implements
5294 to always fail with ENOSYS. Some functions are actually named
5295 something starting with __ and the normal name is an alias. */
5296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5304 if { (eval echo configure
:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5306 eval "ac_cv_func_$ac_func=yes"
5308 echo "configure: failed program was:" >&5
5309 cat conftest.
$ac_ext >&5
5311 eval "ac_cv_func_$ac_func=no"
5316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5317 echo "$ac_t""yes" 1>&6
5318 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5319 cat >> confdefs.h
<<EOF
5320 #define $ac_tr_func 1
5324 echo "$ac_t""no" 1>&6
5329 if test "$x_driver_test" = yes; then
5330 if test "x$no_x" = x
; then
5331 ac_safe
=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
5332 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
5333 echo "configure:5334: checking for sys/ipc.h" >&5
5334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5337 cat > conftest.
$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5340 #include <sys/ipc.h>
5342 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5343 { (eval echo configure
:5344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5344 ac_err
=`grep -v '^ *+' conftest.out`
5345 if test -z "$ac_err"; then
5347 eval "ac_cv_header_$ac_safe=yes"
5350 echo "configure: failed program was:" >&5
5351 cat conftest.
$ac_ext >&5
5353 eval "ac_cv_header_$ac_safe=no"
5357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5358 echo "$ac_t""yes" 1>&6
5359 cat >> confdefs.h
<<\EOF
5360 #define HAVE_IPC_H 1
5364 echo "$ac_t""no" 1>&6
5368 ac_safe
=`echo "sys/shm.h" | sed 'y%./+-%__p_%'`
5369 echo $ac_n "checking for sys/shm.h""... $ac_c" 1>&6
5370 echo "configure:5371: checking for sys/shm.h" >&5
5371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5372 echo $ac_n "(cached) $ac_c" 1>&6
5374 cat > conftest.
$ac_ext <<EOF
5375 #line 5376 "configure"
5376 #include "confdefs.h"
5377 #include <sys/shm.h>
5379 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5380 { (eval echo configure
:5381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5381 ac_err
=`grep -v '^ *+' conftest.out`
5382 if test -z "$ac_err"; then
5384 eval "ac_cv_header_$ac_safe=yes"
5387 echo "configure: failed program was:" >&5
5388 cat conftest.
$ac_ext >&5
5390 eval "ac_cv_header_$ac_safe=no"
5394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5395 echo "$ac_t""yes" 1>&6
5396 cat >> confdefs.h
<<\EOF
5397 #define HAVE_IPC_H 1
5401 echo "$ac_t""no" 1>&6
5406 echo $ac_n "checking X11/extensions/XShm.h""... $ac_c" 1>&6
5407 echo "configure:5408: checking X11/extensions/XShm.h" >&5
5408 if eval "test -f $x_includes/X11/extensions/XShm.h"; then
5409 echo "$ac_t""yes" 1>&6
5410 cat >> confdefs.h
<<\EOF
5411 #define HAVE_MITSHM_H 1
5415 echo "$ac_t""no" 1>&6
5419 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
5420 echo "configure:5421: checking for XShmAttach in -lXext" >&5
5421 ac_lib_var
=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
5422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5423 echo $ac_n "(cached) $ac_c" 1>&6
5425 ac_save_LIBS
="$LIBS"
5426 LIBS
="-lXext $X_LIBS $LIBS"
5427 cat > conftest.
$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5430 /* Override any gcc2 internal prototype to avoid an error. */
5431 /* We use char because int might match the return type of a gcc2
5432 builtin and then its argument prototype would still apply. */
5439 if { (eval echo configure
:5440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5441 eval "ac_cv_lib_$ac_lib_var=yes"
5443 echo "configure: failed program was:" >&5
5444 cat conftest.
$ac_ext >&5
5446 eval "ac_cv_lib_$ac_lib_var=no"
5449 LIBS
="$ac_save_LIBS"
5452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5453 echo "$ac_t""yes" 1>&6
5456 echo "$ac_t""no" 1>&6
5463 echo "------------------------------------------------------------"
5464 echo "Avaiable drivers:"
5466 if test "$aa_driver_test" = yes; then
5467 if test "x$aa_driver" = xtrue
; then
5469 cat >> confdefs.h
<<\EOF
5473 DRIVERDIRS
="$DRIVERDIRS ui/ui-drv/aa"
5474 DRIVERLIBS
="$DRIVERLIBS lib/libuiaa.a"
5479 if test "$curses_driver_test" = yes; then
5480 if test "x$curses_driver" = xtrue
; then
5482 cat >> confdefs.h
<<\EOF
5483 #define CURSES_DRIVER 1
5486 DRIVERDIRS
="$DRIVERDIRS ui/ui-drv/curses"
5487 DRIVERLIBS
="$DRIVERLIBS lib/libuicurses.a"
5488 if test "x$ac_cv_func_mousemask" = xyes
; then
5489 echo " ncurses with additional mouse driver"
5495 if test "$x_driver_test" = yes; then
5496 if test "x$no_x" = x
; then
5498 cat >> confdefs.h
<<\EOF
5499 #define X11_DRIVER 1
5502 DRIVERDIRS
="$DRIVERDIRS ui/ui-drv/x11"
5503 DRIVERLIBS
="$DRIVERLIBS lib/libuix11.a"
5504 if test "x$no_sys_ipc$no_sys_shm y$ac_cv_lib_Xext_XShmAttach" = "x yyes"; then
5505 echo " X11 with MIT shared memory support"
5506 cat >> confdefs.h
<<\EOF
5513 LIBS
="$LIBS $X_EXTRA_LIBS $X_LIBS -lX11"
5514 CFLAGS
="$CFLAGS $X_CFLAGS"
5515 CFLAGS1
="$CFLAGS1 $X_CFLAGS"
5518 if test "$vga_driver_test" = yes; then
5519 if test "x$ac_cv_lib_vga_vga_hasmode$ac_cv_lib_vgagl_gl_write" = xyesyes
; then
5521 cat >> confdefs.h
<<\EOF
5522 #define SVGA_DRIVER 1
5525 STICKY
='chmod +s $(bindir)/xaos; chown root $(bindir)/xaos; chgrp root $(bindir)/xaos'
5526 DRIVERDIRS
="$DRIVERDIRS ui/ui-drv/svga"
5527 DRIVERLIBS
="$DRIVERLIBS lib/libuisvga.a"
5528 if test "x$ac_cv_func_pthread_sighandler" = xyes
; then
5529 echo " SVGAlib with linuxthread hack"
5535 REALTOPDIR
=`nolinks=1; pwd`
5537 BINPATH
="$REALTOPDIR/bin"
5541 SRCPATH
="$REALTOPDIR/src"
5543 LIBPATH
="$SRCPATH/lib"
5545 # does this work if you do make -C <some dir>
5546 TOPDIR
=`nolinks=1;pwd`
5549 INCDIR
="-I${SRCPATH}/include"
5550 CFLAGS
="$CFLAGS $INCDIR"
5551 CFLAGS1
="$CFLAGS1 $INCDIR"
5560 echo "Compiler options:"
5562 echo " CFLAGS : $CFLAGS"
5563 echo " CFLAGS1 : $CFLAGS1"
5564 echo " LDLAGS : $LDLAGS"
5565 echo " LIBS : $LIBS"
5566 echo " X_LIBS : $X_LIBS"
5567 echo "------------------------------------------------------------"
5569 cat > confcache
<<\EOF
5570 # This file is a shell script that caches the results of configure
5571 # tests run on this system so they can be shared between configure
5572 # scripts and configure runs. It is not useful on other systems.
5573 # If it contains results you don't want to keep, you may remove or edit it.
5575 # By default, configure uses ./config.cache as the cache file,
5576 # creating it if it does not exist already. You can give configure
5577 # the --cache-file=FILE option to use a different cache file; that is
5578 # what configure does when it calls configure scripts in
5579 # subdirectories, so they share the cache.
5580 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5581 # config.status only pays attention to the cache file if you give it the
5582 # --recheck option to rerun configure.
5585 # The following way of writing the cache mishandles newlines in values,
5586 # but we know of no workaround that is simple, portable, and efficient.
5587 # So, don't put newlines in cache variables' values.
5588 # Ultrix sh set writes to stderr and can't be redirected directly,
5589 # and sets the high bit in the cache file unless we assign to the vars.
5591 case `(ac_space=' '; set) 2>&1` in
5593 # `set' does not quote correctly, so add quotes (double-quote substitution
5594 # turns \\\\ into \\, and sed turns \\ into \).
5596 -e "s/'/'\\\\''/g" \
5597 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5600 # `set' quotes correctly as required by POSIX, so do not add quotes.
5601 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5604 if cmp -s $cache_file confcache
; then
5607 if test -w $cache_file; then
5608 echo "updating cache $cache_file"
5609 cat confcache
> $cache_file
5611 echo "not updating unwritable cache $cache_file"
5616 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5618 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5619 # Let make expand exec_prefix.
5620 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5622 # Any assignment to VPATH causes Sun make to only execute
5623 # the first set of double-colon rules, so remove it if not needed.
5624 # If there is a colon in the path, we need to keep it.
5625 if test "x$srcdir" = x.
; then
5626 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5629 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5631 DEFS
=-DHAVE_CONFIG_H
5633 # Without the "./", some shells look in PATH for config.status.
5634 : ${CONFIG_STATUS=./config.status}
5636 echo creating
$CONFIG_STATUS
5637 rm -f $CONFIG_STATUS
5638 cat > $CONFIG_STATUS <<EOF
5640 # Generated automatically by configure.
5641 # Run this file to recreate the current configuration.
5642 # This directory was configured as follows,
5643 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5645 # $0 $ac_configure_args
5647 # Compiler output produced by configure, useful for debugging
5648 # configure, is in ./config.log if it exists.
5650 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5653 case "\$ac_option" in
5654 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5655 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5656 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5657 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5658 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5660 -help | --help | --hel | --he | --h)
5661 echo "\$ac_cs_usage"; exit 0 ;;
5662 *) echo "\$ac_cs_usage"; exit 1 ;;
5666 ac_given_srcdir=$srcdir
5667 ac_given_INSTALL="$INSTALL"
5669 trap 'rm -fr `echo "Makefile src/Makefile src/engine/Makefile src/util/Makefile src/ui/Makefile src/filter/Makefile
5670 src/ui/ui-drv/curses/Makefile
5671 src/ui/ui-drv/aa/Makefile
5672 src/ui/ui-drv/svga/Makefile
5673 src/ui/ui-drv/x11/Makefile
5674 src/include/aconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5676 cat >> $CONFIG_STATUS <<EOF
5678 # Protect against being on the right side of a sed subst in config.status.
5679 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5680 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5683 s%@CFLAGS@%$CFLAGS%g
5684 s%@CPPFLAGS@%$CPPFLAGS%g
5685 s%@CXXFLAGS@%$CXXFLAGS%g
5687 s%@LDFLAGS@%$LDFLAGS%g
5689 s%@exec_prefix@%$exec_prefix%g
5690 s%@prefix@%$prefix%g
5691 s%@program_transform_name@%$program_transform_name%g
5692 s%@bindir@%$bindir%g
5693 s%@sbindir@%$sbindir%g
5694 s%@libexecdir@%$libexecdir%g
5695 s%@datadir@%$datadir%g
5696 s%@sysconfdir@%$sysconfdir%g
5697 s%@sharedstatedir@%$sharedstatedir%g
5698 s%@localstatedir@%$localstatedir%g
5699 s%@libdir@%$libdir%g
5700 s%@includedir@%$includedir%g
5701 s%@oldincludedir@%$oldincludedir%g
5702 s%@infodir@%$infodir%g
5703 s%@mandir@%$mandir%g
5705 s%@host_alias@%$host_alias%g
5706 s%@host_cpu@%$host_cpu%g
5707 s%@host_vendor@%$host_vendor%g
5708 s%@host_os@%$host_os%g
5709 s%@target@%$target%g
5710 s%@target_alias@%$target_alias%g
5711 s%@target_cpu@%$target_cpu%g
5712 s%@target_vendor@%$target_vendor%g
5713 s%@target_os@%$target_os%g
5715 s%@build_alias@%$build_alias%g
5716 s%@build_cpu@%$build_cpu%g
5717 s%@build_vendor@%$build_vendor%g
5718 s%@build_os@%$build_os%g
5721 s%@SET_MAKE@%$SET_MAKE%g
5722 s%@RANLIB@%$RANLIB%g
5723 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5724 s%@INSTALL_DATA@%$INSTALL_DATA%g
5725 s%@X_CFLAGS@%$X_CFLAGS%g
5726 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5727 s%@X_LIBS@%$X_LIBS%g
5728 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5729 s%@ALLOCA@%$ALLOCA%g
5730 s%@REALTOPDIR@%$REALTOPDIR%g
5731 s%@BINPATH@%$BINPATH%g
5733 s%@SRCPATH@%$SRCPATH%g
5734 s%@LIBPATH@%$LIBPATH%g
5735 s%@TOPDIR@%$TOPDIR%g
5736 s%@INCDIR@%$INCDIR%g
5737 s%@DRIVERLIBS@%$DRIVERLIBS%g
5738 s%@DRIVERDIRS@%$DRIVERDIRS%g
5739 s%@STICKY@%$STICKY%g
5740 s%@CFLAGS1@%$CFLAGS1%g
5745 cat >> $CONFIG_STATUS <<\EOF
5747 # Split the substitutions into bite-sized pieces for seds with
5748 # small command number limits, like on Digital OSF/1 and HP-UX.
5749 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5750 ac_file
=1 # Number of current file.
5751 ac_beg
=1 # First line for current file.
5752 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5755 while $ac_more_lines; do
5756 if test $ac_beg -gt 1; then
5757 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5759 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5761 if test ! -s conftest.s
$ac_file; then
5763 rm -f conftest.s
$ac_file
5765 if test -z "$ac_sed_cmds"; then
5766 ac_sed_cmds
="sed -f conftest.s$ac_file"
5768 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5770 ac_file
=`expr $ac_file + 1`
5772 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5775 if test -z "$ac_sed_cmds"; then
5780 cat >> $CONFIG_STATUS <<EOF
5782 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/engine/Makefile src/util/Makefile src/ui/Makefile src/filter/Makefile
5783 src/ui/ui-drv/curses/Makefile
5784 src/ui/ui-drv/aa/Makefile
5785 src/ui/ui-drv/svga/Makefile
5786 src/ui/ui-drv/x11/Makefile
5789 cat >> $CONFIG_STATUS <<\EOF
5790 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5791 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5793 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5794 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5795 *) ac_file_in
="${ac_file}.in" ;;
5798 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5800 # Remove last slash and all that follows it. Not all systems have dirname.
5801 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5802 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5803 # The file is in a subdirectory.
5804 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5805 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5806 # A "../" for each directory in $ac_dir_suffix.
5807 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5809 ac_dir_suffix
= ac_dots
=
5812 case "$ac_given_srcdir" in
5814 if test -z "$ac_dots"; then top_srcdir
=.
5815 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5816 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5818 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5819 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5822 case "$ac_given_INSTALL" in
5823 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5824 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5827 echo creating
"$ac_file"
5829 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5831 *Makefile
*) ac_comsub
="1i\\
5832 # $configure_input" ;;
5836 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5838 s%@configure_input@%$configure_input%g
5839 s%@srcdir@%$srcdir%g
5840 s%@top_srcdir@%$top_srcdir%g
5841 s%@INSTALL@%$INSTALL%g
5842 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5846 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5847 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5849 # ac_d sets the value in "#define NAME VALUE" lines.
5850 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5851 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5854 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5855 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5856 ac_uB
='\([ ]\)%\1#\2define\3'
5859 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5860 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5861 ac_eB
='$%\1#\2define\3'
5865 if test "${CONFIG_HEADERS+set}" != set; then
5867 cat >> $CONFIG_STATUS <<EOF
5868 CONFIG_HEADERS="src/include/aconfig.h"
5870 cat >> $CONFIG_STATUS <<\EOF
5872 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5873 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5875 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5876 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5877 *) ac_file_in
="${ac_file}.in" ;;
5880 echo creating
$ac_file
5882 rm -f conftest.frag conftest.
in conftest.out
5883 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5884 cat $ac_file_inputs > conftest.
in
5888 # Transform confdefs.h into a sed script conftest.vals that substitutes
5889 # the proper values into config.h.in to produce config.h. And first:
5890 # Protect against being on the right side of a sed subst in config.status.
5891 # Protect against being in an unquoted here document in config.status.
5893 cat > conftest.hdr
<<\EOF
5896 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5900 sed -n -f conftest.hdr confdefs.h > conftest.vals
5903 # This sed command replaces #undef with comments. This is necessary, for
5904 # example, in the case of _POSIX_SOURCE, which is predefined and required
5905 # on some systems where configure will not decide to define it.
5906 cat >> conftest.vals <<\EOF
5907 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5910 # Break up conftest.vals because some shells have a limit on
5911 # the size of here documents, and old seds have small limits too.
5916 ac_lines=`grep -c . conftest.vals
`
5917 # grep -c gives empty output for an empty file on some AIX systems.
5918 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5919 # Write a limited-size here document to conftest.frag.
5920 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5921 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5923 sed -f conftest.frag conftest.in > conftest.out
5925 mv conftest.out conftest.in
5927 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5929 mv conftest.tail conftest.vals
5933 cat >> $CONFIG_STATUS <<\EOF
5934 rm -f conftest.frag conftest.h
5935 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5936 cat conftest.in >> conftest.h
5938 if cmp -s $ac_file conftest.h 2>/dev/null; then
5939 echo "$ac_file is unchanged"
5942 # Remove last slash and all that follows it. Not all systems have dirname.
5943 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5944 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5945 # The file is in a subdirectory.
5946 test ! -d "$ac_dir" && mkdir "$ac_dir"
5949 mv conftest.h $ac_file
5954 cat >> $CONFIG_STATUS <<EOF
5957 cat >> $CONFIG_STATUS <<\EOF
5961 chmod +x $CONFIG_STATUS
5962 rm -fr confdefs* $ac_clean_files
5963 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5965 echo "------------------------------------------------------------"
5967 echo "READ CUREFULLY FOLLOWING WARNINGS"
5969 if test "x$ac_cv_header_stdc" = xno; then
5970 echo "configure: warning: There is no ansi c headers avaiable. XaoS will have troubles with compiling." 1>&2
5973 if test "x$ac_cv_prog_gcc" = xyes; then
5976 echo "configure: warning: The gnu c compiler is recomended to get best performance. XaoS crashes many compiler so your compiler can cause troubles." 1>&2
5978 if test "x$ac_cv_c_long_double" = xyes; then
5979 if test "x$long_double" = xyes; then
5980 echo "configure: warning: Long double enabled. This works well for x86 architectures. On other systems this should slow down much. Especially on sun workstations. If XaoS works incredibly slowly try to rebuild it using:
5981 configure --with-long-double=no
5986 if test "x$drivers" = xno; then
5987 echo "configure: warning: There is no driver avaible. XaoS will not start." 1>&2
5990 if test "x$config_problem" = xyes; then
5991 echo "configure: warning: There was a problem with automatic configuration." 1>&2
5992 echo "configure: warning: Read INSTALL file for trouble-shooting tips." 1>&2
5994 if test x"$ac_cv_lib_z_inflate" = xno; then
5995 if test x"$ac_cv_lib_gz_inflate" = xno; then
5996 echo "You need zlib to compile XaoS with image saving code."
5997 echo "Please download it from:"
5998 echo " XaoS homepage at http://www.paru.cas.cz/~hubicka/XaoS"
5999 echo " or ftp://sunsite.unc.edu/pub/Linux/libs"
6000 echo " or ftp://ftp.uu.net/graphics/png/src/zlib-0.95.tar.gz"
6004 if test x"$ac_cv_lib_png_png_create_info_struct" = xno; then
6005 echo "You need pnglib to compile XaoS with image saving code."
6006 echo "Please download it from:"
6007 echo " XaoS homepage at http://www.paru.cas.cz/~hubicka/XaoS"
6008 echo " or ftp://sunsite.unc.edu/pub/Linux/libs"
6009 echo " or ftp://ftp.uu.net/graphics/png/src/libpng-0.81.tar.gz"
6013 echo "END OF WARNINGS"
6015 echo "In case you have troubles with compiling or running"
6016 echo "XaoS please read compilers.txt."
6017 echo "------------------------------------------------------------"