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