]> ncurses.scripts.mit.edu Git - ncurses.git/blob - configure
ncurses 5.7 - patch 20100724
[ncurses.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.502 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20100530.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
17
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26   emulate sh
27   NULLCMD=:
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29   set -o posix
30 fi
31
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34
35 if expr a : '\(a\)' >/dev/null 2>&1; then
36   as_expr=expr
37 else
38   as_expr=false
39 fi
40
41 rm -f conf$$ conf$$.exe conf$$.file
42 echo >conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44   # We could just check for DJGPP; but this test a) works b) is more generic
45   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46   if test -f conf$$.exe; then
47     # Don't use ln at all; we don't have any links
48     as_ln_s='cp -p'
49   else
50     as_ln_s='ln -s'
51   fi
52 elif ln conf$$.file conf$$ 2>/dev/null; then
53   as_ln_s=ln
54 else
55   as_ln_s='cp -p'
56 fi
57 rm -f conf$$ conf$$.exe conf$$.file
58
59 as_executable_p="test -f"
60
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63   as_unset=unset
64 else
65   as_unset=false
66 fi
67
68 # NLS nuisances.
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77
78 # IFS
79 # We need space, tab and new line, in precisely that order.
80 as_nl='
81 '
82 IFS="   $as_nl"
83
84 # CDPATH.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86
87 # Name of the host.
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91
92 exec 6>&1
93
94 #
95 # Initializations.
96 #
97 ac_default_prefix=/usr/local
98 cross_compiling=no
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
102
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete.  It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
107
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
111 #include <stdio.h>
112 #if HAVE_SYS_TYPES_H
113 # include <sys/types.h>
114 #endif
115 #if HAVE_SYS_STAT_H
116 # include <sys/stat.h>
117 #endif
118 #if STDC_HEADERS
119 # include <stdlib.h>
120 # include <stddef.h>
121 #else
122 # if HAVE_STDLIB_H
123 #  include <stdlib.h>
124 # endif
125 #endif
126 #if HAVE_STRING_H
127 # if !STDC_HEADERS && HAVE_MEMORY_H
128 #  include <memory.h>
129 # endif
130 # include <string.h>
131 #endif
132 #if HAVE_STRINGS_H
133 # include <strings.h>
134 #endif
135 #if HAVE_INTTYPES_H
136 # include <inttypes.h>
137 #else
138 # if HAVE_STDINT_H
139 #  include <stdint.h>
140 # endif
141 #endif
142 #if HAVE_UNISTD_H
143 # include <unistd.h>
144 #endif"
145
146 # Initialize some variables set by options.
147 ac_init_help=
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
151 cache_file=/dev/null
152 exec_prefix=NONE
153 no_create=
154 no_recursion=
155 prefix=NONE
156 program_prefix=NONE
157 program_suffix=NONE
158 program_transform_name=s,x,x,
159 silent=
160 site=
161 srcdir=
162 verbose=
163 x_includes=NONE
164 x_libraries=NONE
165
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
183
184 # Identity of this package.
185 PACKAGE_NAME=
186 PACKAGE_TARNAME=
187 PACKAGE_VERSION=
188 PACKAGE_STRING=
189 PACKAGE_BUGREPORT=
190
191 ac_prev=
192 for ac_option
193 do
194   # If the previous option needs an argument, assign it.
195   if test -n "$ac_prev"; then
196     eval "$ac_prev=\$ac_option"
197     ac_prev=
198     continue
199   fi
200
201   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202
203   # Accept the important Cygnus configure options, so we can diagnose typos.
204
205   case $ac_option in
206
207   -bindir | --bindir | --bindi | --bind | --bin | --bi)
208     ac_prev=bindir ;;
209   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210     bindir=$ac_optarg ;;
211
212   -build | --build | --buil | --bui | --bu)
213     ac_prev=build_alias ;;
214   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215     build_alias=$ac_optarg ;;
216
217   -cache-file | --cache-file | --cache-fil | --cache-fi \
218   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219     ac_prev=cache_file ;;
220   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222     cache_file=$ac_optarg ;;
223
224   --config-cache | -C)
225     cache_file=config.cache ;;
226
227   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228     ac_prev=datadir ;;
229   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230   | --da=*)
231     datadir=$ac_optarg ;;
232
233   -disable-* | --disable-*)
234     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235     # Reject names that are not valid shell variable names.
236     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238    { (exit 1); exit 1; }; }
239     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240     eval "enable_$ac_feature=no" ;;
241
242   -enable-* | --enable-*)
243     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244     # Reject names that are not valid shell variable names.
245     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247    { (exit 1); exit 1; }; }
248     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249     case $ac_option in
250       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251       *) ac_optarg=yes ;;
252     esac
253     eval "enable_$ac_feature='$ac_optarg'" ;;
254
255   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257   | --exec | --exe | --ex)
258     ac_prev=exec_prefix ;;
259   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261   | --exec=* | --exe=* | --ex=*)
262     exec_prefix=$ac_optarg ;;
263
264   -gas | --gas | --ga | --g)
265     # Obsolete; use --with-gas.
266     with_gas=yes ;;
267
268   -help | --help | --hel | --he | -h)
269     ac_init_help=long ;;
270   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271     ac_init_help=recursive ;;
272   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273     ac_init_help=short ;;
274
275   -host | --host | --hos | --ho)
276     ac_prev=host_alias ;;
277   -host=* | --host=* | --hos=* | --ho=*)
278     host_alias=$ac_optarg ;;
279
280   -includedir | --includedir | --includedi | --included | --include \
281   | --includ | --inclu | --incl | --inc)
282     ac_prev=includedir ;;
283   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284   | --includ=* | --inclu=* | --incl=* | --inc=*)
285     includedir=$ac_optarg ;;
286
287   -infodir | --infodir | --infodi | --infod | --info | --inf)
288     ac_prev=infodir ;;
289   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290     infodir=$ac_optarg ;;
291
292   -libdir | --libdir | --libdi | --libd)
293     ac_prev=libdir ;;
294   -libdir=* | --libdir=* | --libdi=* | --libd=*)
295     libdir=$ac_optarg ;;
296
297   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298   | --libexe | --libex | --libe)
299     ac_prev=libexecdir ;;
300   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301   | --libexe=* | --libex=* | --libe=*)
302     libexecdir=$ac_optarg ;;
303
304   -localstatedir | --localstatedir | --localstatedi | --localstated \
305   | --localstate | --localstat | --localsta | --localst \
306   | --locals | --local | --loca | --loc | --lo)
307     ac_prev=localstatedir ;;
308   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311     localstatedir=$ac_optarg ;;
312
313   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314     ac_prev=mandir ;;
315   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316     mandir=$ac_optarg ;;
317
318   -nfp | --nfp | --nf)
319     # Obsolete; use --without-fp.
320     with_fp=no ;;
321
322   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323   | --no-cr | --no-c)
324     no_create=yes ;;
325
326   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328     no_recursion=yes ;;
329
330   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332   | --oldin | --oldi | --old | --ol | --o)
333     ac_prev=oldincludedir ;;
334   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337     oldincludedir=$ac_optarg ;;
338
339   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340     ac_prev=prefix ;;
341   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342     prefix=$ac_optarg ;;
343
344   -program-prefix | --program-prefix | --program-prefi | --program-pref \
345   | --program-pre | --program-pr | --program-p)
346     ac_prev=program_prefix ;;
347   -program-prefix=* | --program-prefix=* | --program-prefi=* \
348   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349     program_prefix=$ac_optarg ;;
350
351   -program-suffix | --program-suffix | --program-suffi | --program-suff \
352   | --program-suf | --program-su | --program-s)
353     ac_prev=program_suffix ;;
354   -program-suffix=* | --program-suffix=* | --program-suffi=* \
355   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356     program_suffix=$ac_optarg ;;
357
358   -program-transform-name | --program-transform-name \
359   | --program-transform-nam | --program-transform-na \
360   | --program-transform-n | --program-transform- \
361   | --program-transform | --program-transfor \
362   | --program-transfo | --program-transf \
363   | --program-trans | --program-tran \
364   | --progr-tra | --program-tr | --program-t)
365     ac_prev=program_transform_name ;;
366   -program-transform-name=* | --program-transform-name=* \
367   | --program-transform-nam=* | --program-transform-na=* \
368   | --program-transform-n=* | --program-transform-=* \
369   | --program-transform=* | --program-transfor=* \
370   | --program-transfo=* | --program-transf=* \
371   | --program-trans=* | --program-tran=* \
372   | --progr-tra=* | --program-tr=* | --program-t=*)
373     program_transform_name=$ac_optarg ;;
374
375   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376   | -silent | --silent | --silen | --sile | --sil)
377     silent=yes ;;
378
379   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380     ac_prev=sbindir ;;
381   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382   | --sbi=* | --sb=*)
383     sbindir=$ac_optarg ;;
384
385   -sharedstatedir | --sharedstatedir | --sharedstatedi \
386   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387   | --sharedst | --shareds | --shared | --share | --shar \
388   | --sha | --sh)
389     ac_prev=sharedstatedir ;;
390   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393   | --sha=* | --sh=*)
394     sharedstatedir=$ac_optarg ;;
395
396   -site | --site | --sit)
397     ac_prev=site ;;
398   -site=* | --site=* | --sit=*)
399     site=$ac_optarg ;;
400
401   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402     ac_prev=srcdir ;;
403   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404     srcdir=$ac_optarg ;;
405
406   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407   | --syscon | --sysco | --sysc | --sys | --sy)
408     ac_prev=sysconfdir ;;
409   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411     sysconfdir=$ac_optarg ;;
412
413   -target | --target | --targe | --targ | --tar | --ta | --t)
414     ac_prev=target_alias ;;
415   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416     target_alias=$ac_optarg ;;
417
418   -v | -verbose | --verbose | --verbos | --verbo | --verb)
419     verbose=yes ;;
420
421   -version | --version | --versio | --versi | --vers | -V)
422     ac_init_version=: ;;
423
424   -with-* | --with-*)
425     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426     # Reject names that are not valid shell variable names.
427     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428       { echo "$as_me: error: invalid package name: $ac_package" >&2
429    { (exit 1); exit 1; }; }
430     ac_package=`echo $ac_package| sed 's/-/_/g'`
431     case $ac_option in
432       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433       *) ac_optarg=yes ;;
434     esac
435     eval "with_$ac_package='$ac_optarg'" ;;
436
437   -without-* | --without-*)
438     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439     # Reject names that are not valid shell variable names.
440     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441       { echo "$as_me: error: invalid package name: $ac_package" >&2
442    { (exit 1); exit 1; }; }
443     ac_package=`echo $ac_package | sed 's/-/_/g'`
444     eval "with_$ac_package=no" ;;
445
446   --x)
447     # Obsolete; use --with-x.
448     with_x=yes ;;
449
450   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451   | --x-incl | --x-inc | --x-in | --x-i)
452     ac_prev=x_includes ;;
453   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455     x_includes=$ac_optarg ;;
456
457   -x-libraries | --x-libraries | --x-librarie | --x-librari \
458   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459     ac_prev=x_libraries ;;
460   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462     x_libraries=$ac_optarg ;;
463
464   -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466    { (exit 1); exit 1; }; }
467     ;;
468
469   *=*)
470     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471     # Reject names that are not valid shell variable names.
472     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474    { (exit 1); exit 1; }; }
475     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476     eval "$ac_envvar='$ac_optarg'"
477     export $ac_envvar ;;
478
479   *)
480     # FIXME: should be removed in autoconf 3.0.
481     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485     ;;
486
487   esac
488 done
489
490 if test -n "$ac_prev"; then
491   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492   { echo "$as_me: error: missing argument to $ac_option" >&2
493    { (exit 1); exit 1; }; }
494 fi
495
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
498 do
499   eval ac_val=$`echo $ac_var`
500   case $ac_val in
501     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503    { (exit 1); exit 1; }; };;
504   esac
505 done
506
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509               localstatedir libdir includedir oldincludedir infodir mandir
510 do
511   eval ac_val=$`echo $ac_var`
512   case $ac_val in
513     [\\/$]* | ?:[\\/]* ) ;;
514     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515    { (exit 1); exit 1; }; };;
516   esac
517 done
518
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
521 build=$build_alias
522 host=$host_alias
523 target=$target_alias
524
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527   if test "x$build_alias" = x; then
528     cross_compiling=maybe
529     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530     If a cross compiler is detected then cross compile mode will be used." >&2
531   elif test "x$build_alias" != "x$host_alias"; then
532     cross_compiling=yes
533   fi
534 fi
535
536 ac_tool_prefix=
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538
539 test "$silent" = yes && exec 6>/dev/null
540
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543   ac_srcdir_defaulted=yes
544   # Try the directory containing this script, then its parent.
545   ac_prog=$0
546   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548   srcdir=$ac_confdir
549   if test ! -r $srcdir/$ac_unique_file; then
550     srcdir=..
551   fi
552 else
553   ac_srcdir_defaulted=no
554 fi
555 if test ! -r $srcdir/$ac_unique_file; then
556   if test "$ac_srcdir_defaulted" = yes; then
557     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558    { (exit 1); exit 1; }; }
559   else
560     { echo "$as_me: error: cannot find sources in $srcdir" >&2
561    { (exit 1); exit 1; }; }
562   fi
563 fi
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
578 ac_env_CC_value=$CC
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
609
610 #
611 # Report the --help message.
612 #
613 if test "$ac_init_help" = "long"; then
614   # Omit some internal or obsolete options to make the list less imposing.
615   # This message is too long to be a string in the A/UX 3.1 sh.
616   cat <<EOF
617 \`configure' configures this package to adapt to many kinds of systems.
618
619 Usage: $0 [OPTION]... [VAR=VALUE]...
620
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE.  See below for descriptions of some of the useful variables.
623
624 Defaults for the options are specified in brackets.
625
626 Configuration:
627   -h, --help              display this help and exit
628       --help=short        display options specific to this package
629       --help=recursive    display the short help of all the included packages
630   -V, --version           display version information and exit
631   -q, --quiet, --silent   do not print \`checking...' messages
632       --cache-file=FILE   cache test results in FILE [disabled]
633   -C, --config-cache      alias for \`--cache-file=config.cache'
634   -n, --no-create         do not create output files
635       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
636
637 EOF
638
639   cat <<EOF
640 Installation directories:
641   --prefix=PREFIX         install architecture-independent files in PREFIX
642                           [$ac_default_prefix]
643   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
644                           [PREFIX]
645
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
650
651 For better control, use the options below.
652
653 Fine tuning of the installation directories:
654   --bindir=DIR            user executables [EPREFIX/bin]
655   --sbindir=DIR           system admin executables [EPREFIX/sbin]
656   --libexecdir=DIR        program executables [EPREFIX/libexec]
657   --datadir=DIR           read-only architecture-independent data [PREFIX/share]
658   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
659   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
660   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
661   --libdir=DIR            object code libraries [EPREFIX/lib]
662   --includedir=DIR        C header files [PREFIX/include]
663   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
664   --infodir=DIR           info documentation [PREFIX/info]
665   --mandir=DIR            man documentation [PREFIX/man]
666 EOF
667
668   cat <<\EOF
669
670 Program names:
671   --program-prefix=PREFIX            prepend PREFIX to installed program names
672   --program-suffix=SUFFIX            append SUFFIX to installed program names
673   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
674
675 System types:
676   --build=BUILD           configure for building on BUILD [guessed]
677   --host=HOST       build programs to run on HOST [BUILD]
678   --target=TARGET   configure for building compilers for TARGET [HOST]
679 EOF
680 fi
681
682 if test -n "$ac_init_help"; then
683
684   cat <<\EOF
685
686 Optional Packages:
687   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
688   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
689
690 Optional Features:
691   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
692   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
693
694   --with-rel-version=XXX  override derived release version
695   --with-abi-version=XXX  override derived ABI version
696   --with-system-type=XXX  test: override derived host system-type
697   --without-cxx           do not adjust ncurses bool to match C++
698   --without-cxx-binding   do not build C++ binding and demo
699   --without-ada           suppress check for Ada95, don't build demo
700   --without-manpages      suppress install of manpages
701   --without-progs         suppress build with programs (e.g., tic)
702   --without-curses-h      install curses.h as ncurses.h only
703   --with-pkg-config{=path} enable/disable use of pkg-config
704   --enable-pc-files       generate and install .pc files for pkg-config
705   --enable-mixed-case     tic should assume mixed-case filenames
706   --with-install-prefix   prefixes actual install-location ($DESTDIR)
707 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
708   --with-build-cc=XXX     the build C compiler ($BUILD_CC)
709   --with-build-cpp=XXX    the build C preprocessor ($BUILD_CPP)
710   --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
711   --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
712   --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
713   --with-build-libs=XXX   the build libraries (${BUILD_LIBS})
714 Options to Specify the Libraries Built/Used:
715   --disable-libtool-version  enable to use libtool's incompatible naming scheme
716   --with-libtool          generate libraries with libtool
717   --with-shared           generate shared-libraries
718   --with-normal           generate normal-libraries (default)
719   --with-debug            generate debug-libraries (default)
720   --with-profile          generate profile-libraries
721   --with-termlib          generate separate terminfo library
722   --with-ticlib           generate separate tic library
723   --with-gpm              use Alessandro Rubini's GPM library
724   --without-dlsym         do not use dlsym() to load GPM dynamically
725   --with-sysmouse         use sysmouse (FreeBSD console)
726   --enable-rpath          use rpath option when generating shared libraries
727   --disable-relink        relink shared libraries during install
728   --with-shlib-version=X  Specify rel or abi version for shared libs
729   --disable-rpath-hack    don't add rpath options for additional libraries
730 Fine-Tuning Your Configuration:
731   --disable-overwrite     leave out the link to -lcurses
732   --disable-database      do not use terminfo, only fallbacks/termcap
733   --with-database=XXX     specify terminfo source to install
734   --with-hashed-db        specify hashed-database library
735   --with-fallbacks=XXX    specify list of fallback terminal descriptions
736   --without-xterm-new     specify if xterm terminfo should be old version
737   --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
738   --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
739   --disable-big-core      assume machine has little memory
740   --disable-big-strings   assume compiler has only standard-size strings
741   --enable-termcap        compile in termcap fallback support
742   --with-termpath=XXX     specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
743   --enable-getcap         fast termcap load, no xrefs to terminfo
744   --enable-getcap-cache   cache translated termcaps in ~/.terminfo
745   --disable-home-terminfo drop ~/.terminfo from terminfo search-path
746   --disable-root-environ  restrict environment when running as root
747   --enable-symlinks       make tic use symbolic links not hard links
748   --enable-broken_linker  compile with broken-linker support code
749   --enable-bsdpad         recognize BSD-style prefix padding
750   --enable-widec          compile with wide-char/UTF-8 code
751   --disable-lp64          allow chtype to be long (ignore _LP64)
752   --disable-largefile     omit support for large files
753   --disable-tparm-varargs compile tparm() without varargs interface
754   --disable-tic-depends   link tic library without explicit dependency on ncurses library
755   --with-bool=TYPE        override fallback type of bool variable
756   --with-caps=alt         compile with alternate Caps file
757   --with-chtype=TYPE      override type of chtype
758   --with-ospeed=TYPE      override type of ospeed variable
759   --with-mmask-t=TYPE     override type of mmask_t
760   --with-ccharw-max=XXX   override size CCHARW_MAX
761   --with-rcs-ids          compile-in RCS identifiers
762 Options to Specify How Manpages are Installed:
763   --with-manpage-format   specify manpage-format: gzip/compress/BSDI/normal and
764                           optionally formatted/catonly, e.g., gzip,formatted
765   --with-manpage-renames  specify manpage-renaming
766   --with-manpage-aliases  specify manpage-aliases using .so
767   --with-manpage-symlinks specify manpage-aliases using symlinks
768   --with-manpage-tbl      specify manpage processing with tbl
769 Extensions:
770   --disable-ext-funcs     disable function-extensions
771   --enable-sp-funcs       enable experimental SCREEN-extensions
772   --enable-term-driver    enable experimental terminal-driver
773   --enable-const          compile with extra/non-standard const
774   --enable-ext-colors     compile for 256-color support
775   --enable-ext-mouse      compile for extended mouse-encoding
776   --enable-no-padding     compile with $NCURSES_NO_PADDING code
777   --enable-signed-char    compile using signed Boolean's in term.h
778   --enable-sigwinch       compile with SIGWINCH handler
779   --enable-tcap-names     compile with user-definable terminal capabilities
780 Development Code:
781   --without-develop       disable development options
782   --enable-hard-tabs      compile with hard-tabs code
783   --enable-xmc-glitch     compile with support for xmc (magic-cookie)
784 Experimental Code:
785   --disable-assumed-color do not assume anything about default-colors
786   --disable-hashmap       compile without hashmap scrolling-optimization
787   --enable-colorfgbg      compile-in experimental $COLORFGBG code
788   --enable-interop        compile-in experimental interop bindings
789   --with-pthread          use POSIX thread library
790   --enable-pthreads-eintr enable EINTR in wgetch with pthreads
791   --enable-weak-symbols   enable weak-symbols for pthreads
792   --enable-reentrant      compile with experimental reentrant code
793   --with-wrap-prefix=XXX  override prefix used for public variables
794   --enable-safe-sprintf   compile with experimental safe-sprintf code
795   --disable-scroll-hints  compile without scroll-hints code
796   --enable-wgetch-events  compile with experimental wgetch-events code
797 Testing/development Options:
798   --enable-echo           build: display "compiling" commands (default)
799   --enable-warnings       build: turn on GCC compiler warnings
800   --enable-assertions     test: turn on generation of assertion code
801   --with-dmalloc          test: use Gray Watson's dmalloc library
802   --with-dbmalloc         test: use Conor Cahill's dbmalloc library
803   --with-valgrind         test: use valgrind
804   --disable-leaks         test: free permanent memory, analyze leaks
805   --enable-expanded       test: generate functions for certain macros
806   --disable-macros        test: use functions rather than macros
807   --with-trace            test: add trace() function to all models of ncurses
808 Ada95 Binding Options:
809   --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
810   --with-ada-include=DIR  Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
811   --with-ada-objects=DIR  Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
812   --with-ada-sharedlib=XX build Ada95 shared-library
813
814 Some influential environment variables:
815   CC          C compiler command
816   CFLAGS      C compiler flags
817   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
818               nonstandard directory <lib dir>
819   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
820               headers in a nonstandard directory <include dir>
821   CPP         C preprocessor
822   CXX         C++ compiler command
823   CXXFLAGS    C++ compiler flags
824   CXXCPP      C++ preprocessor
825
826 Use these variables to override the choices made by `configure' or to help
827 it to find libraries and programs with nonstandard names/locations.
828
829 EOF
830 fi
831
832 if test "$ac_init_help" = "recursive"; then
833   # If there are subdirs, report their specific --help.
834   ac_popdir=`pwd`
835   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
836     cd $ac_subdir
837     # A "../" for each directory in /$ac_subdir.
838     ac_dots=`echo $ac_subdir |
839              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
840
841     case $srcdir in
842     .) # No --srcdir option.  We are building in place.
843       ac_sub_srcdir=$srcdir ;;
844     [\\/]* | ?:[\\/]* ) # Absolute path.
845       ac_sub_srcdir=$srcdir/$ac_subdir ;;
846     *) # Relative path.
847       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
848     esac
849
850     # Check for guested configure; otherwise get Cygnus style configure.
851     if test -f $ac_sub_srcdir/configure.gnu; then
852       echo
853       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
854     elif test -f $ac_sub_srcdir/configure; then
855       echo
856       $SHELL $ac_sub_srcdir/configure  --help=recursive
857     elif test -f $ac_sub_srcdir/configure.ac ||
858            test -f $ac_sub_srcdir/configure.in; then
859       echo
860       $ac_configure --help
861     else
862       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
863     fi
864     cd $ac_popdir
865   done
866 fi
867
868 test -n "$ac_init_help" && exit 0
869 if $ac_init_version; then
870   cat <<\EOF
871
872 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
873 Free Software Foundation, Inc.
874 This configure script is free software; the Free Software Foundation
875 gives unlimited permission to copy, distribute and modify it.
876 EOF
877   exit 0
878 fi
879 exec 5>config.log
880 cat >&5 <<EOF
881 This file contains any messages produced by compilers while
882 running configure, to aid debugging if configure makes a mistake.
883
884 It was created by $as_me, which was
885 generated by GNU Autoconf 2.52.20100530.  Invocation command line was
886
887   $ $0 $@
888
889 EOF
890 {
891 cat <<_ASUNAME
892 ## ---------- ##
893 ## Platform.  ##
894 ## ---------- ##
895
896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
901
902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
903 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
904
905 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
906 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
908 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
909 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
910 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
911 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
912
913 PATH = $PATH
914
915 _ASUNAME
916 } >&5
917
918 cat >&5 <<EOF
919 ## ------------ ##
920 ## Core tests.  ##
921 ## ------------ ##
922
923 EOF
924
925 # Keep a trace of the command line.
926 # Strip out --no-create and --no-recursion so they do not pile up.
927 # Also quote any args containing shell meta-characters.
928 ac_configure_args=
929 ac_sep=
930 for ac_arg
931 do
932   case $ac_arg in
933   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
934   | --no-cr | --no-c) ;;
935   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
937   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
938     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
939     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
940     ac_sep=" " ;;
941   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
942      ac_sep=" " ;;
943   esac
944   # Get rid of the leading space.
945 done
946
947 # When interrupted or exit'd, cleanup temporary files, and complete
948 # config.log.  We remove comments because anyway the quotes in there
949 # would cause problems or look ugly.
950 trap 'exit_status=$?
951   # Save into config.log some information that might help in debugging.
952   echo >&5
953   echo "## ----------------- ##" >&5
954   echo "## Cache variables.  ##" >&5
955   echo "## ----------------- ##" >&5
956   echo >&5
957   # The following way of writing the cache mishandles newlines in values,
958 {
959   (set) 2>&1 |
960     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
961     *ac_space=\ *)
962       sed -n \
963         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
964           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
965       ;;
966     *)
967       sed -n \
968         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
969       ;;
970     esac;
971 } >&5
972   sed "/^$/d" confdefs.h >conftest.log
973   if test -s conftest.log; then
974     echo >&5
975     echo "## ------------ ##" >&5
976     echo "## confdefs.h.  ##" >&5
977     echo "## ------------ ##" >&5
978     echo >&5
979     cat conftest.log >&5
980   fi
981   (echo; echo) >&5
982   test "$ac_signal" != 0 &&
983     echo "$as_me: caught signal $ac_signal" >&5
984   echo "$as_me: exit $exit_status" >&5
985   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
986     exit $exit_status
987      ' 0
988 for ac_signal in 1 2 13 15; do
989   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
990 done
991 ac_signal=0
992
993 # confdefs.h avoids OS command line length limits that DEFS can exceed.
994 rm -rf conftest* confdefs.h
995 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
996 echo >confdefs.h
997
998 # Let the site file select an alternate cache file if it wants to.
999 # Prefer explicitly selected file to automatically selected ones.
1000 if test -z "$CONFIG_SITE"; then
1001   if test "x$prefix" != xNONE; then
1002     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1003   else
1004     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1005   fi
1006 fi
1007 for ac_site_file in $CONFIG_SITE; do
1008   if test -r "$ac_site_file"; then
1009     { echo "$as_me:1009: loading site script $ac_site_file" >&5
1010 echo "$as_me: loading site script $ac_site_file" >&6;}
1011     cat "$ac_site_file" >&5
1012     . "$ac_site_file"
1013   fi
1014 done
1015
1016 if test -r "$cache_file"; then
1017   # Some versions of bash will fail to source /dev/null (special
1018   # files actually), so we avoid doing that.
1019   if test -f "$cache_file"; then
1020     { echo "$as_me:1020: loading cache $cache_file" >&5
1021 echo "$as_me: loading cache $cache_file" >&6;}
1022     case $cache_file in
1023       [\\/]* | ?:[\\/]* ) . $cache_file;;
1024       *)                      . ./$cache_file;;
1025     esac
1026   fi
1027 else
1028   { echo "$as_me:1028: creating cache $cache_file" >&5
1029 echo "$as_me: creating cache $cache_file" >&6;}
1030   >$cache_file
1031 fi
1032
1033 # Check that the precious variables saved in the cache have kept the same
1034 # value.
1035 ac_cache_corrupted=false
1036 for ac_var in `(set) 2>&1 |
1037                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1038   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1039   eval ac_new_set=\$ac_env_${ac_var}_set
1040   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1041   eval ac_new_val="\$ac_env_${ac_var}_value"
1042   case $ac_old_set,$ac_new_set in
1043     set,)
1044       { echo "$as_me:1044: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1045 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1046       ac_cache_corrupted=: ;;
1047     ,set)
1048       { echo "$as_me:1048: error: \`$ac_var' was not set in the previous run" >&5
1049 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1050       ac_cache_corrupted=: ;;
1051     ,);;
1052     *)
1053       if test "x$ac_old_val" != "x$ac_new_val"; then
1054         { echo "$as_me:1054: error: \`$ac_var' has changed since the previous run:" >&5
1055 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1056         { echo "$as_me:1056:   former value:  $ac_old_val" >&5
1057 echo "$as_me:   former value:  $ac_old_val" >&2;}
1058         { echo "$as_me:1058:   current value: $ac_new_val" >&5
1059 echo "$as_me:   current value: $ac_new_val" >&2;}
1060         ac_cache_corrupted=:
1061       fi;;
1062   esac
1063   # Pass precious variables to config.status.  It doesn't matter if
1064   # we pass some twice (in addition to the command line arguments).
1065   if test "$ac_new_set" = set; then
1066     case $ac_new_val in
1067     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1069       ac_configure_args="$ac_configure_args '$ac_arg'"
1070       ;;
1071     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1072        ;;
1073     esac
1074   fi
1075 done
1076 if $ac_cache_corrupted; then
1077   { echo "$as_me:1077: error: changes in the environment can compromise the build" >&5
1078 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1079   { { echo "$as_me:1079: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1080 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1081    { (exit 1); exit 1; }; }
1082 fi
1083
1084 ac_ext=c
1085 ac_cpp='$CPP $CPPFLAGS'
1086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1089 ac_main_return=return
1090
1091 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1092   *c*,-n*) ECHO_N= ECHO_C='
1093 ' ECHO_T='      ' ;;
1094   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1095   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1096 esac
1097 echo "#! $SHELL" >conftest.sh
1098 echo  "exit 0"   >>conftest.sh
1099 chmod +x conftest.sh
1100 if { (echo "$as_me:1100: PATH=\".;.\"; conftest.sh") >&5
1101   (PATH=".;."; conftest.sh) 2>&5
1102   ac_status=$?
1103   echo "$as_me:1103: \$? = $ac_status" >&5
1104   (exit $ac_status); }; then
1105   ac_path_separator=';'
1106 else
1107   ac_path_separator=:
1108 fi
1109 PATH_SEPARATOR="$ac_path_separator"
1110 rm -f conftest.sh
1111
1112 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1113
1114 top_builddir=`pwd`
1115
1116 echo "$as_me:1116: checking for egrep" >&5
1117 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1118 if test "${ac_cv_prog_egrep+set}" = set; then
1119   echo $ECHO_N "(cached) $ECHO_C" >&6
1120 else
1121   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1122     then ac_cv_prog_egrep='grep -E'
1123     else ac_cv_prog_egrep='egrep'
1124     fi
1125 fi
1126 echo "$as_me:1126: result: $ac_cv_prog_egrep" >&5
1127 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1128  EGREP=$ac_cv_prog_egrep
1129
1130 test -z "$EGREP" && { { echo "$as_me:1130: error: No egrep program found" >&5
1131 echo "$as_me: error: No egrep program found" >&2;}
1132    { (exit 1); exit 1; }; }
1133
1134 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[      ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1135 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[      ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1136 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[      ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1137 cf_cv_abi_version=${NCURSES_MAJOR}
1138 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1139 cf_cv_timestamp=`date`
1140 echo "$as_me:1140: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1141 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1142
1143 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1144
1145 # Check whether --with-rel-version or --without-rel-version was given.
1146 if test "${with_rel_version+set}" = set; then
1147   withval="$with_rel_version"
1148   { echo "$as_me:1148: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1149 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1150  cf_cv_rel_version=$withval
1151 fi;
1152
1153  NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1154  NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1155
1156 if test -n "$NCURSES_MAJOR" ; then
1157   case $NCURSES_MAJOR in #(vi
1158   [0-9]*) #(vi
1159         ;;
1160   *)
1161         { { echo "$as_me:1161: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1162 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1163    { (exit 1); exit 1; }; }
1164         ;;
1165   esac
1166 else
1167   { { echo "$as_me:1167: error: Release major-version value is empty" >&5
1168 echo "$as_me: error: Release major-version value is empty" >&2;}
1169    { (exit 1); exit 1; }; }
1170 fi
1171
1172 if test -n "$NCURSES_MINOR" ; then
1173   case $NCURSES_MINOR in #(vi
1174   [0-9]*) #(vi
1175         ;;
1176   *)
1177         { { echo "$as_me:1177: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1178 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1179    { (exit 1); exit 1; }; }
1180         ;;
1181   esac
1182 else
1183   { { echo "$as_me:1183: error: Release minor-version value is empty" >&5
1184 echo "$as_me: error: Release minor-version value is empty" >&2;}
1185    { (exit 1); exit 1; }; }
1186 fi
1187
1188 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1189
1190 # Check whether --with-abi-version or --without-abi-version was given.
1191 if test "${with_abi_version+set}" = set; then
1192   withval="$with_abi_version"
1193   { echo "$as_me:1193: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1194 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1195  cf_cv_abi_version=$withval
1196 fi;
1197
1198 if test -n "$cf_cv_abi_version" ; then
1199   case $cf_cv_abi_version in #(vi
1200   [0-9]*) #(vi
1201         ;;
1202   *)
1203         { { echo "$as_me:1203: error: ABI version is not a number: $cf_cv_abi_version" >&5
1204 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1205    { (exit 1); exit 1; }; }
1206         ;;
1207   esac
1208 else
1209   { { echo "$as_me:1209: error: ABI version value is empty" >&5
1210 echo "$as_me: error: ABI version value is empty" >&2;}
1211    { (exit 1); exit 1; }; }
1212 fi
1213
1214 ac_aux_dir=
1215 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1216   if test -f $ac_dir/install-sh; then
1217     ac_aux_dir=$ac_dir
1218     ac_install_sh="$ac_aux_dir/install-sh -c"
1219     break
1220   elif test -f $ac_dir/install.sh; then
1221     ac_aux_dir=$ac_dir
1222     ac_install_sh="$ac_aux_dir/install.sh -c"
1223     break
1224   elif test -f $ac_dir/shtool; then
1225     ac_aux_dir=$ac_dir
1226     ac_install_sh="$ac_aux_dir/shtool install -c"
1227     break
1228   fi
1229 done
1230 if test -z "$ac_aux_dir"; then
1231   { { echo "$as_me:1231: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1232 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1233    { (exit 1); exit 1; }; }
1234 fi
1235 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1236 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1237 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1238
1239 # Make sure we can run config.sub.
1240 $ac_config_sub sun4 >/dev/null 2>&1 ||
1241   { { echo "$as_me:1241: error: cannot run $ac_config_sub" >&5
1242 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1243    { (exit 1); exit 1; }; }
1244
1245 echo "$as_me:1245: checking build system type" >&5
1246 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1247 if test "${ac_cv_build+set}" = set; then
1248   echo $ECHO_N "(cached) $ECHO_C" >&6
1249 else
1250   ac_cv_build_alias=$build_alias
1251 test -z "$ac_cv_build_alias" &&
1252   ac_cv_build_alias=`$ac_config_guess`
1253 test -z "$ac_cv_build_alias" &&
1254   { { echo "$as_me:1254: error: cannot guess build type; you must specify one" >&5
1255 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1256    { (exit 1); exit 1; }; }
1257 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1258   { { echo "$as_me:1258: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1259 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1260    { (exit 1); exit 1; }; }
1261
1262 fi
1263 echo "$as_me:1263: result: $ac_cv_build" >&5
1264 echo "${ECHO_T}$ac_cv_build" >&6
1265 build=$ac_cv_build
1266 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1267 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1268 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1269
1270 echo "$as_me:1270: checking host system type" >&5
1271 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1272 if test "${ac_cv_host+set}" = set; then
1273   echo $ECHO_N "(cached) $ECHO_C" >&6
1274 else
1275   ac_cv_host_alias=$host_alias
1276 test -z "$ac_cv_host_alias" &&
1277   ac_cv_host_alias=$ac_cv_build_alias
1278 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1279   { { echo "$as_me:1279: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1280 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1281    { (exit 1); exit 1; }; }
1282
1283 fi
1284 echo "$as_me:1284: result: $ac_cv_host" >&5
1285 echo "${ECHO_T}$ac_cv_host" >&6
1286 host=$ac_cv_host
1287 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1288 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1289 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1290
1291 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1292         echo "$as_me:1292: checking target system type" >&5
1293 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1294 if test "${ac_cv_target+set}" = set; then
1295   echo $ECHO_N "(cached) $ECHO_C" >&6
1296 else
1297   ac_cv_target_alias=$target_alias
1298 test "x$ac_cv_target_alias" = "x" &&
1299   ac_cv_target_alias=$ac_cv_host_alias
1300 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1301   { { echo "$as_me:1301: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1302 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1303    { (exit 1); exit 1; }; }
1304
1305 fi
1306 echo "$as_me:1306: result: $ac_cv_target" >&5
1307 echo "${ECHO_T}$ac_cv_target" >&6
1308 target=$ac_cv_target
1309 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1310 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1311 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1312
1313 # The aliases save the names the user supplied, while $host etc.
1314 # will get canonicalized.
1315 test -n "$target_alias" &&
1316   test "$program_prefix$program_suffix$program_transform_name" = \
1317     NONENONEs,x,x, &&
1318   program_prefix=${target_alias}-
1319         system_name="$host_os"
1320 else
1321         system_name="`(uname -s -r) 2>/dev/null`"
1322         if test -z "$system_name" ; then
1323                 system_name="`(hostname) 2>/dev/null`"
1324         fi
1325 fi
1326 test -n "$system_name" && cat >>confdefs.h <<EOF
1327 #define SYSTEM_NAME "$system_name"
1328 EOF
1329
1330 if test "${cf_cv_system_name+set}" = set; then
1331   echo $ECHO_N "(cached) $ECHO_C" >&6
1332 else
1333   cf_cv_system_name="$system_name"
1334 fi
1335
1336 test -z "$system_name" && system_name="$cf_cv_system_name"
1337 test -n "$cf_cv_system_name" && echo "$as_me:1337: result: Configuring for $cf_cv_system_name" >&5
1338 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1339
1340 if test ".$system_name" != ".$cf_cv_system_name" ; then
1341         echo "$as_me:1341: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1342 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1343         { { echo "$as_me:1343: error: \"Please remove config.cache and try again.\"" >&5
1344 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1345    { (exit 1); exit 1; }; }
1346 fi
1347
1348 # Check whether --with-system-type or --without-system-type was given.
1349 if test "${with_system_type+set}" = set; then
1350   withval="$with_system_type"
1351   { echo "$as_me:1351: WARNING: overriding system type to $withval" >&5
1352 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1353  cf_cv_system_name=$withval
1354 fi;
1355
1356 ###     Save the given $CFLAGS to allow user-override.
1357 cf_user_CFLAGS="$CFLAGS"
1358
1359 ###     Default install-location
1360
1361 echo "$as_me:1361: checking for prefix" >&5
1362 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1363 if test "x$prefix" = "xNONE" ; then
1364         case "$cf_cv_system_name" in
1365                 # non-vendor systems don't have a conflict
1366         openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1367                 prefix=/usr
1368                 ;;
1369         *)      prefix=$ac_default_prefix
1370                 ;;
1371         esac
1372 fi
1373 echo "$as_me:1373: result: $prefix" >&5
1374 echo "${ECHO_T}$prefix" >&6
1375
1376 if test "x$prefix" = "xNONE" ; then
1377 echo "$as_me:1377: checking for default include-directory" >&5
1378 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1379 test -n "$verbose" && echo 1>&6
1380 for cf_symbol in \
1381         $includedir \
1382         $includedir/ncurses \
1383         $prefix/include \
1384         $prefix/include/ncurses \
1385         /usr/local/include \
1386         /usr/local/include/ncurses \
1387         /usr/include \
1388         /usr/include/ncurses
1389 do
1390         cf_dir=`eval echo $cf_symbol`
1391         if test -f $cf_dir/curses.h ; then
1392         if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1393                 includedir="$cf_symbol"
1394                 test -n "$verbose"  && echo $ac_n "     found " 1>&6
1395                 break
1396         fi
1397         fi
1398         test -n "$verbose"  && echo "   tested $cf_dir" 1>&6
1399 done
1400 echo "$as_me:1400: result: $includedir" >&5
1401 echo "${ECHO_T}$includedir" >&6
1402 fi
1403
1404 ###     Checks for programs.
1405 ac_ext=c
1406 ac_cpp='$CPP $CPPFLAGS'
1407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1410 ac_main_return=return
1411 if test -n "$ac_tool_prefix"; then
1412   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1414 echo "$as_me:1414: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_CC+set}" = set; then
1417   echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419   if test -n "$CC"; then
1420   ac_cv_prog_CC="$CC" # Let the user override the test.
1421 else
1422   ac_save_IFS=$IFS; IFS=$ac_path_separator
1423 ac_dummy="$PATH"
1424 for ac_dir in $ac_dummy; do
1425   IFS=$ac_save_IFS
1426   test -z "$ac_dir" && ac_dir=.
1427   $as_executable_p "$ac_dir/$ac_word" || continue
1428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1429 echo "$as_me:1429: found $ac_dir/$ac_word" >&5
1430 break
1431 done
1432
1433 fi
1434 fi
1435 CC=$ac_cv_prog_CC
1436 if test -n "$CC"; then
1437   echo "$as_me:1437: result: $CC" >&5
1438 echo "${ECHO_T}$CC" >&6
1439 else
1440   echo "$as_me:1440: result: no" >&5
1441 echo "${ECHO_T}no" >&6
1442 fi
1443
1444 fi
1445 if test -z "$ac_cv_prog_CC"; then
1446   ac_ct_CC=$CC
1447   # Extract the first word of "gcc", so it can be a program name with args.
1448 set dummy gcc; ac_word=$2
1449 echo "$as_me:1449: checking for $ac_word" >&5
1450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1452   echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454   if test -n "$ac_ct_CC"; then
1455   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1456 else
1457   ac_save_IFS=$IFS; IFS=$ac_path_separator
1458 ac_dummy="$PATH"
1459 for ac_dir in $ac_dummy; do
1460   IFS=$ac_save_IFS
1461   test -z "$ac_dir" && ac_dir=.
1462   $as_executable_p "$ac_dir/$ac_word" || continue
1463 ac_cv_prog_ac_ct_CC="gcc"
1464 echo "$as_me:1464: found $ac_dir/$ac_word" >&5
1465 break
1466 done
1467
1468 fi
1469 fi
1470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1471 if test -n "$ac_ct_CC"; then
1472   echo "$as_me:1472: result: $ac_ct_CC" >&5
1473 echo "${ECHO_T}$ac_ct_CC" >&6
1474 else
1475   echo "$as_me:1475: result: no" >&5
1476 echo "${ECHO_T}no" >&6
1477 fi
1478
1479   CC=$ac_ct_CC
1480 else
1481   CC="$ac_cv_prog_CC"
1482 fi
1483
1484 if test -z "$CC"; then
1485   if test -n "$ac_tool_prefix"; then
1486   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1487 set dummy ${ac_tool_prefix}cc; ac_word=$2
1488 echo "$as_me:1488: checking for $ac_word" >&5
1489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1490 if test "${ac_cv_prog_CC+set}" = set; then
1491   echo $ECHO_N "(cached) $ECHO_C" >&6
1492 else
1493   if test -n "$CC"; then
1494   ac_cv_prog_CC="$CC" # Let the user override the test.
1495 else
1496   ac_save_IFS=$IFS; IFS=$ac_path_separator
1497 ac_dummy="$PATH"
1498 for ac_dir in $ac_dummy; do
1499   IFS=$ac_save_IFS
1500   test -z "$ac_dir" && ac_dir=.
1501   $as_executable_p "$ac_dir/$ac_word" || continue
1502 ac_cv_prog_CC="${ac_tool_prefix}cc"
1503 echo "$as_me:1503: found $ac_dir/$ac_word" >&5
1504 break
1505 done
1506
1507 fi
1508 fi
1509 CC=$ac_cv_prog_CC
1510 if test -n "$CC"; then
1511   echo "$as_me:1511: result: $CC" >&5
1512 echo "${ECHO_T}$CC" >&6
1513 else
1514   echo "$as_me:1514: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1516 fi
1517
1518 fi
1519 if test -z "$ac_cv_prog_CC"; then
1520   ac_ct_CC=$CC
1521   # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:1523: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1526   echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528   if test -n "$ac_ct_CC"; then
1529   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530 else
1531   ac_save_IFS=$IFS; IFS=$ac_path_separator
1532 ac_dummy="$PATH"
1533 for ac_dir in $ac_dummy; do
1534   IFS=$ac_save_IFS
1535   test -z "$ac_dir" && ac_dir=.
1536   $as_executable_p "$ac_dir/$ac_word" || continue
1537 ac_cv_prog_ac_ct_CC="cc"
1538 echo "$as_me:1538: found $ac_dir/$ac_word" >&5
1539 break
1540 done
1541
1542 fi
1543 fi
1544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545 if test -n "$ac_ct_CC"; then
1546   echo "$as_me:1546: result: $ac_ct_CC" >&5
1547 echo "${ECHO_T}$ac_ct_CC" >&6
1548 else
1549   echo "$as_me:1549: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1551 fi
1552
1553   CC=$ac_ct_CC
1554 else
1555   CC="$ac_cv_prog_CC"
1556 fi
1557
1558 fi
1559 if test -z "$CC"; then
1560   # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:1562: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_CC+set}" = set; then
1565   echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567   if test -n "$CC"; then
1568   ac_cv_prog_CC="$CC" # Let the user override the test.
1569 else
1570   ac_prog_rejected=no
1571   ac_save_IFS=$IFS; IFS=$ac_path_separator
1572 ac_dummy="$PATH"
1573 for ac_dir in $ac_dummy; do
1574   IFS=$ac_save_IFS
1575   test -z "$ac_dir" && ac_dir=.
1576   $as_executable_p "$ac_dir/$ac_word" || continue
1577 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1578   ac_prog_rejected=yes
1579   continue
1580 fi
1581 ac_cv_prog_CC="cc"
1582 echo "$as_me:1582: found $ac_dir/$ac_word" >&5
1583 break
1584 done
1585
1586 if test $ac_prog_rejected = yes; then
1587   # We found a bogon in the path, so make sure we never use it.
1588   set dummy $ac_cv_prog_CC
1589   shift
1590   if test $# != 0; then
1591     # We chose a different compiler from the bogus one.
1592     # However, it has the same basename, so the bogon will be chosen
1593     # first if we set CC to just the basename; use the full file name.
1594     shift
1595     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1596     shift
1597     ac_cv_prog_CC="$@"
1598   fi
1599 fi
1600 fi
1601 fi
1602 CC=$ac_cv_prog_CC
1603 if test -n "$CC"; then
1604   echo "$as_me:1604: result: $CC" >&5
1605 echo "${ECHO_T}$CC" >&6
1606 else
1607   echo "$as_me:1607: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1609 fi
1610
1611 fi
1612 if test -z "$CC"; then
1613   if test -n "$ac_tool_prefix"; then
1614   for ac_prog in cl
1615   do
1616     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1618 echo "$as_me:1618: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621   echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623   if test -n "$CC"; then
1624   ac_cv_prog_CC="$CC" # Let the user override the test.
1625 else
1626   ac_save_IFS=$IFS; IFS=$ac_path_separator
1627 ac_dummy="$PATH"
1628 for ac_dir in $ac_dummy; do
1629   IFS=$ac_save_IFS
1630   test -z "$ac_dir" && ac_dir=.
1631   $as_executable_p "$ac_dir/$ac_word" || continue
1632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1633 echo "$as_me:1633: found $ac_dir/$ac_word" >&5
1634 break
1635 done
1636
1637 fi
1638 fi
1639 CC=$ac_cv_prog_CC
1640 if test -n "$CC"; then
1641   echo "$as_me:1641: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1643 else
1644   echo "$as_me:1644: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1646 fi
1647
1648     test -n "$CC" && break
1649   done
1650 fi
1651 if test -z "$CC"; then
1652   ac_ct_CC=$CC
1653   for ac_prog in cl
1654 do
1655   # Extract the first word of "$ac_prog", so it can be a program name with args.
1656 set dummy $ac_prog; ac_word=$2
1657 echo "$as_me:1657: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1660   echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662   if test -n "$ac_ct_CC"; then
1663   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1664 else
1665   ac_save_IFS=$IFS; IFS=$ac_path_separator
1666 ac_dummy="$PATH"
1667 for ac_dir in $ac_dummy; do
1668   IFS=$ac_save_IFS
1669   test -z "$ac_dir" && ac_dir=.
1670   $as_executable_p "$ac_dir/$ac_word" || continue
1671 ac_cv_prog_ac_ct_CC="$ac_prog"
1672 echo "$as_me:1672: found $ac_dir/$ac_word" >&5
1673 break
1674 done
1675
1676 fi
1677 fi
1678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679 if test -n "$ac_ct_CC"; then
1680   echo "$as_me:1680: result: $ac_ct_CC" >&5
1681 echo "${ECHO_T}$ac_ct_CC" >&6
1682 else
1683   echo "$as_me:1683: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687   test -n "$ac_ct_CC" && break
1688 done
1689
1690   CC=$ac_ct_CC
1691 fi
1692
1693 fi
1694
1695 test -z "$CC" && { { echo "$as_me:1695: error: no acceptable cc found in \$PATH" >&5
1696 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1697    { (exit 1); exit 1; }; }
1698
1699 # Provide some information about the compiler.
1700 echo "$as_me:1700:" \
1701      "checking for C compiler version" >&5
1702 ac_compiler=`set X $ac_compile; echo $2`
1703 { (eval echo "$as_me:1703: \"$ac_compiler --version </dev/null >&5\"") >&5
1704   (eval $ac_compiler --version </dev/null >&5) 2>&5
1705   ac_status=$?
1706   echo "$as_me:1706: \$? = $ac_status" >&5
1707   (exit $ac_status); }
1708 { (eval echo "$as_me:1708: \"$ac_compiler -v </dev/null >&5\"") >&5
1709   (eval $ac_compiler -v </dev/null >&5) 2>&5
1710   ac_status=$?
1711   echo "$as_me:1711: \$? = $ac_status" >&5
1712   (exit $ac_status); }
1713 { (eval echo "$as_me:1713: \"$ac_compiler -V </dev/null >&5\"") >&5
1714   (eval $ac_compiler -V </dev/null >&5) 2>&5
1715   ac_status=$?
1716   echo "$as_me:1716: \$? = $ac_status" >&5
1717   (exit $ac_status); }
1718
1719 cat >conftest.$ac_ext <<_ACEOF
1720 #line 1720 "configure"
1721 #include "confdefs.h"
1722
1723 int
1724 main ()
1725 {
1726
1727   ;
1728   return 0;
1729 }
1730 _ACEOF
1731 ac_clean_files_save=$ac_clean_files
1732 ac_clean_files="$ac_clean_files a.out a.exe"
1733 # Try to create an executable without -o first, disregard a.out.
1734 # It will help us diagnose broken compilers, and finding out an intuition
1735 # of exeext.
1736 echo "$as_me:1736: checking for C compiler default output" >&5
1737 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1738 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1739 if { (eval echo "$as_me:1739: \"$ac_link_default\"") >&5
1740   (eval $ac_link_default) 2>&5
1741   ac_status=$?
1742   echo "$as_me:1742: \$? = $ac_status" >&5
1743   (exit $ac_status); }; then
1744   # Find the output, starting from the most likely.  This scheme is
1745 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1746 # resort.
1747 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1748                 ls a.out conftest 2>/dev/null;
1749                 ls a.* conftest.* 2>/dev/null`; do
1750   case $ac_file in
1751     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1752     a.out ) # We found the default executable, but exeext='' is most
1753             # certainly right.
1754             break;;
1755     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1757           export ac_cv_exeext
1758           break;;
1759     * ) break;;
1760   esac
1761 done
1762 else
1763   echo "$as_me: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1765 { { echo "$as_me:1765: error: C compiler cannot create executables" >&5
1766 echo "$as_me: error: C compiler cannot create executables" >&2;}
1767    { (exit 77); exit 77; }; }
1768 fi
1769
1770 ac_exeext=$ac_cv_exeext
1771 echo "$as_me:1771: result: $ac_file" >&5
1772 echo "${ECHO_T}$ac_file" >&6
1773
1774 # Check the compiler produces executables we can run.  If not, either
1775 # the compiler is broken, or we cross compile.
1776 echo "$as_me:1776: checking whether the C compiler works" >&5
1777 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1778 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1779 # If not cross compiling, check that we can run a simple program.
1780 if test "$cross_compiling" != yes; then
1781   if { ac_try='./$ac_file'
1782   { (eval echo "$as_me:1782: \"$ac_try\"") >&5
1783   (eval $ac_try) 2>&5
1784   ac_status=$?
1785   echo "$as_me:1785: \$? = $ac_status" >&5
1786   (exit $ac_status); }; }; then
1787     cross_compiling=no
1788   else
1789     if test "$cross_compiling" = maybe; then
1790         cross_compiling=yes
1791     else
1792         { { echo "$as_me:1792: error: cannot run C compiled programs.
1793 If you meant to cross compile, use \`--host'." >&5
1794 echo "$as_me: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'." >&2;}
1796    { (exit 1); exit 1; }; }
1797     fi
1798   fi
1799 fi
1800 echo "$as_me:1800: result: yes" >&5
1801 echo "${ECHO_T}yes" >&6
1802
1803 rm -f a.out a.exe conftest$ac_cv_exeext
1804 ac_clean_files=$ac_clean_files_save
1805 # Check the compiler produces executables we can run.  If not, either
1806 # the compiler is broken, or we cross compile.
1807 echo "$as_me:1807: checking whether we are cross compiling" >&5
1808 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1809 echo "$as_me:1809: result: $cross_compiling" >&5
1810 echo "${ECHO_T}$cross_compiling" >&6
1811
1812 echo "$as_me:1812: checking for executable suffix" >&5
1813 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1814 if { (eval echo "$as_me:1814: \"$ac_link\"") >&5
1815   (eval $ac_link) 2>&5
1816   ac_status=$?
1817   echo "$as_me:1817: \$? = $ac_status" >&5
1818   (exit $ac_status); }; then
1819   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1820 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1821 # work properly (i.e., refer to `conftest.exe'), while it won't with
1822 # `rm'.
1823 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1824   case $ac_file in
1825     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1826     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1827           export ac_cv_exeext
1828           break;;
1829     * ) break;;
1830   esac
1831 done
1832 else
1833   { { echo "$as_me:1833: error: cannot compute EXEEXT: cannot compile and link" >&5
1834 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1835    { (exit 1); exit 1; }; }
1836 fi
1837
1838 rm -f conftest$ac_cv_exeext
1839 echo "$as_me:1839: result: $ac_cv_exeext" >&5
1840 echo "${ECHO_T}$ac_cv_exeext" >&6
1841
1842 rm -f conftest.$ac_ext
1843 EXEEXT=$ac_cv_exeext
1844 ac_exeext=$EXEEXT
1845 echo "$as_me:1845: checking for object suffix" >&5
1846 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1847 if test "${ac_cv_objext+set}" = set; then
1848   echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850   cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1853
1854 int
1855 main ()
1856 {
1857
1858   ;
1859   return 0;
1860 }
1861 _ACEOF
1862 rm -f conftest.o conftest.obj
1863 if { (eval echo "$as_me:1863: \"$ac_compile\"") >&5
1864   (eval $ac_compile) 2>&5
1865   ac_status=$?
1866   echo "$as_me:1866: \$? = $ac_status" >&5
1867   (exit $ac_status); }; then
1868   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1869   case $ac_file in
1870     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1871     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1872        break;;
1873   esac
1874 done
1875 else
1876   echo "$as_me: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1878 { { echo "$as_me:1878: error: cannot compute OBJEXT: cannot compile" >&5
1879 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1880    { (exit 1); exit 1; }; }
1881 fi
1882
1883 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1884 fi
1885 echo "$as_me:1885: result: $ac_cv_objext" >&5
1886 echo "${ECHO_T}$ac_cv_objext" >&6
1887 OBJEXT=$ac_cv_objext
1888 ac_objext=$OBJEXT
1889 echo "$as_me:1889: checking whether we are using the GNU C compiler" >&5
1890 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1891 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1892   echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894   cat >conftest.$ac_ext <<_ACEOF
1895 #line 1895 "configure"
1896 #include "confdefs.h"
1897
1898 int
1899 main ()
1900 {
1901 #ifndef __GNUC__
1902        choke me
1903 #endif
1904
1905   ;
1906   return 0;
1907 }
1908 _ACEOF
1909 rm -f conftest.$ac_objext
1910 if { (eval echo "$as_me:1910: \"$ac_compile\"") >&5
1911   (eval $ac_compile) 2>&5
1912   ac_status=$?
1913   echo "$as_me:1913: \$? = $ac_status" >&5
1914   (exit $ac_status); } &&
1915          { ac_try='test -s conftest.$ac_objext'
1916   { (eval echo "$as_me:1916: \"$ac_try\"") >&5
1917   (eval $ac_try) 2>&5
1918   ac_status=$?
1919   echo "$as_me:1919: \$? = $ac_status" >&5
1920   (exit $ac_status); }; }; then
1921   ac_compiler_gnu=yes
1922 else
1923   echo "$as_me: failed program was:" >&5
1924 cat conftest.$ac_ext >&5
1925 ac_compiler_gnu=no
1926 fi
1927 rm -f conftest.$ac_objext conftest.$ac_ext
1928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1929
1930 fi
1931 echo "$as_me:1931: result: $ac_cv_c_compiler_gnu" >&5
1932 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1933 GCC=`test $ac_compiler_gnu = yes && echo yes`
1934 ac_test_CFLAGS=${CFLAGS+set}
1935 ac_save_CFLAGS=$CFLAGS
1936 CFLAGS="-g"
1937 echo "$as_me:1937: checking whether $CC accepts -g" >&5
1938 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1939 if test "${ac_cv_prog_cc_g+set}" = set; then
1940   echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942   cat >conftest.$ac_ext <<_ACEOF
1943 #line 1943 "configure"
1944 #include "confdefs.h"
1945
1946 int
1947 main ()
1948 {
1949
1950   ;
1951   return 0;
1952 }
1953 _ACEOF
1954 rm -f conftest.$ac_objext
1955 if { (eval echo "$as_me:1955: \"$ac_compile\"") >&5
1956   (eval $ac_compile) 2>&5
1957   ac_status=$?
1958   echo "$as_me:1958: \$? = $ac_status" >&5
1959   (exit $ac_status); } &&
1960          { ac_try='test -s conftest.$ac_objext'
1961   { (eval echo "$as_me:1961: \"$ac_try\"") >&5
1962   (eval $ac_try) 2>&5
1963   ac_status=$?
1964   echo "$as_me:1964: \$? = $ac_status" >&5
1965   (exit $ac_status); }; }; then
1966   ac_cv_prog_cc_g=yes
1967 else
1968   echo "$as_me: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1970 ac_cv_prog_cc_g=no
1971 fi
1972 rm -f conftest.$ac_objext conftest.$ac_ext
1973 fi
1974 echo "$as_me:1974: result: $ac_cv_prog_cc_g" >&5
1975 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1976 if test "$ac_test_CFLAGS" = set; then
1977   CFLAGS=$ac_save_CFLAGS
1978 elif test $ac_cv_prog_cc_g = yes; then
1979   if test "$GCC" = yes; then
1980     CFLAGS="-g -O2"
1981   else
1982     CFLAGS="-g"
1983   fi
1984 else
1985   if test "$GCC" = yes; then
1986     CFLAGS="-O2"
1987   else
1988     CFLAGS=
1989   fi
1990 fi
1991 # Some people use a C++ compiler to compile C.  Since we use `exit',
1992 # in C++ we need to declare it.  In case someone uses the same compiler
1993 # for both compiling C and C++ we need to have the C++ compiler decide
1994 # the declaration of exit, since it's the most demanding environment.
1995 cat >conftest.$ac_ext <<_ACEOF
1996 #ifndef __cplusplus
1997   choke me
1998 #endif
1999 _ACEOF
2000 rm -f conftest.$ac_objext
2001 if { (eval echo "$as_me:2001: \"$ac_compile\"") >&5
2002   (eval $ac_compile) 2>&5
2003   ac_status=$?
2004   echo "$as_me:2004: \$? = $ac_status" >&5
2005   (exit $ac_status); } &&
2006          { ac_try='test -s conftest.$ac_objext'
2007   { (eval echo "$as_me:2007: \"$ac_try\"") >&5
2008   (eval $ac_try) 2>&5
2009   ac_status=$?
2010   echo "$as_me:2010: \$? = $ac_status" >&5
2011   (exit $ac_status); }; }; then
2012   for ac_declaration in \
2013    ''\
2014    '#include <stdlib.h>' \
2015    'extern "C" void std::exit (int) throw (); using std::exit;' \
2016    'extern "C" void std::exit (int); using std::exit;' \
2017    'extern "C" void exit (int) throw ();' \
2018    'extern "C" void exit (int);' \
2019    'void exit (int);'
2020 do
2021   cat >conftest.$ac_ext <<_ACEOF
2022 #line 2022 "configure"
2023 #include "confdefs.h"
2024 #include <stdlib.h>
2025 $ac_declaration
2026 int
2027 main ()
2028 {
2029 exit (42);
2030   ;
2031   return 0;
2032 }
2033 _ACEOF
2034 rm -f conftest.$ac_objext
2035 if { (eval echo "$as_me:2035: \"$ac_compile\"") >&5
2036   (eval $ac_compile) 2>&5
2037   ac_status=$?
2038   echo "$as_me:2038: \$? = $ac_status" >&5
2039   (exit $ac_status); } &&
2040          { ac_try='test -s conftest.$ac_objext'
2041   { (eval echo "$as_me:2041: \"$ac_try\"") >&5
2042   (eval $ac_try) 2>&5
2043   ac_status=$?
2044   echo "$as_me:2044: \$? = $ac_status" >&5
2045   (exit $ac_status); }; }; then
2046   :
2047 else
2048   echo "$as_me: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2050 continue
2051 fi
2052 rm -f conftest.$ac_objext conftest.$ac_ext
2053   cat >conftest.$ac_ext <<_ACEOF
2054 #line 2054 "configure"
2055 #include "confdefs.h"
2056 $ac_declaration
2057 int
2058 main ()
2059 {
2060 exit (42);
2061   ;
2062   return 0;
2063 }
2064 _ACEOF
2065 rm -f conftest.$ac_objext
2066 if { (eval echo "$as_me:2066: \"$ac_compile\"") >&5
2067   (eval $ac_compile) 2>&5
2068   ac_status=$?
2069   echo "$as_me:2069: \$? = $ac_status" >&5
2070   (exit $ac_status); } &&
2071          { ac_try='test -s conftest.$ac_objext'
2072   { (eval echo "$as_me:2072: \"$ac_try\"") >&5
2073   (eval $ac_try) 2>&5
2074   ac_status=$?
2075   echo "$as_me:2075: \$? = $ac_status" >&5
2076   (exit $ac_status); }; }; then
2077   break
2078 else
2079   echo "$as_me: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2081 fi
2082 rm -f conftest.$ac_objext conftest.$ac_ext
2083 done
2084 rm -f conftest*
2085 if test -n "$ac_declaration"; then
2086   echo '#ifdef __cplusplus' >>confdefs.h
2087   echo $ac_declaration      >>confdefs.h
2088   echo '#endif'             >>confdefs.h
2089 fi
2090
2091 else
2092   echo "$as_me: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2094 fi
2095 rm -f conftest.$ac_objext conftest.$ac_ext
2096 ac_ext=c
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 ac_main_return=return
2102
2103 GCC_VERSION=none
2104 if test "$GCC" = yes ; then
2105         echo "$as_me:2105: checking version of $CC" >&5
2106 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2107         GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2108         test -z "$GCC_VERSION" && GCC_VERSION=unknown
2109         echo "$as_me:2109: result: $GCC_VERSION" >&5
2110 echo "${ECHO_T}$GCC_VERSION" >&6
2111 fi
2112
2113 ac_ext=c
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118 ac_main_return=return
2119 echo "$as_me:2119: checking how to run the C preprocessor" >&5
2120 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2121 # On Suns, sometimes $CPP names a directory.
2122 if test -n "$CPP" && test -d "$CPP"; then
2123   CPP=
2124 fi
2125 if test -z "$CPP"; then
2126   if test "${ac_cv_prog_CPP+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129       # Double quotes because CPP needs to be expanded
2130     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2131     do
2132       ac_preproc_ok=false
2133 for ac_c_preproc_warn_flag in '' yes
2134 do
2135   # Use a header file that comes with gcc, so configuring glibc
2136   # with a fresh cross-compiler works.
2137   # On the NeXT, cc -E runs the code through the compiler's parser,
2138   # not just through cpp. "Syntax error" is here to catch this case.
2139   cat >conftest.$ac_ext <<_ACEOF
2140 #line 2140 "configure"
2141 #include "confdefs.h"
2142 #include <assert.h>
2143                      Syntax error
2144 _ACEOF
2145 if { (eval echo "$as_me:2145: \"$ac_cpp conftest.$ac_ext\"") >&5
2146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2147   ac_status=$?
2148   egrep -v '^ *\+' conftest.er1 >conftest.err
2149   rm -f conftest.er1
2150   cat conftest.err >&5
2151   echo "$as_me:2151: \$? = $ac_status" >&5
2152   (exit $ac_status); } >/dev/null; then
2153   if test -s conftest.err; then
2154     ac_cpp_err=$ac_c_preproc_warn_flag
2155   else
2156     ac_cpp_err=
2157   fi
2158 else
2159   ac_cpp_err=yes
2160 fi
2161 if test -z "$ac_cpp_err"; then
2162   :
2163 else
2164   echo "$as_me: failed program was:" >&5
2165   cat conftest.$ac_ext >&5
2166   # Broken: fails on valid input.
2167 continue
2168 fi
2169 rm -f conftest.err conftest.$ac_ext
2170
2171   # OK, works on sane cases.  Now check whether non-existent headers
2172   # can be detected and how.
2173   cat >conftest.$ac_ext <<_ACEOF
2174 #line 2174 "configure"
2175 #include "confdefs.h"
2176 #include <ac_nonexistent.h>
2177 _ACEOF
2178 if { (eval echo "$as_me:2178: \"$ac_cpp conftest.$ac_ext\"") >&5
2179   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2180   ac_status=$?
2181   egrep -v '^ *\+' conftest.er1 >conftest.err
2182   rm -f conftest.er1
2183   cat conftest.err >&5
2184   echo "$as_me:2184: \$? = $ac_status" >&5
2185   (exit $ac_status); } >/dev/null; then
2186   if test -s conftest.err; then
2187     ac_cpp_err=$ac_c_preproc_warn_flag
2188   else
2189     ac_cpp_err=
2190   fi
2191 else
2192   ac_cpp_err=yes
2193 fi
2194 if test -z "$ac_cpp_err"; then
2195   # Broken: success on invalid input.
2196 continue
2197 else
2198   echo "$as_me: failed program was:" >&5
2199   cat conftest.$ac_ext >&5
2200   # Passes both tests.
2201 ac_preproc_ok=:
2202 break
2203 fi
2204 rm -f conftest.err conftest.$ac_ext
2205
2206 done
2207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2208 rm -f conftest.err conftest.$ac_ext
2209 if $ac_preproc_ok; then
2210   break
2211 fi
2212
2213     done
2214     ac_cv_prog_CPP=$CPP
2215
2216 fi
2217   CPP=$ac_cv_prog_CPP
2218 else
2219   ac_cv_prog_CPP=$CPP
2220 fi
2221 echo "$as_me:2221: result: $CPP" >&5
2222 echo "${ECHO_T}$CPP" >&6
2223 ac_preproc_ok=false
2224 for ac_c_preproc_warn_flag in '' yes
2225 do
2226   # Use a header file that comes with gcc, so configuring glibc
2227   # with a fresh cross-compiler works.
2228   # On the NeXT, cc -E runs the code through the compiler's parser,
2229   # not just through cpp. "Syntax error" is here to catch this case.
2230   cat >conftest.$ac_ext <<_ACEOF
2231 #line 2231 "configure"
2232 #include "confdefs.h"
2233 #include <assert.h>
2234                      Syntax error
2235 _ACEOF
2236 if { (eval echo "$as_me:2236: \"$ac_cpp conftest.$ac_ext\"") >&5
2237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2238   ac_status=$?
2239   egrep -v '^ *\+' conftest.er1 >conftest.err
2240   rm -f conftest.er1
2241   cat conftest.err >&5
2242   echo "$as_me:2242: \$? = $ac_status" >&5
2243   (exit $ac_status); } >/dev/null; then
2244   if test -s conftest.err; then
2245     ac_cpp_err=$ac_c_preproc_warn_flag
2246   else
2247     ac_cpp_err=
2248   fi
2249 else
2250   ac_cpp_err=yes
2251 fi
2252 if test -z "$ac_cpp_err"; then
2253   :
2254 else
2255   echo "$as_me: failed program was:" >&5
2256   cat conftest.$ac_ext >&5
2257   # Broken: fails on valid input.
2258 continue
2259 fi
2260 rm -f conftest.err conftest.$ac_ext
2261
2262   # OK, works on sane cases.  Now check whether non-existent headers
2263   # can be detected and how.
2264   cat >conftest.$ac_ext <<_ACEOF
2265 #line 2265 "configure"
2266 #include "confdefs.h"
2267 #include <ac_nonexistent.h>
2268 _ACEOF
2269 if { (eval echo "$as_me:2269: \"$ac_cpp conftest.$ac_ext\"") >&5
2270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2271   ac_status=$?
2272   egrep -v '^ *\+' conftest.er1 >conftest.err
2273   rm -f conftest.er1
2274   cat conftest.err >&5
2275   echo "$as_me:2275: \$? = $ac_status" >&5
2276   (exit $ac_status); } >/dev/null; then
2277   if test -s conftest.err; then
2278     ac_cpp_err=$ac_c_preproc_warn_flag
2279   else
2280     ac_cpp_err=
2281   fi
2282 else
2283   ac_cpp_err=yes
2284 fi
2285 if test -z "$ac_cpp_err"; then
2286   # Broken: success on invalid input.
2287 continue
2288 else
2289   echo "$as_me: failed program was:" >&5
2290   cat conftest.$ac_ext >&5
2291   # Passes both tests.
2292 ac_preproc_ok=:
2293 break
2294 fi
2295 rm -f conftest.err conftest.$ac_ext
2296
2297 done
2298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2299 rm -f conftest.err conftest.$ac_ext
2300 if $ac_preproc_ok; then
2301   :
2302 else
2303   { { echo "$as_me:2303: error: C preprocessor \"$CPP\" fails sanity check" >&5
2304 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2305    { (exit 1); exit 1; }; }
2306 fi
2307
2308 ac_ext=c
2309 ac_cpp='$CPP $CPPFLAGS'
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313 ac_main_return=return
2314
2315 if test $ac_cv_c_compiler_gnu = yes; then
2316     echo "$as_me:2316: checking whether $CC needs -traditional" >&5
2317 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2318 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321     ac_pattern="Autoconf.*'x'"
2322   cat >conftest.$ac_ext <<_ACEOF
2323 #line 2323 "configure"
2324 #include "confdefs.h"
2325 #include <sgtty.h>
2326 int Autoconf = TIOCGETP;
2327 _ACEOF
2328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2329   egrep "$ac_pattern" >/dev/null 2>&1; then
2330   ac_cv_prog_gcc_traditional=yes
2331 else
2332   ac_cv_prog_gcc_traditional=no
2333 fi
2334 rm -f conftest*
2335
2336   if test $ac_cv_prog_gcc_traditional = no; then
2337     cat >conftest.$ac_ext <<_ACEOF
2338 #line 2338 "configure"
2339 #include "confdefs.h"
2340 #include <termio.h>
2341 int Autoconf = TCGETA;
2342 _ACEOF
2343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2344   egrep "$ac_pattern" >/dev/null 2>&1; then
2345   ac_cv_prog_gcc_traditional=yes
2346 fi
2347 rm -f conftest*
2348
2349   fi
2350 fi
2351 echo "$as_me:2351: result: $ac_cv_prog_gcc_traditional" >&5
2352 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2353   if test $ac_cv_prog_gcc_traditional = yes; then
2354     CC="$CC -traditional"
2355   fi
2356 fi
2357
2358 echo "$as_me:2358: checking whether $CC understands -c and -o together" >&5
2359 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2360 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363
2364 cat > conftest.$ac_ext <<CF_EOF
2365 #include <stdio.h>
2366 int main()
2367 {
2368         ${cf_cv_main_return:-return}(0);
2369 }
2370 CF_EOF
2371 # We do the test twice because some compilers refuse to overwrite an
2372 # existing .o file with -o, though they will create one.
2373 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2374 if { (eval echo "$as_me:2374: \"$ac_try\"") >&5
2375   (eval $ac_try) 2>&5
2376   ac_status=$?
2377   echo "$as_me:2377: \$? = $ac_status" >&5
2378   (exit $ac_status); } &&
2379   test -f conftest2.$ac_objext && { (eval echo "$as_me:2379: \"$ac_try\"") >&5
2380   (eval $ac_try) 2>&5
2381   ac_status=$?
2382   echo "$as_me:2382: \$? = $ac_status" >&5
2383   (exit $ac_status); };
2384 then
2385   eval cf_cv_prog_CC_c_o=yes
2386 else
2387   eval cf_cv_prog_CC_c_o=no
2388 fi
2389 rm -f conftest*
2390
2391 fi
2392 if test $cf_cv_prog_CC_c_o = yes; then
2393   echo "$as_me:2393: result: yes" >&5
2394 echo "${ECHO_T}yes" >&6
2395 else
2396   echo "$as_me:2396: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2398 fi
2399
2400 echo "$as_me:2400: checking for POSIXized ISC" >&5
2401 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2402 if test -d /etc/conf/kconfig.d &&
2403    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2404 then
2405   echo "$as_me:2405: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6
2407   ISC=yes # If later tests want to check for ISC.
2408
2409 cat >>confdefs.h <<\EOF
2410 #define _POSIX_SOURCE 1
2411 EOF
2412
2413   if test "$GCC" = yes; then
2414     CC="$CC -posix"
2415   else
2416     CC="$CC -Xp"
2417   fi
2418 else
2419   echo "$as_me:2419: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2421   ISC=
2422 fi
2423
2424 echo "$as_me:2424: checking for ${CC-cc} option to accept ANSI C" >&5
2425 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2426 if test "${cf_cv_ansi_cc+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429
2430 cf_cv_ansi_cc=no
2431 cf_save_CFLAGS="$CFLAGS"
2432 cf_save_CPPFLAGS="$CPPFLAGS"
2433 # Don't try gcc -ansi; that turns off useful extensions and
2434 # breaks some systems' header files.
2435 # AIX                   -qlanglvl=ansi
2436 # Ultrix and OSF/1      -std1
2437 # HP-UX                 -Aa -D_HPUX_SOURCE
2438 # SVR4                  -Xc
2439 # UnixWare 1.2          (cannot use -Xc, since ANSI/POSIX clashes)
2440 for cf_arg in "-DCC_HAS_PROTOS" \
2441         "" \
2442         -qlanglvl=ansi \
2443         -std1 \
2444         -Ae \
2445         "-Aa -D_HPUX_SOURCE" \
2446         -Xc
2447 do
2448
2449 cf_fix_cppflags=no
2450 cf_new_cflags=
2451 cf_new_cppflags=
2452 cf_new_extra_cppflags=
2453
2454 for cf_add_cflags in $cf_arg
2455 do
2456 case $cf_fix_cppflags in
2457 no)
2458         case $cf_add_cflags in #(vi
2459         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2460                 case $cf_add_cflags in
2461                 -D*)
2462                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2463
2464                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2465                                 && test -z "${cf_tst_cflags}" \
2466                                 && cf_fix_cppflags=yes
2467
2468                         if test $cf_fix_cppflags = yes ; then
2469                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2470                                 continue
2471                         elif test "${cf_tst_cflags}" = "\"'" ; then
2472                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2473                                 continue
2474                         fi
2475                         ;;
2476                 esac
2477                 case "$CPPFLAGS" in
2478                 *$cf_add_cflags) #(vi
2479                         ;;
2480                 *) #(vi
2481                         case $cf_add_cflags in #(vi
2482                         -D*)
2483                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2484
2485 CPPFLAGS=`echo "$CPPFLAGS" | \
2486         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
2487                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
2488
2489                                 ;;
2490                         esac
2491                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2492                         ;;
2493                 esac
2494                 ;;
2495         *)
2496                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2497                 ;;
2498         esac
2499         ;;
2500 yes)
2501         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2502
2503         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2504
2505         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2506                 && test -z "${cf_tst_cflags}" \
2507                 && cf_fix_cppflags=no
2508         ;;
2509 esac
2510 done
2511
2512 if test -n "$cf_new_cflags" ; then
2513
2514         CFLAGS="$CFLAGS $cf_new_cflags"
2515 fi
2516
2517 if test -n "$cf_new_cppflags" ; then
2518
2519         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2520 fi
2521
2522 if test -n "$cf_new_extra_cppflags" ; then
2523
2524         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2525 fi
2526
2527         cat >conftest.$ac_ext <<_ACEOF
2528 #line 2528 "configure"
2529 #include "confdefs.h"
2530
2531 #ifndef CC_HAS_PROTOS
2532 #if !defined(__STDC__) || (__STDC__ != 1)
2533 choke me
2534 #endif
2535 #endif
2536
2537 int
2538 main ()
2539 {
2540
2541         int test (int i, double x);
2542         struct s1 {int (*f) (int a);};
2543         struct s2 {int (*f) (double a);};
2544   ;
2545   return 0;
2546 }
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:2549: \"$ac_compile\"") >&5
2550   (eval $ac_compile) 2>&5
2551   ac_status=$?
2552   echo "$as_me:2552: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          { ac_try='test -s conftest.$ac_objext'
2555   { (eval echo "$as_me:2555: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:2558: \$? = $ac_status" >&5
2559   (exit $ac_status); }; }; then
2560   cf_cv_ansi_cc="$cf_arg"; break
2561 else
2562   echo "$as_me: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2564 fi
2565 rm -f conftest.$ac_objext conftest.$ac_ext
2566 done
2567 CFLAGS="$cf_save_CFLAGS"
2568 CPPFLAGS="$cf_save_CPPFLAGS"
2569
2570 fi
2571 echo "$as_me:2571: result: $cf_cv_ansi_cc" >&5
2572 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2573
2574 if test "$cf_cv_ansi_cc" != "no"; then
2575 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2576
2577 cf_fix_cppflags=no
2578 cf_new_cflags=
2579 cf_new_cppflags=
2580 cf_new_extra_cppflags=
2581
2582 for cf_add_cflags in $cf_cv_ansi_cc
2583 do
2584 case $cf_fix_cppflags in
2585 no)
2586         case $cf_add_cflags in #(vi
2587         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2588                 case $cf_add_cflags in
2589                 -D*)
2590                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2591
2592                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2593                                 && test -z "${cf_tst_cflags}" \
2594                                 && cf_fix_cppflags=yes
2595
2596                         if test $cf_fix_cppflags = yes ; then
2597                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2598                                 continue
2599                         elif test "${cf_tst_cflags}" = "\"'" ; then
2600                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2601                                 continue
2602                         fi
2603                         ;;
2604                 esac
2605                 case "$CPPFLAGS" in
2606                 *$cf_add_cflags) #(vi
2607                         ;;
2608                 *) #(vi
2609                         case $cf_add_cflags in #(vi
2610                         -D*)
2611                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2612
2613 CPPFLAGS=`echo "$CPPFLAGS" | \
2614         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
2615                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
2616
2617                                 ;;
2618                         esac
2619                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2620                         ;;
2621                 esac
2622                 ;;
2623         *)
2624                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2625                 ;;
2626         esac
2627         ;;
2628 yes)
2629         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2630
2631         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2632
2633         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2634                 && test -z "${cf_tst_cflags}" \
2635                 && cf_fix_cppflags=no
2636         ;;
2637 esac
2638 done
2639
2640 if test -n "$cf_new_cflags" ; then
2641
2642         CFLAGS="$CFLAGS $cf_new_cflags"
2643 fi
2644
2645 if test -n "$cf_new_cppflags" ; then
2646
2647         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2648 fi
2649
2650 if test -n "$cf_new_extra_cppflags" ; then
2651
2652         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2653 fi
2654
2655 else
2656         cat >>confdefs.h <<\EOF
2657 #define CC_HAS_PROTOS 1
2658 EOF
2659
2660 fi
2661 fi
2662
2663 if test "$cf_cv_ansi_cc" = "no"; then
2664         { { echo "$as_me:2664: error: Your compiler does not appear to recognize prototypes.
2665 You have the following choices:
2666         a. adjust your compiler options
2667         b. get an up-to-date compiler
2668         c. use a wrapper such as unproto" >&5
2669 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2670 You have the following choices:
2671         a. adjust your compiler options
2672         b. get an up-to-date compiler
2673         c. use a wrapper such as unproto" >&2;}
2674    { (exit 1); exit 1; }; }
2675 fi
2676
2677 case $cf_cv_system_name in
2678 os2*)
2679     CFLAGS="$CFLAGS -Zmt"
2680     CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2681     CXXFLAGS="$CXXFLAGS -Zmt"
2682     # autoconf's macro sets -Zexe and suffix both, which conflict:w
2683     LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2684     ac_cv_exeext=.exe
2685     ;;
2686 esac
2687
2688 PROG_EXT="$EXEEXT"
2689
2690 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2691 #define PROG_EXT "$PROG_EXT"
2692 EOF
2693
2694 if test "$cross_compiling" = yes ; then
2695   LDCONFIG=:
2696 else
2697 case "$cf_cv_system_name" in #(vi
2698 dragonfly*|freebsd*) #(vi
2699   test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2700   ;;
2701 *) LDPATH=$PATH:/sbin:/usr/sbin
2702   # Extract the first word of "ldconfig", so it can be a program name with args.
2703 set dummy ldconfig; ac_word=$2
2704 echo "$as_me:2704: checking for $ac_word" >&5
2705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2707   echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709   case $LDCONFIG in
2710   [\\/]* | ?:[\\/]*)
2711   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2712   ;;
2713   *)
2714   ac_save_IFS=$IFS; IFS=$ac_path_separator
2715 ac_dummy="$LDPATH"
2716 for ac_dir in $ac_dummy; do
2717   IFS=$ac_save_IFS
2718   test -z "$ac_dir" && ac_dir=.
2719   if $as_executable_p "$ac_dir/$ac_word"; then
2720    ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2721    echo "$as_me:2721: found $ac_dir/$ac_word" >&5
2722    break
2723 fi
2724 done
2725
2726   ;;
2727 esac
2728 fi
2729 LDCONFIG=$ac_cv_path_LDCONFIG
2730
2731 if test -n "$LDCONFIG"; then
2732   echo "$as_me:2732: result: $LDCONFIG" >&5
2733 echo "${ECHO_T}$LDCONFIG" >&6
2734 else
2735   echo "$as_me:2735: result: no" >&5
2736 echo "${ECHO_T}no" >&6
2737 fi
2738
2739   ;;
2740 esac
2741 fi
2742
2743 echo "$as_me:2743: checking if you want to ensure bool is consistent with C++" >&5
2744 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2745
2746 # Check whether --with-cxx or --without-cxx was given.
2747 if test "${with_cxx+set}" = set; then
2748   withval="$with_cxx"
2749   cf_with_cxx=$withval
2750 else
2751   cf_with_cxx=yes
2752 fi;
2753 echo "$as_me:2753: result: $cf_with_cxx" >&5
2754 echo "${ECHO_T}$cf_with_cxx" >&6
2755 if test "X$cf_with_cxx" = Xno ; then
2756         CXX=""
2757         GXX=""
2758 else
2759         # with autoconf 2.13, we can change the error to a warning:
2760                 ac_ext=cc
2761 ac_cpp='$CXXCPP $CPPFLAGS'
2762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2765 ac_main_return=return
2766 if test -n "$ac_tool_prefix"; then
2767   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2768   do
2769     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2771 echo "$as_me:2771: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773 if test "${ac_cv_prog_CXX+set}" = set; then
2774   echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776   if test -n "$CXX"; then
2777   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2778 else
2779   ac_save_IFS=$IFS; IFS=$ac_path_separator
2780 ac_dummy="$PATH"
2781 for ac_dir in $ac_dummy; do
2782   IFS=$ac_save_IFS
2783   test -z "$ac_dir" && ac_dir=.
2784   $as_executable_p "$ac_dir/$ac_word" || continue
2785 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2786 echo "$as_me:2786: found $ac_dir/$ac_word" >&5
2787 break
2788 done
2789
2790 fi
2791 fi
2792 CXX=$ac_cv_prog_CXX
2793 if test -n "$CXX"; then
2794   echo "$as_me:2794: result: $CXX" >&5
2795 echo "${ECHO_T}$CXX" >&6
2796 else
2797   echo "$as_me:2797: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2799 fi
2800
2801     test -n "$CXX" && break
2802   done
2803 fi
2804 if test -z "$CXX"; then
2805   ac_ct_CXX=$CXX
2806   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2807 do
2808   # Extract the first word of "$ac_prog", so it can be a program name with args.
2809 set dummy $ac_prog; ac_word=$2
2810 echo "$as_me:2810: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2813   echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815   if test -n "$ac_ct_CXX"; then
2816   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2817 else
2818   ac_save_IFS=$IFS; IFS=$ac_path_separator
2819 ac_dummy="$PATH"
2820 for ac_dir in $ac_dummy; do
2821   IFS=$ac_save_IFS
2822   test -z "$ac_dir" && ac_dir=.
2823   $as_executable_p "$ac_dir/$ac_word" || continue
2824 ac_cv_prog_ac_ct_CXX="$ac_prog"
2825 echo "$as_me:2825: found $ac_dir/$ac_word" >&5
2826 break
2827 done
2828
2829 fi
2830 fi
2831 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2832 if test -n "$ac_ct_CXX"; then
2833   echo "$as_me:2833: result: $ac_ct_CXX" >&5
2834 echo "${ECHO_T}$ac_ct_CXX" >&6
2835 else
2836   echo "$as_me:2836: result: no" >&5
2837 echo "${ECHO_T}no" >&6
2838 fi
2839
2840   test -n "$ac_ct_CXX" && break
2841 done
2842 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2843
2844   CXX=$ac_ct_CXX
2845 fi
2846
2847 # Provide some information about the compiler.
2848 echo "$as_me:2848:" \
2849      "checking for C++ compiler version" >&5
2850 ac_compiler=`set X $ac_compile; echo $2`
2851 { (eval echo "$as_me:2851: \"$ac_compiler --version </dev/null >&5\"") >&5
2852   (eval $ac_compiler --version </dev/null >&5) 2>&5
2853   ac_status=$?
2854   echo "$as_me:2854: \$? = $ac_status" >&5
2855   (exit $ac_status); }
2856 { (eval echo "$as_me:2856: \"$ac_compiler -v </dev/null >&5\"") >&5
2857   (eval $ac_compiler -v </dev/null >&5) 2>&5
2858   ac_status=$?
2859   echo "$as_me:2859: \$? = $ac_status" >&5
2860   (exit $ac_status); }
2861 { (eval echo "$as_me:2861: \"$ac_compiler -V </dev/null >&5\"") >&5
2862   (eval $ac_compiler -V </dev/null >&5) 2>&5
2863   ac_status=$?
2864   echo "$as_me:2864: \$? = $ac_status" >&5
2865   (exit $ac_status); }
2866
2867 echo "$as_me:2867: checking whether we are using the GNU C++ compiler" >&5
2868 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2869 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2870   echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872   cat >conftest.$ac_ext <<_ACEOF
2873 #line 2873 "configure"
2874 #include "confdefs.h"
2875
2876 int
2877 main ()
2878 {
2879 #ifndef __GNUC__
2880        choke me
2881 #endif
2882
2883   ;
2884   return 0;
2885 }
2886 _ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:2888: \"$ac_compile\"") >&5
2889   (eval $ac_compile) 2>&5
2890   ac_status=$?
2891   echo "$as_me:2891: \$? = $ac_status" >&5
2892   (exit $ac_status); } &&
2893          { ac_try='test -s conftest.$ac_objext'
2894   { (eval echo "$as_me:2894: \"$ac_try\"") >&5
2895   (eval $ac_try) 2>&5
2896   ac_status=$?
2897   echo "$as_me:2897: \$? = $ac_status" >&5
2898   (exit $ac_status); }; }; then
2899   ac_compiler_gnu=yes
2900 else
2901   echo "$as_me: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2903 ac_compiler_gnu=no
2904 fi
2905 rm -f conftest.$ac_objext conftest.$ac_ext
2906 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2907
2908 fi
2909 echo "$as_me:2909: result: $ac_cv_cxx_compiler_gnu" >&5
2910 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2911 GXX=`test $ac_compiler_gnu = yes && echo yes`
2912 ac_test_CXXFLAGS=${CXXFLAGS+set}
2913 ac_save_CXXFLAGS=$CXXFLAGS
2914 CXXFLAGS="-g"
2915 echo "$as_me:2915: checking whether $CXX accepts -g" >&5
2916 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2917 if test "${ac_cv_prog_cxx_g+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920   cat >conftest.$ac_ext <<_ACEOF
2921 #line 2921 "configure"
2922 #include "confdefs.h"
2923
2924 int
2925 main ()
2926 {
2927
2928   ;
2929   return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:2933: \"$ac_compile\"") >&5
2934   (eval $ac_compile) 2>&5
2935   ac_status=$?
2936   echo "$as_me:2936: \$? = $ac_status" >&5
2937   (exit $ac_status); } &&
2938          { ac_try='test -s conftest.$ac_objext'
2939   { (eval echo "$as_me:2939: \"$ac_try\"") >&5
2940   (eval $ac_try) 2>&5
2941   ac_status=$?
2942   echo "$as_me:2942: \$? = $ac_status" >&5
2943   (exit $ac_status); }; }; then
2944   ac_cv_prog_cxx_g=yes
2945 else
2946   echo "$as_me: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2948 ac_cv_prog_cxx_g=no
2949 fi
2950 rm -f conftest.$ac_objext conftest.$ac_ext
2951 fi
2952 echo "$as_me:2952: result: $ac_cv_prog_cxx_g" >&5
2953 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2954 if test "$ac_test_CXXFLAGS" = set; then
2955   CXXFLAGS=$ac_save_CXXFLAGS
2956 elif test $ac_cv_prog_cxx_g = yes; then
2957   if test "$GXX" = yes; then
2958     CXXFLAGS="-g -O2"
2959   else
2960     CXXFLAGS="-g"
2961   fi
2962 else
2963   if test "$GXX" = yes; then
2964     CXXFLAGS="-O2"
2965   else
2966     CXXFLAGS=
2967   fi
2968 fi
2969 for ac_declaration in \
2970    ''\
2971    '#include <stdlib.h>' \
2972    'extern "C" void std::exit (int) throw (); using std::exit;' \
2973    'extern "C" void std::exit (int); using std::exit;' \
2974    'extern "C" void exit (int) throw ();' \
2975    'extern "C" void exit (int);' \
2976    'void exit (int);'
2977 do
2978   cat >conftest.$ac_ext <<_ACEOF
2979 #line 2979 "configure"
2980 #include "confdefs.h"
2981 #include <stdlib.h>
2982 $ac_declaration
2983 int
2984 main ()
2985 {
2986 exit (42);
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 rm -f conftest.$ac_objext
2992 if { (eval echo "$as_me:2992: \"$ac_compile\"") >&5
2993   (eval $ac_compile) 2>&5
2994   ac_status=$?
2995   echo "$as_me:2995: \$? = $ac_status" >&5
2996   (exit $ac_status); } &&
2997          { ac_try='test -s conftest.$ac_objext'
2998   { (eval echo "$as_me:2998: \"$ac_try\"") >&5
2999   (eval $ac_try) 2>&5
3000   ac_status=$?
3001   echo "$as_me:3001: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   :
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3007 continue
3008 fi
3009 rm -f conftest.$ac_objext conftest.$ac_ext
3010   cat >conftest.$ac_ext <<_ACEOF
3011 #line 3011 "configure"
3012 #include "confdefs.h"
3013 $ac_declaration
3014 int
3015 main ()
3016 {
3017 exit (42);
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:3023: \"$ac_compile\"") >&5
3024   (eval $ac_compile) 2>&5
3025   ac_status=$?
3026   echo "$as_me:3026: \$? = $ac_status" >&5
3027   (exit $ac_status); } &&
3028          { ac_try='test -s conftest.$ac_objext'
3029   { (eval echo "$as_me:3029: \"$ac_try\"") >&5
3030   (eval $ac_try) 2>&5
3031   ac_status=$?
3032   echo "$as_me:3032: \$? = $ac_status" >&5
3033   (exit $ac_status); }; }; then
3034   break
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3038 fi
3039 rm -f conftest.$ac_objext conftest.$ac_ext
3040 done
3041 rm -f conftest*
3042 if test -n "$ac_declaration"; then
3043   echo '#ifdef __cplusplus' >>confdefs.h
3044   echo $ac_declaration      >>confdefs.h
3045   echo '#endif'             >>confdefs.h
3046 fi
3047
3048 ac_ext=c
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053 ac_main_return=return
3054
3055                 # autoconf 2.5x removed the error - by hardcoding it to g++.
3056         if test "$CXX" = "g++" ; then
3057                 # Extract the first word of "g++", so it can be a program name with args.
3058 set dummy g++; ac_word=$2
3059 echo "$as_me:3059: checking for $ac_word" >&5
3060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061 if test "${ac_cv_path_CXX+set}" = set; then
3062   echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064   case $CXX in
3065   [\\/]* | ?:[\\/]*)
3066   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3067   ;;
3068   *)
3069   ac_save_IFS=$IFS; IFS=$ac_path_separator
3070 ac_dummy="$PATH"
3071 for ac_dir in $ac_dummy; do
3072   IFS=$ac_save_IFS
3073   test -z "$ac_dir" && ac_dir=.
3074   if $as_executable_p "$ac_dir/$ac_word"; then
3075    ac_cv_path_CXX="$ac_dir/$ac_word"
3076    echo "$as_me:3076: found $ac_dir/$ac_word" >&5
3077    break
3078 fi
3079 done
3080
3081   ;;
3082 esac
3083 fi
3084 CXX=$ac_cv_path_CXX
3085
3086 if test -n "$CXX"; then
3087   echo "$as_me:3087: result: $CXX" >&5
3088 echo "${ECHO_T}$CXX" >&6
3089 else
3090   echo "$as_me:3090: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3092 fi
3093
3094         fi
3095         if test "$CXX" = "g++" ; then
3096                 { echo "$as_me:3096: WARNING: ignoring hardcoded g++" >&5
3097 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3098                 cf_with_cxx=no; CXX=""; GXX="";
3099         fi
3100 fi
3101
3102 GXX_VERSION=none
3103 if test "$GXX" = yes; then
3104         echo "$as_me:3104: checking version of g++" >&5
3105 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3106         GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3107         test -z "$GXX_VERSION" && GXX_VERSION=unknown
3108         echo "$as_me:3108: result: $GXX_VERSION" >&5
3109 echo "${ECHO_T}$GXX_VERSION" >&6
3110 fi
3111
3112 case $GXX_VERSION in
3113 1*|2.[0-6]*)
3114         # GXX=""; CXX=""; ac_cv_prog_gxx=no
3115         # cf_cxx_library=no
3116         { echo "$as_me:3116: WARNING: templates do not work" >&5
3117 echo "$as_me: WARNING: templates do not work" >&2;}
3118         ;;
3119 esac
3120
3121 echo "$as_me:3121: checking if you want to build C++ binding and demo" >&5
3122 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3123
3124 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3125 if test "${with_cxx_binding+set}" = set; then
3126   withval="$with_cxx_binding"
3127   cf_with_cxx_binding=$withval
3128 else
3129   cf_with_cxx_binding=$cf_with_cxx
3130 fi;
3131 echo "$as_me:3131: result: $cf_with_cxx_binding" >&5
3132 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3133
3134 echo "$as_me:3134: checking if you want to build with Ada95" >&5
3135 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3136
3137 # Check whether --with-ada or --without-ada was given.
3138 if test "${with_ada+set}" = set; then
3139   withval="$with_ada"
3140   cf_with_ada=$withval
3141 else
3142   cf_with_ada=yes
3143 fi;
3144 echo "$as_me:3144: result: $cf_with_ada" >&5
3145 echo "${ECHO_T}$cf_with_ada" >&6
3146
3147 echo "$as_me:3147: checking if you want to install manpages" >&5
3148 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3149
3150 # Check whether --with-manpages or --without-manpages was given.
3151 if test "${with_manpages+set}" = set; then
3152   withval="$with_manpages"
3153   cf_with_manpages=$withval
3154 else
3155   cf_with_manpages=yes
3156 fi;
3157 echo "$as_me:3157: result: $cf_with_manpages" >&5
3158 echo "${ECHO_T}$cf_with_manpages" >&6
3159
3160 echo "$as_me:3160: checking if you want to build programs such as tic" >&5
3161 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3162
3163 # Check whether --with-progs or --without-progs was given.
3164 if test "${with_progs+set}" = set; then
3165   withval="$with_progs"
3166   cf_with_progs=$withval
3167 else
3168   cf_with_progs=yes
3169 fi;
3170 echo "$as_me:3170: result: $cf_with_progs" >&5
3171 echo "${ECHO_T}$cf_with_progs" >&6
3172
3173 echo "$as_me:3173: checking if you wish to install curses.h" >&5
3174 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3175
3176 # Check whether --with-curses-h or --without-curses-h was given.
3177 if test "${with_curses_h+set}" = set; then
3178   withval="$with_curses_h"
3179   with_curses_h=$withval
3180 else
3181   with_curses_h=yes
3182 fi;
3183 echo "$as_me:3183: result: $with_curses_h" >&5
3184 echo "${ECHO_T}$with_curses_h" >&6
3185
3186 modules_to_build="ncurses"
3187 if test "X$cf_with_progs" != Xno ; then
3188 modules_to_build="$modules_to_build progs tack"
3189 fi
3190 modules_to_build="$modules_to_build panel menu form"
3191
3192 test "$program_prefix" != NONE &&
3193   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3194 # Use a double $ so make ignores it.
3195 test "$program_suffix" != NONE &&
3196   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3197 # Double any \ or $.  echo might interpret backslashes.
3198 # By default was `s,x,x', remove it if useless.
3199 cat <<\_ACEOF >conftest.sed
3200 s/[\\$]/&&/g;s/;s,x,x,$//
3201 _ACEOF
3202 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3203 rm conftest.sed
3204
3205 for ac_prog in mawk gawk nawk awk
3206 do
3207   # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy $ac_prog; ac_word=$2
3209 echo "$as_me:3209: checking for $ac_word" >&5
3210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3211 if test "${ac_cv_prog_AWK+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214   if test -n "$AWK"; then
3215   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3216 else
3217   ac_save_IFS=$IFS; IFS=$ac_path_separator
3218 ac_dummy="$PATH"
3219 for ac_dir in $ac_dummy; do
3220   IFS=$ac_save_IFS
3221   test -z "$ac_dir" && ac_dir=.
3222   $as_executable_p "$ac_dir/$ac_word" || continue
3223 ac_cv_prog_AWK="$ac_prog"
3224 echo "$as_me:3224: found $ac_dir/$ac_word" >&5
3225 break
3226 done
3227
3228 fi
3229 fi
3230 AWK=$ac_cv_prog_AWK
3231 if test -n "$AWK"; then
3232   echo "$as_me:3232: result: $AWK" >&5
3233 echo "${ECHO_T}$AWK" >&6
3234 else
3235   echo "$as_me:3235: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3237 fi
3238
3239   test -n "$AWK" && break
3240 done
3241
3242 test -z "$AWK" && { { echo "$as_me:3242: error: No awk program found" >&5
3243 echo "$as_me: error: No awk program found" >&2;}
3244    { (exit 1); exit 1; }; }
3245
3246 echo "$as_me:3246: checking for egrep" >&5
3247 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3248 if test "${ac_cv_prog_egrep+set}" = set; then
3249   echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3252     then ac_cv_prog_egrep='grep -E'
3253     else ac_cv_prog_egrep='egrep'
3254     fi
3255 fi
3256 echo "$as_me:3256: result: $ac_cv_prog_egrep" >&5
3257 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3258  EGREP=$ac_cv_prog_egrep
3259
3260 test -z "$EGREP" && { { echo "$as_me:3260: error: No egrep program found" >&5
3261 echo "$as_me: error: No egrep program found" >&2;}
3262    { (exit 1); exit 1; }; }
3263
3264 # Find a good install program.  We prefer a C program (faster),
3265 # so one script is as good as another.  But avoid the broken or
3266 # incompatible versions:
3267 # SysV /etc/install, /usr/sbin/install
3268 # SunOS /usr/etc/install
3269 # IRIX /sbin/install
3270 # AIX /bin/install
3271 # AmigaOS /C/install, which installs bootblocks on floppy discs
3272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3275 # ./install, which can be erroneously created by make from ./install.sh.
3276 echo "$as_me:3276: checking for a BSD compatible install" >&5
3277 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3278 if test -z "$INSTALL"; then
3279 if test "${ac_cv_path_install+set}" = set; then
3280   echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282     ac_save_IFS=$IFS; IFS=$ac_path_separator
3283   for ac_dir in $PATH; do
3284     IFS=$ac_save_IFS
3285     # Account for people who put trailing slashes in PATH elements.
3286     case $ac_dir/ in
3287     / | ./ | .// | /cC/* \
3288     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3289     | /usr/ucb/* ) ;;
3290     *)
3291       # OSF1 and SCO ODT 3.0 have their own names for install.
3292       # Don't use installbsd from OSF since it installs stuff as root
3293       # by default.
3294       for ac_prog in ginstall scoinst install; do
3295         if $as_executable_p "$ac_dir/$ac_prog"; then
3296           if test $ac_prog = install &&
3297             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3298             # AIX install.  It has an incompatible calling convention.
3299             :
3300           elif test $ac_prog = install &&
3301             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3302             # program-specific install script used by HP pwplus--don't use.
3303             :
3304           else
3305             ac_cv_path_install="$ac_dir/$ac_prog -c"
3306             break 2
3307           fi
3308         fi
3309       done
3310       ;;
3311     esac
3312   done
3313
3314 fi
3315   if test "${ac_cv_path_install+set}" = set; then
3316     INSTALL=$ac_cv_path_install
3317   else
3318     # As a last resort, use the slow shell script.  We don't cache a
3319     # path for INSTALL within a source directory, because that will
3320     # break other packages using the cache if that directory is
3321     # removed, or if the path is relative.
3322     INSTALL=$ac_install_sh
3323   fi
3324 fi
3325 echo "$as_me:3325: result: $INSTALL" >&5
3326 echo "${ECHO_T}$INSTALL" >&6
3327
3328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3329 # It thinks the first close brace ends the variable substitution.
3330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3331
3332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3333
3334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3335
3336 case $INSTALL in
3337 /*)
3338   ;;
3339 *)
3340   cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3341   test -z "$cf_dir" && cf_dir=.
3342   INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3343   ;;
3344 esac
3345
3346 for ac_prog in tdlint lint alint splint lclint
3347 do
3348   # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy $ac_prog; ac_word=$2
3350 echo "$as_me:3350: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_prog_LINT+set}" = set; then
3353   echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355   if test -n "$LINT"; then
3356   ac_cv_prog_LINT="$LINT" # Let the user override the test.
3357 else
3358   ac_save_IFS=$IFS; IFS=$ac_path_separator
3359 ac_dummy="$PATH"
3360 for ac_dir in $ac_dummy; do
3361   IFS=$ac_save_IFS
3362   test -z "$ac_dir" && ac_dir=.
3363   $as_executable_p "$ac_dir/$ac_word" || continue
3364 ac_cv_prog_LINT="$ac_prog"
3365 echo "$as_me:3365: found $ac_dir/$ac_word" >&5
3366 break
3367 done
3368
3369 fi
3370 fi
3371 LINT=$ac_cv_prog_LINT
3372 if test -n "$LINT"; then
3373   echo "$as_me:3373: result: $LINT" >&5
3374 echo "${ECHO_T}$LINT" >&6
3375 else
3376   echo "$as_me:3376: result: no" >&5
3377 echo "${ECHO_T}no" >&6
3378 fi
3379
3380   test -n "$LINT" && break
3381 done
3382
3383 echo "$as_me:3383: checking whether ln -s works" >&5
3384 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3385 LN_S=$as_ln_s
3386 if test "$LN_S" = "ln -s"; then
3387   echo "$as_me:3387: result: yes" >&5
3388 echo "${ECHO_T}yes" >&6
3389 else
3390   echo "$as_me:3390: result: no, using $LN_S" >&5
3391 echo "${ECHO_T}no, using $LN_S" >&6
3392 fi
3393
3394 echo "$as_me:3394: checking if $LN_S -f options work" >&5
3395 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3396
3397 rm -f conf$$.src conf$$dst
3398 echo >conf$$.dst
3399 echo first >conf$$.src
3400 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3401         cf_prog_ln_sf=yes
3402 else
3403         cf_prog_ln_sf=no
3404 fi
3405
3406 echo "$as_me:3406: result: $cf_prog_ln_sf" >&5
3407 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3408
3409 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3410
3411 echo "$as_me:3411: checking for long file names" >&5
3412 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3413 if test "${ac_cv_sys_long_file_names+set}" = set; then
3414   echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416   ac_cv_sys_long_file_names=yes
3417 # Test for long file names in all the places we know might matter:
3418 #      .                the current directory, where building will happen
3419 #      $prefix/lib      where we will be installing things
3420 #      $exec_prefix/lib likewise
3421 # eval it to expand exec_prefix.
3422 #      $TMPDIR          if set, where it might want to write temporary files
3423 # if $TMPDIR is not set:
3424 #      /tmp             where it might want to write temporary files
3425 #      /var/tmp         likewise
3426 #      /usr/tmp         likewise
3427 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3428   ac_tmpdirs=$TMPDIR
3429 else
3430   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3431 fi
3432 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3433   test -d $ac_dir || continue
3434   test -w $ac_dir || continue # It is less confusing to not echo anything here.
3435   ac_xdir=$ac_dir/cf$$
3436   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3437   ac_tf1=$ac_xdir/conftest9012345
3438   ac_tf2=$ac_xdir/conftest9012346
3439   (echo 1 >$ac_tf1) 2>/dev/null
3440   (echo 2 >$ac_tf2) 2>/dev/null
3441   ac_val=`cat $ac_tf1 2>/dev/null`
3442   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3443     ac_cv_sys_long_file_names=no
3444     rm -rf $ac_xdir 2>/dev/null
3445     break
3446   fi
3447   rm -rf $ac_xdir 2>/dev/null
3448 done
3449 fi
3450 echo "$as_me:3450: result: $ac_cv_sys_long_file_names" >&5
3451 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3452 if test $ac_cv_sys_long_file_names = yes; then
3453
3454 cat >>confdefs.h <<\EOF
3455 #define HAVE_LONG_FILE_NAMES 1
3456 EOF
3457
3458 fi
3459
3460 # if we find pkg-config, check if we should install the ".pc" files.
3461
3462 echo "$as_me:3462: checking if you want to use pkg-config" >&5
3463 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3464
3465 # Check whether --with-pkg-config or --without-pkg-config was given.
3466 if test "${with_pkg_config+set}" = set; then
3467   withval="$with_pkg_config"
3468   cf_pkg_config=$withval
3469 else
3470   cf_pkg_config=yes
3471 fi;
3472 echo "$as_me:3472: result: $cf_pkg_config" >&5
3473 echo "${ECHO_T}$cf_pkg_config" >&6
3474
3475 case $cf_pkg_config in #(vi
3476 no) #(vi
3477         PKG_CONFIG=none
3478         ;;
3479 yes) #(vi
3480         # Extract the first word of "pkg-config", so it can be a program name with args.
3481 set dummy pkg-config; ac_word=$2
3482 echo "$as_me:3482: checking for $ac_word" >&5
3483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3484 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3485   echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487   case $PKG_CONFIG in
3488   [\\/]* | ?:[\\/]*)
3489   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3490   ;;
3491   *)
3492   ac_save_IFS=$IFS; IFS=$ac_path_separator
3493 ac_dummy="$PATH"
3494 for ac_dir in $ac_dummy; do
3495   IFS=$ac_save_IFS
3496   test -z "$ac_dir" && ac_dir=.
3497   if $as_executable_p "$ac_dir/$ac_word"; then
3498    ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3499    echo "$as_me:3499: found $ac_dir/$ac_word" >&5
3500    break
3501 fi
3502 done
3503
3504   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3505   ;;
3506 esac
3507 fi
3508 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3509
3510 if test -n "$PKG_CONFIG"; then
3511   echo "$as_me:3511: result: $PKG_CONFIG" >&5
3512 echo "${ECHO_T}$PKG_CONFIG" >&6
3513 else
3514   echo "$as_me:3514: result: no" >&5
3515 echo "${ECHO_T}no" >&6
3516 fi
3517
3518         ;;
3519 *)
3520         PKG_CONFIG=$withval
3521         ;;
3522 esac
3523
3524 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3525 if test "$PKG_CONFIG" != none ; then
3526
3527 if test "x$prefix" != xNONE; then
3528   cf_path_syntax="$prefix"
3529 else
3530   cf_path_syntax="$ac_default_prefix"
3531 fi
3532
3533 case ".$PKG_CONFIG" in #(vi
3534 .\$\(*\)*|.\'*\'*) #(vi
3535   ;;
3536 ..|./*|.\\*) #(vi
3537   ;;
3538 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3539   ;;
3540 .\${*prefix}*) #(vi
3541   eval PKG_CONFIG="$PKG_CONFIG"
3542   case ".$PKG_CONFIG" in #(vi
3543   .NONE/*)
3544     PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3545     ;;
3546   esac
3547   ;; #(vi
3548 .no|.NONE/*)
3549   PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3550   ;;
3551 *)
3552   { { echo "$as_me:3552: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3553 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3554    { (exit 1); exit 1; }; }
3555   ;;
3556 esac
3557
3558 fi
3559
3560 if test "$PKG_CONFIG" != no ; then
3561         echo "$as_me:3561: checking if we should install .pc files for $PKG_CONFIG" >&5
3562 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3563
3564         # Leave this as something that can be overridden in the environment.
3565         if test -z "$PKG_CONFIG_LIBDIR" ; then
3566                 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3567         fi
3568         PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
3569         if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3570
3571 # Check whether --enable-pc-files or --disable-pc-files was given.
3572 if test "${enable_pc_files+set}" = set; then
3573   enableval="$enable_pc_files"
3574   enable_pc_files=$enableval
3575 else
3576   enable_pc_files=no
3577 fi;
3578                 echo "$as_me:3578: result: $enable_pc_files" >&5
3579 echo "${ECHO_T}$enable_pc_files" >&6
3580         else
3581                 echo "$as_me:3581: result: no" >&5
3582 echo "${ECHO_T}no" >&6
3583                 { echo "$as_me:3583: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3584 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3585                 enable_pc_files=no
3586         fi
3587 fi
3588
3589 echo "$as_me:3589: checking if we should assume mixed-case filenames" >&5
3590 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3591
3592 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3593 if test "${enable_mixed_case+set}" = set; then
3594   enableval="$enable_mixed_case"
3595   enable_mixedcase=$enableval
3596 else
3597   enable_mixedcase=auto
3598 fi;
3599 echo "$as_me:3599: result: $enable_mixedcase" >&5
3600 echo "${ECHO_T}$enable_mixedcase" >&6
3601 if test "$enable_mixedcase" = "auto" ; then
3602
3603 echo "$as_me:3603: checking if filesystem supports mixed-case filenames" >&5
3604 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3605 if test "${cf_cv_mixedcase+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608
3609 if test "$cross_compiling" = yes ; then
3610         case $target_alias in #(vi
3611         *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3612                 cf_cv_mixedcase=no
3613                 ;;
3614         *)
3615                 cf_cv_mixedcase=yes
3616                 ;;
3617         esac
3618 else
3619         rm -f conftest CONFTEST
3620         echo test >conftest
3621         if test -f CONFTEST ; then
3622                 cf_cv_mixedcase=no
3623         else
3624                 cf_cv_mixedcase=yes
3625         fi
3626         rm -f conftest CONFTEST
3627 fi
3628
3629 fi
3630 echo "$as_me:3630: result: $cf_cv_mixedcase" >&5
3631 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3632 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3633 #define MIXEDCASE_FILENAMES 1
3634 EOF
3635
3636 else
3637     cf_cv_mixedcase=$enable_mixedcase
3638     if test "$enable_mixedcase" = "yes" ; then
3639         cat >>confdefs.h <<\EOF
3640 #define MIXEDCASE_FILENAMES 1
3641 EOF
3642
3643     fi
3644 fi
3645
3646 # do this after mixed-case option (tags/TAGS is not as important as tic).
3647 echo "$as_me:3647: checking whether ${MAKE-make} sets \${MAKE}" >&5
3648 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3649 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3650 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3651   echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653   cat >conftest.make <<\EOF
3654 all:
3655         @echo 'ac_maketemp="${MAKE}"'
3656 EOF
3657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3658 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3659 if test -n "$ac_maketemp"; then
3660   eval ac_cv_prog_make_${ac_make}_set=yes
3661 else
3662   eval ac_cv_prog_make_${ac_make}_set=no
3663 fi
3664 rm -f conftest.make
3665 fi
3666 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3667   echo "$as_me:3667: result: yes" >&5
3668 echo "${ECHO_T}yes" >&6
3669   SET_MAKE=
3670 else
3671   echo "$as_me:3671: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3673   SET_MAKE="MAKE=${MAKE-make}"
3674 fi
3675
3676 for ac_prog in exctags ctags
3677 do
3678   # Extract the first word of "$ac_prog", so it can be a program name with args.
3679 set dummy $ac_prog; ac_word=$2
3680 echo "$as_me:3680: checking for $ac_word" >&5
3681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682 if test "${ac_cv_prog_CTAGS+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   if test -n "$CTAGS"; then
3686   ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3687 else
3688   ac_save_IFS=$IFS; IFS=$ac_path_separator
3689 ac_dummy="$PATH"
3690 for ac_dir in $ac_dummy; do
3691   IFS=$ac_save_IFS
3692   test -z "$ac_dir" && ac_dir=.
3693   $as_executable_p "$ac_dir/$ac_word" || continue
3694 ac_cv_prog_CTAGS="$ac_prog"
3695 echo "$as_me:3695: found $ac_dir/$ac_word" >&5
3696 break
3697 done
3698
3699 fi
3700 fi
3701 CTAGS=$ac_cv_prog_CTAGS
3702 if test -n "$CTAGS"; then
3703   echo "$as_me:3703: result: $CTAGS" >&5
3704 echo "${ECHO_T}$CTAGS" >&6
3705 else
3706   echo "$as_me:3706: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3708 fi
3709
3710   test -n "$CTAGS" && break
3711 done
3712
3713 for ac_prog in exetags etags
3714 do
3715   # Extract the first word of "$ac_prog", so it can be a program name with args.
3716 set dummy $ac_prog; ac_word=$2
3717 echo "$as_me:3717: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719 if test "${ac_cv_prog_ETAGS+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   if test -n "$ETAGS"; then
3723   ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3724 else
3725   ac_save_IFS=$IFS; IFS=$ac_path_separator
3726 ac_dummy="$PATH"
3727 for ac_dir in $ac_dummy; do
3728   IFS=$ac_save_IFS
3729   test -z "$ac_dir" && ac_dir=.
3730   $as_executable_p "$ac_dir/$ac_word" || continue
3731 ac_cv_prog_ETAGS="$ac_prog"
3732 echo "$as_me:3732: found $ac_dir/$ac_word" >&5
3733 break
3734 done
3735
3736 fi
3737 fi
3738 ETAGS=$ac_cv_prog_ETAGS
3739 if test -n "$ETAGS"; then
3740   echo "$as_me:3740: result: $ETAGS" >&5
3741 echo "${ECHO_T}$ETAGS" >&6
3742 else
3743   echo "$as_me:3743: result: no" >&5
3744 echo "${ECHO_T}no" >&6
3745 fi
3746
3747   test -n "$ETAGS" && break
3748 done
3749
3750 # Extract the first word of "${CTAGS-ctags}", so it can be a program name with args.
3751 set dummy ${CTAGS-ctags}; ac_word=$2
3752 echo "$as_me:3752: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3754 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   if test -n "$MAKE_LOWER_TAGS"; then
3758   ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3759 else
3760   ac_save_IFS=$IFS; IFS=$ac_path_separator
3761 ac_dummy="$PATH"
3762 for ac_dir in $ac_dummy; do
3763   IFS=$ac_save_IFS
3764   test -z "$ac_dir" && ac_dir=.
3765   $as_executable_p "$ac_dir/$ac_word" || continue
3766 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3767 echo "$as_me:3767: found $ac_dir/$ac_word" >&5
3768 break
3769 done
3770
3771   test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3772 fi
3773 fi
3774 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3775 if test -n "$MAKE_LOWER_TAGS"; then
3776   echo "$as_me:3776: result: $MAKE_LOWER_TAGS" >&5
3777 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3778 else
3779   echo "$as_me:3779: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3781 fi
3782
3783 if test "$cf_cv_mixedcase" = yes ; then
3784         # Extract the first word of "${ETAGS-etags}", so it can be a program name with args.
3785 set dummy ${ETAGS-etags}; ac_word=$2
3786 echo "$as_me:3786: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   if test -n "$MAKE_UPPER_TAGS"; then
3792   ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3793 else
3794   ac_save_IFS=$IFS; IFS=$ac_path_separator
3795 ac_dummy="$PATH"
3796 for ac_dir in $ac_dummy; do
3797   IFS=$ac_save_IFS
3798   test -z "$ac_dir" && ac_dir=.
3799   $as_executable_p "$ac_dir/$ac_word" || continue
3800 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3801 echo "$as_me:3801: found $ac_dir/$ac_word" >&5
3802 break
3803 done
3804
3805   test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3806 fi
3807 fi
3808 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3809 if test -n "$MAKE_UPPER_TAGS"; then
3810   echo "$as_me:3810: result: $MAKE_UPPER_TAGS" >&5
3811 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3812 else
3813   echo "$as_me:3813: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3815 fi
3816
3817 else
3818         MAKE_UPPER_TAGS=no
3819 fi
3820
3821 if test "$MAKE_UPPER_TAGS" = yes ; then
3822         MAKE_UPPER_TAGS=
3823 else
3824         MAKE_UPPER_TAGS="#"
3825 fi
3826
3827 if test "$MAKE_LOWER_TAGS" = yes ; then
3828         MAKE_LOWER_TAGS=
3829 else
3830         MAKE_LOWER_TAGS="#"
3831 fi
3832
3833 echo "$as_me:3833: checking for makeflags variable" >&5
3834 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3835 if test "${cf_cv_makeflags+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838
3839         cf_cv_makeflags=''
3840         for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3841         do
3842                 cat >cf_makeflags.tmp <<CF_EOF
3843 SHELL = /bin/sh
3844 all :
3845         @ echo '.$cf_option'
3846 CF_EOF
3847                 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[        ]*$,,'`
3848                 case "$cf_result" in
3849                 .*k)
3850                         cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3851                         case "$cf_result" in
3852                         .*CC=*) cf_cv_makeflags=
3853                                 ;;
3854                         *)      cf_cv_makeflags=$cf_option
3855                                 ;;
3856                         esac
3857                         break
3858                         ;;
3859                 .-)     ;;
3860                 *)      echo "given option \"$cf_option\", no match \"$cf_result\""
3861                         ;;
3862                 esac
3863         done
3864         rm -f cf_makeflags.tmp
3865
3866 fi
3867 echo "$as_me:3867: result: $cf_cv_makeflags" >&5
3868 echo "${ECHO_T}$cf_cv_makeflags" >&6
3869
3870 if test -n "$ac_tool_prefix"; then
3871   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3873 echo "$as_me:3873: checking for $ac_word" >&5
3874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3875 if test "${ac_cv_prog_RANLIB+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   if test -n "$RANLIB"; then
3879   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3880 else
3881   ac_save_IFS=$IFS; IFS=$ac_path_separator
3882 ac_dummy="$PATH"
3883 for ac_dir in $ac_dummy; do
3884   IFS=$ac_save_IFS
3885   test -z "$ac_dir" && ac_dir=.
3886   $as_executable_p "$ac_dir/$ac_word" || continue
3887 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3888 echo "$as_me:3888: found $ac_dir/$ac_word" >&5
3889 break
3890 done
3891
3892 fi
3893 fi
3894 RANLIB=$ac_cv_prog_RANLIB
3895 if test -n "$RANLIB"; then
3896   echo "$as_me:3896: result: $RANLIB" >&5
3897 echo "${ECHO_T}$RANLIB" >&6
3898 else
3899   echo "$as_me:3899: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3901 fi
3902
3903 fi
3904 if test -z "$ac_cv_prog_RANLIB"; then
3905   ac_ct_RANLIB=$RANLIB
3906   # Extract the first word of "ranlib", so it can be a program name with args.
3907 set dummy ranlib; ac_word=$2
3908 echo "$as_me:3908: checking for $ac_word" >&5
3909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3910 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   if test -n "$ac_ct_RANLIB"; then
3914   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3915 else
3916   ac_save_IFS=$IFS; IFS=$ac_path_separator
3917 ac_dummy="$PATH"
3918 for ac_dir in $ac_dummy; do
3919   IFS=$ac_save_IFS
3920   test -z "$ac_dir" && ac_dir=.
3921   $as_executable_p "$ac_dir/$ac_word" || continue
3922 ac_cv_prog_ac_ct_RANLIB="ranlib"
3923 echo "$as_me:3923: found $ac_dir/$ac_word" >&5
3924 break
3925 done
3926
3927   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3928 fi
3929 fi
3930 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3931 if test -n "$ac_ct_RANLIB"; then
3932   echo "$as_me:3932: result: $ac_ct_RANLIB" >&5
3933 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3934 else
3935   echo "$as_me:3935: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3937 fi
3938
3939   RANLIB=$ac_ct_RANLIB
3940 else
3941   RANLIB="$ac_cv_prog_RANLIB"
3942 fi
3943
3944 if test -n "$ac_tool_prefix"; then
3945   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3946 set dummy ${ac_tool_prefix}ld; ac_word=$2
3947 echo "$as_me:3947: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_LD+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   if test -n "$LD"; then
3953   ac_cv_prog_LD="$LD" # Let the user override the test.
3954 else
3955   ac_save_IFS=$IFS; IFS=$ac_path_separator
3956 ac_dummy="$PATH"
3957 for ac_dir in $ac_dummy; do
3958   IFS=$ac_save_IFS
3959   test -z "$ac_dir" && ac_dir=.
3960   $as_executable_p "$ac_dir/$ac_word" || continue
3961 ac_cv_prog_LD="${ac_tool_prefix}ld"
3962 echo "$as_me:3962: found $ac_dir/$ac_word" >&5
3963 break
3964 done
3965
3966 fi
3967 fi
3968 LD=$ac_cv_prog_LD
3969 if test -n "$LD"; then
3970   echo "$as_me:3970: result: $LD" >&5
3971 echo "${ECHO_T}$LD" >&6
3972 else
3973   echo "$as_me:3973: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3975 fi
3976
3977 fi
3978 if test -z "$ac_cv_prog_LD"; then
3979   ac_ct_LD=$LD
3980   # Extract the first word of "ld", so it can be a program name with args.
3981 set dummy ld; ac_word=$2
3982 echo "$as_me:3982: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   if test -n "$ac_ct_LD"; then
3988   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3989 else
3990   ac_save_IFS=$IFS; IFS=$ac_path_separator
3991 ac_dummy="$PATH"
3992 for ac_dir in $ac_dummy; do
3993   IFS=$ac_save_IFS
3994   test -z "$ac_dir" && ac_dir=.
3995   $as_executable_p "$ac_dir/$ac_word" || continue
3996 ac_cv_prog_ac_ct_LD="ld"
3997 echo "$as_me:3997: found $ac_dir/$ac_word" >&5
3998 break
3999 done
4000
4001   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4002 fi
4003 fi
4004 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4005 if test -n "$ac_ct_LD"; then
4006   echo "$as_me:4006: result: $ac_ct_LD" >&5
4007 echo "${ECHO_T}$ac_ct_LD" >&6
4008 else
4009   echo "$as_me:4009: result: no" >&5
4010 echo "${ECHO_T}no" >&6
4011 fi
4012
4013   LD=$ac_ct_LD
4014 else
4015   LD="$ac_cv_prog_LD"
4016 fi
4017
4018 if test -n "$ac_tool_prefix"; then
4019   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4020 set dummy ${ac_tool_prefix}ar; ac_word=$2
4021 echo "$as_me:4021: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_prog_AR+set}" = set; then
4024   echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026   if test -n "$AR"; then
4027   ac_cv_prog_AR="$AR" # Let the user override the test.
4028 else
4029   ac_save_IFS=$IFS; IFS=$ac_path_separator
4030 ac_dummy="$PATH"
4031 for ac_dir in $ac_dummy; do
4032   IFS=$ac_save_IFS
4033   test -z "$ac_dir" && ac_dir=.
4034   $as_executable_p "$ac_dir/$ac_word" || continue
4035 ac_cv_prog_AR="${ac_tool_prefix}ar"
4036 echo "$as_me:4036: found $ac_dir/$ac_word" >&5
4037 break
4038 done
4039
4040 fi
4041 fi
4042 AR=$ac_cv_prog_AR
4043 if test -n "$AR"; then
4044   echo "$as_me:4044: result: $AR" >&5
4045 echo "${ECHO_T}$AR" >&6
4046 else
4047   echo "$as_me:4047: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4049 fi
4050
4051 fi
4052 if test -z "$ac_cv_prog_AR"; then
4053   ac_ct_AR=$AR
4054   # Extract the first word of "ar", so it can be a program name with args.
4055 set dummy ar; ac_word=$2
4056 echo "$as_me:4056: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4058 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4059   echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061   if test -n "$ac_ct_AR"; then
4062   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4063 else
4064   ac_save_IFS=$IFS; IFS=$ac_path_separator
4065 ac_dummy="$PATH"
4066 for ac_dir in $ac_dummy; do
4067   IFS=$ac_save_IFS
4068   test -z "$ac_dir" && ac_dir=.
4069   $as_executable_p "$ac_dir/$ac_word" || continue
4070 ac_cv_prog_ac_ct_AR="ar"
4071 echo "$as_me:4071: found $ac_dir/$ac_word" >&5
4072 break
4073 done
4074
4075   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4076 fi
4077 fi
4078 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4079 if test -n "$ac_ct_AR"; then
4080   echo "$as_me:4080: result: $ac_ct_AR" >&5
4081 echo "${ECHO_T}$ac_ct_AR" >&6
4082 else
4083   echo "$as_me:4083: result: no" >&5
4084 echo "${ECHO_T}no" >&6
4085 fi
4086
4087   AR=$ac_ct_AR
4088 else
4089   AR="$ac_cv_prog_AR"
4090 fi
4091
4092 if test -n "$ac_tool_prefix"; then
4093   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4094 set dummy ${ac_tool_prefix}ar; ac_word=$2
4095 echo "$as_me:4095: checking for $ac_word" >&5
4096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4097 if test "${ac_cv_prog_AR+set}" = set; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100   if test -n "$AR"; then
4101   ac_cv_prog_AR="$AR" # Let the user override the test.
4102 else
4103   ac_save_IFS=$IFS; IFS=$ac_path_separator
4104 ac_dummy="$PATH"
4105 for ac_dir in $ac_dummy; do
4106   IFS=$ac_save_IFS
4107   test -z "$ac_dir" && ac_dir=.
4108   $as_executable_p "$ac_dir/$ac_word" || continue
4109 ac_cv_prog_AR="${ac_tool_prefix}ar"
4110 echo "$as_me:4110: found $ac_dir/$ac_word" >&5
4111 break
4112 done
4113
4114 fi
4115 fi
4116 AR=$ac_cv_prog_AR
4117 if test -n "$AR"; then
4118   echo "$as_me:4118: result: $AR" >&5
4119 echo "${ECHO_T}$AR" >&6
4120 else
4121   echo "$as_me:4121: result: no" >&5
4122 echo "${ECHO_T}no" >&6
4123 fi
4124
4125 fi
4126 if test -z "$ac_cv_prog_AR"; then
4127   ac_ct_AR=$AR
4128   # Extract the first word of "ar", so it can be a program name with args.
4129 set dummy ar; ac_word=$2
4130 echo "$as_me:4130: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4133   echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135   if test -n "$ac_ct_AR"; then
4136   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4137 else
4138   ac_save_IFS=$IFS; IFS=$ac_path_separator
4139 ac_dummy="$PATH"
4140 for ac_dir in $ac_dummy; do
4141   IFS=$ac_save_IFS
4142   test -z "$ac_dir" && ac_dir=.
4143   $as_executable_p "$ac_dir/$ac_word" || continue
4144 ac_cv_prog_ac_ct_AR="ar"
4145 echo "$as_me:4145: found $ac_dir/$ac_word" >&5
4146 break
4147 done
4148
4149   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4150 fi
4151 fi
4152 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4153 if test -n "$ac_ct_AR"; then
4154   echo "$as_me:4154: result: $ac_ct_AR" >&5
4155 echo "${ECHO_T}$ac_ct_AR" >&6
4156 else
4157   echo "$as_me:4157: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4159 fi
4160
4161   AR=$ac_ct_AR
4162 else
4163   AR="$ac_cv_prog_AR"
4164 fi
4165
4166 echo "$as_me:4166: checking for options to update archives" >&5
4167 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4168 if test "${cf_cv_ar_flags+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171
4172         cf_cv_ar_flags=unknown
4173         for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4174         do
4175
4176                 # check if $ARFLAGS already contains this choice
4177                 if test "x$ARFLAGS" != "x" ; then
4178                         cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4179                         if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4180                                 cf_cv_ar_flags=
4181                                 break
4182                         fi
4183                 fi
4184
4185                 rm -f conftest.$ac_cv_objext
4186                 rm -f conftest.a
4187
4188                 cat >conftest.$ac_ext <<EOF
4189 #line 4189 "configure"
4190 int     testdata[3] = { 123, 456, 789 };
4191 EOF
4192                 if { (eval echo "$as_me:4192: \"$ac_compile\"") >&5
4193   (eval $ac_compile) 2>&5
4194   ac_status=$?
4195   echo "$as_me:4195: \$? = $ac_status" >&5
4196   (exit $ac_status); } ; then
4197                         echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4198                         $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4199                         if test -f conftest.a ; then
4200                                 cf_cv_ar_flags=$cf_ar_flags
4201                                 break
4202                         fi
4203                 else
4204                         test -n "$verbose" && echo "    cannot compile test-program" 1>&6
4205
4206 echo "${as_me-configure}:4206: testing cannot compile test-program ..." 1>&5
4207
4208                         break
4209                 fi
4210         done
4211         rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4212
4213 fi
4214 echo "$as_me:4214: result: $cf_cv_ar_flags" >&5
4215 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4216
4217 if test -n "$ARFLAGS" ; then
4218         if test -n "$cf_cv_ar_flags" ; then
4219                 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4220         fi
4221 else
4222         ARFLAGS=$cf_cv_ar_flags
4223 fi
4224
4225 echo "$as_me:4225: checking if you have specified an install-prefix" >&5
4226 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4227
4228 # Check whether --with-install-prefix or --without-install-prefix was given.
4229 if test "${with_install_prefix+set}" = set; then
4230   withval="$with_install_prefix"
4231   case "$withval" in #(vi
4232         yes|no) #(vi
4233                 ;;
4234         *)      DESTDIR="$withval"
4235                 ;;
4236         esac
4237 fi;
4238 echo "$as_me:4238: result: $DESTDIR" >&5
4239 echo "${ECHO_T}$DESTDIR" >&6
4240
4241 ###############################################################################
4242
4243 # If we're cross-compiling, allow the user to override the tools and their
4244 # options.  The configure script is oriented toward identifying the host
4245 # compiler, etc., but we need a build compiler to generate parts of the source.
4246
4247 if test "$cross_compiling" = yes ; then
4248
4249         # defaults that we might want to override
4250         : ${BUILD_CFLAGS:=''}
4251         : ${BUILD_CPPFLAGS:=''}
4252         : ${BUILD_LDFLAGS:=''}
4253         : ${BUILD_LIBS:=''}
4254         : ${BUILD_EXEEXT:='$x'}
4255         : ${BUILD_OBJEXT:='o'}
4256
4257 # Check whether --with-build-cc or --without-build-cc was given.
4258 if test "${with_build_cc+set}" = set; then
4259   withval="$with_build_cc"
4260   BUILD_CC="$withval"
4261 else
4262   for ac_prog in gcc cc cl
4263 do
4264   # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy $ac_prog; ac_word=$2
4266 echo "$as_me:4266: checking for $ac_word" >&5
4267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4268 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4269   echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271   if test -n "$BUILD_CC"; then
4272   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4273 else
4274   ac_save_IFS=$IFS; IFS=$ac_path_separator
4275 ac_dummy="$PATH"
4276 for ac_dir in $ac_dummy; do
4277   IFS=$ac_save_IFS
4278   test -z "$ac_dir" && ac_dir=.
4279   $as_executable_p "$ac_dir/$ac_word" || continue
4280 ac_cv_prog_BUILD_CC="$ac_prog"
4281 echo "$as_me:4281: found $ac_dir/$ac_word" >&5
4282 break
4283 done
4284
4285 fi
4286 fi
4287 BUILD_CC=$ac_cv_prog_BUILD_CC
4288 if test -n "$BUILD_CC"; then
4289   echo "$as_me:4289: result: $BUILD_CC" >&5
4290 echo "${ECHO_T}$BUILD_CC" >&6
4291 else
4292   echo "$as_me:4292: result: no" >&5
4293 echo "${ECHO_T}no" >&6
4294 fi
4295
4296   test -n "$BUILD_CC" && break
4297 done
4298
4299 fi;
4300         echo "$as_me:4300: checking for native build C compiler" >&5
4301 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4302         echo "$as_me:4302: result: $BUILD_CC" >&5
4303 echo "${ECHO_T}$BUILD_CC" >&6
4304
4305         echo "$as_me:4305: checking for native build C preprocessor" >&5
4306 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4307
4308 # Check whether --with-build-cpp or --without-build-cpp was given.
4309 if test "${with_build_cpp+set}" = set; then
4310   withval="$with_build_cpp"
4311   BUILD_CPP="$withval"
4312 else
4313   BUILD_CPP='${BUILD_CC} -E'
4314 fi;
4315         echo "$as_me:4315: result: $BUILD_CPP" >&5
4316 echo "${ECHO_T}$BUILD_CPP" >&6
4317
4318         echo "$as_me:4318: checking for native build C flags" >&5
4319 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4320
4321 # Check whether --with-build-cflags or --without-build-cflags was given.
4322 if test "${with_build_cflags+set}" = set; then
4323   withval="$with_build_cflags"
4324   BUILD_CFLAGS="$withval"
4325 fi;
4326         echo "$as_me:4326: result: $BUILD_CFLAGS" >&5
4327 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4328
4329         echo "$as_me:4329: checking for native build C preprocessor-flags" >&5
4330 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4331
4332 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4333 if test "${with_build_cppflags+set}" = set; then
4334   withval="$with_build_cppflags"
4335   BUILD_CPPFLAGS="$withval"
4336 fi;
4337         echo "$as_me:4337: result: $BUILD_CPPFLAGS" >&5
4338 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4339
4340         echo "$as_me:4340: checking for native build linker-flags" >&5
4341 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4342
4343 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4344 if test "${with_build_ldflags+set}" = set; then
4345   withval="$with_build_ldflags"
4346   BUILD_LDFLAGS="$withval"
4347 fi;
4348         echo "$as_me:4348: result: $BUILD_LDFLAGS" >&5
4349 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4350
4351         echo "$as_me:4351: checking for native build linker-libraries" >&5
4352 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4353
4354 # Check whether --with-build-libs or --without-build-libs was given.
4355 if test "${with_build_libs+set}" = set; then
4356   withval="$with_build_libs"
4357   BUILD_LIBS="$withval"
4358 fi;
4359         echo "$as_me:4359: result: $BUILD_LIBS" >&5
4360 echo "${ECHO_T}$BUILD_LIBS" >&6
4361
4362         # this assumes we're on Unix.
4363         BUILD_EXEEXT=
4364         BUILD_OBJEXT=o
4365
4366         : ${BUILD_CC:='${CC}'}
4367
4368         if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4369                 { { echo "$as_me:4369: error: Cross-build requires two compilers.
4370 Use --with-build-cc to specify the native compiler." >&5
4371 echo "$as_me: error: Cross-build requires two compilers.
4372 Use --with-build-cc to specify the native compiler." >&2;}
4373    { (exit 1); exit 1; }; }
4374         fi
4375
4376 else
4377         : ${BUILD_CC:='${CC}'}
4378         : ${BUILD_CPP:='${CPP}'}
4379         : ${BUILD_CFLAGS:='${CFLAGS}'}
4380         : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4381         : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4382         : ${BUILD_LIBS:='${LIBS}'}
4383         : ${BUILD_EXEEXT:='$x'}
4384         : ${BUILD_OBJEXT:='o'}
4385 fi
4386
4387 ###############################################################################
4388
4389 ### Options to allow the user to specify the set of libraries which are used.
4390 ### Use "--without-normal --with-shared" to allow the default model to be
4391 ### shared, for example.
4392 cf_list_models=""
4393
4394 echo "$as_me:4394: checking if libtool -version-number should be used" >&5
4395 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4396
4397 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4398 if test "${enable_libtool_version+set}" = set; then
4399   enableval="$enable_libtool_version"
4400   test "$enableval" != no && enableval=yes
4401   if test "$enableval" != "yes" ; then
4402     cf_libtool_version=no
4403   else
4404     cf_libtool_version=yes
4405   fi
4406 else
4407   enableval=yes
4408   cf_libtool_version=yes
4409
4410 fi;
4411 echo "$as_me:4411: result: $cf_libtool_version" >&5
4412 echo "${ECHO_T}$cf_libtool_version" >&6
4413
4414 if test "$cf_libtool_version" = yes ; then
4415         LIBTOOL_VERSION="-version-number"
4416 else
4417         LIBTOOL_VERSION="-version-info"
4418 fi
4419
4420 LIBTOOL=
4421
4422 # common library maintenance symbols that are convenient for libtool scripts:
4423 LIB_CREATE='${AR} -cr'
4424 LIB_OBJECT='${OBJECTS}'
4425 LIB_SUFFIX=.a
4426 LIB_PREP="$RANLIB"
4427
4428 # symbols used to prop libtool up to enable it to determine what it should be
4429 # doing:
4430 LIB_CLEAN=
4431 LIB_COMPILE=
4432 LIB_LINK='${CC}'
4433 LIB_INSTALL=
4434 LIB_UNINSTALL=
4435
4436 echo "$as_me:4436: checking if you want to build libraries with libtool" >&5
4437 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4438
4439 # Check whether --with-libtool or --without-libtool was given.
4440 if test "${with_libtool+set}" = set; then
4441   withval="$with_libtool"
4442   with_libtool=$withval
4443 else
4444   with_libtool=no
4445 fi;
4446 echo "$as_me:4446: result: $with_libtool" >&5
4447 echo "${ECHO_T}$with_libtool" >&6
4448 if test "$with_libtool" != "no"; then
4449
4450         if test "$with_libtool" != "yes" ; then
4451
4452 if test "x$prefix" != xNONE; then
4453   cf_path_syntax="$prefix"
4454 else
4455   cf_path_syntax="$ac_default_prefix"
4456 fi
4457
4458 case ".$with_libtool" in #(vi
4459 .\$\(*\)*|.\'*\'*) #(vi
4460   ;;
4461 ..|./*|.\\*) #(vi
4462   ;;
4463 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4464   ;;
4465 .\${*prefix}*) #(vi
4466   eval with_libtool="$with_libtool"
4467   case ".$with_libtool" in #(vi
4468   .NONE/*)
4469     with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4470     ;;
4471   esac
4472   ;; #(vi
4473 .no|.NONE/*)
4474   with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4475   ;;
4476 *)
4477   { { echo "$as_me:4477: error: expected a pathname, not \"$with_libtool\"" >&5
4478 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4479    { (exit 1); exit 1; }; }
4480   ;;
4481 esac
4482
4483                 LIBTOOL=$with_libtool
4484         else
4485                 # Extract the first word of "libtool", so it can be a program name with args.
4486 set dummy libtool; ac_word=$2
4487 echo "$as_me:4487: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4489 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   case $LIBTOOL in
4493   [\\/]* | ?:[\\/]*)
4494   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4495   ;;
4496   *)
4497   ac_save_IFS=$IFS; IFS=$ac_path_separator
4498 ac_dummy="$PATH"
4499 for ac_dir in $ac_dummy; do
4500   IFS=$ac_save_IFS
4501   test -z "$ac_dir" && ac_dir=.
4502   if $as_executable_p "$ac_dir/$ac_word"; then
4503    ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4504    echo "$as_me:4504: found $ac_dir/$ac_word" >&5
4505    break
4506 fi
4507 done
4508
4509   ;;
4510 esac
4511 fi
4512 LIBTOOL=$ac_cv_path_LIBTOOL
4513
4514 if test -n "$LIBTOOL"; then
4515   echo "$as_me:4515: result: $LIBTOOL" >&5
4516 echo "${ECHO_T}$LIBTOOL" >&6
4517 else
4518   echo "$as_me:4518: result: no" >&5
4519 echo "${ECHO_T}no" >&6
4520 fi
4521
4522         fi
4523         if test -z "$LIBTOOL" ; then
4524                 { { echo "$as_me:4524: error: Cannot find libtool" >&5
4525 echo "$as_me: error: Cannot find libtool" >&2;}
4526    { (exit 1); exit 1; }; }
4527         fi
4528         LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
4529         LIB_OBJECT='${OBJECTS:.o=.lo}'
4530         LIB_SUFFIX=.la
4531         LIB_CLEAN='${LIBTOOL} --mode=clean'
4532         LIB_COMPILE='${LIBTOOL} --mode=compile'
4533         LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4534         LIB_INSTALL='${LIBTOOL} --mode=install'
4535         LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4536         LIB_PREP=:
4537
4538         # Show the version of libtool
4539         echo "$as_me:4539: checking version of libtool" >&5
4540 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4541
4542         # Save the version in a cache variable - this is not entirely a good
4543         # thing, but the version string from libtool is very ugly, and for
4544         # bug reports it might be useful to have the original string. "("
4545         cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4546         echo "$as_me:4546: result: $cf_cv_libtool_version" >&5
4547 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4548         if test -z "$cf_cv_libtool_version" ; then
4549                 { { echo "$as_me:4549: error: This is not GNU libtool" >&5
4550 echo "$as_me: error: This is not GNU libtool" >&2;}
4551    { (exit 1); exit 1; }; }
4552         fi
4553
4554         # special hack to add -no-undefined (which libtool should do for itself)
4555         LT_UNDEF=
4556         case "$cf_cv_system_name" in #(vi
4557         cygwin*|mingw32*|uwin*|aix[456]) #(vi
4558                 LT_UNDEF=-no-undefined
4559                 ;;
4560         esac
4561
4562         # special hack to add --tag option for C++ compiler
4563         case $cf_cv_libtool_version in #(vi
4564         1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4565                 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4566                 LIBTOOL="$LIBTOOL --tag=CC"
4567                 ;;
4568         *)
4569                 LIBTOOL_CXX="$LIBTOOL"
4570                 ;;
4571         esac
4572 else
4573         LIBTOOL=""
4574         LIBTOOL_CXX=""
4575 fi
4576
4577 test -z "$LIBTOOL" && ECHO_LT=
4578
4579 if test "$with_libtool" != "no" ; then
4580
4581 cf_list_models="$cf_list_models libtool"
4582
4583 else
4584
4585 echo "$as_me:4585: checking if you want to build shared libraries" >&5
4586 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4587
4588 # Check whether --with-shared or --without-shared was given.
4589 if test "${with_shared+set}" = set; then
4590   withval="$with_shared"
4591   with_shared=$withval
4592 else
4593   with_shared=no
4594 fi;
4595 echo "$as_me:4595: result: $with_shared" >&5
4596 echo "${ECHO_T}$with_shared" >&6
4597 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4598
4599 echo "$as_me:4599: checking if you want to build static libraries" >&5
4600 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4601
4602 # Check whether --with-normal or --without-normal was given.
4603 if test "${with_normal+set}" = set; then
4604   withval="$with_normal"
4605   with_normal=$withval
4606 else
4607   with_normal=yes
4608 fi;
4609 echo "$as_me:4609: result: $with_normal" >&5
4610 echo "${ECHO_T}$with_normal" >&6
4611 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4612
4613 echo "$as_me:4613: checking if you want to build debug libraries" >&5
4614 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4615
4616 # Check whether --with-debug or --without-debug was given.
4617 if test "${with_debug+set}" = set; then
4618   withval="$with_debug"
4619   with_debug=$withval
4620 else
4621   with_debug=yes
4622 fi;
4623 echo "$as_me:4623: result: $with_debug" >&5
4624 echo "${ECHO_T}$with_debug" >&6
4625 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4626
4627 echo "$as_me:4627: checking if you want to build profiling libraries" >&5
4628 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4629
4630 # Check whether --with-profile or --without-profile was given.
4631 if test "${with_profile+set}" = set; then
4632   withval="$with_profile"
4633   with_profile=$withval
4634 else
4635   with_profile=no
4636 fi;
4637 echo "$as_me:4637: result: $with_profile" >&5
4638 echo "${ECHO_T}$with_profile" >&6
4639 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4640
4641 fi
4642
4643 ###############################################################################
4644
4645 echo "$as_me:4645: checking for specified models" >&5
4646 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4647 test -z "$cf_list_models" && cf_list_models=normal
4648 test "$with_libtool" != "no" && cf_list_models=libtool
4649 echo "$as_me:4649: result: $cf_list_models" >&5
4650 echo "${ECHO_T}$cf_list_models" >&6
4651
4652 ### Use the first model as the default, and save its suffix for use in building
4653 ### up test-applications.
4654 echo "$as_me:4654: checking for default model" >&5
4655 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4656 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4657 echo "$as_me:4657: result: $DFT_LWR_MODEL" >&5
4658 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4659
4660 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4661
4662 TICS_NAME=tic
4663
4664 TINFO_NAME=tinfo
4665
4666 LIB_NAME=ncurses
4667
4668 LIB_DIR=../lib
4669 LIB_2ND=../../lib
4670
4671         case $cf_cv_system_name in #(vi
4672         OS/2*|os2*) #(vi
4673         LIB_PREFIX=''
4674         ;;
4675         *)      LIB_PREFIX='lib'
4676         ;;
4677         esac
4678 cf_prefix=$LIB_PREFIX
4679
4680 LIB_PREFIX=$cf_prefix
4681
4682 LIB_SUFFIX=
4683
4684 ###############################################################################
4685
4686 echo "$as_me:4686: checking if you want to build a separate terminfo library" >&5
4687 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4688
4689 # Check whether --with-termlib or --without-termlib was given.
4690 if test "${with_termlib+set}" = set; then
4691   withval="$with_termlib"
4692   with_termlib=$withval
4693 else
4694   with_termlib=no
4695 fi;
4696 echo "$as_me:4696: result: $with_termlib" >&5
4697 echo "${ECHO_T}$with_termlib" >&6
4698
4699 echo "$as_me:4699: checking if you want to build a separate tic library" >&5
4700 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4701
4702 # Check whether --with-ticlib or --without-ticlib was given.
4703 if test "${with_ticlib+set}" = set; then
4704   withval="$with_ticlib"
4705   with_ticlib=$withval
4706 else
4707   with_ticlib=no
4708 fi;
4709 echo "$as_me:4709: result: $with_ticlib" >&5
4710 echo "${ECHO_T}$with_ticlib" >&6
4711
4712 ### Checks for special libraries, must be done up-front.
4713 SHLIB_LIST=""
4714
4715 echo "$as_me:4715: checking if you want to link with the GPM mouse library" >&5
4716 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4717
4718 # Check whether --with-gpm or --without-gpm was given.
4719 if test "${with_gpm+set}" = set; then
4720   withval="$with_gpm"
4721   with_gpm=$withval
4722 else
4723   with_gpm=maybe
4724 fi;
4725 echo "$as_me:4725: result: $with_gpm" >&5
4726 echo "${ECHO_T}$with_gpm" >&6
4727
4728 if test "$with_gpm" != no ; then
4729         echo "$as_me:4729: checking for gpm.h" >&5
4730 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4731 if test "${ac_cv_header_gpm_h+set}" = set; then
4732   echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734   cat >conftest.$ac_ext <<_ACEOF
4735 #line 4735 "configure"
4736 #include "confdefs.h"
4737 #include <gpm.h>
4738 _ACEOF
4739 if { (eval echo "$as_me:4739: \"$ac_cpp conftest.$ac_ext\"") >&5
4740   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4741   ac_status=$?
4742   egrep -v '^ *\+' conftest.er1 >conftest.err
4743   rm -f conftest.er1
4744   cat conftest.err >&5
4745   echo "$as_me:4745: \$? = $ac_status" >&5
4746   (exit $ac_status); } >/dev/null; then
4747   if test -s conftest.err; then
4748     ac_cpp_err=$ac_c_preproc_warn_flag
4749   else
4750     ac_cpp_err=
4751   fi
4752 else
4753   ac_cpp_err=yes
4754 fi
4755 if test -z "$ac_cpp_err"; then
4756   ac_cv_header_gpm_h=yes
4757 else
4758   echo "$as_me: failed program was:" >&5
4759   cat conftest.$ac_ext >&5
4760   ac_cv_header_gpm_h=no
4761 fi
4762 rm -f conftest.err conftest.$ac_ext
4763 fi
4764 echo "$as_me:4764: result: $ac_cv_header_gpm_h" >&5
4765 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4766 if test $ac_cv_header_gpm_h = yes; then
4767
4768                 cat >>confdefs.h <<\EOF
4769 #define HAVE_GPM_H 1
4770 EOF
4771
4772                 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4773                         test -n "$verbose" && echo "    assuming we really have GPM library" 1>&6
4774
4775 echo "${as_me-configure}:4775: testing assuming we really have GPM library ..." 1>&5
4776
4777                         cat >>confdefs.h <<\EOF
4778 #define HAVE_LIBGPM 1
4779 EOF
4780
4781                 else
4782                         echo "$as_me:4782: checking for Gpm_Open in -lgpm" >&5
4783 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4784 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787   ac_check_lib_save_LIBS=$LIBS
4788 LIBS="-lgpm  $LIBS"
4789 cat >conftest.$ac_ext <<_ACEOF
4790 #line 4790 "configure"
4791 #include "confdefs.h"
4792
4793 /* Override any gcc2 internal prototype to avoid an error.  */
4794 #ifdef __cplusplus
4795 extern "C"
4796 #endif
4797 /* We use char because int might match the return type of a gcc2
4798    builtin and then its argument prototype would still apply.  */
4799 char Gpm_Open ();
4800 int
4801 main ()
4802 {
4803 Gpm_Open ();
4804   ;
4805   return 0;
4806 }
4807 _ACEOF
4808 rm -f conftest.$ac_objext conftest$ac_exeext
4809 if { (eval echo "$as_me:4809: \"$ac_link\"") >&5
4810   (eval $ac_link) 2>&5
4811   ac_status=$?
4812   echo "$as_me:4812: \$? = $ac_status" >&5
4813   (exit $ac_status); } &&
4814          { ac_try='test -s conftest$ac_exeext'
4815   { (eval echo "$as_me:4815: \"$ac_try\"") >&5
4816   (eval $ac_try) 2>&5
4817   ac_status=$?
4818   echo "$as_me:4818: \$? = $ac_status" >&5
4819   (exit $ac_status); }; }; then
4820   ac_cv_lib_gpm_Gpm_Open=yes
4821 else
4822   echo "$as_me: failed program was:" >&5
4823 cat conftest.$ac_ext >&5
4824 ac_cv_lib_gpm_Gpm_Open=no
4825 fi
4826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4827 LIBS=$ac_check_lib_save_LIBS
4828 fi
4829 echo "$as_me:4829: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4830 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4831 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4832   :
4833 else
4834
4835                                 { { echo "$as_me:4835: error: Cannot link with GPM library" >&5
4836 echo "$as_me: error: Cannot link with GPM library" >&2;}
4837    { (exit 1); exit 1; }; }
4838                 fi
4839                 with_gpm=yes
4840
4841 fi
4842
4843 else
4844
4845                 test "$with_gpm" != maybe && { echo "$as_me:4845: WARNING: Cannot find GPM header" >&5
4846 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4847                 with_gpm=no
4848
4849 fi
4850
4851 fi
4852
4853 if test "$with_gpm" != no ; then
4854         echo "$as_me:4854: checking if you want to load GPM dynamically" >&5
4855 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4856
4857 # Check whether --with-dlsym or --without-dlsym was given.
4858 if test "${with_dlsym+set}" = set; then
4859   withval="$with_dlsym"
4860   with_dlsym=$withval
4861 else
4862   with_dlsym=yes
4863 fi;
4864         echo "$as_me:4864: result: $with_dlsym" >&5
4865 echo "${ECHO_T}$with_dlsym" >&6
4866         if test "$with_dlsym" = yes ; then
4867
4868 cf_have_dlsym=no
4869 echo "$as_me:4869: checking for dlsym" >&5
4870 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4871 if test "${ac_cv_func_dlsym+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   cat >conftest.$ac_ext <<_ACEOF
4875 #line 4875 "configure"
4876 #include "confdefs.h"
4877 /* System header to define __stub macros and hopefully few prototypes,
4878     which can conflict with char dlsym (); below.  */
4879 #include <assert.h>