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