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