WIP commit for two player mode.
[sgk-go] / configure
CommitLineData
7eeb782e
AT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for gnugo 3.8.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 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.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME='gnugo'
574PACKAGE_TARNAME='gnugo'
575PACKAGE_VERSION='3.8'
576PACKAGE_STRING='gnugo 3.8'
577PACKAGE_BUGREPORT=''
578
579ac_unique_file="engine/dragon.c"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594# include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653INSTALL_PROGRAM
654INSTALL_SCRIPT
655INSTALL_DATA
656CYGPATH_W
657PACKAGE
658VERSION
659ACLOCAL
660AUTOCONF
661AUTOMAKE
662AUTOHEADER
663MAKEINFO
664install_sh
665STRIP
666INSTALL_STRIP_PROGRAM
667mkdir_p
668AWK
669SET_MAKE
670am__leading_dot
671AMTAR
672am__tar
673am__untar
674MAINTAINER_MODE_TRUE
675MAINTAINER_MODE_FALSE
676MAINT
677CC
678CFLAGS
679LDFLAGS
680CPPFLAGS
681ac_ct_CC
682EXEEXT
683OBJEXT
684DEPDIR
685am__include
686am__quote
687AMDEP_TRUE
688AMDEP_FALSE
689AMDEPBACKSLASH
690CCDEPMODE
691am__fastdepCC_TRUE
692am__fastdepCC_FALSE
693CPP
694RANLIB
695GREP
696EGREP
697glibconfig
698DFA_ENABLED_TRUE
699DFA_ENABLED_FALSE
700GCC_ONLY_TRUE
701GCC_ONLY_FALSE
702GCC_MAJOR_VERSION
703GCC_MINOR_VERSION
704GNU_GO_WARNINGS
705LIBOBJS
706LTLIBOBJS'
707ac_subst_files=''
708 ac_precious_vars='build_alias
709host_alias
710target_alias
711CC
712CFLAGS
713LDFLAGS
714LIBS
715CPPFLAGS
716CPP'
717
718
719# Initialize some variables set by options.
720ac_init_help=
721ac_init_version=false
722# The variables have the same names as the options, with
723# dashes changed to underlines.
724cache_file=/dev/null
725exec_prefix=NONE
726no_create=
727no_recursion=
728prefix=NONE
729program_prefix=NONE
730program_suffix=NONE
731program_transform_name=s,x,x,
732silent=
733site=
734srcdir=
735verbose=
736x_includes=NONE
737x_libraries=NONE
738
739# Installation directory options.
740# These are left unexpanded so users can "make install exec_prefix=/foo"
741# and all the variables that are supposed to be based on exec_prefix
742# by default will actually change.
743# Use braces instead of parens because sh, perl, etc. also accept them.
744# (The list follows the same order as the GNU Coding Standards.)
745bindir='${exec_prefix}/bin'
746sbindir='${exec_prefix}/sbin'
747libexecdir='${exec_prefix}/libexec'
748datarootdir='${prefix}/share'
749datadir='${datarootdir}'
750sysconfdir='${prefix}/etc'
751sharedstatedir='${prefix}/com'
752localstatedir='${prefix}/var'
753includedir='${prefix}/include'
754oldincludedir='/usr/include'
755docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
756infodir='${datarootdir}/info'
757htmldir='${docdir}'
758dvidir='${docdir}'
759pdfdir='${docdir}'
760psdir='${docdir}'
761libdir='${exec_prefix}/lib'
762localedir='${datarootdir}/locale'
763mandir='${datarootdir}/man'
764
765ac_prev=
766ac_dashdash=
767for ac_option
768do
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
771 eval $ac_prev=\$ac_option
772 ac_prev=
773 continue
774 fi
775
776 case $ac_option in
777 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778 *) ac_optarg=yes ;;
779 esac
780
781 # Accept the important Cygnus configure options, so we can diagnose typos.
782
783 case $ac_dashdash$ac_option in
784 --)
785 ac_dashdash=yes ;;
786
787 -bindir | --bindir | --bindi | --bind | --bin | --bi)
788 ac_prev=bindir ;;
789 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
790 bindir=$ac_optarg ;;
791
792 -build | --build | --buil | --bui | --bu)
793 ac_prev=build_alias ;;
794 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795 build_alias=$ac_optarg ;;
796
797 -cache-file | --cache-file | --cache-fil | --cache-fi \
798 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799 ac_prev=cache_file ;;
800 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802 cache_file=$ac_optarg ;;
803
804 --config-cache | -C)
805 cache_file=config.cache ;;
806
807 -datadir | --datadir | --datadi | --datad)
808 ac_prev=datadir ;;
809 -datadir=* | --datadir=* | --datadi=* | --datad=*)
810 datadir=$ac_optarg ;;
811
812 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813 | --dataroo | --dataro | --datar)
814 ac_prev=datarootdir ;;
815 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817 datarootdir=$ac_optarg ;;
818
819 -disable-* | --disable-*)
820 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_$ac_feature=no ;;
827
828 -docdir | --docdir | --docdi | --doc | --do)
829 ac_prev=docdir ;;
830 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
831 docdir=$ac_optarg ;;
832
833 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
834 ac_prev=dvidir ;;
835 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
836 dvidir=$ac_optarg ;;
837
838 -enable-* | --enable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=\$ac_optarg ;;
846
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
855
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
858 with_gas=yes ;;
859
860 -help | --help | --hel | --he | -h)
861 ac_init_help=long ;;
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
866
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
871
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873 ac_prev=htmldir ;;
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875 | --ht=*)
876 htmldir=$ac_optarg ;;
877
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
884
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
886 ac_prev=infodir ;;
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
889
890 -libdir | --libdir | --libdi | --libd)
891 ac_prev=libdir ;;
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
893 libdir=$ac_optarg ;;
894
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
901
902 -localedir | --localedir | --localedi | --localed | --locale)
903 ac_prev=localedir ;;
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
906
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
913
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915 ac_prev=mandir ;;
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 mandir=$ac_optarg ;;
918
919 -nfp | --nfp | --nf)
920 # Obsolete; use --without-fp.
921 with_fp=no ;;
922
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
925 no_create=yes ;;
926
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929 no_recursion=yes ;;
930
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
939
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941 ac_prev=prefix ;;
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943 prefix=$ac_optarg ;;
944
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
951
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
958
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
975
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977 ac_prev=pdfdir ;;
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979 pdfdir=$ac_optarg ;;
980
981 -psdir | --psdir | --psdi | --psd | --ps)
982 ac_prev=psdir ;;
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984 psdir=$ac_optarg ;;
985
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
988 silent=yes ;;
989
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
995
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1006
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1011
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1016
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1023
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1028
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1031
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1034
1035 -with-* | --with-*)
1036 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 { echo "$as_me: error: invalid package name: $ac_package" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042 eval with_$ac_package=\$ac_optarg ;;
1043
1044 -without-* | --without-*)
1045 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048 { echo "$as_me: error: invalid package name: $ac_package" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1051 eval with_$ac_package=no ;;
1052
1053 --x)
1054 # Obsolete; use --with-x.
1055 with_x=yes ;;
1056
1057 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1058 | --x-incl | --x-inc | --x-in | --x-i)
1059 ac_prev=x_includes ;;
1060 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1061 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1062 x_includes=$ac_optarg ;;
1063
1064 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1065 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1066 ac_prev=x_libraries ;;
1067 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1068 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1069 x_libraries=$ac_optarg ;;
1070
1071 -*) { echo "$as_me: error: unrecognized option: $ac_option
1072Try \`$0 --help' for more information." >&2
1073 { (exit 1); exit 1; }; }
1074 ;;
1075
1076 *=*)
1077 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1081 { (exit 1); exit 1; }; }
1082 eval $ac_envvar=\$ac_optarg
1083 export $ac_envvar ;;
1084
1085 *)
1086 # FIXME: should be removed in autoconf 3.0.
1087 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1091 ;;
1092
1093 esac
1094done
1095
1096if test -n "$ac_prev"; then
1097 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1098 { echo "$as_me: error: missing argument to $ac_option" >&2
1099 { (exit 1); exit 1; }; }
1100fi
1101
1102# Be sure to have absolute directory names.
1103for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104 datadir sysconfdir sharedstatedir localstatedir includedir \
1105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106 libdir localedir mandir
1107do
1108 eval ac_val=\$$ac_var
1109 case $ac_val in
1110 [\\/$]* | ?:[\\/]* ) continue;;
1111 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1112 esac
1113 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1114 { (exit 1); exit 1; }; }
1115done
1116
1117# There might be people who depend on the old broken behavior: `$host'
1118# used to hold the argument of --host etc.
1119# FIXME: To remove some day.
1120build=$build_alias
1121host=$host_alias
1122target=$target_alias
1123
1124# FIXME: To remove some day.
1125if test "x$host_alias" != x; then
1126 if test "x$build_alias" = x; then
1127 cross_compiling=maybe
1128 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1129 If a cross compiler is detected then cross compile mode will be used." >&2
1130 elif test "x$build_alias" != "x$host_alias"; then
1131 cross_compiling=yes
1132 fi
1133fi
1134
1135ac_tool_prefix=
1136test -n "$host_alias" && ac_tool_prefix=$host_alias-
1137
1138test "$silent" = yes && exec 6>/dev/null
1139
1140
1141ac_pwd=`pwd` && test -n "$ac_pwd" &&
1142ac_ls_di=`ls -di .` &&
1143ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1144 { echo "$as_me: error: Working directory cannot be determined" >&2
1145 { (exit 1); exit 1; }; }
1146test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147 { echo "$as_me: error: pwd does not report name of working directory" >&2
1148 { (exit 1); exit 1; }; }
1149
1150
1151# Find the source files, if location was not specified.
1152if test -z "$srcdir"; then
1153 ac_srcdir_defaulted=yes
1154 # Try the directory containing this script, then the parent directory.
1155 ac_confdir=`$as_dirname -- "$0" ||
1156$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157 X"$0" : 'X\(//\)[^/]' \| \
1158 X"$0" : 'X\(//\)$' \| \
1159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1160echo X"$0" |
1161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1162 s//\1/
1163 q
1164 }
1165 /^X\(\/\/\)[^/].*/{
1166 s//\1/
1167 q
1168 }
1169 /^X\(\/\/\)$/{
1170 s//\1/
1171 q
1172 }
1173 /^X\(\/\).*/{
1174 s//\1/
1175 q
1176 }
1177 s/.*/./; q'`
1178 srcdir=$ac_confdir
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180 srcdir=..
1181 fi
1182else
1183 ac_srcdir_defaulted=no
1184fi
1185if test ! -r "$srcdir/$ac_unique_file"; then
1186 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1187 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1188 { (exit 1); exit 1; }; }
1189fi
1190ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1191ac_abs_confdir=`(
1192 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1193 { (exit 1); exit 1; }; }
1194 pwd)`
1195# When building in place, set srcdir=.
1196if test "$ac_abs_confdir" = "$ac_pwd"; then
1197 srcdir=.
1198fi
1199# Remove unnecessary trailing slashes from srcdir.
1200# Double slashes in file names in object file debugging info
1201# mess up M-x gdb in Emacs.
1202case $srcdir in
1203*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1204esac
1205for ac_var in $ac_precious_vars; do
1206 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_env_${ac_var}_value=\$${ac_var}
1208 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1209 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1210done
1211
1212#
1213# Report the --help message.
1214#
1215if test "$ac_init_help" = "long"; then
1216 # Omit some internal or obsolete options to make the list less imposing.
1217 # This message is too long to be a string in the A/UX 3.1 sh.
1218 cat <<_ACEOF
1219\`configure' configures gnugo 3.8 to adapt to many kinds of systems.
1220
1221Usage: $0 [OPTION]... [VAR=VALUE]...
1222
1223To assign environment variables (e.g., CC, CFLAGS...), specify them as
1224VAR=VALUE. See below for descriptions of some of the useful variables.
1225
1226Defaults for the options are specified in brackets.
1227
1228Configuration:
1229 -h, --help display this help and exit
1230 --help=short display options specific to this package
1231 --help=recursive display the short help of all the included packages
1232 -V, --version display version information and exit
1233 -q, --quiet, --silent do not print \`checking...' messages
1234 --cache-file=FILE cache test results in FILE [disabled]
1235 -C, --config-cache alias for \`--cache-file=config.cache'
1236 -n, --no-create do not create output files
1237 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1238
1239Installation directories:
1240 --prefix=PREFIX install architecture-independent files in PREFIX
1241 [$ac_default_prefix]
1242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1243 [PREFIX]
1244
1245By default, \`make install' will install all the files in
1246\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1247an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1248for instance \`--prefix=\$HOME'.
1249
1250For better control, use the options below.
1251
1252Fine tuning of the installation directories:
1253 --bindir=DIR user executables [EPREFIX/bin]
1254 --sbindir=DIR system admin executables [EPREFIX/sbin]
1255 --libexecdir=DIR program executables [EPREFIX/libexec]
1256 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1257 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1258 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1259 --libdir=DIR object code libraries [EPREFIX/lib]
1260 --includedir=DIR C header files [PREFIX/include]
1261 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1262 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1263 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1264 --infodir=DIR info documentation [DATAROOTDIR/info]
1265 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1266 --mandir=DIR man documentation [DATAROOTDIR/man]
1267 --docdir=DIR documentation root [DATAROOTDIR/doc/gnugo]
1268 --htmldir=DIR html documentation [DOCDIR]
1269 --dvidir=DIR dvi documentation [DOCDIR]
1270 --pdfdir=DIR pdf documentation [DOCDIR]
1271 --psdir=DIR ps documentation [DOCDIR]
1272_ACEOF
1273
1274 cat <<\_ACEOF
1275
1276Program names:
1277 --program-prefix=PREFIX prepend PREFIX to installed program names
1278 --program-suffix=SUFFIX append SUFFIX to installed program names
1279 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1280_ACEOF
1281fi
1282
1283if test -n "$ac_init_help"; then
1284 case $ac_init_help in
1285 short | recursive ) echo "Configuration of gnugo 3.8:";;
1286 esac
1287 cat <<\_ACEOF
1288
1289Optional Features:
1290 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1291 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1292 --enable-maintainer-mode enable make rules and dependencies not useful
1293 (and sometimes confusing) to the casual installer
1294 --enable-color use curses or ansi escape sequences for colored
1295 debug output
1296 --disable-color do not try to generated colored debug output
1297 --enable-grid-opt enable the grid optimisation within the pattern
1298 matcher (default)
1299 --enable-grid-opt=distrust enable the grid optimisation in non-trusting mode
1300 --disable-grid-opt disable the grid optimisation
1301 --enable-cache-size=n reserve n MB RAM for caching (special value -1
1302 default, corresponding to 8-11 MB depending on
1303 platform)
1304 --enable-level=n n = default level (10 standard)
1305 --enable-semeai-node-limit=n n = semeai variations (500 standard)
1306 --enable-owl-node-limit=n n = owl node limit (1000 standard)
1307 --disable-dfa use old non-dfa pattern matcher
1308 --enable-chinese-rules use Chinese (area) counting
1309 --disable-chinese-rules use Japanese counting (default)
1310 --enable-resignation-allowed resign lost games (default)
1311 --disable-resignation-allowed never resign
1312 --enable-metamachine enable metamachine
1313 --disable-metamachine don't enable metamachine (default)
1314 --enable-experimental-break-in use the breakin module (default)
1315 --disable-experimental-break-in don't use the breakin module
1316 --enable-experimental-owl-ext use the experimental GAIN/LOSS codes
1317 --disable-experimental-owl-ext use standard owl module (default)
1318 --enable-cosmic-gnugo use center-oriented influence code
1319 --disable-cosmic-gnugo use standard influence code (default)
1320 --enable-large-scale look for large scale captures
1321 --disable-large-scale don't seek large scale captures (default)
1322 --enable-experimental-connections use experimental connection analysis
1323 (default)
1324 --disable-experimental-connections use standard connection analysis
1325 --enable-alternate-connections use alternate experimental connection
1326 analysis
1327 --disable-alternate-connections use primary experimental connection
1328 analysis (default)
1329 --disable-socket-support don't compile GTP over TCP/IP support
1330 --enable-socket-support compile TCP/IP support (default)
1331 --disable-dependency-tracking speeds up one-time build
1332 --enable-dependency-tracking do not reject slow dependency extractors
1333
1334Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1337 --with-readline try to use GNU Readline for command reading
1338 --without-readline do not use GNU Readline (default)
1339 --with-curses try to use curses for colored debugging output (default)
1340 --without-curses do not use curses for colored debugging output
1341
1342Some influential environment variables:
1343 CC C compiler command
1344 CFLAGS C compiler flags
1345 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1346 nonstandard directory <lib dir>
1347 LIBS libraries to pass to the linker, e.g. -l<library>
1348 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1349 you have headers in a nonstandard directory <include dir>
1350 CPP C preprocessor
1351
1352Use these variables to override the choices made by `configure' or to help
1353it to find libraries and programs with nonstandard names/locations.
1354
1355_ACEOF
1356ac_status=$?
1357fi
1358
1359if test "$ac_init_help" = "recursive"; then
1360 # If there are subdirs, report their specific --help.
1361 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1362 test -d "$ac_dir" || continue
1363 ac_builddir=.
1364
1365case "$ac_dir" in
1366.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367*)
1368 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1369 # A ".." for each directory in $ac_dir_suffix.
1370 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1371 case $ac_top_builddir_sub in
1372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1374 esac ;;
1375esac
1376ac_abs_top_builddir=$ac_pwd
1377ac_abs_builddir=$ac_pwd$ac_dir_suffix
1378# for backward compatibility:
1379ac_top_builddir=$ac_top_build_prefix
1380
1381case $srcdir in
1382 .) # We are building in place.
1383 ac_srcdir=.
1384 ac_top_srcdir=$ac_top_builddir_sub
1385 ac_abs_top_srcdir=$ac_pwd ;;
1386 [\\/]* | ?:[\\/]* ) # Absolute name.
1387 ac_srcdir=$srcdir$ac_dir_suffix;
1388 ac_top_srcdir=$srcdir
1389 ac_abs_top_srcdir=$srcdir ;;
1390 *) # Relative name.
1391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1392 ac_top_srcdir=$ac_top_build_prefix$srcdir
1393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1394esac
1395ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1396
1397 cd "$ac_dir" || { ac_status=$?; continue; }
1398 # Check for guested configure.
1399 if test -f "$ac_srcdir/configure.gnu"; then
1400 echo &&
1401 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1402 elif test -f "$ac_srcdir/configure"; then
1403 echo &&
1404 $SHELL "$ac_srcdir/configure" --help=recursive
1405 else
1406 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1407 fi || ac_status=$?
1408 cd "$ac_pwd" || { ac_status=$?; break; }
1409 done
1410fi
1411
1412test -n "$ac_init_help" && exit $ac_status
1413if $ac_init_version; then
1414 cat <<\_ACEOF
1415gnugo configure 3.8
1416generated by GNU Autoconf 2.61
1417
1418Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14192002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1420This configure script is free software; the Free Software Foundation
1421gives unlimited permission to copy, distribute and modify it.
1422_ACEOF
1423 exit
1424fi
1425cat >config.log <<_ACEOF
1426This file contains any messages produced by compilers while
1427running configure, to aid debugging if configure makes a mistake.
1428
1429It was created by gnugo $as_me 3.8, which was
1430generated by GNU Autoconf 2.61. Invocation command line was
1431
1432 $ $0 $@
1433
1434_ACEOF
1435exec 5>>config.log
1436{
1437cat <<_ASUNAME
1438## --------- ##
1439## Platform. ##
1440## --------- ##
1441
1442hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1443uname -m = `(uname -m) 2>/dev/null || echo unknown`
1444uname -r = `(uname -r) 2>/dev/null || echo unknown`
1445uname -s = `(uname -s) 2>/dev/null || echo unknown`
1446uname -v = `(uname -v) 2>/dev/null || echo unknown`
1447
1448/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1449/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1450
1451/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1452/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1453/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1454/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1455/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1456/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1457/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1458
1459_ASUNAME
1460
1461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462for as_dir in $PATH
1463do
1464 IFS=$as_save_IFS
1465 test -z "$as_dir" && as_dir=.
1466 echo "PATH: $as_dir"
1467done
1468IFS=$as_save_IFS
1469
1470} >&5
1471
1472cat >&5 <<_ACEOF
1473
1474
1475## ----------- ##
1476## Core tests. ##
1477## ----------- ##
1478
1479_ACEOF
1480
1481
1482# Keep a trace of the command line.
1483# Strip out --no-create and --no-recursion so they do not pile up.
1484# Strip out --silent because we don't want to record it for future runs.
1485# Also quote any args containing shell meta-characters.
1486# Make two passes to allow for proper duplicate-argument suppression.
1487ac_configure_args=
1488ac_configure_args0=
1489ac_configure_args1=
1490ac_must_keep_next=false
1491for ac_pass in 1 2
1492do
1493 for ac_arg
1494 do
1495 case $ac_arg in
1496 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1497 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1498 | -silent | --silent | --silen | --sile | --sil)
1499 continue ;;
1500 *\'*)
1501 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1502 esac
1503 case $ac_pass in
1504 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1505 2)
1506 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1507 if test $ac_must_keep_next = true; then
1508 ac_must_keep_next=false # Got value, back to normal.
1509 else
1510 case $ac_arg in
1511 *=* | --config-cache | -C | -disable-* | --disable-* \
1512 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1513 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1514 | -with-* | --with-* | -without-* | --without-* | --x)
1515 case "$ac_configure_args0 " in
1516 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1517 esac
1518 ;;
1519 -* ) ac_must_keep_next=true ;;
1520 esac
1521 fi
1522 ac_configure_args="$ac_configure_args '$ac_arg'"
1523 ;;
1524 esac
1525 done
1526done
1527$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1528$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1529
1530# When interrupted or exit'd, cleanup temporary files, and complete
1531# config.log. We remove comments because anyway the quotes in there
1532# would cause problems or look ugly.
1533# WARNING: Use '\'' to represent an apostrophe within the trap.
1534# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1535trap 'exit_status=$?
1536 # Save into config.log some information that might help in debugging.
1537 {
1538 echo
1539
1540 cat <<\_ASBOX
1541## ---------------- ##
1542## Cache variables. ##
1543## ---------------- ##
1544_ASBOX
1545 echo
1546 # The following way of writing the cache mishandles newlines in values,
1547(
1548 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1549 eval ac_val=\$$ac_var
1550 case $ac_val in #(
1551 *${as_nl}*)
1552 case $ac_var in #(
1553 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1554echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1555 esac
1556 case $ac_var in #(
1557 _ | IFS | as_nl) ;; #(
1558 *) $as_unset $ac_var ;;
1559 esac ;;
1560 esac
1561 done
1562 (set) 2>&1 |
1563 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1564 *${as_nl}ac_space=\ *)
1565 sed -n \
1566 "s/'\''/'\''\\\\'\'''\''/g;
1567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1568 ;; #(
1569 *)
1570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1571 ;;
1572 esac |
1573 sort
1574)
1575 echo
1576
1577 cat <<\_ASBOX
1578## ----------------- ##
1579## Output variables. ##
1580## ----------------- ##
1581_ASBOX
1582 echo
1583 for ac_var in $ac_subst_vars
1584 do
1585 eval ac_val=\$$ac_var
1586 case $ac_val in
1587 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1588 esac
1589 echo "$ac_var='\''$ac_val'\''"
1590 done | sort
1591 echo
1592
1593 if test -n "$ac_subst_files"; then
1594 cat <<\_ASBOX
1595## ------------------- ##
1596## File substitutions. ##
1597## ------------------- ##
1598_ASBOX
1599 echo
1600 for ac_var in $ac_subst_files
1601 do
1602 eval ac_val=\$$ac_var
1603 case $ac_val in
1604 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 esac
1606 echo "$ac_var='\''$ac_val'\''"
1607 done | sort
1608 echo
1609 fi
1610
1611 if test -s confdefs.h; then
1612 cat <<\_ASBOX
1613## ----------- ##
1614## confdefs.h. ##
1615## ----------- ##
1616_ASBOX
1617 echo
1618 cat confdefs.h
1619 echo
1620 fi
1621 test "$ac_signal" != 0 &&
1622 echo "$as_me: caught signal $ac_signal"
1623 echo "$as_me: exit $exit_status"
1624 } >&5
1625 rm -f core *.core core.conftest.* &&
1626 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1627 exit $exit_status
1628' 0
1629for ac_signal in 1 2 13 15; do
1630 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1631done
1632ac_signal=0
1633
1634# confdefs.h avoids OS command line length limits that DEFS can exceed.
1635rm -f -r conftest* confdefs.h
1636
1637# Predefined preprocessor variables.
1638
1639cat >>confdefs.h <<_ACEOF
1640#define PACKAGE_NAME "$PACKAGE_NAME"
1641_ACEOF
1642
1643
1644cat >>confdefs.h <<_ACEOF
1645#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1646_ACEOF
1647
1648
1649cat >>confdefs.h <<_ACEOF
1650#define PACKAGE_VERSION "$PACKAGE_VERSION"
1651_ACEOF
1652
1653
1654cat >>confdefs.h <<_ACEOF
1655#define PACKAGE_STRING "$PACKAGE_STRING"
1656_ACEOF
1657
1658
1659cat >>confdefs.h <<_ACEOF
1660#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1661_ACEOF
1662
1663
1664# Let the site file select an alternate cache file if it wants to.
1665# Prefer explicitly selected file to automatically selected ones.
1666if test -n "$CONFIG_SITE"; then
1667 set x "$CONFIG_SITE"
1668elif test "x$prefix" != xNONE; then
1669 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1670else
1671 set x "$ac_default_prefix/share/config.site" \
1672 "$ac_default_prefix/etc/config.site"
1673fi
1674shift
1675for ac_site_file
1676do
1677 if test -r "$ac_site_file"; then
1678 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1679echo "$as_me: loading site script $ac_site_file" >&6;}
1680 sed 's/^/| /' "$ac_site_file" >&5
1681 . "$ac_site_file"
1682 fi
1683done
1684
1685if test -r "$cache_file"; then
1686 # Some versions of bash will fail to source /dev/null (special
1687 # files actually), so we avoid doing that.
1688 if test -f "$cache_file"; then
1689 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1690echo "$as_me: loading cache $cache_file" >&6;}
1691 case $cache_file in
1692 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1693 *) . "./$cache_file";;
1694 esac
1695 fi
1696else
1697 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1698echo "$as_me: creating cache $cache_file" >&6;}
1699 >$cache_file
1700fi
1701
1702# Check that the precious variables saved in the cache have kept the same
1703# value.
1704ac_cache_corrupted=false
1705for ac_var in $ac_precious_vars; do
1706 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1707 eval ac_new_set=\$ac_env_${ac_var}_set
1708 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1709 eval ac_new_val=\$ac_env_${ac_var}_value
1710 case $ac_old_set,$ac_new_set in
1711 set,)
1712 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1713echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1714 ac_cache_corrupted=: ;;
1715 ,set)
1716 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1717echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1718 ac_cache_corrupted=: ;;
1719 ,);;
1720 *)
1721 if test "x$ac_old_val" != "x$ac_new_val"; then
1722 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1723echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1724 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1725echo "$as_me: former value: $ac_old_val" >&2;}
1726 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1727echo "$as_me: current value: $ac_new_val" >&2;}
1728 ac_cache_corrupted=:
1729 fi;;
1730 esac
1731 # Pass precious variables to config.status.
1732 if test "$ac_new_set" = set; then
1733 case $ac_new_val in
1734 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1735 *) ac_arg=$ac_var=$ac_new_val ;;
1736 esac
1737 case " $ac_configure_args " in
1738 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1739 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1740 esac
1741 fi
1742done
1743if $ac_cache_corrupted; then
1744 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1745echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1746 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1747echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1748 { (exit 1); exit 1; }; }
1749fi
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775ac_ext=c
1776ac_cpp='$CPP $CPPFLAGS'
1777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1779ac_compiler_gnu=$ac_cv_c_compiler_gnu
1780
1781
1782
1783
1784ac_config_headers="$ac_config_headers config.h"
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796am__api_version="1.9"
1797ac_aux_dir=
1798for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1799 if test -f "$ac_dir/install-sh"; then
1800 ac_aux_dir=$ac_dir
1801 ac_install_sh="$ac_aux_dir/install-sh -c"
1802 break
1803 elif test -f "$ac_dir/install.sh"; then
1804 ac_aux_dir=$ac_dir
1805 ac_install_sh="$ac_aux_dir/install.sh -c"
1806 break
1807 elif test -f "$ac_dir/shtool"; then
1808 ac_aux_dir=$ac_dir
1809 ac_install_sh="$ac_aux_dir/shtool install -c"
1810 break
1811 fi
1812done
1813if test -z "$ac_aux_dir"; then
1814 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1815echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1816 { (exit 1); exit 1; }; }
1817fi
1818
1819# These three variables are undocumented and unsupported,
1820# and are intended to be withdrawn in a future Autoconf release.
1821# They can cause serious problems if a builder's source tree is in a directory
1822# whose full name contains unusual characters.
1823ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1824ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1825ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1826
1827
1828# Find a good install program. We prefer a C program (faster),
1829# so one script is as good as another. But avoid the broken or
1830# incompatible versions:
1831# SysV /etc/install, /usr/sbin/install
1832# SunOS /usr/etc/install
1833# IRIX /sbin/install
1834# AIX /bin/install
1835# AmigaOS /C/install, which installs bootblocks on floppy discs
1836# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1837# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1838# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1839# OS/2's system install, which has a completely different semantic
1840# ./install, which can be erroneously created by make from ./install.sh.
1841{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1842echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1843if test -z "$INSTALL"; then
1844if test "${ac_cv_path_install+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846else
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848for as_dir in $PATH
1849do
1850 IFS=$as_save_IFS
1851 test -z "$as_dir" && as_dir=.
1852 # Account for people who put trailing slashes in PATH elements.
1853case $as_dir/ in
1854 ./ | .// | /cC/* | \
1855 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1856 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1857 /usr/ucb/* ) ;;
1858 *)
1859 # OSF1 and SCO ODT 3.0 have their own names for install.
1860 # Don't use installbsd from OSF since it installs stuff as root
1861 # by default.
1862 for ac_prog in ginstall scoinst install; do
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1865 if test $ac_prog = install &&
1866 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1867 # AIX install. It has an incompatible calling convention.
1868 :
1869 elif test $ac_prog = install &&
1870 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1871 # program-specific install script used by HP pwplus--don't use.
1872 :
1873 else
1874 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1875 break 3
1876 fi
1877 fi
1878 done
1879 done
1880 ;;
1881esac
1882done
1883IFS=$as_save_IFS
1884
1885
1886fi
1887 if test "${ac_cv_path_install+set}" = set; then
1888 INSTALL=$ac_cv_path_install
1889 else
1890 # As a last resort, use the slow shell script. Don't cache a
1891 # value for INSTALL within a source directory, because that will
1892 # break other packages using the cache if that directory is
1893 # removed, or if the value is a relative name.
1894 INSTALL=$ac_install_sh
1895 fi
1896fi
1897{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1898echo "${ECHO_T}$INSTALL" >&6; }
1899
1900# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1901# It thinks the first close brace ends the variable substitution.
1902test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1903
1904test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1905
1906test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1907
1908{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1909echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1910# Just in case
1911sleep 1
1912echo timestamp > conftest.file
1913# Do `set' in a subshell so we don't clobber the current shell's
1914# arguments. Must try -L first in case configure is actually a
1915# symlink; some systems play weird games with the mod time of symlinks
1916# (eg FreeBSD returns the mod time of the symlink's containing
1917# directory).
1918if (
1919 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1920 if test "$*" = "X"; then
1921 # -L didn't work.
1922 set X `ls -t $srcdir/configure conftest.file`
1923 fi
1924 rm -f conftest.file
1925 if test "$*" != "X $srcdir/configure conftest.file" \
1926 && test "$*" != "X conftest.file $srcdir/configure"; then
1927
1928 # If neither matched, then we have a broken ls. This can happen
1929 # if, for instance, CONFIG_SHELL is bash and it inherits a
1930 # broken ls alias from the environment. This has actually
1931 # happened. Such a system could not be considered "sane".
1932 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1933alias in your environment" >&5
1934echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1935alias in your environment" >&2;}
1936 { (exit 1); exit 1; }; }
1937 fi
1938
1939 test "$2" = conftest.file
1940 )
1941then
1942 # Ok.
1943 :
1944else
1945 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1946Check your system clock" >&5
1947echo "$as_me: error: newly created file is older than distributed files!
1948Check your system clock" >&2;}
1949 { (exit 1); exit 1; }; }
1950fi
1951{ echo "$as_me:$LINENO: result: yes" >&5
1952echo "${ECHO_T}yes" >&6; }
1953test "$program_prefix" != NONE &&
1954 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1955# Use a double $ so make ignores it.
1956test "$program_suffix" != NONE &&
1957 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1958# Double any \ or $. echo might interpret backslashes.
1959# By default was `s,x,x', remove it if useless.
1960cat <<\_ACEOF >conftest.sed
1961s/[\\$]/&&/g;s/;s,x,x,$//
1962_ACEOF
1963program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1964rm -f conftest.sed
1965
1966# expand $ac_aux_dir to an absolute path
1967am_aux_dir=`cd $ac_aux_dir && pwd`
1968
1969test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1970# Use eval to expand $SHELL
1971if eval "$MISSING --run true"; then
1972 am_missing_run="$MISSING --run "
1973else
1974 am_missing_run=
1975 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1976echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1977fi
1978
1979if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1980 # We used to keeping the `.' as first argument, in order to
1981 # allow $(mkdir_p) to be used without argument. As in
1982 # $(mkdir_p) $(somedir)
1983 # where $(somedir) is conditionally defined. However this is wrong
1984 # for two reasons:
1985 # 1. if the package is installed by a user who cannot write `.'
1986 # make install will fail,
1987 # 2. the above comment should most certainly read
1988 # $(mkdir_p) $(DESTDIR)$(somedir)
1989 # so it does not work when $(somedir) is undefined and
1990 # $(DESTDIR) is not.
1991 # To support the latter case, we have to write
1992 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1993 # so the `.' trick is pointless.
1994 mkdir_p='mkdir -p --'
1995else
1996 # On NextStep and OpenStep, the `mkdir' command does not
1997 # recognize any option. It will interpret all options as
1998 # directories to create, and then abort because `.' already
1999 # exists.
2000 for d in ./-p ./--version;
2001 do
2002 test -d $d && rmdir $d
2003 done
2004 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2005 if test -f "$ac_aux_dir/mkinstalldirs"; then
2006 mkdir_p='$(mkinstalldirs)'
2007 else
2008 mkdir_p='$(install_sh) -d'
2009 fi
2010fi
2011
2012for ac_prog in gawk mawk nawk awk
2013do
2014 # Extract the first word of "$ac_prog", so it can be a program name with args.
2015set dummy $ac_prog; ac_word=$2
2016{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018if test "${ac_cv_prog_AWK+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020else
2021 if test -n "$AWK"; then
2022 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2023else
2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2031 ac_cv_prog_AWK="$ac_prog"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 break 2
2034 fi
2035done
2036done
2037IFS=$as_save_IFS
2038
2039fi
2040fi
2041AWK=$ac_cv_prog_AWK
2042if test -n "$AWK"; then
2043 { echo "$as_me:$LINENO: result: $AWK" >&5
2044echo "${ECHO_T}$AWK" >&6; }
2045else
2046 { echo "$as_me:$LINENO: result: no" >&5
2047echo "${ECHO_T}no" >&6; }
2048fi
2049
2050
2051 test -n "$AWK" && break
2052done
2053
2054{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2055echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2056set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2057if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
2060 cat >conftest.make <<\_ACEOF
2061SHELL = /bin/sh
2062all:
2063 @echo '@@@%%%=$(MAKE)=@@@%%%'
2064_ACEOF
2065# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2066case `${MAKE-make} -f conftest.make 2>/dev/null` in
2067 *@@@%%%=?*=@@@%%%*)
2068 eval ac_cv_prog_make_${ac_make}_set=yes;;
2069 *)
2070 eval ac_cv_prog_make_${ac_make}_set=no;;
2071esac
2072rm -f conftest.make
2073fi
2074if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2075 { echo "$as_me:$LINENO: result: yes" >&5
2076echo "${ECHO_T}yes" >&6; }
2077 SET_MAKE=
2078else
2079 { echo "$as_me:$LINENO: result: no" >&5
2080echo "${ECHO_T}no" >&6; }
2081 SET_MAKE="MAKE=${MAKE-make}"
2082fi
2083
2084rm -rf .tst 2>/dev/null
2085mkdir .tst 2>/dev/null
2086if test -d .tst; then
2087 am__leading_dot=.
2088else
2089 am__leading_dot=_
2090fi
2091rmdir .tst 2>/dev/null
2092
2093# test to see if srcdir already configured
2094if test "`cd $srcdir && pwd`" != "`pwd`" &&
2095 test -f $srcdir/config.status; then
2096 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2097echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2098 { (exit 1); exit 1; }; }
2099fi
2100
2101# test whether we have cygpath
2102if test -z "$CYGPATH_W"; then
2103 if (cygpath --version) >/dev/null 2>/dev/null; then
2104 CYGPATH_W='cygpath -w'
2105 else
2106 CYGPATH_W=echo
2107 fi
2108fi
2109
2110
2111# Define the identity of the package.
2112 PACKAGE='gnugo'
2113 VERSION='3.8'
2114
2115
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE "$PACKAGE"
2118_ACEOF
2119
2120
2121cat >>confdefs.h <<_ACEOF
2122#define VERSION "$VERSION"
2123_ACEOF
2124
2125# Some tools Automake needs.
2126
2127ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2128
2129
2130AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2131
2132
2133AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2134
2135
2136AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2137
2138
2139MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2140
2141install_sh=${install_sh-"$am_aux_dir/install-sh"}
2142
2143# Installed binaries are usually stripped using `strip' when the user
2144# run `make install-strip'. However `strip' might not be the right
2145# tool to use in cross-compilation environments, therefore Automake
2146# will honor the `STRIP' environment variable to overrule this program.
2147if test "$cross_compiling" != no; then
2148 if test -n "$ac_tool_prefix"; then
2149 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2150set dummy ${ac_tool_prefix}strip; ac_word=$2
2151{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2153if test "${ac_cv_prog_STRIP+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2155else
2156 if test -n "$STRIP"; then
2157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2158else
2159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160for as_dir in $PATH
2161do
2162 IFS=$as_save_IFS
2163 test -z "$as_dir" && as_dir=.
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2166 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 break 2
2169 fi
2170done
2171done
2172IFS=$as_save_IFS
2173
2174fi
2175fi
2176STRIP=$ac_cv_prog_STRIP
2177if test -n "$STRIP"; then
2178 { echo "$as_me:$LINENO: result: $STRIP" >&5
2179echo "${ECHO_T}$STRIP" >&6; }
2180else
2181 { echo "$as_me:$LINENO: result: no" >&5
2182echo "${ECHO_T}no" >&6; }
2183fi
2184
2185
2186fi
2187if test -z "$ac_cv_prog_STRIP"; then
2188 ac_ct_STRIP=$STRIP
2189 # Extract the first word of "strip", so it can be a program name with args.
2190set dummy strip; ac_word=$2
2191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2193if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196 if test -n "$ac_ct_STRIP"; then
2197 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2198else
2199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200for as_dir in $PATH
2201do
2202 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206 ac_cv_prog_ac_ct_STRIP="strip"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 break 2
2209 fi
2210done
2211done
2212IFS=$as_save_IFS
2213
2214fi
2215fi
2216ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2217if test -n "$ac_ct_STRIP"; then
2218 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2219echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2220else
2221 { echo "$as_me:$LINENO: result: no" >&5
2222echo "${ECHO_T}no" >&6; }
2223fi
2224
2225 if test "x$ac_ct_STRIP" = x; then
2226 STRIP=":"
2227 else
2228 case $cross_compiling:$ac_tool_warned in
2229yes:)
2230{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2231whose name does not start with the host triplet. If you think this
2232configuration is useful to you, please write to autoconf@gnu.org." >&5
2233echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2234whose name does not start with the host triplet. If you think this
2235configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2236ac_tool_warned=yes ;;
2237esac
2238 STRIP=$ac_ct_STRIP
2239 fi
2240else
2241 STRIP="$ac_cv_prog_STRIP"
2242fi
2243
2244fi
2245INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2246
2247# We need awk for the "check" target. The system "awk" is bad on
2248# some platforms.
2249# Always define AMTAR for backward compatibility.
2250
2251AMTAR=${AMTAR-"${am_missing_run}tar"}
2252
2253am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2254
2255
2256
2257
2258
2259GNU_PACKAGE="GNU $PACKAGE"
2260cat >>confdefs.h <<_ACEOF
2261#define GNU_PACKAGE "$GNU_PACKAGE"
2262_ACEOF
2263
2264
2265{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2266echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2267 # Check whether --enable-maintainer-mode was given.
2268if test "${enable_maintainer_mode+set}" = set; then
2269 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2270else
2271 USE_MAINTAINER_MODE=no
2272fi
2273
2274 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2275echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2276
2277
2278if test $USE_MAINTAINER_MODE = yes; then
2279 MAINTAINER_MODE_TRUE=
2280 MAINTAINER_MODE_FALSE='#'
2281else
2282 MAINTAINER_MODE_TRUE='#'
2283 MAINTAINER_MODE_FALSE=
2284fi
2285
2286 MAINT=$MAINTAINER_MODE_TRUE
2287
2288
2289
2290
2291
2292# Check whether --with-readline was given.
2293if test "${with_readline+set}" = set; then
2294 withval=$with_readline;
2295fi
2296
2297
2298
2299# Check whether --with-curses was given.
2300if test "${with_curses+set}" = set; then
2301 withval=$with_curses;
2302fi
2303
2304
2305# Check whether --enable-color was given.
2306if test "${enable_color+set}" = set; then
2307 enableval=$enable_color;
2308fi
2309
2310
2311
2312# Check whether --enable-grid-opt was given.
2313if test "${enable_grid_opt+set}" = set; then
2314 enableval=$enable_grid_opt;
2315fi
2316
2317
2318default_cache_size=-1
2319default_level=10
2320default_semeai_node_limit=500
2321default_owl_node_limit=1000
2322
2323# Check whether --enable-cache-size was given.
2324if test "${enable_cache_size+set}" = set; then
2325 enableval=$enable_cache_size;
2326fi
2327
2328
2329# Check whether --enable-level was given.
2330if test "${enable_level+set}" = set; then
2331 enableval=$enable_level;
2332fi
2333
2334
2335# Check whether --enable-semeai-node-limit was given.
2336if test "${enable_semeai_node_limit+set}" = set; then
2337 enableval=$enable_semeai_node_limit;
2338fi
2339
2340
2341# Check whether --enable-level was given.
2342if test "${enable_level+set}" = set; then
2343 enableval=$enable_level;
2344fi
2345
2346
2347# Check whether --enable-dfa was given.
2348if test "${enable_dfa+set}" = set; then
2349 enableval=$enable_dfa; if test ${enableval} = no; then
2350 dfa_c=
2351 else
2352 dfa_c=dfa
2353 fi
2354else
2355 dfa_c=dfa
2356fi
2357
2358
2359# Check whether --enable-chinese-rules was given.
2360if test "${enable_chinese_rules+set}" = set; then
2361 enableval=$enable_chinese_rules;
2362fi
2363
2364
2365# Check whether --enable-resignation-allowed was given.
2366if test "${enable_resignation_allowed+set}" = set; then
2367 enableval=$enable_resignation_allowed;
2368fi
2369
2370
2371# Check whether --enable-metamachine was given.
2372if test "${enable_metamachine+set}" = set; then
2373 enableval=$enable_metamachine;
2374fi
2375
2376
2377# Check whether --enable-experimental-break-in was given.
2378if test "${enable_experimental_break_in+set}" = set; then
2379 enableval=$enable_experimental_break_in;
2380fi
2381
2382
2383# Check whether --enable-experimental-owl-ext was given.
2384if test "${enable_experimental_owl_ext+set}" = set; then
2385 enableval=$enable_experimental_owl_ext;
2386fi
2387
2388
2389# Check whether --enable-cosmic-gnugo was given.
2390if test "${enable_cosmic_gnugo+set}" = set; then
2391 enableval=$enable_cosmic_gnugo;
2392fi
2393
2394
2395# Check whether --enable-large-scale was given.
2396if test "${enable_large_scale+set}" = set; then
2397 enableval=$enable_large_scale;
2398fi
2399
2400
2401# Check whether --enable-experimental-connections was given.
2402if test "${enable_experimental_connections+set}" = set; then
2403 enableval=$enable_experimental_connections;
2404fi
2405
2406
2407# Check whether --enable-alternate-connections was given.
2408if test "${enable_alternate_connections+set}" = set; then
2409 enableval=$enable_alternate_connections;
2410fi
2411
2412
2413# Check whether --enable-socket-support was given.
2414if test "${enable_socket_support+set}" = set; then
2415 enableval=$enable_socket_support;
2416fi
2417
2418
2419ac_ext=c
2420ac_cpp='$CPP $CPPFLAGS'
2421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424if test -n "$ac_tool_prefix"; then
2425 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2426set dummy ${ac_tool_prefix}gcc; ac_word=$2
2427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429if test "${ac_cv_prog_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432 if test -n "$CC"; then
2433 ac_cv_prog_CC="$CC" # Let the user override the test.
2434else
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2445 fi
2446done
2447done
2448IFS=$as_save_IFS
2449
2450fi
2451fi
2452CC=$ac_cv_prog_CC
2453if test -n "$CC"; then
2454 { echo "$as_me:$LINENO: result: $CC" >&5
2455echo "${ECHO_T}$CC" >&6; }
2456else
2457 { echo "$as_me:$LINENO: result: no" >&5
2458echo "${ECHO_T}no" >&6; }
2459fi
2460
2461
2462fi
2463if test -z "$ac_cv_prog_CC"; then
2464 ac_ct_CC=$CC
2465 # Extract the first word of "gcc", so it can be a program name with args.
2466set dummy gcc; ac_word=$2
2467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2469if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471else
2472 if test -n "$ac_ct_CC"; then
2473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2474else
2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476for as_dir in $PATH
2477do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_ac_ct_CC="gcc"
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2485 fi
2486done
2487done
2488IFS=$as_save_IFS
2489
2490fi
2491fi
2492ac_ct_CC=$ac_cv_prog_ac_ct_CC
2493if test -n "$ac_ct_CC"; then
2494 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2495echo "${ECHO_T}$ac_ct_CC" >&6; }
2496else
2497 { echo "$as_me:$LINENO: result: no" >&5
2498echo "${ECHO_T}no" >&6; }
2499fi
2500
2501 if test "x$ac_ct_CC" = x; then
2502 CC=""
2503 else
2504 case $cross_compiling:$ac_tool_warned in
2505yes:)
2506{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2507whose name does not start with the host triplet. If you think this
2508configuration is useful to you, please write to autoconf@gnu.org." >&5
2509echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2510whose name does not start with the host triplet. If you think this
2511configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2512ac_tool_warned=yes ;;
2513esac
2514 CC=$ac_ct_CC
2515 fi
2516else
2517 CC="$ac_cv_prog_CC"
2518fi
2519
2520if test -z "$CC"; then
2521 if test -n "$ac_tool_prefix"; then
2522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2523set dummy ${ac_tool_prefix}cc; ac_word=$2
2524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526if test "${ac_cv_prog_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528else
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2531else
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_CC="${ac_tool_prefix}cc"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543done
2544done
2545IFS=$as_save_IFS
2546
2547fi
2548fi
2549CC=$ac_cv_prog_CC
2550if test -n "$CC"; then
2551 { echo "$as_me:$LINENO: result: $CC" >&5
2552echo "${ECHO_T}$CC" >&6; }
2553else
2554 { echo "$as_me:$LINENO: result: no" >&5
2555echo "${ECHO_T}no" >&6; }
2556fi
2557
2558
2559 fi
2560fi
2561if test -z "$CC"; then
2562 # Extract the first word of "cc", so it can be a program name with args.
2563set dummy cc; ac_word=$2
2564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566if test "${ac_cv_prog_CC+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2568else
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
2571else
2572 ac_prog_rejected=no
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2581 ac_prog_rejected=yes
2582 continue
2583 fi
2584 ac_cv_prog_CC="cc"
2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588done
2589done
2590IFS=$as_save_IFS
2591
2592if test $ac_prog_rejected = yes; then
2593 # We found a bogon in the path, so make sure we never use it.
2594 set dummy $ac_cv_prog_CC
2595 shift
2596 if test $# != 0; then
2597 # We chose a different compiler from the bogus one.
2598 # However, it has the same basename, so the bogon will be chosen
2599 # first if we set CC to just the basename; use the full file name.
2600 shift
2601 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2602 fi
2603fi
2604fi
2605fi
2606CC=$ac_cv_prog_CC
2607if test -n "$CC"; then
2608 { echo "$as_me:$LINENO: result: $CC" >&5
2609echo "${ECHO_T}$CC" >&6; }
2610else
2611 { echo "$as_me:$LINENO: result: no" >&5
2612echo "${ECHO_T}no" >&6; }
2613fi
2614
2615
2616fi
2617if test -z "$CC"; then
2618 if test -n "$ac_tool_prefix"; then
2619 for ac_prog in cl.exe
2620 do
2621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2622set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2625if test "${ac_cv_prog_CC+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627else
2628 if test -n "$CC"; then
2629 ac_cv_prog_CC="$CC" # Let the user override the test.
2630else
2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2641 fi
2642done
2643done
2644IFS=$as_save_IFS
2645
2646fi
2647fi
2648CC=$ac_cv_prog_CC
2649if test -n "$CC"; then
2650 { echo "$as_me:$LINENO: result: $CC" >&5
2651echo "${ECHO_T}$CC" >&6; }
2652else
2653 { echo "$as_me:$LINENO: result: no" >&5
2654echo "${ECHO_T}no" >&6; }
2655fi
2656
2657
2658 test -n "$CC" && break
2659 done
2660fi
2661if test -z "$CC"; then
2662 ac_ct_CC=$CC
2663 for ac_prog in cl.exe
2664do
2665 # Extract the first word of "$ac_prog", so it can be a program name with args.
2666set dummy $ac_prog; ac_word=$2
2667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2669if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671else
2672 if test -n "$ac_ct_CC"; then
2673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2674else
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 ac_cv_prog_ac_ct_CC="$ac_prog"
2683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686done
2687done
2688IFS=$as_save_IFS
2689
2690fi
2691fi
2692ac_ct_CC=$ac_cv_prog_ac_ct_CC
2693if test -n "$ac_ct_CC"; then
2694 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2695echo "${ECHO_T}$ac_ct_CC" >&6; }
2696else
2697 { echo "$as_me:$LINENO: result: no" >&5
2698echo "${ECHO_T}no" >&6; }
2699fi
2700
2701
2702 test -n "$ac_ct_CC" && break
2703done
2704
2705 if test "x$ac_ct_CC" = x; then
2706 CC=""
2707 else
2708 case $cross_compiling:$ac_tool_warned in
2709yes:)
2710{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2711whose name does not start with the host triplet. If you think this
2712configuration is useful to you, please write to autoconf@gnu.org." >&5
2713echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2714whose name does not start with the host triplet. If you think this
2715configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2716ac_tool_warned=yes ;;
2717esac
2718 CC=$ac_ct_CC
2719 fi
2720fi
2721
2722fi
2723
2724
2725test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2726See \`config.log' for more details." >&5
2727echo "$as_me: error: no acceptable C compiler found in \$PATH
2728See \`config.log' for more details." >&2;}
2729 { (exit 1); exit 1; }; }
2730
2731# Provide some information about the compiler.
2732echo "$as_me:$LINENO: checking for C compiler version" >&5
2733ac_compiler=`set X $ac_compile; echo $2`
2734{ (ac_try="$ac_compiler --version >&5"
2735case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738esac
2739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_compiler --version >&5") 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2744{ (ac_try="$ac_compiler -v >&5"
2745case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748esac
2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compiler -v >&5") 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }
2754{ (ac_try="$ac_compiler -V >&5"
2755case "(($ac_try" in
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2758esac
2759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_compiler -V >&5") 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }
2764
2765cat >conftest.$ac_ext <<_ACEOF
2766/* confdefs.h. */
2767_ACEOF
2768cat confdefs.h >>conftest.$ac_ext
2769cat >>conftest.$ac_ext <<_ACEOF
2770/* end confdefs.h. */
2771
2772int
2773main ()
2774{
2775
2776 ;
2777 return 0;
2778}
2779_ACEOF
2780ac_clean_files_save=$ac_clean_files
2781ac_clean_files="$ac_clean_files a.out a.exe b.out"
2782# Try to create an executable without -o first, disregard a.out.
2783# It will help us diagnose broken compilers, and finding out an intuition
2784# of exeext.
2785{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2786echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2787ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2788#
2789# List of possible output files, starting from the most likely.
2790# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2791# only as a last resort. b.out is created by i960 compilers.
2792ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2793#
2794# The IRIX 6 linker writes into existing files which may not be
2795# executable, retaining their permissions. Remove them first so a
2796# subsequent execution test works.
2797ac_rmfiles=
2798for ac_file in $ac_files
2799do
2800 case $ac_file in
2801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2802 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2803 esac
2804done
2805rm -f $ac_rmfiles
2806
2807if { (ac_try="$ac_link_default"
2808case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811esac
2812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_link_default") 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; then
2817 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2818# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2819# in a Makefile. We should not override ac_cv_exeext if it was cached,
2820# so that the user can short-circuit this test for compilers unknown to
2821# Autoconf.
2822for ac_file in $ac_files ''
2823do
2824 test -f "$ac_file" || continue
2825 case $ac_file in
2826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2827 ;;
2828 [ab].out )
2829 # We found the default executable, but exeext='' is most
2830 # certainly right.
2831 break;;
2832 *.* )
2833 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2834 then :; else
2835 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2836 fi
2837 # We set ac_cv_exeext here because the later test for it is not
2838 # safe: cross compilers may not add the suffix if given an `-o'
2839 # argument, so we may need to know it at that point already.
2840 # Even if this section looks crufty: it has the advantage of
2841 # actually working.
2842 break;;
2843 * )
2844 break;;
2845 esac
2846done
2847test "$ac_cv_exeext" = no && ac_cv_exeext=
2848
2849else
2850 ac_file=''
2851fi
2852
2853{ echo "$as_me:$LINENO: result: $ac_file" >&5
2854echo "${ECHO_T}$ac_file" >&6; }
2855if test -z "$ac_file"; then
2856 echo "$as_me: failed program was:" >&5
2857sed 's/^/| /' conftest.$ac_ext >&5
2858
2859{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2860See \`config.log' for more details." >&5
2861echo "$as_me: error: C compiler cannot create executables
2862See \`config.log' for more details." >&2;}
2863 { (exit 77); exit 77; }; }
2864fi
2865
2866ac_exeext=$ac_cv_exeext
2867
2868# Check that the compiler produces executables we can run. If not, either
2869# the compiler is broken, or we cross compile.
2870{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2871echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2872# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2873# If not cross compiling, check that we can run a simple program.
2874if test "$cross_compiling" != yes; then
2875 if { ac_try='./$ac_file'
2876 { (case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879esac
2880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_try") 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; }; then
2885 cross_compiling=no
2886 else
2887 if test "$cross_compiling" = maybe; then
2888 cross_compiling=yes
2889 else
2890 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2891If you meant to cross compile, use \`--host'.
2892See \`config.log' for more details." >&5
2893echo "$as_me: error: cannot run C compiled programs.
2894If you meant to cross compile, use \`--host'.
2895See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2897 fi
2898 fi
2899fi
2900{ echo "$as_me:$LINENO: result: yes" >&5
2901echo "${ECHO_T}yes" >&6; }
2902
2903rm -f a.out a.exe conftest$ac_cv_exeext b.out
2904ac_clean_files=$ac_clean_files_save
2905# Check that the compiler produces executables we can run. If not, either
2906# the compiler is broken, or we cross compile.
2907{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2908echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2909{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2910echo "${ECHO_T}$cross_compiling" >&6; }
2911
2912{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2913echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2914if { (ac_try="$ac_link"
2915case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918esac
2919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920 (eval "$ac_link") 2>&5
2921 ac_status=$?
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; then
2924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2925# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2926# work properly (i.e., refer to `conftest.exe'), while it won't with
2927# `rm'.
2928for ac_file in conftest.exe conftest conftest.*; do
2929 test -f "$ac_file" || continue
2930 case $ac_file in
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2933 break;;
2934 * ) break;;
2935 esac
2936done
2937else
2938 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2939See \`config.log' for more details." >&5
2940echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2941See \`config.log' for more details." >&2;}
2942 { (exit 1); exit 1; }; }
2943fi
2944
2945rm -f conftest$ac_cv_exeext
2946{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2947echo "${ECHO_T}$ac_cv_exeext" >&6; }
2948
2949rm -f conftest.$ac_ext
2950EXEEXT=$ac_cv_exeext
2951ac_exeext=$EXEEXT
2952{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2953echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2954if test "${ac_cv_objext+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956else
2957 cat >conftest.$ac_ext <<_ACEOF
2958/* confdefs.h. */
2959_ACEOF
2960cat confdefs.h >>conftest.$ac_ext
2961cat >>conftest.$ac_ext <<_ACEOF
2962/* end confdefs.h. */
2963
2964int
2965main ()
2966{
2967
2968 ;
2969 return 0;
2970}
2971_ACEOF
2972rm -f conftest.o conftest.obj
2973if { (ac_try="$ac_compile"
2974case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977esac
2978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_compile") 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; then
2983 for ac_file in conftest.o conftest.obj conftest.*; do
2984 test -f "$ac_file" || continue;
2985 case $ac_file in
2986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2988 break;;
2989 esac
2990done
2991else
2992 echo "$as_me: failed program was:" >&5
2993sed 's/^/| /' conftest.$ac_ext >&5
2994
2995{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2996See \`config.log' for more details." >&5
2997echo "$as_me: error: cannot compute suffix of object files: cannot compile
2998See \`config.log' for more details." >&2;}
2999 { (exit 1); exit 1; }; }
3000fi
3001
3002rm -f conftest.$ac_cv_objext conftest.$ac_ext
3003fi
3004{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3005echo "${ECHO_T}$ac_cv_objext" >&6; }
3006OBJEXT=$ac_cv_objext
3007ac_objext=$OBJEXT
3008{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3010if test "${ac_cv_c_compiler_gnu+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013 cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h. */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h. */
3019
3020int
3021main ()
3022{
3023#ifndef __GNUC__
3024 choke me
3025#endif
3026
3027 ;
3028 return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext
3032if { (ac_try="$ac_compile"
3033case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036esac
3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compile") 2>conftest.er1
3039 ac_status=$?
3040 grep -v '^ *+' conftest.er1 >conftest.err
3041 rm -f conftest.er1
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } && {
3045 test -z "$ac_c_werror_flag" ||
3046 test ! -s conftest.err
3047 } && test -s conftest.$ac_objext; then
3048 ac_compiler_gnu=yes
3049else
3050 echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 ac_compiler_gnu=no
3054fi
3055
3056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3057ac_cv_c_compiler_gnu=$ac_compiler_gnu
3058
3059fi
3060{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3061echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3062GCC=`test $ac_compiler_gnu = yes && echo yes`
3063ac_test_CFLAGS=${CFLAGS+set}
3064ac_save_CFLAGS=$CFLAGS
3065{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3066echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3067if test "${ac_cv_prog_cc_g+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069else
3070 ac_save_c_werror_flag=$ac_c_werror_flag
3071 ac_c_werror_flag=yes
3072 ac_cv_prog_cc_g=no
3073 CFLAGS="-g"
3074 cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
3080
3081int
3082main ()
3083{
3084
3085 ;
3086 return 0;
3087}
3088_ACEOF
3089rm -f conftest.$ac_objext
3090if { (ac_try="$ac_compile"
3091case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>conftest.er1
3097 ac_status=$?
3098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } && {
3103 test -z "$ac_c_werror_flag" ||
3104 test ! -s conftest.err
3105 } && test -s conftest.$ac_objext; then
3106 ac_cv_prog_cc_g=yes
3107else
3108 echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 CFLAGS=""
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127rm -f conftest.$ac_objext
3128if { (ac_try="$ac_compile"
3129case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } && {
3141 test -z "$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 } && test -s conftest.$ac_objext; then
3144 :
3145else
3146 echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 ac_c_werror_flag=$ac_save_c_werror_flag
3150 CFLAGS="-g"
3151 cat >conftest.$ac_ext <<_ACEOF
3152/* confdefs.h. */
3153_ACEOF
3154cat confdefs.h >>conftest.$ac_ext
3155cat >>conftest.$ac_ext <<_ACEOF
3156/* end confdefs.h. */
3157
3158int
3159main ()
3160{
3161
3162 ;
3163 return 0;
3164}
3165_ACEOF
3166rm -f conftest.$ac_objext
3167if { (ac_try="$ac_compile"
3168case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171esac
3172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_compile") 2>conftest.er1
3174 ac_status=$?
3175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } && {
3180 test -z "$ac_c_werror_flag" ||
3181 test ! -s conftest.err
3182 } && test -s conftest.$ac_objext; then
3183 ac_cv_prog_cc_g=yes
3184else
3185 echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
3187
3188
3189fi
3190
3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192fi
3193
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi
3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_c_werror_flag=$ac_save_c_werror_flag
3199fi
3200{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3201echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3202if test "$ac_test_CFLAGS" = set; then
3203 CFLAGS=$ac_save_CFLAGS
3204elif test $ac_cv_prog_cc_g = yes; then
3205 if test "$GCC" = yes; then
3206 CFLAGS="-g -O2"
3207 else
3208 CFLAGS="-g"
3209 fi
3210else
3211 if test "$GCC" = yes; then
3212 CFLAGS="-O2"
3213 else
3214 CFLAGS=
3215 fi
3216fi
3217{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3218echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3219if test "${ac_cv_prog_cc_c89+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221else
3222 ac_cv_prog_cc_c89=no
3223ac_save_CC=$CC
3224cat >conftest.$ac_ext <<_ACEOF
3225/* confdefs.h. */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
3229/* end confdefs.h. */
3230#include <stdarg.h>
3231#include <stdio.h>
3232#include <sys/types.h>
3233#include <sys/stat.h>
3234/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3235struct buf { int x; };
3236FILE * (*rcsopen) (struct buf *, struct stat *, int);
3237static char *e (p, i)
3238 char **p;
3239 int i;
3240{
3241 return p[i];
3242}
3243static char *f (char * (*g) (char **, int), char **p, ...)
3244{
3245 char *s;
3246 va_list v;
3247 va_start (v,p);
3248 s = g (p, va_arg (v,int));
3249 va_end (v);
3250 return s;
3251}
3252
3253/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3254 function prototypes and stuff, but not '\xHH' hex character constants.
3255 These don't provoke an error unfortunately, instead are silently treated
3256 as 'x'. The following induces an error, until -std is added to get
3257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3258 array size at least. It's necessary to write '\x00'==0 to get something
3259 that's true only with -std. */
3260int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3261
3262/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3263 inside strings and character constants. */
3264#define FOO(x) 'x'
3265int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3266
3267int test (int i, double x);
3268struct s1 {int (*f) (int a);};
3269struct s2 {int (*f) (double a);};
3270int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3271int argc;
3272char **argv;
3273int
3274main ()
3275{
3276return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3277 ;
3278 return 0;
3279}
3280_ACEOF
3281for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3283do
3284 CC="$ac_save_CC $ac_arg"
3285 rm -f conftest.$ac_objext
3286if { (ac_try="$ac_compile"
3287case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } && {
3299 test -z "$ac_c_werror_flag" ||
3300 test ! -s conftest.err
3301 } && test -s conftest.$ac_objext; then
3302 ac_cv_prog_cc_c89=$ac_arg
3303else
3304 echo "$as_me: failed program was:" >&5
3305sed 's/^/| /' conftest.$ac_ext >&5
3306
3307
3308fi
3309
3310rm -f core conftest.err conftest.$ac_objext
3311 test "x$ac_cv_prog_cc_c89" != "xno" && break
3312done
3313rm -f conftest.$ac_ext
3314CC=$ac_save_CC
3315
3316fi
3317# AC_CACHE_VAL
3318case "x$ac_cv_prog_cc_c89" in
3319 x)
3320 { echo "$as_me:$LINENO: result: none needed" >&5
3321echo "${ECHO_T}none needed" >&6; } ;;
3322 xno)
3323 { echo "$as_me:$LINENO: result: unsupported" >&5
3324echo "${ECHO_T}unsupported" >&6; } ;;
3325 *)
3326 CC="$CC $ac_cv_prog_cc_c89"
3327 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3328echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3329esac
3330
3331
3332ac_ext=c
3333ac_cpp='$CPP $CPPFLAGS'
3334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337DEPDIR="${am__leading_dot}deps"
3338
3339ac_config_commands="$ac_config_commands depfiles"
3340
3341
3342am_make=${MAKE-make}
3343cat > confinc << 'END'
3344am__doit:
3345 @echo done
3346.PHONY: am__doit
3347END
3348# If we don't find an include directive, just comment out the code.
3349{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3350echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3351am__include="#"
3352am__quote=
3353_am_result=none
3354# First try GNU make style include.
3355echo "include confinc" > confmf
3356# We grep out `Entering directory' and `Leaving directory'
3357# messages which can occur if `w' ends up in MAKEFLAGS.
3358# In particular we don't look at `^make:' because GNU make might
3359# be invoked under some other name (usually "gmake"), in which
3360# case it prints its new name instead of `make'.
3361if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3362 am__include=include
3363 am__quote=
3364 _am_result=GNU
3365fi
3366# Now try BSD make style include.
3367if test "$am__include" = "#"; then
3368 echo '.include "confinc"' > confmf
3369 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3370 am__include=.include
3371 am__quote="\""
3372 _am_result=BSD
3373 fi
3374fi
3375
3376
3377{ echo "$as_me:$LINENO: result: $_am_result" >&5
3378echo "${ECHO_T}$_am_result" >&6; }
3379rm -f confinc confmf
3380
3381# Check whether --enable-dependency-tracking was given.
3382if test "${enable_dependency_tracking+set}" = set; then
3383 enableval=$enable_dependency_tracking;
3384fi
3385
3386if test "x$enable_dependency_tracking" != xno; then
3387 am_depcomp="$ac_aux_dir/depcomp"
3388 AMDEPBACKSLASH='\'
3389fi
3390
3391
3392if test "x$enable_dependency_tracking" != xno; then
3393 AMDEP_TRUE=
3394 AMDEP_FALSE='#'
3395else
3396 AMDEP_TRUE='#'
3397 AMDEP_FALSE=
3398fi
3399
3400
3401
3402
3403depcc="$CC" am_compiler_list=
3404
3405{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3406echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3407if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3411 # We make a subdir and do the tests there. Otherwise we can end up
3412 # making bogus files that we don't know about and never remove. For
3413 # instance it was reported that on HP-UX the gcc test will end up
3414 # making a dummy file named `D' -- because `-MD' means `put the output
3415 # in D'.
3416 mkdir conftest.dir
3417 # Copy depcomp to subdir because otherwise we won't find it if we're
3418 # using a relative directory.
3419 cp "$am_depcomp" conftest.dir
3420 cd conftest.dir
3421 # We will build objects and dependencies in a subdirectory because
3422 # it helps to detect inapplicable dependency modes. For instance
3423 # both Tru64's cc and ICC support -MD to output dependencies as a
3424 # side effect of compilation, but ICC will put the dependencies in
3425 # the current directory while Tru64 will put them in the object
3426 # directory.
3427 mkdir sub
3428
3429 am_cv_CC_dependencies_compiler_type=none
3430 if test "$am_compiler_list" = ""; then
3431 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3432 fi
3433 for depmode in $am_compiler_list; do
3434 # Setup a source with many dependencies, because some compilers
3435 # like to wrap large dependency lists on column 80 (with \), and
3436 # we should not choose a depcomp mode which is confused by this.
3437 #
3438 # We need to recreate these files for each test, as the compiler may
3439 # overwrite some of them when testing with obscure command lines.
3440 # This happens at least with the AIX C compiler.
3441 : > sub/conftest.c
3442 for i in 1 2 3 4 5 6; do
3443 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3444 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3445 # Solaris 8's {/usr,}/bin/sh.
3446 touch sub/conftst$i.h
3447 done
3448 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3449
3450 case $depmode in
3451 nosideeffect)
3452 # after this tag, mechanisms are not by side-effect, so they'll
3453 # only be used when explicitly requested
3454 if test "x$enable_dependency_tracking" = xyes; then
3455 continue
3456 else
3457 break
3458 fi
3459 ;;
3460 none) break ;;
3461 esac
3462 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3463 # mode. It turns out that the SunPro C++ compiler does not properly
3464 # handle `-M -o', and we need to detect this.
3465 if depmode=$depmode \
3466 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3467 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3468 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3469 >/dev/null 2>conftest.err &&
3470 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3471 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3472 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3473 # icc doesn't choke on unknown options, it will just issue warnings
3474 # or remarks (even with -Werror). So we grep stderr for any message
3475 # that says an option was ignored or not supported.
3476 # When given -MP, icc 7.0 and 7.1 complain thusly:
3477 # icc: Command line warning: ignoring option '-M'; no argument required
3478 # The diagnosis changed in icc 8.0:
3479 # icc: Command line remark: option '-MP' not supported
3480 if (grep 'ignoring option' conftest.err ||
3481 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3482 am_cv_CC_dependencies_compiler_type=$depmode
3483 break
3484 fi
3485 fi
3486 done
3487
3488 cd ..
3489 rm -rf conftest.dir
3490else
3491 am_cv_CC_dependencies_compiler_type=none
3492fi
3493
3494fi
3495{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3496echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3497CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3498
3499
3500
3501if
3502 test "x$enable_dependency_tracking" != xno \
3503 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3504 am__fastdepCC_TRUE=
3505 am__fastdepCC_FALSE='#'
3506else
3507 am__fastdepCC_TRUE='#'
3508 am__fastdepCC_FALSE=
3509fi
3510
3511
3512
3513
3514
3515
3516
3517{ echo "$as_me:$LINENO: checking for library containing pow" >&5
3518echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6; }
3519if test "${ac_cv_search_pow+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522 ac_func_search_save_LIBS=$LIBS
3523cat >conftest.$ac_ext <<_ACEOF
3524/* confdefs.h. */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h. */
3529
3530/* Override any GCC internal prototype to avoid an error.
3531 Use char because int might match the return type of a GCC
3532 builtin and then its argument prototype would still apply. */
3533#ifdef __cplusplus
3534extern "C"
3535#endif
3536char pow ();
3537int
3538main ()
3539{
3540return pow ();
3541 ;
3542 return 0;
3543}
3544_ACEOF
3545for ac_lib in '' m; do
3546 if test -z "$ac_lib"; then
3547 ac_res="none required"
3548 else
3549 ac_res=-l$ac_lib
3550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3551 fi
3552 rm -f conftest.$ac_objext conftest$ac_exeext
3553if { (ac_try="$ac_link"
3554case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557esac
3558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_link") 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } && {
3566 test -z "$ac_c_werror_flag" ||
3567 test ! -s conftest.err
3568 } && test -s conftest$ac_exeext &&
3569 $as_test_x conftest$ac_exeext; then
3570 ac_cv_search_pow=$ac_res
3571else
3572 echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575
3576fi
3577
3578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3579 conftest$ac_exeext
3580 if test "${ac_cv_search_pow+set}" = set; then
3581 break
3582fi
3583done
3584if test "${ac_cv_search_pow+set}" = set; then
3585 :
3586else
3587 ac_cv_search_pow=no
3588fi
3589rm conftest.$ac_ext
3590LIBS=$ac_func_search_save_LIBS
3591fi
3592{ echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
3593echo "${ECHO_T}$ac_cv_search_pow" >&6; }
3594ac_res=$ac_cv_search_pow
3595if test "$ac_res" != no; then
3596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3597
3598fi
3599
3600
3601{ echo "$as_me:$LINENO: checking for mingw32" >&5
3602echo $ECHO_N "checking for mingw32... $ECHO_C" >&6; }
3603if test "${ac_cv_mingw32+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606 cat >conftest.$ac_ext <<_ACEOF
3607/* confdefs.h. */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h. */
3612
3613int
3614main ()
3615{
3616return __MINGW32__
3617 ;
3618 return 0;
3619}
3620_ACEOF
3621rm -f conftest.$ac_objext
3622if { (ac_try="$ac_compile"
3623case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626esac
3627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compile") 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } && {
3635 test -z "$ac_c_werror_flag" ||
3636 test ! -s conftest.err
3637 } && test -s conftest.$ac_objext; then
3638 ac_cv_mingw32="yes"
3639else
3640 echo "$as_me: failed program was:" >&5
3641sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 ac_cv_mingw32="no"
3644fi
3645
3646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647
3648fi
3649{ echo "$as_me:$LINENO: result: $ac_cv_mingw32" >&5
3650echo "${ECHO_T}$ac_cv_mingw32" >&6; }
3651
3652if test $ac_cv_mingw32 = yes;then
3653 LIBS="$LIBS -lwsock32"
3654 { echo "$as_me:$LINENO: checking for library containing vsnprintf" >&5
3655echo $ECHO_N "checking for library containing vsnprintf... $ECHO_C" >&6; }
3656if test "${ac_cv_search_vsnprintf+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658else
3659 ac_func_search_save_LIBS=$LIBS
3660cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h. */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h. */
3666
3667/* Override any GCC internal prototype to avoid an error.
3668 Use char because int might match the return type of a GCC
3669 builtin and then its argument prototype would still apply. */
3670#ifdef __cplusplus
3671extern "C"
3672#endif
3673char vsnprintf ();
3674int
3675main ()
3676{
3677return vsnprintf ();
3678 ;
3679 return 0;
3680}
3681_ACEOF
3682for ac_lib in '' mingwex; do
3683 if test -z "$ac_lib"; then
3684 ac_res="none required"
3685 else
3686 ac_res=-l$ac_lib
3687 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3688 fi
3689 rm -f conftest.$ac_objext conftest$ac_exeext
3690if { (ac_try="$ac_link"
3691case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694esac
3695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_link") 2>conftest.er1
3697 ac_status=$?
3698 grep -v '^ *+' conftest.er1 >conftest.err
3699 rm -f conftest.er1
3700 cat conftest.err >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } && {
3703 test -z "$ac_c_werror_flag" ||
3704 test ! -s conftest.err
3705 } && test -s conftest$ac_exeext &&
3706 $as_test_x conftest$ac_exeext; then
3707 ac_cv_search_vsnprintf=$ac_res
3708else
3709 echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
3711
3712
3713fi
3714
3715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3716 conftest$ac_exeext
3717 if test "${ac_cv_search_vsnprintf+set}" = set; then
3718 break
3719fi
3720done
3721if test "${ac_cv_search_vsnprintf+set}" = set; then
3722 :
3723else
3724 ac_cv_search_vsnprintf=no
3725fi
3726rm conftest.$ac_ext
3727LIBS=$ac_func_search_save_LIBS
3728fi
3729{ echo "$as_me:$LINENO: result: $ac_cv_search_vsnprintf" >&5
3730echo "${ECHO_T}$ac_cv_search_vsnprintf" >&6; }
3731ac_res=$ac_cv_search_vsnprintf
3732if test "$ac_res" != no; then
3733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3734
3735fi
3736
3737fi
3738
3739ac_ext=c
3740ac_cpp='$CPP $CPPFLAGS'
3741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3745echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3746# On Suns, sometimes $CPP names a directory.
3747if test -n "$CPP" && test -d "$CPP"; then
3748 CPP=
3749fi
3750if test -z "$CPP"; then
3751 if test "${ac_cv_prog_CPP+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754 # Double quotes because CPP needs to be expanded
3755 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3756 do
3757 ac_preproc_ok=false
3758for ac_c_preproc_warn_flag in '' yes
3759do
3760 # Use a header file that comes with gcc, so configuring glibc
3761 # with a fresh cross-compiler works.
3762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3763 # <limits.h> exists even on freestanding compilers.
3764 # On the NeXT, cc -E runs the code through the compiler's parser,
3765 # not just through cpp. "Syntax error" is here to catch this case.
3766 cat >conftest.$ac_ext <<_ACEOF
3767/* confdefs.h. */
3768_ACEOF
3769cat confdefs.h >>conftest.$ac_ext
3770cat >>conftest.$ac_ext <<_ACEOF
3771/* end confdefs.h. */
3772#ifdef __STDC__
3773# include <limits.h>
3774#else
3775# include <assert.h>
3776#endif
3777 Syntax error
3778_ACEOF
3779if { (ac_try="$ac_cpp conftest.$ac_ext"
3780case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783esac
3784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } >/dev/null && {
3792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3793 test ! -s conftest.err
3794 }; then
3795 :
3796else
3797 echo "$as_me: failed program was:" >&5
3798sed 's/^/| /' conftest.$ac_ext >&5
3799
3800 # Broken: fails on valid input.
3801continue
3802fi
3803
3804rm -f conftest.err conftest.$ac_ext
3805
3806 # OK, works on sane cases. Now check whether nonexistent headers
3807 # can be detected and how.
3808 cat >conftest.$ac_ext <<_ACEOF
3809/* confdefs.h. */
3810_ACEOF
3811cat confdefs.h >>conftest.$ac_ext
3812cat >>conftest.$ac_ext <<_ACEOF
3813/* end confdefs.h. */
3814#include <ac_nonexistent.h>
3815_ACEOF
3816if { (ac_try="$ac_cpp conftest.$ac_ext"
3817case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820esac
3821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3823 ac_status=$?
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } >/dev/null && {
3829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3830 test ! -s conftest.err
3831 }; then
3832 # Broken: success on invalid input.
3833continue
3834else
3835 echo "$as_me: failed program was:" >&5
3836sed 's/^/| /' conftest.$ac_ext >&5
3837
3838 # Passes both tests.
3839ac_preproc_ok=:
3840break
3841fi
3842
3843rm -f conftest.err conftest.$ac_ext
3844
3845done
3846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3847rm -f conftest.err conftest.$ac_ext
3848if $ac_preproc_ok; then
3849 break
3850fi
3851
3852 done
3853 ac_cv_prog_CPP=$CPP
3854
3855fi
3856 CPP=$ac_cv_prog_CPP
3857else
3858 ac_cv_prog_CPP=$CPP
3859fi
3860{ echo "$as_me:$LINENO: result: $CPP" >&5
3861echo "${ECHO_T}$CPP" >&6; }
3862ac_preproc_ok=false
3863for ac_c_preproc_warn_flag in '' yes
3864do
3865 # Use a header file that comes with gcc, so configuring glibc
3866 # with a fresh cross-compiler works.
3867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3868 # <limits.h> exists even on freestanding compilers.
3869 # On the NeXT, cc -E runs the code through the compiler's parser,
3870 # not just through cpp. "Syntax error" is here to catch this case.
3871 cat >conftest.$ac_ext <<_ACEOF
3872/* confdefs.h. */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h. */
3877#ifdef __STDC__
3878# include <limits.h>
3879#else
3880# include <assert.h>
3881#endif
3882 Syntax error
3883_ACEOF
3884if { (ac_try="$ac_cpp conftest.$ac_ext"
3885case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888esac
3889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } >/dev/null && {
3897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3898 test ! -s conftest.err
3899 }; then
3900 :
3901else
3902 echo "$as_me: failed program was:" >&5
3903sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 # Broken: fails on valid input.
3906continue
3907fi
3908
3909rm -f conftest.err conftest.$ac_ext
3910
3911 # OK, works on sane cases. Now check whether nonexistent headers
3912 # can be detected and how.
3913 cat >conftest.$ac_ext <<_ACEOF
3914/* confdefs.h. */
3915_ACEOF
3916cat confdefs.h >>conftest.$ac_ext
3917cat >>conftest.$ac_ext <<_ACEOF
3918/* end confdefs.h. */
3919#include <ac_nonexistent.h>
3920_ACEOF
3921if { (ac_try="$ac_cpp conftest.$ac_ext"
3922case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925esac
3926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3928 ac_status=$?
3929 grep -v '^ *+' conftest.er1 >conftest.err
3930 rm -f conftest.er1
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } >/dev/null && {
3934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3935 test ! -s conftest.err
3936 }; then
3937 # Broken: success on invalid input.
3938continue
3939else
3940 echo "$as_me: failed program was:" >&5
3941sed 's/^/| /' conftest.$ac_ext >&5
3942
3943 # Passes both tests.
3944ac_preproc_ok=:
3945break
3946fi
3947
3948rm -f conftest.err conftest.$ac_ext
3949
3950done
3951# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3952rm -f conftest.err conftest.$ac_ext
3953if $ac_preproc_ok; then
3954 :
3955else
3956 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3957See \`config.log' for more details." >&5
3958echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3959See \`config.log' for more details." >&2;}
3960 { (exit 1); exit 1; }; }
3961fi
3962
3963ac_ext=c
3964ac_cpp='$CPP $CPPFLAGS'
3965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967ac_compiler_gnu=$ac_cv_c_compiler_gnu
3968
3969if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3971set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3974if test "${ac_cv_prog_RANLIB+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976else
3977 if test -n "$RANLIB"; then
3978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3979else
3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3990 fi
3991done
3992done
3993IFS=$as_save_IFS
3994
3995fi
3996fi
3997RANLIB=$ac_cv_prog_RANLIB
3998if test -n "$RANLIB"; then
3999 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4000echo "${ECHO_T}$RANLIB" >&6; }
4001else
4002 { echo "$as_me:$LINENO: result: no" >&5
4003echo "${ECHO_T}no" >&6; }
4004fi
4005
4006
4007fi
4008if test -z "$ac_cv_prog_RANLIB"; then
4009 ac_ct_RANLIB=$RANLIB
4010 # Extract the first word of "ranlib", so it can be a program name with args.
4011set dummy ranlib; ac_word=$2
4012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4014if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
4017 if test -n "$ac_ct_RANLIB"; then
4018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4019else
4020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021for as_dir in $PATH
4022do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4027 ac_cv_prog_ac_ct_RANLIB="ranlib"
4028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 break 2
4030 fi
4031done
4032done
4033IFS=$as_save_IFS
4034
4035fi
4036fi
4037ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4038if test -n "$ac_ct_RANLIB"; then
4039 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4040echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4041else
4042 { echo "$as_me:$LINENO: result: no" >&5
4043echo "${ECHO_T}no" >&6; }
4044fi
4045
4046 if test "x$ac_ct_RANLIB" = x; then
4047 RANLIB=":"
4048 else
4049 case $cross_compiling:$ac_tool_warned in
4050yes:)
4051{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4052whose name does not start with the host triplet. If you think this
4053configuration is useful to you, please write to autoconf@gnu.org." >&5
4054echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4055whose name does not start with the host triplet. If you think this
4056configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4057ac_tool_warned=yes ;;
4058esac
4059 RANLIB=$ac_ct_RANLIB
4060 fi
4061else
4062 RANLIB="$ac_cv_prog_RANLIB"
4063fi
4064
4065
4066{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4067echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4068set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4069if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071else
4072 cat >conftest.make <<\_ACEOF
4073SHELL = /bin/sh
4074all:
4075 @echo '@@@%%%=$(MAKE)=@@@%%%'
4076_ACEOF
4077# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4078case `${MAKE-make} -f conftest.make 2>/dev/null` in
4079 *@@@%%%=?*=@@@%%%*)
4080 eval ac_cv_prog_make_${ac_make}_set=yes;;
4081 *)
4082 eval ac_cv_prog_make_${ac_make}_set=no;;
4083esac
4084rm -f conftest.make
4085fi
4086if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4087 { echo "$as_me:$LINENO: result: yes" >&5
4088echo "${ECHO_T}yes" >&6; }
4089 SET_MAKE=
4090else
4091 { echo "$as_me:$LINENO: result: no" >&5
4092echo "${ECHO_T}no" >&6; }
4093 SET_MAKE="MAKE=${MAKE-make}"
4094fi
4095
4096
4097{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4098echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4099if test "${ac_cv_header_time+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101else
4102 cat >conftest.$ac_ext <<_ACEOF
4103/* confdefs.h. */
4104_ACEOF
4105cat confdefs.h >>conftest.$ac_ext
4106cat >>conftest.$ac_ext <<_ACEOF
4107/* end confdefs.h. */
4108#include <sys/types.h>
4109#include <sys/time.h>
4110#include <time.h>
4111
4112int
4113main ()
4114{
4115if ((struct tm *) 0)
4116return 0;
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121rm -f conftest.$ac_objext
4122if { (ac_try="$ac_compile"
4123case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126esac
4127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } && {
4135 test -z "$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4137 } && test -s conftest.$ac_objext; then
4138 ac_cv_header_time=yes
4139else
4140 echo "$as_me: failed program was:" >&5
4141sed 's/^/| /' conftest.$ac_ext >&5
4142
4143 ac_cv_header_time=no
4144fi
4145
4146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147fi
4148{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4149echo "${ECHO_T}$ac_cv_header_time" >&6; }
4150if test $ac_cv_header_time = yes; then
4151
4152cat >>confdefs.h <<\_ACEOF
4153#define TIME_WITH_SYS_TIME 1
4154_ACEOF
4155
4156fi
4157
4158
4159{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4160echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4161if test "${ac_cv_c_const+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164 cat >conftest.$ac_ext <<_ACEOF
4165/* confdefs.h. */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h. */
4170
4171int
4172main ()
4173{
4174/* FIXME: Include the comments suggested by Paul. */
4175#ifndef __cplusplus
4176 /* Ultrix mips cc rejects this. */
4177 typedef int charset[2];
4178 const charset cs;
4179 /* SunOS 4.1.1 cc rejects this. */
4180 char const *const *pcpcc;
4181 char **ppc;
4182 /* NEC SVR4.0.2 mips cc rejects this. */
4183 struct point {int x, y;};
4184 static struct point const zero = {0,0};
4185 /* AIX XL C 1.02.0.0 rejects this.
4186 It does not let you subtract one const X* pointer from another in
4187 an arm of an if-expression whose if-part is not a constant
4188 expression */
4189 const char *g = "string";
4190 pcpcc = &g + (g ? g-g : 0);
4191 /* HPUX 7.0 cc rejects these. */
4192 ++pcpcc;
4193 ppc = (char**) pcpcc;
4194 pcpcc = (char const *const *) ppc;
4195 { /* SCO 3.2v4 cc rejects this. */
4196 char *t;
4197 char const *s = 0 ? (char *) 0 : (char const *) 0;
4198
4199 *t++ = 0;
4200 if (s) return 0;
4201 }
4202 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4203 int x[] = {25, 17};
4204 const int *foo = &x[0];
4205 ++foo;
4206 }
4207 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4208 typedef const int *iptr;
4209 iptr p = 0;
4210 ++p;
4211 }
4212 { /* AIX XL C 1.02.0.0 rejects this saying
4213 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4214 struct s { int j; const int *ap[3]; };
4215 struct s *b; b->j = 5;
4216 }
4217 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4218 const int foo = 10;
4219 if (!foo) return 0;
4220 }
4221 return !cs[0] && !zero.x;
4222#endif
4223
4224 ;
4225 return 0;
4226}
4227_ACEOF
4228rm -f conftest.$ac_objext
4229if { (ac_try="$ac_compile"
4230case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233esac
4234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_compile") 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } && {
4242 test -z "$ac_c_werror_flag" ||
4243 test ! -s conftest.err
4244 } && test -s conftest.$ac_objext; then
4245 ac_cv_c_const=yes
4246else
4247 echo "$as_me: failed program was:" >&5
4248sed 's/^/| /' conftest.$ac_ext >&5
4249
4250 ac_cv_c_const=no
4251fi
4252
4253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254fi
4255{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4256echo "${ECHO_T}$ac_cv_c_const" >&6; }
4257if test $ac_cv_c_const = no; then
4258
4259cat >>confdefs.h <<\_ACEOF
4260#define const
4261_ACEOF
4262
4263fi
4264
4265
4266
4267{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4268echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4269if test "${ac_cv_path_GREP+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272 # Extract the first word of "grep ggrep" to use in msg output
4273if test -z "$GREP"; then
4274set dummy grep ggrep; ac_prog_name=$2
4275if test "${ac_cv_path_GREP+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277else
4278 ac_path_GREP_found=false
4279# Loop through the user's path and test for each of PROGNAME-LIST
4280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4282do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_prog in grep ggrep; do
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4288 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4289 # Check for GNU ac_path_GREP and select it if it is found.
4290 # Check for GNU $ac_path_GREP
4291case `"$ac_path_GREP" --version 2>&1` in
4292*GNU*)
4293 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4294*)
4295 ac_count=0
4296 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4297 while :
4298 do
4299 cat "conftest.in" "conftest.in" >"conftest.tmp"
4300 mv "conftest.tmp" "conftest.in"
4301 cp "conftest.in" "conftest.nl"
4302 echo 'GREP' >> "conftest.nl"
4303 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4305 ac_count=`expr $ac_count + 1`
4306 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4307 # Best one so far, save it but keep looking for a better one
4308 ac_cv_path_GREP="$ac_path_GREP"
4309 ac_path_GREP_max=$ac_count
4310 fi
4311 # 10*(2^10) chars as input seems more than enough
4312 test $ac_count -gt 10 && break
4313 done
4314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4315esac
4316
4317
4318 $ac_path_GREP_found && break 3
4319 done
4320done
4321
4322done
4323IFS=$as_save_IFS
4324
4325
4326fi
4327
4328GREP="$ac_cv_path_GREP"
4329if test -z "$GREP"; then
4330 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4331echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4332 { (exit 1); exit 1; }; }
4333fi
4334
4335else
4336 ac_cv_path_GREP=$GREP
4337fi
4338
4339
4340fi
4341{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4342echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4343 GREP="$ac_cv_path_GREP"
4344
4345
4346{ echo "$as_me:$LINENO: checking for egrep" >&5
4347echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4348if test "${ac_cv_path_EGREP+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350else
4351 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4352 then ac_cv_path_EGREP="$GREP -E"
4353 else
4354 # Extract the first word of "egrep" to use in msg output
4355if test -z "$EGREP"; then
4356set dummy egrep; ac_prog_name=$2
4357if test "${ac_cv_path_EGREP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359else
4360 ac_path_EGREP_found=false
4361# Loop through the user's path and test for each of PROGNAME-LIST
4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4364do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_prog in egrep; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4370 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4371 # Check for GNU ac_path_EGREP and select it if it is found.
4372 # Check for GNU $ac_path_EGREP
4373case `"$ac_path_EGREP" --version 2>&1` in
4374*GNU*)
4375 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4376*)
4377 ac_count=0
4378 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4379 while :
4380 do
4381 cat "conftest.in" "conftest.in" >"conftest.tmp"
4382 mv "conftest.tmp" "conftest.in"
4383 cp "conftest.in" "conftest.nl"
4384 echo 'EGREP' >> "conftest.nl"
4385 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4387 ac_count=`expr $ac_count + 1`
4388 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4389 # Best one so far, save it but keep looking for a better one
4390 ac_cv_path_EGREP="$ac_path_EGREP"
4391 ac_path_EGREP_max=$ac_count
4392 fi
4393 # 10*(2^10) chars as input seems more than enough
4394 test $ac_count -gt 10 && break
4395 done
4396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4397esac
4398
4399
4400 $ac_path_EGREP_found && break 3
4401 done
4402done
4403
4404done
4405IFS=$as_save_IFS
4406
4407
4408fi
4409
4410EGREP="$ac_cv_path_EGREP"
4411if test -z "$EGREP"; then
4412 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4413echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4414 { (exit 1); exit 1; }; }
4415fi
4416
4417else
4418 ac_cv_path_EGREP=$EGREP
4419fi
4420
4421
4422 fi
4423fi
4424{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4425echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4426 EGREP="$ac_cv_path_EGREP"
4427
4428
4429{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4430echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4431if test "${ac_cv_header_stdc+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434 cat >conftest.$ac_ext <<_ACEOF
4435/* confdefs.h. */
4436_ACEOF
4437cat confdefs.h >>conftest.$ac_ext
4438cat >>conftest.$ac_ext <<_ACEOF
4439/* end confdefs.h. */
4440#include <stdlib.h>
4441#include <stdarg.h>
4442#include <string.h>
4443#include <float.h>
4444
4445int
4446main ()
4447{
4448
4449 ;
4450 return 0;
4451}
4452_ACEOF
4453rm -f conftest.$ac_objext
4454if { (ac_try="$ac_compile"
4455case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458esac
4459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460 (eval "$ac_compile") 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } && {
4467 test -z "$ac_c_werror_flag" ||
4468 test ! -s conftest.err
4469 } && test -s conftest.$ac_objext; then
4470 ac_cv_header_stdc=yes
4471else
4472 echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475 ac_cv_header_stdc=no
4476fi
4477
4478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479
4480if test $ac_cv_header_stdc = yes; then
4481 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4482 cat >conftest.$ac_ext <<_ACEOF
4483/* confdefs.h. */
4484_ACEOF
4485cat confdefs.h >>conftest.$ac_ext
4486cat >>conftest.$ac_ext <<_ACEOF
4487/* end confdefs.h. */
4488#include <string.h>
4489
4490_ACEOF
4491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492 $EGREP "memchr" >/dev/null 2>&1; then
4493 :
4494else
4495 ac_cv_header_stdc=no
4496fi
4497rm -f conftest*
4498
4499fi
4500
4501if test $ac_cv_header_stdc = yes; then
4502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4503 cat >conftest.$ac_ext <<_ACEOF
4504/* confdefs.h. */
4505_ACEOF
4506cat confdefs.h >>conftest.$ac_ext
4507cat >>conftest.$ac_ext <<_ACEOF
4508/* end confdefs.h. */
4509#include <stdlib.h>
4510
4511_ACEOF
4512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "free" >/dev/null 2>&1; then
4514 :
4515else
4516 ac_cv_header_stdc=no
4517fi
4518rm -f conftest*
4519
4520fi
4521
4522if test $ac_cv_header_stdc = yes; then
4523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4524 if test "$cross_compiling" = yes; then
4525 :
4526else
4527 cat >conftest.$ac_ext <<_ACEOF
4528/* confdefs.h. */
4529_ACEOF
4530cat confdefs.h >>conftest.$ac_ext
4531cat >>conftest.$ac_ext <<_ACEOF
4532/* end confdefs.h. */
4533#include <ctype.h>
4534#include <stdlib.h>
4535#if ((' ' & 0x0FF) == 0x020)
4536# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4537# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4538#else
4539# define ISLOWER(c) \
4540 (('a' <= (c) && (c) <= 'i') \
4541 || ('j' <= (c) && (c) <= 'r') \
4542 || ('s' <= (c) && (c) <= 'z'))
4543# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4544#endif
4545
4546#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4547int
4548main ()
4549{
4550 int i;
4551 for (i = 0; i < 256; i++)
4552 if (XOR (islower (i), ISLOWER (i))
4553 || toupper (i) != TOUPPER (i))
4554 return 2;
4555 return 0;
4556}
4557_ACEOF
4558rm -f conftest$ac_exeext
4559if { (ac_try="$ac_link"
4560case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4563esac
4564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 (eval "$ac_link") 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4569 { (case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572esac
4573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574 (eval "$ac_try") 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 :
4579else
4580 echo "$as_me: program exited with status $ac_status" >&5
4581echo "$as_me: failed program was:" >&5
4582sed 's/^/| /' conftest.$ac_ext >&5
4583
4584( exit $ac_status )
4585ac_cv_header_stdc=no
4586fi
4587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4588fi
4589
4590
4591fi
4592fi
4593{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4594echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4595if test $ac_cv_header_stdc = yes; then
4596
4597cat >>confdefs.h <<\_ACEOF
4598#define STDC_HEADERS 1
4599_ACEOF
4600
4601fi
4602
4603# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4614 inttypes.h stdint.h unistd.h
4615do
4616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4617{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621else
4622 cat >conftest.$ac_ext <<_ACEOF
4623/* confdefs.h. */
4624_ACEOF
4625cat confdefs.h >>conftest.$ac_ext
4626cat >>conftest.$ac_ext <<_ACEOF
4627/* end confdefs.h. */
4628$ac_includes_default
4629
4630#include <$ac_header>
4631_ACEOF
4632rm -f conftest.$ac_objext
4633if { (ac_try="$ac_compile"
4634case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637esac
4638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_compile") 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && {
4646 test -z "$ac_c_werror_flag" ||
4647 test ! -s conftest.err
4648 } && test -s conftest.$ac_objext; then
4649 eval "$as_ac_Header=yes"
4650else
4651 echo "$as_me: failed program was:" >&5
4652sed 's/^/| /' conftest.$ac_ext >&5
4653
4654 eval "$as_ac_Header=no"
4655fi
4656
4657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658fi
4659ac_res=`eval echo '${'$as_ac_Header'}'`
4660 { echo "$as_me:$LINENO: result: $ac_res" >&5
4661echo "${ECHO_T}$ac_res" >&6; }
4662if test `eval echo '${'$as_ac_Header'}'` = yes; then
4663 cat >>confdefs.h <<_ACEOF
4664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4665_ACEOF
4666
4667fi
4668
4669done
4670
4671
4672
4673
4674
4675for ac_header in unistd.h sys/time.h sys/times.h
4676do
4677as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683fi
4684ac_res=`eval echo '${'$as_ac_Header'}'`
4685 { echo "$as_me:$LINENO: result: $ac_res" >&5
4686echo "${ECHO_T}$ac_res" >&6; }
4687else
4688 # Is the header compilable?
4689{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4691cat >conftest.$ac_ext <<_ACEOF
4692/* confdefs.h. */
4693_ACEOF
4694cat confdefs.h >>conftest.$ac_ext
4695cat >>conftest.$ac_ext <<_ACEOF
4696/* end confdefs.h. */
4697$ac_includes_default
4698#include <$ac_header>
4699_ACEOF
4700rm -f conftest.$ac_objext
4701if { (ac_try="$ac_compile"
4702case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705esac
4706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest.$ac_objext; then
4717 ac_header_compiler=yes
4718else
4719 echo "$as_me: failed program was:" >&5
4720sed 's/^/| /' conftest.$ac_ext >&5
4721
4722 ac_header_compiler=no
4723fi
4724
4725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4727echo "${ECHO_T}$ac_header_compiler" >&6; }
4728
4729# Is the header present?
4730{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4732cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h. */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h. */
4738#include <$ac_header>
4739_ACEOF
4740if { (ac_try="$ac_cpp conftest.$ac_ext"
4741case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744esac
4745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null && {
4753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4755 }; then
4756 ac_header_preproc=yes
4757else
4758 echo "$as_me: failed program was:" >&5
4759sed 's/^/| /' conftest.$ac_ext >&5
4760
4761 ac_header_preproc=no
4762fi
4763
4764rm -f conftest.err conftest.$ac_ext
4765{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4766echo "${ECHO_T}$ac_header_preproc" >&6; }
4767
4768# So? What about this header?
4769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4770 yes:no: )
4771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4772echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4774echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4775 ac_header_preproc=yes
4776 ;;
4777 no:yes:* )
4778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4779echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4781echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4783echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4785echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4787echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4789echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4790
4791 ;;
4792esac
4793{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797else
4798 eval "$as_ac_Header=\$ac_header_preproc"
4799fi
4800ac_res=`eval echo '${'$as_ac_Header'}'`
4801 { echo "$as_me:$LINENO: result: $ac_res" >&5
4802echo "${ECHO_T}$ac_res" >&6; }
4803
4804fi
4805if test `eval echo '${'$as_ac_Header'}'` = yes; then
4806 cat >>confdefs.h <<_ACEOF
4807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4808_ACEOF
4809
4810fi
4811
4812done
4813
4814
4815
4816
4817
4818for ac_header in curses.h term.h ncurses/curses.h ncurses/term.h
4819do
4820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826fi
4827ac_res=`eval echo '${'$as_ac_Header'}'`
4828 { echo "$as_me:$LINENO: result: $ac_res" >&5
4829echo "${ECHO_T}$ac_res" >&6; }
4830else
4831 # Is the header compilable?
4832{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4834cat >conftest.$ac_ext <<_ACEOF
4835/* confdefs.h. */
4836_ACEOF
4837cat confdefs.h >>conftest.$ac_ext
4838cat >>conftest.$ac_ext <<_ACEOF
4839/* end confdefs.h. */
4840$ac_includes_default
4841#include <$ac_header>
4842_ACEOF
4843rm -f conftest.$ac_objext
4844if { (ac_try="$ac_compile"
4845case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4848esac
4849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_compile") 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } && {
4857 test -z "$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4859 } && test -s conftest.$ac_objext; then
4860 ac_header_compiler=yes
4861else
4862 echo "$as_me: failed program was:" >&5
4863sed 's/^/| /' conftest.$ac_ext >&5
4864
4865 ac_header_compiler=no
4866fi
4867
4868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4870echo "${ECHO_T}$ac_header_compiler" >&6; }
4871
4872# Is the header present?
4873{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4874echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4875cat >conftest.$ac_ext <<_ACEOF
4876/* confdefs.h. */
4877_ACEOF
4878cat confdefs.h >>conftest.$ac_ext
4879cat >>conftest.$ac_ext <<_ACEOF
4880/* end confdefs.h. */
4881#include <$ac_header>
4882_ACEOF
4883if { (ac_try="$ac_cpp conftest.$ac_ext"
4884case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887esac
4888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4890 ac_status=$?
4891 grep -v '^ *+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } >/dev/null && {
4896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4897 test ! -s conftest.err
4898 }; then
4899 ac_header_preproc=yes
4900else
4901 echo "$as_me: failed program was:" >&5
4902sed 's/^/| /' conftest.$ac_ext >&5
4903
4904 ac_header_preproc=no
4905fi
4906
4907rm -f conftest.err conftest.$ac_ext
4908{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4909echo "${ECHO_T}$ac_header_preproc" >&6; }
4910
4911# So? What about this header?
4912case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4913 yes:no: )
4914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4915echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4917echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4918 ac_header_preproc=yes
4919 ;;
4920 no:yes:* )
4921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4922echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4924echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4926echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4928echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4930echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4932echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4933
4934 ;;
4935esac
4936{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940else
4941 eval "$as_ac_Header=\$ac_header_preproc"
4942fi
4943ac_res=`eval echo '${'$as_ac_Header'}'`
4944 { echo "$as_me:$LINENO: result: $ac_res" >&5
4945echo "${ECHO_T}$ac_res" >&6; }
4946
4947fi
4948if test `eval echo '${'$as_ac_Header'}'` = yes; then
4949 cat >>confdefs.h <<_ACEOF
4950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4951_ACEOF
4952
4953fi
4954
4955done
4956
4957
4958if test "$ac_cv_header_curses_h" = "yes";then
4959 curses_header="curses.h"
4960elif test "$ac_cv_header_ncurses_curses_h" = "yes";then
4961 curses_header="ncurses/curses.h"
4962else
4963 curses_header="no"
4964fi
4965
4966if test "$ac_cv_header_term_h" = "yes";then
4967 term_header="term.h"
4968elif test "$ac_cv_header_ncurses_term_h" = "yes";then
4969 term_header="ncurses/term.h"
4970else
4971 term_header="no"
4972fi
4973
4974{ echo "$as_me:$LINENO: checking for long" >&5
4975echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4976if test "${ac_cv_type_long+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978else
4979 cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985#include <stdio.h>
4986
4987typedef long ac__type_new_;
4988int
4989main ()
4990{
4991if ((ac__type_new_ *) 0)
4992 return 0;
4993if (sizeof (ac__type_new_))
4994 return 0;
4995 ;
4996 return 0;
4997}
4998_ACEOF
4999rm -f conftest.$ac_objext
5000if { (ac_try="$ac_compile"
5001case "(($ac_try" in
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5004esac
5005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_compile") 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } && {
5013 test -z "$ac_c_werror_flag" ||
5014 test ! -s conftest.err
5015 } && test -s conftest.$ac_objext; then
5016 ac_cv_type_long=yes
5017else
5018 echo "$as_me: failed program was:" >&5
5019sed 's/^/| /' conftest.$ac_ext >&5
5020
5021 ac_cv_type_long=no
5022fi
5023
5024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025fi
5026{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5027echo "${ECHO_T}$ac_cv_type_long" >&6; }
5028
5029# The cast to long int works around a bug in the HP C Compiler
5030# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5031# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5032# This bug is HP SR number 8606223364.
5033{ echo "$as_me:$LINENO: checking size of long" >&5
5034echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5035if test "${ac_cv_sizeof_long+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5037else
5038 if test "$cross_compiling" = yes; then
5039 # Depending upon the size, compute the lo and hi bounds.
5040cat >conftest.$ac_ext <<_ACEOF
5041/* confdefs.h. */
5042_ACEOF
5043cat confdefs.h >>conftest.$ac_ext
5044cat >>conftest.$ac_ext <<_ACEOF
5045/* end confdefs.h. */
5046#include <stdio.h>
5047
5048 typedef long ac__type_sizeof_;
5049int
5050main ()
5051{
5052static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5053test_array [0] = 0
5054
5055 ;
5056 return 0;
5057}
5058_ACEOF
5059rm -f conftest.$ac_objext
5060if { (ac_try="$ac_compile"
5061case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064esac
5065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5066 (eval "$ac_compile") 2>conftest.er1
5067 ac_status=$?
5068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } && {
5073 test -z "$ac_c_werror_flag" ||
5074 test ! -s conftest.err
5075 } && test -s conftest.$ac_objext; then
5076 ac_lo=0 ac_mid=0
5077 while :; do
5078 cat >conftest.$ac_ext <<_ACEOF
5079/* confdefs.h. */
5080_ACEOF
5081cat confdefs.h >>conftest.$ac_ext
5082cat >>conftest.$ac_ext <<_ACEOF
5083/* end confdefs.h. */
5084#include <stdio.h>
5085
5086 typedef long ac__type_sizeof_;
5087int
5088main ()
5089{
5090static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5091test_array [0] = 0
5092
5093 ;
5094 return 0;
5095}
5096_ACEOF
5097rm -f conftest.$ac_objext
5098if { (ac_try="$ac_compile"
5099case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102esac
5103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_compile") 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && {
5111 test -z "$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5113 } && test -s conftest.$ac_objext; then
5114 ac_hi=$ac_mid; break
5115else
5116 echo "$as_me: failed program was:" >&5
5117sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ac_lo=`expr $ac_mid + 1`
5120 if test $ac_lo -le $ac_mid; then
5121 ac_lo= ac_hi=
5122 break
5123 fi
5124 ac_mid=`expr 2 '*' $ac_mid + 1`
5125fi
5126
5127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5128 done
5129else
5130 echo "$as_me: failed program was:" >&5
5131sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 cat >conftest.$ac_ext <<_ACEOF
5134/* confdefs.h. */
5135_ACEOF
5136cat confdefs.h >>conftest.$ac_ext
5137cat >>conftest.$ac_ext <<_ACEOF
5138/* end confdefs.h. */
5139#include <stdio.h>
5140
5141 typedef long ac__type_sizeof_;
5142int
5143main ()
5144{
5145static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5146test_array [0] = 0
5147
5148 ;
5149 return 0;
5150}
5151_ACEOF
5152rm -f conftest.$ac_objext
5153if { (ac_try="$ac_compile"
5154case "(($ac_try" in
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5157esac
5158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159 (eval "$ac_compile") 2>conftest.er1
5160 ac_status=$?
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } && {
5166 test -z "$ac_c_werror_flag" ||
5167 test ! -s conftest.err
5168 } && test -s conftest.$ac_objext; then
5169 ac_hi=-1 ac_mid=-1
5170 while :; do
5171 cat >conftest.$ac_ext <<_ACEOF
5172/* confdefs.h. */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h. */
5177#include <stdio.h>
5178
5179 typedef long ac__type_sizeof_;
5180int
5181main ()
5182{
5183static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5184test_array [0] = 0
5185
5186 ;
5187 return 0;
5188}
5189_ACEOF
5190rm -f conftest.$ac_objext
5191if { (ac_try="$ac_compile"
5192case "(($ac_try" in
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5195esac
5196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_compile") 2>conftest.er1
5198 ac_status=$?
5199 grep -v '^ *+' conftest.er1 >conftest.err
5200 rm -f conftest.er1
5201 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } && {
5204 test -z "$ac_c_werror_flag" ||
5205 test ! -s conftest.err
5206 } && test -s conftest.$ac_objext; then
5207 ac_lo=$ac_mid; break
5208else
5209 echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
5212 ac_hi=`expr '(' $ac_mid ')' - 1`
5213 if test $ac_mid -le $ac_hi; then
5214 ac_lo= ac_hi=
5215 break
5216 fi
5217 ac_mid=`expr 2 '*' $ac_mid`
5218fi
5219
5220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 done
5222else
5223 echo "$as_me: failed program was:" >&5
5224sed 's/^/| /' conftest.$ac_ext >&5
5225
5226 ac_lo= ac_hi=
5227fi
5228
5229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230fi
5231
5232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233# Binary search between lo and hi bounds.
5234while test "x$ac_lo" != "x$ac_hi"; do
5235 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5236 cat >conftest.$ac_ext <<_ACEOF
5237/* confdefs.h. */
5238_ACEOF
5239cat confdefs.h >>conftest.$ac_ext
5240cat >>conftest.$ac_ext <<_ACEOF
5241/* end confdefs.h. */
5242#include <stdio.h>
5243
5244 typedef long ac__type_sizeof_;
5245int
5246main ()
5247{
5248static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5249test_array [0] = 0
5250
5251 ;
5252 return 0;
5253}
5254_ACEOF
5255rm -f conftest.$ac_objext
5256if { (ac_try="$ac_compile"
5257case "(($ac_try" in
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5260esac
5261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_compile") 2>conftest.er1
5263 ac_status=$?
5264 grep -v '^ *+' conftest.er1 >conftest.err
5265 rm -f conftest.er1
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && {
5269 test -z "$ac_c_werror_flag" ||
5270 test ! -s conftest.err
5271 } && test -s conftest.$ac_objext; then
5272 ac_hi=$ac_mid
5273else
5274 echo "$as_me: failed program was:" >&5
5275sed 's/^/| /' conftest.$ac_ext >&5
5276
5277 ac_lo=`expr '(' $ac_mid ')' + 1`
5278fi
5279
5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281done
5282case $ac_lo in
5283?*) ac_cv_sizeof_long=$ac_lo;;
5284'') if test "$ac_cv_type_long" = yes; then
5285 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5286See \`config.log' for more details." >&5
5287echo "$as_me: error: cannot compute sizeof (long)
5288See \`config.log' for more details." >&2;}
5289 { (exit 77); exit 77; }; }
5290 else
5291 ac_cv_sizeof_long=0
5292 fi ;;
5293esac
5294else
5295 cat >conftest.$ac_ext <<_ACEOF
5296/* confdefs.h. */
5297_ACEOF
5298cat confdefs.h >>conftest.$ac_ext
5299cat >>conftest.$ac_ext <<_ACEOF
5300/* end confdefs.h. */
5301#include <stdio.h>
5302
5303 typedef long ac__type_sizeof_;
5304static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5305static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5306#include <stdio.h>
5307#include <stdlib.h>
5308int
5309main ()
5310{
5311
5312 FILE *f = fopen ("conftest.val", "w");
5313 if (! f)
5314 return 1;
5315 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5316 {
5317 long int i = longval ();
5318 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5319 return 1;
5320 fprintf (f, "%ld\n", i);
5321 }
5322 else
5323 {
5324 unsigned long int i = ulongval ();
5325 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5326 return 1;
5327 fprintf (f, "%lu\n", i);
5328 }
5329 return ferror (f) || fclose (f) != 0;
5330
5331 ;
5332 return 0;
5333}
5334_ACEOF
5335rm -f conftest$ac_exeext
5336if { (ac_try="$ac_link"
5337case "(($ac_try" in
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5340esac
5341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342 (eval "$ac_link") 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5346 { (case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5349esac
5350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_try") 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 ac_cv_sizeof_long=`cat conftest.val`
5356else
5357 echo "$as_me: program exited with status $ac_status" >&5
5358echo "$as_me: failed program was:" >&5
5359sed 's/^/| /' conftest.$ac_ext >&5
5360
5361( exit $ac_status )
5362if test "$ac_cv_type_long" = yes; then
5363 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5364See \`config.log' for more details." >&5
5365echo "$as_me: error: cannot compute sizeof (long)
5366See \`config.log' for more details." >&2;}
5367 { (exit 77); exit 77; }; }
5368 else
5369 ac_cv_sizeof_long=0
5370 fi
5371fi
5372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5373fi
5374rm -f conftest.val
5375fi
5376{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5377echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5378
5379
5380
5381cat >>confdefs.h <<_ACEOF
5382#define SIZEOF_LONG $ac_cv_sizeof_long
5383_ACEOF
5384
5385
5386
5387
5388
5389
5390
5391for ac_func in vsnprintf gettimeofday usleep times
5392do
5393as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5394{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5395echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5396if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399 cat >conftest.$ac_ext <<_ACEOF
5400/* confdefs.h. */
5401_ACEOF
5402cat confdefs.h >>conftest.$ac_ext
5403cat >>conftest.$ac_ext <<_ACEOF
5404/* end confdefs.h. */
5405/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5407#define $ac_func innocuous_$ac_func
5408
5409/* System header to define __stub macros and hopefully few prototypes,
5410 which can conflict with char $ac_func (); below.
5411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5412 <limits.h> exists even on freestanding compilers. */
5413
5414#ifdef __STDC__
5415# include <limits.h>
5416#else
5417# include <assert.h>
5418#endif
5419
5420#undef $ac_func
5421
5422/* Override any GCC internal prototype to avoid an error.
5423 Use char because int might match the return type of a GCC
5424 builtin and then its argument prototype would still apply. */
5425#ifdef __cplusplus
5426extern "C"
5427#endif
5428char $ac_func ();
5429/* The GNU C library defines this for functions which it implements
5430 to always fail with ENOSYS. Some functions are actually named
5431 something starting with __ and the normal name is an alias. */
5432#if defined __stub_$ac_func || defined __stub___$ac_func
5433choke me
5434#endif
5435
5436int
5437main ()
5438{
5439return $ac_func ();
5440 ;
5441 return 0;
5442}
5443_ACEOF
5444rm -f conftest.$ac_objext conftest$ac_exeext
5445if { (ac_try="$ac_link"
5446case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449esac
5450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_link") 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest$ac_exeext &&
5461 $as_test_x conftest$ac_exeext; then
5462 eval "$as_ac_var=yes"
5463else
5464 echo "$as_me: failed program was:" >&5
5465sed 's/^/| /' conftest.$ac_ext >&5
5466
5467 eval "$as_ac_var=no"
5468fi
5469
5470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5471 conftest$ac_exeext conftest.$ac_ext
5472fi
5473ac_res=`eval echo '${'$as_ac_var'}'`
5474 { echo "$as_me:$LINENO: result: $ac_res" >&5
5475echo "${ECHO_T}$ac_res" >&6; }
5476if test `eval echo '${'$as_ac_var'}'` = yes; then
5477 cat >>confdefs.h <<_ACEOF
5478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5479_ACEOF
5480
5481fi
5482done
5483
5484
5485if test $ac_cv_func_vsnprintf = no; then
5486 # Extract the first word of "glib-config", so it can be a program name with args.
5487set dummy glib-config; ac_word=$2
5488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5490if test "${ac_cv_prog_glibconfig+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492else
5493 if test -n "$glibconfig"; then
5494 ac_cv_prog_glibconfig="$glibconfig" # Let the user override the test.
5495else
5496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497for as_dir in $PATH
5498do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_glibconfig="yes"
5504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507done
5508done
5509IFS=$as_save_IFS
5510
5511 test -z "$ac_cv_prog_glibconfig" && ac_cv_prog_glibconfig="no"
5512fi
5513fi
5514glibconfig=$ac_cv_prog_glibconfig
5515if test -n "$glibconfig"; then
5516 { echo "$as_me:$LINENO: result: $glibconfig" >&5
5517echo "${ECHO_T}$glibconfig" >&6; }
5518else
5519 { echo "$as_me:$LINENO: result: no" >&5
5520echo "${ECHO_T}no" >&6; }
5521fi
5522
5523
5524 if test $ac_cv_prog_glibconfig = yes;then
5525 glib_cflags=`glib-config --cflags`
5526 glib_libs=`glib-config --libs`
5527 CPPFLAGS="$CPPFLAGS $glib_cflags"
5528 LIBS="$LIBS $glib_libs"
5529
5530for ac_func in g_vsnprintf
5531do
5532as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5533{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5535if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537else
5538 cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h. */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
5543/* end confdefs.h. */
5544/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5546#define $ac_func innocuous_$ac_func
5547
5548/* System header to define __stub macros and hopefully few prototypes,
5549 which can conflict with char $ac_func (); below.
5550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5551 <limits.h> exists even on freestanding compilers. */
5552
5553#ifdef __STDC__
5554# include <limits.h>
5555#else
5556# include <assert.h>
5557#endif
5558
5559#undef $ac_func
5560
5561/* Override any GCC internal prototype to avoid an error.
5562 Use char because int might match the return type of a GCC
5563 builtin and then its argument prototype would still apply. */
5564#ifdef __cplusplus
5565extern "C"
5566#endif
5567char $ac_func ();
5568/* The GNU C library defines this for functions which it implements
5569 to always fail with ENOSYS. Some functions are actually named
5570 something starting with __ and the normal name is an alias. */
5571#if defined __stub_$ac_func || defined __stub___$ac_func
5572choke me
5573#endif
5574
5575int
5576main ()
5577{
5578return $ac_func ();
5579 ;
5580 return 0;
5581}
5582_ACEOF
5583rm -f conftest.$ac_objext conftest$ac_exeext
5584if { (ac_try="$ac_link"
5585case "(($ac_try" in
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5588esac
5589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_link") 2>conftest.er1
5591 ac_status=$?
5592 grep -v '^ *+' conftest.er1 >conftest.err
5593 rm -f conftest.er1
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && {
5597 test -z "$ac_c_werror_flag" ||
5598 test ! -s conftest.err
5599 } && test -s conftest$ac_exeext &&
5600 $as_test_x conftest$ac_exeext; then
5601 eval "$as_ac_var=yes"
5602else
5603 echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606 eval "$as_ac_var=no"
5607fi
5608
5609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5610 conftest$ac_exeext conftest.$ac_ext
5611fi
5612ac_res=`eval echo '${'$as_ac_var'}'`
5613 { echo "$as_me:$LINENO: result: $ac_res" >&5
5614echo "${ECHO_T}$ac_res" >&6; }
5615if test `eval echo '${'$as_ac_var'}'` = yes; then
5616 cat >>confdefs.h <<_ACEOF
5617#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5618_ACEOF
5619
5620fi
5621done
5622
5623
5624for ac_header in glib.h
5625do
5626as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632fi
5633ac_res=`eval echo '${'$as_ac_Header'}'`
5634 { echo "$as_me:$LINENO: result: $ac_res" >&5
5635echo "${ECHO_T}$ac_res" >&6; }
5636else
5637 # Is the header compilable?
5638{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5640cat >conftest.$ac_ext <<_ACEOF
5641/* confdefs.h. */
5642_ACEOF
5643cat confdefs.h >>conftest.$ac_ext
5644cat >>conftest.$ac_ext <<_ACEOF
5645/* end confdefs.h. */
5646$ac_includes_default
5647#include <$ac_header>
5648_ACEOF
5649rm -f conftest.$ac_objext
5650if { (ac_try="$ac_compile"
5651case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654esac
5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_compile") 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } && {
5663 test -z "$ac_c_werror_flag" ||
5664 test ! -s conftest.err
5665 } && test -s conftest.$ac_objext; then
5666 ac_header_compiler=yes
5667else
5668 echo "$as_me: failed program was:" >&5
5669sed 's/^/| /' conftest.$ac_ext >&5
5670
5671 ac_header_compiler=no
5672fi
5673
5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5676echo "${ECHO_T}$ac_header_compiler" >&6; }
5677
5678# Is the header present?
5679{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5680echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5681cat >conftest.$ac_ext <<_ACEOF
5682/* confdefs.h. */
5683_ACEOF
5684cat confdefs.h >>conftest.$ac_ext
5685cat >>conftest.$ac_ext <<_ACEOF
5686/* end confdefs.h. */
5687#include <$ac_header>
5688_ACEOF
5689if { (ac_try="$ac_cpp conftest.$ac_ext"
5690case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693esac
5694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } >/dev/null && {
5702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5703 test ! -s conftest.err
5704 }; then
5705 ac_header_preproc=yes
5706else
5707 echo "$as_me: failed program was:" >&5
5708sed 's/^/| /' conftest.$ac_ext >&5
5709
5710 ac_header_preproc=no
5711fi
5712
5713rm -f conftest.err conftest.$ac_ext
5714{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5715echo "${ECHO_T}$ac_header_preproc" >&6; }
5716
5717# So? What about this header?
5718case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5719 yes:no: )
5720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5721echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5723echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5724 ac_header_preproc=yes
5725 ;;
5726 no:yes:* )
5727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5728echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5730echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5732echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5734echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5736echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5738echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5739
5740 ;;
5741esac
5742{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5746else
5747 eval "$as_ac_Header=\$ac_header_preproc"
5748fi
5749ac_res=`eval echo '${'$as_ac_Header'}'`
5750 { echo "$as_me:$LINENO: result: $ac_res" >&5
5751echo "${ECHO_T}$ac_res" >&6; }
5752
5753fi
5754if test `eval echo '${'$as_ac_Header'}'` = yes; then
5755 cat >>confdefs.h <<_ACEOF
5756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5757_ACEOF
5758
5759fi
5760
5761done
5762
5763 if test $ac_cv_func_g_vsnprintf = no; then
5764 { echo "$as_me:$LINENO: WARNING: GLib installation problem.
5765 Continuing without GLib " >&5
5766echo "$as_me: WARNING: GLib installation problem.
5767 Continuing without GLib " >&2;}
5768 fi
5769 else
5770 { echo "$as_me:$LINENO: WARNING: Neither vsnprintf nor GLib found. GNU Go is
5771 compiled but it is safer to get GLib at
5772 http://www.gtk.org/" >&5
5773echo "$as_me: WARNING: Neither vsnprintf nor GLib found. GNU Go is
5774 compiled but it is safer to get GLib at
5775 http://www.gtk.org/" >&2;}
5776 fi
5777fi
5778
5779
5780
5781
5782
5783{ echo "$as_me:$LINENO: checking for variadic cpp define" >&5
5784echo $ECHO_N "checking for variadic cpp define... $ECHO_C" >&6; }
5785if test "${gnugo_cv_cpp_variadic_define+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788 cat >conftest.$ac_ext <<_ACEOF
5789/* confdefs.h. */
5790_ACEOF
5791cat confdefs.h >>conftest.$ac_ext
5792cat >>conftest.$ac_ext <<_ACEOF
5793/* end confdefs.h. */
5794#include <stdio.h>
5795#define zz(fmt,arg...) printf(fmt,##arg)
5796int
5797main ()
5798{
5799zz("Hello");zz("%s","Hello");zz("%s%s","Hello","World")
5800 ;
5801 return 0;
5802}
5803_ACEOF
5804rm -f conftest.$ac_objext
5805if { (ac_try="$ac_compile"
5806case "(($ac_try" in
5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 *) ac_try_echo=$ac_try;;
5809esac
5810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811 (eval "$ac_compile") 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } && {
5818 test -z "$ac_c_werror_flag" ||
5819 test ! -s conftest.err
5820 } && test -s conftest.$ac_objext; then
5821 gnugo_cv_cpp_variadic_define="yes"
5822else
5823 echo "$as_me: failed program was:" >&5
5824sed 's/^/| /' conftest.$ac_ext >&5
5825
5826 gnugo_cv_cpp_variadic_define="no"
5827fi
5828
5829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830
5831fi
5832{ echo "$as_me:$LINENO: result: $gnugo_cv_cpp_variadic_define" >&5
5833echo "${ECHO_T}$gnugo_cv_cpp_variadic_define" >&6; }
5834if test "$gnugo_cv_cpp_variadic_define" = "yes";then
5835 cat >>confdefs.h <<\_ACEOF
5836#define HAVE_VARIADIC_DEFINE 1
5837_ACEOF
5838
5839fi
5840
5841
5842
5843
5844
5845{ echo "$as_me:$LINENO: checking whether $CC supports transparent unions" >&5
5846echo $ECHO_N "checking whether $CC supports transparent unions... $ECHO_C" >&6; }
5847if test "${gnugo_cv_transparent_unions+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849else
5850 cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h. */
5856
5857int
5858main ()
5859{
5860 struct {
5861 union {
5862 int x;
5863 float y;
5864 }
5865 } A = { { .y = 0.0 } };
5866 A.y = 1.0;
5867 ;
5868 return 0;
5869}
5870_ACEOF
5871rm -f conftest.$ac_objext
5872if { (ac_try="$ac_compile"
5873case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } && {
5885 test -z "$ac_c_werror_flag" ||
5886 test ! -s conftest.err
5887 } && test -s conftest.$ac_objext; then
5888 gnugo_cv_transparent_unions="yes"
5889else
5890 echo "$as_me: failed program was:" >&5
5891sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 gnugo_cv_transparent_unions="no"
5894fi
5895
5896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897
5898fi
5899{ echo "$as_me:$LINENO: result: $gnugo_cv_transparent_unions" >&5
5900echo "${ECHO_T}$gnugo_cv_transparent_unions" >&6; }
5901
5902if test "$gnugo_cv_transparent_unions" = "yes"; then
5903 cat >>confdefs.h <<\_ACEOF
5904#define HAVE_TRANSPARENT_UNIONS 1
5905_ACEOF
5906
5907fi
5908
5909
5910
5911
5912
5913
5914
5915
5916tmp_color_result="none"
5917
5918if test "$with_curses" != no -a "$enable_color" != no ; then
5919 tmp_color_result="none (curses failed)"
5920
5921
5922 if test "$term_header" != "no" -a "$curses_header" != "no" ; then
5923
5924 { echo "$as_me:$LINENO: checking for library containing tparm" >&5
5925echo $ECHO_N "checking for library containing tparm... $ECHO_C" >&6; }
5926if test "${ac_cv_search_tparm+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928else
5929 ac_func_search_save_LIBS=$LIBS
5930cat >conftest.$ac_ext <<_ACEOF
5931/* confdefs.h. */
5932_ACEOF
5933cat confdefs.h >>conftest.$ac_ext
5934cat >>conftest.$ac_ext <<_ACEOF
5935/* end confdefs.h. */
5936
5937/* Override any GCC internal prototype to avoid an error.
5938 Use char because int might match the return type of a GCC
5939 builtin and then its argument prototype would still apply. */
5940#ifdef __cplusplus
5941extern "C"
5942#endif
5943char tparm ();
5944int
5945main ()
5946{
5947return tparm ();
5948 ;
5949 return 0;
5950}
5951_ACEOF
5952for ac_lib in '' ncurses curses pdcurses termcap terminfo termlib; do
5953 if test -z "$ac_lib"; then
5954 ac_res="none required"
5955 else
5956 ac_res=-l$ac_lib
5957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5958 fi
5959 rm -f conftest.$ac_objext conftest$ac_exeext
5960if { (ac_try="$ac_link"
5961case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964esac
5965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_link") 2>conftest.er1
5967 ac_status=$?
5968 grep -v '^ *+' conftest.er1 >conftest.err
5969 rm -f conftest.er1
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } && {
5973 test -z "$ac_c_werror_flag" ||
5974 test ! -s conftest.err
5975 } && test -s conftest$ac_exeext &&
5976 $as_test_x conftest$ac_exeext; then
5977 ac_cv_search_tparm=$ac_res
5978else
5979 echo "$as_me: failed program was:" >&5
5980sed 's/^/| /' conftest.$ac_ext >&5
5981
5982
5983fi
5984
5985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5986 conftest$ac_exeext
5987 if test "${ac_cv_search_tparm+set}" = set; then
5988 break
5989fi
5990done
5991if test "${ac_cv_search_tparm+set}" = set; then
5992 :
5993else
5994 ac_cv_search_tparm=no
5995fi
5996rm conftest.$ac_ext
5997LIBS=$ac_func_search_save_LIBS
5998fi
5999{ echo "$as_me:$LINENO: result: $ac_cv_search_tparm" >&5
6000echo "${ECHO_T}$ac_cv_search_tparm" >&6; }
6001ac_res=$ac_cv_search_tparm
6002if test "$ac_res" != no; then
6003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6004
6005fi
6006
6007
6008 if test "$ac_cv_search_tparm" != "no" ; then
6009 cat >>confdefs.h <<\_ACEOF
6010#define TERMINFO 1
6011_ACEOF
6012
6013 tmp_color_result="curses"
6014 fi
6015 fi
6016fi
6017
6018if test "$with_curses" = no -a "$enable_color" != no ; then
6019 cat >>confdefs.h <<\_ACEOF
6020#define ANSI_COLOR 1
6021_ACEOF
6022
6023 tmp_color_result="ANSI color"
6024
6025fi
6026
6027{ echo "$as_me:$LINENO: checking for color support" >&5
6028echo $ECHO_N "checking for color support... $ECHO_C" >&6; }
6029{ echo "$as_me:$LINENO: result: $tmp_color_result" >&5
6030echo "${ECHO_T}$tmp_color_result" >&6; }
6031
6032
6033
6034
6035
6036if test "$with_readline" = yes ; then
6037
6038 { echo "$as_me:$LINENO: checking for library containing readline" >&5
6039echo $ECHO_N "checking for library containing readline... $ECHO_C" >&6; }
6040if test "${ac_cv_search_readline+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042else
6043 ac_func_search_save_LIBS=$LIBS
6044cat >conftest.$ac_ext <<_ACEOF
6045/* confdefs.h. */
6046_ACEOF
6047cat confdefs.h >>conftest.$ac_ext
6048cat >>conftest.$ac_ext <<_ACEOF
6049/* end confdefs.h. */
6050
6051/* Override any GCC internal prototype to avoid an error.
6052 Use char because int might match the return type of a GCC
6053 builtin and then its argument prototype would still apply. */
6054#ifdef __cplusplus
6055extern "C"
6056#endif
6057char readline ();
6058int
6059main ()
6060{
6061return readline ();
6062 ;
6063 return 0;
6064}
6065_ACEOF
6066for ac_lib in '' termcap readline; do
6067 if test -z "$ac_lib"; then
6068 ac_res="none required"
6069 else
6070 ac_res=-l$ac_lib
6071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6072 fi
6073 rm -f conftest.$ac_objext conftest$ac_exeext
6074if { (ac_try="$ac_link"
6075case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078esac
6079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_link") 2>conftest.er1
6081 ac_status=$?
6082 grep -v '^ *+' conftest.er1 >conftest.err
6083 rm -f conftest.er1
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } && {
6087 test -z "$ac_c_werror_flag" ||
6088 test ! -s conftest.err
6089 } && test -s conftest$ac_exeext &&
6090 $as_test_x conftest$ac_exeext; then
6091 ac_cv_search_readline=$ac_res
6092else
6093 echo "$as_me: failed program was:" >&5
6094sed 's/^/| /' conftest.$ac_ext >&5
6095
6096
6097fi
6098
6099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6100 conftest$ac_exeext
6101 if test "${ac_cv_search_readline+set}" = set; then
6102 break
6103fi
6104done
6105if test "${ac_cv_search_readline+set}" = set; then
6106 :
6107else
6108 ac_cv_search_readline=no
6109fi
6110rm conftest.$ac_ext
6111LIBS=$ac_func_search_save_LIBS
6112fi
6113{ echo "$as_me:$LINENO: result: $ac_cv_search_readline" >&5
6114echo "${ECHO_T}$ac_cv_search_readline" >&6; }
6115ac_res=$ac_cv_search_readline
6116if test "$ac_res" != no; then
6117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6118
6119fi
6120
6121
6122 if test "$ac_cv_search_readline" != "no" ; then
6123 cat >>confdefs.h <<\_ACEOF
6124#define READLINE 1
6125_ACEOF
6126
6127 else
6128 cat >>confdefs.h <<\_ACEOF
6129#define READLINE 0
6130_ACEOF
6131
6132 fi
6133else
6134 cat >>confdefs.h <<\_ACEOF
6135#define READLINE 0
6136_ACEOF
6137
6138fi
6139
6140
6141
6142
6143
6144if test "$enable_grid_opt" = "distrust" ; then
6145 cat >>confdefs.h <<\_ACEOF
6146#define GRID_OPT 2
6147_ACEOF
6148
6149else
6150 if test "$enable_grid_opt" = "no" ; then
6151 cat >>confdefs.h <<\_ACEOF
6152#define GRID_OPT 0
6153_ACEOF
6154
6155 else
6156 cat >>confdefs.h <<\_ACEOF
6157#define GRID_OPT 1
6158_ACEOF
6159
6160 fi
6161fi
6162
6163
6164
6165
6166
6167
6168if test "$enable_cache_size" ; then
6169 cat >>confdefs.h <<_ACEOF
6170#define DEFAULT_MEMORY $enable_cache_size
6171_ACEOF
6172
6173else
6174 cat >>confdefs.h <<_ACEOF
6175#define DEFAULT_MEMORY $default_cache_size
6176_ACEOF
6177
6178fi
6179
6180
6181
6182
6183
6184
6185if test "$enable_level" ; then
6186 cat >>confdefs.h <<_ACEOF
6187#define DEFAULT_LEVEL $enable_level
6188_ACEOF
6189
6190else
6191 cat >>confdefs.h <<_ACEOF
6192#define DEFAULT_LEVEL $default_level
6193_ACEOF
6194
6195fi
6196
6197
6198
6199
6200
6201if test "$enable_owl_node_limit" ; then
6202 cat >>confdefs.h <<_ACEOF
6203#define OWL_NODE_LIMIT $enable_owl_node_limit
6204_ACEOF
6205
6206else
6207 cat >>confdefs.h <<_ACEOF
6208#define OWL_NODE_LIMIT $default_owl_node_limit
6209_ACEOF
6210
6211fi
6212
6213
6214
6215
6216
6217
6218if test "$enable_semeai_node_limit" ; then
6219 cat >>confdefs.h <<_ACEOF
6220#define SEMEAI_NODE_LIMIT $enable_semeai_node_limit
6221_ACEOF
6222
6223else
6224 cat >>confdefs.h <<_ACEOF
6225#define SEMEAI_NODE_LIMIT $default_semeai_node_limit
6226_ACEOF
6227
6228fi
6229
6230
6231
6232
6233if test "$enable_dfa" != "no"; then
6234 DFA_ENABLED_TRUE=
6235 DFA_ENABLED_FALSE='#'
6236else
6237 DFA_ENABLED_TRUE='#'
6238 DFA_ENABLED_FALSE=
6239fi
6240
6241
6242rm -f \
6243 patterns/owl_attackpat.c \
6244 patterns/owl_defendpat.c \
6245 patterns/owl_vital_apat.c
6246
6247
6248
6249
6250
6251
6252if test "$enable_chinese_rules" = "yes" ; then
6253 cat >>confdefs.h <<\_ACEOF
6254#define CHINESE_RULES 1
6255_ACEOF
6256
6257else
6258 cat >>confdefs.h <<\_ACEOF
6259#define CHINESE_RULES 0
6260_ACEOF
6261
6262fi
6263
6264
6265
6266
6267
6268if test "$disable_resignation_allowed" = "yes" ; then
6269 cat >>confdefs.h <<\_ACEOF
6270#define RESIGNATION_ALLOWED 0
6271_ACEOF
6272
6273else
6274 cat >>confdefs.h <<\_ACEOF
6275#define RESIGNATION_ALLOWED 1
6276_ACEOF
6277
6278fi
6279
6280
6281
6282
6283
6284if test "$enable_metamachine" = "yes" ; then
6285 cat >>confdefs.h <<\_ACEOF
6286#define ORACLE 1
6287_ACEOF
6288
6289else
6290 cat >>confdefs.h <<\_ACEOF
6291#define ORACLE 0
6292_ACEOF
6293
6294fi
6295
6296
6297
6298
6299
6300if test "$enable_experimental_break_in" = "no" ; then
6301 cat >>confdefs.h <<\_ACEOF
6302#define USE_BREAK_IN 0
6303_ACEOF
6304
6305else
6306 cat >>confdefs.h <<\_ACEOF
6307#define USE_BREAK_IN 1
6308_ACEOF
6309
6310fi
6311
6312
6313
6314
6315
6316if test "$enable_experimental_owl_ext" = "yes" ; then
6317 cat >>confdefs.h <<\_ACEOF
6318#define EXPERIMENTAL_OWL_EXT 1
6319_ACEOF
6320
6321else
6322 cat >>confdefs.h <<\_ACEOF
6323#define EXPERIMENTAL_OWL_EXT 0
6324_ACEOF
6325
6326fi
6327
6328
6329
6330
6331
6332if test "$enable_cosmic_gnugo" = "yes" ; then
6333 cat >>confdefs.h <<\_ACEOF
6334#define COSMIC_GNUGO 1
6335_ACEOF
6336
6337else
6338 cat >>confdefs.h <<\_ACEOF
6339#define COSMIC_GNUGO 0
6340_ACEOF
6341
6342fi
6343
6344
6345
6346
6347
6348if test "$enable_large_scale" = "yes" ; then
6349 cat >>confdefs.h <<\_ACEOF
6350#define LARGE_SCALE 1
6351_ACEOF
6352
6353else
6354 cat >>confdefs.h <<\_ACEOF
6355#define LARGE_SCALE 0
6356_ACEOF
6357
6358fi
6359
6360
6361
6362
6363
6364if test "$enable_experimental_connections" = "no" ; then
6365 cat >>confdefs.h <<\_ACEOF
6366#define EXPERIMENTAL_CONNECTIONS 0
6367_ACEOF
6368
6369else
6370 cat >>confdefs.h <<\_ACEOF
6371#define EXPERIMENTAL_CONNECTIONS 1
6372_ACEOF
6373
6374fi
6375
6376
6377
6378
6379
6380if test "$enable_alternate_connections" = "no" ; then
6381 cat >>confdefs.h <<\_ACEOF
6382#define ALTERNATE_CONNECTIONS 0
6383_ACEOF
6384
6385else
6386 cat >>confdefs.h <<\_ACEOF
6387#define ALTERNATE_CONNECTIONS 1
6388_ACEOF
6389
6390fi
6391
6392
6393
6394
6395
6396if test "$enable_owl_threats" = "yes" ; then
6397 cat >>confdefs.h <<\_ACEOF
6398#define OWL_THREATS 1
6399_ACEOF
6400
6401else
6402 cat >>confdefs.h <<\_ACEOF
6403#define OWL_THREATS 0
6404_ACEOF
6405
6406fi
6407
6408
6409
6410
6411
6412if test "$enable_valgrind" = "yes" ; then
6413 cat >>confdefs.h <<\_ACEOF
6414#define USE_VALGRIND 1
6415_ACEOF
6416
6417else
6418 cat >>confdefs.h <<\_ACEOF
6419#define USE_VALGRIND 0
6420_ACEOF
6421
6422fi
6423
6424
6425
6426
6427
6428if test "$ac_compiler_gnu" = "yes"; then
6429 GCC_ONLY_TRUE=
6430 GCC_ONLY_FALSE='#'
6431else
6432 GCC_ONLY_TRUE='#'
6433 GCC_ONLY_FALSE=
6434fi
6435
6436
6437
6438
6439
6440
6441
6442if test "$ac_compiler_gnu" = "yes"; then
6443
6444 GCC_MAJOR_VERSION=`echo __GNUC__ | $CC -E -xc - | tail -n 1`
6445 GCC_MINOR_VERSION=`echo __GNUC_MINOR__ | $CC -E -xc - | tail -n 1`
6446
6447 GNU_GO_WARNINGS='-Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wundef'
6448
6449 if (test $GCC_MAJOR_VERSION -eq 3 && test $GCC_MINOR_VERSION -ge 4) || test $GCC_MAJOR_VERSION -gt 3; then
6450 GNU_GO_WARNINGS="$GNU_GO_WARNINGS -Wdeclaration-after-statement"
6451 fi
6452
6453else
6454 GCC_MAJOR_VERSION=0
6455 GCC_MINOR_VERSION=0
6456 GNU_GO_WARNINGS=''
6457fi
6458
6459
6460
6461
6462
6463
6464if test "$enable_socket_support" != "no"; then
6465 # Check for all required headers, macros, structures and functions
6466 # at once.
6467 { echo "$as_me:$LINENO: checking whether socket support can be compiled" >&5
6468echo $ECHO_N "checking whether socket support can be compiled... $ECHO_C" >&6; }
6469if test "${gnugo_cv_sockets_supported+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472 cat >conftest.$ac_ext <<_ACEOF
6473/* confdefs.h. */
6474_ACEOF
6475cat confdefs.h >>conftest.$ac_ext
6476cat >>conftest.$ac_ext <<_ACEOF
6477/* end confdefs.h. */
6478#if !defined(_WIN32) && !defined(_WIN32_WCE)
6479#include <sys/socket.h>
6480#include <netinet/in.h>
6481#include <arpa/inet.h>
6482#include <netdb.h>
6483#else /* on Windows */
6484#include <winsock.h>
6485#endif /* on Windows */
6486int
6487main ()
6488{
6489 struct sockaddr_in A;
6490 struct hostent *H;
6491 A.sin_family = AF_INET;
6492 A.sin_addr.s_addr = htonl(INADDR_ANY);
6493 A.sin_port = htons(0);
6494 gethostbyname(0);
6495 socket(PF_INET, SOCK_STREAM, 0);
6496 connect(0, 0, 0);
6497 bind(0, 0, 0);
6498 listen(0, 0);
6499 accept(0, 0, 0);
6500 ;
6501 return 0;
6502}
6503_ACEOF
6504rm -f conftest.$ac_objext conftest$ac_exeext
6505if { (ac_try="$ac_link"
6506case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509esac
6510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_link") 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest$ac_exeext &&
6521 $as_test_x conftest$ac_exeext; then
6522 gnugo_cv_sockets_supported="yes"
6523else
6524 echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527 gnugo_cv_sockets_supported="no"
6528fi
6529
6530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6531 conftest$ac_exeext conftest.$ac_ext
6532fi
6533{ echo "$as_me:$LINENO: result: $gnugo_cv_sockets_supported" >&5
6534echo "${ECHO_T}$gnugo_cv_sockets_supported" >&6; }
6535
6536 if test "$gnugo_cv_sockets_supported" = "yes"; then
6537 cat >>confdefs.h <<\_ACEOF
6538#define ENABLE_SOCKET_SUPPORT 1
6539_ACEOF
6540
6541 else
6542 if test "$enable_socket_support" = "yes"; then
6543 { echo "$as_me:$LINENO: WARNING:
6544*** Socket support was requested but does not pass configure test. ***
6545*** Proceed only if you know what you are doing. ***" >&5
6546echo "$as_me: WARNING:
6547*** Socket support was requested but does not pass configure test. ***
6548*** Proceed only if you know what you are doing. ***" >&2;}
6549 cat >>confdefs.h <<\_ACEOF
6550#define ENABLE_SOCKET_SUPPORT 1
6551_ACEOF
6552
6553 fi
6554 fi
6555fi
6556
6557#AM_GNU_GETTEXT
6558#AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
6559
6560
6561ac_config_files="$ac_config_files Makefile interface/Makefile patterns/Makefile sgf/Makefile utils/Makefile engine/Makefile doc/Makefile regression/Makefile config.vc:config.vcin"
6562
6563cat >confcache <<\_ACEOF
6564# This file is a shell script that caches the results of configure
6565# tests run on this system so they can be shared between configure
6566# scripts and configure runs, see configure's option --config-cache.
6567# It is not useful on other systems. If it contains results you don't
6568# want to keep, you may remove or edit it.
6569#
6570# config.status only pays attention to the cache file if you give it
6571# the --recheck option to rerun configure.
6572#
6573# `ac_cv_env_foo' variables (set or unset) will be overridden when
6574# loading this file, other *unset* `ac_cv_foo' will be assigned the
6575# following values.
6576
6577_ACEOF
6578
6579# The following way of writing the cache mishandles newlines in values,
6580# but we know of no workaround that is simple, portable, and efficient.
6581# So, we kill variables containing newlines.
6582# Ultrix sh set writes to stderr and can't be redirected directly,
6583# and sets the high bit in the cache file unless we assign to the vars.
6584(
6585 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6586 eval ac_val=\$$ac_var
6587 case $ac_val in #(
6588 *${as_nl}*)
6589 case $ac_var in #(
6590 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6591echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6592 esac
6593 case $ac_var in #(
6594 _ | IFS | as_nl) ;; #(
6595 *) $as_unset $ac_var ;;
6596 esac ;;
6597 esac
6598 done
6599
6600 (set) 2>&1 |
6601 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6602 *${as_nl}ac_space=\ *)
6603 # `set' does not quote correctly, so add quotes (double-quote
6604 # substitution turns \\\\ into \\, and sed turns \\ into \).
6605 sed -n \
6606 "s/'/'\\\\''/g;
6607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6608 ;; #(
6609 *)
6610 # `set' quotes correctly as required by POSIX, so do not add quotes.
6611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6612 ;;
6613 esac |
6614 sort
6615) |
6616 sed '
6617 /^ac_cv_env_/b end
6618 t clear
6619 :clear
6620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6621 t end
6622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6623 :end' >>confcache
6624if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6625 if test -w "$cache_file"; then
6626 test "x$cache_file" != "x/dev/null" &&
6627 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6628echo "$as_me: updating cache $cache_file" >&6;}
6629 cat confcache >$cache_file
6630 else
6631 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6632echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6633 fi
6634fi
6635rm -f confcache
6636
6637test "x$prefix" = xNONE && prefix=$ac_default_prefix
6638# Let make expand exec_prefix.
6639test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6640
6641DEFS=-DHAVE_CONFIG_H
6642
6643ac_libobjs=
6644ac_ltlibobjs=
6645for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6646 # 1. Remove the extension, and $U if already installed.
6647 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6648 ac_i=`echo "$ac_i" | sed "$ac_script"`
6649 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6650 # will be set to the directory where LIBOBJS objects are built.
6651 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6652 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6653done
6654LIBOBJS=$ac_libobjs
6655
6656LTLIBOBJS=$ac_ltlibobjs
6657
6658
6659if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6660 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6661Usually this means the macro was only invoked conditionally." >&5
6662echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6663Usually this means the macro was only invoked conditionally." >&2;}
6664 { (exit 1); exit 1; }; }
6665fi
6666if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6667 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6668Usually this means the macro was only invoked conditionally." >&5
6669echo "$as_me: error: conditional \"AMDEP\" was never defined.
6670Usually this means the macro was only invoked conditionally." >&2;}
6671 { (exit 1); exit 1; }; }
6672fi
6673if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6674 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6675Usually this means the macro was only invoked conditionally." >&5
6676echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6677Usually this means the macro was only invoked conditionally." >&2;}
6678 { (exit 1); exit 1; }; }
6679fi
6680if test -z "${DFA_ENABLED_TRUE}" && test -z "${DFA_ENABLED_FALSE}"; then
6681 { { echo "$as_me:$LINENO: error: conditional \"DFA_ENABLED\" was never defined.
6682Usually this means the macro was only invoked conditionally." >&5
6683echo "$as_me: error: conditional \"DFA_ENABLED\" was never defined.
6684Usually this means the macro was only invoked conditionally." >&2;}
6685 { (exit 1); exit 1; }; }
6686fi
6687if test -z "${GCC_ONLY_TRUE}" && test -z "${GCC_ONLY_FALSE}"; then
6688 { { echo "$as_me:$LINENO: error: conditional \"GCC_ONLY\" was never defined.
6689Usually this means the macro was only invoked conditionally." >&5
6690echo "$as_me: error: conditional \"GCC_ONLY\" was never defined.
6691Usually this means the macro was only invoked conditionally." >&2;}
6692 { (exit 1); exit 1; }; }
6693fi
6694
6695: ${CONFIG_STATUS=./config.status}
6696ac_clean_files_save=$ac_clean_files
6697ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6698{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6699echo "$as_me: creating $CONFIG_STATUS" >&6;}
6700cat >$CONFIG_STATUS <<_ACEOF
6701#! $SHELL
6702# Generated by $as_me.
6703# Run this file to recreate the current configuration.
6704# Compiler output produced by configure, useful for debugging
6705# configure, is in config.log if it exists.
6706
6707debug=false
6708ac_cs_recheck=false
6709ac_cs_silent=false
6710SHELL=\${CONFIG_SHELL-$SHELL}
6711_ACEOF
6712
6713cat >>$CONFIG_STATUS <<\_ACEOF
6714## --------------------- ##
6715## M4sh Initialization. ##
6716## --------------------- ##
6717
6718# Be more Bourne compatible
6719DUALCASE=1; export DUALCASE # for MKS sh
6720if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6721 emulate sh
6722 NULLCMD=:
6723 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6724 # is contrary to our usage. Disable this feature.
6725 alias -g '${1+"$@"}'='"$@"'
6726 setopt NO_GLOB_SUBST
6727else
6728 case `(set -o) 2>/dev/null` in
6729 *posix*) set -o posix ;;
6730esac
6731
6732fi
6733
6734
6735
6736
6737# PATH needs CR
6738# Avoid depending upon Character Ranges.
6739as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6740as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6741as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6742as_cr_digits='0123456789'
6743as_cr_alnum=$as_cr_Letters$as_cr_digits
6744
6745# The user is always right.
6746if test "${PATH_SEPARATOR+set}" != set; then
6747 echo "#! /bin/sh" >conf$$.sh
6748 echo "exit 0" >>conf$$.sh
6749 chmod +x conf$$.sh
6750 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6751 PATH_SEPARATOR=';'
6752 else
6753 PATH_SEPARATOR=:
6754 fi
6755 rm -f conf$$.sh
6756fi
6757
6758# Support unset when possible.
6759if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6760 as_unset=unset
6761else
6762 as_unset=false
6763fi
6764
6765
6766# IFS
6767# We need space, tab and new line, in precisely that order. Quoting is
6768# there to prevent editors from complaining about space-tab.
6769# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6770# splitting by setting IFS to empty value.)
6771as_nl='
6772'
6773IFS=" "" $as_nl"
6774
6775# Find who we are. Look in the path if we contain no directory separator.
6776case $0 in
6777 *[\\/]* ) as_myself=$0 ;;
6778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6784done
6785IFS=$as_save_IFS
6786
6787 ;;
6788esac
6789# We did not find ourselves, most probably we were run as `sh COMMAND'
6790# in which case we are not to be found in the path.
6791if test "x$as_myself" = x; then
6792 as_myself=$0
6793fi
6794if test ! -f "$as_myself"; then
6795 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6796 { (exit 1); exit 1; }
6797fi
6798
6799# Work around bugs in pre-3.0 UWIN ksh.
6800for as_var in ENV MAIL MAILPATH
6801do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6802done
6803PS1='$ '
6804PS2='> '
6805PS4='+ '
6806
6807# NLS nuisances.
6808for as_var in \
6809 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6810 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6811 LC_TELEPHONE LC_TIME
6812do
6813 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6814 eval $as_var=C; export $as_var
6815 else
6816 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6817 fi
6818done
6819
6820# Required to use basename.
6821if expr a : '\(a\)' >/dev/null 2>&1 &&
6822 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6823 as_expr=expr
6824else
6825 as_expr=false
6826fi
6827
6828if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6829 as_basename=basename
6830else
6831 as_basename=false
6832fi
6833
6834
6835# Name of the executable.
6836as_me=`$as_basename -- "$0" ||
6837$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6838 X"$0" : 'X\(//\)$' \| \
6839 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6840echo X/"$0" |
6841 sed '/^.*\/\([^/][^/]*\)\/*$/{
6842 s//\1/
6843 q
6844 }
6845 /^X\/\(\/\/\)$/{
6846 s//\1/
6847 q
6848 }
6849 /^X\/\(\/\).*/{
6850 s//\1/
6851 q
6852 }
6853 s/.*/./; q'`
6854
6855# CDPATH.
6856$as_unset CDPATH
6857
6858
6859
6860 as_lineno_1=$LINENO
6861 as_lineno_2=$LINENO
6862 test "x$as_lineno_1" != "x$as_lineno_2" &&
6863 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6864
6865 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6866 # uniformly replaced by the line number. The first 'sed' inserts a
6867 # line-number line after each line using $LINENO; the second 'sed'
6868 # does the real work. The second script uses 'N' to pair each
6869 # line-number line with the line containing $LINENO, and appends
6870 # trailing '-' during substitution so that $LINENO is not a special
6871 # case at line end.
6872 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6873 # scripts with optimization help from Paolo Bonzini. Blame Lee
6874 # E. McMahon (1931-1989) for sed's syntax. :-)
6875 sed -n '
6876 p
6877 /[$]LINENO/=
6878 ' <$as_myself |
6879 sed '
6880 s/[$]LINENO.*/&-/
6881 t lineno
6882 b
6883 :lineno
6884 N
6885 :loop
6886 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6887 t loop
6888 s/-\n.*//
6889 ' >$as_me.lineno &&
6890 chmod +x "$as_me.lineno" ||
6891 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6892 { (exit 1); exit 1; }; }
6893
6894 # Don't try to exec as it changes $[0], causing all sort of problems
6895 # (the dirname of $[0] is not the place where we might find the
6896 # original and so on. Autoconf is especially sensitive to this).
6897 . "./$as_me.lineno"
6898 # Exit status is that of the last command.
6899 exit
6900}
6901
6902
6903if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6904 as_dirname=dirname
6905else
6906 as_dirname=false
6907fi
6908
6909ECHO_C= ECHO_N= ECHO_T=
6910case `echo -n x` in
6911-n*)
6912 case `echo 'x\c'` in
6913 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6914 *) ECHO_C='\c';;
6915 esac;;
6916*)
6917 ECHO_N='-n';;
6918esac
6919
6920if expr a : '\(a\)' >/dev/null 2>&1 &&
6921 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6922 as_expr=expr
6923else
6924 as_expr=false
6925fi
6926
6927rm -f conf$$ conf$$.exe conf$$.file
6928if test -d conf$$.dir; then
6929 rm -f conf$$.dir/conf$$.file
6930else
6931 rm -f conf$$.dir
6932 mkdir conf$$.dir
6933fi
6934echo >conf$$.file
6935if ln -s conf$$.file conf$$ 2>/dev/null; then
6936 as_ln_s='ln -s'
6937 # ... but there are two gotchas:
6938 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6939 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6940 # In both cases, we have to default to `cp -p'.
6941 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6942 as_ln_s='cp -p'
6943elif ln conf$$.file conf$$ 2>/dev/null; then
6944 as_ln_s=ln
6945else
6946 as_ln_s='cp -p'
6947fi
6948rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6949rmdir conf$$.dir 2>/dev/null
6950
6951if mkdir -p . 2>/dev/null; then
6952 as_mkdir_p=:
6953else
6954 test -d ./-p && rmdir ./-p
6955 as_mkdir_p=false
6956fi
6957
6958if test -x / >/dev/null 2>&1; then
6959 as_test_x='test -x'
6960else
6961 if ls -dL / >/dev/null 2>&1; then
6962 as_ls_L_option=L
6963 else
6964 as_ls_L_option=
6965 fi
6966 as_test_x='
6967 eval sh -c '\''
6968 if test -d "$1"; then
6969 test -d "$1/.";
6970 else
6971 case $1 in
6972 -*)set "./$1";;
6973 esac;
6974 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6975 ???[sx]*):;;*)false;;esac;fi
6976 '\'' sh
6977 '
6978fi
6979as_executable_p=$as_test_x
6980
6981# Sed expression to map a string onto a valid CPP name.
6982as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6983
6984# Sed expression to map a string onto a valid variable name.
6985as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6986
6987
6988exec 6>&1
6989
6990# Save the log message, to keep $[0] and so on meaningful, and to
6991# report actual input values of CONFIG_FILES etc. instead of their
6992# values after options handling.
6993ac_log="
6994This file was extended by gnugo $as_me 3.8, which was
6995generated by GNU Autoconf 2.61. Invocation command line was
6996
6997 CONFIG_FILES = $CONFIG_FILES
6998 CONFIG_HEADERS = $CONFIG_HEADERS
6999 CONFIG_LINKS = $CONFIG_LINKS
7000 CONFIG_COMMANDS = $CONFIG_COMMANDS
7001 $ $0 $@
7002
7003on `(hostname || uname -n) 2>/dev/null | sed 1q`
7004"
7005
7006_ACEOF
7007
7008cat >>$CONFIG_STATUS <<_ACEOF
7009# Files that config.status was made for.
7010config_files="$ac_config_files"
7011config_headers="$ac_config_headers"
7012config_commands="$ac_config_commands"
7013
7014_ACEOF
7015
7016cat >>$CONFIG_STATUS <<\_ACEOF
7017ac_cs_usage="\
7018\`$as_me' instantiates files from templates according to the
7019current configuration.
7020
7021Usage: $0 [OPTIONS] [FILE]...
7022
7023 -h, --help print this help, then exit
7024 -V, --version print version number and configuration settings, then exit
7025 -q, --quiet do not print progress messages
7026 -d, --debug don't remove temporary files
7027 --recheck update $as_me by reconfiguring in the same conditions
7028 --file=FILE[:TEMPLATE]
7029 instantiate the configuration file FILE
7030 --header=FILE[:TEMPLATE]
7031 instantiate the configuration header FILE
7032
7033Configuration files:
7034$config_files
7035
7036Configuration headers:
7037$config_headers
7038
7039Configuration commands:
7040$config_commands
7041
7042Report bugs to <bug-autoconf@gnu.org>."
7043
7044_ACEOF
7045cat >>$CONFIG_STATUS <<_ACEOF
7046ac_cs_version="\\
7047gnugo config.status 3.8
7048configured by $0, generated by GNU Autoconf 2.61,
7049 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7050
7051Copyright (C) 2006 Free Software Foundation, Inc.
7052This config.status script is free software; the Free Software Foundation
7053gives unlimited permission to copy, distribute and modify it."
7054
7055ac_pwd='$ac_pwd'
7056srcdir='$srcdir'
7057INSTALL='$INSTALL'
7058_ACEOF
7059
7060cat >>$CONFIG_STATUS <<\_ACEOF
7061# If no file are specified by the user, then we need to provide default
7062# value. By we need to know if files were specified by the user.
7063ac_need_defaults=:
7064while test $# != 0
7065do
7066 case $1 in
7067 --*=*)
7068 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7069 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7070 ac_shift=:
7071 ;;
7072 *)
7073 ac_option=$1
7074 ac_optarg=$2
7075 ac_shift=shift
7076 ;;
7077 esac
7078
7079 case $ac_option in
7080 # Handling of the options.
7081 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7082 ac_cs_recheck=: ;;
7083 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7084 echo "$ac_cs_version"; exit ;;
7085 --debug | --debu | --deb | --de | --d | -d )
7086 debug=: ;;
7087 --file | --fil | --fi | --f )
7088 $ac_shift
7089 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7090 ac_need_defaults=false;;
7091 --header | --heade | --head | --hea )
7092 $ac_shift
7093 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7094 ac_need_defaults=false;;
7095 --he | --h)
7096 # Conflict between --help and --header
7097 { echo "$as_me: error: ambiguous option: $1
7098Try \`$0 --help' for more information." >&2
7099 { (exit 1); exit 1; }; };;
7100 --help | --hel | -h )
7101 echo "$ac_cs_usage"; exit ;;
7102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7103 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7104 ac_cs_silent=: ;;
7105
7106 # This is an error.
7107 -*) { echo "$as_me: error: unrecognized option: $1
7108Try \`$0 --help' for more information." >&2
7109 { (exit 1); exit 1; }; } ;;
7110
7111 *) ac_config_targets="$ac_config_targets $1"
7112 ac_need_defaults=false ;;
7113
7114 esac
7115 shift
7116done
7117
7118ac_configure_extra_args=
7119
7120if $ac_cs_silent; then
7121 exec 6>/dev/null
7122 ac_configure_extra_args="$ac_configure_extra_args --silent"
7123fi
7124
7125_ACEOF
7126cat >>$CONFIG_STATUS <<_ACEOF
7127if \$ac_cs_recheck; then
7128 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7129 CONFIG_SHELL=$SHELL
7130 export CONFIG_SHELL
7131 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7132fi
7133
7134_ACEOF
7135cat >>$CONFIG_STATUS <<\_ACEOF
7136exec 5>>config.log
7137{
7138 echo
7139 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7140## Running $as_me. ##
7141_ASBOX
7142 echo "$ac_log"
7143} >&5
7144
7145_ACEOF
7146cat >>$CONFIG_STATUS <<_ACEOF
7147#
7148# INIT-COMMANDS
7149#
7150AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7151
7152_ACEOF
7153
7154cat >>$CONFIG_STATUS <<\_ACEOF
7155
7156# Handling of arguments.
7157for ac_config_target in $ac_config_targets
7158do
7159 case $ac_config_target in
7160 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7161 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7162 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7163 "interface/Makefile") CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
7164 "patterns/Makefile") CONFIG_FILES="$CONFIG_FILES patterns/Makefile" ;;
7165 "sgf/Makefile") CONFIG_FILES="$CONFIG_FILES sgf/Makefile" ;;
7166 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
7167 "engine/Makefile") CONFIG_FILES="$CONFIG_FILES engine/Makefile" ;;
7168 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7169 "regression/Makefile") CONFIG_FILES="$CONFIG_FILES regression/Makefile" ;;
7170 "config.vc") CONFIG_FILES="$CONFIG_FILES config.vc:config.vcin" ;;
7171
7172 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7173echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7174 { (exit 1); exit 1; }; };;
7175 esac
7176done
7177
7178
7179# If the user did not use the arguments to specify the items to instantiate,
7180# then the envvar interface is used. Set only those that are not.
7181# We use the long form for the default assignment because of an extremely
7182# bizarre bug on SunOS 4.1.3.
7183if $ac_need_defaults; then
7184 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7185 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7186 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7187fi
7188
7189# Have a temporary directory for convenience. Make it in the build tree
7190# simply because there is no reason against having it here, and in addition,
7191# creating and moving files from /tmp can sometimes cause problems.
7192# Hook for its removal unless debugging.
7193# Note that there is a small window in which the directory will not be cleaned:
7194# after its creation but before its name has been assigned to `$tmp'.
7195$debug ||
7196{
7197 tmp=
7198 trap 'exit_status=$?
7199 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7200' 0
7201 trap '{ (exit 1); exit 1; }' 1 2 13 15
7202}
7203# Create a (secure) tmp directory for tmp files.
7204
7205{
7206 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7207 test -n "$tmp" && test -d "$tmp"
7208} ||
7209{
7210 tmp=./conf$$-$RANDOM
7211 (umask 077 && mkdir "$tmp")
7212} ||
7213{
7214 echo "$me: cannot create a temporary directory in ." >&2
7215 { (exit 1); exit 1; }
7216}
7217
7218#
7219# Set up the sed scripts for CONFIG_FILES section.
7220#
7221
7222# No need to generate the scripts if there are no CONFIG_FILES.
7223# This happens for instance when ./config.status config.h
7224if test -n "$CONFIG_FILES"; then
7225
7226_ACEOF
7227
7228
7229
7230ac_delim='%!_!# '
7231for ac_last_try in false false false false false :; do
7232 cat >conf$$subs.sed <<_ACEOF
7233SHELL!$SHELL$ac_delim
7234PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7235PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7236PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7237PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7238PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7239PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7240exec_prefix!$exec_prefix$ac_delim
7241prefix!$prefix$ac_delim
7242program_transform_name!$program_transform_name$ac_delim
7243bindir!$bindir$ac_delim
7244sbindir!$sbindir$ac_delim
7245libexecdir!$libexecdir$ac_delim
7246datarootdir!$datarootdir$ac_delim
7247datadir!$datadir$ac_delim
7248sysconfdir!$sysconfdir$ac_delim
7249sharedstatedir!$sharedstatedir$ac_delim
7250localstatedir!$localstatedir$ac_delim
7251includedir!$includedir$ac_delim
7252oldincludedir!$oldincludedir$ac_delim
7253docdir!$docdir$ac_delim
7254infodir!$infodir$ac_delim
7255htmldir!$htmldir$ac_delim
7256dvidir!$dvidir$ac_delim
7257pdfdir!$pdfdir$ac_delim
7258psdir!$psdir$ac_delim
7259libdir!$libdir$ac_delim
7260localedir!$localedir$ac_delim
7261mandir!$mandir$ac_delim
7262DEFS!$DEFS$ac_delim
7263ECHO_C!$ECHO_C$ac_delim
7264ECHO_N!$ECHO_N$ac_delim
7265ECHO_T!$ECHO_T$ac_delim
7266LIBS!$LIBS$ac_delim
7267build_alias!$build_alias$ac_delim
7268host_alias!$host_alias$ac_delim
7269target_alias!$target_alias$ac_delim
7270INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7271INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7272INSTALL_DATA!$INSTALL_DATA$ac_delim
7273CYGPATH_W!$CYGPATH_W$ac_delim
7274PACKAGE!$PACKAGE$ac_delim
7275VERSION!$VERSION$ac_delim
7276ACLOCAL!$ACLOCAL$ac_delim
7277AUTOCONF!$AUTOCONF$ac_delim
7278AUTOMAKE!$AUTOMAKE$ac_delim
7279AUTOHEADER!$AUTOHEADER$ac_delim
7280MAKEINFO!$MAKEINFO$ac_delim
7281install_sh!$install_sh$ac_delim
7282STRIP!$STRIP$ac_delim
7283INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7284mkdir_p!$mkdir_p$ac_delim
7285AWK!$AWK$ac_delim
7286SET_MAKE!$SET_MAKE$ac_delim
7287am__leading_dot!$am__leading_dot$ac_delim
7288AMTAR!$AMTAR$ac_delim
7289am__tar!$am__tar$ac_delim
7290am__untar!$am__untar$ac_delim
7291MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
7292MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
7293MAINT!$MAINT$ac_delim
7294CC!$CC$ac_delim
7295CFLAGS!$CFLAGS$ac_delim
7296LDFLAGS!$LDFLAGS$ac_delim
7297CPPFLAGS!$CPPFLAGS$ac_delim
7298ac_ct_CC!$ac_ct_CC$ac_delim
7299EXEEXT!$EXEEXT$ac_delim
7300OBJEXT!$OBJEXT$ac_delim
7301DEPDIR!$DEPDIR$ac_delim
7302am__include!$am__include$ac_delim
7303am__quote!$am__quote$ac_delim
7304AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7305AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7306AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7307CCDEPMODE!$CCDEPMODE$ac_delim
7308am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7309am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7310CPP!$CPP$ac_delim
7311RANLIB!$RANLIB$ac_delim
7312GREP!$GREP$ac_delim
7313EGREP!$EGREP$ac_delim
7314glibconfig!$glibconfig$ac_delim
7315DFA_ENABLED_TRUE!$DFA_ENABLED_TRUE$ac_delim
7316DFA_ENABLED_FALSE!$DFA_ENABLED_FALSE$ac_delim
7317GCC_ONLY_TRUE!$GCC_ONLY_TRUE$ac_delim
7318GCC_ONLY_FALSE!$GCC_ONLY_FALSE$ac_delim
7319GCC_MAJOR_VERSION!$GCC_MAJOR_VERSION$ac_delim
7320GCC_MINOR_VERSION!$GCC_MINOR_VERSION$ac_delim
7321GNU_GO_WARNINGS!$GNU_GO_WARNINGS$ac_delim
7322LIBOBJS!$LIBOBJS$ac_delim
7323LTLIBOBJS!$LTLIBOBJS$ac_delim
7324_ACEOF
7325
7326 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
7327 break
7328 elif $ac_last_try; then
7329 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7330echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7331 { (exit 1); exit 1; }; }
7332 else
7333 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7334 fi
7335done
7336
7337ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7338if test -n "$ac_eof"; then
7339 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7340 ac_eof=`expr $ac_eof + 1`
7341fi
7342
7343cat >>$CONFIG_STATUS <<_ACEOF
7344cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7345/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7346_ACEOF
7347sed '
7348s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7349s/^/s,@/; s/!/@,|#_!!_#|/
7350:n
7351t n
7352s/'"$ac_delim"'$/,g/; t
7353s/$/\\/; p
7354N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7355' >>$CONFIG_STATUS <conf$$subs.sed
7356rm -f conf$$subs.sed
7357cat >>$CONFIG_STATUS <<_ACEOF
7358:end
7359s/|#_!!_#|//g
7360CEOF$ac_eof
7361_ACEOF
7362
7363
7364# VPATH may cause trouble with some makes, so we remove $(srcdir),
7365# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7366# trailing colons and then remove the whole line if VPATH becomes empty
7367# (actually we leave an empty line to preserve line numbers).
7368if test "x$srcdir" = x.; then
7369 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7370s/:*\$(srcdir):*/:/
7371s/:*\${srcdir}:*/:/
7372s/:*@srcdir@:*/:/
7373s/^\([^=]*=[ ]*\):*/\1/
7374s/:*$//
7375s/^[^=]*=[ ]*$//
7376}'
7377fi
7378
7379cat >>$CONFIG_STATUS <<\_ACEOF
7380fi # test -n "$CONFIG_FILES"
7381
7382
7383for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
7384do
7385 case $ac_tag in
7386 :[FHLC]) ac_mode=$ac_tag; continue;;
7387 esac
7388 case $ac_mode$ac_tag in
7389 :[FHL]*:*);;
7390 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7391echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7392 { (exit 1); exit 1; }; };;
7393 :[FH]-) ac_tag=-:-;;
7394 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7395 esac
7396 ac_save_IFS=$IFS
7397 IFS=:
7398 set x $ac_tag
7399 IFS=$ac_save_IFS
7400 shift
7401 ac_file=$1
7402 shift
7403
7404 case $ac_mode in
7405 :L) ac_source=$1;;
7406 :[FH])
7407 ac_file_inputs=
7408 for ac_f
7409 do
7410 case $ac_f in
7411 -) ac_f="$tmp/stdin";;
7412 *) # Look for the file first in the build tree, then in the source tree
7413 # (if the path is not absolute). The absolute path cannot be DOS-style,
7414 # because $ac_f cannot contain `:'.
7415 test -f "$ac_f" ||
7416 case $ac_f in
7417 [\\/$]*) false;;
7418 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7419 esac ||
7420 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7421echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7422 { (exit 1); exit 1; }; };;
7423 esac
7424 ac_file_inputs="$ac_file_inputs $ac_f"
7425 done
7426
7427 # Let's still pretend it is `configure' which instantiates (i.e., don't
7428 # use $as_me), people would be surprised to read:
7429 # /* config.h. Generated by config.status. */
7430 configure_input="Generated from "`IFS=:
7431 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7432 if test x"$ac_file" != x-; then
7433 configure_input="$ac_file. $configure_input"
7434 { echo "$as_me:$LINENO: creating $ac_file" >&5
7435echo "$as_me: creating $ac_file" >&6;}
7436 fi
7437
7438 case $ac_tag in
7439 *:-:* | *:-) cat >"$tmp/stdin";;
7440 esac
7441 ;;
7442 esac
7443
7444 ac_dir=`$as_dirname -- "$ac_file" ||
7445$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7446 X"$ac_file" : 'X\(//\)[^/]' \| \
7447 X"$ac_file" : 'X\(//\)$' \| \
7448 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7449echo X"$ac_file" |
7450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7451 s//\1/
7452 q
7453 }
7454 /^X\(\/\/\)[^/].*/{
7455 s//\1/
7456 q
7457 }
7458 /^X\(\/\/\)$/{
7459 s//\1/
7460 q
7461 }
7462 /^X\(\/\).*/{
7463 s//\1/
7464 q
7465 }
7466 s/.*/./; q'`
7467 { as_dir="$ac_dir"
7468 case $as_dir in #(
7469 -*) as_dir=./$as_dir;;
7470 esac
7471 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7472 as_dirs=
7473 while :; do
7474 case $as_dir in #(
7475 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7476 *) as_qdir=$as_dir;;
7477 esac
7478 as_dirs="'$as_qdir' $as_dirs"
7479 as_dir=`$as_dirname -- "$as_dir" ||
7480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7481 X"$as_dir" : 'X\(//\)[^/]' \| \
7482 X"$as_dir" : 'X\(//\)$' \| \
7483 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7484echo X"$as_dir" |
7485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7486 s//\1/
7487 q
7488 }
7489 /^X\(\/\/\)[^/].*/{
7490 s//\1/
7491 q
7492 }
7493 /^X\(\/\/\)$/{
7494 s//\1/
7495 q
7496 }
7497 /^X\(\/\).*/{
7498 s//\1/
7499 q
7500 }
7501 s/.*/./; q'`
7502 test -d "$as_dir" && break
7503 done
7504 test -z "$as_dirs" || eval "mkdir $as_dirs"
7505 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7506echo "$as_me: error: cannot create directory $as_dir" >&2;}
7507 { (exit 1); exit 1; }; }; }
7508 ac_builddir=.
7509
7510case "$ac_dir" in
7511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7512*)
7513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7514 # A ".." for each directory in $ac_dir_suffix.
7515 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7516 case $ac_top_builddir_sub in
7517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7519 esac ;;
7520esac
7521ac_abs_top_builddir=$ac_pwd
7522ac_abs_builddir=$ac_pwd$ac_dir_suffix
7523# for backward compatibility:
7524ac_top_builddir=$ac_top_build_prefix
7525
7526case $srcdir in
7527 .) # We are building in place.
7528 ac_srcdir=.
7529 ac_top_srcdir=$ac_top_builddir_sub
7530 ac_abs_top_srcdir=$ac_pwd ;;
7531 [\\/]* | ?:[\\/]* ) # Absolute name.
7532 ac_srcdir=$srcdir$ac_dir_suffix;
7533 ac_top_srcdir=$srcdir
7534 ac_abs_top_srcdir=$srcdir ;;
7535 *) # Relative name.
7536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7537 ac_top_srcdir=$ac_top_build_prefix$srcdir
7538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7539esac
7540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7541
7542
7543 case $ac_mode in
7544 :F)
7545 #
7546 # CONFIG_FILE
7547 #
7548
7549 case $INSTALL in
7550 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7551 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7552 esac
7553_ACEOF
7554
7555cat >>$CONFIG_STATUS <<\_ACEOF
7556# If the template does not know about datarootdir, expand it.
7557# FIXME: This hack should be removed a few years after 2.60.
7558ac_datarootdir_hack=; ac_datarootdir_seen=
7559
7560case `sed -n '/datarootdir/ {
7561 p
7562 q
7563}
7564/@datadir@/p
7565/@docdir@/p
7566/@infodir@/p
7567/@localedir@/p
7568/@mandir@/p
7569' $ac_file_inputs` in
7570*datarootdir*) ac_datarootdir_seen=yes;;
7571*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7572 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7573echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7574_ACEOF
7575cat >>$CONFIG_STATUS <<_ACEOF
7576 ac_datarootdir_hack='
7577 s&@datadir@&$datadir&g
7578 s&@docdir@&$docdir&g
7579 s&@infodir@&$infodir&g
7580 s&@localedir@&$localedir&g
7581 s&@mandir@&$mandir&g
7582 s&\\\${datarootdir}&$datarootdir&g' ;;
7583esac
7584_ACEOF
7585
7586# Neutralize VPATH when `$srcdir' = `.'.
7587# Shell code in configure.ac might set extrasub.
7588# FIXME: do we really want to maintain this feature?
7589cat >>$CONFIG_STATUS <<_ACEOF
7590 sed "$ac_vpsub
7591$extrasub
7592_ACEOF
7593cat >>$CONFIG_STATUS <<\_ACEOF
7594:t
7595/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7596s&@configure_input@&$configure_input&;t t
7597s&@top_builddir@&$ac_top_builddir_sub&;t t
7598s&@srcdir@&$ac_srcdir&;t t
7599s&@abs_srcdir@&$ac_abs_srcdir&;t t
7600s&@top_srcdir@&$ac_top_srcdir&;t t
7601s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7602s&@builddir@&$ac_builddir&;t t
7603s&@abs_builddir@&$ac_abs_builddir&;t t
7604s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7605s&@INSTALL@&$ac_INSTALL&;t t
7606$ac_datarootdir_hack
7607" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7608
7609test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7610 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7611 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7612 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7613which seems to be undefined. Please make sure it is defined." >&5
7614echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7615which seems to be undefined. Please make sure it is defined." >&2;}
7616
7617 rm -f "$tmp/stdin"
7618 case $ac_file in
7619 -) cat "$tmp/out"; rm -f "$tmp/out";;
7620 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7621 esac
7622 ;;
7623 :H)
7624 #
7625 # CONFIG_HEADER
7626 #
7627_ACEOF
7628
7629# Transform confdefs.h into a sed script `conftest.defines', that
7630# substitutes the proper values into config.h.in to produce config.h.
7631rm -f conftest.defines conftest.tail
7632# First, append a space to every undef/define line, to ease matching.
7633echo 's/$/ /' >conftest.defines
7634# Then, protect against being on the right side of a sed subst, or in
7635# an unquoted here document, in config.status. If some macros were
7636# called several times there might be several #defines for the same
7637# symbol, which is useless. But do not sort them, since the last
7638# AC_DEFINE must be honored.
7639ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7640# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7641# NAME is the cpp macro being defined, VALUE is the value it is being given.
7642# PARAMS is the parameter list in the macro definition--in most cases, it's
7643# just an empty string.
7644ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7645ac_dB='\\)[ (].*,\\1define\\2'
7646ac_dC=' '
7647ac_dD=' ,'
7648
7649uniq confdefs.h |
7650 sed -n '
7651 t rset
7652 :rset
7653 s/^[ ]*#[ ]*define[ ][ ]*//
7654 t ok
7655 d
7656 :ok
7657 s/[\\&,]/\\&/g
7658 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7659 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7660 ' >>conftest.defines
7661
7662# Remove the space that was appended to ease matching.
7663# Then replace #undef with comments. This is necessary, for
7664# example, in the case of _POSIX_SOURCE, which is predefined and required
7665# on some systems where configure will not decide to define it.
7666# (The regexp can be short, since the line contains either #define or #undef.)
7667echo 's/ $//
7668s,^[ #]*u.*,/* & */,' >>conftest.defines
7669
7670# Break up conftest.defines:
7671ac_max_sed_lines=50
7672
7673# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7674# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7675# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7676# et cetera.
7677ac_in='$ac_file_inputs'
7678ac_out='"$tmp/out1"'
7679ac_nxt='"$tmp/out2"'
7680
7681while :
7682do
7683 # Write a here document:
7684 cat >>$CONFIG_STATUS <<_ACEOF
7685 # First, check the format of the line:
7686 cat >"\$tmp/defines.sed" <<\\CEOF
7687/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7688/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7689b
7690:def
7691_ACEOF
7692 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7693 echo 'CEOF
7694 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7695 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7696 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7697 grep . conftest.tail >/dev/null || break
7698 rm -f conftest.defines
7699 mv conftest.tail conftest.defines
7700done
7701rm -f conftest.defines conftest.tail
7702
7703echo "ac_result=$ac_in" >>$CONFIG_STATUS
7704cat >>$CONFIG_STATUS <<\_ACEOF
7705 if test x"$ac_file" != x-; then
7706 echo "/* $configure_input */" >"$tmp/config.h"
7707 cat "$ac_result" >>"$tmp/config.h"
7708 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7709 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7710echo "$as_me: $ac_file is unchanged" >&6;}
7711 else
7712 rm -f $ac_file
7713 mv "$tmp/config.h" $ac_file
7714 fi
7715 else
7716 echo "/* $configure_input */"
7717 cat "$ac_result"
7718 fi
7719 rm -f "$tmp/out12"
7720# Compute $ac_file's index in $config_headers.
7721_am_stamp_count=1
7722for _am_header in $config_headers :; do
7723 case $_am_header in
7724 $ac_file | $ac_file:* )
7725 break ;;
7726 * )
7727 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7728 esac
7729done
7730echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
7731$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7732 X$ac_file : 'X\(//\)[^/]' \| \
7733 X$ac_file : 'X\(//\)$' \| \
7734 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
7735echo X$ac_file |
7736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7737 s//\1/
7738 q
7739 }
7740 /^X\(\/\/\)[^/].*/{
7741 s//\1/
7742 q
7743 }
7744 /^X\(\/\/\)$/{
7745 s//\1/
7746 q
7747 }
7748 /^X\(\/\).*/{
7749 s//\1/
7750 q
7751 }
7752 s/.*/./; q'`/stamp-h$_am_stamp_count
7753 ;;
7754
7755 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7756echo "$as_me: executing $ac_file commands" >&6;}
7757 ;;
7758 esac
7759
7760
7761 case $ac_file$ac_mode in
7762 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7763 # Strip MF so we end up with the name of the file.
7764 mf=`echo "$mf" | sed -e 's/:.*$//'`
7765 # Check whether this is an Automake generated Makefile or not.
7766 # We used to match only the files named `Makefile.in', but
7767 # some people rename them; so instead we look at the file content.
7768 # Grep'ing the first line is not enough: some people post-process
7769 # each Makefile.in and add a new line on top of each file to say so.
7770 # So let's grep whole file.
7771 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7772 dirpart=`$as_dirname -- "$mf" ||
7773$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7774 X"$mf" : 'X\(//\)[^/]' \| \
7775 X"$mf" : 'X\(//\)$' \| \
7776 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7777echo X"$mf" |
7778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7779 s//\1/
7780 q
7781 }
7782 /^X\(\/\/\)[^/].*/{
7783 s//\1/
7784 q
7785 }
7786 /^X\(\/\/\)$/{
7787 s//\1/
7788 q
7789 }
7790 /^X\(\/\).*/{
7791 s//\1/
7792 q
7793 }
7794 s/.*/./; q'`
7795 else
7796 continue
7797 fi
7798 # Extract the definition of DEPDIR, am__include, and am__quote
7799 # from the Makefile without running `make'.
7800 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7801 test -z "$DEPDIR" && continue
7802 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7803 test -z "am__include" && continue
7804 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7805 # When using ansi2knr, U may be empty or an underscore; expand it
7806 U=`sed -n 's/^U = //p' < "$mf"`
7807 # Find all dependency output files, they are included files with
7808 # $(DEPDIR) in their names. We invoke sed twice because it is the
7809 # simplest approach to changing $(DEPDIR) to its actual value in the
7810 # expansion.
7811 for file in `sed -n "
7812 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7813 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7814 # Make sure the directory exists.
7815 test -f "$dirpart/$file" && continue
7816 fdir=`$as_dirname -- "$file" ||
7817$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7818 X"$file" : 'X\(//\)[^/]' \| \
7819 X"$file" : 'X\(//\)$' \| \
7820 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7821echo X"$file" |
7822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7823 s//\1/
7824 q
7825 }
7826 /^X\(\/\/\)[^/].*/{
7827 s//\1/
7828 q
7829 }
7830 /^X\(\/\/\)$/{
7831 s//\1/
7832 q
7833 }
7834 /^X\(\/\).*/{
7835 s//\1/
7836 q
7837 }
7838 s/.*/./; q'`
7839 { as_dir=$dirpart/$fdir
7840 case $as_dir in #(
7841 -*) as_dir=./$as_dir;;
7842 esac
7843 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7844 as_dirs=
7845 while :; do
7846 case $as_dir in #(
7847 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7848 *) as_qdir=$as_dir;;
7849 esac
7850 as_dirs="'$as_qdir' $as_dirs"
7851 as_dir=`$as_dirname -- "$as_dir" ||
7852$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7853 X"$as_dir" : 'X\(//\)[^/]' \| \
7854 X"$as_dir" : 'X\(//\)$' \| \
7855 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7856echo X"$as_dir" |
7857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7858 s//\1/
7859 q
7860 }
7861 /^X\(\/\/\)[^/].*/{
7862 s//\1/
7863 q
7864 }
7865 /^X\(\/\/\)$/{
7866 s//\1/
7867 q
7868 }
7869 /^X\(\/\).*/{
7870 s//\1/
7871 q
7872 }
7873 s/.*/./; q'`
7874 test -d "$as_dir" && break
7875 done
7876 test -z "$as_dirs" || eval "mkdir $as_dirs"
7877 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7878echo "$as_me: error: cannot create directory $as_dir" >&2;}
7879 { (exit 1); exit 1; }; }; }
7880 # echo "creating $dirpart/$file"
7881 echo '# dummy' > "$dirpart/$file"
7882 done
7883done
7884 ;;
7885
7886 esac
7887done # for ac_tag
7888
7889
7890{ (exit 0); exit 0; }
7891_ACEOF
7892chmod +x $CONFIG_STATUS
7893ac_clean_files=$ac_clean_files_save
7894
7895
7896# configure is writing to config.log, and then calls config.status.
7897# config.status does its own redirection, appending to config.log.
7898# Unfortunately, on DOS this fails, as config.log is still kept open
7899# by configure, so config.status won't be able to write to it; its
7900# output is simply discarded. So we exec the FD to /dev/null,
7901# effectively closing config.log, so it can be properly (re)opened and
7902# appended to by config.status. When coming back to configure, we
7903# need to make the FD available again.
7904if test "$no_create" != yes; then
7905 ac_cs_success=:
7906 ac_config_status_args=
7907 test "$silent" = yes &&
7908 ac_config_status_args="$ac_config_status_args --quiet"
7909 exec 5>/dev/null
7910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7911 exec 5>>config.log
7912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7913 # would make configure fail if this is the last instruction.
7914 $ac_cs_success || { (exit 1); exit 1; }
7915fi
7916