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