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