adapt to use iconv from its new location.
[AROS-Contrib.git] / gfx / XaoS / configure
blobb6e32f4d0c8741e50d13abcc786ed0b71192e8c8
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-long-double=yes/no Used to enable/disable usage of long double"
16 ac_help="$ac_help
17 --with-pthread=yes Used to enable SMP support (experimental)"
18 ac_help="$ac_help
19 --with-x11-driver=no Used to disable x11 driver"
20 ac_help="$ac_help
21 --with-svga-driver=no Used to disable svga driver"
22 ac_help="$ac_help
23 --with-curses-driver=no Used to disable curses driver"
24 ac_help="$ac_help
25 --with-aa-driver=no Used to disable aa-lib driver"
26 ac_help="$ac_help
27 --with-x use the X Window System"
28 ac_help="$ac_help
29 --with-sunos-curses Used to force SunOS 4.x curses"
30 ac_help="$ac_help
31 --with-osf1-curses Used to force OSF/1 curses"
32 ac_help="$ac_help
33 --with-vcurses[=incdir] Used to force SysV curses"
34 ac_help="$ac_help
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.
40 build=NONE
41 cache_file=./config.cache
42 exec_prefix=NONE
43 host=NONE
44 no_create=
45 nonopt=NONE
46 no_recursion=
47 prefix=NONE
48 program_prefix=NONE
49 program_suffix=NONE
50 program_transform_name=s,x,x,
51 silent=
52 site=
53 srcdir=
54 target=NONE
55 verbose=
56 x_includes=NONE
57 x_libraries=NONE
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.
72 subdirs=
73 MFLAGS= MAKEFLAGS=
74 # Maximum number of lines to put in a shell here document.
75 ac_max_here_lines=12
77 ac_prev=
78 for ac_option
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
84 ac_prev=
85 continue
88 case "$ac_option" in
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 *) ac_optarg= ;;
91 esac
93 # Accept the important Cygnus configure options, so we can diagnose typos.
95 case "$ac_option" in
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 ac_prev=bindir ;;
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
102 -build | --build | --buil | --bui | --bu)
103 ac_prev=build ;;
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)
115 ac_prev=datadir ;;
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 | --da=*)
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'`
136 case "$ac_option" in
137 *=*) ;;
138 *) ac_optarg=yes ;;
139 esac
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.
153 with_gas=yes ;;
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.
158 cat << EOF
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
161 Configuration:
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
169 [$ac_default_prefix]
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 [same as prefix]
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
176 [PREFIX/share]
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 [PREFIX/com]
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
192 cat << EOF
193 Host type:
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"
208 exit 0 ;;
210 -host | --host | --hos | --ho)
211 ac_prev=host ;;
212 -host=* | --host=* | --hos=* | --ho=*)
213 host="$ac_optarg" ;;
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)
223 ac_prev=infodir ;;
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
227 -libdir | --libdir | --libdi | --libd)
228 ac_prev=libdir ;;
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)
249 ac_prev=mandir ;;
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
253 -nfp | --nfp | --nf)
254 # Obsolete; use --without-fp.
255 with_fp=no ;;
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 | --no-cr | --no-c)
259 no_create=yes ;;
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 no_recursion=yes ;;
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)
275 ac_prev=prefix ;;
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)
312 silent=yes ;;
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 ac_prev=sbindir ;;
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 | --sbi=* | --sb=*)
318 sbindir="$ac_optarg" ;;
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
323 | --sha | --sh)
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 | --sha=* | --sh=*)
329 sharedstatedir="$ac_optarg" ;;
331 -site | --site | --sit)
332 ac_prev=site ;;
333 -site=* | --site=* | --sit=*)
334 site="$ac_optarg" ;;
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 ac_prev=srcdir ;;
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)
349 ac_prev=target ;;
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 verbose=yes ;;
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.12"
358 exit 0 ;;
360 -with-* | --with-*)
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'`
367 case "$ac_option" in
368 *=*) ;;
369 *) ac_optarg=yes ;;
370 esac
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" ;;
382 --x)
383 # Obsolete; use --with-x.
384 with_x=yes ;;
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; }
410 nonopt="$ac_option"
413 esac
414 done
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:
423 # 0 standard input
424 # 1 file creation
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
431 exec 6>/dev/null
432 else
433 exec 6>&1
435 exec 5>./config.log
437 echo "\
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
440 " 1>&5
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
444 ac_configure_args=
445 for ac_arg
447 case "$ac_arg" in
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" ;;
455 esac
456 done
458 # NLS nuisances.
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.
471 echo > confdefs.h
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.
481 ac_prog=$0
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 srcdir=$ac_confdir
485 if test ! -r $srcdir/$ac_unique_file; then
486 srcdir=..
488 else
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; }
494 else
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"
504 else
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"
511 . "$ac_site_file"
513 done
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
517 . $cache_file
518 else
519 echo "creating cache $cache_file"
520 > $cache_file
523 ac_ext=c
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
533 ac_n= ac_c='
534 ' ac_t=' '
535 else
536 ac_n=-n ac_c= ac_t=
538 else
539 ac_n= ac_c='\c' ac_t=
544 ac_aux_dir=
545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
546 if test -f $ac_dir/install-sh; then
547 ac_aux_dir=$ac_dir
548 ac_install_sh="$ac_aux_dir/install-sh -c"
549 break
550 elif test -f $ac_dir/install.sh; then
551 ac_aux_dir=$ac_dir
552 ac_install_sh="$ac_aux_dir/install.sh -c"
553 break
555 done
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.
565 # The inputs are:
566 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
568 # The rules are:
569 # 1. You are not allowed to specify --host, --target, and nonopt at the
570 # same time.
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; } ;;
582 esac
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
593 host_alias=$host
594 case "$host_alias" in
595 NONE)
596 case $nonopt in
597 NONE)
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; }
600 fi ;;
601 *) host_alias=$nonopt ;;
602 esac ;;
603 esac
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
614 target_alias=$target
615 case "$target_alias" in
616 NONE)
617 case $nonopt in
618 NONE) target_alias=$host_alias ;;
619 *) target_alias=$nonopt ;;
620 esac ;;
621 esac
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
632 build_alias=$build
633 case "$build_alias" in
634 NONE)
635 case $nonopt in
636 NONE) build_alias=$host_alias ;;
637 *) build_alias=$nonopt ;;
638 esac ;;
639 esac
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" = \
649 NONENONEs,x,x, &&
650 program_prefix=${target_alias}-
652 CCOPTS="$CFLAGS"
653 CCOPTS1="$CFLAGS1"
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
660 else
661 if test -n "$CC"; then
662 ac_cv_prog_CC="$CC" # Let the user override the test.
663 else
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
668 ac_cv_prog_CC="gcc"
669 break
671 done
672 IFS="$ac_save_ifs"
675 CC="$ac_cv_prog_CC"
676 if test -n "$CC"; then
677 echo "$ac_t""$CC" 1>&6
678 else
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
689 else
690 if test -n "$CC"; then
691 ac_cv_prog_CC="$CC" # Let the user override the test.
692 else
693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
694 ac_prog_rejected=no
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
699 ac_prog_rejected=yes
700 continue
702 ac_cv_prog_CC="cc"
703 break
705 done
706 IFS="$ac_save_ifs"
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
710 shift
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.
715 shift
716 set dummy "$ac_dir/$ac_word" "$@"
717 shift
718 ac_cv_prog_CC="$@"
723 CC="$ac_cv_prog_CC"
724 if test -n "$CC"; then
725 echo "$ac_t""$CC" 1>&6
726 else
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
736 ac_ext=c
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"
746 main(){return(0);}
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
753 else
754 ac_cv_prog_cc_cross=yes
756 else
757 echo "configure: failed program was:" >&5
758 cat conftest.$ac_ext >&5
759 ac_cv_prog_cc_works=no
761 rm -fr conftest*
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
776 else
777 cat > conftest.c <<EOF
778 #ifdef __GNUC__
779 yes;
780 #endif
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
783 ac_cv_prog_gcc=yes
784 else
785 ac_cv_prog_gcc=no
789 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
791 if test $ac_cv_prog_gcc = yes; then
792 GCC=yes
793 ac_test_CFLAGS="${CFLAGS+set}"
794 ac_save_CFLAGS="$CFLAGS"
795 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
800 else
801 echo 'void f(){}' > conftest.c
802 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
803 ac_cv_prog_cc_g=yes
804 else
805 ac_cv_prog_cc_g=no
807 rm -f conftest*
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
815 CFLAGS="-g -O2"
816 else
817 CFLAGS="-O2"
819 else
820 GCC=
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
828 CPP=
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
833 else
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.
836 CPP="${CC-cc} -E"
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"
842 #include <assert.h>
843 Syntax Error
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
850 else
851 echo "$ac_err" >&5
852 echo "configure: failed program was:" >&5
853 cat conftest.$ac_ext >&5
854 rm -rf conftest*
855 CPP="${CC-cc} -E -traditional-cpp"
856 cat > conftest.$ac_ext <<EOF
857 #line 858 "configure"
858 #include "confdefs.h"
859 #include <assert.h>
860 Syntax Error
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
867 else
868 echo "$ac_err" >&5
869 echo "configure: failed program was:" >&5
870 cat conftest.$ac_ext >&5
871 rm -rf conftest*
872 CPP=/lib/cpp
874 rm -f conftest*
876 rm -f conftest*
877 ac_cv_prog_CPP="$CPP"
879 CPP="$ac_cv_prog_CPP"
880 else
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
890 else
891 ac_pattern="Autoconf.*'x'"
892 cat > conftest.$ac_ext <<EOF
893 #line 894 "configure"
894 #include "confdefs.h"
895 #include <sgtty.h>
896 Autoconf TIOCGETP
898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
899 egrep "$ac_pattern" >/dev/null 2>&1; then
900 rm -rf conftest*
901 ac_cv_prog_gcc_traditional=yes
902 else
903 rm -rf conftest*
904 ac_cv_prog_gcc_traditional=no
906 rm -f conftest*
909 if test $ac_cv_prog_gcc_traditional = no; then
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
913 #include <termio.h>
914 Autoconf TCGETA
916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
917 egrep "$ac_pattern" >/dev/null 2>&1; then
918 rm -rf conftest*
919 ac_cv_prog_gcc_traditional=yes
921 rm -f conftest*
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"
934 x_driver_test=yes
935 curses_driver_test=yes
936 aa_driver_test=yes
937 vga_driver_test=yes
938 long_double=test
939 pthread=no
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
946 long_double=yes
948 if test x$withval = xno; then
949 long_double=no
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
959 pthread=test
961 if test x$withval = xno; then
962 pthread=no
975 if test x$long_double = xtest; then
976 case $target_cpu in
977 i?86*) long_double=yes
978 mflag=486
979 case $target_cpu in
980 i386*)
981 mmflag=-m386
983 i486*)
984 mmflag=-m486
986 i586*)
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
991 else
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
995 else
996 ac_cv_prog_cc_mpentium=no
998 rm -f conftest*
1002 echo "$ac_t""$ac_cv_prog_cc_mpentium" 1>&6
1003 if test $ac_cv_prog_cc_mpentium = yes; then
1004 mmflag=-mpentium
1005 else
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
1010 else
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
1014 else
1015 ac_cv_prog_cc_m586=no
1017 rm -f conftest*
1021 echo "$ac_t""$ac_cv_prog_cc_m586" 1>&6
1022 if test $ac_cv_prog_cc_m586 = yes; then
1023 mmflag=-m586
1024 else
1025 mmflag=-m486
1029 i?86*)
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
1034 else
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
1038 else
1039 ac_cv_prog_cc_mpentiumpro=no
1041 rm -f conftest*
1045 echo "$ac_t""$ac_cv_prog_cc_mpentiumpro" 1>&6
1046 if test $ac_cv_prog_cc_mpentiumpro = yes; then
1047 mmflag=-mpentiumpro
1048 else
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
1053 else
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
1057 else
1058 ac_cv_prog_cc_m686=no
1060 rm -f conftest*
1064 echo "$ac_t""$ac_cv_prog_cc_m686" 1>&6
1065 if test $ac_cv_prog_cc_m686 = yes; then
1066 mmflag=-m686
1067 else
1068 mmflag=-m486
1072 esac
1073 #PROG_CC_SWITCH(mno-ieee-fp,ieefp)
1075 unknown)
1076 long_double=yes
1078 esac
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
1086 else
1087 cat > conftestmake <<\EOF
1088 all:
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
1095 else
1096 eval ac_cv_prog_make_${ac_make}_set=no
1098 rm -f conftestmake
1100 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1101 echo "$ac_t""yes" 1>&6
1102 SET_MAKE=
1103 else
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
1114 else
1115 if test -n "$RANLIB"; then
1116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1117 else
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"
1123 break
1125 done
1126 IFS="$ac_save_ifs"
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
1133 else
1134 echo "$ac_t""no" 1>&6
1139 STICKY=''
1141 use_cc_g_flag=no
1142 DRIVERDIRS=""
1143 DRIVERLIBS=""
1144 CFLAGS="$CCOPTS"
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
1151 # AIX /bin/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
1160 else
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.
1164 case "$ac_dir/" in
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.
1175 else
1176 ac_cv_path_install="$ac_dir/$ac_prog -c"
1177 break 2
1180 done
1182 esac
1183 done
1184 IFS="$ac_save_IFS"
1187 if test "${ac_cv_path_install+set}" = set; then
1188 INSTALL="$ac_cv_path_install"
1189 else
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
1211 x_driver_test=no
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
1221 vga_driver_test=no
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
1241 aa_driver_test=no
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
1257 withval="$with_x"
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.
1264 have_x=disabled
1265 else
1266 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1267 # Both variables are already set.
1268 have_x=yes
1269 else
1270 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1272 else
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
1275 rm -fr conftestdir
1276 if mkdir conftestdir; then
1277 cd conftestdir
1278 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1279 cat > Imakefile <<'EOF'
1280 acfindx:
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
1292 done
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
1297 /usr/include) ;;
1298 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1299 esac
1300 case "$ac_im_usrlibdir" in
1301 /usr/lib | /lib) ;;
1302 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1303 esac
1305 cd ..
1306 rm -fr conftestdir
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
1323 rm -rf conftest*
1324 # We can compile using X headers with no special include directory.
1325 ac_x_includes=
1326 else
1327 echo "$ac_err" >&5
1328 echo "configure: failed program was:" >&5
1329 cat conftest.$ac_ext >&5
1330 rm -rf conftest*
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.
1333 for ac_dir in \
1334 /usr/X11/include \
1335 /usr/X11R6/include \
1336 /usr/X11R5/include \
1337 /usr/X11R4/include \
1339 /usr/include/X11 \
1340 /usr/include/X11R6 \
1341 /usr/include/X11R5 \
1342 /usr/include/X11R4 \
1344 /usr/local/X11/include \
1345 /usr/local/X11R6/include \
1346 /usr/local/X11R5/include \
1347 /usr/local/X11R4/include \
1349 /usr/local/include/X11 \
1350 /usr/local/include/X11R6 \
1351 /usr/local/include/X11R5 \
1352 /usr/local/include/X11R4 \
1354 /usr/X386/include \
1355 /usr/x386/include \
1356 /usr/XFree86/include/X11 \
1358 /usr/include \
1359 /usr/local/include \
1360 /usr/unsupported/include \
1361 /usr/athena/include \
1362 /usr/local/x11r5/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
1371 break
1373 done
1375 rm -f conftest*
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"
1392 int main() {
1393 ${x_direct_test_function}()
1394 ; return 0; }
1396 if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1397 rm -rf conftest*
1398 LIBS="$ac_save_LIBS"
1399 # We can link X programs with no special library path.
1400 ac_x_libraries=
1401 else
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1404 rm -rf conftest*
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/` \
1409 /usr/X11/lib \
1410 /usr/X11R6/lib \
1411 /usr/X11R5/lib \
1412 /usr/X11R4/lib \
1414 /usr/lib/X11 \
1415 /usr/lib/X11R6 \
1416 /usr/lib/X11R5 \
1417 /usr/lib/X11R4 \
1419 /usr/local/X11/lib \
1420 /usr/local/X11R6/lib \
1421 /usr/local/X11R5/lib \
1422 /usr/local/X11R4/lib \
1424 /usr/local/lib/X11 \
1425 /usr/local/lib/X11R6 \
1426 /usr/local/lib/X11R5 \
1427 /usr/local/lib/X11R4 \
1429 /usr/X386/lib \
1430 /usr/x386/lib \
1431 /usr/XFree86/lib/X11 \
1433 /usr/lib \
1434 /usr/local/lib \
1435 /usr/unsupported/lib \
1436 /usr/athena/lib \
1437 /usr/local/x11r5/lib \
1438 /usr/lpp/Xamples/lib \
1439 /lib/usr/lib/X11 \
1441 /usr/openwin/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
1448 break 2
1450 done
1451 done
1453 rm -f conftest*
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"
1459 else
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"
1467 fi # $with_x != no
1469 if test "$have_x" != yes; then
1470 echo "$ac_t""$have_x" 1>&6
1471 no_x=yes
1472 else
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=
1489 else
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
1500 "SunOS 5"*)
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"
1508 int main() {
1510 ; return 0; }
1512 if { (eval echo configure:1513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1513 rm -rf conftest*
1514 ac_R_nospace=yes
1515 else
1516 echo "configure: failed program was:" >&5
1517 cat conftest.$ac_ext >&5
1518 rm -rf conftest*
1519 ac_R_nospace=no
1521 rm -f conftest*
1522 if test $ac_R_nospace = yes; then
1523 echo "$ac_t""no" 1>&6
1524 X_LIBS="$X_LIBS -R$x_libraries"
1525 else
1526 LIBS="$ac_xsave_LIBS -R $x_libraries"
1527 cat > conftest.$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1531 int main() {
1533 ; return 0; }
1535 if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1536 rm -rf conftest*
1537 ac_R_space=yes
1538 else
1539 echo "configure: failed program was:" >&5
1540 cat conftest.$ac_ext >&5
1541 rm -rf conftest*
1542 ac_R_space=no
1544 rm -f conftest*
1545 if test $ac_R_space = yes; then
1546 echo "$ac_t""yes" 1>&6
1547 X_LIBS="$X_LIBS -R $x_libraries"
1548 else
1549 echo "$ac_t""neither works" 1>&6
1552 LIBS="$ac_xsave_LIBS"
1553 esac
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"
1562 else
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
1571 else
1572 ac_save_LIBS="$LIBS"
1573 LIBS="-ldnet $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. */
1580 char dnet_ntoa();
1582 int main() {
1583 dnet_ntoa()
1584 ; return 0; }
1586 if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1587 rm -rf conftest*
1588 eval "ac_cv_lib_$ac_lib_var=yes"
1589 else
1590 echo "configure: failed program was:" >&5
1591 cat conftest.$ac_ext >&5
1592 rm -rf conftest*
1593 eval "ac_cv_lib_$ac_lib_var=no"
1595 rm -f conftest*
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"
1602 else
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
1612 else
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. */
1621 char dnet_ntoa();
1623 int main() {
1624 dnet_ntoa()
1625 ; return 0; }
1627 if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1628 rm -rf conftest*
1629 eval "ac_cv_lib_$ac_lib_var=yes"
1630 else
1631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1633 rm -rf conftest*
1634 eval "ac_cv_lib_$ac_lib_var=no"
1636 rm -f conftest*
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"
1643 else
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)
1652 # needs -lnsl.
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
1659 else
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. */
1665 #include <assert.h>
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();
1671 int main() {
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)
1677 choke me
1678 #else
1679 gethostbyname();
1680 #endif
1682 ; return 0; }
1684 if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1685 rm -rf conftest*
1686 eval "ac_cv_func_gethostbyname=yes"
1687 else
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1690 rm -rf conftest*
1691 eval "ac_cv_func_gethostbyname=no"
1693 rm -f conftest*
1696 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1697 echo "$ac_t""yes" 1>&6
1699 else
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
1709 else
1710 ac_save_LIBS="$LIBS"
1711 LIBS="-lnsl $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();
1720 int main() {
1721 gethostbyname()
1722 ; return 0; }
1724 if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1725 rm -rf conftest*
1726 eval "ac_cv_lib_$ac_lib_var=yes"
1727 else
1728 echo "configure: failed program was:" >&5
1729 cat conftest.$ac_ext >&5
1730 rm -rf conftest*
1731 eval "ac_cv_lib_$ac_lib_var=no"
1733 rm -f conftest*
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"
1740 else
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
1757 else
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. */
1763 #include <assert.h>
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. */
1767 char connect();
1769 int main() {
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)
1775 choke me
1776 #else
1777 connect();
1778 #endif
1780 ; return 0; }
1782 if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1783 rm -rf conftest*
1784 eval "ac_cv_func_connect=yes"
1785 else
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1788 rm -rf conftest*
1789 eval "ac_cv_func_connect=no"
1791 rm -f conftest*
1794 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1795 echo "$ac_t""yes" 1>&6
1797 else
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
1807 else
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. */
1816 char connect();
1818 int main() {
1819 connect()
1820 ; return 0; }
1822 if { (eval echo configure:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1823 rm -rf conftest*
1824 eval "ac_cv_lib_$ac_lib_var=yes"
1825 else
1826 echo "configure: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1828 rm -rf conftest*
1829 eval "ac_cv_lib_$ac_lib_var=no"
1831 rm -f conftest*
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"
1838 else
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
1849 else
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. */
1855 #include <assert.h>
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. */
1859 char remove();
1861 int main() {
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)
1867 choke me
1868 #else
1869 remove();
1870 #endif
1872 ; return 0; }
1874 if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1875 rm -rf conftest*
1876 eval "ac_cv_func_remove=yes"
1877 else
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1880 rm -rf conftest*
1881 eval "ac_cv_func_remove=no"
1883 rm -f conftest*
1886 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1887 echo "$ac_t""yes" 1>&6
1889 else
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
1899 else
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. */
1908 char remove();
1910 int main() {
1911 remove()
1912 ; return 0; }
1914 if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1915 rm -rf conftest*
1916 eval "ac_cv_lib_$ac_lib_var=yes"
1917 else
1918 echo "configure: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1920 rm -rf conftest*
1921 eval "ac_cv_lib_$ac_lib_var=no"
1923 rm -f conftest*
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"
1930 else
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
1941 else
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. */
1947 #include <assert.h>
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. */
1951 char shmat();
1953 int main() {
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)
1959 choke me
1960 #else
1961 shmat();
1962 #endif
1964 ; return 0; }
1966 if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1967 rm -rf conftest*
1968 eval "ac_cv_func_shmat=yes"
1969 else
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1972 rm -rf conftest*
1973 eval "ac_cv_func_shmat=no"
1975 rm -f conftest*
1978 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1979 echo "$ac_t""yes" 1>&6
1981 else
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
1991 else
1992 ac_save_LIBS="$LIBS"
1993 LIBS="-lipc $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. */
2000 char shmat();
2002 int main() {
2003 shmat()
2004 ; return 0; }
2006 if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2007 rm -rf conftest*
2008 eval "ac_cv_lib_$ac_lib_var=yes"
2009 else
2010 echo "configure: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2012 rm -rf conftest*
2013 eval "ac_cv_lib_$ac_lib_var=no"
2015 rm -f conftest*
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"
2022 else
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
2043 else
2044 ac_save_LIBS="$LIBS"
2045 LIBS="-lICE $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();
2054 int main() {
2055 IceConnectionNumber()
2056 ; return 0; }
2058 if { (eval echo configure:2059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2059 rm -rf conftest*
2060 eval "ac_cv_lib_$ac_lib_var=yes"
2061 else
2062 echo "configure: failed program was:" >&5
2063 cat conftest.$ac_ext >&5
2064 rm -rf conftest*
2065 eval "ac_cv_lib_$ac_lib_var=no"
2067 rm -f conftest*
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"
2074 else
2075 echo "$ac_t""no" 1>&6
2078 LDFLAGS="$ac_save_LDFLAGS"
2084 cc_uses_g=yes
2085 if test x$GCC = xyes; then
2086 if test x$ac_cv_prog_gcc_g = xyes; then
2088 else
2089 cc_uses_g=no
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
2099 else
2100 echo 'void f(){}' > conftest.c
2101 if test -z "`${CC-cc} -Os -c conftest.c 2>&1`"; then
2102 ac_Os=yes
2103 CCOPTS="$CCOPTS -"
2104 else
2105 ac_Os=no
2107 rm -f conftest*
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
2118 else
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"
2123 else
2124 eval "ac_exceptions=no"
2126 rm -f conftest*
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'
2137 else
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
2143 else
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"
2148 else
2149 eval "ac_exceptions=no"
2151 rm -f conftest*
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
2159 CCOPTS='-g -O'
2163 if test x$ac_Os = xyes; then
2164 CCOPTS="$CCOPTS -Os"
2165 else
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
2172 else
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"
2177 else
2178 eval "ac_movables=no"
2180 rm -f conftest*
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
2189 else
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"
2194 else
2195 eval "ac_loopopt=no"
2197 rm -f conftest*
2201 echo "$ac_t""$ac_loopopt" 1>&6
2202 else
2203 if test x$use_cc_g_flag = xyes; then
2204 CCOPTS="$CFLAGS"
2205 else
2206 CCOPTS=
2207 case $target in
2208 m68k-hp-hpux8.00)
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
2216 else
2217 echo 'void f(){}' > conftest.c
2218 if test -z "`${CC-cc} -O -c conftest.c 2>&1`"; then
2219 eval "ac_optimizations=yes"
2220 CCOPTS="$CCOPTS -O"
2221 else
2222 eval "ac_optimizations=no"
2224 rm -f conftest*
2228 echo "$ac_t""$ac_optimizations" 1>&6
2230 esac
2235 CFLAGS="$CCOPTS"
2236 if test "$CCOPTS1" = "" ; then
2237 CCOPTS1="$CCOPTS"
2239 CFLAGS1="$CCOPTS1"
2243 search_ncurses=true
2245 CFLAGS=${CFLAGS--O}
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
2256 else
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. */
2262 #include <assert.h>
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. */
2266 char $ac_func();
2268 int main() {
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)
2274 choke me
2275 #else
2276 $ac_func();
2277 #endif
2279 ; return 0; }
2281 if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2282 rm -rf conftest*
2283 eval "ac_cv_func_$ac_func=yes"
2284 else
2285 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2287 rm -rf conftest*
2288 eval "ac_cv_func_$ac_func=no"
2290 rm -f conftest*
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
2300 else
2301 echo "$ac_t""no" 1>&6
2303 done
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
2318 else
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. */
2324 #include <assert.h>
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. */
2328 char $ac_func();
2330 int main() {
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)
2336 choke me
2337 #else
2338 $ac_func();
2339 #endif
2341 ; return 0; }
2343 if { (eval echo configure:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2344 rm -rf conftest*
2345 eval "ac_cv_func_$ac_func=yes"
2346 else
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2349 rm -rf conftest*
2350 eval "ac_cv_func_$ac_func=no"
2352 rm -f conftest*
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
2362 else
2363 echo "$ac_t""no" 1>&6
2365 done
2367 else
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
2373 else
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();
2384 int main() {
2385 pthread_create()
2386 ; return 0; }
2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2389 rm -rf conftest*
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2391 else
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 rm -rf conftest*
2395 eval "ac_cv_lib_$ac_lib_var=no"
2397 rm -f conftest*
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"
2411 else
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
2428 else
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. */
2434 #include <assert.h>
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. */
2438 char $ac_func();
2440 int main() {
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)
2446 choke me
2447 #else
2448 $ac_func();
2449 #endif
2451 ; return 0; }
2453 if { (eval echo configure:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2454 rm -rf conftest*
2455 eval "ac_cv_func_$ac_func=yes"
2456 else
2457 echo "configure: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2459 rm -rf conftest*
2460 eval "ac_cv_func_$ac_func=no"
2462 rm -f conftest*
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
2472 else
2473 echo "$ac_t""no" 1>&6
2475 done
2477 else
2478 echo "No pthread library available! Can not compile threaded version"
2479 exit
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
2499 curses_driver=true
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
2534 else
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. */
2543 char initscr();
2545 int main() {
2546 initscr()
2547 ; return 0; }
2549 if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2550 rm -rf conftest*
2551 eval "ac_cv_lib_$ac_lib_var=yes"
2552 else
2553 echo "configure: failed program was:" >&5
2554 cat conftest.$ac_ext >&5
2555 rm -rf conftest*
2556 eval "ac_cv_lib_$ac_lib_var=no"
2558 rm -f conftest*
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"
2572 else
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
2579 curses_driver=true
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
2600 CFLAGS="$CFLAGS"
2601 else
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
2610 else
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. */
2619 char initscr();
2621 int main() {
2622 initscr()
2623 ; return 0; }
2625 if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2626 rm -rf conftest*
2627 eval "ac_cv_lib_$ac_lib_var=yes"
2628 else
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2631 rm -rf conftest*
2632 eval "ac_cv_lib_$ac_lib_var=no"
2634 rm -f conftest*
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"
2648 else
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
2654 curses_driver=true
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
2671 then
2672 search_ncurses=true
2673 else
2674 LIBS="$LIBS -L$withval/lib -lncurses"
2675 CFLAGS="$CFLAGS -I$withval/include"
2676 search_ncurses=false
2677 curses_driver=true
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
2701 else
2702 ac_save_LIBS="$LIBS"
2703 LIBS="-lgpm $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. */
2710 char Gpm_Repeat();
2712 int main() {
2713 Gpm_Repeat()
2714 ; return 0; }
2716 if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2717 rm -rf conftest*
2718 eval "ac_cv_lib_$ac_lib_var=yes"
2719 else
2720 echo "configure: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2722 rm -rf conftest*
2723 eval "ac_cv_lib_$ac_lib_var=no"
2725 rm -f conftest*
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
2737 LIBS="-lgpm $LIBS"
2739 else
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
2748 else
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();
2759 int main() {
2760 SLsmg_init_smg()
2761 ; return 0; }
2763 if { (eval echo configure:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2764 rm -rf conftest*
2765 eval "ac_cv_lib_$ac_lib_var=yes"
2766 else
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2769 rm -rf conftest*
2770 eval "ac_cv_lib_$ac_lib_var=no"
2772 rm -f conftest*
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"
2786 else
2787 echo "$ac_t""no" 1>&6
2792 if $search_ncurses
2793 then
2794 if test -f /usr/include/ncurses.h
2795 then
2796 LIBS1="$LIBS"
2797 LIBS="$LIBS "
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
2803 else
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. */
2812 char initscr();
2814 int main() {
2815 initscr()
2816 ; return 0; }
2818 if { (eval echo configure:2819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2819 rm -rf conftest*
2820 eval "ac_cv_lib_$ac_lib_var=yes"
2821 else
2822 echo "configure: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2824 rm -rf conftest*
2825 eval "ac_cv_lib_$ac_lib_var=no"
2827 rm -f conftest*
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"
2841 else
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
2847 LIBS="$LIBS "
2848 CFLAGS="$CFLAGS -I/usr/include/ncurses "
2849 search_ncurses=false
2850 curses_driver=true
2851 screen_manager="ncurses on /usr/include"
2852 cat >> confdefs.h <<\EOF
2853 #define USE_NCURSES 1
2856 else
2857 unset ac_cv_lib_ncurses_initscr
2858 LIBS="$LIBS1"
2864 if $search_ncurses
2865 then
2866 if test -f /usr/include/ncurses/ncurses.h
2867 then
2868 LIBS1="$LIBS"
2869 LIBS="$LIBS "
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
2875 else
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. */
2884 char initscr();
2886 int main() {
2887 initscr()
2888 ; return 0; }
2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2891 rm -rf conftest*
2892 eval "ac_cv_lib_$ac_lib_var=yes"
2893 else
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2896 rm -rf conftest*
2897 eval "ac_cv_lib_$ac_lib_var=no"
2899 rm -f conftest*
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"
2913 else
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
2919 LIBS="$LIBS "
2920 CFLAGS="$CFLAGS -I/usr/include/ncurses"
2921 search_ncurses=false
2922 curses_driver=true
2923 screen_manager="ncurses on /usr/include/ncurses"
2924 cat >> confdefs.h <<\EOF
2925 #define USE_NCURSES 1
2928 else
2929 unset ac_cv_lib_ncurses_initscr
2930 LIBS="$LIBS1"
2936 if $search_ncurses
2937 then
2938 if test -f /usr/local/include/ncurses.h
2939 then
2940 LIBS1="$LIBS"
2941 LIBS="$LIBS "
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
2947 else
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. */
2956 char initscr();
2958 int main() {
2959 initscr()
2960 ; return 0; }
2962 if { (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2963 rm -rf conftest*
2964 eval "ac_cv_lib_$ac_lib_var=yes"
2965 else
2966 echo "configure: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2968 rm -rf conftest*
2969 eval "ac_cv_lib_$ac_lib_var=no"
2971 rm -f conftest*
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"
2985 else
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
2991 LIBS="$LIBS "
2992 CFLAGS="$CFLAGS -L/usr/local/lib"
2993 search_ncurses=false
2994 curses_driver=true
2995 screen_manager=-I/usr/local/include
2996 cat >> confdefs.h <<\EOF
2997 #define USE_NCURSES 1
3000 else
3001 unset ac_cv_lib_ncurses_initscr
3002 LIBS="$LIBS1"
3008 if $search_ncurses
3009 then
3010 if test -f /usr/local/include/ncurses/ncurses.h
3011 then
3012 LIBS1="$LIBS"
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
3019 else
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. */
3028 char initscr();
3030 int main() {
3031 initscr()
3032 ; return 0; }
3034 if { (eval echo configure:3035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3035 rm -rf conftest*
3036 eval "ac_cv_lib_$ac_lib_var=yes"
3037 else
3038 echo "configure: failed program was:" >&5
3039 cat conftest.$ac_ext >&5
3040 rm -rf conftest*
3041 eval "ac_cv_lib_$ac_lib_var=no"
3043 rm -f conftest*
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"
3057 else
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
3066 curses_driver=true
3067 screen_manager="ncurses on /usr/local/include/ncurses"
3068 cat >> confdefs.h <<\EOF
3069 #define USE_NCURSES 1
3072 else
3073 unset ac_cv_lib_ncurses_initscr
3074 LIBS="$LIBS1"
3081 if $search_ncurses
3082 then
3083 if test -f /usr/local/include/ncurses/curses.h
3084 then
3085 LIBS1="$LIBS"
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
3092 else
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. */
3101 char initscr();
3103 int main() {
3104 initscr()
3105 ; return 0; }
3107 if { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3108 rm -rf conftest*
3109 eval "ac_cv_lib_$ac_lib_var=yes"
3110 else
3111 echo "configure: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3113 rm -rf conftest*
3114 eval "ac_cv_lib_$ac_lib_var=no"
3116 rm -f conftest*
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"
3130 else
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
3139 curses_driver=true
3140 screen_manager="renamed ncurses on /usr/local/.../ncurses"
3141 cat >> confdefs.h <<\EOF
3142 #define USE_NCURSES 1
3145 else
3146 unset ac_cv_lib_ncurses_initscr
3147 LIBS="$LIBS1"
3154 if $search_ncurses
3155 then
3156 if test -f /usr/include/ncurses/curses.h
3157 then
3158 LIBS1="$LIBS"
3159 LIBS="$LIBS "
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
3165 else
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. */
3174 char initscr();
3176 int main() {
3177 initscr()
3178 ; return 0; }
3180 if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3181 rm -rf conftest*
3182 eval "ac_cv_lib_$ac_lib_var=yes"
3183 else
3184 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3186 rm -rf conftest*
3187 eval "ac_cv_lib_$ac_lib_var=no"
3189 rm -f conftest*
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"
3203 else
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
3209 LIBS="$LIBS "
3210 CFLAGS="$CFLAGS -I/usr/include/ncurses -DRENAMED_NCURSES"
3211 search_ncurses=false
3212 curses_driver=true
3213 screen_manager="renamed ncurses on /usr/include/ncurses"
3214 cat >> confdefs.h <<\EOF
3215 #define USE_NCURSES 1
3218 else
3219 unset ac_cv_lib_ncurses_initscr
3220 LIBS="$LIBS1"
3226 if $search_ncurses
3227 then
3228 if test -f /usr/include/curses.h
3229 then
3230 LIBS1="$LIBS"
3231 LIBS="$LIBS "
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
3237 else
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. */
3246 char initscr();
3248 int main() {
3249 initscr()
3250 ; return 0; }
3252 if { (eval echo configure:3253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3253 rm -rf conftest*
3254 eval "ac_cv_lib_$ac_lib_var=yes"
3255 else
3256 echo "configure: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3258 rm -rf conftest*
3259 eval "ac_cv_lib_$ac_lib_var=no"
3261 rm -f conftest*
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"
3275 else
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
3281 CFLAGS="$CFLAGS "
3282 search_ncurses=false
3283 curses_driver=true
3284 screen_manager="curses on /usr/include"
3285 cat >> confdefs.h <<\EOF
3286 #define USE_CURSES 1
3289 else
3290 unset ac_cv_lib_curses_initscr
3291 LIBS="$LIBS1"
3297 if $search_ncurses
3298 then
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
3306 rm -rf conftest*
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
3313 else
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. */
3322 char initscr();
3324 int main() {
3325 initscr()
3326 ; return 0; }
3328 if { (eval echo configure:3329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3329 rm -rf conftest*
3330 eval "ac_cv_lib_$ac_lib_var=yes"
3331 else
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3334 rm -rf conftest*
3335 eval "ac_cv_lib_$ac_lib_var=no"
3337 rm -f conftest*
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"
3351 else
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
3357 curses_driver=true
3358 cat >> confdefs.h <<\EOF
3359 #define USE_SYSV_CURSES 1
3362 search_ncurses=false
3363 screen_manager="SysV/curses"
3367 rm -f conftest*
3371 if $search_ncurses
3372 then
3373 if test -f /usr/5include/curses.h
3374 then
3376 search_ncurses=false
3377 curses_driver=true
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
3399 search_aalib=true;
3400 if test "x$no_x" = x; then
3401 LIBS="$LIBS $X_EXTRA_LIBS $X_LIBS"
3402 CFLAGS="$CFLAGS $X_CFLAGS"
3405 if $search_aalib
3406 then
3407 LIBS1="$LIBS"
3408 LIBS="$LIBS $X_EXTRA_LIBS $X_LIBS -lX11"
3409 if test -f /usr/include/aalib.h
3410 then
3411 LIBS1="$LIBS"
3412 LIBS="$LIBS "
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
3419 else
3420 ac_save_LIBS="$LIBS"
3421 LIBS="-laa $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. */
3428 char aa_init();
3430 int main() {
3431 aa_init()
3432 ; return 0; }
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3435 rm -rf conftest*
3436 eval "ac_cv_lib_$ac_lib_var=yes"
3437 else
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3440 rm -rf conftest*
3441 eval "ac_cv_lib_$ac_lib_var=no"
3443 rm -f conftest*
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
3455 LIBS="-laa $LIBS"
3457 else
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
3463 LIBS="$LIBS "
3464 CFLAGS="$CFLAGS "
3465 search_aalib=false
3466 aa_driver=true
3467 else
3468 unset ac_cv_lib_aa_aa_init
3469 LIBS="$LIBS1"
3475 if $search_aalib
3476 then
3477 LIBS1="$LIBS"
3478 LIBS="$LIBS $X_EXTRA_LIBS $X_LIBS -lX11"
3479 if test -f /usr/local/include/aalib.h
3480 then
3481 LIBS1="$LIBS"
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
3489 else
3490 ac_save_LIBS="$LIBS"
3491 LIBS="-laa $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. */
3498 char aa_init();
3500 int main() {
3501 aa_init()
3502 ; return 0; }
3504 if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3505 rm -rf conftest*
3506 eval "ac_cv_lib_$ac_lib_var=yes"
3507 else
3508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3510 rm -rf conftest*
3511 eval "ac_cv_lib_$ac_lib_var=no"
3513 rm -f conftest*
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
3525 LIBS="-laa $LIBS"
3527 else
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"
3535 search_aalib=false
3536 aa_driver=true
3537 else
3538 unset ac_cv_lib_aa_aa_init
3539 LIBS="$LIBS1"
3544 for name in ../aalib-*.*
3547 if $search_aalib
3548 then
3549 LIBS1="$LIBS"
3550 LIBS="$LIBS $X_EXTRA_LIBS $X_LIBS -lX11"
3551 if test -f $name/aalib.h
3552 then
3553 LIBS1="$LIBS"
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
3561 else
3562 ac_save_LIBS="$LIBS"
3563 LIBS="-laa $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. */
3570 char aa_init();
3572 int main() {
3573 aa_init()
3574 ; return 0; }
3576 if { (eval echo configure:3577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3577 rm -rf conftest*
3578 eval "ac_cv_lib_$ac_lib_var=yes"
3579 else
3580 echo "configure: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3582 rm -rf conftest*
3583 eval "ac_cv_lib_$ac_lib_var=no"
3585 rm -f conftest*
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
3597 LIBS="-laa $LIBS"
3599 else
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""
3607 search_aalib=false
3608 aa_driver=true
3609 else
3610 unset ac_cv_lib_aa_aa_init
3611 LIBS="$LIBS1"
3616 done
3617 if $search_aalib
3618 then
3619 aa_driver=false
3620 else
3621 aa_driver=true
3622 curses_driver_test=no
3626 if test "$curses_driver_test" = yes; then
3627 if $search_ncurses
3628 then
3629 echo "checking "location of curses"" 1>&6
3630 echo "configure:3631: checking "location of curses"" >&5
3633 if $search_ncurses
3634 then
3635 if test -f /usr/include/ncurses.h
3636 then
3637 LIBS1="$LIBS"
3638 LIBS="$LIBS "
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
3644 else
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. */
3653 char initscr();
3655 int main() {
3656 initscr()
3657 ; return 0; }
3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3660 rm -rf conftest*
3661 eval "ac_cv_lib_$ac_lib_var=yes"
3662 else
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3665 rm -rf conftest*
3666 eval "ac_cv_lib_$ac_lib_var=no"
3668 rm -f conftest*
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"
3682 else
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
3688 LIBS="$LIBS "
3689 CFLAGS="$CFLAGS -I/usr/include/ncurses "
3690 search_ncurses=false
3691 curses_driver=true
3692 screen_manager="ncurses on /usr/include"
3693 cat >> confdefs.h <<\EOF
3694 #define USE_NCURSES 1
3697 else
3698 unset ac_cv_lib_ncurses_initscr
3699 LIBS="$LIBS1"
3705 if $search_ncurses
3706 then
3707 if test -f /usr/include/ncurses/ncurses.h
3708 then
3709 LIBS1="$LIBS"
3710 LIBS="$LIBS "
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
3716 else
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. */
3725 char initscr();
3727 int main() {
3728 initscr()
3729 ; return 0; }
3731 if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3732 rm -rf conftest*
3733 eval "ac_cv_lib_$ac_lib_var=yes"
3734 else
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3737 rm -rf conftest*
3738 eval "ac_cv_lib_$ac_lib_var=no"
3740 rm -f conftest*
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"
3754 else
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
3760 LIBS="$LIBS "
3761 CFLAGS="$CFLAGS -I/usr/include/ncurses"
3762 search_ncurses=false
3763 curses_driver=true
3764 screen_manager="ncurses on /usr/include/ncurses"
3765 cat >> confdefs.h <<\EOF
3766 #define USE_NCURSES 1
3769 else
3770 unset ac_cv_lib_ncurses_initscr
3771 LIBS="$LIBS1"
3777 if $search_ncurses
3778 then
3779 if test -f /usr/local/include/ncurses.h
3780 then
3781 LIBS1="$LIBS"
3782 LIBS="$LIBS "
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
3788 else
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. */
3797 char initscr();
3799 int main() {
3800 initscr()
3801 ; return 0; }
3803 if { (eval echo configure:3804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3804 rm -rf conftest*
3805 eval "ac_cv_lib_$ac_lib_var=yes"
3806 else
3807 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3809 rm -rf conftest*
3810 eval "ac_cv_lib_$ac_lib_var=no"
3812 rm -f conftest*
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"
3826 else
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
3832 LIBS="$LIBS "
3833 CFLAGS="$CFLAGS -L/usr/local/lib"
3834 search_ncurses=false
3835 curses_driver=true
3836 screen_manager=-I/usr/local/include
3837 cat >> confdefs.h <<\EOF
3838 #define USE_NCURSES 1
3841 else
3842 unset ac_cv_lib_ncurses_initscr
3843 LIBS="$LIBS1"
3849 if $search_ncurses
3850 then
3851 if test -f /usr/local/include/ncurses/ncurses.h
3852 then
3853 LIBS1="$LIBS"
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
3860 else
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. */
3869 char initscr();
3871 int main() {
3872 initscr()
3873 ; return 0; }
3875 if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3876 rm -rf conftest*
3877 eval "ac_cv_lib_$ac_lib_var=yes"
3878 else
3879 echo "configure: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3881 rm -rf conftest*
3882 eval "ac_cv_lib_$ac_lib_var=no"
3884 rm -f conftest*
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"
3898 else
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
3907 curses_driver=true
3908 screen_manager="ncurses on /usr/local/include/ncurses"
3909 cat >> confdefs.h <<\EOF
3910 #define USE_NCURSES 1
3913 else
3914 unset ac_cv_lib_ncurses_initscr
3915 LIBS="$LIBS1"
3922 if $search_ncurses
3923 then
3924 if test -f /usr/local/include/ncurses/curses.h
3925 then
3926 LIBS1="$LIBS"
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
3933 else
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. */
3942 char initscr();
3944 int main() {
3945 initscr()
3946 ; return 0; }
3948 if { (eval echo configure:3949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3949 rm -rf conftest*
3950 eval "ac_cv_lib_$ac_lib_var=yes"
3951 else
3952 echo "configure: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3954 rm -rf conftest*
3955 eval "ac_cv_lib_$ac_lib_var=no"
3957 rm -f conftest*
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"
3971 else
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
3980 curses_driver=true
3981 screen_manager="renamed ncurses on /usr/local/.../ncurses"
3982 cat >> confdefs.h <<\EOF
3983 #define USE_NCURSES 1
3986 else
3987 unset ac_cv_lib_ncurses_initscr
3988 LIBS="$LIBS1"
3995 if $search_ncurses
3996 then
3997 if test -f /usr/include/ncurses/curses.h
3998 then
3999 LIBS1="$LIBS"
4000 LIBS="$LIBS "
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
4006 else
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. */
4015 char initscr();
4017 int main() {
4018 initscr()
4019 ; return 0; }
4021 if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4022 rm -rf conftest*
4023 eval "ac_cv_lib_$ac_lib_var=yes"
4024 else
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4027 rm -rf conftest*
4028 eval "ac_cv_lib_$ac_lib_var=no"
4030 rm -f conftest*
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"
4044 else
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
4050 LIBS="$LIBS "
4051 CFLAGS="$CFLAGS -I/usr/include/ncurses -DRENAMED_NCURSES"
4052 search_ncurses=false
4053 curses_driver=true
4054 screen_manager="renamed ncurses on /usr/include/ncurses"
4055 cat >> confdefs.h <<\EOF
4056 #define USE_NCURSES 1
4059 else
4060 unset ac_cv_lib_ncurses_initscr
4061 LIBS="$LIBS1"
4067 if $search_ncurses
4068 then
4069 if test -f /usr/include/curses.h
4070 then
4071 LIBS1="$LIBS"
4072 LIBS="$LIBS "
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
4078 else
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. */
4087 char initscr();
4089 int main() {
4090 initscr()
4091 ; return 0; }
4093 if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4094 rm -rf conftest*
4095 eval "ac_cv_lib_$ac_lib_var=yes"
4096 else
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4099 rm -rf conftest*
4100 eval "ac_cv_lib_$ac_lib_var=no"
4102 rm -f conftest*
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"
4116 else
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
4122 CFLAGS="$CFLAGS "
4123 search_ncurses=false
4124 curses_driver=true
4125 screen_manager="curses on /usr/include"
4126 cat >> confdefs.h <<\EOF
4127 #define USE_CURSES 1
4130 else
4131 unset ac_cv_lib_curses_initscr
4132 LIBS="$LIBS1"
4138 if $search_ncurses
4139 then
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
4147 rm -rf conftest*
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
4154 else
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. */
4163 char initscr();
4165 int main() {
4166 initscr()
4167 ; return 0; }
4169 if { (eval echo configure:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4170 rm -rf conftest*
4171 eval "ac_cv_lib_$ac_lib_var=yes"
4172 else
4173 echo "configure: failed program was:" >&5
4174 cat conftest.$ac_ext >&5
4175 rm -rf conftest*
4176 eval "ac_cv_lib_$ac_lib_var=no"
4178 rm -f conftest*
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"
4192 else
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
4198 curses_driver=true
4199 cat >> confdefs.h <<\EOF
4200 #define USE_SYSV_CURSES 1
4203 search_ncurses=false
4204 screen_manager="SysV/curses"
4208 rm -f conftest*
4212 if $search_ncurses
4213 then
4214 if test -f /usr/5include/curses.h
4215 then
4217 search_ncurses=false
4218 curses_driver=true
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
4246 else
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. */
4252 #include <assert.h>
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. */
4256 char $ac_func();
4258 int main() {
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)
4264 choke me
4265 #else
4266 $ac_func();
4267 #endif
4269 ; return 0; }
4271 if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4272 rm -rf conftest*
4273 eval "ac_cv_func_$ac_func=yes"
4274 else
4275 echo "configure: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4277 rm -rf conftest*
4278 eval "ac_cv_func_$ac_func=no"
4280 rm -f conftest*
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
4290 else
4291 echo "$ac_t""no" 1>&6
4293 done
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
4303 else
4304 ac_save_LIBS="$LIBS"
4305 LIBS="-lvga $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. */
4312 char vga_hasmode();
4314 int main() {
4315 vga_hasmode()
4316 ; return 0; }
4318 if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4319 rm -rf conftest*
4320 eval "ac_cv_lib_$ac_lib_var=yes"
4321 else
4322 echo "configure: failed program was:" >&5
4323 cat conftest.$ac_ext >&5
4324 rm -rf conftest*
4325 eval "ac_cv_lib_$ac_lib_var=no"
4327 rm -f conftest*
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
4339 LIBS="-lvga $LIBS"
4341 else
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
4350 else
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. */
4359 char gl_write();
4361 int main() {
4362 gl_write()
4363 ; return 0; }
4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4366 rm -rf conftest*
4367 eval "ac_cv_lib_$ac_lib_var=yes"
4368 else
4369 echo "configure: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4371 rm -rf conftest*
4372 eval "ac_cv_lib_$ac_lib_var=no"
4374 rm -f conftest*
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"
4388 else
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
4403 else
4404 cat > conftest.$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4407 #include <$ac_hdr>
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
4413 rm -rf conftest*
4414 eval "ac_cv_header_$ac_safe=yes"
4415 else
4416 echo "$ac_err" >&5
4417 echo "configure: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4419 rm -rf conftest*
4420 eval "ac_cv_header_$ac_safe=no"
4422 rm -f conftest*
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
4431 else
4432 echo "$ac_t""no" 1>&6
4434 done
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
4441 else
4442 cat > conftest.$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4446 int main() {
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;
4452 char **p;
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. */
4462 ++ccp;
4463 p = (char**) ccp;
4464 ccp = (char const *const *) p;
4465 { /* SCO 3.2v4 cc rejects this. */
4466 char *t;
4467 char const *s = 0 ? (char *) 0 : (char const *) 0;
4469 *t++ = 0;
4471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4472 int x[] = {25, 17};
4473 const int *foo = &x[0];
4474 ++foo;
4476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4477 typedef const int *iptr;
4478 iptr p = 0;
4479 ++p;
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 */
4487 const int foo = 10;
4490 ; return 0; }
4492 if { (eval echo configure:4493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4493 rm -rf conftest*
4494 ac_cv_c_const=yes
4495 else
4496 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4498 rm -rf conftest*
4499 ac_cv_c_const=no
4501 rm -f conftest*
4504 echo "$ac_t""$ac_cv_c_const" 1>&6
4505 if test $ac_cv_c_const = no; then
4506 cat >> confdefs.h <<\EOF
4507 #define const
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
4516 else
4517 ac_cv_c_inline=no
4518 for ac_kw in inline __inline__ __inline; do
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4523 int main() {
4524 } $ac_kw foo() {
4525 ; return 0; }
4527 if { (eval echo configure:4528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4528 rm -rf conftest*
4529 ac_cv_c_inline=$ac_kw; break
4530 else
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4534 rm -f conftest*
4535 done
4539 echo "$ac_t""$ac_cv_c_inline" 1>&6
4540 case "$ac_cv_c_inline" in
4541 inline | yes) ;;
4542 no) cat >> confdefs.h <<\EOF
4543 #define inline
4546 *) cat >> confdefs.h <<EOF
4547 #define inline $ac_cv_c_inline
4550 esac
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
4557 else
4558 if test "$GCC" = yes; then
4559 ac_cv_c_long_double=yes
4560 else
4561 if test "$cross_compiling" = yes; then
4562 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4563 else
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4567 int main() {
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
4574 then
4575 ac_cv_c_long_double=yes
4576 else
4577 echo "configure: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4579 rm -fr conftest*
4580 ac_cv_c_long_double=no
4582 rm -fr conftest*
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
4596 else
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
4603 else
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4607 #include <sys/types.h>
4608 #include <sys/time.h>
4609 #include <time.h>
4610 int main() {
4611 struct tm *tp;
4612 ; return 0; }
4614 if { (eval echo configure:4615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4615 rm -rf conftest*
4616 ac_cv_header_time=yes
4617 else
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4620 rm -rf conftest*
4621 ac_cv_header_time=no
4623 rm -f conftest*
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
4638 else
4639 cat > conftest.$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4642 #include <sys/types.h>
4643 #include <signal.h>
4644 #ifdef signal
4645 #undef signal
4646 #endif
4647 #ifdef __cplusplus
4648 extern "C" void (*signal (int, void (*)(int)))(int);
4649 #else
4650 void (*signal ()) ();
4651 #endif
4653 int main() {
4654 int i;
4655 ; return 0; }
4657 if { (eval echo configure:4658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4658 rm -rf conftest*
4659 ac_cv_type_signal=void
4660 else
4661 echo "configure: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4663 rm -rf conftest*
4664 ac_cv_type_signal=int
4666 rm -f conftest*
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
4686 else
4687 if test "$cross_compiling" = yes; then
4688 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4689 else
4690 cat > conftest.$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4693 #include <stdio.h>
4694 main()
4696 FILE *f=fopen("conftestval", "w");
4697 if (!f) exit(1);
4698 fprintf(f, "%d\n", sizeof(short));
4699 exit(0);
4702 if { (eval echo configure:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4703 then
4704 ac_cv_sizeof_short=`cat conftestval`
4705 else
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4708 rm -fr conftest*
4709 ac_cv_sizeof_short=0
4711 rm -fr conftest*
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
4725 else
4726 if test "$cross_compiling" = yes; then
4727 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4728 else
4729 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4732 #include <stdio.h>
4733 main()
4735 FILE *f=fopen("conftestval", "w");
4736 if (!f) exit(1);
4737 fprintf(f, "%d\n", sizeof(int));
4738 exit(0);
4741 if { (eval echo configure:4742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4742 then
4743 ac_cv_sizeof_int=`cat conftestval`
4744 else
4745 echo "configure: failed program was:" >&5
4746 cat conftest.$ac_ext >&5
4747 rm -fr conftest*
4748 ac_cv_sizeof_int=0
4750 rm -fr conftest*
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
4764 else
4765 if test "$cross_compiling" = yes; then
4766 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4767 else
4768 cat > conftest.$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4771 #include <stdio.h>
4772 main()
4774 FILE *f=fopen("conftestval", "w");
4775 if (!f) exit(1);
4776 fprintf(f, "%d\n", sizeof(long));
4777 exit(0);
4780 if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4781 then
4782 ac_cv_sizeof_long=`cat conftestval`
4783 else
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4786 rm -fr conftest*
4787 ac_cv_sizeof_long=0
4789 rm -fr conftest*
4793 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4794 cat >> confdefs.h <<EOF
4795 #define SIZEOF_LONG $ac_cv_sizeof_long
4800 save_code=yes
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
4806 else
4807 ac_save_LIBS="$LIBS"
4808 LIBS="-lm $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. */
4815 char pow();
4817 int main() {
4818 pow()
4819 ; return 0; }
4821 if { (eval echo configure:4822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4822 rm -rf conftest*
4823 eval "ac_cv_lib_$ac_lib_var=yes"
4824 else
4825 echo "configure: failed program was:" >&5
4826 cat conftest.$ac_ext >&5
4827 rm -rf conftest*
4828 eval "ac_cv_lib_$ac_lib_var=no"
4830 rm -f conftest*
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
4842 LIBS="-lm $LIBS"
4844 else
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
4853 else
4854 ac_save_LIBS="$LIBS"
4855 LIBS="-lz $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. */
4862 char inflate();
4864 int main() {
4865 inflate()
4866 ; return 0; }
4868 if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4869 rm -rf conftest*
4870 eval "ac_cv_lib_$ac_lib_var=yes"
4871 else
4872 echo "configure: failed program was:" >&5
4873 cat conftest.$ac_ext >&5
4874 rm -rf conftest*
4875 eval "ac_cv_lib_$ac_lib_var=no"
4877 rm -f conftest*
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
4889 LIBS="-lz $LIBS"
4891 else
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
4901 else
4902 ac_save_LIBS="$LIBS"
4903 LIBS="-lgz $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. */
4910 char inflate();
4912 int main() {
4913 inflate()
4914 ; return 0; }
4916 if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4917 rm -rf conftest*
4918 eval "ac_cv_lib_$ac_lib_var=yes"
4919 else
4920 echo "configure: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4922 rm -rf conftest*
4923 eval "ac_cv_lib_$ac_lib_var=no"
4925 rm -f conftest*
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
4937 LIBS="-lgz $LIBS"
4939 else
4940 echo "$ac_t""no" 1>&6
4943 if test x"$ac_cv_lib_gz_inflate" = xno; then
4944 save_code=no
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
4952 else
4953 ac_save_LIBS="$LIBS"
4954 LIBS="-lpng $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();
4963 int main() {
4964 png_create_info_struct()
4965 ; return 0; }
4967 if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4968 rm -rf conftest*
4969 eval "ac_cv_lib_$ac_lib_var=yes"
4970 else
4971 echo "configure: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4973 rm -rf conftest*
4974 eval "ac_cv_lib_$ac_lib_var=no"
4976 rm -f conftest*
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
4988 LIBS="-lpng $LIBS"
4990 else
4991 echo "$ac_t""no" 1>&6
4994 if test x"$ac_cv_lib_png_png_create_info_struct" = xno; then
4995 save_code=no
4997 if test "$save_code" = yes; then
4998 cat >> confdefs.h <<\EOF
4999 #define USE_PNG 1
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
5009 else
5010 cat > conftest.$ac_ext <<EOF
5011 #line 5012 "configure"
5012 #include "confdefs.h"
5013 #include <alloca.h>
5014 int main() {
5015 char *p = alloca(2 * sizeof(int));
5016 ; return 0; }
5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5019 rm -rf conftest*
5020 ac_cv_header_alloca_h=yes
5021 else
5022 echo "configure: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5024 rm -rf conftest*
5025 ac_cv_header_alloca_h=no
5027 rm -f conftest*
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
5042 else
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5047 #ifdef __GNUC__
5048 # define alloca __builtin_alloca
5049 #else
5050 # if HAVE_ALLOCA_H
5051 # include <alloca.h>
5052 # else
5053 # ifdef _AIX
5054 #pragma alloca
5055 # else
5056 # ifndef alloca /* predefined by HP cc +Olibcalls */
5057 char *alloca ();
5058 # endif
5059 # endif
5060 # endif
5061 #endif
5063 int main() {
5064 char *p = (char *) alloca(1);
5065 ; return 0; }
5067 if { (eval echo configure:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5068 rm -rf conftest*
5069 ac_cv_func_alloca_works=yes
5070 else
5071 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5073 rm -rf conftest*
5074 ac_cv_func_alloca_works=no
5076 rm -f conftest*
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.
5092 ALLOCA=alloca.o
5093 cat >> confdefs.h <<\EOF
5094 #define C_ALLOCA 1
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
5102 else
5103 cat > conftest.$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5106 #if defined(CRAY) && ! defined(CRAY2)
5107 webecray
5108 #else
5109 wenotbecray
5110 #endif
5113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5114 egrep "webecray" >/dev/null 2>&1; then
5115 rm -rf conftest*
5116 ac_cv_os_cray=yes
5117 else
5118 rm -rf conftest*
5119 ac_cv_os_cray=no
5121 rm -f conftest*
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
5132 else
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. */
5138 #include <assert.h>
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. */
5142 char $ac_func();
5144 int main() {
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)
5150 choke me
5151 #else
5152 $ac_func();
5153 #endif
5155 ; return 0; }
5157 if { (eval echo configure:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5158 rm -rf conftest*
5159 eval "ac_cv_func_$ac_func=yes"
5160 else
5161 echo "configure: failed program was:" >&5
5162 cat conftest.$ac_ext >&5
5163 rm -rf conftest*
5164 eval "ac_cv_func_$ac_func=no"
5166 rm -f conftest*
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
5175 break
5176 else
5177 echo "$ac_t""no" 1>&6
5180 done
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
5187 else
5188 if test "$cross_compiling" = yes; then
5189 ac_cv_c_stack_direction=0
5190 else
5191 cat > conftest.$ac_ext <<EOF
5192 #line 5193 "configure"
5193 #include "confdefs.h"
5194 find_stack_direction ()
5196 static char *addr = 0;
5197 auto char dummy;
5198 if (addr == 0)
5200 addr = &dummy;
5201 return find_stack_direction ();
5203 else
5204 return (&dummy > addr) ? 1 : -1;
5206 main ()
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
5212 then
5213 ac_cv_c_stack_direction=1
5214 else
5215 echo "configure: failed program was:" >&5
5216 cat conftest.$ac_ext >&5
5217 rm -fr conftest*
5218 ac_cv_c_stack_direction=-1
5220 rm -fr conftest*
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
5236 else
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 #include <sys/types.h>
5241 #include <signal.h>
5242 #ifdef signal
5243 #undef signal
5244 #endif
5245 #ifdef __cplusplus
5246 extern "C" void (*signal (int, void (*)(int)))(int);
5247 #else
5248 void (*signal ()) ();
5249 #endif
5251 int main() {
5252 int i;
5253 ; return 0; }
5255 if { (eval echo configure:5256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5256 rm -rf conftest*
5257 ac_cv_type_signal=void
5258 else
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5261 rm -rf conftest*
5262 ac_cv_type_signal=int
5264 rm -f conftest*
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
5279 else
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. */
5285 #include <assert.h>
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. */
5289 char $ac_func();
5291 int main() {
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)
5297 choke me
5298 #else
5299 $ac_func();
5300 #endif
5302 ; return 0; }
5304 if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5305 rm -rf conftest*
5306 eval "ac_cv_func_$ac_func=yes"
5307 else
5308 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5310 rm -rf conftest*
5311 eval "ac_cv_func_$ac_func=no"
5313 rm -f conftest*
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
5323 else
5324 echo "$ac_t""no" 1>&6
5326 done
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
5336 else
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
5346 rm -rf conftest*
5347 eval "ac_cv_header_$ac_safe=yes"
5348 else
5349 echo "$ac_err" >&5
5350 echo "configure: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5352 rm -rf conftest*
5353 eval "ac_cv_header_$ac_safe=no"
5355 rm -f conftest*
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
5363 else
5364 echo "$ac_t""no" 1>&6
5365 no_sys_ipc=yes
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
5373 else
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
5383 rm -rf conftest*
5384 eval "ac_cv_header_$ac_safe=yes"
5385 else
5386 echo "$ac_err" >&5
5387 echo "configure: failed program was:" >&5
5388 cat conftest.$ac_ext >&5
5389 rm -rf conftest*
5390 eval "ac_cv_header_$ac_safe=no"
5392 rm -f conftest*
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
5400 else
5401 echo "$ac_t""no" 1>&6
5402 no_sys_shm=yes
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
5414 else
5415 echo "$ac_t""no" 1>&6
5416 no_xshm=yes
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
5424 else
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. */
5433 char XShmAttach();
5435 int main() {
5436 XShmAttach()
5437 ; return 0; }
5439 if { (eval echo configure:5440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5440 rm -rf conftest*
5441 eval "ac_cv_lib_$ac_lib_var=yes"
5442 else
5443 echo "configure: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5445 rm -rf conftest*
5446 eval "ac_cv_lib_$ac_lib_var=no"
5448 rm -f conftest*
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
5454 LIBS="$LIBS -lXext"
5455 else
5456 echo "$ac_t""no" 1>&6
5457 no_ext_lib=yes
5463 echo "------------------------------------------------------------"
5464 echo "Avaiable drivers:"
5465 drivers=no
5466 if test "$aa_driver_test" = yes; then
5467 if test "x$aa_driver" = xtrue; then
5468 drivers=yes
5469 cat >> confdefs.h <<\EOF
5470 #define AA_DRIVER 1
5473 DRIVERDIRS="$DRIVERDIRS ui/ui-drv/aa"
5474 DRIVERLIBS="$DRIVERLIBS lib/libuiaa.a"
5475 echo " aa-lib"
5479 if test "$curses_driver_test" = yes; then
5480 if test "x$curses_driver" = xtrue; then
5481 drivers=yes
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"
5490 else
5491 echo " (n)curses"
5495 if test "$x_driver_test" = yes; then
5496 if test "x$no_x" = x; then
5497 drivers=yes
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
5507 #define MITSHM 1
5510 else
5511 echo " X11"
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
5520 drivers=yes
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"
5530 else
5531 echo " SVGAlib"
5535 REALTOPDIR=`nolinks=1; pwd`
5537 BINPATH="$REALTOPDIR/bin"
5539 AR="ar"
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:"
5561 echo " CC : $CC"
5562 echo " CFLAGS : $CFLAGS"
5563 echo " CFLAGS1 : $CFLAGS1"
5564 echo " LDLAGS : $LDLAGS"
5565 echo " LIBS : $LIBS"
5566 echo " X_LIBS : $X_LIBS"
5567 echo "------------------------------------------------------------"
5568 trap '' 1 2 15
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.
5590 (set) 2>&1 |
5591 case `(ac_space=' '; set) 2>&1` in
5592 *ac_space=\ *)
5593 # `set' does not quote correctly, so add quotes (double-quote substitution
5594 # turns \\\\ into \\, and sed turns \\ into \).
5595 sed -n \
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'
5603 esac >> confcache
5604 if cmp -s $cache_file confcache; then
5606 else
5607 if test -w $cache_file; then
5608 echo "updating cache $cache_file"
5609 cat confcache > $cache_file
5610 else
5611 echo "not updating unwritable cache $cache_file"
5614 rm -f confcache
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
5639 #! /bin/sh
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]"
5651 for ac_option
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"
5659 exit 0 ;;
5660 -help | --help | --hel | --he | --h)
5661 echo "\$ac_cs_usage"; exit 0 ;;
5662 *) echo "\$ac_cs_usage"; exit 1 ;;
5663 esac
5664 done
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
5681 $ac_vpsub
5682 $extrasub
5683 s%@CFLAGS@%$CFLAGS%g
5684 s%@CPPFLAGS@%$CPPFLAGS%g
5685 s%@CXXFLAGS@%$CXXFLAGS%g
5686 s%@DEFS@%$DEFS%g
5687 s%@LDFLAGS@%$LDFLAGS%g
5688 s%@LIBS@%$LIBS%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
5704 s%@host@%$host%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
5714 s%@build@%$build%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
5719 s%@CC@%$CC%g
5720 s%@CPP@%$CPP%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
5732 s%@AR@%$AR%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
5742 CEOF
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.
5753 ac_more_lines=:
5754 ac_sed_cmds=""
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
5758 else
5759 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5761 if test ! -s conftest.s$ac_file; then
5762 ac_more_lines=false
5763 rm -f conftest.s$ac_file
5764 else
5765 if test -z "$ac_sed_cmds"; then
5766 ac_sed_cmds="sed -f conftest.s$ac_file"
5767 else
5768 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5770 ac_file=`expr $ac_file + 1`
5771 ac_beg=$ac_end
5772 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5774 done
5775 if test -z "$ac_sed_cmds"; then
5776 ac_sed_cmds=cat
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".
5792 case "$ac_file" 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" ;;
5796 esac
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'`
5808 else
5809 ac_dir_suffix= ac_dots=
5812 case "$ac_given_srcdir" in
5813 .) srcdir=.
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" ;;
5817 *) # Relative path.
5818 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5819 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5820 esac
5822 case "$ac_given_INSTALL" in
5823 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5824 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5825 esac
5827 echo creating "$ac_file"
5828 rm -f "$ac_file"
5829 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5830 case "$ac_file" in
5831 *Makefile*) ac_comsub="1i\\
5832 # $configure_input" ;;
5833 *) ac_comsub= ;;
5834 esac
5836 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5837 sed -e "$ac_comsub
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
5843 fi; done
5844 rm -f conftest.s*
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'
5852 ac_dC='\3'
5853 ac_dD='%g'
5854 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5855 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5856 ac_uB='\([ ]\)%\1#\2define\3'
5857 ac_uC=' '
5858 ac_uD='\4%g'
5859 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5860 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5861 ac_eB='$%\1#\2define\3'
5862 ac_eC=' '
5863 ac_eD='%g'
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".
5874 case "$ac_file" 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" ;;
5878 esac
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.
5892 rm -f conftest.vals
5893 cat > conftest.hdr <<\EOF
5894 s/[\\&%]/\\&/g
5895 s%[\\$`]%\\&%g
5896 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5897 s%ac_d%ac_u%gp
5898 s%ac_u%ac_e%gp
5900 sed -n -f conftest.hdr confdefs.h > conftest.vals
5901 rm -f conftest.hdr
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.
5913 rm -f conftest.tail
5914 while :
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
5922 echo 'CEOF
5923 sed -f conftest.frag conftest.in > conftest.out
5924 rm -f conftest.in
5925 mv conftest.out conftest.in
5926 ' >> $CONFIG_STATUS
5927 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5928 rm -f conftest.vals
5929 mv conftest.tail conftest.vals
5930 done
5931 rm -f 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
5937 rm -f conftest.in
5938 if cmp -s $ac_file conftest.h 2>/dev/null; then
5939 echo "$ac_file is unchanged"
5940 rm -f conftest.h
5941 else
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"
5948 rm -f $ac_file
5949 mv conftest.h $ac_file
5951 fi; done
5954 cat >> $CONFIG_STATUS <<EOF
5957 cat >> $CONFIG_STATUS <<\EOF
5959 exit 0
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 "------------------------------------------------------------"
5966 echo " "
5967 echo "READ CUREFULLY FOLLOWING WARNINGS"
5968 echo " "
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
5971 config_problem=yes
5973 if test "x$ac_cv_prog_gcc" = xyes; then
5974 echo
5975 else
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
5982 make clean
5983 make" 1>&2
5986 if test "x$drivers" = xno; then
5987 echo "configure: warning: There is no driver avaible. XaoS will not start." 1>&2
5988 config_problem=yes
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"
6001 echo
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"
6010 echo
6012 echo " "
6013 echo "END OF WARNINGS"
6014 echo " "
6015 echo "In case you have troubles with compiling or running"
6016 echo "XaoS please read compilers.txt."
6017 echo "------------------------------------------------------------"