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