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