]> ncurses.scripts.mit.edu Git - ncurses.git/blob - configure
7932dd2d96e63c163bd0963714bcf852a4f6e13c
[ncurses.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.402 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20061216.
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-progs         suppress build with programs (e.g., tic)
701   --without-curses-h      install curses.h as ncurses.h only
702   --with-install-prefix   prefixes actual install-location ($DESTDIR)
703 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
704   --with-build-cc=XXX     the build C compiler ($BUILD_CC)
705   --with-build-cpp=XXX    the build C preprocessor ($BUILD_CPP)
706   --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
707   --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
708   --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
709   --with-build-libs=XXX   the build libraries (${BUILD_LIBS})
710 Options to Specify the Libraries Built/Used:
711   --with-libtool          generate libraries with libtool
712   --with-shared           generate shared-libraries
713   --with-normal           generate normal-libraries (default)
714   --with-debug            generate debug-libraries (default)
715   --with-profile          generate profile-libraries
716   --with-termlib          generate separate terminfo library
717   --with-ticlib           generate separate tic library
718   --with-gpm              use Alessandro Rubini's GPM library
719   --without-dlsym         do not use dlsym() to load GPM dynamically
720   --with-sysmouse         use sysmouse (FreeBSD console)
721   --enable-rpath          use rpath option when generating shared libraries
722   --disable-relink        relink shared libraries during install
723   --with-shlib-version=X  Specify rel or abi version for shared libs
724 Fine-Tuning Your Configuration:
725   --disable-overwrite     leave out the link to -lcurses
726   --disable-database      do not use terminfo, only fallbacks/termcap
727   --with-database=XXX     specify terminfo source to install
728   --with-hashed-db        specify hashed-database library
729   --with-fallbacks=XXX    specify list of fallback terminal descriptions
730   --without-xterm-new     specify if xterm terminfo should be old version
731   --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
732   --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
733   --disable-big-core      assume machine has little memory
734   --enable-termcap        compile in termcap fallback support
735   --with-termpath=XXX     specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
736   --enable-getcap         fast termcap load, no xrefs to terminfo
737   --enable-getcap-cache   cache translated termcaps in ~/.terminfo
738   --disable-home-terminfo drop ~/.terminfo from terminfo search-path
739   --disable-root-environ  restrict environment when running as root
740   --enable-symlinks       make tic use symbolic links not hard links
741   --enable-broken_linker  compile with broken-linker support code
742   --enable-bsdpad         recognize BSD-style prefix padding
743   --enable-widec          compile with wide-char/UTF-8 code
744   --disable-lp64          allow chtype to be long (ignore _LP64)
745   --disable-largefile     omit support for large files
746   --disable-tparm-varargs compile tparm() without varargs interface
747   --with-bool=TYPE        override fallback type of bool variable
748   --with-caps=alt         compile with alternate Caps file
749   --with-chtype=TYPE      override type of chtype
750   --with-ospeed=TYPE      override type of ospeed variable
751   --with-mmask-t=TYPE     override type of mmask_t
752   --with-rcs-ids          compile-in RCS identifiers
753 Options to Specify How Manpages are Installed:
754   --with-manpage-format   specify manpage-format: gzip/compress/BSDI/normal and
755                           optionally formatted/catonly, e.g., gzip,formatted
756   --with-manpage-renames  specify manpage-renaming
757   --with-manpage-aliases  specify manpage-aliases using .so
758   --with-manpage-symlinks specify manpage-aliases using symlinks
759   --with-manpage-tbl      specify manpage processing with tbl
760 Extensions:
761   --disable-ext-funcs     disable function-extensions
762   --enable-const          compile with extra/non-standard const
763   --enable-no-padding     compile with $NCURSES_NO_PADDING code
764   --enable-signed-char    compile using signed Boolean's in term.h
765   --enable-sigwinch       compile with SIGWINCH handler
766   --enable-tcap-names     compile with user-definable terminal capabilities
767 Development Code:
768   --without-develop       disable development options
769   --enable-hard-tabs      compile with hard-tabs code
770   --enable-xmc-glitch     compile with support for xmc (magic-cookie)
771 Experimental Code:
772   --disable-assumed-color do not assume anything about default-colors
773   --disable-hashmap       compile without hashmap scrolling-optimization
774   --enable-colorfgbg      compile with $COLORFGBG code
775   --enable-ext-colors     compile for experimental 256-color support
776   --enable-ext-mouse      compile for experimental mouse-encoding
777   --enable-safe-sprintf   compile with experimental safe-sprintf code
778   --disable-scroll-hints  compile without scroll-hints code
779   --enable-wgetch-events  compile with experimental wgetch-events code
780 Testing/development Options:
781   --enable-echo           build: display "compiling" commands (default)
782   --enable-warnings       build: turn on GCC compiler warnings
783   --enable-assertions     test: turn on generation of assertion code
784   --with-dmalloc          test: use Gray Watson's dmalloc library
785   --with-dbmalloc         test: use Conor Cahill's dbmalloc library
786   --with-valgrind         test: use valgrind
787   --disable-leaks         test: free permanent memory, analyze leaks
788   --enable-expanded       test: generate functions for certain macros
789   --disable-macros        test: use functions rather than macros
790   --with-trace            test: add trace() function to all models of ncurses
791 Ada95 Binding Options:
792   --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
793   --with-ada-include=DIR  Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
794   --with-ada-objects=DIR  Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
795
796 Some influential environment variables:
797   CC          C compiler command
798   CFLAGS      C compiler flags
799   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
800               nonstandard directory <lib dir>
801   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
802               headers in a nonstandard directory <include dir>
803   CPP         C preprocessor
804   CXX         C++ compiler command
805   CXXFLAGS    C++ compiler flags
806   CXXCPP      C++ preprocessor
807
808 Use these variables to override the choices made by `configure' or to help
809 it to find libraries and programs with nonstandard names/locations.
810
811 EOF
812 fi
813
814 if test "$ac_init_help" = "recursive"; then
815   # If there are subdirs, report their specific --help.
816   ac_popdir=`pwd`
817   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
818     cd $ac_subdir
819     # A "../" for each directory in /$ac_subdir.
820     ac_dots=`echo $ac_subdir |
821              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
822
823     case $srcdir in
824     .) # No --srcdir option.  We are building in place.
825       ac_sub_srcdir=$srcdir ;;
826     [\\/]* | ?:[\\/]* ) # Absolute path.
827       ac_sub_srcdir=$srcdir/$ac_subdir ;;
828     *) # Relative path.
829       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
830     esac
831
832     # Check for guested configure; otherwise get Cygnus style configure.
833     if test -f $ac_sub_srcdir/configure.gnu; then
834       echo
835       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
836     elif test -f $ac_sub_srcdir/configure; then
837       echo
838       $SHELL $ac_sub_srcdir/configure  --help=recursive
839     elif test -f $ac_sub_srcdir/configure.ac ||
840            test -f $ac_sub_srcdir/configure.in; then
841       echo
842       $ac_configure --help
843     else
844       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
845     fi
846     cd $ac_popdir
847   done
848 fi
849
850 test -n "$ac_init_help" && exit 0
851 if $ac_init_version; then
852   cat <<\EOF
853
854 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
855 Free Software Foundation, Inc.
856 This configure script is free software; the Free Software Foundation
857 gives unlimited permission to copy, distribute and modify it.
858 EOF
859   exit 0
860 fi
861 exec 5>config.log
862 cat >&5 <<EOF
863 This file contains any messages produced by compilers while
864 running configure, to aid debugging if configure makes a mistake.
865
866 It was created by $as_me, which was
867 generated by GNU Autoconf 2.52.20061216.  Invocation command line was
868
869   $ $0 $@
870
871 EOF
872 {
873 cat <<_ASUNAME
874 ## ---------- ##
875 ## Platform.  ##
876 ## ---------- ##
877
878 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
879 uname -m = `(uname -m) 2>/dev/null || echo unknown`
880 uname -r = `(uname -r) 2>/dev/null || echo unknown`
881 uname -s = `(uname -s) 2>/dev/null || echo unknown`
882 uname -v = `(uname -v) 2>/dev/null || echo unknown`
883
884 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
885 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
886
887 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
888 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
889 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
890 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
891 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
892 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
893 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
894
895 PATH = $PATH
896
897 _ASUNAME
898 } >&5
899
900 cat >&5 <<EOF
901 ## ------------ ##
902 ## Core tests.  ##
903 ## ------------ ##
904
905 EOF
906
907 # Keep a trace of the command line.
908 # Strip out --no-create and --no-recursion so they do not pile up.
909 # Also quote any args containing shell meta-characters.
910 ac_configure_args=
911 ac_sep=
912 for ac_arg
913 do
914   case $ac_arg in
915   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
916   | --no-cr | --no-c) ;;
917   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
918   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
919   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
920     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
921     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
922     ac_sep=" " ;;
923   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
924      ac_sep=" " ;;
925   esac
926   # Get rid of the leading space.
927 done
928
929 # When interrupted or exit'd, cleanup temporary files, and complete
930 # config.log.  We remove comments because anyway the quotes in there
931 # would cause problems or look ugly.
932 trap 'exit_status=$?
933   # Save into config.log some information that might help in debugging.
934   echo >&5
935   echo "## ----------------- ##" >&5
936   echo "## Cache variables.  ##" >&5
937   echo "## ----------------- ##" >&5
938   echo >&5
939   # The following way of writing the cache mishandles newlines in values,
940 {
941   (set) 2>&1 |
942     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
943     *ac_space=\ *)
944       sed -n \
945         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
946           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
947       ;;
948     *)
949       sed -n \
950         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
951       ;;
952     esac;
953 } >&5
954   sed "/^$/d" confdefs.h >conftest.log
955   if test -s conftest.log; then
956     echo >&5
957     echo "## ------------ ##" >&5
958     echo "## confdefs.h.  ##" >&5
959     echo "## ------------ ##" >&5
960     echo >&5
961     cat conftest.log >&5
962   fi
963   (echo; echo) >&5
964   test "$ac_signal" != 0 &&
965     echo "$as_me: caught signal $ac_signal" >&5
966   echo "$as_me: exit $exit_status" >&5
967   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
968     exit $exit_status
969      ' 0
970 for ac_signal in 1 2 13 15; do
971   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
972 done
973 ac_signal=0
974
975 # confdefs.h avoids OS command line length limits that DEFS can exceed.
976 rm -rf conftest* confdefs.h
977 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
978 echo >confdefs.h
979
980 # Let the site file select an alternate cache file if it wants to.
981 # Prefer explicitly selected file to automatically selected ones.
982 if test -z "$CONFIG_SITE"; then
983   if test "x$prefix" != xNONE; then
984     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
985   else
986     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
987   fi
988 fi
989 for ac_site_file in $CONFIG_SITE; do
990   if test -r "$ac_site_file"; then
991     { echo "$as_me:991: loading site script $ac_site_file" >&5
992 echo "$as_me: loading site script $ac_site_file" >&6;}
993     cat "$ac_site_file" >&5
994     . "$ac_site_file"
995   fi
996 done
997
998 if test -r "$cache_file"; then
999   # Some versions of bash will fail to source /dev/null (special
1000   # files actually), so we avoid doing that.
1001   if test -f "$cache_file"; then
1002     { echo "$as_me:1002: loading cache $cache_file" >&5
1003 echo "$as_me: loading cache $cache_file" >&6;}
1004     case $cache_file in
1005       [\\/]* | ?:[\\/]* ) . $cache_file;;
1006       *)                      . ./$cache_file;;
1007     esac
1008   fi
1009 else
1010   { echo "$as_me:1010: creating cache $cache_file" >&5
1011 echo "$as_me: creating cache $cache_file" >&6;}
1012   >$cache_file
1013 fi
1014
1015 # Check that the precious variables saved in the cache have kept the same
1016 # value.
1017 ac_cache_corrupted=false
1018 for ac_var in `(set) 2>&1 |
1019                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1020   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1021   eval ac_new_set=\$ac_env_${ac_var}_set
1022   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1023   eval ac_new_val="\$ac_env_${ac_var}_value"
1024   case $ac_old_set,$ac_new_set in
1025     set,)
1026       { echo "$as_me:1026: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1027 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1028       ac_cache_corrupted=: ;;
1029     ,set)
1030       { echo "$as_me:1030: error: \`$ac_var' was not set in the previous run" >&5
1031 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1032       ac_cache_corrupted=: ;;
1033     ,);;
1034     *)
1035       if test "x$ac_old_val" != "x$ac_new_val"; then
1036         { echo "$as_me:1036: error: \`$ac_var' has changed since the previous run:" >&5
1037 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1038         { echo "$as_me:1038:   former value:  $ac_old_val" >&5
1039 echo "$as_me:   former value:  $ac_old_val" >&2;}
1040         { echo "$as_me:1040:   current value: $ac_new_val" >&5
1041 echo "$as_me:   current value: $ac_new_val" >&2;}
1042         ac_cache_corrupted=:
1043       fi;;
1044   esac
1045   # Pass precious variables to config.status.  It doesn't matter if
1046   # we pass some twice (in addition to the command line arguments).
1047   if test "$ac_new_set" = set; then
1048     case $ac_new_val in
1049     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1050       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1051       ac_configure_args="$ac_configure_args '$ac_arg'"
1052       ;;
1053     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1054        ;;
1055     esac
1056   fi
1057 done
1058 if $ac_cache_corrupted; then
1059   { echo "$as_me:1059: error: changes in the environment can compromise the build" >&5
1060 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1061   { { echo "$as_me:1061: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1062 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1063    { (exit 1); exit 1; }; }
1064 fi
1065
1066 ac_ext=c
1067 ac_cpp='$CPP $CPPFLAGS'
1068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1071 ac_main_return=return
1072
1073 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1074   *c*,-n*) ECHO_N= ECHO_C='
1075 ' ECHO_T='      ' ;;
1076   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1077   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1078 esac
1079 echo "#! $SHELL" >conftest.sh
1080 echo  "exit 0"   >>conftest.sh
1081 chmod +x conftest.sh
1082 if { (echo "$as_me:1082: PATH=\".;.\"; conftest.sh") >&5
1083   (PATH=".;."; conftest.sh) 2>&5
1084   ac_status=$?
1085   echo "$as_me:1085: \$? = $ac_status" >&5
1086   (exit $ac_status); }; then
1087   ac_path_separator=';'
1088 else
1089   ac_path_separator=:
1090 fi
1091 PATH_SEPARATOR="$ac_path_separator"
1092 rm -f conftest.sh
1093
1094 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1095
1096 top_builddir=`pwd`
1097
1098 echo "$as_me:1098: checking for egrep" >&5
1099 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1100 if test "${ac_cv_prog_egrep+set}" = set; then
1101   echo $ECHO_N "(cached) $ECHO_C" >&6
1102 else
1103   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1104     then ac_cv_prog_egrep='grep -E'
1105     else ac_cv_prog_egrep='egrep'
1106     fi
1107 fi
1108 echo "$as_me:1108: result: $ac_cv_prog_egrep" >&5
1109 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1110  EGREP=$ac_cv_prog_egrep
1111
1112 test -z "$EGREP" && { { echo "$as_me:1112: error: No egrep program found" >&5
1113 echo "$as_me: error: No egrep program found" >&2;}
1114    { (exit 1); exit 1; }; }
1115
1116 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[      ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1117 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[      ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1118 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[      ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1119 cf_cv_abi_version=${NCURSES_MAJOR}
1120 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1121 cf_cv_timestamp=`date`
1122 echo "$as_me:1122: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1123 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1124
1125 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1126
1127 # Check whether --with-rel-version or --without-rel-version was given.
1128 if test "${with_rel_version+set}" = set; then
1129   withval="$with_rel_version"
1130   { echo "$as_me:1130: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1131 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1132  cf_cv_rel_version=$withval
1133 fi;
1134
1135  NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1136  NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1137
1138 if test -n "$NCURSES_MAJOR" ; then
1139   case $NCURSES_MAJOR in #(vi
1140   [0-9]*) #(vi
1141         ;;
1142   *)
1143         { { echo "$as_me:1143: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1144 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1145    { (exit 1); exit 1; }; }
1146         ;;
1147   esac
1148 else
1149   { { echo "$as_me:1149: error: Release major-version value is empty" >&5
1150 echo "$as_me: error: Release major-version value is empty" >&2;}
1151    { (exit 1); exit 1; }; }
1152 fi
1153
1154 if test -n "$NCURSES_MINOR" ; then
1155   case $NCURSES_MINOR in #(vi
1156   [0-9]*) #(vi
1157         ;;
1158   *)
1159         { { echo "$as_me:1159: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1160 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1161    { (exit 1); exit 1; }; }
1162         ;;
1163   esac
1164 else
1165   { { echo "$as_me:1165: error: Release minor-version value is empty" >&5
1166 echo "$as_me: error: Release minor-version value is empty" >&2;}
1167    { (exit 1); exit 1; }; }
1168 fi
1169
1170 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1171
1172 # Check whether --with-abi-version or --without-abi-version was given.
1173 if test "${with_abi_version+set}" = set; then
1174   withval="$with_abi_version"
1175   { echo "$as_me:1175: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1176 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1177  cf_cv_abi_version=$withval
1178 fi;
1179
1180 if test -n "$cf_cv_abi_version" ; then
1181   case $cf_cv_abi_version in #(vi
1182   [0-9]*) #(vi
1183         ;;
1184   *)
1185         { { echo "$as_me:1185: error: ABI version is not a number: $cf_cv_abi_version" >&5
1186 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1187    { (exit 1); exit 1; }; }
1188         ;;
1189   esac
1190 else
1191   { { echo "$as_me:1191: error: ABI version value is empty" >&5
1192 echo "$as_me: error: ABI version value is empty" >&2;}
1193    { (exit 1); exit 1; }; }
1194 fi
1195
1196 ac_aux_dir=
1197 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1198   if test -f $ac_dir/install-sh; then
1199     ac_aux_dir=$ac_dir
1200     ac_install_sh="$ac_aux_dir/install-sh -c"
1201     break
1202   elif test -f $ac_dir/install.sh; then
1203     ac_aux_dir=$ac_dir
1204     ac_install_sh="$ac_aux_dir/install.sh -c"
1205     break
1206   elif test -f $ac_dir/shtool; then
1207     ac_aux_dir=$ac_dir
1208     ac_install_sh="$ac_aux_dir/shtool install -c"
1209     break
1210   fi
1211 done
1212 if test -z "$ac_aux_dir"; then
1213   { { echo "$as_me:1213: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1214 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1215    { (exit 1); exit 1; }; }
1216 fi
1217 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1218 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1219 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1220
1221 # Make sure we can run config.sub.
1222 $ac_config_sub sun4 >/dev/null 2>&1 ||
1223   { { echo "$as_me:1223: error: cannot run $ac_config_sub" >&5
1224 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1225    { (exit 1); exit 1; }; }
1226
1227 echo "$as_me:1227: checking build system type" >&5
1228 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1229 if test "${ac_cv_build+set}" = set; then
1230   echo $ECHO_N "(cached) $ECHO_C" >&6
1231 else
1232   ac_cv_build_alias=$build_alias
1233 test -z "$ac_cv_build_alias" &&
1234   ac_cv_build_alias=`$ac_config_guess`
1235 test -z "$ac_cv_build_alias" &&
1236   { { echo "$as_me:1236: error: cannot guess build type; you must specify one" >&5
1237 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1238    { (exit 1); exit 1; }; }
1239 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1240   { { echo "$as_me:1240: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1241 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1242    { (exit 1); exit 1; }; }
1243
1244 fi
1245 echo "$as_me:1245: result: $ac_cv_build" >&5
1246 echo "${ECHO_T}$ac_cv_build" >&6
1247 build=$ac_cv_build
1248 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1249 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1250 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1251
1252 echo "$as_me:1252: checking host system type" >&5
1253 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1254 if test "${ac_cv_host+set}" = set; then
1255   echo $ECHO_N "(cached) $ECHO_C" >&6
1256 else
1257   ac_cv_host_alias=$host_alias
1258 test -z "$ac_cv_host_alias" &&
1259   ac_cv_host_alias=$ac_cv_build_alias
1260 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1261   { { echo "$as_me:1261: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1262 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1263    { (exit 1); exit 1; }; }
1264
1265 fi
1266 echo "$as_me:1266: result: $ac_cv_host" >&5
1267 echo "${ECHO_T}$ac_cv_host" >&6
1268 host=$ac_cv_host
1269 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1270 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1271 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1272
1273 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1274         echo "$as_me:1274: checking target system type" >&5
1275 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1276 if test "${ac_cv_target+set}" = set; then
1277   echo $ECHO_N "(cached) $ECHO_C" >&6
1278 else
1279   ac_cv_target_alias=$target_alias
1280 test "x$ac_cv_target_alias" = "x" &&
1281   ac_cv_target_alias=$ac_cv_host_alias
1282 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1283   { { echo "$as_me:1283: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1284 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1285    { (exit 1); exit 1; }; }
1286
1287 fi
1288 echo "$as_me:1288: result: $ac_cv_target" >&5
1289 echo "${ECHO_T}$ac_cv_target" >&6
1290 target=$ac_cv_target
1291 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1292 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1293 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1294
1295 # The aliases save the names the user supplied, while $host etc.
1296 # will get canonicalized.
1297 test -n "$target_alias" &&
1298   test "$program_prefix$program_suffix$program_transform_name" = \
1299     NONENONEs,x,x, &&
1300   program_prefix=${target_alias}-
1301         system_name="$host_os"
1302 else
1303         system_name="`(uname -s -r) 2>/dev/null`"
1304         if test -z "$system_name" ; then
1305                 system_name="`(hostname) 2>/dev/null`"
1306         fi
1307 fi
1308 test -n "$system_name" && cat >>confdefs.h <<EOF
1309 #define SYSTEM_NAME "$system_name"
1310 EOF
1311
1312 if test "${cf_cv_system_name+set}" = set; then
1313   echo $ECHO_N "(cached) $ECHO_C" >&6
1314 else
1315   cf_cv_system_name="$system_name"
1316 fi
1317
1318 test -z "$system_name" && system_name="$cf_cv_system_name"
1319 test -n "$cf_cv_system_name" && echo "$as_me:1319: result: Configuring for $cf_cv_system_name" >&5
1320 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1321
1322 if test ".$system_name" != ".$cf_cv_system_name" ; then
1323         echo "$as_me:1323: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1324 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1325         { { echo "$as_me:1325: error: \"Please remove config.cache and try again.\"" >&5
1326 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1327    { (exit 1); exit 1; }; }
1328 fi
1329
1330 # Check whether --with-system-type or --without-system-type was given.
1331 if test "${with_system_type+set}" = set; then
1332   withval="$with_system_type"
1333   { echo "$as_me:1333: WARNING: overriding system type to $withval" >&5
1334 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1335  cf_cv_system_name=$withval
1336 fi;
1337
1338 ###     Save the given $CFLAGS to allow user-override.
1339 cf_user_CFLAGS="$CFLAGS"
1340
1341 ###     Default install-location
1342
1343 echo "$as_me:1343: checking for prefix" >&5
1344 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1345 if test "x$prefix" = "xNONE" ; then
1346         case "$cf_cv_system_name" in
1347                 # non-vendor systems don't have a conflict
1348         openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1349                 prefix=/usr
1350                 ;;
1351         *)      prefix=$ac_default_prefix
1352                 ;;
1353         esac
1354 fi
1355 echo "$as_me:1355: result: $prefix" >&5
1356 echo "${ECHO_T}$prefix" >&6
1357
1358 if test "x$prefix" = "xNONE" ; then
1359 echo "$as_me:1359: checking for default include-directory" >&5
1360 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1361 test -n "$verbose" && echo 1>&6
1362 for cf_symbol in \
1363         $includedir \
1364         $includedir/ncurses \
1365         $prefix/include \
1366         $prefix/include/ncurses \
1367         /usr/local/include \
1368         /usr/local/include/ncurses \
1369         /usr/include \
1370         /usr/include/ncurses
1371 do
1372         cf_dir=`eval echo $cf_symbol`
1373         if test -f $cf_dir/curses.h ; then
1374         if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1375                 includedir="$cf_symbol"
1376                 test -n "$verbose"  && echo $ac_n "     found " 1>&6
1377                 break
1378         fi
1379         fi
1380         test -n "$verbose"  && echo "   tested $cf_dir" 1>&6
1381 done
1382 echo "$as_me:1382: result: $includedir" >&5
1383 echo "${ECHO_T}$includedir" >&6
1384 fi
1385
1386 ###     Checks for programs.
1387 ac_ext=c
1388 ac_cpp='$CPP $CPPFLAGS'
1389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1392 ac_main_return=return
1393 if test -n "$ac_tool_prefix"; then
1394   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1395 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1396 echo "$as_me:1396: checking for $ac_word" >&5
1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 if test "${ac_cv_prog_CC+set}" = set; then
1399   echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401   if test -n "$CC"; then
1402   ac_cv_prog_CC="$CC" # Let the user override the test.
1403 else
1404   ac_save_IFS=$IFS; IFS=$ac_path_separator
1405 ac_dummy="$PATH"
1406 for ac_dir in $ac_dummy; do
1407   IFS=$ac_save_IFS
1408   test -z "$ac_dir" && ac_dir=.
1409   $as_executable_p "$ac_dir/$ac_word" || continue
1410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1411 echo "$as_me:1411: found $ac_dir/$ac_word" >&5
1412 break
1413 done
1414
1415 fi
1416 fi
1417 CC=$ac_cv_prog_CC
1418 if test -n "$CC"; then
1419   echo "$as_me:1419: result: $CC" >&5
1420 echo "${ECHO_T}$CC" >&6
1421 else
1422   echo "$as_me:1422: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1424 fi
1425
1426 fi
1427 if test -z "$ac_cv_prog_CC"; then
1428   ac_ct_CC=$CC
1429   # Extract the first word of "gcc", so it can be a program name with args.
1430 set dummy gcc; ac_word=$2
1431 echo "$as_me:1431: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1434   echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436   if test -n "$ac_ct_CC"; then
1437   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438 else
1439   ac_save_IFS=$IFS; IFS=$ac_path_separator
1440 ac_dummy="$PATH"
1441 for ac_dir in $ac_dummy; do
1442   IFS=$ac_save_IFS
1443   test -z "$ac_dir" && ac_dir=.
1444   $as_executable_p "$ac_dir/$ac_word" || continue
1445 ac_cv_prog_ac_ct_CC="gcc"
1446 echo "$as_me:1446: found $ac_dir/$ac_word" >&5
1447 break
1448 done
1449
1450 fi
1451 fi
1452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1453 if test -n "$ac_ct_CC"; then
1454   echo "$as_me:1454: result: $ac_ct_CC" >&5
1455 echo "${ECHO_T}$ac_ct_CC" >&6
1456 else
1457   echo "$as_me:1457: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1459 fi
1460
1461   CC=$ac_ct_CC
1462 else
1463   CC="$ac_cv_prog_CC"
1464 fi
1465
1466 if test -z "$CC"; then
1467   if test -n "$ac_tool_prefix"; then
1468   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1469 set dummy ${ac_tool_prefix}cc; ac_word=$2
1470 echo "$as_me:1470: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_CC+set}" = set; then
1473   echo $ECHO_N "(cached) $ECHO_C" >&6
1474 else
1475   if test -n "$CC"; then
1476   ac_cv_prog_CC="$CC" # Let the user override the test.
1477 else
1478   ac_save_IFS=$IFS; IFS=$ac_path_separator
1479 ac_dummy="$PATH"
1480 for ac_dir in $ac_dummy; do
1481   IFS=$ac_save_IFS
1482   test -z "$ac_dir" && ac_dir=.
1483   $as_executable_p "$ac_dir/$ac_word" || continue
1484 ac_cv_prog_CC="${ac_tool_prefix}cc"
1485 echo "$as_me:1485: found $ac_dir/$ac_word" >&5
1486 break
1487 done
1488
1489 fi
1490 fi
1491 CC=$ac_cv_prog_CC
1492 if test -n "$CC"; then
1493   echo "$as_me:1493: result: $CC" >&5
1494 echo "${ECHO_T}$CC" >&6
1495 else
1496   echo "$as_me:1496: result: no" >&5
1497 echo "${ECHO_T}no" >&6
1498 fi
1499
1500 fi
1501 if test -z "$ac_cv_prog_CC"; then
1502   ac_ct_CC=$CC
1503   # Extract the first word of "cc", so it can be a program name with args.
1504 set dummy cc; ac_word=$2
1505 echo "$as_me:1505: checking for $ac_word" >&5
1506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1507 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1508   echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510   if test -n "$ac_ct_CC"; then
1511   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1512 else
1513   ac_save_IFS=$IFS; IFS=$ac_path_separator
1514 ac_dummy="$PATH"
1515 for ac_dir in $ac_dummy; do
1516   IFS=$ac_save_IFS
1517   test -z "$ac_dir" && ac_dir=.
1518   $as_executable_p "$ac_dir/$ac_word" || continue
1519 ac_cv_prog_ac_ct_CC="cc"
1520 echo "$as_me:1520: found $ac_dir/$ac_word" >&5
1521 break
1522 done
1523
1524 fi
1525 fi
1526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527 if test -n "$ac_ct_CC"; then
1528   echo "$as_me:1528: result: $ac_ct_CC" >&5
1529 echo "${ECHO_T}$ac_ct_CC" >&6
1530 else
1531   echo "$as_me:1531: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1533 fi
1534
1535   CC=$ac_ct_CC
1536 else
1537   CC="$ac_cv_prog_CC"
1538 fi
1539
1540 fi
1541 if test -z "$CC"; then
1542   # Extract the first word of "cc", so it can be a program name with args.
1543 set dummy cc; ac_word=$2
1544 echo "$as_me:1544: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_CC+set}" = set; then
1547   echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549   if test -n "$CC"; then
1550   ac_cv_prog_CC="$CC" # Let the user override the test.
1551 else
1552   ac_prog_rejected=no
1553   ac_save_IFS=$IFS; IFS=$ac_path_separator
1554 ac_dummy="$PATH"
1555 for ac_dir in $ac_dummy; do
1556   IFS=$ac_save_IFS
1557   test -z "$ac_dir" && ac_dir=.
1558   $as_executable_p "$ac_dir/$ac_word" || continue
1559 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1560   ac_prog_rejected=yes
1561   continue
1562 fi
1563 ac_cv_prog_CC="cc"
1564 echo "$as_me:1564: found $ac_dir/$ac_word" >&5
1565 break
1566 done
1567
1568 if test $ac_prog_rejected = yes; then
1569   # We found a bogon in the path, so make sure we never use it.
1570   set dummy $ac_cv_prog_CC
1571   shift
1572   if test $# != 0; then
1573     # We chose a different compiler from the bogus one.
1574     # However, it has the same basename, so the bogon will be chosen
1575     # first if we set CC to just the basename; use the full file name.
1576     shift
1577     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1578     shift
1579     ac_cv_prog_CC="$@"
1580   fi
1581 fi
1582 fi
1583 fi
1584 CC=$ac_cv_prog_CC
1585 if test -n "$CC"; then
1586   echo "$as_me:1586: result: $CC" >&5
1587 echo "${ECHO_T}$CC" >&6
1588 else
1589   echo "$as_me:1589: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1591 fi
1592
1593 fi
1594 if test -z "$CC"; then
1595   if test -n "$ac_tool_prefix"; then
1596   for ac_prog in cl
1597   do
1598     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1600 echo "$as_me:1600: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   if test -n "$CC"; then
1606   ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608   ac_save_IFS=$IFS; IFS=$ac_path_separator
1609 ac_dummy="$PATH"
1610 for ac_dir in $ac_dummy; do
1611   IFS=$ac_save_IFS
1612   test -z "$ac_dir" && ac_dir=.
1613   $as_executable_p "$ac_dir/$ac_word" || continue
1614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1615 echo "$as_me:1615: found $ac_dir/$ac_word" >&5
1616 break
1617 done
1618
1619 fi
1620 fi
1621 CC=$ac_cv_prog_CC
1622 if test -n "$CC"; then
1623   echo "$as_me:1623: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1625 else
1626   echo "$as_me:1626: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1628 fi
1629
1630     test -n "$CC" && break
1631   done
1632 fi
1633 if test -z "$CC"; then
1634   ac_ct_CC=$CC
1635   for ac_prog in cl
1636 do
1637   # Extract the first word of "$ac_prog", so it can be a program name with args.
1638 set dummy $ac_prog; ac_word=$2
1639 echo "$as_me:1639: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642   echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644   if test -n "$ac_ct_CC"; then
1645   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646 else
1647   ac_save_IFS=$IFS; IFS=$ac_path_separator
1648 ac_dummy="$PATH"
1649 for ac_dir in $ac_dummy; do
1650   IFS=$ac_save_IFS
1651   test -z "$ac_dir" && ac_dir=.
1652   $as_executable_p "$ac_dir/$ac_word" || continue
1653 ac_cv_prog_ac_ct_CC="$ac_prog"
1654 echo "$as_me:1654: found $ac_dir/$ac_word" >&5
1655 break
1656 done
1657
1658 fi
1659 fi
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662   echo "$as_me:1662: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1664 else
1665   echo "$as_me:1665: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1667 fi
1668
1669   test -n "$ac_ct_CC" && break
1670 done
1671
1672   CC=$ac_ct_CC
1673 fi
1674
1675 fi
1676
1677 test -z "$CC" && { { echo "$as_me:1677: error: no acceptable cc found in \$PATH" >&5
1678 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1679    { (exit 1); exit 1; }; }
1680
1681 # Provide some information about the compiler.
1682 echo "$as_me:1682:" \
1683      "checking for C compiler version" >&5
1684 ac_compiler=`set X $ac_compile; echo $2`
1685 { (eval echo "$as_me:1685: \"$ac_compiler --version </dev/null >&5\"") >&5
1686   (eval $ac_compiler --version </dev/null >&5) 2>&5
1687   ac_status=$?
1688   echo "$as_me:1688: \$? = $ac_status" >&5
1689   (exit $ac_status); }
1690 { (eval echo "$as_me:1690: \"$ac_compiler -v </dev/null >&5\"") >&5
1691   (eval $ac_compiler -v </dev/null >&5) 2>&5
1692   ac_status=$?
1693   echo "$as_me:1693: \$? = $ac_status" >&5
1694   (exit $ac_status); }
1695 { (eval echo "$as_me:1695: \"$ac_compiler -V </dev/null >&5\"") >&5
1696   (eval $ac_compiler -V </dev/null >&5) 2>&5
1697   ac_status=$?
1698   echo "$as_me:1698: \$? = $ac_status" >&5
1699   (exit $ac_status); }
1700
1701 cat >conftest.$ac_ext <<_ACEOF
1702 #line 1702 "configure"
1703 #include "confdefs.h"
1704
1705 int
1706 main ()
1707 {
1708
1709   ;
1710   return 0;
1711 }
1712 _ACEOF
1713 ac_clean_files_save=$ac_clean_files
1714 ac_clean_files="$ac_clean_files a.out a.exe"
1715 # Try to create an executable without -o first, disregard a.out.
1716 # It will help us diagnose broken compilers, and finding out an intuition
1717 # of exeext.
1718 echo "$as_me:1718: checking for C compiler default output" >&5
1719 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1720 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1721 if { (eval echo "$as_me:1721: \"$ac_link_default\"") >&5
1722   (eval $ac_link_default) 2>&5
1723   ac_status=$?
1724   echo "$as_me:1724: \$? = $ac_status" >&5
1725   (exit $ac_status); }; then
1726   # Find the output, starting from the most likely.  This scheme is
1727 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1728 # resort.
1729 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1730                 ls a.out conftest 2>/dev/null;
1731                 ls a.* conftest.* 2>/dev/null`; do
1732   case $ac_file in
1733     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1734     a.out ) # We found the default executable, but exeext='' is most
1735             # certainly right.
1736             break;;
1737     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1738           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1739           export ac_cv_exeext
1740           break;;
1741     * ) break;;
1742   esac
1743 done
1744 else
1745   echo "$as_me: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1747 { { echo "$as_me:1747: error: C compiler cannot create executables" >&5
1748 echo "$as_me: error: C compiler cannot create executables" >&2;}
1749    { (exit 77); exit 77; }; }
1750 fi
1751
1752 ac_exeext=$ac_cv_exeext
1753 echo "$as_me:1753: result: $ac_file" >&5
1754 echo "${ECHO_T}$ac_file" >&6
1755
1756 # Check the compiler produces executables we can run.  If not, either
1757 # the compiler is broken, or we cross compile.
1758 echo "$as_me:1758: checking whether the C compiler works" >&5
1759 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1760 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1761 # If not cross compiling, check that we can run a simple program.
1762 if test "$cross_compiling" != yes; then
1763   if { ac_try='./$ac_file'
1764   { (eval echo "$as_me:1764: \"$ac_try\"") >&5
1765   (eval $ac_try) 2>&5
1766   ac_status=$?
1767   echo "$as_me:1767: \$? = $ac_status" >&5
1768   (exit $ac_status); }; }; then
1769     cross_compiling=no
1770   else
1771     if test "$cross_compiling" = maybe; then
1772         cross_compiling=yes
1773     else
1774         { { echo "$as_me:1774: error: cannot run C compiled programs.
1775 If you meant to cross compile, use \`--host'." >&5
1776 echo "$as_me: error: cannot run C compiled programs.
1777 If you meant to cross compile, use \`--host'." >&2;}
1778    { (exit 1); exit 1; }; }
1779     fi
1780   fi
1781 fi
1782 echo "$as_me:1782: result: yes" >&5
1783 echo "${ECHO_T}yes" >&6
1784
1785 rm -f a.out a.exe conftest$ac_cv_exeext
1786 ac_clean_files=$ac_clean_files_save
1787 # Check the compiler produces executables we can run.  If not, either
1788 # the compiler is broken, or we cross compile.
1789 echo "$as_me:1789: checking whether we are cross compiling" >&5
1790 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1791 echo "$as_me:1791: result: $cross_compiling" >&5
1792 echo "${ECHO_T}$cross_compiling" >&6
1793
1794 echo "$as_me:1794: checking for executable suffix" >&5
1795 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1796 if { (eval echo "$as_me:1796: \"$ac_link\"") >&5
1797   (eval $ac_link) 2>&5
1798   ac_status=$?
1799   echo "$as_me:1799: \$? = $ac_status" >&5
1800   (exit $ac_status); }; then
1801   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1802 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1803 # work properly (i.e., refer to `conftest.exe'), while it won't with
1804 # `rm'.
1805 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1806   case $ac_file in
1807     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1808     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1809           export ac_cv_exeext
1810           break;;
1811     * ) break;;
1812   esac
1813 done
1814 else
1815   { { echo "$as_me:1815: error: cannot compute EXEEXT: cannot compile and link" >&5
1816 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1817    { (exit 1); exit 1; }; }
1818 fi
1819
1820 rm -f conftest$ac_cv_exeext
1821 echo "$as_me:1821: result: $ac_cv_exeext" >&5
1822 echo "${ECHO_T}$ac_cv_exeext" >&6
1823
1824 rm -f conftest.$ac_ext
1825 EXEEXT=$ac_cv_exeext
1826 ac_exeext=$EXEEXT
1827 echo "$as_me:1827: checking for object suffix" >&5
1828 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1829 if test "${ac_cv_objext+set}" = set; then
1830   echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832   cat >conftest.$ac_ext <<_ACEOF
1833 #line 1833 "configure"
1834 #include "confdefs.h"
1835
1836 int
1837 main ()
1838 {
1839
1840   ;
1841   return 0;
1842 }
1843 _ACEOF
1844 rm -f conftest.o conftest.obj
1845 if { (eval echo "$as_me:1845: \"$ac_compile\"") >&5
1846   (eval $ac_compile) 2>&5
1847   ac_status=$?
1848   echo "$as_me:1848: \$? = $ac_status" >&5
1849   (exit $ac_status); }; then
1850   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1851   case $ac_file in
1852     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1853     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1854        break;;
1855   esac
1856 done
1857 else
1858   echo "$as_me: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1860 { { echo "$as_me:1860: error: cannot compute OBJEXT: cannot compile" >&5
1861 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1862    { (exit 1); exit 1; }; }
1863 fi
1864
1865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1866 fi
1867 echo "$as_me:1867: result: $ac_cv_objext" >&5
1868 echo "${ECHO_T}$ac_cv_objext" >&6
1869 OBJEXT=$ac_cv_objext
1870 ac_objext=$OBJEXT
1871 echo "$as_me:1871: checking whether we are using the GNU C compiler" >&5
1872 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1873 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1874   echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876   cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1879
1880 int
1881 main ()
1882 {
1883 #ifndef __GNUC__
1884        choke me
1885 #endif
1886
1887   ;
1888   return 0;
1889 }
1890 _ACEOF
1891 rm -f conftest.$ac_objext
1892 if { (eval echo "$as_me:1892: \"$ac_compile\"") >&5
1893   (eval $ac_compile) 2>&5
1894   ac_status=$?
1895   echo "$as_me:1895: \$? = $ac_status" >&5
1896   (exit $ac_status); } &&
1897          { ac_try='test -s conftest.$ac_objext'
1898   { (eval echo "$as_me:1898: \"$ac_try\"") >&5
1899   (eval $ac_try) 2>&5
1900   ac_status=$?
1901   echo "$as_me:1901: \$? = $ac_status" >&5
1902   (exit $ac_status); }; }; then
1903   ac_compiler_gnu=yes
1904 else
1905   echo "$as_me: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1907 ac_compiler_gnu=no
1908 fi
1909 rm -f conftest.$ac_objext conftest.$ac_ext
1910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1911
1912 fi
1913 echo "$as_me:1913: result: $ac_cv_c_compiler_gnu" >&5
1914 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1915 GCC=`test $ac_compiler_gnu = yes && echo yes`
1916 ac_test_CFLAGS=${CFLAGS+set}
1917 ac_save_CFLAGS=$CFLAGS
1918 CFLAGS="-g"
1919 echo "$as_me:1919: checking whether $CC accepts -g" >&5
1920 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1921 if test "${ac_cv_prog_cc_g+set}" = set; then
1922   echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924   cat >conftest.$ac_ext <<_ACEOF
1925 #line 1925 "configure"
1926 #include "confdefs.h"
1927
1928 int
1929 main ()
1930 {
1931
1932   ;
1933   return 0;
1934 }
1935 _ACEOF
1936 rm -f conftest.$ac_objext
1937 if { (eval echo "$as_me:1937: \"$ac_compile\"") >&5
1938   (eval $ac_compile) 2>&5
1939   ac_status=$?
1940   echo "$as_me:1940: \$? = $ac_status" >&5
1941   (exit $ac_status); } &&
1942          { ac_try='test -s conftest.$ac_objext'
1943   { (eval echo "$as_me:1943: \"$ac_try\"") >&5
1944   (eval $ac_try) 2>&5
1945   ac_status=$?
1946   echo "$as_me:1946: \$? = $ac_status" >&5
1947   (exit $ac_status); }; }; then
1948   ac_cv_prog_cc_g=yes
1949 else
1950   echo "$as_me: failed program was:" >&5
1951 cat conftest.$ac_ext >&5
1952 ac_cv_prog_cc_g=no
1953 fi
1954 rm -f conftest.$ac_objext conftest.$ac_ext
1955 fi
1956 echo "$as_me:1956: result: $ac_cv_prog_cc_g" >&5
1957 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1958 if test "$ac_test_CFLAGS" = set; then
1959   CFLAGS=$ac_save_CFLAGS
1960 elif test $ac_cv_prog_cc_g = yes; then
1961   if test "$GCC" = yes; then
1962     CFLAGS="-g -O2"
1963   else
1964     CFLAGS="-g"
1965   fi
1966 else
1967   if test "$GCC" = yes; then
1968     CFLAGS="-O2"
1969   else
1970     CFLAGS=
1971   fi
1972 fi
1973 # Some people use a C++ compiler to compile C.  Since we use `exit',
1974 # in C++ we need to declare it.  In case someone uses the same compiler
1975 # for both compiling C and C++ we need to have the C++ compiler decide
1976 # the declaration of exit, since it's the most demanding environment.
1977 cat >conftest.$ac_ext <<_ACEOF
1978 #ifndef __cplusplus
1979   choke me
1980 #endif
1981 _ACEOF
1982 rm -f conftest.$ac_objext
1983 if { (eval echo "$as_me:1983: \"$ac_compile\"") >&5
1984   (eval $ac_compile) 2>&5
1985   ac_status=$?
1986   echo "$as_me:1986: \$? = $ac_status" >&5
1987   (exit $ac_status); } &&
1988          { ac_try='test -s conftest.$ac_objext'
1989   { (eval echo "$as_me:1989: \"$ac_try\"") >&5
1990   (eval $ac_try) 2>&5
1991   ac_status=$?
1992   echo "$as_me:1992: \$? = $ac_status" >&5
1993   (exit $ac_status); }; }; then
1994   for ac_declaration in \
1995    ''\
1996    '#include <stdlib.h>' \
1997    'extern "C" void std::exit (int) throw (); using std::exit;' \
1998    'extern "C" void std::exit (int); using std::exit;' \
1999    'extern "C" void exit (int) throw ();' \
2000    'extern "C" void exit (int);' \
2001    'void exit (int);'
2002 do
2003   cat >conftest.$ac_ext <<_ACEOF
2004 #line 2004 "configure"
2005 #include "confdefs.h"
2006 #include <stdlib.h>
2007 $ac_declaration
2008 int
2009 main ()
2010 {
2011 exit (42);
2012   ;
2013   return 0;
2014 }
2015 _ACEOF
2016 rm -f conftest.$ac_objext
2017 if { (eval echo "$as_me:2017: \"$ac_compile\"") >&5
2018   (eval $ac_compile) 2>&5
2019   ac_status=$?
2020   echo "$as_me:2020: \$? = $ac_status" >&5
2021   (exit $ac_status); } &&
2022          { ac_try='test -s conftest.$ac_objext'
2023   { (eval echo "$as_me:2023: \"$ac_try\"") >&5
2024   (eval $ac_try) 2>&5
2025   ac_status=$?
2026   echo "$as_me:2026: \$? = $ac_status" >&5
2027   (exit $ac_status); }; }; then
2028   :
2029 else
2030   echo "$as_me: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2032 continue
2033 fi
2034 rm -f conftest.$ac_objext conftest.$ac_ext
2035   cat >conftest.$ac_ext <<_ACEOF
2036 #line 2036 "configure"
2037 #include "confdefs.h"
2038 $ac_declaration
2039 int
2040 main ()
2041 {
2042 exit (42);
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:2048: \"$ac_compile\"") >&5
2049   (eval $ac_compile) 2>&5
2050   ac_status=$?
2051   echo "$as_me:2051: \$? = $ac_status" >&5
2052   (exit $ac_status); } &&
2053          { ac_try='test -s conftest.$ac_objext'
2054   { (eval echo "$as_me:2054: \"$ac_try\"") >&5
2055   (eval $ac_try) 2>&5
2056   ac_status=$?
2057   echo "$as_me:2057: \$? = $ac_status" >&5
2058   (exit $ac_status); }; }; then
2059   break
2060 else
2061   echo "$as_me: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2063 fi
2064 rm -f conftest.$ac_objext conftest.$ac_ext
2065 done
2066 rm -f conftest*
2067 if test -n "$ac_declaration"; then
2068   echo '#ifdef __cplusplus' >>confdefs.h
2069   echo $ac_declaration      >>confdefs.h
2070   echo '#endif'             >>confdefs.h
2071 fi
2072
2073 else
2074   echo "$as_me: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2076 fi
2077 rm -f conftest.$ac_objext conftest.$ac_ext
2078 ac_ext=c
2079 ac_cpp='$CPP $CPPFLAGS'
2080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2083 ac_main_return=return
2084
2085 GCC_VERSION=none
2086 if test "$GCC" = yes ; then
2087         echo "$as_me:2087: checking version of $CC" >&5
2088 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2089         GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2090         test -z "$GCC_VERSION" && GCC_VERSION=unknown
2091         echo "$as_me:2091: result: $GCC_VERSION" >&5
2092 echo "${ECHO_T}$GCC_VERSION" >&6
2093 fi
2094
2095 ac_ext=c
2096 ac_cpp='$CPP $CPPFLAGS'
2097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2100 ac_main_return=return
2101 echo "$as_me:2101: checking how to run the C preprocessor" >&5
2102 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2103 # On Suns, sometimes $CPP names a directory.
2104 if test -n "$CPP" && test -d "$CPP"; then
2105   CPP=
2106 fi
2107 if test -z "$CPP"; then
2108   if test "${ac_cv_prog_CPP+set}" = set; then
2109   echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111       # Double quotes because CPP needs to be expanded
2112     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2113     do
2114       ac_preproc_ok=false
2115 for ac_c_preproc_warn_flag in '' yes
2116 do
2117   # Use a header file that comes with gcc, so configuring glibc
2118   # with a fresh cross-compiler works.
2119   # On the NeXT, cc -E runs the code through the compiler's parser,
2120   # not just through cpp. "Syntax error" is here to catch this case.
2121   cat >conftest.$ac_ext <<_ACEOF
2122 #line 2122 "configure"
2123 #include "confdefs.h"
2124 #include <assert.h>
2125                      Syntax error
2126 _ACEOF
2127 if { (eval echo "$as_me:2127: \"$ac_cpp conftest.$ac_ext\"") >&5
2128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2129   ac_status=$?
2130   egrep -v '^ *\+' conftest.er1 >conftest.err
2131   rm -f conftest.er1
2132   cat conftest.err >&5
2133   echo "$as_me:2133: \$? = $ac_status" >&5
2134   (exit $ac_status); } >/dev/null; then
2135   if test -s conftest.err; then
2136     ac_cpp_err=$ac_c_preproc_warn_flag
2137   else
2138     ac_cpp_err=
2139   fi
2140 else
2141   ac_cpp_err=yes
2142 fi
2143 if test -z "$ac_cpp_err"; then
2144   :
2145 else
2146   echo "$as_me: failed program was:" >&5
2147   cat conftest.$ac_ext >&5
2148   # Broken: fails on valid input.
2149 continue
2150 fi
2151 rm -f conftest.err conftest.$ac_ext
2152
2153   # OK, works on sane cases.  Now check whether non-existent headers
2154   # can be detected and how.
2155   cat >conftest.$ac_ext <<_ACEOF
2156 #line 2156 "configure"
2157 #include "confdefs.h"
2158 #include <ac_nonexistent.h>
2159 _ACEOF
2160 if { (eval echo "$as_me:2160: \"$ac_cpp conftest.$ac_ext\"") >&5
2161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2162   ac_status=$?
2163   egrep -v '^ *\+' conftest.er1 >conftest.err
2164   rm -f conftest.er1
2165   cat conftest.err >&5
2166   echo "$as_me:2166: \$? = $ac_status" >&5
2167   (exit $ac_status); } >/dev/null; then
2168   if test -s conftest.err; then
2169     ac_cpp_err=$ac_c_preproc_warn_flag
2170   else
2171     ac_cpp_err=
2172   fi
2173 else
2174   ac_cpp_err=yes
2175 fi
2176 if test -z "$ac_cpp_err"; then
2177   # Broken: success on invalid input.
2178 continue
2179 else
2180   echo "$as_me: failed program was:" >&5
2181   cat conftest.$ac_ext >&5
2182   # Passes both tests.
2183 ac_preproc_ok=:
2184 break
2185 fi
2186 rm -f conftest.err conftest.$ac_ext
2187
2188 done
2189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2190 rm -f conftest.err conftest.$ac_ext
2191 if $ac_preproc_ok; then
2192   break
2193 fi
2194
2195     done
2196     ac_cv_prog_CPP=$CPP
2197
2198 fi
2199   CPP=$ac_cv_prog_CPP
2200 else
2201   ac_cv_prog_CPP=$CPP
2202 fi
2203 echo "$as_me:2203: result: $CPP" >&5
2204 echo "${ECHO_T}$CPP" >&6
2205 ac_preproc_ok=false
2206 for ac_c_preproc_warn_flag in '' yes
2207 do
2208   # Use a header file that comes with gcc, so configuring glibc
2209   # with a fresh cross-compiler works.
2210   # On the NeXT, cc -E runs the code through the compiler's parser,
2211   # not just through cpp. "Syntax error" is here to catch this case.
2212   cat >conftest.$ac_ext <<_ACEOF
2213 #line 2213 "configure"
2214 #include "confdefs.h"
2215 #include <assert.h>
2216                      Syntax error
2217 _ACEOF
2218 if { (eval echo "$as_me:2218: \"$ac_cpp conftest.$ac_ext\"") >&5
2219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2220   ac_status=$?
2221   egrep -v '^ *\+' conftest.er1 >conftest.err
2222   rm -f conftest.er1
2223   cat conftest.err >&5
2224   echo "$as_me:2224: \$? = $ac_status" >&5
2225   (exit $ac_status); } >/dev/null; then
2226   if test -s conftest.err; then
2227     ac_cpp_err=$ac_c_preproc_warn_flag
2228   else
2229     ac_cpp_err=
2230   fi
2231 else
2232   ac_cpp_err=yes
2233 fi
2234 if test -z "$ac_cpp_err"; then
2235   :
2236 else
2237   echo "$as_me: failed program was:" >&5
2238   cat conftest.$ac_ext >&5
2239   # Broken: fails on valid input.
2240 continue
2241 fi
2242 rm -f conftest.err conftest.$ac_ext
2243
2244   # OK, works on sane cases.  Now check whether non-existent headers
2245   # can be detected and how.
2246   cat >conftest.$ac_ext <<_ACEOF
2247 #line 2247 "configure"
2248 #include "confdefs.h"
2249 #include <ac_nonexistent.h>
2250 _ACEOF
2251 if { (eval echo "$as_me:2251: \"$ac_cpp conftest.$ac_ext\"") >&5
2252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2253   ac_status=$?
2254   egrep -v '^ *\+' conftest.er1 >conftest.err
2255   rm -f conftest.er1
2256   cat conftest.err >&5
2257   echo "$as_me:2257: \$? = $ac_status" >&5
2258   (exit $ac_status); } >/dev/null; then
2259   if test -s conftest.err; then
2260     ac_cpp_err=$ac_c_preproc_warn_flag
2261   else
2262     ac_cpp_err=
2263   fi
2264 else
2265   ac_cpp_err=yes
2266 fi
2267 if test -z "$ac_cpp_err"; then
2268   # Broken: success on invalid input.
2269 continue
2270 else
2271   echo "$as_me: failed program was:" >&5
2272   cat conftest.$ac_ext >&5
2273   # Passes both tests.
2274 ac_preproc_ok=:
2275 break
2276 fi
2277 rm -f conftest.err conftest.$ac_ext
2278
2279 done
2280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2281 rm -f conftest.err conftest.$ac_ext
2282 if $ac_preproc_ok; then
2283   :
2284 else
2285   { { echo "$as_me:2285: error: C preprocessor \"$CPP\" fails sanity check" >&5
2286 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2287    { (exit 1); exit 1; }; }
2288 fi
2289
2290 ac_ext=c
2291 ac_cpp='$CPP $CPPFLAGS'
2292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2295 ac_main_return=return
2296
2297 if test $ac_cv_c_compiler_gnu = yes; then
2298     echo "$as_me:2298: checking whether $CC needs -traditional" >&5
2299 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2300 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303     ac_pattern="Autoconf.*'x'"
2304   cat >conftest.$ac_ext <<_ACEOF
2305 #line 2305 "configure"
2306 #include "confdefs.h"
2307 #include <sgtty.h>
2308 int Autoconf = TIOCGETP;
2309 _ACEOF
2310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2311   egrep "$ac_pattern" >/dev/null 2>&1; then
2312   ac_cv_prog_gcc_traditional=yes
2313 else
2314   ac_cv_prog_gcc_traditional=no
2315 fi
2316 rm -f conftest*
2317
2318   if test $ac_cv_prog_gcc_traditional = no; then
2319     cat >conftest.$ac_ext <<_ACEOF
2320 #line 2320 "configure"
2321 #include "confdefs.h"
2322 #include <termio.h>
2323 int Autoconf = TCGETA;
2324 _ACEOF
2325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2326   egrep "$ac_pattern" >/dev/null 2>&1; then
2327   ac_cv_prog_gcc_traditional=yes
2328 fi
2329 rm -f conftest*
2330
2331   fi
2332 fi
2333 echo "$as_me:2333: result: $ac_cv_prog_gcc_traditional" >&5
2334 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2335   if test $ac_cv_prog_gcc_traditional = yes; then
2336     CC="$CC -traditional"
2337   fi
2338 fi
2339
2340 echo "$as_me:2340: checking whether $CC understands -c and -o together" >&5
2341 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2342 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345
2346 cat > conftest.$ac_ext <<CF_EOF
2347 #include <stdio.h>
2348 int main()
2349 {
2350         ${cf_cv_main_return:-return}(0);
2351 }
2352 CF_EOF
2353 # We do the test twice because some compilers refuse to overwrite an
2354 # existing .o file with -o, though they will create one.
2355 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2356 if { (eval echo "$as_me:2356: \"$ac_try\"") >&5
2357   (eval $ac_try) 2>&5
2358   ac_status=$?
2359   echo "$as_me:2359: \$? = $ac_status" >&5
2360   (exit $ac_status); } &&
2361   test -f conftest2.$ac_objext && { (eval echo "$as_me:2361: \"$ac_try\"") >&5
2362   (eval $ac_try) 2>&5
2363   ac_status=$?
2364   echo "$as_me:2364: \$? = $ac_status" >&5
2365   (exit $ac_status); };
2366 then
2367   eval cf_cv_prog_CC_c_o=yes
2368 else
2369   eval cf_cv_prog_CC_c_o=no
2370 fi
2371 rm -f conftest*
2372
2373 fi
2374 if test $cf_cv_prog_CC_c_o = yes; then
2375   echo "$as_me:2375: result: yes" >&5
2376 echo "${ECHO_T}yes" >&6
2377 else
2378   echo "$as_me:2378: result: no" >&5
2379 echo "${ECHO_T}no" >&6
2380 fi
2381
2382 echo "$as_me:2382: checking for POSIXized ISC" >&5
2383 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2384 if test -d /etc/conf/kconfig.d &&
2385    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2386 then
2387   echo "$as_me:2387: result: yes" >&5
2388 echo "${ECHO_T}yes" >&6
2389   ISC=yes # If later tests want to check for ISC.
2390
2391 cat >>confdefs.h <<\EOF
2392 #define _POSIX_SOURCE 1
2393 EOF
2394
2395   if test "$GCC" = yes; then
2396     CC="$CC -posix"
2397   else
2398     CC="$CC -Xp"
2399   fi
2400 else
2401   echo "$as_me:2401: result: no" >&5
2402 echo "${ECHO_T}no" >&6
2403   ISC=
2404 fi
2405
2406 echo "$as_me:2406: checking for ${CC-cc} option to accept ANSI C" >&5
2407 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2408 if test "${cf_cv_ansi_cc+set}" = set; then
2409   echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411
2412 cf_cv_ansi_cc=no
2413 cf_save_CFLAGS="$CFLAGS"
2414 cf_save_CPPFLAGS="$CPPFLAGS"
2415 # Don't try gcc -ansi; that turns off useful extensions and
2416 # breaks some systems' header files.
2417 # AIX                   -qlanglvl=ansi
2418 # Ultrix and OSF/1      -std1
2419 # HP-UX                 -Aa -D_HPUX_SOURCE
2420 # SVR4                  -Xc
2421 # UnixWare 1.2          (cannot use -Xc, since ANSI/POSIX clashes)
2422 for cf_arg in "-DCC_HAS_PROTOS" \
2423         "" \
2424         -qlanglvl=ansi \
2425         -std1 \
2426         -Ae \
2427         "-Aa -D_HPUX_SOURCE" \
2428         -Xc
2429 do
2430
2431 cf_fix_cppflags=no
2432 cf_new_cflags=
2433 cf_new_cppflags=
2434 cf_new_extra_cppflags=
2435
2436 for cf_add_cflags in $cf_arg
2437 do
2438 case $cf_fix_cppflags in
2439 no)
2440         case $cf_add_cflags in #(vi
2441         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2442                 case $cf_add_cflags in
2443                 -D*)
2444                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2445
2446                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2447                         && test -z "${cf_tst_cflags}" \
2448                         && cf_fix_cppflags=yes
2449
2450                         if test $cf_fix_cppflags = yes ; then
2451                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2452                                 continue
2453                         elif test "${cf_tst_cflags}" = "\"'" ; then
2454                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2455                                 continue
2456                         fi
2457                         ;;
2458                 esac
2459                 case "$CPPFLAGS" in
2460                 *$cf_add_cflags) #(vi
2461                         ;;
2462                 *) #(vi
2463                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2464                         ;;
2465                 esac
2466                 ;;
2467         *)
2468                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2469                 ;;
2470         esac
2471         ;;
2472 yes)
2473         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2474
2475         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2476
2477         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2478         && test -z "${cf_tst_cflags}" \
2479         && cf_fix_cppflags=no
2480         ;;
2481 esac
2482 done
2483
2484 if test -n "$cf_new_cflags" ; then
2485
2486         CFLAGS="$CFLAGS $cf_new_cflags"
2487 fi
2488
2489 if test -n "$cf_new_cppflags" ; then
2490
2491         CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2492 fi
2493
2494 if test -n "$cf_new_extra_cppflags" ; then
2495
2496         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2497 fi
2498
2499         cat >conftest.$ac_ext <<_ACEOF
2500 #line 2500 "configure"
2501 #include "confdefs.h"
2502
2503 #ifndef CC_HAS_PROTOS
2504 #if !defined(__STDC__) || (__STDC__ != 1)
2505 choke me
2506 #endif
2507 #endif
2508
2509 int
2510 main ()
2511 {
2512
2513         int test (int i, double x);
2514         struct s1 {int (*f) (int a);};
2515         struct s2 {int (*f) (double a);};
2516   ;
2517   return 0;
2518 }
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:2521: \"$ac_compile\"") >&5
2522   (eval $ac_compile) 2>&5
2523   ac_status=$?
2524   echo "$as_me:2524: \$? = $ac_status" >&5
2525   (exit $ac_status); } &&
2526          { ac_try='test -s conftest.$ac_objext'
2527   { (eval echo "$as_me:2527: \"$ac_try\"") >&5
2528   (eval $ac_try) 2>&5
2529   ac_status=$?
2530   echo "$as_me:2530: \$? = $ac_status" >&5
2531   (exit $ac_status); }; }; then
2532   cf_cv_ansi_cc="$cf_arg"; break
2533 else
2534   echo "$as_me: failed program was:" >&5
2535 cat conftest.$ac_ext >&5
2536 fi
2537 rm -f conftest.$ac_objext conftest.$ac_ext
2538 done
2539 CFLAGS="$cf_save_CFLAGS"
2540 CPPFLAGS="$cf_save_CPPFLAGS"
2541
2542 fi
2543 echo "$as_me:2543: result: $cf_cv_ansi_cc" >&5
2544 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2545
2546 if test "$cf_cv_ansi_cc" != "no"; then
2547 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2548
2549 cf_fix_cppflags=no
2550 cf_new_cflags=
2551 cf_new_cppflags=
2552 cf_new_extra_cppflags=
2553
2554 for cf_add_cflags in $cf_cv_ansi_cc
2555 do
2556 case $cf_fix_cppflags in
2557 no)
2558         case $cf_add_cflags in #(vi
2559         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2560                 case $cf_add_cflags in
2561                 -D*)
2562                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2563
2564                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2565                         && test -z "${cf_tst_cflags}" \
2566                         && cf_fix_cppflags=yes
2567
2568                         if test $cf_fix_cppflags = yes ; then
2569                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2570                                 continue
2571                         elif test "${cf_tst_cflags}" = "\"'" ; then
2572                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2573                                 continue
2574                         fi
2575                         ;;
2576                 esac
2577                 case "$CPPFLAGS" in
2578                 *$cf_add_cflags) #(vi
2579                         ;;
2580                 *) #(vi
2581                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2582                         ;;
2583                 esac
2584                 ;;
2585         *)
2586                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2587                 ;;
2588         esac
2589         ;;
2590 yes)
2591         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2592
2593         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2594
2595         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2596         && test -z "${cf_tst_cflags}" \
2597         && cf_fix_cppflags=no
2598         ;;
2599 esac
2600 done
2601
2602 if test -n "$cf_new_cflags" ; then
2603
2604         CFLAGS="$CFLAGS $cf_new_cflags"
2605 fi
2606
2607 if test -n "$cf_new_cppflags" ; then
2608
2609         CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2610 fi
2611
2612 if test -n "$cf_new_extra_cppflags" ; then
2613
2614         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2615 fi
2616
2617 else
2618         cat >>confdefs.h <<\EOF
2619 #define CC_HAS_PROTOS 1
2620 EOF
2621
2622 fi
2623 fi
2624
2625 if test "$cf_cv_ansi_cc" = "no"; then
2626         { { echo "$as_me:2626: error: Your compiler does not appear to recognize prototypes.
2627 You have the following choices:
2628         a. adjust your compiler options
2629         b. get an up-to-date compiler
2630         c. use a wrapper such as unproto" >&5
2631 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2632 You have the following choices:
2633         a. adjust your compiler options
2634         b. get an up-to-date compiler
2635         c. use a wrapper such as unproto" >&2;}
2636    { (exit 1); exit 1; }; }
2637 fi
2638
2639 case $cf_cv_system_name in
2640 os2*)
2641     CFLAGS="$CFLAGS -Zmt"
2642     CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2643     CXXFLAGS="$CXXFLAGS -Zmt"
2644     # autoconf's macro sets -Zexe and suffix both, which conflict:w
2645     LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2646     ac_cv_exeext=.exe
2647     ;;
2648 esac
2649
2650 PROG_EXT="$EXEEXT"
2651
2652 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2653 #define PROG_EXT "$PROG_EXT"
2654 EOF
2655
2656 if test "$cross_compiling" = yes ; then
2657   LDCONFIG=:
2658 else
2659 case "$cf_cv_system_name" in #(vi
2660 freebsd*) #(vi
2661   test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2662   ;;
2663 *) LDPATH=$PATH:/sbin:/usr/sbin
2664   # Extract the first word of "ldconfig", so it can be a program name with args.
2665 set dummy ldconfig; ac_word=$2
2666 echo "$as_me:2666: checking for $ac_word" >&5
2667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2668 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2669   echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671   case $LDCONFIG in
2672   [\\/]* | ?:[\\/]*)
2673   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2674   ;;
2675   *)
2676   ac_save_IFS=$IFS; IFS=$ac_path_separator
2677 ac_dummy="$LDPATH"
2678 for ac_dir in $ac_dummy; do
2679   IFS=$ac_save_IFS
2680   test -z "$ac_dir" && ac_dir=.
2681   if $as_executable_p "$ac_dir/$ac_word"; then
2682    ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2683    echo "$as_me:2683: found $ac_dir/$ac_word" >&5
2684    break
2685 fi
2686 done
2687
2688   ;;
2689 esac
2690 fi
2691 LDCONFIG=$ac_cv_path_LDCONFIG
2692
2693 if test -n "$LDCONFIG"; then
2694   echo "$as_me:2694: result: $LDCONFIG" >&5
2695 echo "${ECHO_T}$LDCONFIG" >&6
2696 else
2697   echo "$as_me:2697: result: no" >&5
2698 echo "${ECHO_T}no" >&6
2699 fi
2700
2701   ;;
2702 esac
2703 fi
2704
2705 echo "$as_me:2705: checking if you want to ensure bool is consistent with C++" >&5
2706 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2707
2708 # Check whether --with-cxx or --without-cxx was given.
2709 if test "${with_cxx+set}" = set; then
2710   withval="$with_cxx"
2711   cf_with_cxx=$withval
2712 else
2713   cf_with_cxx=yes
2714 fi;
2715 echo "$as_me:2715: result: $cf_with_cxx" >&5
2716 echo "${ECHO_T}$cf_with_cxx" >&6
2717 if test "X$cf_with_cxx" = Xno ; then
2718         CXX=""
2719         GXX=""
2720 else
2721         # with autoconf 2.13, we can change the error to a warning:
2722                 ac_ext=cc
2723 ac_cpp='$CXXCPP $CPPFLAGS'
2724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2727 ac_main_return=return
2728 if test -n "$ac_tool_prefix"; then
2729   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2730   do
2731     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2733 echo "$as_me:2733: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735 if test "${ac_cv_prog_CXX+set}" = set; then
2736   echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738   if test -n "$CXX"; then
2739   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2740 else
2741   ac_save_IFS=$IFS; IFS=$ac_path_separator
2742 ac_dummy="$PATH"
2743 for ac_dir in $ac_dummy; do
2744   IFS=$ac_save_IFS
2745   test -z "$ac_dir" && ac_dir=.
2746   $as_executable_p "$ac_dir/$ac_word" || continue
2747 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2748 echo "$as_me:2748: found $ac_dir/$ac_word" >&5
2749 break
2750 done
2751
2752 fi
2753 fi
2754 CXX=$ac_cv_prog_CXX
2755 if test -n "$CXX"; then
2756   echo "$as_me:2756: result: $CXX" >&5
2757 echo "${ECHO_T}$CXX" >&6
2758 else
2759   echo "$as_me:2759: result: no" >&5
2760 echo "${ECHO_T}no" >&6
2761 fi
2762
2763     test -n "$CXX" && break
2764   done
2765 fi
2766 if test -z "$CXX"; then
2767   ac_ct_CXX=$CXX
2768   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2769 do
2770   # Extract the first word of "$ac_prog", so it can be a program name with args.
2771 set dummy $ac_prog; ac_word=$2
2772 echo "$as_me:2772: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   if test -n "$ac_ct_CXX"; then
2778   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2779 else
2780   ac_save_IFS=$IFS; IFS=$ac_path_separator
2781 ac_dummy="$PATH"
2782 for ac_dir in $ac_dummy; do
2783   IFS=$ac_save_IFS
2784   test -z "$ac_dir" && ac_dir=.
2785   $as_executable_p "$ac_dir/$ac_word" || continue
2786 ac_cv_prog_ac_ct_CXX="$ac_prog"
2787 echo "$as_me:2787: found $ac_dir/$ac_word" >&5
2788 break
2789 done
2790
2791 fi
2792 fi
2793 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2794 if test -n "$ac_ct_CXX"; then
2795   echo "$as_me:2795: result: $ac_ct_CXX" >&5
2796 echo "${ECHO_T}$ac_ct_CXX" >&6
2797 else
2798   echo "$as_me:2798: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2800 fi
2801
2802   test -n "$ac_ct_CXX" && break
2803 done
2804 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2805
2806   CXX=$ac_ct_CXX
2807 fi
2808
2809 # Provide some information about the compiler.
2810 echo "$as_me:2810:" \
2811      "checking for C++ compiler version" >&5
2812 ac_compiler=`set X $ac_compile; echo $2`
2813 { (eval echo "$as_me:2813: \"$ac_compiler --version </dev/null >&5\"") >&5
2814   (eval $ac_compiler --version </dev/null >&5) 2>&5
2815   ac_status=$?
2816   echo "$as_me:2816: \$? = $ac_status" >&5
2817   (exit $ac_status); }
2818 { (eval echo "$as_me:2818: \"$ac_compiler -v </dev/null >&5\"") >&5
2819   (eval $ac_compiler -v </dev/null >&5) 2>&5
2820   ac_status=$?
2821   echo "$as_me:2821: \$? = $ac_status" >&5
2822   (exit $ac_status); }
2823 { (eval echo "$as_me:2823: \"$ac_compiler -V </dev/null >&5\"") >&5
2824   (eval $ac_compiler -V </dev/null >&5) 2>&5
2825   ac_status=$?
2826   echo "$as_me:2826: \$? = $ac_status" >&5
2827   (exit $ac_status); }
2828
2829 echo "$as_me:2829: checking whether we are using the GNU C++ compiler" >&5
2830 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2831 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834   cat >conftest.$ac_ext <<_ACEOF
2835 #line 2835 "configure"
2836 #include "confdefs.h"
2837
2838 int
2839 main ()
2840 {
2841 #ifndef __GNUC__
2842        choke me
2843 #endif
2844
2845   ;
2846   return 0;
2847 }
2848 _ACEOF
2849 rm -f conftest.$ac_objext
2850 if { (eval echo "$as_me:2850: \"$ac_compile\"") >&5
2851   (eval $ac_compile) 2>&5
2852   ac_status=$?
2853   echo "$as_me:2853: \$? = $ac_status" >&5
2854   (exit $ac_status); } &&
2855          { ac_try='test -s conftest.$ac_objext'
2856   { (eval echo "$as_me:2856: \"$ac_try\"") >&5
2857   (eval $ac_try) 2>&5
2858   ac_status=$?
2859   echo "$as_me:2859: \$? = $ac_status" >&5
2860   (exit $ac_status); }; }; then
2861   ac_compiler_gnu=yes
2862 else
2863   echo "$as_me: failed program was:" >&5
2864 cat conftest.$ac_ext >&5
2865 ac_compiler_gnu=no
2866 fi
2867 rm -f conftest.$ac_objext conftest.$ac_ext
2868 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2869
2870 fi
2871 echo "$as_me:2871: result: $ac_cv_cxx_compiler_gnu" >&5
2872 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2873 GXX=`test $ac_compiler_gnu = yes && echo yes`
2874 ac_test_CXXFLAGS=${CXXFLAGS+set}
2875 ac_save_CXXFLAGS=$CXXFLAGS
2876 CXXFLAGS="-g"
2877 echo "$as_me:2877: checking whether $CXX accepts -g" >&5
2878 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2879 if test "${ac_cv_prog_cxx_g+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   cat >conftest.$ac_ext <<_ACEOF
2883 #line 2883 "configure"
2884 #include "confdefs.h"
2885
2886 int
2887 main ()
2888 {
2889
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:2895: \"$ac_compile\"") >&5
2896   (eval $ac_compile) 2>&5
2897   ac_status=$?
2898   echo "$as_me:2898: \$? = $ac_status" >&5
2899   (exit $ac_status); } &&
2900          { ac_try='test -s conftest.$ac_objext'
2901   { (eval echo "$as_me:2901: \"$ac_try\"") >&5
2902   (eval $ac_try) 2>&5
2903   ac_status=$?
2904   echo "$as_me:2904: \$? = $ac_status" >&5
2905   (exit $ac_status); }; }; then
2906   ac_cv_prog_cxx_g=yes
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2910 ac_cv_prog_cxx_g=no
2911 fi
2912 rm -f conftest.$ac_objext conftest.$ac_ext
2913 fi
2914 echo "$as_me:2914: result: $ac_cv_prog_cxx_g" >&5
2915 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2916 if test "$ac_test_CXXFLAGS" = set; then
2917   CXXFLAGS=$ac_save_CXXFLAGS
2918 elif test $ac_cv_prog_cxx_g = yes; then
2919   if test "$GXX" = yes; then
2920     CXXFLAGS="-g -O2"
2921   else
2922     CXXFLAGS="-g"
2923   fi
2924 else
2925   if test "$GXX" = yes; then
2926     CXXFLAGS="-O2"
2927   else
2928     CXXFLAGS=
2929   fi
2930 fi
2931 for ac_declaration in \
2932    ''\
2933    '#include <stdlib.h>' \
2934    'extern "C" void std::exit (int) throw (); using std::exit;' \
2935    'extern "C" void std::exit (int); using std::exit;' \
2936    'extern "C" void exit (int) throw ();' \
2937    'extern "C" void exit (int);' \
2938    'void exit (int);'
2939 do
2940   cat >conftest.$ac_ext <<_ACEOF
2941 #line 2941 "configure"
2942 #include "confdefs.h"
2943 #include <stdlib.h>
2944 $ac_declaration
2945 int
2946 main ()
2947 {
2948 exit (42);
2949   ;
2950   return 0;
2951 }
2952 _ACEOF
2953 rm -f conftest.$ac_objext
2954 if { (eval echo "$as_me:2954: \"$ac_compile\"") >&5
2955   (eval $ac_compile) 2>&5
2956   ac_status=$?
2957   echo "$as_me:2957: \$? = $ac_status" >&5
2958   (exit $ac_status); } &&
2959          { ac_try='test -s conftest.$ac_objext'
2960   { (eval echo "$as_me:2960: \"$ac_try\"") >&5
2961   (eval $ac_try) 2>&5
2962   ac_status=$?
2963   echo "$as_me:2963: \$? = $ac_status" >&5
2964   (exit $ac_status); }; }; then
2965   :
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 cat conftest.$ac_ext >&5
2969 continue
2970 fi
2971 rm -f conftest.$ac_objext conftest.$ac_ext
2972   cat >conftest.$ac_ext <<_ACEOF
2973 #line 2973 "configure"
2974 #include "confdefs.h"
2975 $ac_declaration
2976 int
2977 main ()
2978 {
2979 exit (42);
2980   ;
2981   return 0;
2982 }
2983 _ACEOF
2984 rm -f conftest.$ac_objext
2985 if { (eval echo "$as_me:2985: \"$ac_compile\"") >&5
2986   (eval $ac_compile) 2>&5
2987   ac_status=$?
2988   echo "$as_me:2988: \$? = $ac_status" >&5
2989   (exit $ac_status); } &&
2990          { ac_try='test -s conftest.$ac_objext'
2991   { (eval echo "$as_me:2991: \"$ac_try\"") >&5
2992   (eval $ac_try) 2>&5
2993   ac_status=$?
2994   echo "$as_me:2994: \$? = $ac_status" >&5
2995   (exit $ac_status); }; }; then
2996   break
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3000 fi
3001 rm -f conftest.$ac_objext conftest.$ac_ext
3002 done
3003 rm -f conftest*
3004 if test -n "$ac_declaration"; then
3005   echo '#ifdef __cplusplus' >>confdefs.h
3006   echo $ac_declaration      >>confdefs.h
3007   echo '#endif'             >>confdefs.h
3008 fi
3009
3010 ac_ext=c
3011 ac_cpp='$CPP $CPPFLAGS'
3012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015 ac_main_return=return
3016
3017                 # autoconf 2.5x removed the error - by hardcoding it to g++.
3018         if test "$CXX" = "g++" ; then
3019                 # Extract the first word of "g++", so it can be a program name with args.
3020 set dummy g++; ac_word=$2
3021 echo "$as_me:3021: checking for $ac_word" >&5
3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3023 if test "${ac_cv_path_CXX+set}" = set; then
3024   echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026   case $CXX in
3027   [\\/]* | ?:[\\/]*)
3028   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3029   ;;
3030   *)
3031   ac_save_IFS=$IFS; IFS=$ac_path_separator
3032 ac_dummy="$PATH"
3033 for ac_dir in $ac_dummy; do
3034   IFS=$ac_save_IFS
3035   test -z "$ac_dir" && ac_dir=.
3036   if $as_executable_p "$ac_dir/$ac_word"; then
3037    ac_cv_path_CXX="$ac_dir/$ac_word"
3038    echo "$as_me:3038: found $ac_dir/$ac_word" >&5
3039    break
3040 fi
3041 done
3042
3043   ;;
3044 esac
3045 fi
3046 CXX=$ac_cv_path_CXX
3047
3048 if test -n "$CXX"; then
3049   echo "$as_me:3049: result: $CXX" >&5
3050 echo "${ECHO_T}$CXX" >&6
3051 else
3052   echo "$as_me:3052: result: no" >&5
3053 echo "${ECHO_T}no" >&6
3054 fi
3055
3056         fi
3057         if test "$CXX" = "g++" ; then
3058                 { echo "$as_me:3058: WARNING: ignoring hardcoded g++" >&5
3059 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3060                 cf_with_cxx=no; CXX=""; GXX="";
3061         fi
3062 fi
3063
3064 GXX_VERSION=none
3065 if test "$GXX" = yes; then
3066         echo "$as_me:3066: checking version of g++" >&5
3067 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3068         GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3069         test -z "$GXX_VERSION" && GXX_VERSION=unknown
3070         echo "$as_me:3070: result: $GXX_VERSION" >&5
3071 echo "${ECHO_T}$GXX_VERSION" >&6
3072 fi
3073
3074 case $GXX_VERSION in
3075 1*|2.[0-6]*)
3076         # GXX=""; CXX=""; ac_cv_prog_gxx=no
3077         # cf_cxx_library=no
3078         { echo "$as_me:3078: WARNING: templates do not work" >&5
3079 echo "$as_me: WARNING: templates do not work" >&2;}
3080         ;;
3081 esac
3082
3083 echo "$as_me:3083: checking if you want to build C++ binding and demo" >&5
3084 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3085
3086 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3087 if test "${with_cxx_binding+set}" = set; then
3088   withval="$with_cxx_binding"
3089   cf_with_cxx_binding=$withval
3090 else
3091   cf_with_cxx_binding=$cf_with_cxx
3092 fi;
3093 echo "$as_me:3093: result: $cf_with_cxx_binding" >&5
3094 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3095
3096 echo "$as_me:3096: checking if you want to build with Ada95" >&5
3097 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3098
3099 # Check whether --with-ada or --without-ada was given.
3100 if test "${with_ada+set}" = set; then
3101   withval="$with_ada"
3102   cf_with_ada=$withval
3103 else
3104   cf_with_ada=yes
3105 fi;
3106 echo "$as_me:3106: result: $cf_with_ada" >&5
3107 echo "${ECHO_T}$cf_with_ada" >&6
3108
3109 echo "$as_me:3109: checking if you want to build programs such as tic" >&5
3110 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3111
3112 # Check whether --with-progs or --without-progs was given.
3113 if test "${with_progs+set}" = set; then
3114   withval="$with_progs"
3115   cf_with_progs=$withval
3116 else
3117   cf_with_progs=yes
3118 fi;
3119 echo "$as_me:3119: result: $cf_with_progs" >&5
3120 echo "${ECHO_T}$cf_with_progs" >&6
3121
3122 echo "$as_me:3122: checking if you wish to install curses.h" >&5
3123 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3124
3125 # Check whether --with-curses-h or --without-curses-h was given.
3126 if test "${with_curses_h+set}" = set; then
3127   withval="$with_curses_h"
3128   with_curses_h=$withval
3129 else
3130   with_curses_h=yes
3131 fi;
3132 echo "$as_me:3132: result: $with_curses_h" >&5
3133 echo "${ECHO_T}$with_curses_h" >&6
3134
3135 modules_to_build="ncurses"
3136 if test "X$cf_with_progs" != Xno ; then
3137 modules_to_build="$modules_to_build progs tack"
3138 fi
3139 modules_to_build="$modules_to_build panel menu form"
3140
3141 test "$program_prefix" != NONE &&
3142   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3143 # Use a double $ so make ignores it.
3144 test "$program_suffix" != NONE &&
3145   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3146 # Double any \ or $.  echo might interpret backslashes.
3147 # By default was `s,x,x', remove it if useless.
3148 cat <<\_ACEOF >conftest.sed
3149 s/[\\$]/&&/g;s/;s,x,x,$//
3150 _ACEOF
3151 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3152 rm conftest.sed
3153
3154 for ac_prog in mawk gawk nawk awk
3155 do
3156   # Extract the first word of "$ac_prog", so it can be a program name with args.
3157 set dummy $ac_prog; ac_word=$2
3158 echo "$as_me:3158: checking for $ac_word" >&5
3159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3160 if test "${ac_cv_prog_AWK+set}" = set; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163   if test -n "$AWK"; then
3164   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3165 else
3166   ac_save_IFS=$IFS; IFS=$ac_path_separator
3167 ac_dummy="$PATH"
3168 for ac_dir in $ac_dummy; do
3169   IFS=$ac_save_IFS
3170   test -z "$ac_dir" && ac_dir=.
3171   $as_executable_p "$ac_dir/$ac_word" || continue
3172 ac_cv_prog_AWK="$ac_prog"
3173 echo "$as_me:3173: found $ac_dir/$ac_word" >&5
3174 break
3175 done
3176
3177 fi
3178 fi
3179 AWK=$ac_cv_prog_AWK
3180 if test -n "$AWK"; then
3181   echo "$as_me:3181: result: $AWK" >&5
3182 echo "${ECHO_T}$AWK" >&6
3183 else
3184   echo "$as_me:3184: result: no" >&5
3185 echo "${ECHO_T}no" >&6
3186 fi
3187
3188   test -n "$AWK" && break
3189 done
3190
3191 test -z "$AWK" && { { echo "$as_me:3191: error: No awk program found" >&5
3192 echo "$as_me: error: No awk program found" >&2;}
3193    { (exit 1); exit 1; }; }
3194
3195 echo "$as_me:3195: checking for egrep" >&5
3196 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3197 if test "${ac_cv_prog_egrep+set}" = set; then
3198   echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3201     then ac_cv_prog_egrep='grep -E'
3202     else ac_cv_prog_egrep='egrep'
3203     fi
3204 fi
3205 echo "$as_me:3205: result: $ac_cv_prog_egrep" >&5
3206 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3207  EGREP=$ac_cv_prog_egrep
3208
3209 test -z "$EGREP" && { { echo "$as_me:3209: error: No egrep program found" >&5
3210 echo "$as_me: error: No egrep program found" >&2;}
3211    { (exit 1); exit 1; }; }
3212
3213 # Find a good install program.  We prefer a C program (faster),
3214 # so one script is as good as another.  But avoid the broken or
3215 # incompatible versions:
3216 # SysV /etc/install, /usr/sbin/install
3217 # SunOS /usr/etc/install
3218 # IRIX /sbin/install
3219 # AIX /bin/install
3220 # AmigaOS /C/install, which installs bootblocks on floppy discs
3221 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3222 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3223 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3224 # ./install, which can be erroneously created by make from ./install.sh.
3225 echo "$as_me:3225: checking for a BSD compatible install" >&5
3226 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3227 if test -z "$INSTALL"; then
3228 if test "${ac_cv_path_install+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231     ac_save_IFS=$IFS; IFS=$ac_path_separator
3232   for ac_dir in $PATH; do
3233     IFS=$ac_save_IFS
3234     # Account for people who put trailing slashes in PATH elements.
3235     case $ac_dir/ in
3236     / | ./ | .// | /cC/* \
3237     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3238     | /usr/ucb/* ) ;;
3239     *)
3240       # OSF1 and SCO ODT 3.0 have their own names for install.
3241       # Don't use installbsd from OSF since it installs stuff as root
3242       # by default.
3243       for ac_prog in ginstall scoinst install; do
3244         if $as_executable_p "$ac_dir/$ac_prog"; then
3245           if test $ac_prog = install &&
3246             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3247             # AIX install.  It has an incompatible calling convention.
3248             :
3249           elif test $ac_prog = install &&
3250             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3251             # program-specific install script used by HP pwplus--don't use.
3252             :
3253           else
3254             ac_cv_path_install="$ac_dir/$ac_prog -c"
3255             break 2
3256           fi
3257         fi
3258       done
3259       ;;
3260     esac
3261   done
3262
3263 fi
3264   if test "${ac_cv_path_install+set}" = set; then
3265     INSTALL=$ac_cv_path_install
3266   else
3267     # As a last resort, use the slow shell script.  We don't cache a
3268     # path for INSTALL within a source directory, because that will
3269     # break other packages using the cache if that directory is
3270     # removed, or if the path is relative.
3271     INSTALL=$ac_install_sh
3272   fi
3273 fi
3274 echo "$as_me:3274: result: $INSTALL" >&5
3275 echo "${ECHO_T}$INSTALL" >&6
3276
3277 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3278 # It thinks the first close brace ends the variable substitution.
3279 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3280
3281 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3282
3283 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3284
3285 case $INSTALL in
3286 /*)
3287   ;;
3288 *)
3289   cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3290   test -z "$cf_dir" && cf_dir=.
3291   INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3292   ;;
3293 esac
3294
3295 for ac_prog in tdlint lint alint
3296 do
3297   # Extract the first word of "$ac_prog", so it can be a program name with args.
3298 set dummy $ac_prog; ac_word=$2
3299 echo "$as_me:3299: checking for $ac_word" >&5
3300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3301 if test "${ac_cv_prog_LINT+set}" = set; then
3302   echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304   if test -n "$LINT"; then
3305   ac_cv_prog_LINT="$LINT" # Let the user override the test.
3306 else
3307   ac_save_IFS=$IFS; IFS=$ac_path_separator
3308 ac_dummy="$PATH"
3309 for ac_dir in $ac_dummy; do
3310   IFS=$ac_save_IFS
3311   test -z "$ac_dir" && ac_dir=.
3312   $as_executable_p "$ac_dir/$ac_word" || continue
3313 ac_cv_prog_LINT="$ac_prog"
3314 echo "$as_me:3314: found $ac_dir/$ac_word" >&5
3315 break
3316 done
3317
3318 fi
3319 fi
3320 LINT=$ac_cv_prog_LINT
3321 if test -n "$LINT"; then
3322   echo "$as_me:3322: result: $LINT" >&5
3323 echo "${ECHO_T}$LINT" >&6
3324 else
3325   echo "$as_me:3325: result: no" >&5
3326 echo "${ECHO_T}no" >&6
3327 fi
3328
3329   test -n "$LINT" && break
3330 done
3331
3332 echo "$as_me:3332: checking whether ln -s works" >&5
3333 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3334 LN_S=$as_ln_s
3335 if test "$LN_S" = "ln -s"; then
3336   echo "$as_me:3336: result: yes" >&5
3337 echo "${ECHO_T}yes" >&6
3338 else
3339   echo "$as_me:3339: result: no, using $LN_S" >&5
3340 echo "${ECHO_T}no, using $LN_S" >&6
3341 fi
3342
3343 echo "$as_me:3343: checking whether ${MAKE-make} sets \${MAKE}" >&5
3344 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3345 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3346 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3347   echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349   cat >conftest.make <<\EOF
3350 all:
3351         @echo 'ac_maketemp="${MAKE}"'
3352 EOF
3353 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3354 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3355 if test -n "$ac_maketemp"; then
3356   eval ac_cv_prog_make_${ac_make}_set=yes
3357 else
3358   eval ac_cv_prog_make_${ac_make}_set=no
3359 fi
3360 rm -f conftest.make
3361 fi
3362 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3363   echo "$as_me:3363: result: yes" >&5
3364 echo "${ECHO_T}yes" >&6
3365   SET_MAKE=
3366 else
3367   echo "$as_me:3367: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3369   SET_MAKE="MAKE=${MAKE-make}"
3370 fi
3371
3372 echo "$as_me:3372: checking if filesystem supports mixed-case filenames" >&5
3373 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3374 if test "${cf_cv_mixedcase+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377
3378 if test "$cross_compiling" = yes ; then
3379         case $target_alias in #(vi
3380         *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3381                 cf_cv_mixedcase=no
3382                 ;;
3383         *)
3384                 cf_cv_mixedcase=yes
3385                 ;;
3386         esac
3387 else
3388         rm -f conftest CONFTEST
3389         echo test >conftest
3390         if test -f CONFTEST ; then
3391                 cf_cv_mixedcase=no
3392         else
3393                 cf_cv_mixedcase=yes
3394         fi
3395         rm -f conftest CONFTEST
3396 fi
3397
3398 fi
3399 echo "$as_me:3399: result: $cf_cv_mixedcase" >&5
3400 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3401 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3402 #define MIXEDCASE_FILENAMES 1
3403 EOF
3404
3405 # Extract the first word of "ctags", so it can be a program name with args.
3406 set dummy ctags; ac_word=$2
3407 echo "$as_me:3407: checking for $ac_word" >&5
3408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3409 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3410   echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412   if test -n "$MAKE_LOWER_TAGS"; then
3413   ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3414 else
3415   ac_save_IFS=$IFS; IFS=$ac_path_separator
3416 ac_dummy="$PATH"
3417 for ac_dir in $ac_dummy; do
3418   IFS=$ac_save_IFS
3419   test -z "$ac_dir" && ac_dir=.
3420   $as_executable_p "$ac_dir/$ac_word" || continue
3421 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3422 echo "$as_me:3422: found $ac_dir/$ac_word" >&5
3423 break
3424 done
3425
3426   test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3427 fi
3428 fi
3429 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3430 if test -n "$MAKE_LOWER_TAGS"; then
3431   echo "$as_me:3431: result: $MAKE_LOWER_TAGS" >&5
3432 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3433 else
3434   echo "$as_me:3434: result: no" >&5
3435 echo "${ECHO_T}no" >&6
3436 fi
3437
3438 if test "$cf_cv_mixedcase" = yes ; then
3439         # Extract the first word of "etags", so it can be a program name with args.
3440 set dummy etags; ac_word=$2
3441 echo "$as_me:3441: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   if test -n "$MAKE_UPPER_TAGS"; then
3447   ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3448 else
3449   ac_save_IFS=$IFS; IFS=$ac_path_separator
3450 ac_dummy="$PATH"
3451 for ac_dir in $ac_dummy; do
3452   IFS=$ac_save_IFS
3453   test -z "$ac_dir" && ac_dir=.
3454   $as_executable_p "$ac_dir/$ac_word" || continue
3455 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3456 echo "$as_me:3456: found $ac_dir/$ac_word" >&5
3457 break
3458 done
3459
3460   test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3461 fi
3462 fi
3463 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3464 if test -n "$MAKE_UPPER_TAGS"; then
3465   echo "$as_me:3465: result: $MAKE_UPPER_TAGS" >&5
3466 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3467 else
3468   echo "$as_me:3468: result: no" >&5
3469 echo "${ECHO_T}no" >&6
3470 fi
3471
3472 else
3473         MAKE_UPPER_TAGS=no
3474 fi
3475
3476 if test "$MAKE_UPPER_TAGS" = yes ; then
3477         MAKE_UPPER_TAGS=
3478 else
3479         MAKE_UPPER_TAGS="#"
3480 fi
3481
3482 if test "$MAKE_LOWER_TAGS" = yes ; then
3483         MAKE_LOWER_TAGS=
3484 else
3485         MAKE_LOWER_TAGS="#"
3486 fi
3487
3488 echo "$as_me:3488: checking for makeflags variable" >&5
3489 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3490 if test "${cf_cv_makeflags+set}" = set; then
3491   echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493
3494         cf_cv_makeflags=''
3495         for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3496         do
3497                 cat >cf_makeflags.tmp <<CF_EOF
3498 SHELL = /bin/sh
3499 all :
3500         @ echo '.$cf_option'
3501 CF_EOF
3502                 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[        ]*$,,'`
3503                 case "$cf_result" in
3504                 .*k)
3505                         cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3506                         case "$cf_result" in
3507                         .*CC=*) cf_cv_makeflags=
3508                                 ;;
3509                         *)      cf_cv_makeflags=$cf_option
3510                                 ;;
3511                         esac
3512                         break
3513                         ;;
3514                 .-)     ;;
3515                 *)      echo "given option \"$cf_option\", no match \"$cf_result\""
3516                         ;;
3517                 esac
3518         done
3519         rm -f cf_makeflags.tmp
3520
3521 fi
3522 echo "$as_me:3522: result: $cf_cv_makeflags" >&5
3523 echo "${ECHO_T}$cf_cv_makeflags" >&6
3524
3525 echo "$as_me:3525: checking for long file names" >&5
3526 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3527 if test "${ac_cv_sys_long_file_names+set}" = set; then
3528   echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530   ac_cv_sys_long_file_names=yes
3531 # Test for long file names in all the places we know might matter:
3532 #      .                the current directory, where building will happen
3533 #      $prefix/lib      where we will be installing things
3534 #      $exec_prefix/lib likewise
3535 # eval it to expand exec_prefix.
3536 #      $TMPDIR          if set, where it might want to write temporary files
3537 # if $TMPDIR is not set:
3538 #      /tmp             where it might want to write temporary files
3539 #      /var/tmp         likewise
3540 #      /usr/tmp         likewise
3541 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3542   ac_tmpdirs=$TMPDIR
3543 else
3544   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3545 fi
3546 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3547   test -d $ac_dir || continue
3548   test -w $ac_dir || continue # It is less confusing to not echo anything here.
3549   ac_xdir=$ac_dir/cf$$
3550   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3551   ac_tf1=$ac_xdir/conftest9012345
3552   ac_tf2=$ac_xdir/conftest9012346
3553   (echo 1 >$ac_tf1) 2>/dev/null
3554   (echo 2 >$ac_tf2) 2>/dev/null
3555   ac_val=`cat $ac_tf1 2>/dev/null`
3556   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3557     ac_cv_sys_long_file_names=no
3558     rm -rf $ac_xdir 2>/dev/null
3559     break
3560   fi
3561   rm -rf $ac_xdir 2>/dev/null
3562 done
3563 fi
3564 echo "$as_me:3564: result: $ac_cv_sys_long_file_names" >&5
3565 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3566 if test $ac_cv_sys_long_file_names = yes; then
3567
3568 cat >>confdefs.h <<\EOF
3569 #define HAVE_LONG_FILE_NAMES 1
3570 EOF
3571
3572 fi
3573
3574 echo "$as_me:3574: checking if filesystem supports mixed-case filenames" >&5
3575 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3576 if test "${cf_cv_mixedcase+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579
3580 if test "$cross_compiling" = yes ; then
3581         case $target_alias in #(vi
3582         *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3583                 cf_cv_mixedcase=no
3584                 ;;
3585         *)
3586                 cf_cv_mixedcase=yes
3587                 ;;
3588         esac
3589 else
3590         rm -f conftest CONFTEST
3591         echo test >conftest
3592         if test -f CONFTEST ; then
3593                 cf_cv_mixedcase=no
3594         else
3595                 cf_cv_mixedcase=yes
3596         fi
3597         rm -f conftest CONFTEST
3598 fi
3599
3600 fi
3601 echo "$as_me:3601: result: $cf_cv_mixedcase" >&5
3602 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3603 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3604 #define MIXEDCASE_FILENAMES 1
3605 EOF
3606
3607 if test -n "$ac_tool_prefix"; then
3608   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3609 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3610 echo "$as_me:3610: checking for $ac_word" >&5
3611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3612 if test "${ac_cv_prog_RANLIB+set}" = set; then
3613   echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615   if test -n "$RANLIB"; then
3616   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3617 else
3618   ac_save_IFS=$IFS; IFS=$ac_path_separator
3619 ac_dummy="$PATH"
3620 for ac_dir in $ac_dummy; do
3621   IFS=$ac_save_IFS
3622   test -z "$ac_dir" && ac_dir=.
3623   $as_executable_p "$ac_dir/$ac_word" || continue
3624 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3625 echo "$as_me:3625: found $ac_dir/$ac_word" >&5
3626 break
3627 done
3628
3629 fi
3630 fi
3631 RANLIB=$ac_cv_prog_RANLIB
3632 if test -n "$RANLIB"; then
3633   echo "$as_me:3633: result: $RANLIB" >&5
3634 echo "${ECHO_T}$RANLIB" >&6
3635 else
3636   echo "$as_me:3636: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3638 fi
3639
3640 fi
3641 if test -z "$ac_cv_prog_RANLIB"; then
3642   ac_ct_RANLIB=$RANLIB
3643   # Extract the first word of "ranlib", so it can be a program name with args.
3644 set dummy ranlib; ac_word=$2
3645 echo "$as_me:3645: checking for $ac_word" >&5
3646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3647 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3648   echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650   if test -n "$ac_ct_RANLIB"; then
3651   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3652 else
3653   ac_save_IFS=$IFS; IFS=$ac_path_separator
3654 ac_dummy="$PATH"
3655 for ac_dir in $ac_dummy; do
3656   IFS=$ac_save_IFS
3657   test -z "$ac_dir" && ac_dir=.
3658   $as_executable_p "$ac_dir/$ac_word" || continue
3659 ac_cv_prog_ac_ct_RANLIB="ranlib"
3660 echo "$as_me:3660: found $ac_dir/$ac_word" >&5
3661 break
3662 done
3663
3664   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3665 fi
3666 fi
3667 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3668 if test -n "$ac_ct_RANLIB"; then
3669   echo "$as_me:3669: result: $ac_ct_RANLIB" >&5
3670 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3671 else
3672   echo "$as_me:3672: result: no" >&5
3673 echo "${ECHO_T}no" >&6
3674 fi
3675
3676   RANLIB=$ac_ct_RANLIB
3677 else
3678   RANLIB="$ac_cv_prog_RANLIB"
3679 fi
3680
3681 if test -n "$ac_tool_prefix"; then
3682   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3683 set dummy ${ac_tool_prefix}ld; ac_word=$2
3684 echo "$as_me:3684: checking for $ac_word" >&5
3685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3686 if test "${ac_cv_prog_LD+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   if test -n "$LD"; then
3690   ac_cv_prog_LD="$LD" # Let the user override the test.
3691 else
3692   ac_save_IFS=$IFS; IFS=$ac_path_separator
3693 ac_dummy="$PATH"
3694 for ac_dir in $ac_dummy; do
3695   IFS=$ac_save_IFS
3696   test -z "$ac_dir" && ac_dir=.
3697   $as_executable_p "$ac_dir/$ac_word" || continue
3698 ac_cv_prog_LD="${ac_tool_prefix}ld"
3699 echo "$as_me:3699: found $ac_dir/$ac_word" >&5
3700 break
3701 done
3702
3703 fi
3704 fi
3705 LD=$ac_cv_prog_LD
3706 if test -n "$LD"; then
3707   echo "$as_me:3707: result: $LD" >&5
3708 echo "${ECHO_T}$LD" >&6
3709 else
3710   echo "$as_me:3710: result: no" >&5
3711 echo "${ECHO_T}no" >&6
3712 fi
3713
3714 fi
3715 if test -z "$ac_cv_prog_LD"; then
3716   ac_ct_LD=$LD
3717   # Extract the first word of "ld", so it can be a program name with args.
3718 set dummy ld; ac_word=$2
3719 echo "$as_me:3719: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3721 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   if test -n "$ac_ct_LD"; then
3725   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3726 else
3727   ac_save_IFS=$IFS; IFS=$ac_path_separator
3728 ac_dummy="$PATH"
3729 for ac_dir in $ac_dummy; do
3730   IFS=$ac_save_IFS
3731   test -z "$ac_dir" && ac_dir=.
3732   $as_executable_p "$ac_dir/$ac_word" || continue
3733 ac_cv_prog_ac_ct_LD="ld"
3734 echo "$as_me:3734: found $ac_dir/$ac_word" >&5
3735 break
3736 done
3737
3738   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3739 fi
3740 fi
3741 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3742 if test -n "$ac_ct_LD"; then
3743   echo "$as_me:3743: result: $ac_ct_LD" >&5
3744 echo "${ECHO_T}$ac_ct_LD" >&6
3745 else
3746   echo "$as_me:3746: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3748 fi
3749
3750   LD=$ac_ct_LD
3751 else
3752   LD="$ac_cv_prog_LD"
3753 fi
3754
3755 if test -n "$ac_tool_prefix"; then
3756   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}ar; ac_word=$2
3758 echo "$as_me:3758: checking for $ac_word" >&5
3759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3760 if test "${ac_cv_prog_AR+set}" = set; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763   if test -n "$AR"; then
3764   ac_cv_prog_AR="$AR" # Let the user override the test.
3765 else
3766   ac_save_IFS=$IFS; IFS=$ac_path_separator
3767 ac_dummy="$PATH"
3768 for ac_dir in $ac_dummy; do
3769   IFS=$ac_save_IFS
3770   test -z "$ac_dir" && ac_dir=.
3771   $as_executable_p "$ac_dir/$ac_word" || continue
3772 ac_cv_prog_AR="${ac_tool_prefix}ar"
3773 echo "$as_me:3773: found $ac_dir/$ac_word" >&5
3774 break
3775 done
3776
3777 fi
3778 fi
3779 AR=$ac_cv_prog_AR
3780 if test -n "$AR"; then
3781   echo "$as_me:3781: result: $AR" >&5
3782 echo "${ECHO_T}$AR" >&6
3783 else
3784   echo "$as_me:3784: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3786 fi
3787
3788 fi
3789 if test -z "$ac_cv_prog_AR"; then
3790   ac_ct_AR=$AR
3791   # Extract the first word of "ar", so it can be a program name with args.
3792 set dummy ar; ac_word=$2
3793 echo "$as_me:3793: checking for $ac_word" >&5
3794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   if test -n "$ac_ct_AR"; then
3799   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3800 else
3801   ac_save_IFS=$IFS; IFS=$ac_path_separator
3802 ac_dummy="$PATH"
3803 for ac_dir in $ac_dummy; do
3804   IFS=$ac_save_IFS
3805   test -z "$ac_dir" && ac_dir=.
3806   $as_executable_p "$ac_dir/$ac_word" || continue
3807 ac_cv_prog_ac_ct_AR="ar"
3808 echo "$as_me:3808: found $ac_dir/$ac_word" >&5
3809 break
3810 done
3811
3812   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3813 fi
3814 fi
3815 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3816 if test -n "$ac_ct_AR"; then
3817   echo "$as_me:3817: result: $ac_ct_AR" >&5
3818 echo "${ECHO_T}$ac_ct_AR" >&6
3819 else
3820   echo "$as_me:3820: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3822 fi
3823
3824   AR=$ac_ct_AR
3825 else
3826   AR="$ac_cv_prog_AR"
3827 fi
3828
3829 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832
3833 echo "$as_me:3833: checking for archiver options (symbol AR_OPTS)" >&5
3834 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3835
3836 if test -z "$AR_OPTS" ; then
3837         AR_OPTS=rv
3838
3839 fi
3840
3841 cf_cv_subst_AR_OPTS=$AR_OPTS
3842 echo "$as_me:3842: result: $AR_OPTS" >&5
3843 echo "${ECHO_T}$AR_OPTS" >&6
3844
3845 fi
3846
3847 echo "$as_me:3847: checking if you have specified an install-prefix" >&5
3848 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3849
3850 # Check whether --with-install-prefix or --without-install-prefix was given.
3851 if test "${with_install_prefix+set}" = set; then
3852   withval="$with_install_prefix"
3853   case "$withval" in #(vi
3854         yes|no) #(vi
3855                 ;;
3856         *)      DESTDIR="$withval"
3857                 ;;
3858         esac
3859 fi;
3860 echo "$as_me:3860: result: $DESTDIR" >&5
3861 echo "${ECHO_T}$DESTDIR" >&6
3862
3863 ###############################################################################
3864
3865 # If we're cross-compiling, allow the user to override the tools and their
3866 # options.  The configure script is oriented toward identifying the host
3867 # compiler, etc., but we need a build compiler to generate parts of the source.
3868
3869 if test "$cross_compiling" = yes ; then
3870
3871         # defaults that we might want to override
3872         : ${BUILD_CFLAGS:=''}
3873         : ${BUILD_CPPFLAGS:=''}
3874         : ${BUILD_LDFLAGS:=''}
3875         : ${BUILD_LIBS:=''}
3876         : ${BUILD_EXEEXT:='$x'}
3877         : ${BUILD_OBJEXT:='o'}
3878
3879 # Check whether --with-build-cc or --without-build-cc was given.
3880 if test "${with_build_cc+set}" = set; then
3881   withval="$with_build_cc"
3882   BUILD_CC="$withval"
3883 else
3884   for ac_prog in gcc cc cl
3885 do
3886   # Extract the first word of "$ac_prog", so it can be a program name with args.
3887 set dummy $ac_prog; ac_word=$2
3888 echo "$as_me:3888: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3890 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   if test -n "$BUILD_CC"; then
3894   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3895 else
3896   ac_save_IFS=$IFS; IFS=$ac_path_separator
3897 ac_dummy="$PATH"
3898 for ac_dir in $ac_dummy; do
3899   IFS=$ac_save_IFS
3900   test -z "$ac_dir" && ac_dir=.
3901   $as_executable_p "$ac_dir/$ac_word" || continue
3902 ac_cv_prog_BUILD_CC="$ac_prog"
3903 echo "$as_me:3903: found $ac_dir/$ac_word" >&5
3904 break
3905 done
3906
3907 fi
3908 fi
3909 BUILD_CC=$ac_cv_prog_BUILD_CC
3910 if test -n "$BUILD_CC"; then
3911   echo "$as_me:3911: result: $BUILD_CC" >&5
3912 echo "${ECHO_T}$BUILD_CC" >&6
3913 else
3914   echo "$as_me:3914: result: no" >&5
3915 echo "${ECHO_T}no" >&6
3916 fi
3917
3918   test -n "$BUILD_CC" && break
3919 done
3920
3921 fi;
3922         echo "$as_me:3922: checking for native build C compiler" >&5
3923 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3924         echo "$as_me:3924: result: $BUILD_CC" >&5
3925 echo "${ECHO_T}$BUILD_CC" >&6
3926
3927         echo "$as_me:3927: checking for native build C preprocessor" >&5
3928 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3929
3930 # Check whether --with-build-cpp or --without-build-cpp was given.
3931 if test "${with_build_cpp+set}" = set; then
3932   withval="$with_build_cpp"
3933   BUILD_CPP="$withval"
3934 else
3935   BUILD_CPP='${BUILD_CC} -E'
3936 fi;
3937         echo "$as_me:3937: result: $BUILD_CPP" >&5
3938 echo "${ECHO_T}$BUILD_CPP" >&6
3939
3940         echo "$as_me:3940: checking for native build C flags" >&5
3941 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3942
3943 # Check whether --with-build-cflags or --without-build-cflags was given.
3944 if test "${with_build_cflags+set}" = set; then
3945   withval="$with_build_cflags"
3946   BUILD_CFLAGS="$withval"
3947 fi;
3948         echo "$as_me:3948: result: $BUILD_CFLAGS" >&5
3949 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3950
3951         echo "$as_me:3951: checking for native build C preprocessor-flags" >&5
3952 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3953
3954 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3955 if test "${with_build_cppflags+set}" = set; then
3956   withval="$with_build_cppflags"
3957   BUILD_CPPFLAGS="$withval"
3958 fi;
3959         echo "$as_me:3959: result: $BUILD_CPPFLAGS" >&5
3960 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3961
3962         echo "$as_me:3962: checking for native build linker-flags" >&5
3963 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3964
3965 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3966 if test "${with_build_ldflags+set}" = set; then
3967   withval="$with_build_ldflags"
3968   BUILD_LDFLAGS="$withval"
3969 fi;
3970         echo "$as_me:3970: result: $BUILD_LDFLAGS" >&5
3971 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3972
3973         echo "$as_me:3973: checking for native build linker-libraries" >&5
3974 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3975
3976 # Check whether --with-build-libs or --without-build-libs was given.
3977 if test "${with_build_libs+set}" = set; then
3978   withval="$with_build_libs"
3979   BUILD_LIBS="$withval"
3980 fi;
3981         echo "$as_me:3981: result: $BUILD_LIBS" >&5
3982 echo "${ECHO_T}$BUILD_LIBS" >&6
3983
3984         # this assumes we're on Unix.
3985         BUILD_EXEEXT=
3986         BUILD_OBJEXT=o
3987
3988         : ${BUILD_CC:='${CC}'}
3989
3990         if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3991                 { { echo "$as_me:3991: error: Cross-build requires two compilers.
3992 Use --with-build-cc to specify the native compiler." >&5
3993 echo "$as_me: error: Cross-build requires two compilers.
3994 Use --with-build-cc to specify the native compiler." >&2;}
3995    { (exit 1); exit 1; }; }
3996         fi
3997
3998 else
3999         : ${BUILD_CC:='${CC}'}
4000         : ${BUILD_CPP:='${CPP}'}
4001         : ${BUILD_CFLAGS:='${CFLAGS}'}
4002         : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4003         : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4004         : ${BUILD_LIBS:='${LIBS}'}
4005         : ${BUILD_EXEEXT:='$x'}
4006         : ${BUILD_OBJEXT:='o'}
4007 fi
4008
4009 ###############################################################################
4010
4011 ### Options to allow the user to specify the set of libraries which are used.
4012 ### Use "--without-normal --with-shared" to allow the default model to be
4013 ### shared, for example.
4014 cf_list_models=""
4015
4016 LIBTOOL=
4017
4018 # common library maintenance symbols that are convenient for libtool scripts:
4019 LIB_CREATE='${AR} -cr'
4020 LIB_OBJECT='${OBJECTS}'
4021 LIB_SUFFIX=.a
4022 LIB_PREP="$RANLIB"
4023
4024 # symbols used to prop libtool up to enable it to determine what it should be
4025 # doing:
4026 LIB_CLEAN=
4027 LIB_COMPILE=
4028 LIB_LINK=
4029 LIB_INSTALL=
4030 LIB_UNINSTALL=
4031
4032 echo "$as_me:4032: checking if you want to build libraries with libtool" >&5
4033 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4034
4035 # Check whether --with-libtool or --without-libtool was given.
4036 if test "${with_libtool+set}" = set; then
4037   withval="$with_libtool"
4038   with_libtool=$withval
4039 else
4040   with_libtool=no
4041 fi;
4042 echo "$as_me:4042: result: $with_libtool" >&5
4043 echo "${ECHO_T}$with_libtool" >&6
4044 if test "$with_libtool" != "no"; then
4045
4046         if test "$with_libtool" != "yes" ; then
4047
4048 if test "x$prefix" != xNONE; then
4049   cf_path_syntax="$prefix"
4050 else
4051   cf_path_syntax="$ac_default_prefix"
4052 fi
4053
4054 case ".$with_libtool" in #(vi
4055 .\$\(*\)*|.\'*\'*) #(vi
4056   ;;
4057 ..|./*|.\\*) #(vi
4058   ;;
4059 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4060   ;;
4061 .\${*prefix}*) #(vi
4062   eval with_libtool="$with_libtool"
4063   case ".$with_libtool" in #(vi
4064   .NONE/*)
4065     with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4066     ;;
4067   esac
4068   ;; #(vi
4069 .no|.NONE/*)
4070   with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4071   ;;
4072 *)
4073   { { echo "$as_me:4073: error: expected a pathname, not \"$with_libtool\"" >&5
4074 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4075    { (exit 1); exit 1; }; }
4076   ;;
4077 esac
4078