]> git.deb.at Git - pkg/abook.git/blob - configure
wide character support
[pkg/abook.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="abook.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846   cat <<\_ACEOF
847
848 Optional Features:
849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851   --disable-dependency-tracking Speeds up one-time builds
852   --enable-dependency-tracking  Do not reject slow dependency extractors
853   --enable-widec          Enable wide character support (experimental)
854   --enable-debug          Enable debugging support
855
856 Optional Packages:
857   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
858   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
859   --with-curses=DIR       Where ncurses is installed
860   --with-readline=DIR     Where readline is installed
861
862 Some influential environment variables:
863   CC          C compiler command
864   CFLAGS      C compiler flags
865   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
866               nonstandard directory <lib dir>
867   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
868               headers in a nonstandard directory <include dir>
869   CPP         C preprocessor
870
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
873
874 _ACEOF
875 fi
876
877 if test "$ac_init_help" = "recursive"; then
878   # If there are subdirs, report their specific --help.
879   ac_popdir=`pwd`
880   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881     test -d $ac_dir || continue
882     ac_builddir=.
883
884 if test "$ac_dir" != .; then
885   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886   # A "../" for each directory in $ac_dir_suffix.
887   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889   ac_dir_suffix= ac_top_builddir=
890 fi
891
892 case $srcdir in
893   .)  # No --srcdir option.  We are building in place.
894     ac_srcdir=.
895     if test -z "$ac_top_builddir"; then
896        ac_top_srcdir=.
897     else
898        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899     fi ;;
900   [\\/]* | ?:[\\/]* )  # Absolute path.
901     ac_srcdir=$srcdir$ac_dir_suffix;
902     ac_top_srcdir=$srcdir ;;
903   *) # Relative path.
904     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905     ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 # absolute.
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913
914     cd $ac_dir
915     # Check for guested configure; otherwise get Cygnus style configure.
916     if test -f $ac_srcdir/configure.gnu; then
917       echo
918       $SHELL $ac_srcdir/configure.gnu  --help=recursive
919     elif test -f $ac_srcdir/configure; then
920       echo
921       $SHELL $ac_srcdir/configure  --help=recursive
922     elif test -f $ac_srcdir/configure.ac ||
923            test -f $ac_srcdir/configure.in; then
924       echo
925       $ac_configure --help
926     else
927       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928     fi
929     cd $ac_popdir
930   done
931 fi
932
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
935   cat <<\_ACEOF
936
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
941 _ACEOF
942   exit 0
943 fi
944 exec 5>config.log
945 cat >&5 <<_ACEOF
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
948
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.57.  Invocation command line was
951
952   $ $0 $@
953
954 _ACEOF
955 {
956 cat <<_ASUNAME
957 ## --------- ##
958 ## Platform. ##
959 ## --------- ##
960
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
969
970 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
971 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
974 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
975 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
976 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
977
978 _ASUNAME
979
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 for as_dir in $PATH
982 do
983   IFS=$as_save_IFS
984   test -z "$as_dir" && as_dir=.
985   echo "PATH: $as_dir"
986 done
987
988 } >&5
989
990 cat >&5 <<_ACEOF
991
992
993 ## ----------- ##
994 ## Core tests. ##
995 ## ----------- ##
996
997 _ACEOF
998
999
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Strip out --silent because we don't want to record it for future runs.
1003 # Also quote any args containing shell meta-characters.
1004 # Make two passes to allow for proper duplicate-argument suppression.
1005 ac_configure_args=
1006 ac_configure_args0=
1007 ac_configure_args1=
1008 ac_sep=
1009 ac_must_keep_next=false
1010 for ac_pass in 1 2
1011 do
1012   for ac_arg
1013   do
1014     case $ac_arg in
1015     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017     | -silent | --silent | --silen | --sile | --sil)
1018       continue ;;
1019     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021     esac
1022     case $ac_pass in
1023     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1024     2)
1025       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026       if test $ac_must_keep_next = true; then
1027         ac_must_keep_next=false # Got value, back to normal.
1028       else
1029         case $ac_arg in
1030           *=* | --config-cache | -C | -disable-* | --disable-* \
1031           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033           | -with-* | --with-* | -without-* | --without-* | --x)
1034             case "$ac_configure_args0 " in
1035               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036             esac
1037             ;;
1038           -* ) ac_must_keep_next=true ;;
1039         esac
1040       fi
1041       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042       # Get rid of the leading space.
1043       ac_sep=" "
1044       ;;
1045     esac
1046   done
1047 done
1048 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1050
1051 # When interrupted or exit'd, cleanup temporary files, and complete
1052 # config.log.  We remove comments because anyway the quotes in there
1053 # would cause problems or look ugly.
1054 # WARNING: Be sure not to use single quotes in there, as some shells,
1055 # such as our DU 5.0 friend, will then `close' the trap.
1056 trap 'exit_status=$?
1057   # Save into config.log some information that might help in debugging.
1058   {
1059     echo
1060
1061     cat <<\_ASBOX
1062 ## ---------------- ##
1063 ## Cache variables. ##
1064 ## ---------------- ##
1065 _ASBOX
1066     echo
1067     # The following way of writing the cache mishandles newlines in values,
1068 {
1069   (set) 2>&1 |
1070     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071     *ac_space=\ *)
1072       sed -n \
1073         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075       ;;
1076     *)
1077       sed -n \
1078         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1079       ;;
1080     esac;
1081 }
1082     echo
1083
1084     cat <<\_ASBOX
1085 ## ----------------- ##
1086 ## Output variables. ##
1087 ## ----------------- ##
1088 _ASBOX
1089     echo
1090     for ac_var in $ac_subst_vars
1091     do
1092       eval ac_val=$`echo $ac_var`
1093       echo "$ac_var='"'"'$ac_val'"'"'"
1094     done | sort
1095     echo
1096
1097     if test -n "$ac_subst_files"; then
1098       cat <<\_ASBOX
1099 ## ------------- ##
1100 ## Output files. ##
1101 ## ------------- ##
1102 _ASBOX
1103       echo
1104       for ac_var in $ac_subst_files
1105       do
1106         eval ac_val=$`echo $ac_var`
1107         echo "$ac_var='"'"'$ac_val'"'"'"
1108       done | sort
1109       echo
1110     fi
1111
1112     if test -s confdefs.h; then
1113       cat <<\_ASBOX
1114 ## ----------- ##
1115 ## confdefs.h. ##
1116 ## ----------- ##
1117 _ASBOX
1118       echo
1119       sed "/^$/d" confdefs.h | sort
1120       echo
1121     fi
1122     test "$ac_signal" != 0 &&
1123       echo "$as_me: caught signal $ac_signal"
1124     echo "$as_me: exit $exit_status"
1125   } >&5
1126   rm -f core core.* *.core &&
1127   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128     exit $exit_status
1129      ' 0
1130 for ac_signal in 1 2 13 15; do
1131   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 done
1133 ac_signal=0
1134
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 echo >confdefs.h
1139
1140 # Predefined preprocessor variables.
1141
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 _ACEOF
1145
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 _ACEOF
1165
1166
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170   if test "x$prefix" != xNONE; then
1171     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172   else
1173     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1174   fi
1175 fi
1176 for ac_site_file in $CONFIG_SITE; do
1177   if test -r "$ac_site_file"; then
1178     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180     sed 's/^/| /' "$ac_site_file" >&5
1181     . "$ac_site_file"
1182   fi
1183 done
1184
1185 if test -r "$cache_file"; then
1186   # Some versions of bash will fail to source /dev/null (special
1187   # files actually), so we avoid doing that.
1188   if test -f "$cache_file"; then
1189     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1191     case $cache_file in
1192       [\\/]* | ?:[\\/]* ) . $cache_file;;
1193       *)                      . ./$cache_file;;
1194     esac
1195   fi
1196 else
1197   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1199   >$cache_file
1200 fi
1201
1202 # Check that the precious variables saved in the cache have kept the same
1203 # value.
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208   eval ac_new_set=\$ac_env_${ac_var}_set
1209   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210   eval ac_new_val="\$ac_env_${ac_var}_value"
1211   case $ac_old_set,$ac_new_set in
1212     set,)
1213       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215       ac_cache_corrupted=: ;;
1216     ,set)
1217       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219       ac_cache_corrupted=: ;;
1220     ,);;
1221     *)
1222       if test "x$ac_old_val" != "x$ac_new_val"; then
1223         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1226 echo "$as_me:   former value:  $ac_old_val" >&2;}
1227         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1228 echo "$as_me:   current value: $ac_new_val" >&2;}
1229         ac_cache_corrupted=:
1230       fi;;
1231   esac
1232   # Pass precious variables to config.status.
1233   if test "$ac_new_set" = set; then
1234     case $ac_new_val in
1235     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237     *) ac_arg=$ac_var=$ac_new_val ;;
1238     esac
1239     case " $ac_configure_args " in
1240       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1241       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242     esac
1243   fi
1244 done
1245 if $ac_cache_corrupted; then
1246   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250    { (exit 1); exit 1; }; }
1251 fi
1252
1253 ac_ext=c
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277 am__api_version="1.7"
1278 ac_aux_dir=
1279 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1280   if test -f $ac_dir/install-sh; then
1281     ac_aux_dir=$ac_dir
1282     ac_install_sh="$ac_aux_dir/install-sh -c"
1283     break
1284   elif test -f $ac_dir/install.sh; then
1285     ac_aux_dir=$ac_dir
1286     ac_install_sh="$ac_aux_dir/install.sh -c"
1287     break
1288   elif test -f $ac_dir/shtool; then
1289     ac_aux_dir=$ac_dir
1290     ac_install_sh="$ac_aux_dir/shtool install -c"
1291     break
1292   fi
1293 done
1294 if test -z "$ac_aux_dir"; then
1295   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1296 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1297    { (exit 1); exit 1; }; }
1298 fi
1299 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1300 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1301 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1302
1303 # Find a good install program.  We prefer a C program (faster),
1304 # so one script is as good as another.  But avoid the broken or
1305 # incompatible versions:
1306 # SysV /etc/install, /usr/sbin/install
1307 # SunOS /usr/etc/install
1308 # IRIX /sbin/install
1309 # AIX /bin/install
1310 # AmigaOS /C/install, which installs bootblocks on floppy discs
1311 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1312 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1313 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1314 # ./install, which can be erroneously created by make from ./install.sh.
1315 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1316 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1317 if test -z "$INSTALL"; then
1318 if test "${ac_cv_path_install+set}" = set; then
1319   echo $ECHO_N "(cached) $ECHO_C" >&6
1320 else
1321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1322 for as_dir in $PATH
1323 do
1324   IFS=$as_save_IFS
1325   test -z "$as_dir" && as_dir=.
1326   # Account for people who put trailing slashes in PATH elements.
1327 case $as_dir/ in
1328   ./ | .// | /cC/* | \
1329   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1330   /usr/ucb/* ) ;;
1331   *)
1332     # OSF1 and SCO ODT 3.0 have their own names for install.
1333     # Don't use installbsd from OSF since it installs stuff as root
1334     # by default.
1335     for ac_prog in ginstall scoinst install; do
1336       for ac_exec_ext in '' $ac_executable_extensions; do
1337         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1338           if test $ac_prog = install &&
1339             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1340             # AIX install.  It has an incompatible calling convention.
1341             :
1342           elif test $ac_prog = install &&
1343             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1344             # program-specific install script used by HP pwplus--don't use.
1345             :
1346           else
1347             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1348             break 3
1349           fi
1350         fi
1351       done
1352     done
1353     ;;
1354 esac
1355 done
1356
1357
1358 fi
1359   if test "${ac_cv_path_install+set}" = set; then
1360     INSTALL=$ac_cv_path_install
1361   else
1362     # As a last resort, use the slow shell script.  We don't cache a
1363     # path for INSTALL within a source directory, because that will
1364     # break other packages using the cache if that directory is
1365     # removed, or if the path is relative.
1366     INSTALL=$ac_install_sh
1367   fi
1368 fi
1369 echo "$as_me:$LINENO: result: $INSTALL" >&5
1370 echo "${ECHO_T}$INSTALL" >&6
1371
1372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1373 # It thinks the first close brace ends the variable substitution.
1374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1375
1376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1377
1378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1379
1380 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1381 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1382 # Just in case
1383 sleep 1
1384 echo timestamp > conftest.file
1385 # Do `set' in a subshell so we don't clobber the current shell's
1386 # arguments.  Must try -L first in case configure is actually a
1387 # symlink; some systems play weird games with the mod time of symlinks
1388 # (eg FreeBSD returns the mod time of the symlink's containing
1389 # directory).
1390 if (
1391    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1392    if test "$*" = "X"; then
1393       # -L didn't work.
1394       set X `ls -t $srcdir/configure conftest.file`
1395    fi
1396    rm -f conftest.file
1397    if test "$*" != "X $srcdir/configure conftest.file" \
1398       && test "$*" != "X conftest.file $srcdir/configure"; then
1399
1400       # If neither matched, then we have a broken ls.  This can happen
1401       # if, for instance, CONFIG_SHELL is bash and it inherits a
1402       # broken ls alias from the environment.  This has actually
1403       # happened.  Such a system could not be considered "sane".
1404       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1405 alias in your environment" >&5
1406 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1407 alias in your environment" >&2;}
1408    { (exit 1); exit 1; }; }
1409    fi
1410
1411    test "$2" = conftest.file
1412    )
1413 then
1414    # Ok.
1415    :
1416 else
1417    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1418 Check your system clock" >&5
1419 echo "$as_me: error: newly created file is older than distributed files!
1420 Check your system clock" >&2;}
1421    { (exit 1); exit 1; }; }
1422 fi
1423 echo "$as_me:$LINENO: result: yes" >&5
1424 echo "${ECHO_T}yes" >&6
1425 test "$program_prefix" != NONE &&
1426   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1427 # Use a double $ so make ignores it.
1428 test "$program_suffix" != NONE &&
1429   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1430 # Double any \ or $.  echo might interpret backslashes.
1431 # By default was `s,x,x', remove it if useless.
1432 cat <<\_ACEOF >conftest.sed
1433 s/[\\$]/&&/g;s/;s,x,x,$//
1434 _ACEOF
1435 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1436 rm conftest.sed
1437
1438
1439 # expand $ac_aux_dir to an absolute path
1440 am_aux_dir=`cd $ac_aux_dir && pwd`
1441
1442 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1443 # Use eval to expand $SHELL
1444 if eval "$MISSING --run true"; then
1445   am_missing_run="$MISSING --run "
1446 else
1447   am_missing_run=
1448   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1449 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1450 fi
1451
1452 for ac_prog in gawk mawk nawk awk
1453 do
1454   # Extract the first word of "$ac_prog", so it can be a program name with args.
1455 set dummy $ac_prog; ac_word=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_AWK+set}" = set; then
1459   echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461   if test -n "$AWK"; then
1462   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1463 else
1464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465 for as_dir in $PATH
1466 do
1467   IFS=$as_save_IFS
1468   test -z "$as_dir" && as_dir=.
1469   for ac_exec_ext in '' $ac_executable_extensions; do
1470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471     ac_cv_prog_AWK="$ac_prog"
1472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473     break 2
1474   fi
1475 done
1476 done
1477
1478 fi
1479 fi
1480 AWK=$ac_cv_prog_AWK
1481 if test -n "$AWK"; then
1482   echo "$as_me:$LINENO: result: $AWK" >&5
1483 echo "${ECHO_T}$AWK" >&6
1484 else
1485   echo "$as_me:$LINENO: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1487 fi
1488
1489   test -n "$AWK" && break
1490 done
1491
1492 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1493 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1494 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1495 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1496   echo $ECHO_N "(cached) $ECHO_C" >&6
1497 else
1498   cat >conftest.make <<\_ACEOF
1499 all:
1500         @echo 'ac_maketemp="$(MAKE)"'
1501 _ACEOF
1502 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1503 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1504 if test -n "$ac_maketemp"; then
1505   eval ac_cv_prog_make_${ac_make}_set=yes
1506 else
1507   eval ac_cv_prog_make_${ac_make}_set=no
1508 fi
1509 rm -f conftest.make
1510 fi
1511 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1512   echo "$as_me:$LINENO: result: yes" >&5
1513 echo "${ECHO_T}yes" >&6
1514   SET_MAKE=
1515 else
1516   echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1518   SET_MAKE="MAKE=${MAKE-make}"
1519 fi
1520
1521 rm -rf .tst 2>/dev/null
1522 mkdir .tst 2>/dev/null
1523 if test -d .tst; then
1524   am__leading_dot=.
1525 else
1526   am__leading_dot=_
1527 fi
1528 rmdir .tst 2>/dev/null
1529
1530  # test to see if srcdir already configured
1531 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1532    test -f $srcdir/config.status; then
1533   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1534 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1535    { (exit 1); exit 1; }; }
1536 fi
1537
1538 # test whether we have cygpath
1539 if test -z "$CYGPATH_W"; then
1540   if (cygpath --version) >/dev/null 2>/dev/null; then
1541     CYGPATH_W='cygpath -w'
1542   else
1543     CYGPATH_W=echo
1544   fi
1545 fi
1546
1547
1548 # Define the identity of the package.
1549  PACKAGE=abook
1550  VERSION=0.5.2pre
1551
1552
1553 cat >>confdefs.h <<_ACEOF
1554 #define PACKAGE "$PACKAGE"
1555 _ACEOF
1556
1557
1558 cat >>confdefs.h <<_ACEOF
1559 #define VERSION "$VERSION"
1560 _ACEOF
1561
1562 # Some tools Automake needs.
1563
1564 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1565
1566
1567 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1568
1569
1570 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1571
1572
1573 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1574
1575
1576 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1577
1578
1579 AMTAR=${AMTAR-"${am_missing_run}tar"}
1580
1581 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1582
1583 # Installed binaries are usually stripped using `strip' when the user
1584 # run `make install-strip'.  However `strip' might not be the right
1585 # tool to use in cross-compilation environments, therefore Automake
1586 # will honor the `STRIP' environment variable to overrule this program.
1587 if test "$cross_compiling" != no; then
1588   if test -n "$ac_tool_prefix"; then
1589   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1590 set dummy ${ac_tool_prefix}strip; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_STRIP+set}" = set; then
1594   echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596   if test -n "$STRIP"; then
1597   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1598 else
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1601 do
1602   IFS=$as_save_IFS
1603   test -z "$as_dir" && as_dir=.
1604   for ac_exec_ext in '' $ac_executable_extensions; do
1605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608     break 2
1609   fi
1610 done
1611 done
1612
1613 fi
1614 fi
1615 STRIP=$ac_cv_prog_STRIP
1616 if test -n "$STRIP"; then
1617   echo "$as_me:$LINENO: result: $STRIP" >&5
1618 echo "${ECHO_T}$STRIP" >&6
1619 else
1620   echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1622 fi
1623
1624 fi
1625 if test -z "$ac_cv_prog_STRIP"; then
1626   ac_ct_STRIP=$STRIP
1627   # Extract the first word of "strip", so it can be a program name with args.
1628 set dummy strip; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1632   echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634   if test -n "$ac_ct_STRIP"; then
1635   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1636 else
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640   IFS=$as_save_IFS
1641   test -z "$as_dir" && as_dir=.
1642   for ac_exec_ext in '' $ac_executable_extensions; do
1643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644     ac_cv_prog_ac_ct_STRIP="strip"
1645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646     break 2
1647   fi
1648 done
1649 done
1650
1651   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1652 fi
1653 fi
1654 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1655 if test -n "$ac_ct_STRIP"; then
1656   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1657 echo "${ECHO_T}$ac_ct_STRIP" >&6
1658 else
1659   echo "$as_me:$LINENO: result: no" >&5
1660 echo "${ECHO_T}no" >&6
1661 fi
1662
1663   STRIP=$ac_ct_STRIP
1664 else
1665   STRIP="$ac_cv_prog_STRIP"
1666 fi
1667
1668 fi
1669 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1670
1671 # We need awk for the "check" target.  The system "awk" is bad on
1672 # some platforms.
1673
1674
1675
1676           ac_config_headers="$ac_config_headers config.h"
1677
1678
1679
1680 cat >>confdefs.h <<\_ACEOF
1681 #define HAVE_SNPRINTF 0
1682 _ACEOF
1683
1684
1685 cat >>confdefs.h <<\_ACEOF
1686 #define HAVE_VSNPRINTF 0
1687 _ACEOF
1688
1689
1690 cat >>confdefs.h <<\_ACEOF
1691 #define HAVE_STDARG_H 0
1692 _ACEOF
1693
1694
1695 cat >>confdefs.h <<\_ACEOF
1696 #define HAVE_NCURSES 0
1697 _ACEOF
1698
1699
1700 # Make sure we can run config.sub.
1701 $ac_config_sub sun4 >/dev/null 2>&1 ||
1702   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1703 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1704    { (exit 1); exit 1; }; }
1705
1706 echo "$as_me:$LINENO: checking build system type" >&5
1707 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1708 if test "${ac_cv_build+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   ac_cv_build_alias=$build_alias
1712 test -z "$ac_cv_build_alias" &&
1713   ac_cv_build_alias=`$ac_config_guess`
1714 test -z "$ac_cv_build_alias" &&
1715   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1716 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1717    { (exit 1); exit 1; }; }
1718 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1719   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1720 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1721    { (exit 1); exit 1; }; }
1722
1723 fi
1724 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1725 echo "${ECHO_T}$ac_cv_build" >&6
1726 build=$ac_cv_build
1727 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1728 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1729 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1730
1731
1732 echo "$as_me:$LINENO: checking host system type" >&5
1733 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1734 if test "${ac_cv_host+set}" = set; then
1735   echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737   ac_cv_host_alias=$host_alias
1738 test -z "$ac_cv_host_alias" &&
1739   ac_cv_host_alias=$ac_cv_build_alias
1740 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1741   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1742 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1743    { (exit 1); exit 1; }; }
1744
1745 fi
1746 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1747 echo "${ECHO_T}$ac_cv_host" >&6
1748 host=$ac_cv_host
1749 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1750 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1751 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1752
1753
1754
1755 ac_ext=c
1756 ac_cpp='$CPP $CPPFLAGS'
1757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1760 if test -n "$ac_tool_prefix"; then
1761   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1763 echo "$as_me:$LINENO: checking for $ac_word" >&5
1764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765 if test "${ac_cv_prog_CC+set}" = set; then
1766   echo $ECHO_N "(cached) $ECHO_C" >&6
1767 else
1768   if test -n "$CC"; then
1769   ac_cv_prog_CC="$CC" # Let the user override the test.
1770 else
1771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 for as_dir in $PATH
1773 do
1774   IFS=$as_save_IFS
1775   test -z "$as_dir" && as_dir=.
1776   for ac_exec_ext in '' $ac_executable_extensions; do
1777   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780     break 2
1781   fi
1782 done
1783 done
1784
1785 fi
1786 fi
1787 CC=$ac_cv_prog_CC
1788 if test -n "$CC"; then
1789   echo "$as_me:$LINENO: result: $CC" >&5
1790 echo "${ECHO_T}$CC" >&6
1791 else
1792   echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1794 fi
1795
1796 fi
1797 if test -z "$ac_cv_prog_CC"; then
1798   ac_ct_CC=$CC
1799   # Extract the first word of "gcc", so it can be a program name with args.
1800 set dummy gcc; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804   echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806   if test -n "$ac_ct_CC"; then
1807   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1808 else
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 for as_dir in $PATH
1811 do
1812   IFS=$as_save_IFS
1813   test -z "$as_dir" && as_dir=.
1814   for ac_exec_ext in '' $ac_executable_extensions; do
1815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816     ac_cv_prog_ac_ct_CC="gcc"
1817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818     break 2
1819   fi
1820 done
1821 done
1822
1823 fi
1824 fi
1825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1829 else
1830   echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1832 fi
1833
1834   CC=$ac_ct_CC
1835 else
1836   CC="$ac_cv_prog_CC"
1837 fi
1838
1839 if test -z "$CC"; then
1840   if test -n "$ac_tool_prefix"; then
1841   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1842 set dummy ${ac_tool_prefix}cc; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_CC+set}" = set; then
1846   echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848   if test -n "$CC"; then
1849   ac_cv_prog_CC="$CC" # Let the user override the test.
1850 else
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1853 do
1854   IFS=$as_save_IFS
1855   test -z "$as_dir" && as_dir=.
1856   for ac_exec_ext in '' $ac_executable_extensions; do
1857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858     ac_cv_prog_CC="${ac_tool_prefix}cc"
1859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860     break 2
1861   fi
1862 done
1863 done
1864
1865 fi
1866 fi
1867 CC=$ac_cv_prog_CC
1868 if test -n "$CC"; then
1869   echo "$as_me:$LINENO: result: $CC" >&5
1870 echo "${ECHO_T}$CC" >&6
1871 else
1872   echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1874 fi
1875
1876 fi
1877 if test -z "$ac_cv_prog_CC"; then
1878   ac_ct_CC=$CC
1879   # Extract the first word of "cc", so it can be a program name with args.
1880 set dummy cc; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   if test -n "$ac_ct_CC"; then
1887   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892   IFS=$as_save_IFS
1893   test -z "$as_dir" && as_dir=.
1894   for ac_exec_ext in '' $ac_executable_extensions; do
1895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896     ac_cv_prog_ac_ct_CC="cc"
1897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898     break 2
1899   fi
1900 done
1901 done
1902
1903 fi
1904 fi
1905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1906 if test -n "$ac_ct_CC"; then
1907   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1908 echo "${ECHO_T}$ac_ct_CC" >&6
1909 else
1910   echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912 fi
1913
1914   CC=$ac_ct_CC
1915 else
1916   CC="$ac_cv_prog_CC"
1917 fi
1918
1919 fi
1920 if test -z "$CC"; then
1921   # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_CC+set}" = set; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   if test -n "$CC"; then
1929   ac_cv_prog_CC="$CC" # Let the user override the test.
1930 else
1931   ac_prog_rejected=no
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1934 do
1935   IFS=$as_save_IFS
1936   test -z "$as_dir" && as_dir=.
1937   for ac_exec_ext in '' $ac_executable_extensions; do
1938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1940        ac_prog_rejected=yes
1941        continue
1942      fi
1943     ac_cv_prog_CC="cc"
1944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945     break 2
1946   fi
1947 done
1948 done
1949
1950 if test $ac_prog_rejected = yes; then
1951   # We found a bogon in the path, so make sure we never use it.
1952   set dummy $ac_cv_prog_CC
1953   shift
1954   if test $# != 0; then
1955     # We chose a different compiler from the bogus one.
1956     # However, it has the same basename, so the bogon will be chosen
1957     # first if we set CC to just the basename; use the full file name.
1958     shift
1959     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1960   fi
1961 fi
1962 fi
1963 fi
1964 CC=$ac_cv_prog_CC
1965 if test -n "$CC"; then
1966   echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6
1968 else
1969   echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1971 fi
1972
1973 fi
1974 if test -z "$CC"; then
1975   if test -n "$ac_tool_prefix"; then
1976   for ac_prog in cl
1977   do
1978     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   if test -n "$CC"; then
1986   ac_cv_prog_CC="$CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   for ac_exec_ext in '' $ac_executable_extensions; do
1994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997     break 2
1998   fi
1999 done
2000 done
2001
2002 fi
2003 fi
2004 CC=$ac_cv_prog_CC
2005 if test -n "$CC"; then
2006   echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6
2008 else
2009   echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2011 fi
2012
2013     test -n "$CC" && break
2014   done
2015 fi
2016 if test -z "$CC"; then
2017   ac_ct_CC=$CC
2018   for ac_prog in cl
2019 do
2020   # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy $ac_prog; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   if test -n "$ac_ct_CC"; then
2028   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2032 do
2033   IFS=$as_save_IFS
2034   test -z "$as_dir" && as_dir=.
2035   for ac_exec_ext in '' $ac_executable_extensions; do
2036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037     ac_cv_prog_ac_ct_CC="$ac_prog"
2038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039     break 2
2040   fi
2041 done
2042 done
2043
2044 fi
2045 fi
2046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047 if test -n "$ac_ct_CC"; then
2048   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049 echo "${ECHO_T}$ac_ct_CC" >&6
2050 else
2051   echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2053 fi
2054
2055   test -n "$ac_ct_CC" && break
2056 done
2057
2058   CC=$ac_ct_CC
2059 fi
2060
2061 fi
2062
2063
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068    { (exit 1); exit 1; }; }
2069
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO:" \
2072      "checking for C compiler version" >&5
2073 ac_compiler=`set X $ac_compile; echo $2`
2074 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2075   (eval $ac_compiler --version </dev/null >&5) 2>&5
2076   ac_status=$?
2077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078   (exit $ac_status); }
2079 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2080   (eval $ac_compiler -v </dev/null >&5) 2>&5
2081   ac_status=$?
2082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083   (exit $ac_status); }
2084 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2085   (eval $ac_compiler -V </dev/null >&5) 2>&5
2086   ac_status=$?
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); }
2089
2090 cat >conftest.$ac_ext <<_ACEOF
2091 #line $LINENO "configure"
2092 /* confdefs.h.  */
2093 _ACEOF
2094 cat confdefs.h >>conftest.$ac_ext
2095 cat >>conftest.$ac_ext <<_ACEOF
2096 /* end confdefs.h.  */
2097
2098 int
2099 main ()
2100 {
2101
2102   ;
2103   return 0;
2104 }
2105 _ACEOF
2106 ac_clean_files_save=$ac_clean_files
2107 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2108 # Try to create an executable without -o first, disregard a.out.
2109 # It will help us diagnose broken compilers, and finding out an intuition
2110 # of exeext.
2111 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2112 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2113 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2115   (eval $ac_link_default) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }; then
2119   # Find the output, starting from the most likely.  This scheme is
2120 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2121 # resort.
2122
2123 # Be careful to initialize this variable, since it used to be cached.
2124 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2125 ac_cv_exeext=
2126 # b.out is created by i960 compilers.
2127 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2128 do
2129   test -f "$ac_file" || continue
2130   case $ac_file in
2131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2132         ;;
2133     conftest.$ac_ext )
2134         # This is the source file.
2135         ;;
2136     [ab].out )
2137         # We found the default executable, but exeext='' is most
2138         # certainly right.
2139         break;;
2140     *.* )
2141         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2142         # FIXME: I believe we export ac_cv_exeext for Libtool,
2143         # but it would be cool to find out if it's true.  Does anybody
2144         # maintain Libtool? --akim.
2145         export ac_cv_exeext
2146         break;;
2147     * )
2148         break;;
2149   esac
2150 done
2151 else
2152   echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2156 See \`config.log' for more details." >&5
2157 echo "$as_me: error: C compiler cannot create executables
2158 See \`config.log' for more details." >&2;}
2159    { (exit 77); exit 77; }; }
2160 fi
2161
2162 ac_exeext=$ac_cv_exeext
2163 echo "$as_me:$LINENO: result: $ac_file" >&5
2164 echo "${ECHO_T}$ac_file" >&6
2165
2166 # Check the compiler produces executables we can run.  If not, either
2167 # the compiler is broken, or we cross compile.
2168 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2169 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2170 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2171 # If not cross compiling, check that we can run a simple program.
2172 if test "$cross_compiling" != yes; then
2173   if { ac_try='./$ac_file'
2174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175   (eval $ac_try) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); }; }; then
2179     cross_compiling=no
2180   else
2181     if test "$cross_compiling" = maybe; then
2182         cross_compiling=yes
2183     else
2184         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2185 If you meant to cross compile, use \`--host'.
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: cannot run C compiled programs.
2188 If you meant to cross compile, use \`--host'.
2189 See \`config.log' for more details." >&2;}
2190    { (exit 1); exit 1; }; }
2191     fi
2192   fi
2193 fi
2194 echo "$as_me:$LINENO: result: yes" >&5
2195 echo "${ECHO_T}yes" >&6
2196
2197 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2198 ac_clean_files=$ac_clean_files_save
2199 # Check the compiler produces executables we can run.  If not, either
2200 # the compiler is broken, or we cross compile.
2201 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2202 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2203 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2204 echo "${ECHO_T}$cross_compiling" >&6
2205
2206 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2207 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2209   (eval $ac_link) 2>&5
2210   ac_status=$?
2211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); }; then
2213   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2214 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2215 # work properly (i.e., refer to `conftest.exe'), while it won't with
2216 # `rm'.
2217 for ac_file in conftest.exe conftest conftest.*; do
2218   test -f "$ac_file" || continue
2219   case $ac_file in
2220     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2221     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222           export ac_cv_exeext
2223           break;;
2224     * ) break;;
2225   esac
2226 done
2227 else
2228   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2231 See \`config.log' for more details." >&2;}
2232    { (exit 1); exit 1; }; }
2233 fi
2234
2235 rm -f conftest$ac_cv_exeext
2236 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2237 echo "${ECHO_T}$ac_cv_exeext" >&6
2238
2239 rm -f conftest.$ac_ext
2240 EXEEXT=$ac_cv_exeext
2241 ac_exeext=$EXEEXT
2242 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2243 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2244 if test "${ac_cv_objext+set}" = set; then
2245   echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247   cat >conftest.$ac_ext <<_ACEOF
2248 #line $LINENO "configure"
2249 /* confdefs.h.  */
2250 _ACEOF
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h.  */
2254
2255 int
2256 main ()
2257 {
2258
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 rm -f conftest.o conftest.obj
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265   (eval $ac_compile) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; then
2269   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2270   case $ac_file in
2271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2272     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2273        break;;
2274   esac
2275 done
2276 else
2277   echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2281 See \`config.log' for more details." >&5
2282 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2283 See \`config.log' for more details." >&2;}
2284    { (exit 1); exit 1; }; }
2285 fi
2286
2287 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2288 fi
2289 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2290 echo "${ECHO_T}$ac_cv_objext" >&6
2291 OBJEXT=$ac_cv_objext
2292 ac_objext=$OBJEXT
2293 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2294 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2295 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   cat >conftest.$ac_ext <<_ACEOF
2299 #line $LINENO "configure"
2300 /* confdefs.h.  */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h.  */
2305
2306 int
2307 main ()
2308 {
2309 #ifndef __GNUC__
2310        choke me
2311 #endif
2312
2313   ;
2314   return 0;
2315 }
2316 _ACEOF
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319   (eval $ac_compile) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); } &&
2323          { ac_try='test -s conftest.$ac_objext'
2324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325   (eval $ac_try) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; }; then
2329   ac_compiler_gnu=yes
2330 else
2331   echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334 ac_compiler_gnu=no
2335 fi
2336 rm -f conftest.$ac_objext conftest.$ac_ext
2337 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2338
2339 fi
2340 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2341 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2342 GCC=`test $ac_compiler_gnu = yes && echo yes`
2343 ac_test_CFLAGS=${CFLAGS+set}
2344 ac_save_CFLAGS=$CFLAGS
2345 CFLAGS="-g"
2346 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2347 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2348 if test "${ac_cv_prog_cc_g+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   cat >conftest.$ac_ext <<_ACEOF
2352 #line $LINENO "configure"
2353 /* confdefs.h.  */
2354 _ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h.  */
2358
2359 int
2360 main ()
2361 {
2362
2363   ;
2364   return 0;
2365 }
2366 _ACEOF
2367 rm -f conftest.$ac_objext
2368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369   (eval $ac_compile) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); } &&
2373          { ac_try='test -s conftest.$ac_objext'
2374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375   (eval $ac_try) 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }; }; then
2379   ac_cv_prog_cc_g=yes
2380 else
2381   echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384 ac_cv_prog_cc_g=no
2385 fi
2386 rm -f conftest.$ac_objext conftest.$ac_ext
2387 fi
2388 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2389 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2390 if test "$ac_test_CFLAGS" = set; then
2391   CFLAGS=$ac_save_CFLAGS
2392 elif test $ac_cv_prog_cc_g = yes; then
2393   if test "$GCC" = yes; then
2394     CFLAGS="-g -O2"
2395   else
2396     CFLAGS="-g"
2397   fi
2398 else
2399   if test "$GCC" = yes; then
2400     CFLAGS="-O2"
2401   else
2402     CFLAGS=
2403   fi
2404 fi
2405 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2406 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2407 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2408   echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410   ac_cv_prog_cc_stdc=no
2411 ac_save_CC=$CC
2412 cat >conftest.$ac_ext <<_ACEOF
2413 #line $LINENO "configure"
2414 /* confdefs.h.  */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h.  */
2419 #include <stdarg.h>
2420 #include <stdio.h>
2421 #include <sys/types.h>
2422 #include <sys/stat.h>
2423 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2424 struct buf { int x; };
2425 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2426 static char *e (p, i)
2427      char **p;
2428      int i;
2429 {
2430   return p[i];
2431 }
2432 static char *f (char * (*g) (char **, int), char **p, ...)
2433 {
2434   char *s;
2435   va_list v;
2436   va_start (v,p);
2437   s = g (p, va_arg (v,int));
2438   va_end (v);
2439   return s;
2440 }
2441 int test (int i, double x);
2442 struct s1 {int (*f) (int a);};
2443 struct s2 {int (*f) (double a);};
2444 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2445 int argc;
2446 char **argv;
2447 int
2448 main ()
2449 {
2450 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2451   ;
2452   return 0;
2453 }
2454 _ACEOF
2455 # Don't try gcc -ansi; that turns off useful extensions and
2456 # breaks some systems' header files.
2457 # AIX                   -qlanglvl=ansi
2458 # Ultrix and OSF/1      -std1
2459 # HP-UX 10.20 and later -Ae
2460 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2461 # SVR4                  -Xc -D__EXTENSIONS__
2462 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2463 do
2464   CC="$ac_save_CC $ac_arg"
2465   rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467   (eval $ac_compile) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); } &&
2471          { ac_try='test -s conftest.$ac_objext'
2472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473   (eval $ac_try) 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; }; then
2477   ac_cv_prog_cc_stdc=$ac_arg
2478 break
2479 else
2480   echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483 fi
2484 rm -f conftest.$ac_objext
2485 done
2486 rm -f conftest.$ac_ext conftest.$ac_objext
2487 CC=$ac_save_CC
2488
2489 fi
2490
2491 case "x$ac_cv_prog_cc_stdc" in
2492   x|xno)
2493     echo "$as_me:$LINENO: result: none needed" >&5
2494 echo "${ECHO_T}none needed" >&6 ;;
2495   *)
2496     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2497 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2498     CC="$CC $ac_cv_prog_cc_stdc" ;;
2499 esac
2500
2501 # Some people use a C++ compiler to compile C.  Since we use `exit',
2502 # in C++ we need to declare it.  In case someone uses the same compiler
2503 # for both compiling C and C++ we need to have the C++ compiler decide
2504 # the declaration of exit, since it's the most demanding environment.
2505 cat >conftest.$ac_ext <<_ACEOF
2506 #ifndef __cplusplus
2507   choke me
2508 #endif
2509 _ACEOF
2510 rm -f conftest.$ac_objext
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512   (eval $ac_compile) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); } &&
2516          { ac_try='test -s conftest.$ac_objext'
2517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518   (eval $ac_try) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); }; }; then
2522   for ac_declaration in \
2523    ''\
2524    '#include <stdlib.h>' \
2525    'extern "C" void std::exit (int) throw (); using std::exit;' \
2526    'extern "C" void std::exit (int); using std::exit;' \
2527    'extern "C" void exit (int) throw ();' \
2528    'extern "C" void exit (int);' \
2529    'void exit (int);'
2530 do
2531   cat >conftest.$ac_ext <<_ACEOF
2532 #line $LINENO "configure"
2533 /* confdefs.h.  */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h.  */
2538 #include <stdlib.h>
2539 $ac_declaration
2540 int
2541 main ()
2542 {
2543 exit (42);
2544   ;
2545   return 0;
2546 }
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550   (eval $ac_compile) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          { ac_try='test -s conftest.$ac_objext'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; }; then
2560   :
2561 else
2562   echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2564
2565 continue
2566 fi
2567 rm -f conftest.$ac_objext conftest.$ac_ext
2568   cat >conftest.$ac_ext <<_ACEOF
2569 #line $LINENO "configure"
2570 /* confdefs.h.  */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h.  */
2575 $ac_declaration
2576 int
2577 main ()
2578 {
2579 exit (42);
2580   ;
2581   return 0;
2582 }
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586   (eval $ac_compile) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); } &&
2590          { ac_try='test -s conftest.$ac_objext'
2591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592   (eval $ac_try) 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; }; then
2596   break
2597 else
2598   echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2600
2601 fi
2602 rm -f conftest.$ac_objext conftest.$ac_ext
2603 done
2604 rm -f conftest*
2605 if test -n "$ac_declaration"; then
2606   echo '#ifdef __cplusplus' >>confdefs.h
2607   echo $ac_declaration      >>confdefs.h
2608   echo '#endif'             >>confdefs.h
2609 fi
2610
2611 else
2612   echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2614
2615 fi
2616 rm -f conftest.$ac_objext conftest.$ac_ext
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 DEPDIR="${am__leading_dot}deps"
2623
2624           ac_config_commands="$ac_config_commands depfiles"
2625
2626
2627 am_make=${MAKE-make}
2628 cat > confinc << 'END'
2629 am__doit:
2630         @echo done
2631 .PHONY: am__doit
2632 END
2633 # If we don't find an include directive, just comment out the code.
2634 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2635 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2636 am__include="#"
2637 am__quote=
2638 _am_result=none
2639 # First try GNU make style include.
2640 echo "include confinc" > confmf
2641 # We grep out `Entering directory' and `Leaving directory'
2642 # messages which can occur if `w' ends up in MAKEFLAGS.
2643 # In particular we don't look at `^make:' because GNU make might
2644 # be invoked under some other name (usually "gmake"), in which
2645 # case it prints its new name instead of `make'.
2646 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2647    am__include=include
2648    am__quote=
2649    _am_result=GNU
2650 fi
2651 # Now try BSD make style include.
2652 if test "$am__include" = "#"; then
2653    echo '.include "confinc"' > confmf
2654    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2655       am__include=.include
2656       am__quote="\""
2657       _am_result=BSD
2658    fi
2659 fi
2660
2661
2662 echo "$as_me:$LINENO: result: $_am_result" >&5
2663 echo "${ECHO_T}$_am_result" >&6
2664 rm -f confinc confmf
2665
2666 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2667 if test "${enable_dependency_tracking+set}" = set; then
2668   enableval="$enable_dependency_tracking"
2669
2670 fi;
2671 if test "x$enable_dependency_tracking" != xno; then
2672   am_depcomp="$ac_aux_dir/depcomp"
2673   AMDEPBACKSLASH='\'
2674 fi
2675
2676
2677 if test "x$enable_dependency_tracking" != xno; then
2678   AMDEP_TRUE=
2679   AMDEP_FALSE='#'
2680 else
2681   AMDEP_TRUE='#'
2682   AMDEP_FALSE=
2683 fi
2684
2685
2686
2687
2688 depcc="$CC"   am_compiler_list=
2689
2690 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2691 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2692 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2693   echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2696   # We make a subdir and do the tests there.  Otherwise we can end up
2697   # making bogus files that we don't know about and never remove.  For
2698   # instance it was reported that on HP-UX the gcc test will end up
2699   # making a dummy file named `D' -- because `-MD' means `put the output
2700   # in D'.
2701   mkdir conftest.dir
2702   # Copy depcomp to subdir because otherwise we won't find it if we're
2703   # using a relative directory.
2704   cp "$am_depcomp" conftest.dir
2705   cd conftest.dir
2706   # We will build objects and dependencies in a subdirectory because
2707   # it helps to detect inapplicable dependency modes.  For instance
2708   # both Tru64's cc and ICC support -MD to output dependencies as a
2709   # side effect of compilation, but ICC will put the dependencies in
2710   # the current directory while Tru64 will put them in the object
2711   # directory.
2712   mkdir sub
2713
2714   am_cv_CC_dependencies_compiler_type=none
2715   if test "$am_compiler_list" = ""; then
2716      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2717   fi
2718   for depmode in $am_compiler_list; do
2719     # Setup a source with many dependencies, because some compilers
2720     # like to wrap large dependency lists on column 80 (with \), and
2721     # we should not choose a depcomp mode which is confused by this.
2722     #
2723     # We need to recreate these files for each test, as the compiler may
2724     # overwrite some of them when testing with obscure command lines.
2725     # This happens at least with the AIX C compiler.
2726     : > sub/conftest.c
2727     for i in 1 2 3 4 5 6; do
2728       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2729       : > sub/conftst$i.h
2730     done
2731     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2732
2733     case $depmode in
2734     nosideeffect)
2735       # after this tag, mechanisms are not by side-effect, so they'll
2736       # only be used when explicitly requested
2737       if test "x$enable_dependency_tracking" = xyes; then
2738         continue
2739       else
2740         break
2741       fi
2742       ;;
2743     none) break ;;
2744     esac
2745     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2746     # mode.  It turns out that the SunPro C++ compiler does not properly
2747     # handle `-M -o', and we need to detect this.
2748     if depmode=$depmode \
2749        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2750        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2751        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2752          >/dev/null 2>conftest.err &&
2753        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2754        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2755        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2756       # icc doesn't choke on unknown options, it will just issue warnings
2757       # (even with -Werror).  So we grep stderr for any message
2758       # that says an option was ignored.
2759       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2760         am_cv_CC_dependencies_compiler_type=$depmode
2761         break
2762       fi
2763     fi
2764   done
2765
2766   cd ..
2767   rm -rf conftest.dir
2768 else
2769   am_cv_CC_dependencies_compiler_type=none
2770 fi
2771
2772 fi
2773 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2774 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2775 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2776
2777
2778
2779 if
2780   test "x$enable_dependency_tracking" != xno \
2781   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2782   am__fastdepCC_TRUE=
2783   am__fastdepCC_FALSE='#'
2784 else
2785   am__fastdepCC_TRUE='#'
2786   am__fastdepCC_FALSE=
2787 fi
2788
2789
2790
2791
2792         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2793 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2794 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2795   echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797   ac_check_lib_save_LIBS=$LIBS
2798 LIBS="-lcposix  $LIBS"
2799 cat >conftest.$ac_ext <<_ACEOF
2800 #line $LINENO "configure"
2801 /* confdefs.h.  */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h.  */
2806
2807 /* Override any gcc2 internal prototype to avoid an error.  */
2808 #ifdef __cplusplus
2809 extern "C"
2810 #endif
2811 /* We use char because int might match the return type of a gcc2
2812    builtin and then its argument prototype would still apply.  */
2813 char strerror ();
2814 int
2815 main ()
2816 {
2817 strerror ();
2818   ;
2819   return 0;
2820 }
2821 _ACEOF
2822 rm -f conftest.$ac_objext conftest$ac_exeext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2824   (eval $ac_link) 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } &&
2828          { ac_try='test -s conftest$ac_exeext'
2829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830   (eval $ac_try) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; }; then
2834   ac_cv_lib_cposix_strerror=yes
2835 else
2836   echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839 ac_cv_lib_cposix_strerror=no
2840 fi
2841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2842 LIBS=$ac_check_lib_save_LIBS
2843 fi
2844 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2845 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2846 if test $ac_cv_lib_cposix_strerror = yes; then
2847   LIBS="$LIBS -lcposix"
2848 fi
2849
2850
2851
2852
2853
2854
2855 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2856 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2857 if test "${am_cv_prog_cc_stdc+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   am_cv_prog_cc_stdc=no
2861 ac_save_CC="$CC"
2862 # Don't try gcc -ansi; that turns off useful extensions and
2863 # breaks some systems' header files.
2864 # AIX                   -qlanglvl=ansi
2865 # Ultrix and OSF/1      -std1
2866 # HP-UX 10.20 and later -Ae
2867 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2868 # SVR4                  -Xc -D__EXTENSIONS__
2869 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2870 do
2871   CC="$ac_save_CC $ac_arg"
2872   cat >conftest.$ac_ext <<_ACEOF
2873 #line $LINENO "configure"
2874 /* confdefs.h.  */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h.  */
2879 #include <stdarg.h>
2880 #include <stdio.h>
2881 #include <sys/types.h>
2882 #include <sys/stat.h>
2883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2884 struct buf { int x; };
2885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2886 static char *e (p, i)
2887      char **p;
2888      int i;
2889 {
2890   return p[i];
2891 }
2892 static char *f (char * (*g) (char **, int), char **p, ...)
2893 {
2894   char *s;
2895   va_list v;
2896   va_start (v,p);
2897   s = g (p, va_arg (v,int));
2898   va_end (v);
2899   return s;
2900 }
2901 int test (int i, double x);
2902 struct s1 {int (*f) (int a);};
2903 struct s2 {int (*f) (double a);};
2904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2905 int argc;
2906 char **argv;
2907
2908 int
2909 main ()
2910 {
2911
2912 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2913
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920   (eval $ac_compile) 2>&5
2921   ac_status=$?
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); } &&
2924          { ac_try='test -s conftest.$ac_objext'
2925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926   (eval $ac_try) 2>&5
2927   ac_status=$?
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); }; }; then
2930   am_cv_prog_cc_stdc="$ac_arg"; break
2931 else
2932   echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2934
2935 fi
2936 rm -f conftest.$ac_objext conftest.$ac_ext
2937 done
2938 CC="$ac_save_CC"
2939
2940 fi
2941
2942 if test -z "$am_cv_prog_cc_stdc"; then
2943   echo "$as_me:$LINENO: result: none needed" >&5
2944 echo "${ECHO_T}none needed" >&6
2945 else
2946   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2947 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2948 fi
2949 case "x$am_cv_prog_cc_stdc" in
2950   x|xno) ;;
2951   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2952 esac
2953
2954 ac_ext=c
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2960 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2961 # On Suns, sometimes $CPP names a directory.
2962 if test -n "$CPP" && test -d "$CPP"; then
2963   CPP=
2964 fi
2965 if test -z "$CPP"; then
2966   if test "${ac_cv_prog_CPP+set}" = set; then
2967   echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969       # Double quotes because CPP needs to be expanded
2970     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2971     do
2972       ac_preproc_ok=false
2973 for ac_c_preproc_warn_flag in '' yes
2974 do
2975   # Use a header file that comes with gcc, so configuring glibc
2976   # with a fresh cross-compiler works.
2977   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978   # <limits.h> exists even on freestanding compilers.
2979   # On the NeXT, cc -E runs the code through the compiler's parser,
2980   # not just through cpp. "Syntax error" is here to catch this case.
2981   cat >conftest.$ac_ext <<_ACEOF
2982 #line $LINENO "configure"
2983 /* confdefs.h.  */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h.  */
2988 #ifdef __STDC__
2989 # include <limits.h>
2990 #else
2991 # include <assert.h>
2992 #endif
2993                      Syntax error
2994 _ACEOF
2995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } >/dev/null; then
3003   if test -s conftest.err; then
3004     ac_cpp_err=$ac_c_preproc_warn_flag
3005   else
3006     ac_cpp_err=
3007   fi
3008 else
3009   ac_cpp_err=yes
3010 fi
3011 if test -z "$ac_cpp_err"; then
3012   :
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017   # Broken: fails on valid input.
3018 continue
3019 fi
3020 rm -f conftest.err conftest.$ac_ext
3021
3022   # OK, works on sane cases.  Now check whether non-existent headers
3023   # can be detected and how.
3024   cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #include <ac_nonexistent.h>
3032 _ACEOF
3033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3035   ac_status=$?
3036   grep -v '^ *+' conftest.er1 >conftest.err
3037   rm -f conftest.er1
3038   cat conftest.err >&5
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); } >/dev/null; then
3041   if test -s conftest.err; then
3042     ac_cpp_err=$ac_c_preproc_warn_flag
3043   else
3044     ac_cpp_err=
3045   fi
3046 else
3047   ac_cpp_err=yes
3048 fi
3049 if test -z "$ac_cpp_err"; then
3050   # Broken: success on invalid input.
3051 continue
3052 else
3053   echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056   # Passes both tests.
3057 ac_preproc_ok=:
3058 break
3059 fi
3060 rm -f conftest.err conftest.$ac_ext
3061
3062 done
3063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3064 rm -f conftest.err conftest.$ac_ext
3065 if $ac_preproc_ok; then
3066   break
3067 fi
3068
3069     done
3070     ac_cv_prog_CPP=$CPP
3071
3072 fi
3073   CPP=$ac_cv_prog_CPP
3074 else
3075   ac_cv_prog_CPP=$CPP
3076 fi
3077 echo "$as_me:$LINENO: result: $CPP" >&5
3078 echo "${ECHO_T}$CPP" >&6
3079 ac_preproc_ok=false
3080 for ac_c_preproc_warn_flag in '' yes
3081 do
3082   # Use a header file that comes with gcc, so configuring glibc
3083   # with a fresh cross-compiler works.
3084   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3085   # <limits.h> exists even on freestanding compilers.
3086   # On the NeXT, cc -E runs the code through the compiler's parser,
3087   # not just through cpp. "Syntax error" is here to catch this case.
3088   cat >conftest.$ac_ext <<_ACEOF
3089 #line $LINENO "configure"
3090 /* confdefs.h.  */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h.  */
3095 #ifdef __STDC__
3096 # include <limits.h>
3097 #else
3098 # include <assert.h>
3099 #endif
3100                      Syntax error
3101 _ACEOF
3102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3103   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3104   ac_status=$?
3105   grep -v '^ *+' conftest.er1 >conftest.err
3106   rm -f conftest.er1
3107   cat conftest.err >&5
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); } >/dev/null; then
3110   if test -s conftest.err; then
3111     ac_cpp_err=$ac_c_preproc_warn_flag
3112   else
3113     ac_cpp_err=
3114   fi
3115 else
3116   ac_cpp_err=yes
3117 fi
3118 if test -z "$ac_cpp_err"; then
3119   :
3120 else
3121   echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124   # Broken: fails on valid input.
3125 continue
3126 fi
3127 rm -f conftest.err conftest.$ac_ext
3128
3129   # OK, works on sane cases.  Now check whether non-existent headers
3130   # can be detected and how.
3131   cat >conftest.$ac_ext <<_ACEOF
3132 #line $LINENO "configure"
3133 /* confdefs.h.  */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h.  */
3138 #include <ac_nonexistent.h>
3139 _ACEOF
3140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3142   ac_status=$?
3143   grep -v '^ *+' conftest.er1 >conftest.err
3144   rm -f conftest.er1
3145   cat conftest.err >&5
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); } >/dev/null; then
3148   if test -s conftest.err; then
3149     ac_cpp_err=$ac_c_preproc_warn_flag
3150   else
3151     ac_cpp_err=
3152   fi
3153 else
3154   ac_cpp_err=yes
3155 fi
3156 if test -z "$ac_cpp_err"; then
3157   # Broken: success on invalid input.
3158 continue
3159 else
3160   echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163   # Passes both tests.
3164 ac_preproc_ok=:
3165 break
3166 fi
3167 rm -f conftest.err conftest.$ac_ext
3168
3169 done
3170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3171 rm -f conftest.err conftest.$ac_ext
3172 if $ac_preproc_ok; then
3173   :
3174 else
3175   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3178 See \`config.log' for more details." >&2;}
3179    { (exit 1); exit 1; }; }
3180 fi
3181
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187
3188
3189 echo "$as_me:$LINENO: checking for egrep" >&5
3190 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3191 if test "${ac_cv_prog_egrep+set}" = set; then
3192   echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3195     then ac_cv_prog_egrep='grep -E'
3196     else ac_cv_prog_egrep='egrep'
3197     fi
3198 fi
3199 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3200 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3201  EGREP=$ac_cv_prog_egrep
3202
3203
3204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3215                   inttypes.h stdint.h unistd.h
3216 do
3217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3218 echo "$as_me:$LINENO: checking for $ac_header" >&5
3219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223   cat >conftest.$ac_ext <<_ACEOF
3224 #line $LINENO "configure"
3225 /* confdefs.h.  */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h.  */
3230 $ac_includes_default
3231
3232 #include <$ac_header>
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236   (eval $ac_compile) 2>&5
3237   ac_status=$?
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } &&
3240          { ac_try='test -s conftest.$ac_objext'
3241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242   (eval $ac_try) 2>&5
3243   ac_status=$?
3244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245   (exit $ac_status); }; }; then
3246   eval "$as_ac_Header=yes"
3247 else
3248   echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251 eval "$as_ac_Header=no"
3252 fi
3253 rm -f conftest.$ac_objext conftest.$ac_ext
3254 fi
3255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3258   cat >>confdefs.h <<_ACEOF
3259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3260 _ACEOF
3261
3262 fi
3263
3264 done
3265
3266
3267
3268
3269 echo "$as_me:$LINENO: checking for function prototypes" >&5
3270 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3271 if test "$am_cv_prog_cc_stdc" != no; then
3272   echo "$as_me:$LINENO: result: yes" >&5
3273 echo "${ECHO_T}yes" >&6
3274
3275 cat >>confdefs.h <<\_ACEOF
3276 #define PROTOTYPES 1
3277 _ACEOF
3278
3279   U= ANSI2KNR=
3280 else
3281   echo "$as_me:$LINENO: result: no" >&5
3282 echo "${ECHO_T}no" >&6
3283   U=_ ANSI2KNR=./ansi2knr
3284 fi
3285 # Ensure some checks needed by ansi2knr itself.
3286 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3287 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3288 if test "${ac_cv_header_stdc+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   cat >conftest.$ac_ext <<_ACEOF
3292 #line $LINENO "configure"
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298 #include <stdlib.h>
3299 #include <stdarg.h>
3300 #include <string.h>
3301 #include <float.h>
3302
3303 int
3304 main ()
3305 {
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313   (eval $ac_compile) 2>&5
3314   ac_status=$?
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); } &&
3317          { ac_try='test -s conftest.$ac_objext'
3318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319   (eval $ac_try) 2>&5
3320   ac_status=$?
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); }; }; then
3323   ac_cv_header_stdc=yes
3324 else
3325   echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328 ac_cv_header_stdc=no
3329 fi
3330 rm -f conftest.$ac_objext conftest.$ac_ext
3331
3332 if test $ac_cv_header_stdc = yes; then
3333   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3334   cat >conftest.$ac_ext <<_ACEOF
3335 #line $LINENO "configure"
3336 /* confdefs.h.  */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h.  */
3341 #include <string.h>
3342
3343 _ACEOF
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345   $EGREP "memchr" >/dev/null 2>&1; then
3346   :
3347 else
3348   ac_cv_header_stdc=no
3349 fi
3350 rm -f conftest*
3351
3352 fi
3353
3354 if test $ac_cv_header_stdc = yes; then
3355   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3356   cat >conftest.$ac_ext <<_ACEOF
3357 #line $LINENO "configure"
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363 #include <stdlib.h>
3364
3365 _ACEOF
3366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3367   $EGREP "free" >/dev/null 2>&1; then
3368   :
3369 else
3370   ac_cv_header_stdc=no
3371 fi
3372 rm -f conftest*
3373
3374 fi
3375
3376 if test $ac_cv_header_stdc = yes; then
3377   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3378   if test "$cross_compiling" = yes; then
3379   :
3380 else
3381   cat >conftest.$ac_ext <<_ACEOF
3382 #line $LINENO "configure"
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388 #include <ctype.h>
3389 #if ((' ' & 0x0FF) == 0x020)
3390 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3391 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3392 #else
3393 # define ISLOWER(c) \
3394                    (('a' <= (c) && (c) <= 'i') \
3395                      || ('j' <= (c) && (c) <= 'r') \
3396                      || ('s' <= (c) && (c) <= 'z'))
3397 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3398 #endif
3399
3400 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3401 int
3402 main ()
3403 {
3404   int i;
3405   for (i = 0; i < 256; i++)
3406     if (XOR (islower (i), ISLOWER (i))
3407         || toupper (i) != TOUPPER (i))
3408       exit(2);
3409   exit (0);
3410 }
3411 _ACEOF
3412 rm -f conftest$ac_exeext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3414   (eval $ac_link) 2>&5
3415   ac_status=$?
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419   (eval $ac_try) 2>&5
3420   ac_status=$?
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); }; }; then
3423   :
3424 else
3425   echo "$as_me: program exited with status $ac_status" >&5
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429 ( exit $ac_status )
3430 ac_cv_header_stdc=no
3431 fi
3432 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3433 fi
3434 fi
3435 fi
3436 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3437 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3438 if test $ac_cv_header_stdc = yes; then
3439
3440 cat >>confdefs.h <<\_ACEOF
3441 #define STDC_HEADERS 1
3442 _ACEOF
3443
3444 fi
3445
3446
3447 for ac_header in string.h
3448 do
3449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3451   echo "$as_me:$LINENO: checking for $ac_header" >&5
3452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 fi
3456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3458 else
3459   # Is the header compilable?
3460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3462 cat >conftest.$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469 $ac_includes_default
3470 #include <$ac_header>
3471 _ACEOF
3472 rm -f conftest.$ac_objext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474   (eval $ac_compile) 2>&5
3475   ac_status=$?
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); } &&
3478          { ac_try='test -s conftest.$ac_objext'
3479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480   (eval $ac_try) 2>&5
3481   ac_status=$?
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); }; }; then
3484   ac_header_compiler=yes
3485 else
3486   echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 ac_header_compiler=no
3490 fi
3491 rm -f conftest.$ac_objext conftest.$ac_ext
3492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3493 echo "${ECHO_T}$ac_header_compiler" >&6
3494
3495 # Is the header present?
3496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3498 cat >conftest.$ac_ext <<_ACEOF
3499 #line $LINENO "configure"
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505 #include <$ac_header>
3506 _ACEOF
3507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3509   ac_status=$?
3510   grep -v '^ *+' conftest.er1 >conftest.err
3511   rm -f conftest.er1
3512   cat conftest.err >&5
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); } >/dev/null; then
3515   if test -s conftest.err; then
3516     ac_cpp_err=$ac_c_preproc_warn_flag
3517   else
3518     ac_cpp_err=
3519   fi
3520 else
3521   ac_cpp_err=yes
3522 fi
3523 if test -z "$ac_cpp_err"; then
3524   ac_header_preproc=yes
3525 else
3526   echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3528
3529   ac_header_preproc=no
3530 fi
3531 rm -f conftest.err conftest.$ac_ext
3532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3533 echo "${ECHO_T}$ac_header_preproc" >&6
3534
3535 # So?  What about this header?
3536 case $ac_header_compiler:$ac_header_preproc in
3537   yes:no )
3538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3542     (
3543       cat <<\_ASBOX
3544 ## ------------------------------------ ##
3545 ## Report this to bug-autoconf@gnu.org. ##
3546 ## ------------------------------------ ##
3547 _ASBOX
3548     ) |
3549       sed "s/^/$as_me: WARNING:     /" >&2
3550     ;;
3551   no:yes )
3552     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3554     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3558     (
3559       cat <<\_ASBOX
3560 ## ------------------------------------ ##
3561 ## Report this to bug-autoconf@gnu.org. ##
3562 ## ------------------------------------ ##
3563 _ASBOX
3564     ) |
3565       sed "s/^/$as_me: WARNING:     /" >&2
3566     ;;
3567 esac
3568 echo "$as_me:$LINENO: checking for $ac_header" >&5
3569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3571   echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573   eval "$as_ac_Header=$ac_header_preproc"
3574 fi
3575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3577
3578 fi
3579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3580   cat >>confdefs.h <<_ACEOF
3581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3582 _ACEOF
3583
3584 fi
3585
3586 done
3587
3588
3589 if test "x$U" != "x"; then
3590         { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3591 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3592    { (exit 1); exit 1; }; }
3593 fi
3594 echo "$as_me:$LINENO: checking for inline" >&5
3595 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3596 if test "${ac_cv_c_inline+set}" = set; then
3597   echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599   ac_cv_c_inline=no
3600 for ac_kw in inline __inline__ __inline; do
3601   cat >conftest.$ac_ext <<_ACEOF
3602 #line $LINENO "configure"
3603 /* confdefs.h.  */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h.  */
3608 #ifndef __cplusplus
3609 typedef int foo_t;
3610 static $ac_kw foo_t static_foo () {return 0; }
3611 $ac_kw foo_t foo () {return 0; }
3612 #endif
3613
3614 _ACEOF
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617   (eval $ac_compile) 2>&5
3618   ac_status=$?
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } &&
3621          { ac_try='test -s conftest.$ac_objext'
3622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623   (eval $ac_try) 2>&5
3624   ac_status=$?
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); }; }; then
3627   ac_cv_c_inline=$ac_kw; break
3628 else
3629   echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 fi
3633 rm -f conftest.$ac_objext conftest.$ac_ext
3634 done
3635
3636 fi
3637 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3638 echo "${ECHO_T}$ac_cv_c_inline" >&6
3639 case $ac_cv_c_inline in
3640   inline | yes) ;;
3641   no)
3642 cat >>confdefs.h <<\_ACEOF
3643 #define inline
3644 _ACEOF
3645  ;;
3646   *)  cat >>confdefs.h <<_ACEOF
3647 #define inline $ac_cv_c_inline
3648 _ACEOF
3649  ;;
3650 esac
3651
3652 # Find a good install program.  We prefer a C program (faster),
3653 # so one script is as good as another.  But avoid the broken or
3654 # incompatible versions:
3655 # SysV /etc/install, /usr/sbin/install
3656 # SunOS /usr/etc/install
3657 # IRIX /sbin/install
3658 # AIX /bin/install
3659 # AmigaOS /C/install, which installs bootblocks on floppy discs
3660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3663 # ./install, which can be erroneously created by make from ./install.sh.
3664 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3666 if test -z "$INSTALL"; then
3667 if test "${ac_cv_path_install+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   # Account for people who put trailing slashes in PATH elements.
3676 case $as_dir/ in
3677   ./ | .// | /cC/* | \
3678   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3679   /usr/ucb/* ) ;;
3680   *)
3681     # OSF1 and SCO ODT 3.0 have their own names for install.
3682     # Don't use installbsd from OSF since it installs stuff as root
3683     # by default.
3684     for ac_prog in ginstall scoinst install; do
3685       for ac_exec_ext in '' $ac_executable_extensions; do
3686         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3687           if test $ac_prog = install &&
3688             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3689             # AIX install.  It has an incompatible calling convention.
3690             :
3691           elif test $ac_prog = install &&
3692             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3693             # program-specific install script used by HP pwplus--don't use.
3694             :
3695           else
3696             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3697             break 3
3698           fi
3699         fi
3700       done
3701     done
3702     ;;
3703 esac
3704 done
3705
3706
3707 fi
3708   if test "${ac_cv_path_install+set}" = set; then
3709     INSTALL=$ac_cv_path_install
3710   else
3711     # As a last resort, use the slow shell script.  We don't cache a
3712     # path for INSTALL within a source directory, because that will
3713     # break other packages using the cache if that directory is
3714     # removed, or if the path is relative.
3715     INSTALL=$ac_install_sh
3716   fi
3717 fi
3718 echo "$as_me:$LINENO: result: $INSTALL" >&5
3719 echo "${ECHO_T}$INSTALL" >&6
3720
3721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3722 # It thinks the first close brace ends the variable substitution.
3723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3724
3725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3726
3727 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3728
3729 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3730 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3731 if test "${ac_cv_header_stdc+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734   cat >conftest.$ac_ext <<_ACEOF
3735 #line $LINENO "configure"
3736 /* confdefs.h.  */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h.  */
3741 #include <stdlib.h>
3742 #include <stdarg.h>
3743 #include <string.h>
3744 #include <float.h>
3745
3746 int
3747 main ()
3748 {
3749
3750   ;
3751   return 0;
3752 }
3753 _ACEOF
3754 rm -f conftest.$ac_objext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3756   (eval $ac_compile) 2>&5
3757   ac_status=$?
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); } &&
3760          { ac_try='test -s conftest.$ac_objext'
3761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762   (eval $ac_try) 2>&5
3763   ac_status=$?
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); }; }; then
3766   ac_cv_header_stdc=yes
3767 else
3768   echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 ac_cv_header_stdc=no
3772 fi
3773 rm -f conftest.$ac_objext conftest.$ac_ext
3774
3775 if test $ac_cv_header_stdc = yes; then
3776   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3777   cat >conftest.$ac_ext <<_ACEOF
3778 #line $LINENO "configure"
3779 /* confdefs.h.  */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h.  */
3784 #include <string.h>
3785
3786 _ACEOF
3787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3788   $EGREP "memchr" >/dev/null 2>&1; then
3789   :
3790 else
3791   ac_cv_header_stdc=no
3792 fi
3793 rm -f conftest*
3794
3795 fi
3796
3797 if test $ac_cv_header_stdc = yes; then
3798   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3799   cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3801 /* confdefs.h.  */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h.  */
3806 #include <stdlib.h>
3807
3808 _ACEOF
3809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3810   $EGREP "free" >/dev/null 2>&1; then
3811   :
3812 else
3813   ac_cv_header_stdc=no
3814 fi
3815 rm -f conftest*
3816
3817 fi
3818
3819 if test $ac_cv_header_stdc = yes; then
3820   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3821   if test "$cross_compiling" = yes; then
3822   :
3823 else
3824   cat >conftest.$ac_ext <<_ACEOF
3825 #line $LINENO "configure"
3826 /* confdefs.h.  */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h.  */
3831 #include <ctype.h>
3832 #if ((' ' & 0x0FF) == 0x020)
3833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3835 #else
3836 # define ISLOWER(c) \
3837                    (('a' <= (c) && (c) <= 'i') \
3838                      || ('j' <= (c) && (c) <= 'r') \
3839                      || ('s' <= (c) && (c) <= 'z'))
3840 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3841 #endif
3842
3843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3844 int
3845 main ()
3846 {
3847   int i;
3848   for (i = 0; i < 256; i++)
3849     if (XOR (islower (i), ISLOWER (i))
3850         || toupper (i) != TOUPPER (i))
3851       exit(2);
3852   exit (0);
3853 }
3854 _ACEOF
3855 rm -f conftest$ac_exeext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857   (eval $ac_link) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862   (eval $ac_try) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   :
3867 else
3868   echo "$as_me: program exited with status $ac_status" >&5
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ( exit $ac_status )
3873 ac_cv_header_stdc=no
3874 fi
3875 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3876 fi
3877 fi
3878 fi
3879 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3880 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3881 if test $ac_cv_header_stdc = yes; then
3882
3883 cat >>confdefs.h <<\_ACEOF
3884 #define STDC_HEADERS 1
3885 _ACEOF
3886
3887 fi
3888
3889
3890
3891
3892
3893
3894 for ac_header in unistd.h locale.h termios.h linux/termios.h sys/ioctl.h
3895 do
3896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3898   echo "$as_me:$LINENO: checking for $ac_header" >&5
3899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 fi
3903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3905 else
3906   # Is the header compilable?
3907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3909 cat >conftest.$ac_ext <<_ACEOF
3910 #line $LINENO "configure"
3911 /* confdefs.h.  */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h.  */
3916 $ac_includes_default
3917 #include <$ac_header>
3918 _ACEOF
3919 rm -f conftest.$ac_objext
3920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921   (eval $ac_compile) 2>&5
3922   ac_status=$?
3923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); } &&
3925          { ac_try='test -s conftest.$ac_objext'
3926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927   (eval $ac_try) 2>&5
3928   ac_status=$?
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); }; }; then
3931   ac_header_compiler=yes
3932 else
3933   echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3935
3936 ac_header_compiler=no
3937 fi
3938 rm -f conftest.$ac_objext conftest.$ac_ext
3939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3940 echo "${ECHO_T}$ac_header_compiler" >&6
3941
3942 # Is the header present?
3943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3945 cat >conftest.$ac_ext <<_ACEOF
3946 #line $LINENO "configure"
3947 /* confdefs.h.  */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h.  */
3952 #include <$ac_header>
3953 _ACEOF
3954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3956   ac_status=$?
3957   grep -v '^ *+' conftest.er1 >conftest.err
3958   rm -f conftest.er1
3959   cat conftest.err >&5
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); } >/dev/null; then
3962   if test -s conftest.err; then
3963     ac_cpp_err=$ac_c_preproc_warn_flag
3964   else
3965     ac_cpp_err=
3966   fi
3967 else
3968   ac_cpp_err=yes
3969 fi
3970 if test -z "$ac_cpp_err"; then
3971   ac_header_preproc=yes
3972 else
3973   echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3975
3976   ac_header_preproc=no
3977 fi
3978 rm -f conftest.err conftest.$ac_ext
3979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3980 echo "${ECHO_T}$ac_header_preproc" >&6
3981
3982 # So?  What about this header?
3983 case $ac_header_compiler:$ac_header_preproc in
3984   yes:no )
3985     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3989     (
3990       cat <<\_ASBOX
3991 ## ------------------------------------ ##
3992 ## Report this to bug-autoconf@gnu.org. ##
3993 ## ------------------------------------ ##
3994 _ASBOX
3995     ) |
3996       sed "s/^/$as_me: WARNING:     /" >&2
3997     ;;
3998   no:yes )
3999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4001     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4005     (
4006       cat <<\_ASBOX
4007 ## ------------------------------------ ##
4008 ## Report this to bug-autoconf@gnu.org. ##
4009 ## ------------------------------------ ##
4010 _ASBOX
4011     ) |
4012       sed "s/^/$as_me: WARNING:     /" >&2
4013     ;;
4014 esac
4015 echo "$as_me:$LINENO: checking for $ac_header" >&5
4016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   eval "$as_ac_Header=$ac_header_preproc"
4021 fi
4022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4024
4025 fi
4026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4027   cat >>confdefs.h <<_ACEOF
4028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4029 _ACEOF
4030
4031 fi
4032
4033 done
4034
4035 if test "${ac_cv_header_stdarg_h+set}" = set; then
4036   echo "$as_me:$LINENO: checking for stdarg.h" >&5
4037 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4038 if test "${ac_cv_header_stdarg_h+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 fi
4041 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4042 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4043 else
4044   # Is the header compilable?
4045 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
4046 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
4047 cat >conftest.$ac_ext <<_ACEOF
4048 #line $LINENO "configure"
4049 /* confdefs.h.  */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h.  */
4054 $ac_includes_default
4055 #include <stdarg.h>
4056 _ACEOF
4057 rm -f conftest.$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059   (eval $ac_compile) 2>&5
4060   ac_status=$?
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); } &&
4063          { ac_try='test -s conftest.$ac_objext'
4064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065   (eval $ac_try) 2>&5
4066   ac_status=$?
4067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068   (exit $ac_status); }; }; then
4069   ac_header_compiler=yes
4070 else
4071   echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4073
4074 ac_header_compiler=no
4075 fi
4076 rm -f conftest.$ac_objext conftest.$ac_ext
4077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4078 echo "${ECHO_T}$ac_header_compiler" >&6
4079
4080 # Is the header present?
4081 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
4082 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
4083 cat >conftest.$ac_ext <<_ACEOF
4084 #line $LINENO "configure"
4085 /* confdefs.h.  */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h.  */
4090 #include <stdarg.h>
4091 _ACEOF
4092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4094   ac_status=$?
4095   grep -v '^ *+' conftest.er1 >conftest.err
4096   rm -f conftest.er1
4097   cat conftest.err >&5
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); } >/dev/null; then
4100   if test -s conftest.err; then
4101     ac_cpp_err=$ac_c_preproc_warn_flag
4102   else
4103     ac_cpp_err=
4104   fi
4105 else
4106   ac_cpp_err=yes
4107 fi
4108 if test -z "$ac_cpp_err"; then
4109   ac_header_preproc=yes
4110 else
4111   echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4113
4114   ac_header_preproc=no
4115 fi
4116 rm -f conftest.err conftest.$ac_ext
4117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4118 echo "${ECHO_T}$ac_header_preproc" >&6
4119
4120 # So?  What about this header?
4121 case $ac_header_compiler:$ac_header_preproc in
4122   yes:no )
4123     { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
4124 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4125     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4126 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4127     (
4128       cat <<\_ASBOX
4129 ## ------------------------------------ ##
4130 ## Report this to bug-autoconf@gnu.org. ##
4131 ## ------------------------------------ ##
4132 _ASBOX
4133     ) |
4134       sed "s/^/$as_me: WARNING:     /" >&2
4135     ;;
4136   no:yes )
4137     { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
4138 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
4139     { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
4140 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
4141     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4142 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4143     (
4144       cat <<\_ASBOX
4145 ## ------------------------------------ ##
4146 ## Report this to bug-autoconf@gnu.org. ##
4147 ## ------------------------------------ ##
4148 _ASBOX
4149     ) |
4150       sed "s/^/$as_me: WARNING:     /" >&2
4151     ;;
4152 esac
4153 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4154 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4155 if test "${ac_cv_header_stdarg_h+set}" = set; then
4156   echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158   ac_cv_header_stdarg_h=$ac_header_preproc
4159 fi
4160 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4161 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4162
4163 fi
4164 if test $ac_cv_header_stdarg_h = yes; then
4165   cat >>confdefs.h <<\_ACEOF
4166 #define HAVE_STDARG_H 1
4167 _ACEOF
4168
4169 else
4170   { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
4171 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
4172    { (exit 1); exit 1; }; }
4173 fi
4174
4175
4176 echo "$as_me:$LINENO: checking for working strcoll" >&5
4177 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4178 if test "${ac_cv_func_strcoll_works+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   if test "$cross_compiling" = yes; then
4182   ac_cv_func_strcoll_works=no
4183 else
4184   cat >conftest.$ac_ext <<_ACEOF
4185 #line $LINENO "configure"
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 $ac_includes_default
4192 int
4193 main ()
4194 {
4195 exit (strcoll ("abc", "def") >= 0 ||
4196          strcoll ("ABC", "DEF") >= 0 ||
4197          strcoll ("123", "456") >= 0)
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204   (eval $ac_link) 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209   (eval $ac_try) 2>&5
4210   ac_status=$?
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); }; }; then
4213   ac_cv_func_strcoll_works=yes
4214 else
4215   echo "$as_me: program exited with status $ac_status" >&5
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 ( exit $ac_status )
4220 ac_cv_func_strcoll_works=no
4221 fi
4222 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4223 fi
4224 fi
4225 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4226 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4227 if test $ac_cv_func_strcoll_works = yes; then
4228
4229 cat >>confdefs.h <<\_ACEOF
4230 #define HAVE_STRCOLL 1
4231 _ACEOF
4232
4233 fi
4234
4235
4236 for ac_func in setlocale
4237 do
4238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4239 echo "$as_me:$LINENO: checking for $ac_func" >&5
4240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4241 if eval "test \"\${$as_ac_var+set}\" = set"; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   cat >conftest.$ac_ext <<_ACEOF
4245 #line $LINENO "configure"
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251 /* System header to define __stub macros and hopefully few prototypes,
4252     which can conflict with char $ac_func (); below.
4253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4254     <limits.h> exists even on freestanding compilers.  */
4255 #ifdef __STDC__
4256 # include <limits.h>
4257 #else
4258 # include <assert.h>
4259 #endif
4260 /* Override any gcc2 internal prototype to avoid an error.  */
4261 #ifdef __cplusplus
4262 extern "C"
4263 {
4264 #endif
4265 /* We use char because int might match the return type of a gcc2
4266    builtin and then its argument prototype would still apply.  */
4267 char $ac_func ();
4268 /* The GNU C library defines this for functions which it implements
4269     to always fail with ENOSYS.  Some functions are actually named
4270     something starting with __ and the normal name is an alias.  */
4271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4272 choke me
4273 #else
4274 char (*f) () = $ac_func;
4275 #endif
4276 #ifdef __cplusplus
4277 }
4278 #endif
4279
4280 int
4281 main ()
4282 {
4283 return f != $ac_func;
4284   ;
4285   return 0;
4286 }
4287 _ACEOF
4288 rm -f conftest.$ac_objext conftest$ac_exeext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4290   (eval $ac_link) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); } &&
4294          { ac_try='test -s conftest$ac_exeext'
4295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296   (eval $ac_try) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; }; then
4300   eval "$as_ac_var=yes"
4301 else
4302   echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 eval "$as_ac_var=no"
4306 fi
4307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4308 fi
4309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4311 if test `eval echo '${'$as_ac_var'}'` = yes; then
4312   cat >>confdefs.h <<_ACEOF
4313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4314 _ACEOF
4315
4316 fi
4317 done
4318
4319
4320 ac_widec_funcs=yes
4321 if test "${ac_cv_header_wchar_h+set}" = set; then
4322   echo "$as_me:$LINENO: checking for wchar.h" >&5
4323 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4324 if test "${ac_cv_header_wchar_h+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 fi
4327 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4328 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4329 else
4330   # Is the header compilable?
4331 echo "$as_me:$LINENO: checking wchar.h usability" >&5
4332 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
4333 cat >conftest.$ac_ext <<_ACEOF
4334 #line $LINENO "configure"
4335 /* confdefs.h.  */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h.  */
4340 $ac_includes_default
4341 #include <wchar.h>
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345   (eval $ac_compile) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); } &&
4349          { ac_try='test -s conftest.$ac_objext'
4350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351   (eval $ac_try) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; }; then
4355   ac_header_compiler=yes
4356 else
4357   echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 ac_header_compiler=no
4361 fi
4362 rm -f conftest.$ac_objext conftest.$ac_ext
4363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4364 echo "${ECHO_T}$ac_header_compiler" >&6
4365
4366 # Is the header present?
4367 echo "$as_me:$LINENO: checking wchar.h presence" >&5
4368 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
4369 cat >conftest.$ac_ext <<_ACEOF
4370 #line $LINENO "configure"
4371 /* confdefs.h.  */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h.  */
4376 #include <wchar.h>
4377 _ACEOF
4378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4379   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4380   ac_status=$?
4381   grep -v '^ *+' conftest.er1 >conftest.err
4382   rm -f conftest.er1
4383   cat conftest.err >&5
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); } >/dev/null; then
4386   if test -s conftest.err; then
4387     ac_cpp_err=$ac_c_preproc_warn_flag
4388   else
4389     ac_cpp_err=
4390   fi
4391 else
4392   ac_cpp_err=yes
4393 fi
4394 if test -z "$ac_cpp_err"; then
4395   ac_header_preproc=yes
4396 else
4397   echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400   ac_header_preproc=no
4401 fi
4402 rm -f conftest.err conftest.$ac_ext
4403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4404 echo "${ECHO_T}$ac_header_preproc" >&6
4405
4406 # So?  What about this header?
4407 case $ac_header_compiler:$ac_header_preproc in
4408   yes:no )
4409     { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
4410 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4411     { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
4412 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
4413     (
4414       cat <<\_ASBOX
4415 ## ------------------------------------ ##
4416 ## Report this to bug-autoconf@gnu.org. ##
4417 ## ------------------------------------ ##
4418 _ASBOX
4419     ) |
4420       sed "s/^/$as_me: WARNING:     /" >&2
4421     ;;
4422   no:yes )
4423     { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
4424 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
4425     { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
4426 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
4427     { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
4428 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
4429     (
4430       cat <<\_ASBOX
4431 ## ------------------------------------ ##
4432 ## Report this to bug-autoconf@gnu.org. ##
4433 ## ------------------------------------ ##
4434 _ASBOX
4435     ) |
4436       sed "s/^/$as_me: WARNING:     /" >&2
4437     ;;
4438 esac
4439 echo "$as_me:$LINENO: checking for wchar.h" >&5
4440 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4441 if test "${ac_cv_header_wchar_h+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   ac_cv_header_wchar_h=$ac_header_preproc
4445 fi
4446 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4447 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4448
4449 fi
4450 if test $ac_cv_header_wchar_h = yes; then
4451   ac_have_wchar_h=yes
4452 else
4453   ac_have_wchar_h=no
4454 fi
4455
4456
4457
4458
4459 for ac_func in mbtowc wcwidth
4460 do
4461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4462 echo "$as_me:$LINENO: checking for $ac_func" >&5
4463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4464 if eval "test \"\${$as_ac_var+set}\" = set"; then
4465   echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467   cat >conftest.$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4469 /* confdefs.h.  */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h.  */
4474 /* System header to define __stub macros and hopefully few prototypes,
4475     which can conflict with char $ac_func (); below.
4476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4477     <limits.h> exists even on freestanding compilers.  */
4478 #ifdef __STDC__
4479 # include <limits.h>
4480 #else
4481 # include <assert.h>
4482 #endif
4483 /* Override any gcc2 internal prototype to avoid an error.  */
4484 #ifdef __cplusplus
4485 extern "C"
4486 {
4487 #endif
4488 /* We use char because int might match the return type of a gcc2
4489    builtin and then its argument prototype would still apply.  */
4490 char $ac_func ();
4491 /* The GNU C library defines this for functions which it implements
4492     to always fail with ENOSYS.  Some functions are actually named
4493     something starting with __ and the normal name is an alias.  */
4494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4495 choke me
4496 #else
4497 char (*f) () = $ac_func;
4498 #endif
4499 #ifdef __cplusplus
4500 }
4501 #endif
4502
4503 int
4504 main ()
4505 {
4506 return f != $ac_func;
4507   ;
4508   return 0;
4509 }
4510 _ACEOF
4511 rm -f conftest.$ac_objext conftest$ac_exeext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513   (eval $ac_link) 2>&5
4514   ac_status=$?
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); } &&
4517          { ac_try='test -s conftest$ac_exeext'
4518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519   (eval $ac_try) 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; }; then
4523   eval "$as_ac_var=yes"
4524 else
4525   echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4527
4528 eval "$as_ac_var=no"
4529 fi
4530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4531 fi
4532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4534 if test `eval echo '${'$as_ac_var'}'` = yes; then
4535   cat >>confdefs.h <<_ACEOF
4536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4537 _ACEOF
4538
4539 else
4540   ac_widec_funcs=no
4541 fi
4542 done
4543
4544 echo "$as_me:$LINENO: checking for wchar_t" >&5
4545 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4546 if test "${ac_cv_type_wchar_t+set}" = set; then
4547   echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549   cat >conftest.$ac_ext <<_ACEOF
4550 #line $LINENO "configure"
4551 /* confdefs.h.  */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h.  */
4556 $ac_includes_default
4557 int
4558 main ()
4559 {
4560 if ((wchar_t *) 0)
4561   return 0;
4562 if (sizeof (wchar_t))
4563   return 0;
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570   (eval $ac_compile) 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); } &&
4574          { ac_try='test -s conftest.$ac_objext'
4575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576   (eval $ac_try) 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; }; then
4580   ac_cv_type_wchar_t=yes
4581 else
4582   echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4584
4585 ac_cv_type_wchar_t=no
4586 fi
4587 rm -f conftest.$ac_objext conftest.$ac_ext
4588 fi
4589 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
4590 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
4591 if test $ac_cv_type_wchar_t = yes; then
4592   :
4593 else
4594   ac_widec_funcs=no
4595 fi
4596
4597
4598 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
4599         ac_widec_possible=yes
4600 else
4601         ac_widec_possible=no
4602 fi
4603
4604 # Check whether --enable-widec or --disable-widec was given.
4605 if test "${enable_widec+set}" = set; then
4606   enableval="$enable_widec"
4607   case "${enableval}" in
4608         yes) ac_widec_support=true ;;
4609         no) ac_widec_support=false ;;
4610         *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-widec" >&5
4611 echo "$as_me: error: bad value ${enableval} for --enable-widec" >&2;}
4612    { (exit 1); exit 1; }; } ;;
4613         esac
4614 else
4615   ac_widec_support=false
4616 fi;
4617
4618 if test x$ac_widec_support = xtrue -a x$ac_widec_possible != xyes; then
4619         { { echo "$as_me:$LINENO: error: Wide character support is not possible due to missing wide character functions or wchar.h" >&5
4620 echo "$as_me: error: Wide character support is not possible due to missing wide character functions or wchar.h" >&2;}
4621    { (exit 1); exit 1; }; }
4622 fi
4623
4624
4625 abook_cv_curses=/usr
4626
4627 # Check whether --with-curses or --without-curses was given.
4628 if test "${with_curses+set}" = set; then
4629   withval="$with_curses"
4630   if test $withval != yes; then
4631                 abook_cv_curses=$withval
4632         fi
4633         if test x$abook_cv_curses != x/usr; then
4634                 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
4635                 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
4636         fi
4637 fi;
4638
4639 if test x$ac_widec_support = xtrue; then
4640         echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
4641 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6
4642 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   ac_check_lib_save_LIBS=$LIBS
4646 LIBS="-lncursesw  $LIBS"
4647 cat >conftest.$ac_ext <<_ACEOF
4648 #line $LINENO "configure"
4649 /* confdefs.h.  */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h.  */
4654
4655 /* Override any gcc2 internal prototype to avoid an error.  */
4656 #ifdef __cplusplus
4657 extern "C"
4658 #endif
4659 /* We use char because int might match the return type of a gcc2
4660    builtin and then its argument prototype would still apply.  */
4661 char initscr ();
4662 int
4663 main ()
4664 {
4665 initscr ();
4666   ;
4667   return 0;
4668 }
4669 _ACEOF
4670 rm -f conftest.$ac_objext conftest$ac_exeext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672   (eval $ac_link) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } &&
4676          { ac_try='test -s conftest$ac_exeext'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; }; then
4682   ac_cv_lib_ncursesw_initscr=yes
4683 else
4684   echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 ac_cv_lib_ncursesw_initscr=no
4688 fi
4689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4690 LIBS=$ac_check_lib_save_LIBS
4691 fi
4692 echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
4693 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6
4694 if test $ac_cv_lib_ncursesw_initscr = yes; then
4695   LIBS="$LIBS -lncursesw"
4696                 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
4697                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
4698                 fi
4699
4700 for ac_header in ncurses.h
4701 do
4702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4704   echo "$as_me:$LINENO: checking for $ac_header" >&5
4705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4707   echo $ECHO_N "(cached) $ECHO_C" >&6
4708 fi
4709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4711 else
4712   # Is the header compilable?
4713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4715 cat >conftest.$ac_ext <<_ACEOF
4716 #line $LINENO "configure"
4717 /* confdefs.h.  */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h.  */
4722 $ac_includes_default
4723 #include <$ac_header>
4724 _ACEOF
4725 rm -f conftest.$ac_objext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727   (eval $ac_compile) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); } &&
4731          { ac_try='test -s conftest.$ac_objext'
4732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733   (eval $ac_try) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }; }; then
4737   ac_header_compiler=yes
4738 else
4739   echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4741
4742 ac_header_compiler=no
4743 fi
4744 rm -f conftest.$ac_objext conftest.$ac_ext
4745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4746 echo "${ECHO_T}$ac_header_compiler" >&6
4747
4748 # Is the header present?
4749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4751 cat >conftest.$ac_ext <<_ACEOF
4752 #line $LINENO "configure"
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758 #include <$ac_header>
4759 _ACEOF
4760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4761   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4762   ac_status=$?
4763   grep -v '^ *+' conftest.er1 >conftest.err
4764   rm -f conftest.er1
4765   cat conftest.err >&5
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); } >/dev/null; then
4768   if test -s conftest.err; then
4769     ac_cpp_err=$ac_c_preproc_warn_flag
4770   else
4771     ac_cpp_err=
4772   fi
4773 else
4774   ac_cpp_err=yes
4775 fi
4776 if test -z "$ac_cpp_err"; then
4777   ac_header_preproc=yes
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782   ac_header_preproc=no
4783 fi
4784 rm -f conftest.err conftest.$ac_ext
4785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4786 echo "${ECHO_T}$ac_header_preproc" >&6
4787
4788 # So?  What about this header?
4789 case $ac_header_compiler:$ac_header_preproc in
4790   yes:no )
4791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4795     (
4796       cat <<\_ASBOX
4797 ## ------------------------------------ ##
4798 ## Report this to bug-autoconf@gnu.org. ##
4799 ## ------------------------------------ ##
4800 _ASBOX
4801     ) |
4802       sed "s/^/$as_me: WARNING:     /" >&2
4803     ;;
4804   no:yes )
4805     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4807     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4811     (
4812       cat <<\_ASBOX
4813 ## ------------------------------------ ##
4814 ## Report this to bug-autoconf@gnu.org. ##
4815 ## ------------------------------------ ##
4816 _ASBOX
4817     ) |
4818       sed "s/^/$as_me: WARNING:     /" >&2
4819     ;;
4820 esac
4821 echo "$as_me:$LINENO: checking for $ac_header" >&5
4822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4824   echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826   eval "$as_ac_Header=$ac_header_preproc"
4827 fi
4828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4830
4831 fi
4832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4833   cat >>confdefs.h <<_ACEOF
4834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4835 _ACEOF
4836
4837 fi
4838
4839 done
4840
4841 else
4842
4843                 { { echo "$as_me:$LINENO: error: \"Wide character support is not possible due to missing ncursesw library. Please install it or disable wide character support\"" >&5
4844 echo "$as_me: error: \"Wide character support is not possible due to missing ncursesw library. Please install it or disable wide character support\"" >&2;}
4845    { (exit 1); exit 1; }; }
4846 fi
4847
4848 else
4849         echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
4850 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
4851 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
4852   echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854   ac_check_lib_save_LIBS=$LIBS
4855 LIBS="-lncurses  $LIBS"
4856 cat >conftest.$ac_ext <<_ACEOF
4857 #line $LINENO "configure"
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863
4864 /* Override any gcc2 internal prototype to avoid an error.  */
4865 #ifdef __cplusplus
4866 extern "C"
4867 #endif
4868 /* We use char because int might match the return type of a gcc2
4869    builtin and then its argument prototype would still apply.  */
4870 char initscr ();
4871 int
4872 main ()
4873 {
4874 initscr ();
4875   ;
4876   return 0;
4877 }
4878 _ACEOF
4879 rm -f conftest.$ac_objext conftest$ac_exeext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4881   (eval $ac_link) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); } &&
4885          { ac_try='test -s conftest$ac_exeext'
4886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887   (eval $ac_try) 2>&5
4888   ac_status=$?
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); }; }; then
4891   ac_cv_lib_ncurses_initscr=yes
4892 else
4893   echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4895
4896 ac_cv_lib_ncurses_initscr=no
4897 fi
4898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4899 LIBS=$ac_check_lib_save_LIBS
4900 fi
4901 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
4902 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
4903 if test $ac_cv_lib_ncurses_initscr = yes; then
4904   LIBS="$LIBS -lncurses"
4905                 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
4906                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
4907                 fi
4908
4909 for ac_header in ncurses.h
4910 do
4911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4913   echo "$as_me:$LINENO: checking for $ac_header" >&5
4914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4916   echo $ECHO_N "(cached) $ECHO_C" >&6
4917 fi
4918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4920 else
4921   # Is the header compilable?
4922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4924 cat >conftest.$ac_ext <<_ACEOF
4925 #line $LINENO "configure"
4926 /* confdefs.h.  */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h.  */
4931 $ac_includes_default
4932 #include <$ac_header>
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936   (eval $ac_compile) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); } &&
4940          { ac_try='test -s conftest.$ac_objext'
4941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942   (eval $ac_try) 2>&5
4943   ac_status=$?
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); }; }; then
4946   ac_header_compiler=yes
4947 else
4948   echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4950
4951 ac_header_compiler=no
4952 fi
4953 rm -f conftest.$ac_objext conftest.$ac_ext
4954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4955 echo "${ECHO_T}$ac_header_compiler" >&6
4956
4957 # Is the header present?
4958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4960 cat >conftest.$ac_ext <<_ACEOF
4961 #line $LINENO "configure"
4962 /* confdefs.h.  */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h.  */
4967 #include <$ac_header>
4968 _ACEOF
4969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4971   ac_status=$?
4972   grep -v '^ *+' conftest.er1 >conftest.err
4973   rm -f conftest.er1
4974   cat conftest.err >&5
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } >/dev/null; then
4977   if test -s conftest.err; then
4978     ac_cpp_err=$ac_c_preproc_warn_flag
4979   else
4980     ac_cpp_err=
4981   fi
4982 else
4983   ac_cpp_err=yes
4984 fi
4985 if test -z "$ac_cpp_err"; then
4986   ac_header_preproc=yes
4987 else
4988   echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991   ac_header_preproc=no
4992 fi
4993 rm -f conftest.err conftest.$ac_ext
4994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4995 echo "${ECHO_T}$ac_header_preproc" >&6
4996
4997 # So?  What about this header?
4998 case $ac_header_compiler:$ac_header_preproc in
4999   yes:no )
5000     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5004     (
5005       cat <<\_ASBOX
5006 ## ------------------------------------ ##
5007 ## Report this to bug-autoconf@gnu.org. ##
5008 ## ------------------------------------ ##
5009 _ASBOX
5010     ) |
5011       sed "s/^/$as_me: WARNING:     /" >&2
5012     ;;
5013   no:yes )
5014     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5016     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5020     (
5021       cat <<\_ASBOX
5022 ## ------------------------------------ ##
5023 ## Report this to bug-autoconf@gnu.org. ##
5024 ## ------------------------------------ ##
5025 _ASBOX
5026     ) |
5027       sed "s/^/$as_me: WARNING:     /" >&2
5028     ;;
5029 esac
5030 echo "$as_me:$LINENO: checking for $ac_header" >&5
5031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   eval "$as_ac_Header=$ac_header_preproc"
5036 fi
5037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5039
5040 fi
5041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5042   cat >>confdefs.h <<_ACEOF
5043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5044 _ACEOF
5045
5046 fi
5047
5048 done
5049
5050 else
5051
5052 echo "$as_me:$LINENO: checking for initscr" >&5
5053 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5054 if test "${ac_cv_func_initscr+set}" = set; then
5055   echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057   cat >conftest.$ac_ext <<_ACEOF
5058 #line $LINENO "configure"
5059 /* confdefs.h.  */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h.  */
5064 /* System header to define __stub macros and hopefully few prototypes,
5065     which can conflict with char initscr (); below.
5066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5067     <limits.h> exists even on freestanding compilers.  */
5068 #ifdef __STDC__
5069 # include <limits.h>
5070 #else
5071 # include <assert.h>
5072 #endif
5073 /* Override any gcc2 internal prototype to avoid an error.  */
5074 #ifdef __cplusplus
5075 extern "C"
5076 {
5077 #endif
5078 /* We use char because int might match the return type of a gcc2
5079    builtin and then its argument prototype would still apply.  */
5080 char initscr ();
5081 /* The GNU C library defines this for functions which it implements
5082     to always fail with ENOSYS.  Some functions are actually named
5083     something starting with __ and the normal name is an alias.  */
5084 #if defined (__stub_initscr) || defined (__stub___initscr)
5085 choke me
5086 #else
5087 char (*f) () = initscr;
5088 #endif
5089 #ifdef __cplusplus
5090 }
5091 #endif
5092
5093 int
5094 main ()
5095 {
5096 return f != initscr;
5097   ;
5098   return 0;
5099 }
5100 _ACEOF
5101 rm -f conftest.$ac_objext conftest$ac_exeext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5103   (eval $ac_link) 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); } &&
5107          { ac_try='test -s conftest$ac_exeext'
5108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109   (eval $ac_try) 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }; }; then
5113   ac_cv_func_initscr=yes
5114 else
5115   echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5117
5118 ac_cv_func_initscr=no
5119 fi
5120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5121 fi
5122 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5123 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5124 if test $ac_cv_func_initscr = yes; then
5125   :
5126 else
5127
5128 case $host_os in #(vi
5129 freebsd*) #(vi
5130         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5131 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5132 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5133   echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135   ac_check_lib_save_LIBS=$LIBS
5136 LIBS="-lmytinfo  $LIBS"
5137 cat >conftest.$ac_ext <<_ACEOF
5138 #line $LINENO "configure"
5139 /* confdefs.h.  */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h.  */
5144
5145 /* Override any gcc2 internal prototype to avoid an error.  */
5146 #ifdef __cplusplus
5147 extern "C"
5148 #endif
5149 /* We use char because int might match the return type of a gcc2
5150    builtin and then its argument prototype would still apply.  */
5151 char tgoto ();
5152 int
5153 main ()
5154 {
5155 tgoto ();
5156   ;
5157   return 0;
5158 }
5159 _ACEOF
5160 rm -f conftest.$ac_objext conftest$ac_exeext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5162   (eval $ac_link) 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); } &&
5166          { ac_try='test -s conftest$ac_exeext'
5167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168   (eval $ac_try) 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); }; }; then
5172   ac_cv_lib_mytinfo_tgoto=yes
5173 else
5174   echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5176
5177 ac_cv_lib_mytinfo_tgoto=no
5178 fi
5179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5180 LIBS=$ac_check_lib_save_LIBS
5181 fi
5182 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5183 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5184 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5185   LIBS="-lmytinfo $LIBS"
5186 fi
5187
5188         ;;
5189 hpux10.*|hpux11.*)
5190         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5191 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5192 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5193   echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195   ac_check_lib_save_LIBS=$LIBS
5196 LIBS="-lcur_colr  $LIBS"
5197 cat >conftest.$ac_ext <<_ACEOF
5198 #line $LINENO "configure"
5199 /* confdefs.h.  */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h.  */
5204
5205 /* Override any gcc2 internal prototype to avoid an error.  */
5206 #ifdef __cplusplus
5207 extern "C"
5208 #endif
5209 /* We use char because int might match the return type of a gcc2
5210    builtin and then its argument prototype would still apply.  */
5211 char initscr ();
5212 int
5213 main ()
5214 {
5215 initscr ();
5216   ;
5217   return 0;
5218 }
5219 _ACEOF
5220 rm -f conftest.$ac_objext conftest$ac_exeext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5222   (eval $ac_link) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); } &&
5226          { ac_try='test -s conftest$ac_exeext'
5227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228   (eval $ac_try) 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); }; }; then
5232   ac_cv_lib_cur_colr_initscr=yes
5233 else
5234   echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 ac_cv_lib_cur_colr_initscr=no
5238 fi
5239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5240 LIBS=$ac_check_lib_save_LIBS
5241 fi
5242 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5243 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5244 if test $ac_cv_lib_cur_colr_initscr = yes; then
5245
5246                 LIBS="-lcur_colr $LIBS"
5247                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5248                 ac_cv_func_initscr=yes
5249
5250 else
5251
5252         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5253 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5254 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5255   echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257   ac_check_lib_save_LIBS=$LIBS
5258 LIBS="-lHcurses  $LIBS"
5259 cat >conftest.$ac_ext <<_ACEOF
5260 #line $LINENO "configure"
5261 /* confdefs.h.  */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h.  */
5266
5267 /* Override any gcc2 internal prototype to avoid an error.  */
5268 #ifdef __cplusplus
5269 extern "C"
5270 #endif
5271 /* We use char because int might match the return type of a gcc2
5272    builtin and then its argument prototype would still apply.  */
5273 char initscr ();
5274 int
5275 main ()
5276 {
5277 initscr ();
5278   ;
5279   return 0;
5280 }
5281 _ACEOF
5282 rm -f conftest.$ac_objext conftest$ac_exeext
5283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5284   (eval $ac_link) 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } &&
5288          { ac_try='test -s conftest$ac_exeext'
5289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290   (eval $ac_try) 2>&5
5291   ac_status=$?
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); }; }; then
5294   ac_cv_lib_Hcurses_initscr=yes
5295 else
5296   echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299 ac_cv_lib_Hcurses_initscr=no
5300 fi
5301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5302 LIBS=$ac_check_lib_save_LIBS
5303 fi
5304 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5305 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5306 if test $ac_cv_lib_Hcurses_initscr = yes; then
5307
5308                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5309                 LIBS="-lHcurses $LIBS"
5310                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5311                 ac_cv_func_initscr=yes
5312
5313 fi
5314
5315 fi
5316
5317         ;;
5318 linux*) # Suse Linux does not follow /usr/lib convention
5319         LIBS="$LIBS -L/lib"
5320         ;;
5321 esac
5322
5323 if test ".$With5lib" != ".no" ; then
5324 if test -d /usr/5lib ; then
5325         # SunOS 3.x or 4.x
5326         CPPFLAGS="$CPPFLAGS -I/usr/5include"
5327         LIBS="$LIBS -L/usr/5lib"
5328 fi
5329 fi
5330
5331 if test ".$ac_cv_func_initscr" != .yes ; then
5332         cf_save_LIBS="$LIBS"
5333         cf_term_lib=""
5334         cf_curs_lib=""
5335
5336         # Check for library containing tgoto.  Do this before curses library
5337         # because it may be needed to link the test-case for initscr.
5338         echo "$as_me:$LINENO: checking for tgoto" >&5
5339 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5340 if test "${ac_cv_func_tgoto+set}" = set; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343   cat >conftest.$ac_ext <<_ACEOF
5344 #line $LINENO "configure"
5345 /* confdefs.h.  */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h.  */
5350 /* System header to define __stub macros and hopefully few prototypes,
5351     which can conflict with char tgoto (); below.
5352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5353     <limits.h> exists even on freestanding compilers.  */
5354 #ifdef __STDC__
5355 # include <limits.h>
5356 #else
5357 # include <assert.h>
5358 #endif
5359 /* Override any gcc2 internal prototype to avoid an error.  */
5360 #ifdef __cplusplus
5361 extern "C"
5362 {
5363 #endif
5364 /* We use char because int might match the return type of a gcc2
5365    builtin and then its argument prototype would still apply.  */
5366 char tgoto ();
5367 /* The GNU C library defines this for functions which it implements
5368     to always fail with ENOSYS.  Some functions are actually named
5369     something starting with __ and the normal name is an alias.  */
5370 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5371 choke me
5372 #else
5373 char (*f) () = tgoto;
5374 #endif
5375 #ifdef __cplusplus
5376 }
5377 #endif
5378
5379 int
5380 main ()
5381 {
5382 return f != tgoto;
5383   ;
5384   return 0;
5385 }
5386 _ACEOF
5387 rm -f conftest.$ac_objext conftest$ac_exeext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5389   (eval $ac_link) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } &&
5393          { ac_try='test -s conftest$ac_exeext'
5394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395   (eval $ac_try) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; }; then
5399   ac_cv_func_tgoto=yes
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 ac_cv_func_tgoto=no
5405 fi
5406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5407 fi
5408 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5409 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5410 if test $ac_cv_func_tgoto = yes; then
5411   cf_term_lib=predefined
5412 else
5413
5414                 for cf_term_lib in termcap termlib unknown
5415                 do
5416                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5417 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5418 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5419 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5420   echo $ECHO_N "(cached) $ECHO_C" >&6
5421 else
5422   ac_check_lib_save_LIBS=$LIBS
5423 LIBS="-l$cf_term_lib  $LIBS"
5424 cat >conftest.$ac_ext <<_ACEOF
5425 #line $LINENO "configure"
5426 /* confdefs.h.  */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h.  */
5431
5432 /* Override any gcc2 internal prototype to avoid an error.  */
5433 #ifdef __cplusplus
5434 extern "C"
5435 #endif
5436 /* We use char because int might match the return type of a gcc2
5437    builtin and then its argument prototype would still apply.  */
5438 char tgoto ();
5439 int
5440 main ()
5441 {
5442 tgoto ();
5443   ;
5444   return 0;
5445 }
5446 _ACEOF
5447 rm -f conftest.$ac_objext conftest$ac_exeext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5449   (eval $ac_link) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); } &&
5453          { ac_try='test -s conftest$ac_exeext'
5454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455   (eval $ac_try) 2>&5
5456   ac_status=$?
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); }; }; then
5459   eval "$as_ac_Lib=yes"
5460 else
5461   echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 eval "$as_ac_Lib=no"
5465 fi
5466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5467 LIBS=$ac_check_lib_save_LIBS
5468 fi
5469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5470 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5471 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5472   break
5473 fi
5474
5475                 done
5476
5477 fi
5478
5479
5480         # Check for library containing initscr
5481         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5482         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5483         do
5484                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5485 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5486 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5487 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   ac_check_lib_save_LIBS=$LIBS
5491 LIBS="-l$cf_curs_lib  $LIBS"
5492 cat >conftest.$ac_ext <<_ACEOF
5493 #line $LINENO "configure"
5494 /* confdefs.h.  */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h.  */
5499
5500 /* Override any gcc2 internal prototype to avoid an error.  */
5501 #ifdef __cplusplus
5502 extern "C"
5503 #endif
5504 /* We use char because int might match the return type of a gcc2
5505    builtin and then its argument prototype would still apply.  */
5506 char initscr ();
5507 int
5508 main ()
5509 {
5510 initscr ();
5511   ;
5512   return 0;
5513 }
5514 _ACEOF
5515 rm -f conftest.$ac_objext conftest$ac_exeext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517   (eval $ac_link) 2>&5
5518   ac_status=$?
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); } &&
5521          { ac_try='test -s conftest$ac_exeext'
5522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523   (eval $ac_try) 2>&5
5524   ac_status=$?
5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526   (exit $ac_status); }; }; then
5527   eval "$as_ac_Lib=yes"
5528 else
5529   echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5531
5532 eval "$as_ac_Lib=no"
5533 fi
5534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5535 LIBS=$ac_check_lib_save_LIBS
5536 fi
5537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5538 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5539 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5540   break
5541 fi
5542
5543         done
5544         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5545 echo "$as_me: error: no curses library found" >&2;}
5546    { (exit 1); exit 1; }; }
5547
5548         LIBS="-l$cf_curs_lib $cf_save_LIBS"
5549         if test "$cf_term_lib" = unknown ; then
5550                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5551 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5552                 cat >conftest.$ac_ext <<_ACEOF
5553 #line $LINENO "configure"
5554 /* confdefs.h.  */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h.  */
5559 #include <${cf_cv_ncurses_header-curses.h}>
5560 int
5561 main ()
5562 {
5563 initscr()
5564   ;
5565   return 0;
5566 }
5567 _ACEOF
5568 rm -f conftest.$ac_objext conftest$ac_exeext
5569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570   (eval $ac_link) 2>&5
5571   ac_status=$?
5572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573   (exit $ac_status); } &&
5574          { ac_try='test -s conftest$ac_exeext'
5575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576   (eval $ac_try) 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); }; }; then
5580   cf_result=yes
5581 else
5582   echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5584
5585 cf_result=no
5586 fi
5587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5588                 echo "$as_me:$LINENO: result: $cf_result" >&5
5589 echo "${ECHO_T}$cf_result" >&6
5590                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5591 echo "$as_me: error: Cannot link curses library" >&2;}
5592    { (exit 1); exit 1; }; }
5593         elif test "$cf_term_lib" != predefined ; then
5594                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5595 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5596                 cat >conftest.$ac_ext <<_ACEOF
5597 #line $LINENO "configure"
5598 /* confdefs.h.  */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h.  */
5603 #include <${cf_cv_ncurses_header-curses.h}>
5604 int
5605 main ()
5606 {
5607 initscr(); tgoto((char *)0, 0, 0);
5608   ;
5609   return 0;
5610 }
5611 _ACEOF
5612 rm -f conftest.$ac_objext conftest$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614   (eval $ac_link) 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); } &&
5618          { ac_try='test -s conftest$ac_exeext'
5619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620   (eval $ac_try) 2>&5
5621   ac_status=$?
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); }; }; then
5624   cf_result=no
5625 else
5626   echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629
5630                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5631                         cat >conftest.$ac_ext <<_ACEOF
5632 #line $LINENO "configure"
5633 /* confdefs.h.  */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h.  */
5638 #include <${cf_cv_ncurses_header-curses.h}>
5639 int
5640 main ()
5641 {
5642 initscr()
5643   ;
5644   return 0;
5645 }
5646 _ACEOF
5647 rm -f conftest.$ac_objext conftest$ac_exeext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649   (eval $ac_link) 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } &&
5653          { ac_try='test -s conftest$ac_exeext'
5654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655   (eval $ac_try) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }; }; then
5659   cf_result=yes
5660 else
5661   echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5663
5664 cf_result=error
5665 fi
5666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5667
5668 fi
5669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5670                 echo "$as_me:$LINENO: result: $cf_result" >&5
5671 echo "${ECHO_T}$cf_result" >&6
5672         fi
5673 fi
5674
5675
5676 fi
5677
5678 fi
5679
5680 fi
5681
5682
5683
5684 abook_cv_readline=/usr
5685
5686 # Check whether --with-readline or --without-readline was given.
5687 if test "${with_readline+set}" = set; then
5688   withval="$with_readline"
5689   if test $withval != yes; then
5690                 abook_cv_readline=$withval
5691         fi
5692         if test x$abook_cv_readline != x/usr; then
5693                 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
5694                 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
5695         fi
5696 fi;
5697
5698
5699   echo "$as_me:$LINENO: checking for a readline compatible library" >&5
5700 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
5701 if test "${ac_cv_lib_readline+set}" = set; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704
5705     ORIG_LIBS="$LIBS"
5706     for readline_lib in readline edit editline; do
5707       for termcap_lib in "" termcap curses ncurses; do
5708         if test -z "$termcap_lib"; then
5709           TRY_LIB="-l$readline_lib"
5710         else
5711           TRY_LIB="-l$readline_lib -l$termcap_lib"
5712         fi
5713         LIBS="$ORIG_LIBS $TRY_LIB"
5714         cat >conftest.$ac_ext <<_ACEOF
5715 #line $LINENO "configure"
5716 /* confdefs.h.  */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h.  */
5721
5722 /* Override any gcc2 internal prototype to avoid an error.  */
5723 #ifdef __cplusplus
5724 extern "C"
5725 #endif
5726 /* We use char because int might match the return type of a gcc2
5727    builtin and then its argument prototype would still apply.  */
5728 char readline ();
5729 int
5730 main ()
5731 {
5732 readline ();
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739   (eval $ac_link) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); } &&
5743          { ac_try='test -s conftest$ac_exeext'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; }; then
5749   ac_cv_lib_readline="$TRY_LIB"
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754 fi
5755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5756         if test -n "$ac_cv_lib_readline"; then
5757           break
5758         fi
5759       done
5760       if test -n "$ac_cv_lib_readline"; then
5761         break
5762       fi
5763     done
5764     if test -z "$ac_cv_lib_readline"; then
5765       ac_cv_lib_readline="no"
5766     fi
5767     LIBS="$ORIG_LIBS"
5768
5769 fi
5770 echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
5771 echo "${ECHO_T}$ac_cv_lib_readline" >&6
5772
5773   if test "$ac_cv_lib_readline" != "no"; then
5774     LIBS="$LIBS $ac_cv_lib_readline"
5775
5776 cat >>confdefs.h <<\_ACEOF
5777 #define HAVE_LIBREADLINE 1
5778 _ACEOF
5779
5780
5781
5782 for ac_header in readline.h readline/readline.h
5783 do
5784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5786   echo "$as_me:$LINENO: checking for $ac_header" >&5
5787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 fi
5791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5793 else
5794   # Is the header compilable?
5795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5797 cat >conftest.$ac_ext <<_ACEOF
5798 #line $LINENO "configure"
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804 $ac_includes_default
5805 #include <$ac_header>
5806 _ACEOF
5807 rm -f conftest.$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809   (eval $ac_compile) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -s conftest.$ac_objext'
5814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815   (eval $ac_try) 2>&5
5816   ac_status=$?
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); }; }; then
5819   ac_header_compiler=yes
5820 else
5821   echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824 ac_header_compiler=no
5825 fi
5826 rm -f conftest.$ac_objext conftest.$ac_ext
5827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5828 echo "${ECHO_T}$ac_header_compiler" >&6
5829
5830 # Is the header present?
5831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5833 cat >conftest.$ac_ext <<_ACEOF
5834 #line $LINENO "configure"
5835 /* confdefs.h.  */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h.  */
5840 #include <$ac_header>
5841 _ACEOF
5842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5843   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5844   ac_status=$?
5845   grep -v '^ *+' conftest.er1 >conftest.err
5846   rm -f conftest.er1
5847   cat conftest.err >&5
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); } >/dev/null; then
5850   if test -s conftest.err; then
5851     ac_cpp_err=$ac_c_preproc_warn_flag
5852   else
5853     ac_cpp_err=
5854   fi
5855 else
5856   ac_cpp_err=yes
5857 fi
5858 if test -z "$ac_cpp_err"; then
5859   ac_header_preproc=yes
5860 else
5861   echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864   ac_header_preproc=no
5865 fi
5866 rm -f conftest.err conftest.$ac_ext
5867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5868 echo "${ECHO_T}$ac_header_preproc" >&6
5869
5870 # So?  What about this header?
5871 case $ac_header_compiler:$ac_header_preproc in
5872   yes:no )
5873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5877     (
5878       cat <<\_ASBOX
5879 ## ------------------------------------ ##
5880 ## Report this to bug-autoconf@gnu.org. ##
5881 ## ------------------------------------ ##
5882 _ASBOX
5883     ) |
5884       sed "s/^/$as_me: WARNING:     /" >&2
5885     ;;
5886   no:yes )
5887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5889     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5893     (
5894       cat <<\_ASBOX
5895 ## ------------------------------------ ##
5896 ## Report this to bug-autoconf@gnu.org. ##
5897 ## ------------------------------------ ##
5898 _ASBOX
5899     ) |
5900       sed "s/^/$as_me: WARNING:     /" >&2
5901     ;;
5902 esac
5903 echo "$as_me:$LINENO: checking for $ac_header" >&5
5904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   eval "$as_ac_Header=$ac_header_preproc"
5909 fi
5910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5912
5913 fi
5914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5915   cat >>confdefs.h <<_ACEOF
5916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5917 _ACEOF
5918
5919 fi
5920
5921 done
5922
5923     echo "$as_me:$LINENO: checking whether readline supports history" >&5
5924 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
5925 if test "${ac_cv_lib_readline_history+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928
5929       ac_cv_lib_readline_history="no"
5930       cat >conftest.$ac_ext <<_ACEOF
5931 #line $LINENO "configure"
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937
5938 /* Override any gcc2 internal prototype to avoid an error.  */
5939 #ifdef __cplusplus
5940 extern "C"
5941 #endif
5942 /* We use char because int might match the return type of a gcc2
5943    builtin and then its argument prototype would still apply.  */
5944 char add_history ();
5945 int
5946 main ()
5947 {
5948 add_history ();
5949   ;
5950   return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext conftest$ac_exeext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5955   (eval $ac_link) 2>&5
5956   ac_status=$?
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); } &&
5959          { ac_try='test -s conftest$ac_exeext'
5960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961   (eval $ac_try) 2>&5
5962   ac_status=$?
5963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964   (exit $ac_status); }; }; then
5965   ac_cv_lib_readline_history="yes"
5966 else
5967   echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5969
5970 fi
5971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5972
5973 fi
5974 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
5975 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6
5976     if test "$ac_cv_lib_readline_history" = "yes"; then
5977
5978 cat >>confdefs.h <<\_ACEOF
5979 #define HAVE_READLINE_HISTORY 1
5980 _ACEOF
5981
5982
5983
5984 for ac_header in history.h readline/history.h
5985 do
5986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5988   echo "$as_me:$LINENO: checking for $ac_header" >&5
5989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 fi
5993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5995 else
5996   # Is the header compilable?
5997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5999 cat >conftest.$ac_ext <<_ACEOF
6000 #line $LINENO "configure"
6001 /* confdefs.h.  */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h.  */
6006 $ac_includes_default
6007 #include <$ac_header>
6008 _ACEOF
6009 rm -f conftest.$ac_objext
6010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6011   (eval $ac_compile) 2>&5
6012   ac_status=$?
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); } &&
6015          { ac_try='test -s conftest.$ac_objext'
6016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017   (eval $ac_try) 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); }; }; then
6021   ac_header_compiler=yes
6022 else
6023   echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6025
6026 ac_header_compiler=no
6027 fi
6028 rm -f conftest.$ac_objext conftest.$ac_ext
6029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6030 echo "${ECHO_T}$ac_header_compiler" >&6
6031
6032 # Is the header present?
6033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6035 cat >conftest.$ac_ext <<_ACEOF
6036 #line $LINENO "configure"
6037 /* confdefs.h.  */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h.  */
6042 #include <$ac_header>
6043 _ACEOF
6044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6046   ac_status=$?
6047   grep -v '^ *+' conftest.er1 >conftest.err
6048   rm -f conftest.er1
6049   cat conftest.err >&5
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); } >/dev/null; then
6052   if test -s conftest.err; then
6053     ac_cpp_err=$ac_c_preproc_warn_flag
6054   else
6055     ac_cpp_err=
6056   fi
6057 else
6058   ac_cpp_err=yes
6059 fi
6060 if test -z "$ac_cpp_err"; then
6061   ac_header_preproc=yes
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066   ac_header_preproc=no
6067 fi
6068 rm -f conftest.err conftest.$ac_ext
6069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6070 echo "${ECHO_T}$ac_header_preproc" >&6
6071
6072 # So?  What about this header?
6073 case $ac_header_compiler:$ac_header_preproc in
6074   yes:no )
6075     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6079     (
6080       cat <<\_ASBOX
6081 ## ------------------------------------ ##
6082 ## Report this to bug-autoconf@gnu.org. ##
6083 ## ------------------------------------ ##
6084 _ASBOX
6085     ) |
6086       sed "s/^/$as_me: WARNING:     /" >&2
6087     ;;
6088   no:yes )
6089     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6091     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6095     (
6096       cat <<\_ASBOX
6097 ## ------------------------------------ ##
6098 ## Report this to bug-autoconf@gnu.org. ##
6099 ## ------------------------------------ ##
6100 _ASBOX
6101     ) |
6102       sed "s/^/$as_me: WARNING:     /" >&2
6103     ;;
6104 esac
6105 echo "$as_me:$LINENO: checking for $ac_header" >&5
6106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   eval "$as_ac_Header=$ac_header_preproc"
6111 fi
6112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6114
6115 fi
6116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6117   cat >>confdefs.h <<_ACEOF
6118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6119 _ACEOF
6120
6121 fi
6122
6123 done
6124
6125     fi
6126   fi
6127
6128
6129
6130 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
6131         { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
6132 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
6133    { (exit 1); exit 1; }; }
6134 fi
6135
6136
6137 if test x$ac_widec_support = xtrue; then
6138
6139 cat >>confdefs.h <<\_ACEOF
6140 #define HANDLE_MULTIBYTE 1
6141 _ACEOF
6142
6143 fi
6144
6145
6146 for ac_func in resizeterm
6147 do
6148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6149 echo "$as_me:$LINENO: checking for $ac_func" >&5
6150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6151 if eval "test \"\${$as_ac_var+set}\" = set"; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154   cat >conftest.$ac_ext <<_ACEOF
6155 #line $LINENO "configure"
6156 /* confdefs.h.  */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h.  */
6161 /* System header to define __stub macros and hopefully few prototypes,
6162     which can conflict with char $ac_func (); below.
6163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6164     <limits.h> exists even on freestanding compilers.  */
6165 #ifdef __STDC__
6166 # include <limits.h>
6167 #else
6168 # include <assert.h>
6169 #endif
6170 /* Override any gcc2 internal prototype to avoid an error.  */
6171 #ifdef __cplusplus
6172 extern "C"
6173 {
6174 #endif
6175 /* We use char because int might match the return type of a gcc2
6176    builtin and then its argument prototype would still apply.  */
6177 char $ac_func ();
6178 /* The GNU C library defines this for functions which it implements
6179     to always fail with ENOSYS.  Some functions are actually named
6180     something starting with __ and the normal name is an alias.  */
6181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6182 choke me
6183 #else
6184 char (*f) () = $ac_func;
6185 #endif
6186 #ifdef __cplusplus
6187 }
6188 #endif
6189
6190 int
6191 main ()
6192 {
6193 return f != $ac_func;
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200   (eval $ac_link) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); } &&
6204          { ac_try='test -s conftest$ac_exeext'
6205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206   (eval $ac_try) 2>&5
6207   ac_status=$?
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); }; }; then
6210   eval "$as_ac_var=yes"
6211 else
6212   echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6214
6215 eval "$as_ac_var=no"
6216 fi
6217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6218 fi
6219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6221 if test `eval echo '${'$as_ac_var'}'` = yes; then
6222   cat >>confdefs.h <<_ACEOF
6223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6224 _ACEOF
6225
6226 fi
6227 done
6228
6229
6230 echo "$as_me:$LINENO: checking for snprintf" >&5
6231 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6
6232 if test "${ac_cv_func_snprintf+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   cat >conftest.$ac_ext <<_ACEOF
6236 #line $LINENO "configure"
6237 /* confdefs.h.  */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h.  */
6242 /* System header to define __stub macros and hopefully few prototypes,
6243     which can conflict with char snprintf (); below.
6244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6245     <limits.h> exists even on freestanding compilers.  */
6246 #ifdef __STDC__
6247 # include <limits.h>
6248 #else
6249 # include <assert.h>
6250 #endif
6251 /* Override any gcc2 internal prototype to avoid an error.  */
6252 #ifdef __cplusplus
6253 extern "C"
6254 {
6255 #endif
6256 /* We use char because int might match the return type of a gcc2
6257    builtin and then its argument prototype would still apply.  */
6258 char snprintf ();
6259 /* The GNU C library defines this for functions which it implements
6260     to always fail with ENOSYS.  Some functions are actually named
6261     something starting with __ and the normal name is an alias.  */
6262 #if defined (__stub_snprintf) || defined (__stub___snprintf)
6263 choke me
6264 #else
6265 char (*f) () = snprintf;
6266 #endif
6267 #ifdef __cplusplus
6268 }
6269 #endif
6270
6271 int
6272 main ()
6273 {
6274 return f != snprintf;
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281   (eval $ac_link) 2>&5
6282   ac_status=$?
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); } &&
6285          { ac_try='test -s conftest$ac_exeext'
6286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287   (eval $ac_try) 2>&5
6288   ac_status=$?
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); }; }; then
6291   ac_cv_func_snprintf=yes
6292 else
6293   echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6295
6296 ac_cv_func_snprintf=no
6297 fi
6298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6299 fi
6300 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
6301 echo "${ECHO_T}$ac_cv_func_snprintf" >&6
6302 if test $ac_cv_func_snprintf = yes; then
6303   cat >>confdefs.h <<\_ACEOF
6304 #define HAVE_SNPRINTF 1
6305 _ACEOF
6306
6307 fi
6308
6309 echo "$as_me:$LINENO: checking for vsnprintf" >&5
6310 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
6311 if test "${ac_cv_func_vsnprintf+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   cat >conftest.$ac_ext <<_ACEOF
6315 #line $LINENO "configure"
6316 /* confdefs.h.  */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h.  */
6321 /* System header to define __stub macros and hopefully few prototypes,
6322     which can conflict with char vsnprintf (); below.
6323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6324     <limits.h> exists even on freestanding compilers.  */
6325 #ifdef __STDC__
6326 # include <limits.h>
6327 #else
6328 # include <assert.h>
6329 #endif
6330 /* Override any gcc2 internal prototype to avoid an error.  */
6331 #ifdef __cplusplus
6332 extern "C"
6333 {
6334 #endif
6335 /* We use char because int might match the return type of a gcc2
6336    builtin and then its argument prototype would still apply.  */
6337 char vsnprintf ();
6338 /* The GNU C library defines this for functions which it implements
6339     to always fail with ENOSYS.  Some functions are actually named
6340     something starting with __ and the normal name is an alias.  */
6341 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
6342 choke me
6343 #else
6344 char (*f) () = vsnprintf;
6345 #endif
6346 #ifdef __cplusplus
6347 }
6348 #endif
6349
6350 int
6351 main ()
6352 {
6353 return f != vsnprintf;
6354   ;
6355   return 0;
6356 }
6357 _ACEOF
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360   (eval $ac_link) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } &&
6364          { ac_try='test -s conftest$ac_exeext'
6365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366   (eval $ac_try) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; }; then
6370   ac_cv_func_vsnprintf=yes
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 ac_cv_func_vsnprintf=no
6376 fi
6377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6378 fi
6379 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
6380 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
6381 if test $ac_cv_func_vsnprintf = yes; then
6382   cat >>confdefs.h <<\_ACEOF
6383 #define HAVE_VSNPRINTF 1
6384 _ACEOF
6385
6386 fi
6387
6388
6389 # Check whether --enable-debug or --disable-debug was given.
6390 if test "${enable_debug+set}" = set; then
6391   enableval="$enable_debug"
6392   case "${enableval}" in
6393         yes) debug=true ;;
6394         no) debug=false ;;
6395         *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
6396 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
6397    { (exit 1); exit 1; }; } ;;
6398         esac
6399 else
6400   debug=false
6401 fi;
6402
6403 if test x$debug = xtrue; then
6404         CPPFLAGS="-DDEBUG $CPPFLAGS"
6405         CFLAGS="-g $CFLAGS"
6406 fi
6407
6408 if test x$GCC = xyes; then
6409         CFLAGS="-Wall $CFLAGS"
6410 fi
6411
6412                     ac_config_files="$ac_config_files Makefile abook.spec"
6413 cat >confcache <<\_ACEOF
6414 # This file is a shell script that caches the results of configure
6415 # tests run on this system so they can be shared between configure
6416 # scripts and configure runs, see configure's option --config-cache.
6417 # It is not useful on other systems.  If it contains results you don't
6418 # want to keep, you may remove or edit it.
6419 #
6420 # config.status only pays attention to the cache file if you give it
6421 # the --recheck option to rerun configure.
6422 #
6423 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6424 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6425 # following values.
6426
6427 _ACEOF
6428
6429 # The following way of writing the cache mishandles newlines in values,
6430 # but we know of no workaround that is simple, portable, and efficient.
6431 # So, don't put newlines in cache variables' values.
6432 # Ultrix sh set writes to stderr and can't be redirected directly,
6433 # and sets the high bit in the cache file unless we assign to the vars.
6434 {
6435   (set) 2>&1 |
6436     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6437     *ac_space=\ *)
6438       # `set' does not quote correctly, so add quotes (double-quote
6439       # substitution turns \\\\ into \\, and sed turns \\ into \).
6440       sed -n \
6441         "s/'/'\\\\''/g;
6442           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6443       ;;
6444     *)
6445       # `set' quotes correctly as required by POSIX, so do not add quotes.
6446       sed -n \
6447         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6448       ;;
6449     esac;
6450 } |
6451   sed '
6452      t clear
6453      : clear
6454      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6455      t end
6456      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6457      : end' >>confcache
6458 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6459   if test -w $cache_file; then
6460     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6461     cat confcache >$cache_file
6462   else
6463     echo "not updating unwritable cache $cache_file"
6464   fi
6465 fi
6466 rm -f confcache
6467
6468 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6469 # Let make expand exec_prefix.
6470 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6471
6472 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6473 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6474 # trailing colons and then remove the whole line if VPATH becomes empty
6475 # (actually we leave an empty line to preserve line numbers).
6476 if test "x$srcdir" = x.; then
6477   ac_vpsub='/^[         ]*VPATH[        ]*=/{
6478 s/:*\$(srcdir):*/:/;
6479 s/:*\${srcdir}:*/:/;
6480 s/:*@srcdir@:*/:/;
6481 s/^\([^=]*=[    ]*\):*/\1/;
6482 s/:*$//;
6483 s/^[^=]*=[      ]*$//;
6484 }'
6485 fi
6486
6487 DEFS=-DHAVE_CONFIG_H
6488
6489 ac_libobjs=
6490 ac_ltlibobjs=
6491 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6492   # 1. Remove the extension, and $U if already installed.
6493   ac_i=`echo "$ac_i" |
6494          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6495   # 2. Add them.
6496   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6497   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6498 done
6499 LIBOBJS=$ac_libobjs
6500
6501 LTLIBOBJS=$ac_ltlibobjs
6502
6503
6504 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6505   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6506 Usually this means the macro was only invoked conditionally." >&5
6507 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6508 Usually this means the macro was only invoked conditionally." >&2;}
6509    { (exit 1); exit 1; }; }
6510 fi
6511 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6512   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6513 Usually this means the macro was only invoked conditionally." >&5
6514 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6515 Usually this means the macro was only invoked conditionally." >&2;}
6516    { (exit 1); exit 1; }; }
6517 fi
6518
6519 : ${CONFIG_STATUS=./config.status}
6520 ac_clean_files_save=$ac_clean_files
6521 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6522 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6523 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6524 cat >$CONFIG_STATUS <<_ACEOF
6525 #! $SHELL
6526 # Generated by $as_me.
6527 # Run this file to recreate the current configuration.
6528 # Compiler output produced by configure, useful for debugging
6529 # configure, is in config.log if it exists.
6530
6531 debug=false
6532 ac_cs_recheck=false
6533 ac_cs_silent=false
6534 SHELL=\${CONFIG_SHELL-$SHELL}
6535 _ACEOF
6536
6537 cat >>$CONFIG_STATUS <<\_ACEOF
6538 ## --------------------- ##
6539 ## M4sh Initialization.  ##
6540 ## --------------------- ##
6541
6542 # Be Bourne compatible
6543 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6544   emulate sh
6545   NULLCMD=:
6546   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6547   # is contrary to our usage.  Disable this feature.
6548   alias -g '${1+"$@"}'='"$@"'
6549 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6550   set -o posix
6551 fi
6552
6553 # Support unset when possible.
6554 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6555   as_unset=unset
6556 else
6557   as_unset=false
6558 fi
6559
6560
6561 # Work around bugs in pre-3.0 UWIN ksh.
6562 $as_unset ENV MAIL MAILPATH
6563 PS1='$ '
6564 PS2='> '
6565 PS4='+ '
6566
6567 # NLS nuisances.
6568 for as_var in \
6569   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6570   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6571   LC_TELEPHONE LC_TIME
6572 do
6573   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6574     eval $as_var=C; export $as_var
6575   else
6576     $as_unset $as_var
6577   fi
6578 done
6579
6580 # Required to use basename.
6581 if expr a : '\(a\)' >/dev/null 2>&1; then
6582   as_expr=expr
6583 else
6584   as_expr=false
6585 fi
6586
6587 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6588   as_basename=basename
6589 else
6590   as_basename=false
6591 fi
6592
6593
6594 # Name of the executable.
6595 as_me=`$as_basename "$0" ||
6596 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6597          X"$0" : 'X\(//\)$' \| \
6598          X"$0" : 'X\(/\)$' \| \
6599          .     : '\(.\)' 2>/dev/null ||
6600 echo X/"$0" |
6601     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6602           /^X\/\(\/\/\)$/{ s//\1/; q; }
6603           /^X\/\(\/\).*/{ s//\1/; q; }
6604           s/.*/./; q'`
6605
6606
6607 # PATH needs CR, and LINENO needs CR and PATH.
6608 # Avoid depending upon Character Ranges.
6609 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6610 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6611 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6612 as_cr_digits='0123456789'
6613 as_cr_alnum=$as_cr_Letters$as_cr_digits
6614
6615 # The user is always right.
6616 if test "${PATH_SEPARATOR+set}" != set; then
6617   echo "#! /bin/sh" >conf$$.sh
6618   echo  "exit 0"   >>conf$$.sh
6619   chmod +x conf$$.sh
6620   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6621     PATH_SEPARATOR=';'
6622   else
6623     PATH_SEPARATOR=:
6624   fi
6625   rm -f conf$$.sh
6626 fi
6627
6628
6629   as_lineno_1=$LINENO
6630   as_lineno_2=$LINENO
6631   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6632   test "x$as_lineno_1" != "x$as_lineno_2" &&
6633   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6634   # Find who we are.  Look in the path if we contain no path at all
6635   # relative or not.
6636   case $0 in
6637     *[\\/]* ) as_myself=$0 ;;
6638     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641   IFS=$as_save_IFS
6642   test -z "$as_dir" && as_dir=.
6643   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6644 done
6645
6646        ;;
6647   esac
6648   # We did not find ourselves, most probably we were run as `sh COMMAND'
6649   # in which case we are not to be found in the path.
6650   if test "x$as_myself" = x; then
6651     as_myself=$0
6652   fi
6653   if test ! -f "$as_myself"; then
6654     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6655 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6656    { (exit 1); exit 1; }; }
6657   fi
6658   case $CONFIG_SHELL in
6659   '')
6660     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6662 do
6663   IFS=$as_save_IFS
6664   test -z "$as_dir" && as_dir=.
6665   for as_base in sh bash ksh sh5; do
6666          case $as_dir in
6667          /*)
6668            if ("$as_dir/$as_base" -c '
6669   as_lineno_1=$LINENO
6670   as_lineno_2=$LINENO
6671   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6672   test "x$as_lineno_1" != "x$as_lineno_2" &&
6673   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6674              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6675              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6676              CONFIG_SHELL=$as_dir/$as_base
6677              export CONFIG_SHELL
6678              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6679            fi;;
6680          esac
6681        done
6682 done
6683 ;;
6684   esac
6685
6686   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6687   # uniformly replaced by the line number.  The first 'sed' inserts a
6688   # line-number line before each line; the second 'sed' does the real
6689   # work.  The second script uses 'N' to pair each line-number line
6690   # with the numbered line, and appends trailing '-' during
6691   # substitution so that $LINENO is not a special case at line end.
6692   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6693   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6694   sed '=' <$as_myself |
6695     sed '
6696       N
6697       s,$,-,
6698       : loop
6699       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6700       t loop
6701       s,-$,,
6702       s,^['$as_cr_digits']*\n,,
6703     ' >$as_me.lineno &&
6704   chmod +x $as_me.lineno ||
6705     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6706 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6707    { (exit 1); exit 1; }; }
6708
6709   # Don't try to exec as it changes $[0], causing all sort of problems
6710   # (the dirname of $[0] is not the place where we might find the
6711   # original and so on.  Autoconf is especially sensible to this).
6712   . ./$as_me.lineno
6713   # Exit status is that of the last command.
6714   exit
6715 }
6716
6717
6718 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6719   *c*,-n*) ECHO_N= ECHO_C='
6720 ' ECHO_T='      ' ;;
6721   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6722   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6723 esac
6724
6725 if expr a : '\(a\)' >/dev/null 2>&1; then
6726   as_expr=expr
6727 else
6728   as_expr=false
6729 fi
6730
6731 rm -f conf$$ conf$$.exe conf$$.file
6732 echo >conf$$.file
6733 if ln -s conf$$.file conf$$ 2>/dev/null; then
6734   # We could just check for DJGPP; but this test a) works b) is more generic
6735   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6736   if test -f conf$$.exe; then
6737     # Don't use ln at all; we don't have any links
6738     as_ln_s='cp -p'
6739   else
6740     as_ln_s='ln -s'
6741   fi
6742 elif ln conf$$.file conf$$ 2>/dev/null; then
6743   as_ln_s=ln
6744 else
6745   as_ln_s='cp -p'
6746 fi
6747 rm -f conf$$ conf$$.exe conf$$.file
6748
6749 if mkdir -p . 2>/dev/null; then
6750   as_mkdir_p=:
6751 else
6752   as_mkdir_p=false
6753 fi
6754
6755 as_executable_p="test -f"
6756
6757 # Sed expression to map a string onto a valid CPP name.
6758 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6759
6760 # Sed expression to map a string onto a valid variable name.
6761 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6762
6763
6764 # IFS
6765 # We need space, tab and new line, in precisely that order.
6766 as_nl='
6767 '
6768 IFS="   $as_nl"
6769
6770 # CDPATH.
6771 $as_unset CDPATH
6772
6773 exec 6>&1
6774
6775 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6776 # report actual input values of CONFIG_FILES etc. instead of their
6777 # values after options handling.  Logging --version etc. is OK.
6778 exec 5>>config.log
6779 {
6780   echo
6781   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6782 ## Running $as_me. ##
6783 _ASBOX
6784 } >&5
6785 cat >&5 <<_CSEOF
6786
6787 This file was extended by $as_me, which was
6788 generated by GNU Autoconf 2.57.  Invocation command line was
6789
6790   CONFIG_FILES    = $CONFIG_FILES
6791   CONFIG_HEADERS  = $CONFIG_HEADERS
6792   CONFIG_LINKS    = $CONFIG_LINKS
6793   CONFIG_COMMANDS = $CONFIG_COMMANDS
6794   $ $0 $@
6795
6796 _CSEOF
6797 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6798 echo >&5
6799 _ACEOF
6800
6801 # Files that config.status was made for.
6802 if test -n "$ac_config_files"; then
6803   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6804 fi
6805
6806 if test -n "$ac_config_headers"; then
6807   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6808 fi
6809
6810 if test -n "$ac_config_links"; then
6811   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6812 fi
6813
6814 if test -n "$ac_config_commands"; then
6815   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6816 fi
6817
6818 cat >>$CONFIG_STATUS <<\_ACEOF
6819
6820 ac_cs_usage="\
6821 \`$as_me' instantiates files from templates according to the
6822 current configuration.
6823
6824 Usage: $0 [OPTIONS] [FILE]...
6825
6826   -h, --help       print this help, then exit
6827   -V, --version    print version number, then exit
6828   -q, --quiet      do not print progress messages
6829   -d, --debug      don't remove temporary files
6830       --recheck    update $as_me by reconfiguring in the same conditions
6831   --file=FILE[:TEMPLATE]
6832                    instantiate the configuration file FILE
6833   --header=FILE[:TEMPLATE]
6834                    instantiate the configuration header FILE
6835
6836 Configuration files:
6837 $config_files
6838
6839 Configuration headers:
6840 $config_headers
6841
6842 Configuration commands:
6843 $config_commands
6844
6845 Report bugs to <bug-autoconf@gnu.org>."
6846 _ACEOF
6847
6848 cat >>$CONFIG_STATUS <<_ACEOF
6849 ac_cs_version="\\
6850 config.status
6851 configured by $0, generated by GNU Autoconf 2.57,
6852   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6853
6854 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6855 Free Software Foundation, Inc.
6856 This config.status script is free software; the Free Software Foundation
6857 gives unlimited permission to copy, distribute and modify it."
6858 srcdir=$srcdir
6859 INSTALL="$INSTALL"
6860 _ACEOF
6861
6862 cat >>$CONFIG_STATUS <<\_ACEOF
6863 # If no file are specified by the user, then we need to provide default
6864 # value.  By we need to know if files were specified by the user.
6865 ac_need_defaults=:
6866 while test $# != 0
6867 do
6868   case $1 in
6869   --*=*)
6870     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6871     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6872     ac_shift=:
6873     ;;
6874   -*)
6875     ac_option=$1
6876     ac_optarg=$2
6877     ac_shift=shift
6878     ;;
6879   *) # This is not an option, so the user has probably given explicit
6880      # arguments.
6881      ac_option=$1
6882      ac_need_defaults=false;;
6883   esac
6884
6885   case $ac_option in
6886   # Handling of the options.
6887 _ACEOF
6888 cat >>$CONFIG_STATUS <<\_ACEOF
6889   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6890     ac_cs_recheck=: ;;
6891   --version | --vers* | -V )
6892     echo "$ac_cs_version"; exit 0 ;;
6893   --he | --h)
6894     # Conflict between --help and --header
6895     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6896 Try \`$0 --help' for more information." >&5
6897 echo "$as_me: error: ambiguous option: $1
6898 Try \`$0 --help' for more information." >&2;}
6899    { (exit 1); exit 1; }; };;
6900   --help | --hel | -h )
6901     echo "$ac_cs_usage"; exit 0 ;;
6902   --debug | --d* | -d )
6903     debug=: ;;
6904   --file | --fil | --fi | --f )
6905     $ac_shift
6906     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6907     ac_need_defaults=false;;
6908   --header | --heade | --head | --hea )
6909     $ac_shift
6910     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6911     ac_need_defaults=false;;
6912   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6913   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6914     ac_cs_silent=: ;;
6915
6916   # This is an error.
6917   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6918 Try \`$0 --help' for more information." >&5
6919 echo "$as_me: error: unrecognized option: $1
6920 Try \`$0 --help' for more information." >&2;}
6921    { (exit 1); exit 1; }; } ;;
6922
6923   *) ac_config_targets="$ac_config_targets $1" ;;
6924
6925   esac
6926   shift
6927 done
6928
6929 ac_configure_extra_args=
6930
6931 if $ac_cs_silent; then
6932   exec 6>/dev/null
6933   ac_configure_extra_args="$ac_configure_extra_args --silent"
6934 fi
6935
6936 _ACEOF
6937 cat >>$CONFIG_STATUS <<_ACEOF
6938 if \$ac_cs_recheck; then
6939   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6940   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6941 fi
6942
6943 _ACEOF
6944
6945 cat >>$CONFIG_STATUS <<_ACEOF
6946 #
6947 # INIT-COMMANDS section.
6948 #
6949
6950 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6951
6952 _ACEOF
6953
6954
6955
6956 cat >>$CONFIG_STATUS <<\_ACEOF
6957 for ac_config_target in $ac_config_targets
6958 do
6959   case "$ac_config_target" in
6960   # Handling of arguments.
6961   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6962   "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
6963   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6964   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6965   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6966 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6967    { (exit 1); exit 1; }; };;
6968   esac
6969 done
6970
6971 # If the user did not use the arguments to specify the items to instantiate,
6972 # then the envvar interface is used.  Set only those that are not.
6973 # We use the long form for the default assignment because of an extremely
6974 # bizarre bug on SunOS 4.1.3.
6975 if $ac_need_defaults; then
6976   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6977   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6978   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6979 fi
6980
6981 # Have a temporary directory for convenience.  Make it in the build tree
6982 # simply because there is no reason to put it here, and in addition,
6983 # creating and moving files from /tmp can sometimes cause problems.
6984 # Create a temporary directory, and hook for its removal unless debugging.
6985 $debug ||
6986 {
6987   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6988   trap '{ (exit 1); exit 1; }' 1 2 13 15
6989 }
6990
6991 # Create a (secure) tmp directory for tmp files.
6992
6993 {
6994   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6995   test -n "$tmp" && test -d "$tmp"
6996 }  ||
6997 {
6998   tmp=./confstat$$-$RANDOM
6999   (umask 077 && mkdir $tmp)
7000 } ||
7001 {
7002    echo "$me: cannot create a temporary directory in ." >&2
7003    { (exit 1); exit 1; }
7004 }
7005
7006 _ACEOF
7007
7008 cat >>$CONFIG_STATUS <<_ACEOF
7009
7010 #
7011 # CONFIG_FILES section.
7012 #
7013
7014 # No need to generate the scripts if there are no CONFIG_FILES.
7015 # This happens for instance when ./config.status config.h
7016 if test -n "\$CONFIG_FILES"; then
7017   # Protect against being on the right side of a sed subst in config.status.
7018   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7019    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7020 s,@SHELL@,$SHELL,;t t
7021 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7022 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7023 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7024 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7025 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7026 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7027 s,@exec_prefix@,$exec_prefix,;t t
7028 s,@prefix@,$prefix,;t t
7029 s,@program_transform_name@,$program_transform_name,;t t
7030 s,@bindir@,$bindir,;t t
7031 s,@sbindir@,$sbindir,;t t
7032 s,@libexecdir@,$libexecdir,;t t
7033 s,@datadir@,$datadir,;t t
7034 s,@sysconfdir@,$sysconfdir,;t t
7035 s,@sharedstatedir@,$sharedstatedir,;t t
7036 s,@localstatedir@,$localstatedir,;t t
7037 s,@libdir@,$libdir,;t t
7038 s,@includedir@,$includedir,;t t
7039 s,@oldincludedir@,$oldincludedir,;t t
7040 s,@infodir@,$infodir,;t t
7041 s,@mandir@,$mandir,;t t
7042 s,@build_alias@,$build_alias,;t t
7043 s,@host_alias@,$host_alias,;t t
7044 s,@target_alias@,$target_alias,;t t
7045 s,@DEFS@,$DEFS,;t t
7046 s,@ECHO_C@,$ECHO_C,;t t
7047 s,@ECHO_N@,$ECHO_N,;t t
7048 s,@ECHO_T@,$ECHO_T,;t t
7049 s,@LIBS@,$LIBS,;t t
7050 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7051 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7052 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7053 s,@CYGPATH_W@,$CYGPATH_W,;t t
7054 s,@PACKAGE@,$PACKAGE,;t t
7055 s,@VERSION@,$VERSION,;t t
7056 s,@ACLOCAL@,$ACLOCAL,;t t
7057 s,@AUTOCONF@,$AUTOCONF,;t t
7058 s,@AUTOMAKE@,$AUTOMAKE,;t t
7059 s,@AUTOHEADER@,$AUTOHEADER,;t t
7060 s,@MAKEINFO@,$MAKEINFO,;t t
7061 s,@AMTAR@,$AMTAR,;t t
7062 s,@install_sh@,$install_sh,;t t
7063 s,@STRIP@,$STRIP,;t t
7064 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7065 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7066 s,@AWK@,$AWK,;t t
7067 s,@SET_MAKE@,$SET_MAKE,;t t
7068 s,@am__leading_dot@,$am__leading_dot,;t t
7069 s,@build@,$build,;t t
7070 s,@build_cpu@,$build_cpu,;t t
7071 s,@build_vendor@,$build_vendor,;t t
7072 s,@build_os@,$build_os,;t t
7073 s,@host@,$host,;t t
7074 s,@host_cpu@,$host_cpu,;t t
7075 s,@host_vendor@,$host_vendor,;t t
7076 s,@host_os@,$host_os,;t t
7077 s,@CC@,$CC,;t t
7078 s,@CFLAGS@,$CFLAGS,;t t
7079 s,@LDFLAGS@,$LDFLAGS,;t t
7080 s,@CPPFLAGS@,$CPPFLAGS,;t t
7081 s,@ac_ct_CC@,$ac_ct_CC,;t t
7082 s,@EXEEXT@,$EXEEXT,;t t
7083 s,@OBJEXT@,$OBJEXT,;t t
7084 s,@DEPDIR@,$DEPDIR,;t t
7085 s,@am__include@,$am__include,;t t
7086 s,@am__quote@,$am__quote,;t t
7087 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7088 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7089 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7090 s,@CCDEPMODE@,$CCDEPMODE,;t t
7091 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7092 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7093 s,@CPP@,$CPP,;t t
7094 s,@EGREP@,$EGREP,;t t
7095 s,@U@,$U,;t t
7096 s,@ANSI2KNR@,$ANSI2KNR,;t t
7097 s,@LIBOBJS@,$LIBOBJS,;t t
7098 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7099 CEOF
7100
7101 _ACEOF
7102
7103   cat >>$CONFIG_STATUS <<\_ACEOF
7104   # Split the substitutions into bite-sized pieces for seds with
7105   # small command number limits, like on Digital OSF/1 and HP-UX.
7106   ac_max_sed_lines=48
7107   ac_sed_frag=1 # Number of current file.
7108   ac_beg=1 # First line for current file.
7109   ac_end=$ac_max_sed_lines # Line after last line for current file.
7110   ac_more_lines=:
7111   ac_sed_cmds=
7112   while $ac_more_lines; do
7113     if test $ac_beg -gt 1; then
7114       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7115     else
7116       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7117     fi
7118     if test ! -s $tmp/subs.frag; then
7119       ac_more_lines=false
7120     else
7121       # The purpose of the label and of the branching condition is to
7122       # speed up the sed processing (if there are no `@' at all, there
7123       # is no need to browse any of the substitutions).
7124       # These are the two extra sed commands mentioned above.
7125       (echo ':t
7126   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7127       if test -z "$ac_sed_cmds"; then
7128         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7129       else
7130         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7131       fi
7132       ac_sed_frag=`expr $ac_sed_frag + 1`
7133       ac_beg=$ac_end
7134       ac_end=`expr $ac_end + $ac_max_sed_lines`
7135     fi
7136   done
7137   if test -z "$ac_sed_cmds"; then
7138     ac_sed_cmds=cat
7139   fi
7140 fi # test -n "$CONFIG_FILES"
7141
7142 _ACEOF
7143 cat >>$CONFIG_STATUS <<\_ACEOF
7144 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7145   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7146   case $ac_file in
7147   - | *:- | *:-:* ) # input from stdin
7148         cat >$tmp/stdin
7149         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7150         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7151   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7152         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7153   * )   ac_file_in=$ac_file.in ;;
7154   esac
7155
7156   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7157   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7159          X"$ac_file" : 'X\(//\)[^/]' \| \
7160          X"$ac_file" : 'X\(//\)$' \| \
7161          X"$ac_file" : 'X\(/\)' \| \
7162          .     : '\(.\)' 2>/dev/null ||
7163 echo X"$ac_file" |
7164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7165           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7166           /^X\(\/\/\)$/{ s//\1/; q; }
7167           /^X\(\/\).*/{ s//\1/; q; }
7168           s/.*/./; q'`
7169   { if $as_mkdir_p; then
7170     mkdir -p "$ac_dir"
7171   else
7172     as_dir="$ac_dir"
7173     as_dirs=
7174     while test ! -d "$as_dir"; do
7175       as_dirs="$as_dir $as_dirs"
7176       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7178          X"$as_dir" : 'X\(//\)[^/]' \| \
7179          X"$as_dir" : 'X\(//\)$' \| \
7180          X"$as_dir" : 'X\(/\)' \| \
7181          .     : '\(.\)' 2>/dev/null ||
7182 echo X"$as_dir" |
7183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7184           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7185           /^X\(\/\/\)$/{ s//\1/; q; }
7186           /^X\(\/\).*/{ s//\1/; q; }
7187           s/.*/./; q'`
7188     done
7189     test ! -n "$as_dirs" || mkdir $as_dirs
7190   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7191 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7192    { (exit 1); exit 1; }; }; }
7193
7194   ac_builddir=.
7195
7196 if test "$ac_dir" != .; then
7197   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7198   # A "../" for each directory in $ac_dir_suffix.
7199   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7200 else
7201   ac_dir_suffix= ac_top_builddir=
7202 fi
7203
7204 case $srcdir in
7205   .)  # No --srcdir option.  We are building in place.
7206     ac_srcdir=.
7207     if test -z "$ac_top_builddir"; then
7208        ac_top_srcdir=.
7209     else
7210        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7211     fi ;;
7212   [\\/]* | ?:[\\/]* )  # Absolute path.
7213     ac_srcdir=$srcdir$ac_dir_suffix;
7214     ac_top_srcdir=$srcdir ;;
7215   *) # Relative path.
7216     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7217     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7218 esac
7219 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7220 # absolute.
7221 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7222 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7223 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7224 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7225
7226
7227   case $INSTALL in
7228   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7229   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7230   esac
7231
7232   if test x"$ac_file" != x-; then
7233     { echo "$as_me:$LINENO: creating $ac_file" >&5
7234 echo "$as_me: creating $ac_file" >&6;}
7235     rm -f "$ac_file"
7236   fi
7237   # Let's still pretend it is `configure' which instantiates (i.e., don't
7238   # use $as_me), people would be surprised to read:
7239   #    /* config.h.  Generated by config.status.  */
7240   if test x"$ac_file" = x-; then
7241     configure_input=
7242   else
7243     configure_input="$ac_file.  "
7244   fi
7245   configure_input=$configure_input"Generated from `echo $ac_file_in |
7246                                      sed 's,.*/,,'` by configure."
7247
7248   # First look for the input files in the build tree, otherwise in the
7249   # src tree.
7250   ac_file_inputs=`IFS=:
7251     for f in $ac_file_in; do
7252       case $f in
7253       -) echo $tmp/stdin ;;
7254       [\\/$]*)
7255          # Absolute (can't be DOS-style, as IFS=:)
7256          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7257 echo "$as_me: error: cannot find input file: $f" >&2;}
7258    { (exit 1); exit 1; }; }
7259          echo $f;;
7260       *) # Relative
7261          if test -f "$f"; then
7262            # Build tree
7263            echo $f
7264          elif test -f "$srcdir/$f"; then
7265            # Source tree
7266            echo $srcdir/$f
7267          else
7268            # /dev/null tree
7269            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7270 echo "$as_me: error: cannot find input file: $f" >&2;}
7271    { (exit 1); exit 1; }; }
7272          fi;;
7273       esac
7274     done` || { (exit 1); exit 1; }
7275 _ACEOF
7276 cat >>$CONFIG_STATUS <<_ACEOF
7277   sed "$ac_vpsub
7278 $extrasub
7279 _ACEOF
7280 cat >>$CONFIG_STATUS <<\_ACEOF
7281 :t
7282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7283 s,@configure_input@,$configure_input,;t t
7284 s,@srcdir@,$ac_srcdir,;t t
7285 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7286 s,@top_srcdir@,$ac_top_srcdir,;t t
7287 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7288 s,@builddir@,$ac_builddir,;t t
7289 s,@abs_builddir@,$ac_abs_builddir,;t t
7290 s,@top_builddir@,$ac_top_builddir,;t t
7291 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7292 s,@INSTALL@,$ac_INSTALL,;t t
7293 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7294   rm -f $tmp/stdin
7295   if test x"$ac_file" != x-; then
7296     mv $tmp/out $ac_file
7297   else
7298     cat $tmp/out
7299     rm -f $tmp/out
7300   fi
7301
7302 done
7303 _ACEOF
7304 cat >>$CONFIG_STATUS <<\_ACEOF
7305
7306 #
7307 # CONFIG_HEADER section.
7308 #
7309
7310 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7311 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7312 #
7313 # ac_d sets the value in "#define NAME VALUE" lines.
7314 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7315 ac_dB='[        ].*$,\1#\2'
7316 ac_dC=' '
7317 ac_dD=',;t'
7318 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7319 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7320 ac_uB='$,\1#\2define\3'
7321 ac_uC=' '
7322 ac_uD=',;t'
7323
7324 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7325   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7326   case $ac_file in
7327   - | *:- | *:-:* ) # input from stdin
7328         cat >$tmp/stdin
7329         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7330         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7331   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7332         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7333   * )   ac_file_in=$ac_file.in ;;
7334   esac
7335
7336   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7337 echo "$as_me: creating $ac_file" >&6;}
7338
7339   # First look for the input files in the build tree, otherwise in the
7340   # src tree.
7341   ac_file_inputs=`IFS=:
7342     for f in $ac_file_in; do
7343       case $f in
7344       -) echo $tmp/stdin ;;
7345       [\\/$]*)
7346          # Absolute (can't be DOS-style, as IFS=:)
7347          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7348 echo "$as_me: error: cannot find input file: $f" >&2;}
7349    { (exit 1); exit 1; }; }
7350          echo $f;;
7351       *) # Relative
7352          if test -f "$f"; then
7353            # Build tree
7354            echo $f
7355          elif test -f "$srcdir/$f"; then
7356            # Source tree
7357            echo $srcdir/$f
7358          else
7359            # /dev/null tree
7360            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7361 echo "$as_me: error: cannot find input file: $f" >&2;}
7362    { (exit 1); exit 1; }; }
7363          fi;;
7364       esac
7365     done` || { (exit 1); exit 1; }
7366   # Remove the trailing spaces.
7367   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
7368
7369 _ACEOF
7370
7371 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7372 # `conftest.undefs', that substitutes the proper values into
7373 # config.h.in to produce config.h.  The first handles `#define'
7374 # templates, and the second `#undef' templates.
7375 # And first: Protect against being on the right side of a sed subst in
7376 # config.status.  Protect against being in an unquoted here document
7377 # in config.status.
7378 rm -f conftest.defines conftest.undefs
7379 # Using a here document instead of a string reduces the quoting nightmare.
7380 # Putting comments in sed scripts is not portable.
7381 #
7382 # `end' is used to avoid that the second main sed command (meant for
7383 # 0-ary CPP macros) applies to n-ary macro definitions.
7384 # See the Autoconf documentation for `clear'.
7385 cat >confdef2sed.sed <<\_ACEOF
7386 s/[\\&,]/\\&/g
7387 s,[\\$`],\\&,g
7388 t clear
7389 : clear
7390 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7391 t end
7392 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7393 : end
7394 _ACEOF
7395 # If some macros were called several times there might be several times
7396 # the same #defines, which is useless.  Nevertheless, we may not want to
7397 # sort them, since we want the *last* AC-DEFINE to be honored.
7398 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7399 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7400 rm -f confdef2sed.sed
7401
7402 # This sed command replaces #undef with comments.  This is necessary, for
7403 # example, in the case of _POSIX_SOURCE, which is predefined and required
7404 # on some systems where configure will not decide to define it.
7405 cat >>conftest.undefs <<\_ACEOF
7406 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7407 _ACEOF
7408
7409 # Break up conftest.defines because some shells have a limit on the size
7410 # of here documents, and old seds have small limits too (100 cmds).
7411 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7412 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7413 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7414 echo '  :' >>$CONFIG_STATUS
7415 rm -f conftest.tail
7416 while grep . conftest.defines >/dev/null
7417 do
7418   # Write a limited-size here document to $tmp/defines.sed.
7419   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7420   # Speed up: don't consider the non `#define' lines.
7421   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
7422   # Work around the forget-to-reset-the-flag bug.
7423   echo 't clr' >>$CONFIG_STATUS
7424   echo ': clr' >>$CONFIG_STATUS
7425   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7426   echo 'CEOF
7427   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7428   rm -f $tmp/in
7429   mv $tmp/out $tmp/in
7430 ' >>$CONFIG_STATUS
7431   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7432   rm -f conftest.defines
7433   mv conftest.tail conftest.defines
7434 done
7435 rm -f conftest.defines
7436 echo '  fi # grep' >>$CONFIG_STATUS
7437 echo >>$CONFIG_STATUS
7438
7439 # Break up conftest.undefs because some shells have a limit on the size
7440 # of here documents, and old seds have small limits too (100 cmds).
7441 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7442 rm -f conftest.tail
7443 while grep . conftest.undefs >/dev/null
7444 do
7445   # Write a limited-size here document to $tmp/undefs.sed.
7446   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7447   # Speed up: don't consider the non `#undef'
7448   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7449   # Work around the forget-to-reset-the-flag bug.
7450   echo 't clr' >>$CONFIG_STATUS
7451   echo ': clr' >>$CONFIG_STATUS
7452   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7453   echo 'CEOF
7454   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7455   rm -f $tmp/in
7456   mv $tmp/out $tmp/in
7457 ' >>$CONFIG_STATUS
7458   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7459   rm -f conftest.undefs
7460   mv conftest.tail conftest.undefs
7461 done
7462 rm -f conftest.undefs
7463
7464 cat >>$CONFIG_STATUS <<\_ACEOF
7465   # Let's still pretend it is `configure' which instantiates (i.e., don't
7466   # use $as_me), people would be surprised to read:
7467   #    /* config.h.  Generated by config.status.  */
7468   if test x"$ac_file" = x-; then
7469     echo "/* Generated by configure.  */" >$tmp/config.h
7470   else
7471     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7472   fi
7473   cat $tmp/in >>$tmp/config.h
7474   rm -f $tmp/in
7475   if test x"$ac_file" != x-; then
7476     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7477       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7478 echo "$as_me: $ac_file is unchanged" >&6;}
7479     else
7480       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7482          X"$ac_file" : 'X\(//\)[^/]' \| \
7483          X"$ac_file" : 'X\(//\)$' \| \
7484          X"$ac_file" : 'X\(/\)' \| \
7485          .     : '\(.\)' 2>/dev/null ||
7486 echo X"$ac_file" |
7487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7488           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7489           /^X\(\/\/\)$/{ s//\1/; q; }
7490           /^X\(\/\).*/{ s//\1/; q; }
7491           s/.*/./; q'`
7492       { if $as_mkdir_p; then
7493     mkdir -p "$ac_dir"
7494   else
7495     as_dir="$ac_dir"
7496     as_dirs=
7497     while test ! -d "$as_dir"; do
7498       as_dirs="$as_dir $as_dirs"
7499       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7501          X"$as_dir" : 'X\(//\)[^/]' \| \
7502          X"$as_dir" : 'X\(//\)$' \| \
7503          X"$as_dir" : 'X\(/\)' \| \
7504          .     : '\(.\)' 2>/dev/null ||
7505 echo X"$as_dir" |
7506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7507           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7508           /^X\(\/\/\)$/{ s//\1/; q; }
7509           /^X\(\/\).*/{ s//\1/; q; }
7510           s/.*/./; q'`
7511     done
7512     test ! -n "$as_dirs" || mkdir $as_dirs
7513   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7514 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7515    { (exit 1); exit 1; }; }; }
7516
7517       rm -f $ac_file
7518       mv $tmp/config.h $ac_file
7519     fi
7520   else
7521     cat $tmp/config.h
7522     rm -f $tmp/config.h
7523   fi
7524 # Compute $ac_file's index in $config_headers.
7525 _am_stamp_count=1
7526 for _am_header in $config_headers :; do
7527   case $_am_header in
7528     $ac_file | $ac_file:* )
7529       break ;;
7530     * )
7531       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7532   esac
7533 done
7534 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7535 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7536          X$ac_file : 'X\(//\)[^/]' \| \
7537          X$ac_file : 'X\(//\)$' \| \
7538          X$ac_file : 'X\(/\)' \| \
7539          .     : '\(.\)' 2>/dev/null ||
7540 echo X$ac_file |
7541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7542           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7543           /^X\(\/\/\)$/{ s//\1/; q; }
7544           /^X\(\/\).*/{ s//\1/; q; }
7545           s/.*/./; q'`/stamp-h$_am_stamp_count
7546 done
7547 _ACEOF
7548 cat >>$CONFIG_STATUS <<\_ACEOF
7549
7550 #
7551 # CONFIG_COMMANDS section.
7552 #
7553 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7554   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7555   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7556   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7557 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7558          X"$ac_dest" : 'X\(//\)[^/]' \| \
7559          X"$ac_dest" : 'X\(//\)$' \| \
7560          X"$ac_dest" : 'X\(/\)' \| \
7561          .     : '\(.\)' 2>/dev/null ||
7562 echo X"$ac_dest" |
7563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7564           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7565           /^X\(\/\/\)$/{ s//\1/; q; }
7566           /^X\(\/\).*/{ s//\1/; q; }
7567           s/.*/./; q'`
7568   ac_builddir=.
7569
7570 if test "$ac_dir" != .; then
7571   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7572   # A "../" for each directory in $ac_dir_suffix.
7573   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7574 else
7575   ac_dir_suffix= ac_top_builddir=
7576 fi
7577
7578 case $srcdir in
7579   .)  # No --srcdir option.  We are building in place.
7580     ac_srcdir=.
7581     if test -z "$ac_top_builddir"; then
7582        ac_top_srcdir=.
7583     else
7584        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7585     fi ;;
7586   [\\/]* | ?:[\\/]* )  # Absolute path.
7587     ac_srcdir=$srcdir$ac_dir_suffix;
7588     ac_top_srcdir=$srcdir ;;
7589   *) # Relative path.
7590     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7591     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7592 esac
7593 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7594 # absolute.
7595 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7596 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7597 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7598 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7599
7600
7601   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7602 echo "$as_me: executing $ac_dest commands" >&6;}
7603   case $ac_dest in
7604     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7605   # Strip MF so we end up with the name of the file.
7606   mf=`echo "$mf" | sed -e 's/:.*$//'`
7607   # Check whether this is an Automake generated Makefile or not.
7608   # We used to match only the files named `Makefile.in', but
7609   # some people rename them; so instead we look at the file content.
7610   # Grep'ing the first line is not enough: some people post-process
7611   # each Makefile.in and add a new line on top of each file to say so.
7612   # So let's grep whole file.
7613   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7614     dirpart=`(dirname "$mf") 2>/dev/null ||
7615 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7616          X"$mf" : 'X\(//\)[^/]' \| \
7617          X"$mf" : 'X\(//\)$' \| \
7618          X"$mf" : 'X\(/\)' \| \
7619          .     : '\(.\)' 2>/dev/null ||
7620 echo X"$mf" |
7621     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7622           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7623           /^X\(\/\/\)$/{ s//\1/; q; }
7624           /^X\(\/\).*/{ s//\1/; q; }
7625           s/.*/./; q'`
7626   else
7627     continue
7628   fi
7629   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7630   # Extract the definition of DEP_FILES from the Makefile without
7631   # running `make'.
7632   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7633   test -z "$DEPDIR" && continue
7634   # When using ansi2knr, U may be empty or an underscore; expand it
7635   U=`sed -n -e '/^U = / s///p' < "$mf"`
7636   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7637   # We invoke sed twice because it is the simplest approach to
7638   # changing $(DEPDIR) to its actual value in the expansion.
7639   for file in `sed -n -e '
7640     /^DEP_FILES = .*\\\\$/ {
7641       s/^DEP_FILES = //
7642       :loop
7643         s/\\\\$//
7644         p
7645         n
7646         /\\\\$/ b loop
7647       p
7648     }
7649     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7650        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7651     # Make sure the directory exists.
7652     test -f "$dirpart/$file" && continue
7653     fdir=`(dirname "$file") 2>/dev/null ||
7654 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7655          X"$file" : 'X\(//\)[^/]' \| \
7656          X"$file" : 'X\(//\)$' \| \
7657          X"$file" : 'X\(/\)' \| \
7658          .     : '\(.\)' 2>/dev/null ||
7659 echo X"$file" |
7660     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7661           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7662           /^X\(\/\/\)$/{ s//\1/; q; }
7663           /^X\(\/\).*/{ s//\1/; q; }
7664           s/.*/./; q'`
7665     { if $as_mkdir_p; then
7666     mkdir -p $dirpart/$fdir
7667   else
7668     as_dir=$dirpart/$fdir
7669     as_dirs=
7670     while test ! -d "$as_dir"; do
7671       as_dirs="$as_dir $as_dirs"
7672       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7674          X"$as_dir" : 'X\(//\)[^/]' \| \
7675          X"$as_dir" : 'X\(//\)$' \| \
7676          X"$as_dir" : 'X\(/\)' \| \
7677          .     : '\(.\)' 2>/dev/null ||
7678 echo X"$as_dir" |
7679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7680           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7681           /^X\(\/\/\)$/{ s//\1/; q; }
7682           /^X\(\/\).*/{ s//\1/; q; }
7683           s/.*/./; q'`
7684     done
7685     test ! -n "$as_dirs" || mkdir $as_dirs
7686   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7687 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7688    { (exit 1); exit 1; }; }; }
7689
7690     # echo "creating $dirpart/$file"
7691     echo '# dummy' > "$dirpart/$file"
7692   done
7693 done
7694  ;;
7695   esac
7696 done
7697 _ACEOF
7698
7699 cat >>$CONFIG_STATUS <<\_ACEOF
7700
7701 { (exit 0); exit 0; }
7702 _ACEOF
7703 chmod +x $CONFIG_STATUS
7704 ac_clean_files=$ac_clean_files_save
7705
7706
7707 # configure is writing to config.log, and then calls config.status.
7708 # config.status does its own redirection, appending to config.log.
7709 # Unfortunately, on DOS this fails, as config.log is still kept open
7710 # by configure, so config.status won't be able to write to it; its
7711 # output is simply discarded.  So we exec the FD to /dev/null,
7712 # effectively closing config.log, so it can be properly (re)opened and
7713 # appended to by config.status.  When coming back to configure, we
7714 # need to make the FD available again.
7715 if test "$no_create" != yes; then
7716   ac_cs_success=:
7717   ac_config_status_args=
7718   test "$silent" = yes &&
7719     ac_config_status_args="$ac_config_status_args --quiet"
7720   exec 5>/dev/null
7721   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7722   exec 5>>config.log
7723   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7724   # would make configure fail if this is the last instruction.
7725   $ac_cs_success || { (exit 1); exit 1; }
7726 fi
7727
7728