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