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