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