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