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