3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-x use the X Window System"
17 --with-top-part-bitmaps Use top part of Kanji bitmaps only."
19 --with-first-shogi-program=PROGNAME
20 Use PROGNAME as the first shogi program (default: gnushogi)"
22 --with-second-shogi-program=PROGNAME
23 Use PROGNAME as the second shogi program (default: gnushogi)"
25 --with-first-host=HOSTNAME
26 Use HOSTNAME as the machine on which the first shogi program
27 runs (default: localhost)"
29 --with-second-host=HOSTNAME
30 Use HOSTNAME as the machine on which the second shogi program
31 runs (default: localhost)"
34 Compile the xshogi graphical interface to GNU shogi (default: yes)"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file=./config.cache
49 program_transform_name=s,x,x,
57 bindir='${exec_prefix}/bin'
58 sbindir='${exec_prefix}/sbin'
59 libexecdir='${exec_prefix}/libexec'
60 datadir='${prefix}/share'
61 sysconfdir='${prefix}/etc'
62 sharedstatedir='${prefix}/com'
63 localstatedir='${prefix}/var'
64 libdir='${exec_prefix}/lib'
65 includedir='${prefix}/include'
66 oldincludedir='/usr/include'
67 infodir='${prefix}/info'
68 mandir='${prefix}/man'
70 # Initialize some other variables.
73 SHELL=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
102 -build | --build | --buil | --bui | --bu)
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 datadir="$ac_optarg" ;;
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host | --host | --hos | --ho)
212 -host=* | --host=* | --hos=* | --ho=*)
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
227 -libdir | --libdir | --libdi | --libd)
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name="$ac_optarg" ;;
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318 sbindir="$ac_optarg" ;;
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329 sharedstatedir="$ac_optarg" ;;
331 -site | --site | --sit)
333 -site=* | --site=* | --sit=*)
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
348 -target | --target | --targe | --targ | --tar | --ta | --t)
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.13"
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file=gnushogi/gnushogi.h
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp='$CPP $CPPFLAGS'
526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
541 ac_n= ac_c='\c' ac_t=
549 # Check for C compiler.
553 echo $ac_n "checking for C compiler""... $ac_c" 1>&6
554 echo "configure:555: checking for C compiler" >&5
557 # Extract the first word of "gcc", so it can be a program name with args.
558 set dummy gcc; ac_word=$2
559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
560 echo "configure:561: checking for $ac_word" >&5
561 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
564 if test -n "$CC"; then
565 ac_cv_prog_CC="$CC" # Let the user override the test.
567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
569 for ac_dir in $ac_dummy; do
570 test -z "$ac_dir" && ac_dir=.
571 if test -f $ac_dir/$ac_word; then
580 if test -n "$CC"; then
581 echo "$ac_t""$CC" 1>&6
583 echo "$ac_t""no" 1>&6
586 if test -z "$CC"; then
587 # Extract the first word of "cc", so it can be a program name with args.
588 set dummy cc; ac_word=$2
589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
590 echo "configure:591: checking for $ac_word" >&5
591 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
594 if test -n "$CC"; then
595 ac_cv_prog_CC="$CC" # Let the user override the test.
597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
600 for ac_dir in $ac_dummy; do
601 test -z "$ac_dir" && ac_dir=.
602 if test -f $ac_dir/$ac_word; then
603 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
612 if test $ac_prog_rejected = yes; then
613 # We found a bogon in the path, so make sure we never use it.
614 set dummy $ac_cv_prog_CC
616 if test $# -gt 0; then
617 # We chose a different compiler from the bogus one.
618 # However, it has the same basename, so the bogon will be chosen
619 # first if we set CC to just the basename; use the full file name.
621 set dummy "$ac_dir/$ac_word" "$@"
629 if test -n "$CC"; then
630 echo "$ac_t""$CC" 1>&6
632 echo "$ac_t""no" 1>&6
635 if test -z "$CC"; then
638 # Extract the first word of "cl", so it can be a program name with args.
639 set dummy cl; ac_word=$2
640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
641 echo "configure:642: checking for $ac_word" >&5
642 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
643 echo $ac_n "(cached) $ac_c" 1>&6
645 if test -n "$CC"; then
646 ac_cv_prog_CC="$CC" # Let the user override the test.
648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
650 for ac_dir in $ac_dummy; do
651 test -z "$ac_dir" && ac_dir=.
652 if test -f $ac_dir/$ac_word; then
661 if test -n "$CC"; then
662 echo "$ac_t""$CC" 1>&6
664 echo "$ac_t""no" 1>&6
669 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
672 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
673 echo "configure:674: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
677 ac_cpp='$CPP $CPPFLAGS'
678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
680 cross_compiling=$ac_cv_prog_cc_cross
682 cat > conftest.$ac_ext << EOF
684 #line 685 "configure"
685 #include "confdefs.h"
689 if { (eval echo configure:690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
690 ac_cv_prog_cc_works=yes
691 # If we can't run a trivial program, we are probably using a cross compiler.
692 if (./conftest; exit) 2>/dev/null; then
693 ac_cv_prog_cc_cross=no
695 ac_cv_prog_cc_cross=yes
698 echo "configure: failed program was:" >&5
699 cat conftest.$ac_ext >&5
700 ac_cv_prog_cc_works=no
704 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
705 ac_cpp='$CPP $CPPFLAGS'
706 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
707 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
708 cross_compiling=$ac_cv_prog_cc_cross
710 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
711 if test $ac_cv_prog_cc_works = no; then
712 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
714 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
715 echo "configure:716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
716 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
717 cross_compiling=$ac_cv_prog_cc_cross
719 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
720 echo "configure:721: checking whether we are using GNU C" >&5
721 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
724 cat > conftest.c <<EOF
729 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
736 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
738 if test $ac_cv_prog_gcc = yes; then
744 ac_test_CFLAGS="${CFLAGS+set}"
745 ac_save_CFLAGS="$CFLAGS"
747 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
748 echo "configure:749: checking whether ${CC-cc} accepts -g" >&5
749 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 echo 'void f(){}' > conftest.c
753 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
762 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
763 if test "$ac_test_CFLAGS" = set; then
764 CFLAGS="$ac_save_CFLAGS"
765 elif test $ac_cv_prog_cc_g = yes; then
766 if test "$GCC" = yes; then
772 if test "$GCC" = yes; then
782 # Check for parser generators.
786 echo $ac_n "checking for yacc/bison, lex/flex, and install""... $ac_c" 1>&6
787 echo "configure:788: checking for yacc/bison, lex/flex, and install" >&5
790 for ac_prog in 'bison -y' byacc
792 # Extract the first word of "$ac_prog", so it can be a program name with args.
793 set dummy $ac_prog; ac_word=$2
794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
795 echo "configure:796: checking for $ac_word" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 if test -n "$YACC"; then
800 ac_cv_prog_YACC="$YACC" # Let the user override the test.
802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
804 for ac_dir in $ac_dummy; do
805 test -z "$ac_dir" && ac_dir=.
806 if test -f $ac_dir/$ac_word; then
807 ac_cv_prog_YACC="$ac_prog"
814 YACC="$ac_cv_prog_YACC"
815 if test -n "$YACC"; then
816 echo "$ac_t""$YACC" 1>&6
818 echo "$ac_t""no" 1>&6
821 test -n "$YACC" && break
823 test -n "$YACC" || YACC="yacc"
825 # Extract the first word of "flex", so it can be a program name with args.
826 set dummy flex; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$LEX"; then
833 ac_cv_prog_LEX="$LEX" # Let the user override the test.
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
837 for ac_dir in $ac_dummy; do
838 test -z "$ac_dir" && ac_dir=.
839 if test -f $ac_dir/$ac_word; then
840 ac_cv_prog_LEX="flex"
845 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
848 LEX="$ac_cv_prog_LEX"
849 if test -n "$LEX"; then
850 echo "$ac_t""$LEX" 1>&6
852 echo "$ac_t""no" 1>&6
861 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
862 echo "configure:863: checking for yywrap in -l$ac_lib" >&5
863 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
868 LIBS="-l$ac_lib $LIBS"
869 cat > conftest.$ac_ext <<EOF
870 #line 871 "configure"
871 #include "confdefs.h"
872 /* Override any gcc2 internal prototype to avoid an error. */
873 /* We use char because int might match the return type of a gcc2
874 builtin and then its argument prototype would still apply. */
881 if { (eval echo configure:882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
883 eval "ac_cv_lib_$ac_lib_var=yes"
885 echo "configure: failed program was:" >&5
886 cat conftest.$ac_ext >&5
888 eval "ac_cv_lib_$ac_lib_var=no"
894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
895 echo "$ac_t""yes" 1>&6
898 echo "$ac_t""no" 1>&6
904 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
905 if test -f $ac_dir/install-sh; then
907 ac_install_sh="$ac_aux_dir/install-sh -c"
909 elif test -f $ac_dir/install.sh; then
911 ac_install_sh="$ac_aux_dir/install.sh -c"
915 if test -z "$ac_aux_dir"; then
916 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
918 ac_config_guess=$ac_aux_dir/config.guess
919 ac_config_sub=$ac_aux_dir/config.sub
920 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
922 # Find a good install program. We prefer a C program (faster),
923 # so one script is as good as another. But avoid the broken or
924 # incompatible versions:
925 # SysV /etc/install, /usr/sbin/install
926 # SunOS /usr/etc/install
929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
932 # ./install, which can be erroneously created by make from ./install.sh.
933 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
934 echo "configure:935: checking for a BSD compatible install" >&5
935 if test -z "$INSTALL"; then
936 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
940 for ac_dir in $PATH; do
941 # Account for people who put trailing slashes in PATH elements.
943 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
945 # OSF1 and SCO ODT 3.0 have their own names for install.
946 # Don't use installbsd from OSF since it installs stuff as root
948 for ac_prog in ginstall scoinst install; do
949 if test -f $ac_dir/$ac_prog; then
950 if test $ac_prog = install &&
951 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
952 # AIX install. It has an incompatible calling convention.
955 ac_cv_path_install="$ac_dir/$ac_prog -c"
966 if test "${ac_cv_path_install+set}" = set; then
967 INSTALL="$ac_cv_path_install"
969 # As a last resort, use the slow shell script. We don't cache a
970 # path for INSTALL within a source directory, because that will
971 # break other packages using the cache if that directory is
972 # removed, or if the path is relative.
973 INSTALL="$ac_install_sh"
976 echo "$ac_t""$INSTALL" 1>&6
978 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
979 # It thinks the first close brace ends the variable substitution.
980 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
982 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
984 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
989 # Check for X windows.
993 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
994 echo "configure:995: checking how to run the C preprocessor" >&5
995 # On Suns, sometimes $CPP names a directory.
996 if test -n "$CPP" && test -d "$CPP"; then
999 if test -z "$CPP"; then
1000 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 # This must be in double quotes, not single quotes, because CPP may get
1004 # substituted into the Makefile and "${CC-cc}" will confuse make.
1006 # On the NeXT, cc -E runs the code through the compiler's parser,
1007 # not just through cpp.
1008 cat > conftest.$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1015 { (eval echo configure:1016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1017 if test -z "$ac_err"; then
1021 echo "configure: failed program was:" >&5
1022 cat conftest.$ac_ext >&5
1024 CPP="${CC-cc} -E -traditional-cpp"
1025 cat > conftest.$ac_ext <<EOF
1026 #line 1027 "configure"
1027 #include "confdefs.h"
1031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1032 { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1034 if test -z "$ac_err"; then
1038 echo "configure: failed program was:" >&5
1039 cat conftest.$ac_ext >&5
1041 CPP="${CC-cc} -nologo -E"
1042 cat > conftest.$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1049 { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1051 if test -z "$ac_err"; then
1055 echo "configure: failed program was:" >&5
1056 cat conftest.$ac_ext >&5
1065 ac_cv_prog_CPP="$CPP"
1067 CPP="$ac_cv_prog_CPP"
1069 ac_cv_prog_CPP="$CPP"
1071 echo "$ac_t""$CPP" 1>&6
1073 # If we find X, set shell vars x_includes and x_libraries to the
1074 # paths, otherwise set no_x=yes.
1075 # Uses ac_ vars as temps to allow command line to override cache and checks.
1076 # --without-x overrides everything else, but does not touch the cache.
1077 echo $ac_n "checking for X""... $ac_c" 1>&6
1078 echo "configure:1079: checking for X" >&5
1080 # Check whether --with-x or --without-x was given.
1081 if test "${with_x+set}" = set; then
1086 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1087 if test "x$with_x" = xno; then
1088 # The user explicitly disabled X.
1091 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1092 # Both variables are already set.
1095 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 # One or both of the vars are not set, and there is no cached value.
1099 ac_x_includes=NO ac_x_libraries=NO
1101 if mkdir conftestdir; then
1103 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1104 cat > Imakefile <<'EOF'
1106 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1108 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1109 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1110 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1111 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1112 for ac_extension in a so sl; do
1113 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1114 test -f $ac_im_libdir/libX11.$ac_extension; then
1115 ac_im_usrlibdir=$ac_im_libdir; break
1118 # Screen out bogus values from the imake configuration. They are
1119 # bogus both because they are the default anyway, and because
1120 # using them would break gcc on systems where it needs fixed includes.
1121 case "$ac_im_incroot" in
1123 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1125 case "$ac_im_usrlibdir" in
1127 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1134 if test "$ac_x_includes" = NO; then
1135 # Guess where to find include files, by looking for this one X11 .h file.
1136 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1138 # First, try using that file with no special directory specified.
1139 cat > conftest.$ac_ext <<EOF
1140 #line 1141 "configure"
1141 #include "confdefs.h"
1142 #include <$x_direct_test_include>
1144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1145 { (eval echo configure:1146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1147 if test -z "$ac_err"; then
1149 # We can compile using X headers with no special include directory.
1153 echo "configure: failed program was:" >&5
1154 cat conftest.$ac_ext >&5
1156 # Look for the header file in a standard set of common directories.
1157 # Check X11 before X11Rn because it is often a symlink to the current release.
1160 /usr/X11R6/include \
1161 /usr/X11R5/include \
1162 /usr/X11R4/include \
1165 /usr/include/X11R6 \
1166 /usr/include/X11R5 \
1167 /usr/include/X11R4 \
1169 /usr/local/X11/include \
1170 /usr/local/X11R6/include \
1171 /usr/local/X11R5/include \
1172 /usr/local/X11R4/include \
1174 /usr/local/include/X11 \
1175 /usr/local/include/X11R6 \
1176 /usr/local/include/X11R5 \
1177 /usr/local/include/X11R4 \
1181 /usr/XFree86/include/X11 \
1184 /usr/local/include \
1185 /usr/unsupported/include \
1186 /usr/athena/include \
1187 /usr/local/x11r5/include \
1188 /usr/lpp/Xamples/include \
1190 /usr/openwin/include \
1191 /usr/openwin/share/include \
1194 if test -r "$ac_dir/$x_direct_test_include"; then
1195 ac_x_includes=$ac_dir
1201 fi # $ac_x_includes = NO
1203 if test "$ac_x_libraries" = NO; then
1204 # Check for the libraries.
1206 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1207 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1209 # See if we find them without any special options.
1210 # Don't add to $LIBS permanently.
1211 ac_save_LIBS="$LIBS"
1212 LIBS="-l$x_direct_test_library $LIBS"
1213 cat > conftest.$ac_ext <<EOF
1214 #line 1215 "configure"
1215 #include "confdefs.h"
1218 ${x_direct_test_function}()
1221 if { (eval echo configure:1222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1223 LIBS="$ac_save_LIBS"
1224 # We can link X programs with no special library path.
1227 echo "configure: failed program was:" >&5
1228 cat conftest.$ac_ext >&5
1230 LIBS="$ac_save_LIBS"
1231 # First see if replacing the include by lib works.
1232 # Check X11 before X11Rn because it is often a symlink to the current release.
1233 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1244 /usr/local/X11/lib \
1245 /usr/local/X11R6/lib \
1246 /usr/local/X11R5/lib \
1247 /usr/local/X11R4/lib \
1249 /usr/local/lib/X11 \
1250 /usr/local/lib/X11R6 \
1251 /usr/local/lib/X11R5 \
1252 /usr/local/lib/X11R4 \
1256 /usr/XFree86/lib/X11 \
1260 /usr/unsupported/lib \
1262 /usr/local/x11r5/lib \
1263 /usr/lpp/Xamples/lib \
1267 /usr/openwin/share/lib \
1270 for ac_extension in a so sl; do
1271 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1272 ac_x_libraries=$ac_dir
1279 fi # $ac_x_libraries = NO
1281 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1282 # Didn't find X anywhere. Cache the known absence of X.
1283 ac_cv_have_x="have_x=no"
1285 # Record where we found X for the cache.
1286 ac_cv_have_x="have_x=yes \
1287 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1291 eval "$ac_cv_have_x"
1294 if test "$have_x" != yes; then
1295 echo "$ac_t""$have_x" 1>&6
1298 # If each of the values was on the command line, it overrides each guess.
1299 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1300 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1301 # Update the cache value to reflect the command line values.
1302 ac_cv_have_x="have_x=yes \
1303 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1304 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1307 if test "$no_x" = yes; then
1308 # Not all programs may use this symbol, but it does not hurt to define it.
1309 cat >> confdefs.h <<\EOF
1310 #define X_DISPLAY_MISSING 1
1313 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1315 if test -n "$x_includes"; then
1316 X_CFLAGS="$X_CFLAGS -I$x_includes"
1319 # It would also be nice to do this for all -L options, not just this one.
1320 if test -n "$x_libraries"; then
1321 X_LIBS="$X_LIBS -L$x_libraries"
1322 # For Solaris; some versions of Sun CC require a space after -R and
1323 # others require no space. Words are not sufficient . . . .
1324 case "`(uname -sr) 2>/dev/null`" in
1326 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1327 echo "configure:1328: checking whether -R must be followed by a space" >&5
1328 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1337 if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1341 echo "configure: failed program was:" >&5
1342 cat conftest.$ac_ext >&5
1347 if test $ac_R_nospace = yes; then
1348 echo "$ac_t""no" 1>&6
1349 X_LIBS="$X_LIBS -R$x_libraries"
1351 LIBS="$ac_xsave_LIBS -R $x_libraries"
1352 cat > conftest.$ac_ext <<EOF
1353 #line 1354 "configure"
1354 #include "confdefs.h"
1360 if { (eval echo configure:1361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1364 echo "configure: failed program was:" >&5
1365 cat conftest.$ac_ext >&5
1370 if test $ac_R_space = yes; then
1371 echo "$ac_t""yes" 1>&6
1372 X_LIBS="$X_LIBS -R $x_libraries"
1374 echo "$ac_t""neither works" 1>&6
1377 LIBS="$ac_xsave_LIBS"
1381 # Check for system-dependent libraries X programs must link with.
1382 # Do this before checking for the system-independent R6 libraries
1383 # (-lICE), since we may need -lsocket or whatever for X linking.
1385 if test "$ISC" = yes; then
1386 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1388 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1389 # libraries were built with DECnet support. And karl@cs.umb.edu says
1390 # the Alpha needs dnet_stub (dnet does not exist).
1391 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1392 echo "configure:1393: checking for dnet_ntoa in -ldnet" >&5
1393 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 ac_save_LIBS="$LIBS"
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1402 /* Override any gcc2 internal prototype to avoid an error. */
1403 /* We use char because int might match the return type of a gcc2
1404 builtin and then its argument prototype would still apply. */
1411 if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1413 eval "ac_cv_lib_$ac_lib_var=yes"
1415 echo "configure: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1418 eval "ac_cv_lib_$ac_lib_var=no"
1421 LIBS="$ac_save_LIBS"
1424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1425 echo "$ac_t""yes" 1>&6
1426 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1428 echo "$ac_t""no" 1>&6
1431 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1432 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1433 echo "configure:1434: checking for dnet_ntoa in -ldnet_stub" >&5
1434 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 ac_save_LIBS="$LIBS"
1439 LIBS="-ldnet_stub $LIBS"
1440 cat > conftest.$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1443 /* Override any gcc2 internal prototype to avoid an error. */
1444 /* We use char because int might match the return type of a gcc2
1445 builtin and then its argument prototype would still apply. */
1452 if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1454 eval "ac_cv_lib_$ac_lib_var=yes"
1456 echo "configure: failed program was:" >&5
1457 cat conftest.$ac_ext >&5
1459 eval "ac_cv_lib_$ac_lib_var=no"
1462 LIBS="$ac_save_LIBS"
1465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1466 echo "$ac_t""yes" 1>&6
1467 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1469 echo "$ac_t""no" 1>&6
1474 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1475 # to get the SysV transport functions.
1476 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1478 # The nsl library prevents programs from opening the X display
1479 # on Irix 5.2, according to dickey@clark.net.
1480 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1481 echo "configure:1482: checking for gethostbyname" >&5
1482 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1485 cat > conftest.$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 /* System header to define __stub macros and hopefully few prototypes,
1489 which can conflict with char gethostbyname(); below. */
1491 /* Override any gcc2 internal prototype to avoid an error. */
1492 /* We use char because int might match the return type of a gcc2
1493 builtin and then its argument prototype would still apply. */
1494 char gethostbyname();
1498 /* The GNU C library defines this for functions which it implements
1499 to always fail with ENOSYS. Some functions are actually named
1500 something starting with __ and the normal name is an alias. */
1501 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1509 if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1511 eval "ac_cv_func_gethostbyname=yes"
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1516 eval "ac_cv_func_gethostbyname=no"
1521 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1522 echo "$ac_t""yes" 1>&6
1525 echo "$ac_t""no" 1>&6
1528 if test $ac_cv_func_gethostbyname = no; then
1529 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1530 echo "configure:1531: checking for gethostbyname in -lnsl" >&5
1531 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1535 ac_save_LIBS="$LIBS"
1537 cat > conftest.$ac_ext <<EOF
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1540 /* Override any gcc2 internal prototype to avoid an error. */
1541 /* We use char because int might match the return type of a gcc2
1542 builtin and then its argument prototype would still apply. */
1543 char gethostbyname();
1549 if { (eval echo configure:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1551 eval "ac_cv_lib_$ac_lib_var=yes"
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1556 eval "ac_cv_lib_$ac_lib_var=no"
1559 LIBS="$ac_save_LIBS"
1562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1563 echo "$ac_t""yes" 1>&6
1564 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1566 echo "$ac_t""no" 1>&6
1571 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1572 # socket/setsockopt and other routines are undefined under SCO ODT
1573 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1574 # on later versions), says simon@lia.di.epfl.ch: it contains
1575 # gethostby* variants that don't use the nameserver (or something).
1576 # -lsocket must be given before -lnsl if both are needed.
1577 # We assume that if connect needs -lnsl, so does gethostbyname.
1578 echo $ac_n "checking for connect""... $ac_c" 1>&6
1579 echo "configure:1580: checking for connect" >&5
1580 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1583 cat > conftest.$ac_ext <<EOF
1584 #line 1585 "configure"
1585 #include "confdefs.h"
1586 /* System header to define __stub macros and hopefully few prototypes,
1587 which can conflict with char connect(); below. */
1589 /* Override any gcc2 internal prototype to avoid an error. */
1590 /* We use char because int might match the return type of a gcc2
1591 builtin and then its argument prototype would still apply. */
1596 /* The GNU C library defines this for functions which it implements
1597 to always fail with ENOSYS. Some functions are actually named
1598 something starting with __ and the normal name is an alias. */
1599 #if defined (__stub_connect) || defined (__stub___connect)
1607 if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1609 eval "ac_cv_func_connect=yes"
1611 echo "configure: failed program was:" >&5
1612 cat conftest.$ac_ext >&5
1614 eval "ac_cv_func_connect=no"
1619 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1620 echo "$ac_t""yes" 1>&6
1623 echo "$ac_t""no" 1>&6
1626 if test $ac_cv_func_connect = no; then
1627 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1628 echo "configure:1629: checking for connect in -lsocket" >&5
1629 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1633 ac_save_LIBS="$LIBS"
1634 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1635 cat > conftest.$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1638 /* Override any gcc2 internal prototype to avoid an error. */
1639 /* We use char because int might match the return type of a gcc2
1640 builtin and then its argument prototype would still apply. */
1647 if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1649 eval "ac_cv_lib_$ac_lib_var=yes"
1651 echo "configure: failed program was:" >&5
1652 cat conftest.$ac_ext >&5
1654 eval "ac_cv_lib_$ac_lib_var=no"
1657 LIBS="$ac_save_LIBS"
1660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1661 echo "$ac_t""yes" 1>&6
1662 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1664 echo "$ac_t""no" 1>&6
1669 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1670 echo $ac_n "checking for remove""... $ac_c" 1>&6
1671 echo "configure:1672: checking for remove" >&5
1672 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1675 cat > conftest.$ac_ext <<EOF
1676 #line 1677 "configure"
1677 #include "confdefs.h"
1678 /* System header to define __stub macros and hopefully few prototypes,
1679 which can conflict with char remove(); below. */
1681 /* Override any gcc2 internal prototype to avoid an error. */
1682 /* We use char because int might match the return type of a gcc2
1683 builtin and then its argument prototype would still apply. */
1688 /* The GNU C library defines this for functions which it implements
1689 to always fail with ENOSYS. Some functions are actually named
1690 something starting with __ and the normal name is an alias. */
1691 #if defined (__stub_remove) || defined (__stub___remove)
1699 if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1701 eval "ac_cv_func_remove=yes"
1703 echo "configure: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1706 eval "ac_cv_func_remove=no"
1711 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1712 echo "$ac_t""yes" 1>&6
1715 echo "$ac_t""no" 1>&6
1718 if test $ac_cv_func_remove = no; then
1719 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1720 echo "configure:1721: checking for remove in -lposix" >&5
1721 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 ac_save_LIBS="$LIBS"
1726 LIBS="-lposix $LIBS"
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1730 /* Override any gcc2 internal prototype to avoid an error. */
1731 /* We use char because int might match the return type of a gcc2
1732 builtin and then its argument prototype would still apply. */
1739 if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1741 eval "ac_cv_lib_$ac_lib_var=yes"
1743 echo "configure: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1746 eval "ac_cv_lib_$ac_lib_var=no"
1749 LIBS="$ac_save_LIBS"
1752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1753 echo "$ac_t""yes" 1>&6
1754 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1756 echo "$ac_t""no" 1>&6
1761 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1762 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1763 echo "configure:1764: checking for shmat" >&5
1764 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 cat > conftest.$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1770 /* System header to define __stub macros and hopefully few prototypes,
1771 which can conflict with char shmat(); below. */
1773 /* Override any gcc2 internal prototype to avoid an error. */
1774 /* We use char because int might match the return type of a gcc2
1775 builtin and then its argument prototype would still apply. */
1780 /* The GNU C library defines this for functions which it implements
1781 to always fail with ENOSYS. Some functions are actually named
1782 something starting with __ and the normal name is an alias. */
1783 #if defined (__stub_shmat) || defined (__stub___shmat)
1791 if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1793 eval "ac_cv_func_shmat=yes"
1795 echo "configure: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1798 eval "ac_cv_func_shmat=no"
1803 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1804 echo "$ac_t""yes" 1>&6
1807 echo "$ac_t""no" 1>&6
1810 if test $ac_cv_func_shmat = no; then
1811 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1812 echo "configure:1813: checking for shmat in -lipc" >&5
1813 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1817 ac_save_LIBS="$LIBS"
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1822 /* Override any gcc2 internal prototype to avoid an error. */
1823 /* We use char because int might match the return type of a gcc2
1824 builtin and then its argument prototype would still apply. */
1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1833 eval "ac_cv_lib_$ac_lib_var=yes"
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1838 eval "ac_cv_lib_$ac_lib_var=no"
1841 LIBS="$ac_save_LIBS"
1844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1845 echo "$ac_t""yes" 1>&6
1846 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1848 echo "$ac_t""no" 1>&6
1854 # Check for libraries that X11R6 Xt/Xaw programs need.
1855 ac_save_LDFLAGS="$LDFLAGS"
1856 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1857 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1858 # check for ICE first), but we must link in the order -lSM -lICE or
1859 # we get undefined symbols. So assume we have SM if we have ICE.
1860 # These have to be linked with before -lX11, unlike the other
1861 # libraries we check for below, so use a different variable.
1862 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1863 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1864 echo "configure:1865: checking for IceConnectionNumber in -lICE" >&5
1865 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 ac_save_LIBS="$LIBS"
1870 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1871 cat > conftest.$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1874 /* Override any gcc2 internal prototype to avoid an error. */
1875 /* We use char because int might match the return type of a gcc2
1876 builtin and then its argument prototype would still apply. */
1877 char IceConnectionNumber();
1880 IceConnectionNumber()
1883 if { (eval echo configure:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1885 eval "ac_cv_lib_$ac_lib_var=yes"
1887 echo "configure: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1890 eval "ac_cv_lib_$ac_lib_var=no"
1893 LIBS="$ac_save_LIBS"
1896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1897 echo "$ac_t""yes" 1>&6
1898 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1900 echo "$ac_t""no" 1>&6
1903 LDFLAGS="$ac_save_LDFLAGS"
1910 # Check for other libraries.
1913 echo $ac_n "checking for clrtoeol in -lcurses""... $ac_c" 1>&6
1914 echo "configure:1915: checking for clrtoeol in -lcurses" >&5
1915 ac_lib_var=`echo curses'_'clrtoeol | sed 'y%./+-%__p_%'`
1916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 ac_save_LIBS="$LIBS"
1920 LIBS="-lcurses $LIBS"
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 /* Override any gcc2 internal prototype to avoid an error. */
1925 /* We use char because int might match the return type of a gcc2
1926 builtin and then its argument prototype would still apply. */
1933 if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1935 eval "ac_cv_lib_$ac_lib_var=yes"
1937 echo "configure: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1940 eval "ac_cv_lib_$ac_lib_var=no"
1943 LIBS="$ac_save_LIBS"
1946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1948 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1949 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1950 cat >> confdefs.h <<EOF
1951 #define $ac_tr_lib 1
1954 LIBS="-lcurses $LIBS"
1957 echo "$ac_t""no" 1>&6
1960 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
1961 echo "configure:1962: checking for pow in -lm" >&5
1962 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
1963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 ac_save_LIBS="$LIBS"
1968 cat > conftest.$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1971 /* Override any gcc2 internal prototype to avoid an error. */
1972 /* We use char because int might match the return type of a gcc2
1973 builtin and then its argument prototype would still apply. */
1980 if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1982 eval "ac_cv_lib_$ac_lib_var=yes"
1984 echo "configure: failed program was:" >&5
1985 cat conftest.$ac_ext >&5
1987 eval "ac_cv_lib_$ac_lib_var=no"
1990 LIBS="$ac_save_LIBS"
1993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1994 echo "$ac_t""yes" 1>&6
1995 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1996 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1997 cat >> confdefs.h <<EOF
1998 #define $ac_tr_lib 1
2004 echo "$ac_t""no" 1>&6
2007 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
2008 echo "configure:2009: checking for tgoto in -ltermcap" >&5
2009 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
2010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 ac_save_LIBS="$LIBS"
2014 LIBS="-ltermcap $LIBS"
2015 cat > conftest.$ac_ext <<EOF
2016 #line 2017 "configure"
2017 #include "confdefs.h"
2018 /* Override any gcc2 internal prototype to avoid an error. */
2019 /* We use char because int might match the return type of a gcc2
2020 builtin and then its argument prototype would still apply. */
2027 if { (eval echo configure:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2029 eval "ac_cv_lib_$ac_lib_var=yes"
2031 echo "configure: failed program was:" >&5
2032 cat conftest.$ac_ext >&5
2034 eval "ac_cv_lib_$ac_lib_var=no"
2037 LIBS="$ac_save_LIBS"
2040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2041 echo "$ac_t""yes" 1>&6
2042 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2043 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2044 cat >> confdefs.h <<EOF
2045 #define $ac_tr_lib 1
2048 LIBS="-ltermcap $LIBS"
2051 echo "$ac_t""no" 1>&6
2057 # C compiler warnings.
2060 if [ $ac_cv_prog_gcc = yes ]
2062 WARNINGS="-Wall -Wno-implicit-int"
2063 CEXTRAFLAGS="-fsigned-char -funroll-loops \$(HASH)"
2065 # Who knows what warnings your compiler uses?
2067 CEXTRAFLAGS="\$(HASH)"
2075 # Check for header files.
2079 echo $ac_n "checking for header files""... $ac_c" 1>&6
2080 echo "configure:2081: checking for header files" >&5
2083 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2084 echo "configure:2085: checking for ANSI C header files" >&5
2085 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2097 { (eval echo configure:2098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2099 if test -z "$ac_err"; then
2101 ac_cv_header_stdc=yes
2104 echo "configure: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2107 ac_cv_header_stdc=no
2111 if test $ac_cv_header_stdc = yes; then
2112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2113 cat > conftest.$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2119 egrep "memchr" >/dev/null 2>&1; then
2123 ac_cv_header_stdc=no
2129 if test $ac_cv_header_stdc = yes; then
2130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2131 cat > conftest.$ac_ext <<EOF
2132 #line 2133 "configure"
2133 #include "confdefs.h"
2136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2137 egrep "free" >/dev/null 2>&1; then
2141 ac_cv_header_stdc=no
2147 if test $ac_cv_header_stdc = yes; then
2148 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2149 if test "$cross_compiling" = yes; then
2152 cat > conftest.$ac_ext <<EOF
2153 #line 2154 "configure"
2154 #include "confdefs.h"
2156 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2157 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2159 int main () { int i; for (i = 0; i < 256; i++)
2160 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2164 if { (eval echo configure:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2168 echo "configure: failed program was:" >&5
2169 cat conftest.$ac_ext >&5
2171 ac_cv_header_stdc=no
2179 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2180 if test $ac_cv_header_stdc = yes; then
2181 cat >> confdefs.h <<\EOF
2182 #define STDC_HEADERS 1
2187 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2188 echo "configure:2189: checking for sys/wait.h that is POSIX.1 compatible" >&5
2189 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 cat > conftest.$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2195 #include <sys/types.h>
2196 #include <sys/wait.h>
2198 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2201 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2206 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2209 if { (eval echo configure:2210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2211 ac_cv_header_sys_wait_h=yes
2213 echo "configure: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2216 ac_cv_header_sys_wait_h=no
2221 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2222 if test $ac_cv_header_sys_wait_h = yes; then
2223 cat >> confdefs.h <<\EOF
2224 #define HAVE_SYS_WAIT_H 1
2229 for ac_hdr in fcntl.h sys/file.h sys/ioctl.h sys/time.h unistd.h
2231 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_hdr" >&5
2234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2243 { (eval echo configure:2244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2245 if test -z "$ac_err"; then
2247 eval "ac_cv_header_$ac_safe=yes"
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2253 eval "ac_cv_header_$ac_safe=no"
2257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2258 echo "$ac_t""yes" 1>&6
2259 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2260 cat >> confdefs.h <<EOF
2261 #define $ac_tr_hdr 1
2265 echo "$ac_t""no" 1>&6
2269 for ac_hdr in time.h sys/time.h sys/filio.h
2271 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2273 echo "configure:2274: checking for $ac_hdr" >&5
2274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2283 { (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2285 if test -z "$ac_err"; then
2287 eval "ac_cv_header_$ac_safe=yes"
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2293 eval "ac_cv_header_$ac_safe=no"
2297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2298 echo "$ac_t""yes" 1>&6
2299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2300 cat >> confdefs.h <<EOF
2301 #define $ac_tr_hdr 1
2305 echo "$ac_t""no" 1>&6
2309 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2310 echo "configure:2311: checking whether time.h and sys/time.h may both be included" >&5
2311 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2314 cat > conftest.$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2317 #include <sys/types.h>
2318 #include <sys/time.h>
2324 if { (eval echo configure:2325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2326 ac_cv_header_time=yes
2328 echo "configure: failed program was:" >&5
2329 cat conftest.$ac_ext >&5
2331 ac_cv_header_time=no
2336 echo "$ac_t""$ac_cv_header_time" 1>&6
2337 if test $ac_cv_header_time = yes; then
2338 cat >> confdefs.h <<\EOF
2339 #define TIME_WITH_SYS_TIME 1
2347 # Check for typedefs, structures, and compiler characteristics.
2351 echo $ac_n "checking for typedefs""... $ac_c" 1>&6
2352 echo "configure:2353: checking for typedefs" >&5
2355 echo $ac_n "checking for working const""... $ac_c" 1>&6
2356 echo "configure:2357: checking for working const" >&5
2357 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2366 /* Ultrix mips cc rejects this. */
2367 typedef int charset[2]; const charset x;
2368 /* SunOS 4.1.1 cc rejects this. */
2369 char const *const *ccp;
2371 /* NEC SVR4.0.2 mips cc rejects this. */
2372 struct point {int x, y;};
2373 static struct point const zero = {0,0};
2374 /* AIX XL C 1.02.0.0 rejects this.
2375 It does not let you subtract one const X* pointer from another in an arm
2376 of an if-expression whose if-part is not a constant expression */
2377 const char *g = "string";
2378 ccp = &g + (g ? g-g : 0);
2379 /* HPUX 7.0 cc rejects these. */
2382 ccp = (char const *const *) p;
2383 { /* SCO 3.2v4 cc rejects this. */
2385 char const *s = 0 ? (char *) 0 : (char const *) 0;
2389 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2391 const int *foo = &x[0];
2394 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2395 typedef const int *iptr;
2399 { /* AIX XL C 1.02.0.0 rejects this saying
2400 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2401 struct s { int j; const int *ap[3]; };
2402 struct s *b; b->j = 5;
2404 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2410 if { (eval echo configure:2411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2414 echo "configure: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2422 echo "$ac_t""$ac_cv_c_const" 1>&6
2423 if test $ac_cv_c_const = no; then
2424 cat >> confdefs.h <<\EOF
2430 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2431 echo "configure:2432: checking for size_t" >&5
2432 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2438 #include <sys/types.h>
2444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2445 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2447 ac_cv_type_size_t=yes
2450 ac_cv_type_size_t=no
2455 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2456 if test $ac_cv_type_size_t = no; then
2457 cat >> confdefs.h <<\EOF
2458 #define size_t unsigned
2463 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2464 echo "configure:2465: checking whether time.h and sys/time.h may both be included" >&5
2465 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471 #include <sys/types.h>
2472 #include <sys/time.h>
2478 if { (eval echo configure:2479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2480 ac_cv_header_time=yes
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 ac_cv_header_time=no
2490 echo "$ac_t""$ac_cv_header_time" 1>&6
2491 if test $ac_cv_header_time = yes; then
2492 cat >> confdefs.h <<\EOF
2493 #define TIME_WITH_SYS_TIME 1
2498 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2499 echo "configure:2500: checking whether struct tm is in sys/time.h or time.h" >&5
2500 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506 #include <sys/types.h>
2509 struct tm *tp; tp->tm_sec;
2512 if { (eval echo configure:2513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2514 ac_cv_struct_tm=time.h
2516 echo "configure: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2519 ac_cv_struct_tm=sys/time.h
2524 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2525 if test $ac_cv_struct_tm = sys/time.h; then
2526 cat >> confdefs.h <<\EOF
2527 #define TM_IN_SYS_TIME 1
2534 echo $ac_n "checking for compiler characteristics""... $ac_c" 1>&6
2535 echo "configure:2536: checking for compiler characteristics" >&5
2538 echo $ac_n "checking size of long""... $ac_c" 1>&6
2539 echo "configure:2540: checking size of long" >&5
2540 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 if test "$cross_compiling" = yes; then
2544 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2546 cat > conftest.$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2552 FILE *f=fopen("conftestval", "w");
2554 fprintf(f, "%d\n", sizeof(long));
2558 if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2560 ac_cv_sizeof_long=`cat conftestval`
2562 echo "configure: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2571 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2572 cat >> confdefs.h <<EOF
2573 #define SIZEOF_LONG $ac_cv_sizeof_long
2580 # Check for library functions.
2584 echo $ac_n "checking for library functions""... $ac_c" 1>&6
2585 echo "configure:2586: checking for library functions" >&5
2588 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
2589 echo "configure:2590: checking whether setvbuf arguments are reversed" >&5
2590 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 if test "$cross_compiling" = yes; then
2594 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2596 cat > conftest.$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2600 /* If setvbuf has the reversed format, exit 0. */
2602 /* This call has the arguments reversed.
2603 A reversed system may check and see that the address of main
2604 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
2605 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
2608 exit(0); /* Non-reversed systems segv here. */
2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2613 ac_cv_func_setvbuf_reversed=yes
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2618 ac_cv_func_setvbuf_reversed=no
2623 rm -f core core.* *.core
2626 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
2627 if test $ac_cv_func_setvbuf_reversed = yes; then
2628 cat >> confdefs.h <<\EOF
2629 #define SETVBUF_REVERSED 1
2634 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2635 echo "configure:2636: checking return type of signal handlers" >&5
2636 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2639 cat > conftest.$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2642 #include <sys/types.h>
2648 extern "C" void (*signal (int, void (*)(int)))(int);
2650 void (*signal ()) ();
2657 if { (eval echo configure:2658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2659 ac_cv_type_signal=void
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2664 ac_cv_type_signal=int
2669 echo "$ac_t""$ac_cv_type_signal" 1>&6
2670 cat >> confdefs.h <<EOF
2671 #define RETSIGTYPE $ac_cv_type_signal
2675 for ac_func in gethostname gettimeofday strstr strtol
2677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2678 echo "configure:2679: checking for $ac_func" >&5
2679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2682 cat > conftest.$ac_ext <<EOF
2683 #line 2684 "configure"
2684 #include "confdefs.h"
2685 /* System header to define __stub macros and hopefully few prototypes,
2686 which can conflict with char $ac_func(); below. */
2688 /* Override any gcc2 internal prototype to avoid an error. */
2689 /* We use char because int might match the return type of a gcc2
2690 builtin and then its argument prototype would still apply. */
2695 /* The GNU C library defines this for functions which it implements
2696 to always fail with ENOSYS. Some functions are actually named
2697 something starting with __ and the normal name is an alias. */
2698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2706 if { (eval echo configure:2707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2708 eval "ac_cv_func_$ac_func=yes"
2710 echo "configure: failed program was:" >&5
2711 cat conftest.$ac_ext >&5
2713 eval "ac_cv_func_$ac_func=no"
2718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2719 echo "$ac_t""yes" 1>&6
2720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2721 cat >> confdefs.h <<EOF
2722 #define $ac_tr_func 1
2726 echo "$ac_t""no" 1>&6
2730 for ac_func in memcpy bcopy
2732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2733 echo "configure:2734: checking for $ac_func" >&5
2734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 /* System header to define __stub macros and hopefully few prototypes,
2741 which can conflict with char $ac_func(); below. */
2743 /* Override any gcc2 internal prototype to avoid an error. */
2744 /* We use char because int might match the return type of a gcc2
2745 builtin and then its argument prototype would still apply. */
2750 /* The GNU C library defines this for functions which it implements
2751 to always fail with ENOSYS. Some functions are actually named
2752 something starting with __ and the normal name is an alias. */
2753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2761 if { (eval echo configure:2762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2763 eval "ac_cv_func_$ac_func=yes"
2765 echo "configure: failed program was:" >&5
2766 cat conftest.$ac_ext >&5
2768 eval "ac_cv_func_$ac_func=no"
2773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2774 echo "$ac_t""yes" 1>&6
2775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2776 cat >> confdefs.h <<EOF
2777 #define $ac_tr_func 1
2781 echo "$ac_t""no" 1>&6
2785 for ac_func in setlinebuf setvbuf
2787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2788 echo "configure:2789: checking for $ac_func" >&5
2789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2795 /* System header to define __stub macros and hopefully few prototypes,
2796 which can conflict with char $ac_func(); below. */
2798 /* Override any gcc2 internal prototype to avoid an error. */
2799 /* We use char because int might match the return type of a gcc2
2800 builtin and then its argument prototype would still apply. */
2805 /* The GNU C library defines this for functions which it implements
2806 to always fail with ENOSYS. Some functions are actually named
2807 something starting with __ and the normal name is an alias. */
2808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2816 if { (eval echo configure:2817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2818 eval "ac_cv_func_$ac_func=yes"
2820 echo "configure: failed program was:" >&5
2821 cat conftest.$ac_ext >&5
2823 eval "ac_cv_func_$ac_func=no"
2828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2829 echo "$ac_t""yes" 1>&6
2830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2831 cat >> confdefs.h <<EOF
2832 #define $ac_tr_func 1
2836 echo "$ac_t""no" 1>&6
2843 # Set various user-definable options.
2845 # Valid OPT settings:
2846 # --with-top-part-bitmaps
2849 # --with-first-shogi-program=PROGNAME
2850 # --with-second-shogi-program=PROGNAME
2851 # --with-first-host=HOSTNAME
2852 # --with-second-host=HOSTNAME
2856 FIRST_SHOGI_PROGRAM=gnushogi
2857 SECOND_SHOGI_PROGRAM=gnushogi
2858 FIRST_HOST=localhost
2859 SECOND_HOST=localhost
2861 # Check whether --with-top-part-bitmaps or --without-top-part-bitmaps was given.
2862 if test "${with_top_part_bitmaps+set}" = set; then
2863 withval="$with_top_part_bitmaps"
2864 OPT=-DTOP_PART_BITMAPS
2868 # Check whether --with-first-shogi-program or --without-first-shogi-program was given.
2869 if test "${with_first_shogi_program+set}" = set; then
2870 withval="$with_first_shogi_program"
2871 FIRST_SHOGI_PROGRAM=$withval
2875 # Check whether --with-second-shogi-program or --without-second-shogi-program was given.
2876 if test "${with_second_shogi_program+set}" = set; then
2877 withval="$with_second_shogi_program"
2878 SECOND_SHOGI_PROGRAM=$withval
2882 # Check whether --with-first-host or --without-first-host was given.
2883 if test "${with_first_host+set}" = set; then
2884 withval="$with_first_host"
2889 # Check whether --with-second-host or --without-second-host was given.
2890 if test "${with_second_host+set}" = set; then
2891 withval="$with_second_host"
2892 SECOND_HOST=$withval
2896 # Check whether --with-xshogi or --without-xshogi was given.
2897 if test "${with_xshogi+set}" = set; then
2898 withval="$with_xshogi"
2899 with_xshogi=$withval
2911 if [ $with_xshogi = yes ]
2913 XSHOGI=xshogi_compile
2914 XSHOGIINSTALL=xshogi_install
2915 XSHOGICLEAN=xshogi_clean
2928 echo outputting files...
2931 cat > confcache <<\EOF
2932 # This file is a shell script that caches the results of configure
2933 # tests run on this system so they can be shared between configure
2934 # scripts and configure runs. It is not useful on other systems.
2935 # If it contains results you don't want to keep, you may remove or edit it.
2937 # By default, configure uses ./config.cache as the cache file,
2938 # creating it if it does not exist already. You can give configure
2939 # the --cache-file=FILE option to use a different cache file; that is
2940 # what configure does when it calls configure scripts in
2941 # subdirectories, so they share the cache.
2942 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2943 # config.status only pays attention to the cache file if you give it the
2944 # --recheck option to rerun configure.
2947 # The following way of writing the cache mishandles newlines in values,
2948 # but we know of no workaround that is simple, portable, and efficient.
2949 # So, don't put newlines in cache variables' values.
2950 # Ultrix sh set writes to stderr and can't be redirected directly,
2951 # and sets the high bit in the cache file unless we assign to the vars.
2953 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2955 # `set' does not quote correctly, so add quotes (double-quote substitution
2956 # turns \\\\ into \\, and sed turns \\ into \).
2958 -e "s/'/'\\\\''/g" \
2959 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2962 # `set' quotes correctly as required by POSIX, so do not add quotes.
2963 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2966 if cmp -s $cache_file confcache; then
2969 if test -w $cache_file; then
2970 echo "updating cache $cache_file"
2971 cat confcache > $cache_file
2973 echo "not updating unwritable cache $cache_file"
2978 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2981 # Let make expand exec_prefix.
2982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2984 # Any assignment to VPATH causes Sun make to only execute
2985 # the first set of double-colon rules, so remove it if not needed.
2986 # If there is a colon in the path, we need to keep it.
2987 if test "x$srcdir" = x.; then
2988 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2991 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2993 DEFS=-DHAVE_CONFIG_H
2995 # Without the "./", some shells look in PATH for config.status.
2996 : ${CONFIG_STATUS=./config.status}
2998 echo creating $CONFIG_STATUS
2999 rm -f $CONFIG_STATUS
3000 cat > $CONFIG_STATUS <<EOF
3002 # Generated automatically by configure.
3003 # Run this file to recreate the current configuration.
3004 # This directory was configured as follows,
3005 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3007 # $0 $ac_configure_args
3009 # Compiler output produced by configure, useful for debugging
3010 # configure, is in ./config.log if it exists.
3012 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3015 case "\$ac_option" in
3016 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3017 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3018 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3019 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3020 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3022 -help | --help | --hel | --he | --h)
3023 echo "\$ac_cs_usage"; exit 0 ;;
3024 *) echo "\$ac_cs_usage"; exit 1 ;;
3028 ac_given_srcdir=$srcdir
3029 ac_given_INSTALL="$INSTALL"
3031 trap 'rm -fr `echo "Makefile gnushogi/Makefile xshogi/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3033 cat >> $CONFIG_STATUS <<EOF
3035 # Protect against being on the right side of a sed subst in config.status.
3036 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3037 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3041 s%@CFLAGS@%$CFLAGS%g
3042 s%@CPPFLAGS@%$CPPFLAGS%g
3043 s%@CXXFLAGS@%$CXXFLAGS%g
3044 s%@FFLAGS@%$FFLAGS%g
3046 s%@LDFLAGS@%$LDFLAGS%g
3048 s%@exec_prefix@%$exec_prefix%g
3049 s%@prefix@%$prefix%g
3050 s%@program_transform_name@%$program_transform_name%g
3051 s%@bindir@%$bindir%g
3052 s%@sbindir@%$sbindir%g
3053 s%@libexecdir@%$libexecdir%g
3054 s%@datadir@%$datadir%g
3055 s%@sysconfdir@%$sysconfdir%g
3056 s%@sharedstatedir@%$sharedstatedir%g
3057 s%@localstatedir@%$localstatedir%g
3058 s%@libdir@%$libdir%g
3059 s%@includedir@%$includedir%g
3060 s%@oldincludedir@%$oldincludedir%g
3061 s%@infodir@%$infodir%g
3062 s%@mandir@%$mandir%g
3066 s%@LEXLIB@%$LEXLIB%g
3067 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3068 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3069 s%@INSTALL_DATA@%$INSTALL_DATA%g
3071 s%@X_CFLAGS@%$X_CFLAGS%g
3072 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3073 s%@X_LIBS@%$X_LIBS%g
3074 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3075 s%@WARNINGS@%$WARNINGS%g
3076 s%@CEXTRAFLAGS@%$CEXTRAFLAGS%g
3078 s%@FIRST_SHOGI_PROGRAM@%$FIRST_SHOGI_PROGRAM%g
3079 s%@SECOND_SHOGI_PROGRAM@%$SECOND_SHOGI_PROGRAM%g
3080 s%@FIRST_HOST@%$FIRST_HOST%g
3081 s%@SECOND_HOST@%$SECOND_HOST%g
3082 s%@XSHOGI@%$XSHOGI%g
3083 s%@XSHOGIINSTALL@%$XSHOGIINSTALL%g
3084 s%@XSHOGICLEAN@%$XSHOGICLEAN%g
3089 cat >> $CONFIG_STATUS <<\EOF
3091 # Split the substitutions into bite-sized pieces for seds with
3092 # small command number limits, like on Digital OSF/1 and HP-UX.
3093 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3094 ac_file=1 # Number of current file.
3095 ac_beg=1 # First line for current file.
3096 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3099 while $ac_more_lines; do
3100 if test $ac_beg -gt 1; then
3101 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3103 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3105 if test ! -s conftest.s$ac_file; then
3107 rm -f conftest.s$ac_file
3109 if test -z "$ac_sed_cmds"; then
3110 ac_sed_cmds="sed -f conftest.s$ac_file"
3112 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3114 ac_file=`expr $ac_file + 1`
3116 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3119 if test -z "$ac_sed_cmds"; then
3124 cat >> $CONFIG_STATUS <<EOF
3126 CONFIG_FILES=\${CONFIG_FILES-"Makefile gnushogi/Makefile xshogi/Makefile"}
3128 cat >> $CONFIG_STATUS <<\EOF
3129 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3132 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3133 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3134 *) ac_file_in="${ac_file}.in" ;;
3137 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3139 # Remove last slash and all that follows it. Not all systems have dirname.
3140 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3141 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3142 # The file is in a subdirectory.
3143 test ! -d "$ac_dir" && mkdir "$ac_dir"
3144 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3145 # A "../" for each directory in $ac_dir_suffix.
3146 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3148 ac_dir_suffix= ac_dots=
3151 case "$ac_given_srcdir" in
3153 if test -z "$ac_dots"; then top_srcdir=.
3154 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3155 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3157 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3158 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3161 case "$ac_given_INSTALL" in
3162 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3163 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3166 echo creating "$ac_file"
3168 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3170 *Makefile*) ac_comsub="1i\\
3171 # $configure_input" ;;
3175 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3177 s%@configure_input@%$configure_input%g
3178 s%@srcdir@%$srcdir%g
3179 s%@top_srcdir@%$top_srcdir%g
3180 s%@INSTALL@%$INSTALL%g
3181 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3185 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3186 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3188 # ac_d sets the value in "#define NAME VALUE" lines.
3189 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3190 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3193 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3194 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3195 ac_uB='\([ ]\)%\1#\2define\3'
3198 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3199 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3200 ac_eB='$%\1#\2define\3'
3204 if test "${CONFIG_HEADERS+set}" != set; then
3206 cat >> $CONFIG_STATUS <<EOF
3207 CONFIG_HEADERS="config.h"
3209 cat >> $CONFIG_STATUS <<\EOF
3211 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3212 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3214 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3215 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3216 *) ac_file_in="${ac_file}.in" ;;
3219 echo creating $ac_file
3221 rm -f conftest.frag conftest.in conftest.out
3222 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3223 cat $ac_file_inputs > conftest.in
3227 # Transform confdefs.h into a sed script conftest.vals that substitutes
3228 # the proper values into config.h.in to produce config.h. And first:
3229 # Protect against being on the right side of a sed subst in config.status.
3230 # Protect against being in an unquoted here document in config.status.
3232 cat > conftest.hdr <<\EOF
3235 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3239 sed -n -f conftest.hdr confdefs.h > conftest.vals
3242 # This sed command replaces #undef with comments. This is necessary, for
3243 # example, in the case of _POSIX_SOURCE, which is predefined and required
3244 # on some systems where configure will not decide to define it.
3245 cat >> conftest.vals <<\EOF
3246 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3249 # Break up conftest.vals because some shells have a limit on
3250 # the size of here documents, and old seds have small limits too.
3255 ac_lines=`grep -c . conftest.vals`
3256 # grep -c gives empty output for an empty file on some AIX systems.
3257 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3258 # Write a limited-size here document to conftest.frag.
3259 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3260 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3262 sed -f conftest.frag conftest.in > conftest.out
3264 mv conftest.out conftest.in
3266 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3268 mv conftest.tail conftest.vals
3272 cat >> $CONFIG_STATUS <<\EOF
3273 rm -f conftest.frag conftest.h
3274 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3275 cat conftest.in >> conftest.h
3277 if cmp -s $ac_file conftest.h 2>/dev/null; then
3278 echo "$ac_file is unchanged"
3281 # Remove last slash and all that follows it. Not all systems have dirname.
3282 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3283 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3284 # The file is in a subdirectory.
3285 test ! -d "$ac_dir" && mkdir "$ac_dir"
3288 mv conftest.h $ac_file
3293 cat >> $CONFIG_STATUS <<EOF
3296 cat >> $CONFIG_STATUS <<\EOF
3300 chmod +x $CONFIG_STATUS
3301 rm -fr confdefs* $ac_clean_files
3302 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1