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