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