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