]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/configure
ncurses 5.9 - patch 20121110
[ncurses.git] / Ada95 / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.45 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20121002.
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="gen/gen.c"
109
110 # Initialize some variables set by options.
111 ac_init_help=
112 ac_init_version=false
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
115 cache_file=/dev/null
116 exec_prefix=NONE
117 no_create=
118 no_recursion=
119 prefix=NONE
120 program_prefix=NONE
121 program_suffix=NONE
122 program_transform_name=s,x,x,
123 silent=
124 site=
125 srcdir=
126 verbose=
127 x_includes=NONE
128 x_libraries=NONE
129
130 # Installation directory options.
131 # These are left unexpanded so users can "make install exec_prefix=/foo"
132 # and all the variables that are supposed to be based on exec_prefix
133 # by default will actually change.
134 # Use braces instead of parens because sh, perl, etc. also accept them.
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datarootdir='${prefix}/share'
139 datadir='${datarootdir}'
140 sysconfdir='${prefix}/etc'
141 sharedstatedir='${prefix}/com'
142 localstatedir='${prefix}/var'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${datarootdir}/info'
147 mandir='${datarootdir}/man'
148
149 # Identity of this package.
150 PACKAGE_NAME=
151 PACKAGE_TARNAME=
152 PACKAGE_VERSION=
153 PACKAGE_STRING=
154 PACKAGE_BUGREPORT=
155
156 ac_prev=
157 for ac_option
158 do
159   # If the previous option needs an argument, assign it.
160   if test -n "$ac_prev"; then
161     eval "$ac_prev=\$ac_option"
162     ac_prev=
163     continue
164   fi
165
166   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167
168   # Accept the important Cygnus configure options, so we can diagnose typos.
169
170   case $ac_option in
171
172   -bindir | --bindir | --bindi | --bind | --bin | --bi)
173     ac_prev=bindir ;;
174   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
175     bindir=$ac_optarg ;;
176
177   -build | --build | --buil | --bui | --bu)
178     ac_prev=build_alias ;;
179   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180     build_alias=$ac_optarg ;;
181
182   -cache-file | --cache-file | --cache-fil | --cache-fi \
183   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184     ac_prev=cache_file ;;
185   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187     cache_file=$ac_optarg ;;
188
189   --config-cache | -C)
190     cache_file=config.cache ;;
191
192   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193     ac_prev=datadir ;;
194   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195   | --da=*)
196     datadir=$ac_optarg ;;
197
198   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
199   | --dataroo | --dataro | --datar)
200     ac_prev=datarootdir ;;
201   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
202   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
203     datarootdir=$ac_optarg ;;
204
205   -disable-* | --disable-*)
206     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
207     # Reject names that are not valid shell variable names.
208     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210    { (exit 1); exit 1; }; }
211     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212     eval "enable_$ac_feature=no" ;;
213
214   -enable-* | --enable-*)
215     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
216     # Reject names that are not valid shell variable names.
217     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
218       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
219    { (exit 1); exit 1; }; }
220     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
221     case $ac_option in
222       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
223       *) ac_optarg=yes ;;
224     esac
225     eval "enable_$ac_feature='$ac_optarg'" ;;
226
227   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
228   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
229   | --exec | --exe | --ex)
230     ac_prev=exec_prefix ;;
231   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
232   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
233   | --exec=* | --exe=* | --ex=*)
234     exec_prefix=$ac_optarg ;;
235
236   -gas | --gas | --ga | --g)
237     # Obsolete; use --with-gas.
238     with_gas=yes ;;
239
240   -help | --help | --hel | --he | -h)
241     ac_init_help=long ;;
242   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
243     ac_init_help=recursive ;;
244   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
245     ac_init_help=short ;;
246
247   -host | --host | --hos | --ho)
248     ac_prev=host_alias ;;
249   -host=* | --host=* | --hos=* | --ho=*)
250     host_alias=$ac_optarg ;;
251
252   -includedir | --includedir | --includedi | --included | --include \
253   | --includ | --inclu | --incl | --inc)
254     ac_prev=includedir ;;
255   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256   | --includ=* | --inclu=* | --incl=* | --inc=*)
257     includedir=$ac_optarg ;;
258
259   -infodir | --infodir | --infodi | --infod | --info | --inf)
260     ac_prev=infodir ;;
261   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262     infodir=$ac_optarg ;;
263
264   -libdir | --libdir | --libdi | --libd)
265     ac_prev=libdir ;;
266   -libdir=* | --libdir=* | --libdi=* | --libd=*)
267     libdir=$ac_optarg ;;
268
269   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270   | --libexe | --libex | --libe)
271     ac_prev=libexecdir ;;
272   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273   | --libexe=* | --libex=* | --libe=*)
274     libexecdir=$ac_optarg ;;
275
276   -localstatedir | --localstatedir | --localstatedi | --localstated \
277   | --localstate | --localstat | --localsta | --localst \
278   | --locals | --local | --loca | --loc | --lo)
279     ac_prev=localstatedir ;;
280   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283     localstatedir=$ac_optarg ;;
284
285   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286     ac_prev=mandir ;;
287   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
288     mandir=$ac_optarg ;;
289
290   -nfp | --nfp | --nf)
291     # Obsolete; use --without-fp.
292     with_fp=no ;;
293
294   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
295   | --no-cr | --no-c)
296     no_create=yes ;;
297
298   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
300     no_recursion=yes ;;
301
302   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304   | --oldin | --oldi | --old | --ol | --o)
305     ac_prev=oldincludedir ;;
306   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309     oldincludedir=$ac_optarg ;;
310
311   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312     ac_prev=prefix ;;
313   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
314     prefix=$ac_optarg ;;
315
316   -program-prefix | --program-prefix | --program-prefi | --program-pref \
317   | --program-pre | --program-pr | --program-p)
318     ac_prev=program_prefix ;;
319   -program-prefix=* | --program-prefix=* | --program-prefi=* \
320   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321     program_prefix=$ac_optarg ;;
322
323   -program-suffix | --program-suffix | --program-suffi | --program-suff \
324   | --program-suf | --program-su | --program-s)
325     ac_prev=program_suffix ;;
326   -program-suffix=* | --program-suffix=* | --program-suffi=* \
327   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328     program_suffix=$ac_optarg ;;
329
330   -program-transform-name | --program-transform-name \
331   | --program-transform-nam | --program-transform-na \
332   | --program-transform-n | --program-transform- \
333   | --program-transform | --program-transfor \
334   | --program-transfo | --program-transf \
335   | --program-trans | --program-tran \
336   | --progr-tra | --program-tr | --program-t)
337     ac_prev=program_transform_name ;;
338   -program-transform-name=* | --program-transform-name=* \
339   | --program-transform-nam=* | --program-transform-na=* \
340   | --program-transform-n=* | --program-transform-=* \
341   | --program-transform=* | --program-transfor=* \
342   | --program-transfo=* | --program-transf=* \
343   | --program-trans=* | --program-tran=* \
344   | --progr-tra=* | --program-tr=* | --program-t=*)
345     program_transform_name=$ac_optarg ;;
346
347   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348   | -silent | --silent | --silen | --sile | --sil)
349     silent=yes ;;
350
351   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352     ac_prev=sbindir ;;
353   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354   | --sbi=* | --sb=*)
355     sbindir=$ac_optarg ;;
356
357   -sharedstatedir | --sharedstatedir | --sharedstatedi \
358   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359   | --sharedst | --shareds | --shared | --share | --shar \
360   | --sha | --sh)
361     ac_prev=sharedstatedir ;;
362   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365   | --sha=* | --sh=*)
366     sharedstatedir=$ac_optarg ;;
367
368   -site | --site | --sit)
369     ac_prev=site ;;
370   -site=* | --site=* | --sit=*)
371     site=$ac_optarg ;;
372
373   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374     ac_prev=srcdir ;;
375   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376     srcdir=$ac_optarg ;;
377
378   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379   | --syscon | --sysco | --sysc | --sys | --sy)
380     ac_prev=sysconfdir ;;
381   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383     sysconfdir=$ac_optarg ;;
384
385   -target | --target | --targe | --targ | --tar | --ta | --t)
386     ac_prev=target_alias ;;
387   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388     target_alias=$ac_optarg ;;
389
390   -v | -verbose | --verbose | --verbos | --verbo | --verb)
391     verbose=yes ;;
392
393   -version | --version | --versio | --versi | --vers | -V)
394     ac_init_version=: ;;
395
396   -with-* | --with-*)
397     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid package name: $ac_package" >&2
401    { (exit 1); exit 1; }; }
402     ac_package=`echo $ac_package| sed 's/-/_/g'`
403     case $ac_option in
404       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405       *) ac_optarg=yes ;;
406     esac
407     eval "with_$ac_package='$ac_optarg'" ;;
408
409   -without-* | --without-*)
410     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
411     # Reject names that are not valid shell variable names.
412     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413       { echo "$as_me: error: invalid package name: $ac_package" >&2
414    { (exit 1); exit 1; }; }
415     ac_package=`echo $ac_package | sed 's/-/_/g'`
416     eval "with_$ac_package=no" ;;
417
418   --x)
419     # Obsolete; use --with-x.
420     with_x=yes ;;
421
422   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423   | --x-incl | --x-inc | --x-in | --x-i)
424     ac_prev=x_includes ;;
425   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427     x_includes=$ac_optarg ;;
428
429   -x-libraries | --x-libraries | --x-librarie | --x-librari \
430   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431     ac_prev=x_libraries ;;
432   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434     x_libraries=$ac_optarg ;;
435
436   -*) { echo "$as_me: error: unrecognized option: $ac_option
437 Try \`$0 --help' for more information." >&2
438    { (exit 1); exit 1; }; }
439     ;;
440
441   *=*)
442     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
443     # Reject names that are not valid shell variable names.
444     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
445       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
446    { (exit 1); exit 1; }; }
447     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
448     eval "$ac_envvar='$ac_optarg'"
449     export $ac_envvar ;;
450
451   *)
452     # FIXME: should be removed in autoconf 3.0.
453     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
454     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
455       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
456     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
457     ;;
458
459   esac
460 done
461
462 if test -n "$ac_prev"; then
463   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
464   { echo "$as_me: error: missing argument to $ac_option" >&2
465    { (exit 1); exit 1; }; }
466 fi
467
468 # Be sure to have absolute paths.
469 for ac_var in exec_prefix prefix
470 do
471   eval ac_val=$`echo $ac_var`
472   case $ac_val in
473     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
474     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
475    { (exit 1); exit 1; }; };;
476   esac
477 done
478
479 # Be sure to have absolute paths.
480 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
481               localstatedir libdir includedir oldincludedir infodir mandir
482 do
483   eval ac_val=$`echo $ac_var`
484   case $ac_val in
485     [\\/$]* | ?:[\\/]* ) ;;
486     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
487    { (exit 1); exit 1; }; };;
488   esac
489 done
490
491 # There might be people who depend on the old broken behavior: `$host'
492 # used to hold the argument of --host etc.
493 build=$build_alias
494 host=$host_alias
495 target=$target_alias
496
497 # FIXME: should be removed in autoconf 3.0.
498 if test "x$host_alias" != x; then
499   if test "x$build_alias" = x; then
500     cross_compiling=maybe
501     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
502     If a cross compiler is detected then cross compile mode will be used." >&2
503   elif test "x$build_alias" != "x$host_alias"; then
504     cross_compiling=yes
505   fi
506 fi
507
508 ac_tool_prefix=
509 test -n "$host_alias" && ac_tool_prefix=$host_alias-
510
511 test "$silent" = yes && exec 6>/dev/null
512
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515   ac_srcdir_defaulted=yes
516   # Try the directory containing this script, then its parent.
517   ac_prog=$0
518   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
519   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520   srcdir=$ac_confdir
521   if test ! -r $srcdir/$ac_unique_file; then
522     srcdir=..
523   fi
524 else
525   ac_srcdir_defaulted=no
526 fi
527 if test ! -r $srcdir/$ac_unique_file; then
528   if test "$ac_srcdir_defaulted" = yes; then
529     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
530    { (exit 1); exit 1; }; }
531   else
532     { echo "$as_me: error: cannot find sources in $srcdir" >&2
533    { (exit 1); exit 1; }; }
534   fi
535 fi
536 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
537 ac_env_build_alias_set=${build_alias+set}
538 ac_env_build_alias_value=$build_alias
539 ac_cv_env_build_alias_set=${build_alias+set}
540 ac_cv_env_build_alias_value=$build_alias
541 ac_env_host_alias_set=${host_alias+set}
542 ac_env_host_alias_value=$host_alias
543 ac_cv_env_host_alias_set=${host_alias+set}
544 ac_cv_env_host_alias_value=$host_alias
545 ac_env_target_alias_set=${target_alias+set}
546 ac_env_target_alias_value=$target_alias
547 ac_cv_env_target_alias_set=${target_alias+set}
548 ac_cv_env_target_alias_value=$target_alias
549 ac_env_CC_set=${CC+set}
550 ac_env_CC_value=$CC
551 ac_cv_env_CC_set=${CC+set}
552 ac_cv_env_CC_value=$CC
553 ac_env_CFLAGS_set=${CFLAGS+set}
554 ac_env_CFLAGS_value=$CFLAGS
555 ac_cv_env_CFLAGS_set=${CFLAGS+set}
556 ac_cv_env_CFLAGS_value=$CFLAGS
557 ac_env_LDFLAGS_set=${LDFLAGS+set}
558 ac_env_LDFLAGS_value=$LDFLAGS
559 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
560 ac_cv_env_LDFLAGS_value=$LDFLAGS
561 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
562 ac_env_CPPFLAGS_value=$CPPFLAGS
563 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
564 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
565 ac_env_CPP_set=${CPP+set}
566 ac_env_CPP_value=$CPP
567 ac_cv_env_CPP_set=${CPP+set}
568 ac_cv_env_CPP_value=$CPP
569
570 #
571 # Report the --help message.
572 #
573 if test "$ac_init_help" = "long"; then
574   # Omit some internal or obsolete options to make the list less imposing.
575   # This message is too long to be a string in the A/UX 3.1 sh.
576   cat <<EOF
577 \`configure' configures this package to adapt to many kinds of systems.
578
579 Usage: $0 [OPTION]... [VAR=VALUE]...
580
581 To assign environment variables (e.g., CC, CFLAGS...), specify them as
582 VAR=VALUE.  See below for descriptions of some of the useful variables.
583
584 Defaults for the options are specified in brackets.
585
586 Configuration:
587   -h, --help              display this help and exit
588       --help=short        display options specific to this package
589       --help=recursive    display the short help of all the included packages
590   -V, --version           display version information and exit
591   -q, --quiet, --silent   do not print \`checking...' messages
592       --cache-file=FILE   cache test results in FILE [disabled]
593   -C, --config-cache      alias for \`--cache-file=config.cache'
594   -n, --no-create         do not create output files
595       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
596
597 EOF
598
599   cat <<EOF
600 Installation directories:
601   --prefix=PREFIX         install architecture-independent files in PREFIX
602                           [$ac_default_prefix]
603   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
604                           [PREFIX]
605
606 By default, \`make install' will install all the files in
607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
609 for instance \`--prefix=\$HOME'.
610
611 For better control, use the options below.
612
613 Fine tuning of the installation directories:
614   --bindir=DIR            user executables [EPREFIX/bin]
615   --sbindir=DIR           system admin executables [EPREFIX/sbin]
616   --libexecdir=DIR        program executables [EPREFIX/libexec]
617   --datarootdir=DIR       read-only architecture-independent data [PREFIX/share]
618   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
619   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
620   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
621   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
622   --libdir=DIR            object code libraries [EPREFIX/lib]
623   --includedir=DIR        C header files [PREFIX/include]
624   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
625   --infodir=DIR           info documentation [DATAROOTDIR/info]
626   --mandir=DIR            man documentation [DATAROOTDIR/man]
627 EOF
628
629   cat <<\EOF
630
631 Program names:
632   --program-prefix=PREFIX            prepend PREFIX to installed program names
633   --program-suffix=SUFFIX            append SUFFIX to installed program names
634   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
635
636 System types:
637   --build=BUILD           configure for building on BUILD [guessed]
638   --host=HOST       build programs to run on HOST [BUILD]
639   --target=TARGET   configure for building compilers for TARGET [HOST]
640 EOF
641 fi
642
643 if test -n "$ac_init_help"; then
644
645   cat <<\EOF
646
647 Optional Packages:
648   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
649   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
650
651 Optional Features:
652   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
653   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
654
655   --with-system-type=XXX  test: override derived host system-type
656   --with-pkg-config{=path} enable/disable use of pkg-config
657   --with-pkg-config-libdir=XXX use given directory for installing pc-files
658   --enable-pc-files       generate and install .pc files for pkg-config
659   --without-tests         suppress build with test-programs
660   --enable-mixed-case     tic should assume mixed-case filenames
661   --with-install-prefix   prefixes actual install-location ($DESTDIR)
662 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
663   --with-build-cc=XXX     the build C compiler ($BUILD_CC)
664   --with-build-cpp=XXX    the build C preprocessor ($BUILD_CPP)
665   --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
666   --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
667   --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
668   --with-build-libs=XXX   the build libraries (${BUILD_LIBS})
669 Options to Specify the Libraries Built/Used:
670   --with-shared           generate shared C-objects (needed for --with-ada-sharedlib)
671   --enable-widec          compile with wide-char/UTF-8 code
672   --with-curses-dir=DIR   directory in which (n)curses is installed
673   --with-lib-prefix       override library-prefix
674   --with-shlib-version=X  Specify rel or abi version for shared libs
675   --enable-rpath-link     link sample programs with rpath option
676 Fine-Tuning Your Configuration:
677   --enable-broken_linker  compile with broken-linker support code
678   --disable-largefile     omit support for large files
679   --with-rcs-ids          compile-in RCS identifiers
680 Extensions:
681   --disable-ext-funcs     disable function-extensions
682   --enable-const          compile with extra/non-standard const
683 Development Code:
684   --without-develop       disable development options
685 Experimental Code:
686   --with-pthread          use POSIX thread library
687   --enable-weak-symbols   enable weak-symbols for pthreads
688   --enable-reentrant      compile with experimental reentrant code
689   --with-wrap-prefix=XXX  override prefix used for public variables
690 Testing/development Options:
691   --disable-echo          do not display "compiling" commands
692   --enable-warnings       build: turn on GCC compiler warnings
693   --enable-assertions     test: turn on generation of assertion code
694   --enable-expanded       test: generate functions for certain macros
695   --disable-macros        test: use functions rather than macros
696   --with-trace            test: add trace() function to all models of ncurses
697 Ada95 Binding Options:
698   --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
699   --with-ada-include=DIR  Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
700   --with-ada-objects=DIR  Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
701   --with-ada-sharedlib=XX build Ada95 shared-library
702
703 Some influential environment variables:
704   CC          C compiler command
705   CFLAGS      C compiler flags
706   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
707               nonstandard directory <lib dir>
708   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
709               headers in a nonstandard directory <include dir>
710   CPP         C preprocessor
711
712 Use these variables to override the choices made by `configure' or to help
713 it to find libraries and programs with nonstandard names/locations.
714
715 EOF
716 fi
717
718 if test "$ac_init_help" = "recursive"; then
719   # If there are subdirs, report their specific --help.
720   ac_popdir=`pwd`
721   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
722     cd $ac_subdir
723     # A "../" for each directory in /$ac_subdir.
724     ac_dots=`echo $ac_subdir |
725              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
726
727     case $srcdir in
728     .) # No --srcdir option.  We are building in place.
729       ac_sub_srcdir=$srcdir ;;
730     [\\/]* | ?:[\\/]* ) # Absolute path.
731       ac_sub_srcdir=$srcdir/$ac_subdir ;;
732     *) # Relative path.
733       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
734     esac
735
736     # Check for guested configure; otherwise get Cygnus style configure.
737     if test -f $ac_sub_srcdir/configure.gnu; then
738       echo
739       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
740     elif test -f $ac_sub_srcdir/configure; then
741       echo
742       $SHELL $ac_sub_srcdir/configure  --help=recursive
743     elif test -f $ac_sub_srcdir/configure.ac ||
744            test -f $ac_sub_srcdir/configure.in; then
745       echo
746       $ac_configure --help
747     else
748       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
749     fi
750     cd $ac_popdir
751   done
752 fi
753
754 test -n "$ac_init_help" && exit 0
755 if $ac_init_version; then
756   cat <<\EOF
757
758 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
759 Free Software Foundation, Inc.
760 This configure script is free software; the Free Software Foundation
761 gives unlimited permission to copy, distribute and modify it.
762 EOF
763   exit 0
764 fi
765 exec 5>config.log
766 cat >&5 <<EOF
767 This file contains any messages produced by compilers while
768 running configure, to aid debugging if configure makes a mistake.
769
770 It was created by $as_me, which was
771 generated by GNU Autoconf 2.52.20121002.  Invocation command line was
772
773   $ $0 $@
774
775 EOF
776 {
777 cat <<_ASUNAME
778 ## ---------- ##
779 ## Platform.  ##
780 ## ---------- ##
781
782 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
783 uname -m = `(uname -m) 2>/dev/null || echo unknown`
784 uname -r = `(uname -r) 2>/dev/null || echo unknown`
785 uname -s = `(uname -s) 2>/dev/null || echo unknown`
786 uname -v = `(uname -v) 2>/dev/null || echo unknown`
787
788 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
789 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
790
791 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
792 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
793 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
794 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
795 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
796 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
797 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
798
799 PATH = $PATH
800
801 _ASUNAME
802 } >&5
803
804 cat >&5 <<EOF
805 ## ------------ ##
806 ## Core tests.  ##
807 ## ------------ ##
808
809 EOF
810
811 # Keep a trace of the command line.
812 # Strip out --no-create and --no-recursion so they do not pile up.
813 # Also quote any args containing shell meta-characters.
814 ac_configure_args=
815 ac_sep=
816 for ac_arg
817 do
818   case $ac_arg in
819   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
820   | --no-cr | --no-c) ;;
821   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
822   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
823   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
824     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
825     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
826     ac_sep=" " ;;
827   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
828      ac_sep=" " ;;
829   esac
830   # Get rid of the leading space.
831 done
832
833 # When interrupted or exit'd, cleanup temporary files, and complete
834 # config.log.  We remove comments because anyway the quotes in there
835 # would cause problems or look ugly.
836 trap 'exit_status=$?
837   # Save into config.log some information that might help in debugging.
838   echo >&5
839   echo "## ----------------- ##" >&5
840   echo "## Cache variables.  ##" >&5
841   echo "## ----------------- ##" >&5
842   echo >&5
843   # The following way of writing the cache mishandles newlines in values,
844 {
845   (set) 2>&1 |
846     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
847     *ac_space=\ *)
848       sed -n \
849         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
850           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
851       ;;
852     *)
853       sed -n \
854         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
855       ;;
856     esac;
857 } >&5
858   sed "/^$/d" confdefs.h >conftest.log
859   if test -s conftest.log; then
860     echo >&5
861     echo "## ------------ ##" >&5
862     echo "## confdefs.h.  ##" >&5
863     echo "## ------------ ##" >&5
864     echo >&5
865     cat conftest.log >&5
866   fi
867   (echo; echo) >&5
868   test "$ac_signal" != 0 &&
869     echo "$as_me: caught signal $ac_signal" >&5
870   echo "$as_me: exit $exit_status" >&5
871   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
872     exit $exit_status
873      ' 0
874 for ac_signal in 1 2 13 15; do
875   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
876 done
877 ac_signal=0
878
879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
880 rm -rf conftest* confdefs.h
881 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
882 echo >confdefs.h
883
884 # Let the site file select an alternate cache file if it wants to.
885 # Prefer explicitly selected file to automatically selected ones.
886 if test -z "$CONFIG_SITE"; then
887   if test "x$prefix" != xNONE; then
888     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
889   else
890     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
891   fi
892 fi
893 for ac_site_file in $CONFIG_SITE; do
894   if test -r "$ac_site_file"; then
895     { echo "$as_me:895: loading site script $ac_site_file" >&5
896 echo "$as_me: loading site script $ac_site_file" >&6;}
897     cat "$ac_site_file" >&5
898     . "$ac_site_file"
899   fi
900 done
901
902 if test -r "$cache_file"; then
903   # Some versions of bash will fail to source /dev/null (special
904   # files actually), so we avoid doing that.
905   if test -f "$cache_file"; then
906     { echo "$as_me:906: loading cache $cache_file" >&5
907 echo "$as_me: loading cache $cache_file" >&6;}
908     case $cache_file in
909       [\\/]* | ?:[\\/]* ) . $cache_file;;
910       *)                      . ./$cache_file;;
911     esac
912   fi
913 else
914   { echo "$as_me:914: creating cache $cache_file" >&5
915 echo "$as_me: creating cache $cache_file" >&6;}
916   >$cache_file
917 fi
918
919 # Check that the precious variables saved in the cache have kept the same
920 # value.
921 ac_cache_corrupted=false
922 for ac_var in `(set) 2>&1 |
923                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
924   eval ac_old_set=\$ac_cv_env_${ac_var}_set
925   eval ac_new_set=\$ac_env_${ac_var}_set
926   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
927   eval ac_new_val="\$ac_env_${ac_var}_value"
928   case $ac_old_set,$ac_new_set in
929     set,)
930       { echo "$as_me:930: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
931 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
932       ac_cache_corrupted=: ;;
933     ,set)
934       { echo "$as_me:934: error: \`$ac_var' was not set in the previous run" >&5
935 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
936       ac_cache_corrupted=: ;;
937     ,);;
938     *)
939       if test "x$ac_old_val" != "x$ac_new_val"; then
940         { echo "$as_me:940: error: \`$ac_var' has changed since the previous run:" >&5
941 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
942         { echo "$as_me:942:   former value:  $ac_old_val" >&5
943 echo "$as_me:   former value:  $ac_old_val" >&2;}
944         { echo "$as_me:944:   current value: $ac_new_val" >&5
945 echo "$as_me:   current value: $ac_new_val" >&2;}
946         ac_cache_corrupted=:
947       fi;;
948   esac
949   # Pass precious variables to config.status.  It doesn't matter if
950   # we pass some twice (in addition to the command line arguments).
951   if test "$ac_new_set" = set; then
952     case $ac_new_val in
953     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
954       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
955       ac_configure_args="$ac_configure_args '$ac_arg'"
956       ;;
957     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
958        ;;
959     esac
960   fi
961 done
962 if $ac_cache_corrupted; then
963   { echo "$as_me:963: error: changes in the environment can compromise the build" >&5
964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
965   { { echo "$as_me:965: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
967    { (exit 1); exit 1; }; }
968 fi
969
970 ac_ext=c
971 ac_cpp='$CPP $CPPFLAGS'
972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
975 ac_main_return=return
976
977 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
978   *c*,-n*) ECHO_N= ECHO_C='
979 ' ECHO_T='      ' ;;
980   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
982 esac
983 echo "#! $SHELL" >conftest.sh
984 echo  "exit 0"   >>conftest.sh
985 chmod +x conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987   (PATH=".;."; conftest.sh) 2>&5
988   ac_status=$?
989   echo "$as_me:989: \$? = $ac_status" >&5
990   (exit $ac_status); }; then
991   ac_path_separator=';'
992 else
993   ac_path_separator=:
994 fi
995 PATH_SEPARATOR="$ac_path_separator"
996 rm -f conftest.sh
997
998 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
999
1000 top_builddir=`pwd`
1001
1002 ac_aux_dir=
1003 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1004   if test -f $ac_dir/install-sh; then
1005     ac_aux_dir=$ac_dir
1006     ac_install_sh="$ac_aux_dir/install-sh -c"
1007     break
1008   elif test -f $ac_dir/install.sh; then
1009     ac_aux_dir=$ac_dir
1010     ac_install_sh="$ac_aux_dir/install.sh -c"
1011     break
1012   elif test -f $ac_dir/shtool; then
1013     ac_aux_dir=$ac_dir
1014     ac_install_sh="$ac_aux_dir/shtool install -c"
1015     break
1016   fi
1017 done
1018 if test -z "$ac_aux_dir"; then
1019   { { echo "$as_me:1019: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1020 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1021    { (exit 1); exit 1; }; }
1022 fi
1023 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1024 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1025 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1026
1027 # Make sure we can run config.sub.
1028 $ac_config_sub sun4 >/dev/null 2>&1 ||
1029   { { echo "$as_me:1029: error: cannot run $ac_config_sub" >&5
1030 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1031    { (exit 1); exit 1; }; }
1032
1033 echo "$as_me:1033: checking build system type" >&5
1034 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1035 if test "${ac_cv_build+set}" = set; then
1036   echo $ECHO_N "(cached) $ECHO_C" >&6
1037 else
1038   ac_cv_build_alias=$build_alias
1039 test -z "$ac_cv_build_alias" &&
1040   ac_cv_build_alias=`$ac_config_guess`
1041 test -z "$ac_cv_build_alias" &&
1042   { { echo "$as_me:1042: error: cannot guess build type; you must specify one" >&5
1043 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1044    { (exit 1); exit 1; }; }
1045 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1046   { { echo "$as_me:1046: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1047 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1048    { (exit 1); exit 1; }; }
1049
1050 fi
1051 echo "$as_me:1051: result: $ac_cv_build" >&5
1052 echo "${ECHO_T}$ac_cv_build" >&6
1053 build=$ac_cv_build
1054 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057
1058 echo "$as_me:1058: checking host system type" >&5
1059 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1060 if test "${ac_cv_host+set}" = set; then
1061   echo $ECHO_N "(cached) $ECHO_C" >&6
1062 else
1063   ac_cv_host_alias=$host_alias
1064 test -z "$ac_cv_host_alias" &&
1065   ac_cv_host_alias=$ac_cv_build_alias
1066 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1067   { { echo "$as_me:1067: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1068 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1069    { (exit 1); exit 1; }; }
1070
1071 fi
1072 echo "$as_me:1072: result: $ac_cv_host" >&5
1073 echo "${ECHO_T}$ac_cv_host" >&6
1074 host=$ac_cv_host
1075 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1076 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1077 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1078
1079 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1080         echo "$as_me:1080: checking target system type" >&5
1081 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1082 if test "${ac_cv_target+set}" = set; then
1083   echo $ECHO_N "(cached) $ECHO_C" >&6
1084 else
1085   ac_cv_target_alias=$target_alias
1086 test "x$ac_cv_target_alias" = "x" &&
1087   ac_cv_target_alias=$ac_cv_host_alias
1088 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1089   { { echo "$as_me:1089: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1090 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1091    { (exit 1); exit 1; }; }
1092
1093 fi
1094 echo "$as_me:1094: result: $ac_cv_target" >&5
1095 echo "${ECHO_T}$ac_cv_target" >&6
1096 target=$ac_cv_target
1097 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1098 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1099 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1100
1101 # The aliases save the names the user supplied, while $host etc.
1102 # will get canonicalized.
1103 test -n "$target_alias" &&
1104   test "$program_prefix$program_suffix$program_transform_name" = \
1105     NONENONEs,x,x, &&
1106   program_prefix=${target_alias}-
1107         system_name="$host_os"
1108 else
1109         system_name="`(uname -s -r) 2>/dev/null`"
1110         if test -z "$system_name" ; then
1111                 system_name="`(hostname) 2>/dev/null`"
1112         fi
1113 fi
1114 test -n "$system_name" &&
1115 cat >>confdefs.h <<EOF
1116 #define SYSTEM_NAME "$system_name"
1117 EOF
1118
1119 if test "${cf_cv_system_name+set}" = set; then
1120   echo $ECHO_N "(cached) $ECHO_C" >&6
1121 else
1122   cf_cv_system_name="$system_name"
1123 fi
1124
1125 test -z "$system_name" && system_name="$cf_cv_system_name"
1126 test -n "$cf_cv_system_name" && echo "$as_me:1126: result: Configuring for $cf_cv_system_name" >&5
1127 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1128
1129 if test ".$system_name" != ".$cf_cv_system_name" ; then
1130         echo "$as_me:1130: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1131 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1132         { { echo "$as_me:1132: error: \"Please remove config.cache and try again.\"" >&5
1133 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1134    { (exit 1); exit 1; }; }
1135 fi
1136
1137 # Check whether --with-system-type or --without-system-type was given.
1138 if test "${with_system_type+set}" = set; then
1139   withval="$with_system_type"
1140   { echo "$as_me:1140: WARNING: overriding system type to $withval" >&5
1141 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1142  cf_cv_system_name=$withval
1143 fi;
1144
1145 ###     Save the given $CFLAGS to allow user-override.
1146 cf_user_CFLAGS="$CFLAGS"
1147
1148 ###     Default install-location
1149
1150 echo "$as_me:1150: checking for prefix" >&5
1151 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1152 if test "x$prefix" = "xNONE" ; then
1153         case "$cf_cv_system_name" in
1154                 # non-vendor systems don't have a conflict
1155         openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1156                 prefix=/usr
1157                 ;;
1158         *)      prefix=$ac_default_prefix
1159                 ;;
1160         esac
1161 fi
1162 echo "$as_me:1162: result: $prefix" >&5
1163 echo "${ECHO_T}$prefix" >&6
1164
1165 if test "x$prefix" = "xNONE" ; then
1166 echo "$as_me:1166: checking for default include-directory" >&5
1167 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1168 test -n "$verbose" && echo 1>&6
1169 for cf_symbol in \
1170         $includedir \
1171         $includedir/ncurses \
1172         $prefix/include \
1173         $prefix/include/ncurses \
1174         /usr/local/include \
1175         /usr/local/include/ncurses \
1176         /usr/include \
1177         /usr/include/ncurses
1178 do
1179         cf_dir=`eval echo $cf_symbol`
1180         if test -f $cf_dir/curses.h ; then
1181         if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1182                 includedir="$cf_symbol"
1183                 test -n "$verbose"  && echo $ac_n "     found " 1>&6
1184                 break
1185         fi
1186         fi
1187         test -n "$verbose"  && echo "   tested $cf_dir" 1>&6
1188 done
1189 echo "$as_me:1189: result: $includedir" >&5
1190 echo "${ECHO_T}$includedir" >&6
1191 fi
1192
1193 ###     Checks for programs.
1194
1195 ac_ext=c
1196 ac_cpp='$CPP $CPPFLAGS'
1197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1200 ac_main_return=return
1201 if test -n "$ac_tool_prefix"; then
1202   for ac_prog in gnatgcc gcc cc
1203   do
1204     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1206 echo "$as_me:1206: checking for $ac_word" >&5
1207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1208 if test "${ac_cv_prog_CC+set}" = set; then
1209   echo $ECHO_N "(cached) $ECHO_C" >&6
1210 else
1211   if test -n "$CC"; then
1212   ac_cv_prog_CC="$CC" # Let the user override the test.
1213 else
1214   ac_save_IFS=$IFS; IFS=$ac_path_separator
1215 ac_dummy="$PATH"
1216 for ac_dir in $ac_dummy; do
1217   IFS=$ac_save_IFS
1218   test -z "$ac_dir" && ac_dir=.
1219   $as_executable_p "$ac_dir/$ac_word" || continue
1220 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1221 echo "$as_me:1221: found $ac_dir/$ac_word" >&5
1222 break
1223 done
1224
1225 fi
1226 fi
1227 CC=$ac_cv_prog_CC
1228 if test -n "$CC"; then
1229   echo "$as_me:1229: result: $CC" >&5
1230 echo "${ECHO_T}$CC" >&6
1231 else
1232   echo "$as_me:1232: result: no" >&5
1233 echo "${ECHO_T}no" >&6
1234 fi
1235
1236     test -n "$CC" && break
1237   done
1238 fi
1239 if test -z "$CC"; then
1240   ac_ct_CC=$CC
1241   for ac_prog in gnatgcc gcc cc
1242 do
1243   # Extract the first word of "$ac_prog", so it can be a program name with args.
1244 set dummy $ac_prog; ac_word=$2
1245 echo "$as_me:1245: checking for $ac_word" >&5
1246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1248   echo $ECHO_N "(cached) $ECHO_C" >&6
1249 else
1250   if test -n "$ac_ct_CC"; then
1251   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1252 else
1253   ac_save_IFS=$IFS; IFS=$ac_path_separator
1254 ac_dummy="$PATH"
1255 for ac_dir in $ac_dummy; do
1256   IFS=$ac_save_IFS
1257   test -z "$ac_dir" && ac_dir=.
1258   $as_executable_p "$ac_dir/$ac_word" || continue
1259 ac_cv_prog_ac_ct_CC="$ac_prog"
1260 echo "$as_me:1260: found $ac_dir/$ac_word" >&5
1261 break
1262 done
1263
1264 fi
1265 fi
1266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1267 if test -n "$ac_ct_CC"; then
1268   echo "$as_me:1268: result: $ac_ct_CC" >&5
1269 echo "${ECHO_T}$ac_ct_CC" >&6
1270 else
1271   echo "$as_me:1271: result: no" >&5
1272 echo "${ECHO_T}no" >&6
1273 fi
1274
1275   test -n "$ac_ct_CC" && break
1276 done
1277
1278   CC=$ac_ct_CC
1279 fi
1280
1281 test -z "$CC" && { { echo "$as_me:1281: error: no acceptable cc found in \$PATH" >&5
1282 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1283    { (exit 1); exit 1; }; }
1284
1285 # Provide some information about the compiler.
1286 echo "$as_me:1286:" \
1287      "checking for C compiler version" >&5
1288 ac_compiler=`set X $ac_compile; echo $2`
1289 { (eval echo "$as_me:1289: \"$ac_compiler --version </dev/null >&5\"") >&5
1290   (eval $ac_compiler --version </dev/null >&5) 2>&5
1291   ac_status=$?
1292   echo "$as_me:1292: \$? = $ac_status" >&5
1293   (exit $ac_status); }
1294 { (eval echo "$as_me:1294: \"$ac_compiler -v </dev/null >&5\"") >&5
1295   (eval $ac_compiler -v </dev/null >&5) 2>&5
1296   ac_status=$?
1297   echo "$as_me:1297: \$? = $ac_status" >&5
1298   (exit $ac_status); }
1299 { (eval echo "$as_me:1299: \"$ac_compiler -V </dev/null >&5\"") >&5
1300   (eval $ac_compiler -V </dev/null >&5) 2>&5
1301   ac_status=$?
1302   echo "$as_me:1302: \$? = $ac_status" >&5
1303   (exit $ac_status); }
1304
1305 cat >conftest.$ac_ext <<_ACEOF
1306 #line 1306 "configure"
1307 #include "confdefs.h"
1308
1309 int
1310 main ()
1311 {
1312
1313   ;
1314   return 0;
1315 }
1316 _ACEOF
1317 ac_clean_files_save=$ac_clean_files
1318 ac_clean_files="$ac_clean_files a.out a.exe"
1319 # Try to create an executable without -o first, disregard a.out.
1320 # It will help us diagnose broken compilers, and finding out an intuition
1321 # of exeext.
1322 echo "$as_me:1322: checking for C compiler default output" >&5
1323 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1324 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1325 if { (eval echo "$as_me:1325: \"$ac_link_default\"") >&5
1326   (eval $ac_link_default) 2>&5
1327   ac_status=$?
1328   echo "$as_me:1328: \$? = $ac_status" >&5
1329   (exit $ac_status); }; then
1330   # Find the output, starting from the most likely.  This scheme is
1331 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1332 # resort.
1333 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1334                 ls a.out conftest 2>/dev/null;
1335                 ls a.* conftest.* 2>/dev/null`; do
1336   case $ac_file in
1337     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1338     a.out ) # We found the default executable, but exeext='' is most
1339             # certainly right.
1340             break;;
1341     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1342           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1343           export ac_cv_exeext
1344           break;;
1345     * ) break;;
1346   esac
1347 done
1348 else
1349   echo "$as_me: failed program was:" >&5
1350 cat conftest.$ac_ext >&5
1351 { { echo "$as_me:1351: error: C compiler cannot create executables" >&5
1352 echo "$as_me: error: C compiler cannot create executables" >&2;}
1353    { (exit 77); exit 77; }; }
1354 fi
1355
1356 ac_exeext=$ac_cv_exeext
1357 echo "$as_me:1357: result: $ac_file" >&5
1358 echo "${ECHO_T}$ac_file" >&6
1359
1360 # Check the compiler produces executables we can run.  If not, either
1361 # the compiler is broken, or we cross compile.
1362 echo "$as_me:1362: checking whether the C compiler works" >&5
1363 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1364 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1365 # If not cross compiling, check that we can run a simple program.
1366 if test "$cross_compiling" != yes; then
1367   if { ac_try='./$ac_file'
1368   { (eval echo "$as_me:1368: \"$ac_try\"") >&5
1369   (eval $ac_try) 2>&5
1370   ac_status=$?
1371   echo "$as_me:1371: \$? = $ac_status" >&5
1372   (exit $ac_status); }; }; then
1373     cross_compiling=no
1374   else
1375     if test "$cross_compiling" = maybe; then
1376         cross_compiling=yes
1377     else
1378         { { echo "$as_me:1378: error: cannot run C compiled programs.
1379 If you meant to cross compile, use \`--host'." >&5
1380 echo "$as_me: error: cannot run C compiled programs.
1381 If you meant to cross compile, use \`--host'." >&2;}
1382    { (exit 1); exit 1; }; }
1383     fi
1384   fi
1385 fi
1386 echo "$as_me:1386: result: yes" >&5
1387 echo "${ECHO_T}yes" >&6
1388
1389 rm -f a.out a.exe conftest$ac_cv_exeext
1390 ac_clean_files=$ac_clean_files_save
1391 # Check the compiler produces executables we can run.  If not, either
1392 # the compiler is broken, or we cross compile.
1393 echo "$as_me:1393: checking whether we are cross compiling" >&5
1394 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1395 echo "$as_me:1395: result: $cross_compiling" >&5
1396 echo "${ECHO_T}$cross_compiling" >&6
1397
1398 echo "$as_me:1398: checking for executable suffix" >&5
1399 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1400 if { (eval echo "$as_me:1400: \"$ac_link\"") >&5
1401   (eval $ac_link) 2>&5
1402   ac_status=$?
1403   echo "$as_me:1403: \$? = $ac_status" >&5
1404   (exit $ac_status); }; then
1405   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1406 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1407 # work properly (i.e., refer to `conftest.exe'), while it won't with
1408 # `rm'.
1409 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1410   case $ac_file in
1411     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1412     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1413           export ac_cv_exeext
1414           break;;
1415     * ) break;;
1416   esac
1417 done
1418 else
1419   { { echo "$as_me:1419: error: cannot compute EXEEXT: cannot compile and link" >&5
1420 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1421    { (exit 1); exit 1; }; }
1422 fi
1423
1424 rm -f conftest$ac_cv_exeext
1425 echo "$as_me:1425: result: $ac_cv_exeext" >&5
1426 echo "${ECHO_T}$ac_cv_exeext" >&6
1427
1428 rm -f conftest.$ac_ext
1429 EXEEXT=$ac_cv_exeext
1430 ac_exeext=$EXEEXT
1431 echo "$as_me:1431: checking for object suffix" >&5
1432 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1433 if test "${ac_cv_objext+set}" = set; then
1434   echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436   cat >conftest.$ac_ext <<_ACEOF
1437 #line 1437 "configure"
1438 #include "confdefs.h"
1439
1440 int
1441 main ()
1442 {
1443
1444   ;
1445   return 0;
1446 }
1447 _ACEOF
1448 rm -f conftest.o conftest.obj
1449 if { (eval echo "$as_me:1449: \"$ac_compile\"") >&5
1450   (eval $ac_compile) 2>&5
1451   ac_status=$?
1452   echo "$as_me:1452: \$? = $ac_status" >&5
1453   (exit $ac_status); }; then
1454   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1455   case $ac_file in
1456     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1457     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1458        break;;
1459   esac
1460 done
1461 else
1462   echo "$as_me: failed program was:" >&5
1463 cat conftest.$ac_ext >&5
1464 { { echo "$as_me:1464: error: cannot compute OBJEXT: cannot compile" >&5
1465 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1466    { (exit 1); exit 1; }; }
1467 fi
1468
1469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1470 fi
1471 echo "$as_me:1471: result: $ac_cv_objext" >&5
1472 echo "${ECHO_T}$ac_cv_objext" >&6
1473 OBJEXT=$ac_cv_objext
1474 ac_objext=$OBJEXT
1475 echo "$as_me:1475: checking whether we are using the GNU C compiler" >&5
1476 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1477 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1478   echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480   cat >conftest.$ac_ext <<_ACEOF
1481 #line 1481 "configure"
1482 #include "confdefs.h"
1483
1484 int
1485 main ()
1486 {
1487 #ifndef __GNUC__
1488        choke me
1489 #endif
1490
1491   ;
1492   return 0;
1493 }
1494 _ACEOF
1495 rm -f conftest.$ac_objext
1496 if { (eval echo "$as_me:1496: \"$ac_compile\"") >&5
1497   (eval $ac_compile) 2>&5
1498   ac_status=$?
1499   echo "$as_me:1499: \$? = $ac_status" >&5
1500   (exit $ac_status); } &&
1501          { ac_try='test -s conftest.$ac_objext'
1502   { (eval echo "$as_me:1502: \"$ac_try\"") >&5
1503   (eval $ac_try) 2>&5
1504   ac_status=$?
1505   echo "$as_me:1505: \$? = $ac_status" >&5
1506   (exit $ac_status); }; }; then
1507   ac_compiler_gnu=yes
1508 else
1509   echo "$as_me: failed program was:" >&5
1510 cat conftest.$ac_ext >&5
1511 ac_compiler_gnu=no
1512 fi
1513 rm -f conftest.$ac_objext conftest.$ac_ext
1514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1515
1516 fi
1517 echo "$as_me:1517: result: $ac_cv_c_compiler_gnu" >&5
1518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1519 GCC=`test $ac_compiler_gnu = yes && echo yes`
1520 ac_test_CFLAGS=${CFLAGS+set}
1521 ac_save_CFLAGS=$CFLAGS
1522 CFLAGS="-g"
1523 echo "$as_me:1523: checking whether $CC accepts -g" >&5
1524 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1525 if test "${ac_cv_prog_cc_g+set}" = set; then
1526   echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528   cat >conftest.$ac_ext <<_ACEOF
1529 #line 1529 "configure"
1530 #include "confdefs.h"
1531
1532 int
1533 main ()
1534 {
1535
1536   ;
1537   return 0;
1538 }
1539 _ACEOF
1540 rm -f conftest.$ac_objext
1541 if { (eval echo "$as_me:1541: \"$ac_compile\"") >&5
1542   (eval $ac_compile) 2>&5
1543   ac_status=$?
1544   echo "$as_me:1544: \$? = $ac_status" >&5
1545   (exit $ac_status); } &&
1546          { ac_try='test -s conftest.$ac_objext'
1547   { (eval echo "$as_me:1547: \"$ac_try\"") >&5
1548   (eval $ac_try) 2>&5
1549   ac_status=$?
1550   echo "$as_me:1550: \$? = $ac_status" >&5
1551   (exit $ac_status); }; }; then
1552   ac_cv_prog_cc_g=yes
1553 else
1554   echo "$as_me: failed program was:" >&5
1555 cat conftest.$ac_ext >&5
1556 ac_cv_prog_cc_g=no
1557 fi
1558 rm -f conftest.$ac_objext conftest.$ac_ext
1559 fi
1560 echo "$as_me:1560: result: $ac_cv_prog_cc_g" >&5
1561 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1562 if test "$ac_test_CFLAGS" = set; then
1563   CFLAGS=$ac_save_CFLAGS
1564 elif test $ac_cv_prog_cc_g = yes; then
1565   if test "$GCC" = yes; then
1566     CFLAGS="-g -O2"
1567   else
1568     CFLAGS="-g"
1569   fi
1570 else
1571   if test "$GCC" = yes; then
1572     CFLAGS="-O2"
1573   else
1574     CFLAGS=
1575   fi
1576 fi
1577 # Some people use a C++ compiler to compile C.  Since we use `exit',
1578 # in C++ we need to declare it.  In case someone uses the same compiler
1579 # for both compiling C and C++ we need to have the C++ compiler decide
1580 # the declaration of exit, since it's the most demanding environment.
1581 cat >conftest.$ac_ext <<_ACEOF
1582 #ifndef __cplusplus
1583   choke me
1584 #endif
1585 _ACEOF
1586 rm -f conftest.$ac_objext
1587 if { (eval echo "$as_me:1587: \"$ac_compile\"") >&5
1588   (eval $ac_compile) 2>&5
1589   ac_status=$?
1590   echo "$as_me:1590: \$? = $ac_status" >&5
1591   (exit $ac_status); } &&
1592          { ac_try='test -s conftest.$ac_objext'
1593   { (eval echo "$as_me:1593: \"$ac_try\"") >&5
1594   (eval $ac_try) 2>&5
1595   ac_status=$?
1596   echo "$as_me:1596: \$? = $ac_status" >&5
1597   (exit $ac_status); }; }; then
1598   for ac_declaration in \
1599    ''\
1600    '#include <stdlib.h>' \
1601    'extern "C" void std::exit (int) throw (); using std::exit;' \
1602    'extern "C" void std::exit (int); using std::exit;' \
1603    'extern "C" void exit (int) throw ();' \
1604    'extern "C" void exit (int);' \
1605    'void exit (int);'
1606 do
1607   cat >conftest.$ac_ext <<_ACEOF
1608 #line 1608 "configure"
1609 #include "confdefs.h"
1610 #include <stdlib.h>
1611 $ac_declaration
1612 int
1613 main ()
1614 {
1615 exit (42);
1616   ;
1617   return 0;
1618 }
1619 _ACEOF
1620 rm -f conftest.$ac_objext
1621 if { (eval echo "$as_me:1621: \"$ac_compile\"") >&5
1622   (eval $ac_compile) 2>&5
1623   ac_status=$?
1624   echo "$as_me:1624: \$? = $ac_status" >&5
1625   (exit $ac_status); } &&
1626          { ac_try='test -s conftest.$ac_objext'
1627   { (eval echo "$as_me:1627: \"$ac_try\"") >&5
1628   (eval $ac_try) 2>&5
1629   ac_status=$?
1630   echo "$as_me:1630: \$? = $ac_status" >&5
1631   (exit $ac_status); }; }; then
1632   :
1633 else
1634   echo "$as_me: failed program was:" >&5
1635 cat conftest.$ac_ext >&5
1636 continue
1637 fi
1638 rm -f conftest.$ac_objext conftest.$ac_ext
1639   cat >conftest.$ac_ext <<_ACEOF
1640 #line 1640 "configure"
1641 #include "confdefs.h"
1642 $ac_declaration
1643 int
1644 main ()
1645 {
1646 exit (42);
1647   ;
1648   return 0;
1649 }
1650 _ACEOF
1651 rm -f conftest.$ac_objext
1652 if { (eval echo "$as_me:1652: \"$ac_compile\"") >&5
1653   (eval $ac_compile) 2>&5
1654   ac_status=$?
1655   echo "$as_me:1655: \$? = $ac_status" >&5
1656   (exit $ac_status); } &&
1657          { ac_try='test -s conftest.$ac_objext'
1658   { (eval echo "$as_me:1658: \"$ac_try\"") >&5
1659   (eval $ac_try) 2>&5
1660   ac_status=$?
1661   echo "$as_me:1661: \$? = $ac_status" >&5
1662   (exit $ac_status); }; }; then
1663   break
1664 else
1665   echo "$as_me: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1667 fi
1668 rm -f conftest.$ac_objext conftest.$ac_ext
1669 done
1670 rm -rf conftest*
1671 if test -n "$ac_declaration"; then
1672   echo '#ifdef __cplusplus' >>confdefs.h
1673   echo $ac_declaration      >>confdefs.h
1674   echo '#endif'             >>confdefs.h
1675 fi
1676
1677 else
1678   echo "$as_me: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1680 fi
1681 rm -f conftest.$ac_objext conftest.$ac_ext
1682 ac_ext=c
1683 ac_cpp='$CPP $CPPFLAGS'
1684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1687 ac_main_return=return
1688
1689 GCC_VERSION=none
1690 if test "$GCC" = yes ; then
1691         echo "$as_me:1691: checking version of $CC" >&5
1692 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1693         GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1694         test -z "$GCC_VERSION" && GCC_VERSION=unknown
1695         echo "$as_me:1695: result: $GCC_VERSION" >&5
1696 echo "${ECHO_T}$GCC_VERSION" >&6
1697 fi
1698
1699 echo "$as_me:1699: checking for $CC option to accept ANSI C" >&5
1700 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1701 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1702   echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704   ac_cv_prog_cc_stdc=no
1705 ac_save_CC=$CC
1706 cat >conftest.$ac_ext <<_ACEOF
1707 #line 1707 "configure"
1708 #include "confdefs.h"
1709 #include <stdarg.h>
1710 #include <stdio.h>
1711 #include <sys/types.h>
1712 #include <sys/stat.h>
1713 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1714 struct buf { int x; };
1715 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1716 static char *e (p, i)
1717      char **p;
1718      int i;
1719 {
1720   return p[i];
1721 }
1722 static char *f (char * (*g) (char **, int), char **p, ...)
1723 {
1724   char *s;
1725   va_list v;
1726   va_start (v,p);
1727   s = g (p, va_arg (v,int));
1728   va_end (v);
1729   return s;
1730 }
1731 int test (int i, double x);
1732 struct s1 {int (*f) (int a);};
1733 struct s2 {int (*f) (double a);};
1734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1735 int argc;
1736 char **argv;
1737 int
1738 main ()
1739 {
1740 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1741   ;
1742   return 0;
1743 }
1744 _ACEOF
1745 # Don't try gcc -ansi; that turns off useful extensions and
1746 # breaks some systems' header files.
1747 # AIX                   -qlanglvl=ansi
1748 # Ultrix and OSF/1      -std1
1749 # HP-UX 10.20 and later -Ae
1750 # HP-UX older versions  -Aa -D_HPUX_SOURCE
1751 # SVR4                  -Xc -D__EXTENSIONS__
1752 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1753 do
1754   CC="$ac_save_CC $ac_arg"
1755   rm -f conftest.$ac_objext
1756 if { (eval echo "$as_me:1756: \"$ac_compile\"") >&5
1757   (eval $ac_compile) 2>&5
1758   ac_status=$?
1759   echo "$as_me:1759: \$? = $ac_status" >&5
1760   (exit $ac_status); } &&
1761          { ac_try='test -s conftest.$ac_objext'
1762   { (eval echo "$as_me:1762: \"$ac_try\"") >&5
1763   (eval $ac_try) 2>&5
1764   ac_status=$?
1765   echo "$as_me:1765: \$? = $ac_status" >&5
1766   (exit $ac_status); }; }; then
1767   ac_cv_prog_cc_stdc=$ac_arg
1768 break
1769 else
1770   echo "$as_me: failed program was:" >&5
1771 cat conftest.$ac_ext >&5
1772 fi
1773 rm -f conftest.$ac_objext
1774 done
1775 rm -f conftest.$ac_ext conftest.$ac_objext
1776 CC=$ac_save_CC
1777
1778 fi
1779
1780 case "x$ac_cv_prog_cc_stdc" in
1781   x|xno)
1782     echo "$as_me:1782: result: none needed" >&5
1783 echo "${ECHO_T}none needed" >&6 ;;
1784   *)
1785     echo "$as_me:1785: result: $ac_cv_prog_cc_stdc" >&5
1786 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1787     CC="$CC $ac_cv_prog_cc_stdc" ;;
1788 esac
1789
1790 # This should have been defined by AC_PROG_CC
1791 : ${CC:=cc}
1792
1793 echo "$as_me:1793: checking \$CC variable" >&5
1794 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1795 case "$CC" in #(vi
1796 *[\ \   ]-[IUD]*)
1797         echo "$as_me:1797: result: broken" >&5
1798 echo "${ECHO_T}broken" >&6
1799         { echo "$as_me:1799: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1800 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1801         # humor him...
1802         cf_flags=`echo "$CC" | sed -e 's/^[^    ]*[     ]//'`
1803         CC=`echo "$CC" | sed -e 's/[    ].*//'`
1804
1805 cf_fix_cppflags=no
1806 cf_new_cflags=
1807 cf_new_cppflags=
1808 cf_new_extra_cppflags=
1809
1810 for cf_add_cflags in $cf_flags
1811 do
1812 case $cf_fix_cppflags in
1813 no)
1814         case $cf_add_cflags in #(vi
1815         -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1816                 case $cf_add_cflags in
1817                 -D*)
1818                         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1819
1820                         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1821                                 && test -z "${cf_tst_cflags}" \
1822                                 && cf_fix_cppflags=yes
1823
1824                         if test $cf_fix_cppflags = yes ; then
1825                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1826                                 continue
1827                         elif test "${cf_tst_cflags}" = "\"'" ; then
1828                                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1829                                 continue
1830                         fi
1831                         ;;
1832                 esac
1833                 case "$CPPFLAGS" in
1834                 *$cf_add_cflags) #(vi
1835                         ;;
1836                 *) #(vi
1837                         case $cf_add_cflags in #(vi
1838                         -D*)
1839                                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1840
1841 CPPFLAGS=`echo "$CPPFLAGS" | \
1842         sed     -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[         ]/ /g' \
1843                 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
1844
1845                                 ;;
1846                         esac
1847                         cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1848                         ;;
1849                 esac
1850                 ;;
1851         *)
1852                 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1853                 ;;
1854         esac
1855         ;;
1856 yes)
1857         cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1858
1859         cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1860
1861         test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1862                 && test -z "${cf_tst_cflags}" \
1863                 && cf_fix_cppflags=no
1864         ;;
1865 esac
1866 done
1867
1868 if test -n "$cf_new_cflags" ; then
1869
1870         CFLAGS="$CFLAGS $cf_new_cflags"
1871 fi
1872
1873 if test -n "$cf_new_cppflags" ; then
1874
1875         CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
1876 fi
1877
1878 if test -n "$cf_new_extra_cppflags" ; then
1879
1880         EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
1881 fi
1882
1883         ;;
1884 *)
1885         echo "$as_me:1885: result: ok" >&5
1886 echo "${ECHO_T}ok" >&6
1887         ;;
1888 esac
1889
1890 ac_ext=c
1891 ac_cpp='$CPP $CPPFLAGS'
1892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1895 ac_main_return=return
1896 echo "$as_me:1896: checking how to run the C preprocessor" >&5
1897 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1898 # On Suns, sometimes $CPP names a directory.
1899 if test -n "$CPP" && test -d "$CPP"; then
1900   CPP=
1901 fi
1902 if test -z "$CPP"; then
1903   if test "${ac_cv_prog_CPP+set}" = set; then
1904   echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906       # Double quotes because CPP needs to be expanded
1907     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1908     do
1909       ac_preproc_ok=false
1910 for ac_c_preproc_warn_flag in '' yes
1911 do
1912   # Use a header file that comes with gcc, so configuring glibc
1913   # with a fresh cross-compiler works.
1914   # On the NeXT, cc -E runs the code through the compiler's parser,
1915   # not just through cpp. "Syntax error" is here to catch this case.
1916   cat >conftest.$ac_ext <<_ACEOF
1917 #line 1917 "configure"
1918 #include "confdefs.h"
1919 #include <assert.h>
1920                      Syntax error
1921 _ACEOF
1922 if { (eval echo "$as_me:1922: \"$ac_cpp conftest.$ac_ext\"") >&5
1923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1924   ac_status=$?
1925   egrep -v '^ *\+' conftest.er1 >conftest.err
1926   rm -f conftest.er1
1927   cat conftest.err >&5
1928   echo "$as_me:1928: \$? = $ac_status" >&5
1929   (exit $ac_status); } >/dev/null; then
1930   if test -s conftest.err; then
1931     ac_cpp_err=$ac_c_preproc_warn_flag
1932   else
1933     ac_cpp_err=
1934   fi
1935 else
1936   ac_cpp_err=yes
1937 fi
1938 if test -z "$ac_cpp_err"; then
1939   :
1940 else
1941   echo "$as_me: failed program was:" >&5
1942   cat conftest.$ac_ext >&5
1943   # Broken: fails on valid input.
1944 continue
1945 fi
1946 rm -f conftest.err conftest.$ac_ext
1947
1948   # OK, works on sane cases.  Now check whether non-existent headers
1949   # can be detected and how.
1950   cat >conftest.$ac_ext <<_ACEOF
1951 #line 1951 "configure"
1952 #include "confdefs.h"
1953 #include <ac_nonexistent.h>
1954 _ACEOF
1955 if { (eval echo "$as_me:1955: \"$ac_cpp conftest.$ac_ext\"") >&5
1956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1957   ac_status=$?
1958   egrep -v '^ *\+' conftest.er1 >conftest.err
1959   rm -f conftest.er1
1960   cat conftest.err >&5
1961   echo "$as_me:1961: \$? = $ac_status" >&5
1962   (exit $ac_status); } >/dev/null; then
1963   if test -s conftest.err; then
1964     ac_cpp_err=$ac_c_preproc_warn_flag
1965   else
1966     ac_cpp_err=
1967   fi
1968 else
1969   ac_cpp_err=yes
1970 fi
1971 if test -z "$ac_cpp_err"; then
1972   # Broken: success on invalid input.
1973 continue
1974 else
1975   echo "$as_me: failed program was:" >&5
1976   cat conftest.$ac_ext >&5
1977   # Passes both tests.
1978 ac_preproc_ok=:
1979 break
1980 fi
1981 rm -f conftest.err conftest.$ac_ext
1982
1983 done
1984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1985 rm -f conftest.err conftest.$ac_ext
1986 if $ac_preproc_ok; then
1987   break
1988 fi
1989
1990     done
1991     ac_cv_prog_CPP=$CPP
1992
1993 fi
1994   CPP=$ac_cv_prog_CPP
1995 else
1996   ac_cv_prog_CPP=$CPP
1997 fi
1998 echo "$as_me:1998: result: $CPP" >&5
1999 echo "${ECHO_T}$CPP" >&6
2000 ac_preproc_ok=false
2001 for ac_c_preproc_warn_flag in '' yes
2002 do
2003   # Use a header file that comes with gcc, so configuring glibc
2004   # with a fresh cross-compiler works.
2005   # On the NeXT, cc -E runs the code through the compiler's parser,
2006   # not just through cpp. "Syntax error" is here to catch this case.
2007   cat >conftest.$ac_ext <<_ACEOF
2008 #line 2008 "configure"
2009 #include "confdefs.h"
2010 #include <assert.h>
2011                      Syntax error
2012 _ACEOF
2013 if { (eval echo "$as_me:2013: \"$ac_cpp conftest.$ac_ext\"") >&5
2014   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2015   ac_status=$?
2016   egrep -v '^ *\+' conftest.er1 >conftest.err
2017   rm -f conftest.er1
2018   cat conftest.err >&5
2019   echo "$as_me:2019: \$? = $ac_status" >&5
2020   (exit $ac_status); } >/dev/null; then
2021   if test -s conftest.err; then
2022     ac_cpp_err=$ac_c_preproc_warn_flag
2023   else
2024     ac_cpp_err=
2025   fi
2026 else
2027   ac_cpp_err=yes
2028 fi
2029 if test -z "$ac_cpp_err"; then
2030   :
2031 else
2032   echo "$as_me: failed program was:" >&5
2033   cat conftest.$ac_ext >&5
2034   # Broken: fails on valid input.
2035 continue
2036 fi
2037 rm -f conftest.err conftest.$ac_ext
2038
2039   # OK, works on sane cases.  Now check whether non-existent headers
2040   # can be detected and how.
2041   cat >conftest.$ac_ext <<_ACEOF
2042 #line 2042 "configure"
2043 #include "confdefs.h"
2044 #include <ac_nonexistent.h>
2045 _ACEOF
2046 if { (eval echo "$as_me:2046: \"$ac_cpp conftest.$ac_ext\"") >&5
2047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2048   ac_status=$?
2049   egrep -v '^ *\+' conftest.er1 >conftest.err
2050   rm -f conftest.er1
2051   cat conftest.err >&5
2052   echo "$as_me:2052: \$? = $ac_status" >&5
2053   (exit $ac_status); } >/dev/null; then
2054   if test -s conftest.err; then
2055     ac_cpp_err=$ac_c_preproc_warn_flag
2056   else
2057     ac_cpp_err=
2058   fi
2059 else
2060   ac_cpp_err=yes
2061 fi
2062 if test -z "$ac_cpp_err"; then
2063   # Broken: success on invalid input.
2064 continue
2065 else
2066   echo "$as_me: failed program was:" >&5
2067   cat conftest.$ac_ext >&5
2068   # Passes both tests.
2069 ac_preproc_ok=:
2070 break
2071 fi
2072 rm -f conftest.err conftest.$ac_ext
2073
2074 done
2075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2076 rm -f conftest.err conftest.$ac_ext
2077 if $ac_preproc_ok; then
2078   :
2079 else
2080   { { echo "$as_me:2080: error: C preprocessor \"$CPP\" fails sanity check" >&5
2081 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2082    { (exit 1); exit 1; }; }
2083 fi
2084
2085 ac_ext=c
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090 ac_main_return=return
2091
2092 if test $ac_cv_c_compiler_gnu = yes; then
2093     echo "$as_me:2093: checking whether $CC needs -traditional" >&5
2094 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2095 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098     ac_pattern="Autoconf.*'x'"
2099   cat >conftest.$ac_ext <<_ACEOF
2100 #line 2100 "configure"
2101 #include "confdefs.h"
2102 #include <sgtty.h>
2103 int Autoconf = TIOCGETP;
2104 _ACEOF
2105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2106   egrep "$ac_pattern" >/dev/null 2>&1; then
2107   ac_cv_prog_gcc_traditional=yes
2108 else
2109   ac_cv_prog_gcc_traditional=no
2110 fi
2111 rm -rf conftest*
2112
2113   if test $ac_cv_prog_gcc_traditional = no; then
2114     cat >conftest.$ac_ext <<_ACEOF
2115 #line 2115 "configure"
2116 #include "confdefs.h"
2117 #include <termio.h>
2118 int Autoconf = TCGETA;
2119 _ACEOF
2120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2121   egrep "$ac_pattern" >/dev/null 2>&1; then
2122   ac_cv_prog_gcc_traditional=yes
2123 fi
2124 rm -rf conftest*
2125
2126   fi
2127 fi
2128 echo "$as_me:2128: result: $ac_cv_prog_gcc_traditional" >&5
2129 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2130   if test $ac_cv_prog_gcc_traditional = yes; then
2131     CC="$CC -traditional"
2132   fi
2133 fi
2134
2135 echo "$as_me:2135: checking whether $CC understands -c and -o together" >&5
2136 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2137 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140
2141 cat > conftest.$ac_ext <<CF_EOF
2142 #include <stdio.h>
2143 int main()
2144 {
2145         ${cf_cv_main_return:-return}(0);
2146 }
2147 CF_EOF
2148 # We do the test twice because some compilers refuse to overwrite an
2149 # existing .o file with -o, though they will create one.
2150 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2151 if { (eval echo "$as_me:2151: \"$ac_try\"") >&5
2152   (eval $ac_try) 2>&5
2153   ac_status=$?
2154   echo "$as_me:2154: \$? = $ac_status" >&5
2155   (exit $ac_status); } &&
2156   test -f conftest2.$ac_objext && { (eval echo "$as_me:2156: \"$ac_try\"") >&5
2157   (eval $ac_try) 2>&5
2158   ac_status=$?
2159   echo "$as_me:2159: \$? = $ac_status" >&5
2160   (exit $ac_status); };
2161 then
2162   eval cf_cv_prog_CC_c_o=yes
2163 else
2164   eval cf_cv_prog_CC_c_o=no
2165 fi
2166 rm -rf conftest*
2167
2168 fi
2169 if test $cf_cv_prog_CC_c_o = yes; then
2170   echo "$as_me:2170: result: yes" >&5
2171 echo "${ECHO_T}yes" >&6
2172 else
2173   echo "$as_me:2173: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2175 fi
2176
2177 test "$program_prefix" != NONE &&
2178   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2179 # Use a double $ so make ignores it.
2180 test "$program_suffix" != NONE &&
2181   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2182 # Double any \ or $.  echo might interpret backslashes.
2183 # By default was `s,x,x', remove it if useless.
2184 cat <<\_ACEOF >conftest.sed
2185 s/[\\$]/&&/g;s/;s,x,x,$//
2186 _ACEOF
2187 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2188 rm conftest.sed
2189
2190 for ac_prog in mawk gawk nawk awk
2191 do
2192   # Extract the first word of "$ac_prog", so it can be a program name with args.
2193 set dummy $ac_prog; ac_word=$2
2194 echo "$as_me:2194: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_AWK+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   if test -n "$AWK"; then
2200   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2201 else
2202   ac_save_IFS=$IFS; IFS=$ac_path_separator
2203 ac_dummy="$PATH"
2204 for ac_dir in $ac_dummy; do
2205   IFS=$ac_save_IFS
2206   test -z "$ac_dir" && ac_dir=.
2207   $as_executable_p "$ac_dir/$ac_word" || continue
2208 ac_cv_prog_AWK="$ac_prog"
2209 echo "$as_me:2209: found $ac_dir/$ac_word" >&5
2210 break
2211 done
2212
2213 fi
2214 fi
2215 AWK=$ac_cv_prog_AWK
2216 if test -n "$AWK"; then
2217   echo "$as_me:2217: result: $AWK" >&5
2218 echo "${ECHO_T}$AWK" >&6
2219 else
2220   echo "$as_me:2220: result: no" >&5
2221 echo "${ECHO_T}no" >&6
2222 fi
2223
2224   test -n "$AWK" && break
2225 done
2226
2227 test -z "$AWK" && { { echo "$as_me:2227: error: No awk program found" >&5
2228 echo "$as_me: error: No awk program found" >&2;}
2229    { (exit 1); exit 1; }; }
2230
2231 echo "$as_me:2231: checking for egrep" >&5
2232 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2233 if test "${ac_cv_prog_egrep+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2237     then ac_cv_prog_egrep='grep -E'
2238     else ac_cv_prog_egrep='egrep'
2239     fi
2240 fi
2241 echo "$as_me:2241: result: $ac_cv_prog_egrep" >&5
2242 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2243  EGREP=$ac_cv_prog_egrep
2244
2245 test -z "$EGREP" && { { echo "$as_me:2245: error: No egrep program found" >&5
2246 echo "$as_me: error: No egrep program found" >&2;}
2247    { (exit 1); exit 1; }; }
2248
2249 # Find a good install program.  We prefer a C program (faster),
2250 # so one script is as good as another.  But avoid the broken or
2251 # incompatible versions:
2252 # SysV /etc/install, /usr/sbin/install
2253 # SunOS /usr/etc/install
2254 # IRIX /sbin/install
2255 # AIX /bin/install
2256 # AmigaOS /C/install, which installs bootblocks on floppy discs
2257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2260 # ./install, which can be erroneously created by make from ./install.sh.
2261 echo "$as_me:2261: checking for a BSD compatible install" >&5
2262 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2263 if test -z "$INSTALL"; then
2264 if test "${ac_cv_path_install+set}" = set; then
2265   echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267     ac_save_IFS=$IFS; IFS=$ac_path_separator
2268   for ac_dir in $PATH; do
2269     IFS=$ac_save_IFS
2270     # Account for people who put trailing slashes in PATH elements.
2271     case $ac_dir/ in
2272     / | ./ | .// | /cC/* \
2273     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2274     | /usr/ucb/* ) ;;
2275     *)
2276       # OSF1 and SCO ODT 3.0 have their own names for install.
2277       # Don't use installbsd from OSF since it installs stuff as root
2278       # by default.
2279       for ac_prog in ginstall scoinst install; do
2280         if $as_executable_p "$ac_dir/$ac_prog"; then
2281           if test $ac_prog = install &&
2282             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2283             # AIX install.  It has an incompatible calling convention.
2284             :
2285           elif test $ac_prog = install &&
2286             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2287             # program-specific install script used by HP pwplus--don't use.
2288             :
2289           else
2290             ac_cv_path_install="$ac_dir/$ac_prog -c"
2291             break 2
2292           fi
2293         fi
2294       done
2295       ;;
2296     esac
2297   done
2298
2299 fi
2300   if test "${ac_cv_path_install+set}" = set; then
2301     INSTALL=$ac_cv_path_install
2302   else
2303     # As a last resort, use the slow shell script.  We don't cache a
2304     # path for INSTALL within a source directory, because that will
2305     # break other packages using the cache if that directory is
2306     # removed, or if the path is relative.
2307     INSTALL=$ac_install_sh
2308   fi
2309 fi
2310 echo "$as_me:2310: result: $INSTALL" >&5
2311 echo "${ECHO_T}$INSTALL" >&6
2312
2313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2314 # It thinks the first close brace ends the variable substitution.
2315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2316
2317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2318
2319 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2320
2321 echo "$as_me:2321: checking whether ln -s works" >&5
2322 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2323 LN_S=$as_ln_s
2324 if test "$LN_S" = "ln -s"; then
2325   echo "$as_me:2325: result: yes" >&5
2326 echo "${ECHO_T}yes" >&6
2327 else
2328   echo "$as_me:2328: result: no, using $LN_S" >&5
2329 echo "${ECHO_T}no, using $LN_S" >&6
2330 fi
2331
2332 echo "$as_me:2332: checking if $LN_S -f options work" >&5
2333 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2334
2335 rm -f conf$$.src conf$$dst
2336 echo >conf$$.dst
2337 echo first >conf$$.src
2338 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2339         cf_prog_ln_sf=yes
2340 else
2341         cf_prog_ln_sf=no
2342 fi
2343 rm -f conf$$.dst conf$$src
2344 echo "$as_me:2344: result: $cf_prog_ln_sf" >&5
2345 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2346
2347 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2348
2349 echo "$as_me:2349: checking for long file names" >&5
2350 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2351 if test "${ac_cv_sys_long_file_names+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   ac_cv_sys_long_file_names=yes
2355 # Test for long file names in all the places we know might matter:
2356 #      .                the current directory, where building will happen
2357 #      $prefix/lib      where we will be installing things
2358 #      $exec_prefix/lib likewise
2359 # eval it to expand exec_prefix.
2360 #      $TMPDIR          if set, where it might want to write temporary files
2361 # if $TMPDIR is not set:
2362 #      /tmp             where it might want to write temporary files
2363 #      /var/tmp         likewise
2364 #      /usr/tmp         likewise
2365 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2366   ac_tmpdirs=$TMPDIR
2367 else
2368   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2369 fi
2370 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2371   test -d $ac_dir || continue
2372   test -w $ac_dir || continue # It is less confusing to not echo anything here.
2373   ac_xdir=$ac_dir/cf$$
2374   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2375   ac_tf1=$ac_xdir/conftest9012345
2376   ac_tf2=$ac_xdir/conftest9012346
2377   (echo 1 >$ac_tf1) 2>/dev/null
2378   (echo 2 >$ac_tf2) 2>/dev/null
2379   ac_val=`cat $ac_tf1 2>/dev/null`
2380   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2381     ac_cv_sys_long_file_names=no
2382     rm -rf $ac_xdir 2>/dev/null
2383     break
2384   fi
2385   rm -rf $ac_xdir 2>/dev/null
2386 done
2387 fi
2388 echo "$as_me:2388: result: $ac_cv_sys_long_file_names" >&5
2389 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2390 if test $ac_cv_sys_long_file_names = yes; then
2391
2392 cat >>confdefs.h <<\EOF
2393 #define HAVE_LONG_FILE_NAMES 1
2394 EOF
2395
2396 fi
2397
2398 # if we find pkg-config, check if we should install the ".pc" files.
2399
2400 echo "$as_me:2400: checking if you want to use pkg-config" >&5
2401 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2402
2403 # Check whether --with-pkg-config or --without-pkg-config was given.
2404 if test "${with_pkg_config+set}" = set; then
2405   withval="$with_pkg_config"
2406   cf_pkg_config=$withval
2407 else
2408   cf_pkg_config=yes
2409 fi;
2410 echo "$as_me:2410: result: $cf_pkg_config" >&5
2411 echo "${ECHO_T}$cf_pkg_config" >&6
2412
2413 case $cf_pkg_config in #(vi
2414 no) #(vi
2415         PKG_CONFIG=none
2416         ;;
2417 yes) #(vi
2418
2419 if test -n "$ac_tool_prefix"; then
2420   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2422 echo "$as_me:2422: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2424 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   case $PKG_CONFIG in
2428   [\\/]* | ?:[\\/]*)
2429   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2430   ;;
2431   *)
2432   ac_save_IFS=$IFS; IFS=$ac_path_separator
2433 ac_dummy="$PATH"
2434 for ac_dir in $ac_dummy; do
2435   IFS=$ac_save_IFS
2436   test -z "$ac_dir" && ac_dir=.
2437   if $as_executable_p "$ac_dir/$ac_word"; then
2438    ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2439    echo "$as_me:2439: found $ac_dir/$ac_word" >&5
2440    break
2441 fi
2442 done
2443
2444   ;;
2445 esac
2446 fi
2447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2448
2449 if test -n "$PKG_CONFIG"; then
2450   echo "$as_me:2450: result: $PKG_CONFIG" >&5
2451 echo "${ECHO_T}$PKG_CONFIG" >&6
2452 else
2453   echo "$as_me:2453: result: no" >&5
2454 echo "${ECHO_T}no" >&6
2455 fi
2456
2457 fi
2458 if test -z "$ac_cv_path_PKG_CONFIG"; then
2459   ac_pt_PKG_CONFIG=$PKG_CONFIG
2460   # Extract the first word of "pkg-config", so it can be a program name with args.
2461 set dummy pkg-config; ac_word=$2
2462 echo "$as_me:2462: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2464 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467   case $ac_pt_PKG_CONFIG in
2468   [\\/]* | ?:[\\/]*)
2469   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2470   ;;
2471   *)
2472   ac_save_IFS=$IFS; IFS=$ac_path_separator
2473 ac_dummy="$PATH"
2474 for ac_dir in $ac_dummy; do
2475   IFS=$ac_save_IFS
2476   test -z "$ac_dir" && ac_dir=.
2477   if $as_executable_p "$ac_dir/$ac_word"; then
2478    ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2479    echo "$as_me:2479: found $ac_dir/$ac_word" >&5
2480    break
2481 fi
2482 done
2483
2484   test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2485   ;;
2486 esac
2487 fi
2488 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2489
2490 if test -n "$ac_pt_PKG_CONFIG"; then
2491   echo "$as_me:2491: result: $ac_pt_PKG_CONFIG" >&5
2492 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2493 else
2494   echo "$as_me:2494: result: no" >&5
2495 echo "${ECHO_T}no" >&6
2496 fi
2497
2498   PKG_CONFIG=$ac_pt_PKG_CONFIG
2499 else
2500   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2501 fi
2502
2503         ;;
2504 *)
2505         PKG_CONFIG=$withval
2506         ;;
2507 esac
2508
2509 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2510 if test "$PKG_CONFIG" != none ; then
2511
2512 if test "x$prefix" != xNONE; then
2513   cf_path_syntax="$prefix"
2514 else
2515   cf_path_syntax="$ac_default_prefix"
2516 fi
2517
2518 case ".$PKG_CONFIG" in #(vi
2519 .\$\(*\)*|.\'*\'*) #(vi
2520   ;;
2521 ..|./*|.\\*) #(vi
2522   ;;
2523 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2524   ;;
2525 .\${*prefix}*|.\${*dir}*) #(vi
2526   eval PKG_CONFIG="$PKG_CONFIG"
2527   case ".$PKG_CONFIG" in #(vi
2528   .NONE/*)
2529     PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2530     ;;
2531   esac
2532   ;; #(vi
2533 .no|.NONE/*)
2534   PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2535   ;;
2536 *)
2537   { { echo "$as_me:2537: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2538 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2539    { (exit 1); exit 1; }; }
2540   ;;
2541 esac
2542
2543 fi
2544
2545 if test "$PKG_CONFIG" != none ; then
2546         echo "$as_me:2546: checking for $PKG_CONFIG library directory" >&5
2547 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
2548
2549 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
2550 if test "${with_pkg_config_libdir+set}" = set; then
2551   withval="$with_pkg_config_libdir"
2552   PKG_CONFIG_LIBDIR=$withval
2553 else
2554   PKG_CONFIG_LIBDIR=yes
2555 fi;
2556
2557         case x$PKG_CONFIG_LIBDIR in #(vi
2558         x/*) #(vi
2559                 ;;
2560         xyes) #(vi
2561                 # look for the library directory using the same prefix as the executable
2562                 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
2563                 case x`(arch) 2>/dev/null` in #(vi
2564                 *64) #(vi
2565                         for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
2566                         do
2567                                 if test -d $cf_config/pkgconfig
2568                                 then
2569                                         PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
2570                                         break
2571                                 fi
2572                         done
2573                         ;;
2574                 *)
2575                         PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
2576                         ;;
2577                 esac
2578                 ;;
2579         *)
2580                 ;;
2581         esac
2582
2583         echo "$as_me:2583: result: $PKG_CONFIG_LIBDIR" >&5
2584 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
2585 fi
2586
2587 if test "$PKG_CONFIG" != none ; then
2588         echo "$as_me:2588: checking if we should install .pc files for $PKG_CONFIG" >&5
2589 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
2590
2591 # Check whether --enable-pc-files or --disable-pc-files was given.
2592 if test "${enable_pc_files+set}" = set; then
2593   enableval="$enable_pc_files"
2594   enable_pc_files=$enableval
2595 else
2596   enable_pc_files=no
2597 fi;
2598         echo "$as_me:2598: result: $enable_pc_files" >&5
2599 echo "${ECHO_T}$enable_pc_files" >&6
2600         if test "$enable_pc_files" != no
2601         then
2602
2603 if test "x$prefix" != xNONE; then
2604   cf_path_syntax="$prefix"
2605 else
2606   cf_path_syntax="$ac_default_prefix"
2607 fi
2608
2609 case ".$PKG_CONFIG_LIBDIR" in #(vi
2610 .\$\(*\)*|.\'*\'*) #(vi
2611   ;;
2612 ..|./*|.\\*) #(vi
2613   ;;
2614 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2615   ;;
2616 .\${*prefix}*|.\${*dir}*) #(vi
2617   eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
2618   case ".$PKG_CONFIG_LIBDIR" in #(vi
2619   .NONE/*)
2620     PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
2621     ;;
2622   esac
2623   ;; #(vi
2624 .no|.NONE/*)
2625   PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
2626   ;;
2627 *)
2628   { { echo "$as_me:2628: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
2629 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
2630    { (exit 1); exit 1; }; }
2631   ;;
2632 esac
2633
2634         fi
2635 else
2636         enable_pc_files=no
2637 fi
2638
2639 echo "$as_me:2639: checking if you want to build test-programs" >&5
2640 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2641
2642 # Check whether --with-tests or --without-tests was given.
2643 if test "${with_tests+set}" = set; then
2644   withval="$with_tests"
2645   cf_with_tests=$withval
2646 else
2647   cf_with_tests=yes
2648 fi;
2649 echo "$as_me:2649: result: $cf_with_tests" >&5
2650 echo "${ECHO_T}$cf_with_tests" >&6
2651
2652 echo "$as_me:2652: checking if we should assume mixed-case filenames" >&5
2653 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2654
2655 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2656 if test "${enable_mixed_case+set}" = set; then
2657   enableval="$enable_mixed_case"
2658   enable_mixedcase=$enableval
2659 else
2660   enable_mixedcase=auto
2661 fi;
2662 echo "$as_me:2662: result: $enable_mixedcase" >&5
2663 echo "${ECHO_T}$enable_mixedcase" >&6
2664 if test "$enable_mixedcase" = "auto" ; then
2665
2666 echo "$as_me:2666: checking if filesystem supports mixed-case filenames" >&5
2667 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2668 if test "${cf_cv_mixedcase+set}" = set; then
2669   echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671
2672 if test "$cross_compiling" = yes ; then
2673         case $target_alias in #(vi
2674         *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2675                 cf_cv_mixedcase=no
2676                 ;;
2677         *)
2678                 cf_cv_mixedcase=yes
2679                 ;;
2680         esac
2681 else
2682         rm -f conftest CONFTEST
2683         echo test >conftest
2684         if test -f CONFTEST ; then
2685                 cf_cv_mixedcase=no
2686         else
2687                 cf_cv_mixedcase=yes
2688         fi
2689         rm -f conftest CONFTEST
2690 fi
2691
2692 fi
2693 echo "$as_me:2693: result: $cf_cv_mixedcase" >&5
2694 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2695 test "$cf_cv_mixedcase" = yes &&
2696 cat >>confdefs.h <<\EOF
2697 #define MIXEDCASE_FILENAMES 1
2698 EOF
2699
2700 else
2701     cf_cv_mixedcase=$enable_mixedcase
2702     if test "$enable_mixedcase" = "yes" ; then
2703         cat >>confdefs.h <<\EOF
2704 #define MIXEDCASE_FILENAMES 1
2705 EOF
2706
2707     fi
2708 fi
2709
2710 # do this after mixed-case option (tags/TAGS is not as important as tic).
2711 echo "$as_me:2711: checking whether ${MAKE-make} sets \${MAKE}" >&5
2712 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2713 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2714 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2715   echo $ECHO_N "(cached) $ECHO_C" >&6
2716 else
2717   cat >conftest.make <<\EOF
2718 all:
2719         @echo 'ac_maketemp="${MAKE}"'
2720 EOF
2721 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2722 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2723 if test -n "$ac_maketemp"; then
2724   eval ac_cv_prog_make_${ac_make}_set=yes
2725 else
2726   eval ac_cv_prog_make_${ac_make}_set=no
2727 fi
2728 rm -f conftest.make
2729 fi
2730 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2731   echo "$as_me:2731: result: yes" >&5
2732 echo "${ECHO_T}yes" >&6
2733   SET_MAKE=
2734 else
2735   echo "$as_me:2735: result: no" >&5
2736 echo "${ECHO_T}no" >&6
2737   SET_MAKE="MAKE=${MAKE-make}"
2738 fi
2739
2740 for ac_prog in exctags ctags
2741 do
2742   # Extract the first word of "$ac_prog", so it can be a program name with args.
2743 set dummy $ac_prog; ac_word=$2
2744 echo "$as_me:2744: checking for $ac_word" >&5
2745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2746 if test "${ac_cv_prog_CTAGS+set}" = set; then
2747   echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749   if test -n "$CTAGS"; then
2750   ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2751 else
2752   ac_save_IFS=$IFS; IFS=$ac_path_separator
2753 ac_dummy="$PATH"
2754 for ac_dir in $ac_dummy; do
2755   IFS=$ac_save_IFS
2756   test -z "$ac_dir" && ac_dir=.
2757   $as_executable_p "$ac_dir/$ac_word" || continue
2758 ac_cv_prog_CTAGS="$ac_prog"
2759 echo "$as_me:2759: found $ac_dir/$ac_word" >&5
2760 break
2761 done
2762
2763 fi
2764 fi
2765 CTAGS=$ac_cv_prog_CTAGS
2766 if test -n "$CTAGS"; then
2767   echo "$as_me:2767: result: $CTAGS" >&5
2768 echo "${ECHO_T}$CTAGS" >&6
2769 else
2770   echo "$as_me:2770: result: no" >&5
2771 echo "${ECHO_T}no" >&6
2772 fi
2773
2774   test -n "$CTAGS" && break
2775 done
2776
2777 for ac_prog in exetags etags
2778 do
2779   # Extract the first word of "$ac_prog", so it can be a program name with args.
2780 set dummy $ac_prog; ac_word=$2
2781 echo "$as_me:2781: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_prog_ETAGS+set}" = set; then
2784   echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786   if test -n "$ETAGS"; then
2787   ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2788 else
2789   ac_save_IFS=$IFS; IFS=$ac_path_separator
2790 ac_dummy="$PATH"
2791 for ac_dir in $ac_dummy; do
2792   IFS=$ac_save_IFS
2793   test -z "$ac_dir" && ac_dir=.
2794   $as_executable_p "$ac_dir/$ac_word" || continue
2795 ac_cv_prog_ETAGS="$ac_prog"
2796 echo "$as_me:2796: found $ac_dir/$ac_word" >&5
2797 break
2798 done
2799
2800 fi
2801 fi
2802 ETAGS=$ac_cv_prog_ETAGS
2803 if test -n "$ETAGS"; then
2804   echo "$as_me:2804: result: $ETAGS" >&5
2805 echo "${ECHO_T}$ETAGS" >&6
2806 else
2807   echo "$as_me:2807: result: no" >&5
2808 echo "${ECHO_T}no" >&6
2809 fi
2810
2811   test -n "$ETAGS" && break
2812 done
2813
2814 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2815 set dummy ${CTAGS:-ctags}; ac_word=$2
2816 echo "$as_me:2816: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2818 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   if test -n "$MAKE_LOWER_TAGS"; then
2822   ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2823 else
2824   ac_save_IFS=$IFS; IFS=$ac_path_separator
2825 ac_dummy="$PATH"
2826 for ac_dir in $ac_dummy; do
2827   IFS=$ac_save_IFS
2828   test -z "$ac_dir" && ac_dir=.
2829   $as_executable_p "$ac_dir/$ac_word" || continue
2830 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2831 echo "$as_me:2831: found $ac_dir/$ac_word" >&5
2832 break
2833 done
2834
2835   test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2836 fi
2837 fi
2838 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2839 if test -n "$MAKE_LOWER_TAGS"; then
2840   echo "$as_me:2840: result: $MAKE_LOWER_TAGS" >&5
2841 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2842 else
2843   echo "$as_me:2843: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2845 fi
2846
2847 if test "$cf_cv_mixedcase" = yes ; then
2848         # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2849 set dummy ${ETAGS:-etags}; ac_word=$2
2850 echo "$as_me:2850: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2852 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   if test -n "$MAKE_UPPER_TAGS"; then
2856   ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2857 else
2858   ac_save_IFS=$IFS; IFS=$ac_path_separator
2859 ac_dummy="$PATH"
2860 for ac_dir in $ac_dummy; do
2861   IFS=$ac_save_IFS
2862   test -z "$ac_dir" && ac_dir=.
2863   $as_executable_p "$ac_dir/$ac_word" || continue
2864 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2865 echo "$as_me:2865: found $ac_dir/$ac_word" >&5
2866 break
2867 done
2868
2869   test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2870 fi
2871 fi
2872 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2873 if test -n "$MAKE_UPPER_TAGS"; then
2874   echo "$as_me:2874: result: $MAKE_UPPER_TAGS" >&5
2875 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2876 else
2877   echo "$as_me:2877: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2879 fi
2880
2881 else
2882         MAKE_UPPER_TAGS=no
2883 fi
2884
2885 if test "$MAKE_UPPER_TAGS" = yes ; then
2886         MAKE_UPPER_TAGS=
2887 else
2888         MAKE_UPPER_TAGS="#"
2889 fi
2890
2891 if test "$MAKE_LOWER_TAGS" = yes ; then
2892         MAKE_LOWER_TAGS=
2893 else
2894         MAKE_LOWER_TAGS="#"
2895 fi
2896
2897 echo "$as_me:2897: checking for makeflags variable" >&5
2898 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
2899 if test "${cf_cv_makeflags+set}" = set; then
2900   echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902
2903         cf_cv_makeflags=''
2904         for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
2905         do
2906                 cat >cf_makeflags.tmp <<CF_EOF
2907 SHELL = /bin/sh
2908 all :
2909         @ echo '.$cf_option'
2910 CF_EOF
2911                 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[    ]*$,,'`
2912                 case "$cf_result" in
2913                 .*k)
2914                         cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
2915                         case "$cf_result" in
2916                         .*CC=*) cf_cv_makeflags=
2917                                 ;;
2918                         *)      cf_cv_makeflags=$cf_option
2919                                 ;;
2920                         esac
2921                         break
2922                         ;;
2923                 .-)     ;;
2924                 *)      echo "given option \"$cf_option\", no match \"$cf_result\""
2925                         ;;
2926                 esac
2927         done
2928         rm -f cf_makeflags.tmp
2929
2930 fi
2931 echo "$as_me:2931: result: $cf_cv_makeflags" >&5
2932 echo "${ECHO_T}$cf_cv_makeflags" >&6
2933
2934 if test -n "$ac_tool_prefix"; then
2935   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2936 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2937 echo "$as_me:2937: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2939 if test "${ac_cv_prog_RANLIB+set}" = set; then
2940   echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942   if test -n "$RANLIB"; then
2943   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2944 else
2945   ac_save_IFS=$IFS; IFS=$ac_path_separator
2946 ac_dummy="$PATH"
2947 for ac_dir in $ac_dummy; do
2948   IFS=$ac_save_IFS
2949   test -z "$ac_dir" && ac_dir=.
2950   $as_executable_p "$ac_dir/$ac_word" || continue
2951 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2952 echo "$as_me:2952: found $ac_dir/$ac_word" >&5
2953 break
2954 done
2955
2956 fi
2957 fi
2958 RANLIB=$ac_cv_prog_RANLIB
2959 if test -n "$RANLIB"; then
2960   echo "$as_me:2960: result: $RANLIB" >&5
2961 echo "${ECHO_T}$RANLIB" >&6
2962 else
2963   echo "$as_me:2963: result: no" >&5
2964 echo "${ECHO_T}no" >&6
2965 fi
2966
2967 fi
2968 if test -z "$ac_cv_prog_RANLIB"; then
2969   ac_ct_RANLIB=$RANLIB
2970   # Extract the first word of "ranlib", so it can be a program name with args.
2971 set dummy ranlib; ac_word=$2
2972 echo "$as_me:2972: checking for $ac_word" >&5
2973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2974 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2975   echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977   if test -n "$ac_ct_RANLIB"; then
2978   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2979 else
2980   ac_save_IFS=$IFS; IFS=$ac_path_separator
2981 ac_dummy="$PATH"
2982 for ac_dir in $ac_dummy; do
2983   IFS=$ac_save_IFS
2984   test -z "$ac_dir" && ac_dir=.
2985   $as_executable_p "$ac_dir/$ac_word" || continue
2986 ac_cv_prog_ac_ct_RANLIB="ranlib"
2987 echo "$as_me:2987: found $ac_dir/$ac_word" >&5
2988 break
2989 done
2990
2991   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
2992 fi
2993 fi
2994 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2995 if test -n "$ac_ct_RANLIB"; then
2996   echo "$as_me:2996: result: $ac_ct_RANLIB" >&5
2997 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2998 else
2999   echo "$as_me:2999: result: no" >&5
3000 echo "${ECHO_T}no" >&6
3001 fi
3002
3003   RANLIB=$ac_ct_RANLIB
3004 else
3005   RANLIB="$ac_cv_prog_RANLIB"
3006 fi
3007
3008 if test -n "$ac_tool_prefix"; then
3009   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3010 set dummy ${ac_tool_prefix}ld; ac_word=$2
3011 echo "$as_me:3011: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3013 if test "${ac_cv_prog_LD+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   if test -n "$LD"; then
3017   ac_cv_prog_LD="$LD" # Let the user override the test.
3018 else
3019   ac_save_IFS=$IFS; IFS=$ac_path_separator
3020 ac_dummy="$PATH"
3021 for ac_dir in $ac_dummy; do
3022   IFS=$ac_save_IFS
3023   test -z "$ac_dir" && ac_dir=.
3024   $as_executable_p "$ac_dir/$ac_word" || continue
3025 ac_cv_prog_LD="${ac_tool_prefix}ld"
3026 echo "$as_me:3026: found $ac_dir/$ac_word" >&5
3027 break
3028 done
3029
3030 fi
3031 fi
3032 LD=$ac_cv_prog_LD
3033 if test -n "$LD"; then
3034   echo "$as_me:3034: result: $LD" >&5
3035 echo "${ECHO_T}$LD" >&6
3036 else
3037   echo "$as_me:3037: result: no" >&5
3038 echo "${ECHO_T}no" >&6
3039 fi
3040
3041 fi
3042 if test -z "$ac_cv_prog_LD"; then
3043   ac_ct_LD=$LD
3044   # Extract the first word of "ld", so it can be a program name with args.
3045 set dummy ld; ac_word=$2
3046 echo "$as_me:3046: checking for $ac_word" >&5
3047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3048 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3049   echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051   if test -n "$ac_ct_LD"; then
3052   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3053 else
3054   ac_save_IFS=$IFS; IFS=$ac_path_separator
3055 ac_dummy="$PATH"
3056 for ac_dir in $ac_dummy; do
3057   IFS=$ac_save_IFS
3058   test -z "$ac_dir" && ac_dir=.
3059   $as_executable_p "$ac_dir/$ac_word" || continue
3060 ac_cv_prog_ac_ct_LD="ld"
3061 echo "$as_me:3061: found $ac_dir/$ac_word" >&5
3062 break
3063 done
3064
3065   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3066 fi
3067 fi
3068 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3069 if test -n "$ac_ct_LD"; then
3070   echo "$as_me:3070: result: $ac_ct_LD" >&5
3071 echo "${ECHO_T}$ac_ct_LD" >&6
3072 else
3073   echo "$as_me:3073: result: no" >&5
3074 echo "${ECHO_T}no" >&6
3075 fi
3076
3077   LD=$ac_ct_LD
3078 else
3079   LD="$ac_cv_prog_LD"
3080 fi
3081
3082 if test -n "$ac_tool_prefix"; then
3083   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3084 set dummy ${ac_tool_prefix}ar; ac_word=$2
3085 echo "$as_me:3085: checking for $ac_word" >&5
3086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3087 if test "${ac_cv_prog_AR+set}" = set; then
3088   echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090   if test -n "$AR"; then
3091   ac_cv_prog_AR="$AR" # Let the user override the test.
3092 else
3093   ac_save_IFS=$IFS; IFS=$ac_path_separator
3094 ac_dummy="$PATH"
3095 for ac_dir in $ac_dummy; do
3096   IFS=$ac_save_IFS
3097   test -z "$ac_dir" && ac_dir=.
3098   $as_executable_p "$ac_dir/$ac_word" || continue
3099 ac_cv_prog_AR="${ac_tool_prefix}ar"
3100 echo "$as_me:3100: found $ac_dir/$ac_word" >&5
3101 break
3102 done
3103
3104 fi
3105 fi
3106 AR=$ac_cv_prog_AR
3107 if test -n "$AR"; then
3108   echo "$as_me:3108: result: $AR" >&5
3109 echo "${ECHO_T}$AR" >&6
3110 else
3111   echo "$as_me:3111: result: no" >&5
3112 echo "${ECHO_T}no" >&6
3113 fi
3114
3115 fi
3116 if test -z "$ac_cv_prog_AR"; then
3117   ac_ct_AR=$AR
3118   # Extract the first word of "ar", so it can be a program name with args.
3119 set dummy ar; ac_word=$2
3120 echo "$as_me:3120: checking for $ac_word" >&5
3121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3123   echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125   if test -n "$ac_ct_AR"; then
3126   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3127 else
3128   ac_save_IFS=$IFS; IFS=$ac_path_separator
3129 ac_dummy="$PATH"
3130 for ac_dir in $ac_dummy; do
3131   IFS=$ac_save_IFS
3132   test -z "$ac_dir" && ac_dir=.
3133   $as_executable_p "$ac_dir/$ac_word" || continue
3134 ac_cv_prog_ac_ct_AR="ar"
3135 echo "$as_me:3135: found $ac_dir/$ac_word" >&5
3136 break
3137 done
3138
3139   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3140 fi
3141 fi
3142 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3143 if test -n "$ac_ct_AR"; then
3144   echo "$as_me:3144: result: $ac_ct_AR" >&5
3145 echo "${ECHO_T}$ac_ct_AR" >&6
3146 else
3147   echo "$as_me:3147: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3149 fi
3150
3151   AR=$ac_ct_AR
3152 else
3153   AR="$ac_cv_prog_AR"
3154 fi
3155
3156 if test -n "$ac_tool_prefix"; then
3157   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3158 set dummy ${ac_tool_prefix}ar; ac_word=$2
3159 echo "$as_me:3159: checking for $ac_word" >&5
3160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3161 if test "${ac_cv_prog_AR+set}" = set; then
3162   echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164   if test -n "$AR"; then
3165   ac_cv_prog_AR="$AR" # Let the user override the test.
3166 else
3167   ac_save_IFS=$IFS; IFS=$ac_path_separator
3168 ac_dummy="$PATH"
3169 for ac_dir in $ac_dummy; do
3170   IFS=$ac_save_IFS
3171   test -z "$ac_dir" && ac_dir=.
3172   $as_executable_p "$ac_dir/$ac_word" || continue
3173 ac_cv_prog_AR="${ac_tool_prefix}ar"
3174 echo "$as_me:3174: found $ac_dir/$ac_word" >&5
3175 break
3176 done
3177
3178 fi
3179 fi
3180 AR=$ac_cv_prog_AR
3181 if test -n "$AR"; then
3182   echo "$as_me:3182: result: $AR" >&5
3183 echo "${ECHO_T}$AR" >&6
3184 else
3185   echo "$as_me:3185: result: no" >&5
3186 echo "${ECHO_T}no" >&6
3187 fi
3188
3189 fi
3190 if test -z "$ac_cv_prog_AR"; then
3191   ac_ct_AR=$AR
3192   # Extract the first word of "ar", so it can be a program name with args.
3193 set dummy ar; ac_word=$2
3194 echo "$as_me:3194: checking for $ac_word" >&5
3195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3196 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3197   echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199   if test -n "$ac_ct_AR"; then
3200   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3201 else
3202   ac_save_IFS=$IFS; IFS=$ac_path_separator
3203 ac_dummy="$PATH"
3204 for ac_dir in $ac_dummy; do
3205   IFS=$ac_save_IFS
3206   test -z "$ac_dir" && ac_dir=.
3207   $as_executable_p "$ac_dir/$ac_word" || continue
3208 ac_cv_prog_ac_ct_AR="ar"
3209 echo "$as_me:3209: found $ac_dir/$ac_word" >&5
3210 break
3211 done
3212
3213   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3214 fi
3215 fi
3216 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3217 if test -n "$ac_ct_AR"; then
3218   echo "$as_me:3218: result: $ac_ct_AR" >&5
3219 echo "${ECHO_T}$ac_ct_AR" >&6
3220 else
3221   echo "$as_me:3221: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3223 fi
3224
3225   AR=$ac_ct_AR
3226 else
3227   AR="$ac_cv_prog_AR"
3228 fi
3229
3230 echo "$as_me:3230: checking for options to update archives" >&5
3231 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3232 if test "${cf_cv_ar_flags+set}" = set; then
3233   echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235
3236         cf_cv_ar_flags=unknown
3237         for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3238         do
3239
3240                 # check if $ARFLAGS already contains this choice
3241                 if test "x$ARFLAGS" != "x" ; then
3242                         cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3243                         if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3244                                 cf_cv_ar_flags=
3245                                 break
3246                         fi
3247                 fi
3248
3249                 rm -f conftest.$ac_cv_objext
3250                 rm -f conftest.a
3251
3252                 cat >conftest.$ac_ext <<EOF
3253 #line 3253 "configure"
3254 int     testdata[3] = { 123, 456, 789 };
3255 EOF
3256                 if { (eval echo "$as_me:3256: \"$ac_compile\"") >&5
3257   (eval $ac_compile) 2>&5
3258   ac_status=$?
3259   echo "$as_me:3259: \$? = $ac_status" >&5
3260   (exit $ac_status); } ; then
3261                         echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3262                         $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3263                         if test -f conftest.a ; then
3264                                 cf_cv_ar_flags=$cf_ar_flags
3265                                 break
3266                         fi
3267                 else
3268                         test -n "$verbose" && echo "    cannot compile test-program" 1>&6
3269
3270 echo "${as_me:-configure}:3270: testing cannot compile test-program ..." 1>&5
3271
3272                         break
3273                 fi
3274         done
3275         rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3276
3277 fi
3278 echo "$as_me:3278: result: $cf_cv_ar_flags" >&5
3279 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3280
3281 if test -n "$ARFLAGS" ; then
3282         if test -n "$cf_cv_ar_flags" ; then
3283                 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3284         fi
3285 else
3286         ARFLAGS=$cf_cv_ar_flags
3287 fi
3288
3289         echo "$as_me:3289: checking for PATH separator" >&5
3290 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
3291         case $cf_cv_system_name in
3292         os2*)   PATH_SEPARATOR=';'  ;;
3293         *)      ${PATH_SEPARATOR:=':'}  ;;
3294         esac
3295
3296         echo "$as_me:3296: result: $PATH_SEPARATOR" >&5
3297 echo "${ECHO_T}$PATH_SEPARATOR" >&6
3298
3299 echo "$as_me:3299: checking if you have specified an install-prefix" >&5
3300 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3301
3302 # Check whether --with-install-prefix or --without-install-prefix was given.
3303 if test "${with_install_prefix+set}" = set; then
3304   withval="$with_install_prefix"
3305   case "$withval" in #(vi
3306         yes|no) #(vi
3307                 ;;
3308         *)      DESTDIR="$withval"
3309                 ;;
3310         esac
3311 fi;
3312 echo "$as_me:3312: result: $DESTDIR" >&5
3313 echo "${ECHO_T}$DESTDIR" >&6
3314
3315 ###############################################################################
3316
3317 # If we're cross-compiling, allow the user to override the tools and their
3318 # options.  The configure script is oriented toward identifying the host
3319 # compiler, etc., but we need a build compiler to generate parts of the source.
3320
3321 if test "$cross_compiling" = yes ; then
3322
3323         # defaults that we might want to override
3324         : ${BUILD_CFLAGS:=''}
3325         : ${BUILD_CPPFLAGS:=''}
3326         : ${BUILD_LDFLAGS:=''}
3327         : ${BUILD_LIBS:=''}
3328         : ${BUILD_EXEEXT:='$x'}
3329         : ${BUILD_OBJEXT:='o'}
3330
3331 # Check whether --with-build-cc or --without-build-cc was given.
3332 if test "${with_build_cc+set}" = set; then
3333   withval="$with_build_cc"
3334   BUILD_CC="$withval"
3335 else
3336   for ac_prog in gcc cc cl
3337 do
3338   # Extract the first word of "$ac_prog", so it can be a program name with args.
3339 set dummy $ac_prog; ac_word=$2
3340 echo "$as_me:3340: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   if test -n "$BUILD_CC"; then
3346   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3347 else
3348   ac_save_IFS=$IFS; IFS=$ac_path_separator
3349 ac_dummy="$PATH"
3350 for ac_dir in $ac_dummy; do
3351   IFS=$ac_save_IFS
3352   test -z "$ac_dir" && ac_dir=.
3353   $as_executable_p "$ac_dir/$ac_word" || continue
3354 ac_cv_prog_BUILD_CC="$ac_prog"
3355 echo "$as_me:3355: found $ac_dir/$ac_word" >&5
3356 break
3357 done
3358
3359 fi
3360 fi
3361 BUILD_CC=$ac_cv_prog_BUILD_CC
3362 if test -n "$BUILD_CC"; then
3363   echo "$as_me:3363: result: $BUILD_CC" >&5
3364 echo "${ECHO_T}$BUILD_CC" >&6
3365 else
3366   echo "$as_me:3366: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3368 fi
3369
3370   test -n "$BUILD_CC" && break
3371 done
3372
3373 fi;
3374         echo "$as_me:3374: checking for native build C compiler" >&5
3375 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3376         echo "$as_me:3376: result: $BUILD_CC" >&5
3377 echo "${ECHO_T}$BUILD_CC" >&6
3378
3379         echo "$as_me:3379: checking for native build C preprocessor" >&5
3380 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3381
3382 # Check whether --with-build-cpp or --without-build-cpp was given.
3383 if test "${with_build_cpp+set}" = set; then
3384   withval="$with_build_cpp"
3385   BUILD_CPP="$withval"
3386 else
3387   BUILD_CPP='${BUILD_CC} -E'
3388 fi;
3389         echo "$as_me:3389: result: $BUILD_CPP" >&5
3390 echo "${ECHO_T}$BUILD_CPP" >&6
3391
3392         echo "$as_me:3392: checking for native build C flags" >&5
3393 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3394
3395 # Check whether --with-build-cflags or --without-build-cflags was given.
3396 if test "${with_build_cflags+set}" = set; then
3397   withval="$with_build_cflags"
3398   BUILD_CFLAGS="$withval"
3399 fi;
3400         echo "$as_me:3400: result: $BUILD_CFLAGS" >&5
3401 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3402
3403         echo "$as_me:3403: checking for native build C preprocessor-flags" >&5
3404 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3405
3406 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3407 if test "${with_build_cppflags+set}" = set; then
3408   withval="$with_build_cppflags"
3409   BUILD_CPPFLAGS="$withval"
3410 fi;
3411         echo "$as_me:3411: result: $BUILD_CPPFLAGS" >&5
3412 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3413
3414         echo "$as_me:3414: checking for native build linker-flags" >&5
3415 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3416
3417 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3418 if test "${with_build_ldflags+set}" = set; then
3419   withval="$with_build_ldflags"
3420   BUILD_LDFLAGS="$withval"
3421 fi;
3422         echo "$as_me:3422: result: $BUILD_LDFLAGS" >&5
3423 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3424
3425         echo "$as_me:3425: checking for native build linker-libraries" >&5
3426 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3427
3428 # Check whether --with-build-libs or --without-build-libs was given.
3429 if test "${with_build_libs+set}" = set; then
3430   withval="$with_build_libs"
3431   BUILD_LIBS="$withval"
3432 fi;
3433         echo "$as_me:3433: result: $BUILD_LIBS" >&5
3434 echo "${ECHO_T}$BUILD_LIBS" >&6
3435
3436         # this assumes we're on Unix.
3437         BUILD_EXEEXT=
3438         BUILD_OBJEXT=o
3439
3440         : ${BUILD_CC:='${CC}'}
3441
3442         if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3443                 { { echo "$as_me:3443: error: Cross-build requires two compilers.
3444 Use --with-build-cc to specify the native compiler." >&5
3445 echo "$as_me: error: Cross-build requires two compilers.
3446 Use --with-build-cc to specify the native compiler." >&2;}
3447    { (exit 1); exit 1; }; }
3448         fi
3449
3450 else
3451         : ${BUILD_CC:='${CC}'}
3452         : ${BUILD_CPP:='${CPP}'}
3453         : ${BUILD_CFLAGS:='${CFLAGS}'}
3454         : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3455         : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3456         : ${BUILD_LIBS:='${LIBS}'}
3457         : ${BUILD_EXEEXT:='$x'}
3458         : ${BUILD_OBJEXT:='o'}
3459 fi
3460
3461 ###############################################################################
3462
3463 ### Options to allow the user to specify the set of libraries which are used.
3464 ### Use "--without-normal --with-shared" to allow the default model to be
3465 ### shared, for example.
3466 cf_list_models=""
3467
3468 echo "$as_me:3468: checking if you want to build shared C-objects" >&5
3469 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3470
3471 # Check whether --with-shared or --without-shared was given.
3472 if test "${with_shared+set}" = set; then
3473   withval="$with_shared"
3474   with_shared=$withval
3475 else
3476   with_shared=no
3477 fi;
3478 echo "$as_me:3478: result: $with_shared" >&5
3479 echo "${ECHO_T}$with_shared" >&6
3480 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3481
3482 echo "$as_me:3482: checking for specified models" >&5
3483 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3484 test -z "$cf_list_models" && cf_list_models=normal
3485 echo "$as_me:3485: result: $cf_list_models" >&5
3486 echo "${ECHO_T}$cf_list_models" >&6
3487
3488 ### Use the first model as the default, and save its suffix for use in building
3489 ### up test-applications.
3490 echo "$as_me:3490: checking for default model" >&5
3491 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3492 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3493 echo "$as_me:3493: result: $DFT_LWR_MODEL" >&5
3494 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3495
3496 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3497
3498 echo "$as_me:3498: checking for specific curses-directory" >&5
3499 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3500
3501 # Check whether --with-curses-dir or --without-curses-dir was given.
3502 if test "${with_curses_dir+set}" = set; then
3503   withval="$with_curses_dir"
3504   cf_cv_curses_dir=$withval
3505 else
3506   cf_cv_curses_dir=no
3507 fi;
3508 echo "$as_me:3508: result: $cf_cv_curses_dir" >&5
3509 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3510
3511 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3512 then
3513
3514 if test "x$prefix" != xNONE; then
3515   cf_path_syntax="$prefix"
3516 else
3517   cf_path_syntax="$ac_default_prefix"
3518 fi
3519
3520 case ".$withval" in #(vi
3521 .\$\(*\)*|.\'*\'*) #(vi
3522   ;;
3523 ..|./*|.\\*) #(vi
3524   ;;
3525 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3526   ;;
3527 .\${*prefix}*|.\${*dir}*) #(vi
3528   eval withval="$withval"
3529   case ".$withval" in #(vi
3530   .NONE/*)
3531     withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3532     ;;
3533   esac
3534   ;; #(vi
3535 .no|.NONE/*)
3536   withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3537   ;;
3538 *)
3539   { { echo "$as_me:3539: error: expected a pathname, not \"$withval\"" >&5
3540 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3541    { (exit 1); exit 1; }; }
3542   ;;
3543 esac
3544
3545         if test -d "$cf_cv_curses_dir"
3546         then
3547
3548 if test -n "$cf_cv_curses_dir/include" ; then
3549   for cf_add_incdir in $cf_cv_curses_dir/include
3550   do
3551         while test $cf_add_incdir != /usr/include
3552         do
3553           if test -d $cf_add_incdir
3554           then
3555                 cf_have_incdir=no
3556                 if test -n "$CFLAGS$CPPFLAGS" ; then
3557                   # a loop is needed to ensure we can add subdirs of existing dirs
3558                   for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
3559                         if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
3560                           cf_have_incdir=yes; break
3561                         fi
3562                   done
3563                 fi
3564
3565                 if test "$cf_have_incdir" = no ; then
3566                   if test "$cf_add_incdir" = /usr/local/include ; then
3567                         if test "$GCC" = yes
3568                         then
3569                           cf_save_CPPFLAGS=$CPPFLAGS
3570                           CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3571                           cat >conftest.$ac_ext <<_ACEOF
3572 #line 3572 "configure"
3573 #include "confdefs.h"
3574 #include <stdio.h>
3575 int
3576 main ()
3577 {
3578 printf("Hello")
3579   ;
3580   return 0;
3581 }
3582 _ACEOF
3583 rm -f conftest.$ac_objext
3584 if { (eval echo "$as_me:3584: \"$ac_compile\"") >&5
3585   (eval $ac_compile) 2>&5
3586   ac_status=$?
3587   echo "$as_me:3587: \$? = $ac_status" >&5
3588   (exit $ac_status); } &&
3589          { ac_try='test -s conftest.$ac_objext'
3590   { (eval echo "$as_me:3590: \"$ac_try\"") >&5
3591   (eval $ac_try) 2>&5
3592   ac_status=$?
3593   echo "$as_me:3593: \$? = $ac_status" >&5
3594   (exit $ac_status); }; }; then
3595   :
3596 else
3597   echo "$as_me: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3599 cf_have_incdir=yes
3600 fi
3601 rm -f conftest.$ac_objext conftest.$ac_ext
3602                           CPPFLAGS=$cf_save_CPPFLAGS
3603                         fi
3604                   fi
3605                 fi
3606
3607                 if test "$cf_have_incdir" = no ; then
3608                   test -n "$verbose" && echo "  adding $cf_add_incdir to include-path" 1>&6
3609
3610 echo "${as_me:-configure}:3610: testing adding $cf_add_incdir to include-path ..." 1>&5
3611
3612                   CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3613
3614                   cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
3615                   test "$cf_top_incdir" = "$cf_add_incdir" && break
3616                   cf_add_incdir="$cf_top_incdir"
3617                 else
3618                   break
3619                 fi
3620           fi
3621         done
3622   done
3623 fi
3624
3625 if test -n "$cf_cv_curses_dir/lib" ; then
3626   for cf_add_libdir in $cf_cv_curses_dir/lib
3627   do
3628     if test $cf_add_libdir = /usr/lib ; then
3629       :
3630     elif test -d $cf_add_libdir
3631     then
3632       cf_have_libdir=no
3633       if test -n "$LDFLAGS$LIBS" ; then
3634         # a loop is needed to ensure we can add subdirs of existing dirs
3635         for cf_test_libdir in $LDFLAGS $LIBS ; do
3636           if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
3637             cf_have_libdir=yes; break
3638           fi
3639         done
3640       fi
3641       if test "$cf_have_libdir" = no ; then
3642         test -n "$verbose" && echo "    adding $cf_add_libdir to library-path" 1>&6
3643
3644 echo "${as_me:-configure}:3644: testing adding $cf_add_libdir to library-path ..." 1>&5
3645
3646         LDFLAGS="-L$cf_add_libdir $LDFLAGS"
3647       fi
3648     fi
3649   done
3650 fi
3651
3652         fi
3653 fi
3654
3655 echo "$as_me:3655: checking if you want wide-character code" >&5
3656 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
3657
3658 # Check whether --enable-widec or --disable-widec was given.
3659 if test "${enable_widec+set}" = set; then
3660   enableval="$enable_widec"
3661   with_widec=$enableval
3662 else
3663   with_widec=no
3664 fi;
3665 echo "$as_me:3665: result: $with_widec" >&5
3666 echo "${ECHO_T}$with_widec" >&6
3667 if test "$with_widec" = yes ; then
3668
3669 echo "$as_me:3669: checking for multibyte character support" >&5
3670 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
3671 if test "${cf_cv_utf8_lib+set}" = set; then
3672   echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674
3675         cf_save_LIBS="$LIBS"
3676         cat >conftest.$ac_ext <<_ACEOF
3677 #line 3677 "configure"
3678 #include "confdefs.h"
3679
3680 #include <stdlib.h>
3681 int
3682 main ()
3683 {
3684 putwc(0,0);
3685   ;
3686   return 0;
3687 }
3688 _ACEOF
3689 rm -f conftest.$ac_objext conftest$ac_exeext
3690 if { (eval echo "$as_me:3690: \"$ac_link\"") >&5
3691   (eval $ac_link) 2>&5
3692   ac_status=$?
3693   echo "$as_me:3693: \$? = $ac_status" >&5
3694   (exit $ac_status); } &&
3695          { ac_try='test -s conftest$ac_exeext'
3696   { (eval echo "$as_me:3696: \"$ac_try\"") >&5
3697   (eval $ac_try) 2>&5
3698   ac_status=$?
3699   echo "$as_me:3699: \$? = $ac_status" >&5
3700   (exit $ac_status); }; }; then
3701   cf_cv_utf8_lib=yes
3702 else
3703   echo "$as_me: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3705
3706 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
3707 # will be set on completion of the AC_TRY_LINK below.
3708 cf_cv_header_path_utf8=
3709 cf_cv_library_path_utf8=
3710
3711 echo "${as_me:-configure}:3711: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
3712
3713 cf_save_LIBS="$LIBS"
3714
3715 cat >conftest.$ac_ext <<_ACEOF
3716 #line 3716 "configure"
3717 #include "confdefs.h"
3718
3719 #include <libutf8.h>
3720 int
3721 main ()
3722 {
3723 putwc(0,0);
3724   ;
3725   return 0;
3726 }
3727 _ACEOF
3728 rm -f conftest.$ac_objext conftest$ac_exeext
3729 if { (eval echo "$as_me:3729: \"$ac_link\"") >&5
3730   (eval $ac_link) 2>&5
3731   ac_status=$?
3732   echo "$as_me:3732: \$? = $ac_status" >&5
3733   (exit $ac_status); } &&
3734          { ac_try='test -s conftest$ac_exeext'
3735   { (eval echo "$as_me:3735: \"$ac_try\"") >&5
3736   (eval $ac_try) 2>&5
3737   ac_status=$?
3738   echo "$as_me:3738: \$? = $ac_status" >&5
3739   (exit $ac_status); }; }; then
3740
3741         cf_cv_find_linkage_utf8=yes
3742         cf_cv_header_path_utf8=/usr/include
3743         cf_cv_library_path_utf8=/usr/lib
3744
3745 else
3746   echo "$as_me: failed program was:" >&5
3747 cat conftest.$ac_ext >&5
3748
3749 LIBS="-lutf8  $cf_save_LIBS"
3750
3751 cat >conftest.$ac_ext <<_ACEOF
3752 #line 3752 "configure"
3753 #include "confdefs.h"
3754
3755 #include <libutf8.h>
3756 int
3757 main ()
3758 {
3759 putwc(0,0);
3760   ;
3761   return 0;
3762 }
3763 _ACEOF
3764 rm -f conftest.$ac_objext conftest$ac_exeext
3765 if { (eval echo "$as_me:3765: \"$ac_link\"") >&5
3766   (eval $ac_link) 2>&5
3767   ac_status=$?
3768   echo "$as_me:3768: \$? = $ac_status" >&5
3769   (exit $ac_status); } &&
3770          { ac_try='test -s conftest$ac_exeext'
3771   { (eval echo "$as_me:3771: \"$ac_try\"") >&5
3772   (eval $ac_try) 2>&5
3773   ac_status=$?
3774   echo "$as_me:3774: \$? = $ac_status" >&5
3775   (exit $ac_status); }; }; then
3776
3777         cf_cv_find_linkage_utf8=yes
3778         cf_cv_header_path_utf8=/usr/include
3779         cf_cv_library_path_utf8=/usr/lib
3780         cf_cv_library_file_utf8="-lutf8"
3781
3782 else
3783   echo "$as_me: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3785
3786         cf_cv_find_linkage_utf8=no
3787         LIBS="$cf_save_LIBS"
3788
3789     test -n "$verbose" && echo "        find linkage for utf8 library" 1>&6
3790
3791 echo "${as_me:-configure}:3791: testing find linkage for utf8 library ..." 1>&5
3792
3793 echo "${as_me:-configure}:3793: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
3794
3795     cf_save_CPPFLAGS="$CPPFLAGS"
3796     cf_test_CPPFLAGS="$CPPFLAGS"
3797
3798 cf_search=
3799
3800 # collect the current set of include-directories from compiler flags
3801 cf_header_path_list=""
3802 if test -n "${CFLAGS}${CPPFLAGS}" ; then
3803         for cf_header_path in $CPPFLAGS $CFLAGS
3804         do
3805                 case $cf_header_path in #(vi
3806                 -I*)
3807                         cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
3808
3809 test "$cf_header_path" != "NONE" && \
3810 test -d "$cf_header_path" && \
3811  {
3812         test -n "$verbose" && echo "    ... testing for include-directories under $cf_header_path"
3813         test -d $cf_header_path/include &&          cf_search="$cf_search $cf_header_path/include"
3814         test -d $cf_header_path/include/utf8 &&       cf_search="$cf_search $cf_header_path/include/utf8"
3815         test -d $cf_header_path/include/utf8/include &&    cf_search="$cf_search $cf_header_path/include/utf8/include"
3816         test -d $cf_header_path/utf8/include &&       cf_search="$cf_search $cf_header_path/utf8/include"
3817         test -d $cf_header_path/utf8/include/utf8 &&    cf_search="$cf_search $cf_header_path/utf8/include/utf8"
3818 }
3819
3820                         cf_header_path_list="$cf_header_path_list $cf_search"
3821                         ;;
3822                 esac
3823         done
3824 fi
3825
3826 # add the variations for the package we are looking for
3827
3828 cf_search=
3829
3830 test "/usr" != "$prefix" && \
3831 test -d "/usr" && \
3832 (test $prefix = NONE || test "/usr" != "$prefix") && {
3833         test -n "$verbose" && echo "    ... testing for include-directories under /usr"
3834         test -d /usr/include &&          cf_search="$cf_search /usr/include"
3835         test -d /usr/include/utf8 &&       cf_search="$cf_search /usr/include/utf8"
3836         test -d /usr/include/utf8/include &&    cf_search="$cf_search /usr/include/utf8/include"
3837         test -d /usr/utf8/include &&       cf_search="$cf_search /usr/utf8/include"
3838         test -d /usr/utf8/include/utf8 &&    cf_search="$cf_search /usr/utf8/include/utf8"
3839 }
3840
3841 test "$prefix" != "NONE" && \
3842 test -d "$prefix" && \
3843  {
3844         test -n "$verbose" && echo "    ... testing for include-directories under $prefix"
3845         test -d $prefix/include &&          cf_search="$cf_search $prefix/include"
3846         test -d $prefix/include/utf8 &&       cf_search="$cf_search $prefix/include/utf8"
3847         test -d $prefix/include/utf8/include &&    cf_search="$cf_search $prefix/include/utf8/include"
3848         test -d $prefix/utf8/include &&       cf_search="$cf_search $prefix/utf8/include"
3849         test -d $prefix/utf8/include/utf8 &&    cf_search="$cf_search $prefix/utf8/include/utf8"
3850 }
3851
3852 test "/usr/local" != "$prefix" && \
3853 test -d "/usr/local" && \
3854 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
3855         test -n "$verbose" && echo "    ... testing for include-directories under /usr/local"
3856         test -d /usr/local/include &&          cf_search="$cf_search /usr/local/include"
3857         test -d /usr/local/include/utf8 &&       cf_search="$cf_search /usr/local/include/utf8"
3858         test -d /usr/local/include/utf8/include &&    cf_search="$cf_search /usr/local/include/utf8/include"
3859         test -d /usr/local/utf8/include &&       cf_search="$cf_search /usr/local/utf8/include"
3860         test -d /usr/local/utf8/include/utf8 &&    cf_search="$cf_search /usr/local/utf8/include/utf8"
3861 }
3862
3863 test "/opt" != "$prefix" && \
3864 test -d "/opt" && \
3865 (test $prefix = NONE || test "/opt" != "$prefix") && {
3866         test -n "$verbose" && echo "    ... testing for include-directories under /opt"
3867         test -d /opt/include &&          cf_search="$cf_search /opt/include"
3868         test -d /opt/include/utf8 &&       cf_search="$cf_search /opt/include/utf8"
3869         test -d /opt/include/utf8/include &&    cf_search="$cf_search /opt/include/utf8/include"
3870         test -d /opt/utf8/include &&       cf_search="$cf_search /opt/utf8/include"
3871         test -d /opt/utf8/include/utf8 &&    cf_search="$cf_search /opt/utf8/include/utf8"
3872 }
3873
3874 test "$HOME" != "$prefix" && \
3875 test -d "$HOME" && \
3876 (test $prefix = NONE || test "$HOME" != "$prefix") && {
3877         test -n "$verbose" && echo "    ... testing for include-directories under $HOME"
3878         test -d $HOME/include &&          cf_search="$cf_search $HOME/include"
3879         test -d $HOME/include/utf8 &&       cf_search="$cf_search $HOME/include/utf8"
3880         test -d $HOME/include/utf8/include &&    cf_search="$cf_search $HOME/include/utf8/include"
3881         test -d $HOME/utf8/include &&       cf_search="$cf_search $HOME/utf8/include"
3882         test -d $HOME/utf8/include/utf8 &&    cf_search="$cf_search $HOME/utf8/include/utf8"
3883 }
3884
3885 test "$includedir" != NONE && \
3886 test "$includedir" != "/usr/include" && \
3887 test -d "$includedir" && {
3888         test -d $includedir &&    cf_search="$cf_search $includedir"
3889         test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
3890 }
3891
3892 test "$oldincludedir" != NONE && \
3893 test "$oldincludedir" != "/usr/include" && \
3894 test -d "$oldincludedir" && {
3895         test -d $oldincludedir    && cf_search="$cf_search $oldincludedir"
3896         test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
3897 }
3898
3899 cf_search="$cf_search $cf_header_path_list"
3900
3901     for cf_cv_header_path_utf8 in $cf_search
3902     do
3903       if test -d $cf_cv_header_path_utf8 ; then
3904         test -n "$verbose" && echo "    ... testing $cf_cv_header_path_utf8" 1>&6
3905
3906 echo "${as_me:-configure}:3906: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
3907
3908         CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
3909         cat >conftest.$ac_ext <<_ACEOF
3910 #line 3910 "configure"
3911 #include "confdefs.h"
3912
3913 #include <libutf8.h>
3914 int
3915 main ()
3916 {
3917 putwc(0,0);
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 rm -f conftest.$ac_objext
3923 if { (eval echo "$as_me:3923: \"$ac_compile\"") >&5
3924   (eval $ac_compile) 2>&5
3925   ac_status=$?
3926   echo "$as_me:3926: \$? = $ac_status" >&5
3927   (exit $ac_status); } &&
3928          { ac_try='test -s conftest.$ac_objext'
3929   { (eval echo "$as_me:3929: \"$ac_try\"") >&5
3930   (eval $ac_try) 2>&5
3931   ac_status=$?
3932   echo "$as_me:3932: \$? = $ac_status" >&5
3933   (exit $ac_status); }; }; then
3934
3935             test -n "$verbose" && echo "        ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
3936
3937 echo "${as_me:-configure}:3937: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
3938
3939             cf_cv_find_linkage_utf8=maybe