]> granicus.if.org Git - postgresql/blob - configure
Get rid of dependency on strtoull() --- Marko Kreen.
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.3beta1.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 # Copyright (c) 1996-2007, PostgreSQL Global Development Group
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248 # Name of the host.
249 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250 # so uname gets run too.
251 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252
253 exec 6>&1
254
255 #
256 # Initializations.
257 #
258 ac_default_prefix=/usr/local
259 ac_config_libobj_dir=.
260 cross_compiling=no
261 subdirs=
262 MFLAGS=
263 MAKEFLAGS=
264 SHELL=${CONFIG_SHELL-/bin/sh}
265
266 # Maximum number of lines to put in a shell here document.
267 # This variable seems obsolete.  It should probably be removed, and
268 # only ac_max_sed_lines should be used.
269 : ${ac_max_here_lines=38}
270
271 # Identity of this package.
272 PACKAGE_NAME='PostgreSQL'
273 PACKAGE_TARNAME='postgresql'
274 PACKAGE_VERSION='8.3beta1'
275 PACKAGE_STRING='PostgreSQL 8.3beta1'
276 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
277
278 ac_unique_file="src/backend/access/common/heaptuple.c"
279 ac_default_prefix=/usr/local/pgsql
280 # Factoring default headers for most tests.
281 ac_includes_default="\
282 #include <stdio.h>
283 #if HAVE_SYS_TYPES_H
284 # include <sys/types.h>
285 #endif
286 #if HAVE_SYS_STAT_H
287 # include <sys/stat.h>
288 #endif
289 #if STDC_HEADERS
290 # include <stdlib.h>
291 # include <stddef.h>
292 #else
293 # if HAVE_STDLIB_H
294 #  include <stdlib.h>
295 # endif
296 #endif
297 #if HAVE_STRING_H
298 # if !STDC_HEADERS && HAVE_MEMORY_H
299 #  include <memory.h>
300 # endif
301 # include <string.h>
302 #endif
303 #if HAVE_STRINGS_H
304 # include <strings.h>
305 #endif
306 #if HAVE_INTTYPES_H
307 # include <inttypes.h>
308 #else
309 # if HAVE_STDINT_H
310 #  include <stdint.h>
311 # endif
312 #endif
313 #if HAVE_UNISTD_H
314 # include <unistd.h>
315 #endif"
316
317 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 configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug enable_profiling DTRACE DTRACEFLAGS enable_dtrace CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_gssapi with_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl with_ossp_uuid XML2_CONFIG with_libxml with_libxslt with_system_tzdata with_zlib EGREP ELF_SYS LDFLAGS_SL LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB TAR LN_S AWK YACC YFLAGS FLEX FLEXFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS LDAP_LIBS_FE LDAP_LIBS_BE HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
318 ac_subst_files=''
319
320 # Initialize some variables set by options.
321 ac_init_help=
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
325 cache_file=/dev/null
326 exec_prefix=NONE
327 no_create=
328 no_recursion=
329 prefix=NONE
330 program_prefix=NONE
331 program_suffix=NONE
332 program_transform_name=s,x,x,
333 silent=
334 site=
335 srcdir=
336 verbose=
337 x_includes=NONE
338 x_libraries=NONE
339
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
357
358 ac_prev=
359 for ac_option
360 do
361   # If the previous option needs an argument, assign it.
362   if test -n "$ac_prev"; then
363     eval "$ac_prev=\$ac_option"
364     ac_prev=
365     continue
366   fi
367
368   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
370   # Accept the important Cygnus configure options, so we can diagnose typos.
371
372   case $ac_option in
373
374   -bindir | --bindir | --bindi | --bind | --bin | --bi)
375     ac_prev=bindir ;;
376   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377     bindir=$ac_optarg ;;
378
379   -build | --build | --buil | --bui | --bu)
380     ac_prev=build_alias ;;
381   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382     build_alias=$ac_optarg ;;
383
384   -cache-file | --cache-file | --cache-fil | --cache-fi \
385   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386     ac_prev=cache_file ;;
387   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389     cache_file=$ac_optarg ;;
390
391   --config-cache | -C)
392     cache_file=config.cache ;;
393
394   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395     ac_prev=datadir ;;
396   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397   | --da=*)
398     datadir=$ac_optarg ;;
399
400   -disable-* | --disable-*)
401     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402     # Reject names that are not valid shell variable names.
403     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405    { (exit 1); exit 1; }; }
406     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407     eval "enable_$ac_feature=no" ;;
408
409   -enable-* | --enable-*)
410     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411     # Reject names that are not valid shell variable names.
412     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414    { (exit 1); exit 1; }; }
415     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416     case $ac_option in
417       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418       *) ac_optarg=yes ;;
419     esac
420     eval "enable_$ac_feature='$ac_optarg'" ;;
421
422   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424   | --exec | --exe | --ex)
425     ac_prev=exec_prefix ;;
426   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428   | --exec=* | --exe=* | --ex=*)
429     exec_prefix=$ac_optarg ;;
430
431   -gas | --gas | --ga | --g)
432     # Obsolete; use --with-gas.
433     with_gas=yes ;;
434
435   -help | --help | --hel | --he | -h)
436     ac_init_help=long ;;
437   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438     ac_init_help=recursive ;;
439   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440     ac_init_help=short ;;
441
442   -host | --host | --hos | --ho)
443     ac_prev=host_alias ;;
444   -host=* | --host=* | --hos=* | --ho=*)
445     host_alias=$ac_optarg ;;
446
447   -includedir | --includedir | --includedi | --included | --include \
448   | --includ | --inclu | --incl | --inc)
449     ac_prev=includedir ;;
450   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451   | --includ=* | --inclu=* | --incl=* | --inc=*)
452     includedir=$ac_optarg ;;
453
454   -infodir | --infodir | --infodi | --infod | --info | --inf)
455     ac_prev=infodir ;;
456   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457     infodir=$ac_optarg ;;
458
459   -libdir | --libdir | --libdi | --libd)
460     ac_prev=libdir ;;
461   -libdir=* | --libdir=* | --libdi=* | --libd=*)
462     libdir=$ac_optarg ;;
463
464   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465   | --libexe | --libex | --libe)
466     ac_prev=libexecdir ;;
467   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468   | --libexe=* | --libex=* | --libe=*)
469     libexecdir=$ac_optarg ;;
470
471   -localstatedir | --localstatedir | --localstatedi | --localstated \
472   | --localstate | --localstat | --localsta | --localst \
473   | --locals | --local | --loca | --loc | --lo)
474     ac_prev=localstatedir ;;
475   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478     localstatedir=$ac_optarg ;;
479
480   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481     ac_prev=mandir ;;
482   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483     mandir=$ac_optarg ;;
484
485   -nfp | --nfp | --nf)
486     # Obsolete; use --without-fp.
487     with_fp=no ;;
488
489   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490   | --no-cr | --no-c | -n)
491     no_create=yes ;;
492
493   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495     no_recursion=yes ;;
496
497   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499   | --oldin | --oldi | --old | --ol | --o)
500     ac_prev=oldincludedir ;;
501   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504     oldincludedir=$ac_optarg ;;
505
506   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507     ac_prev=prefix ;;
508   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509     prefix=$ac_optarg ;;
510
511   -program-prefix | --program-prefix | --program-prefi | --program-pref \
512   | --program-pre | --program-pr | --program-p)
513     ac_prev=program_prefix ;;
514   -program-prefix=* | --program-prefix=* | --program-prefi=* \
515   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516     program_prefix=$ac_optarg ;;
517
518   -program-suffix | --program-suffix | --program-suffi | --program-suff \
519   | --program-suf | --program-su | --program-s)
520     ac_prev=program_suffix ;;
521   -program-suffix=* | --program-suffix=* | --program-suffi=* \
522   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523     program_suffix=$ac_optarg ;;
524
525   -program-transform-name | --program-transform-name \
526   | --program-transform-nam | --program-transform-na \
527   | --program-transform-n | --program-transform- \
528   | --program-transform | --program-transfor \
529   | --program-transfo | --program-transf \
530   | --program-trans | --program-tran \
531   | --progr-tra | --program-tr | --program-t)
532     ac_prev=program_transform_name ;;
533   -program-transform-name=* | --program-transform-name=* \
534   | --program-transform-nam=* | --program-transform-na=* \
535   | --program-transform-n=* | --program-transform-=* \
536   | --program-transform=* | --program-transfor=* \
537   | --program-transfo=* | --program-transf=* \
538   | --program-trans=* | --program-tran=* \
539   | --progr-tra=* | --program-tr=* | --program-t=*)
540     program_transform_name=$ac_optarg ;;
541
542   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543   | -silent | --silent | --silen | --sile | --sil)
544     silent=yes ;;
545
546   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547     ac_prev=sbindir ;;
548   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549   | --sbi=* | --sb=*)
550     sbindir=$ac_optarg ;;
551
552   -sharedstatedir | --sharedstatedir | --sharedstatedi \
553   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554   | --sharedst | --shareds | --shared | --share | --shar \
555   | --sha | --sh)
556     ac_prev=sharedstatedir ;;
557   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560   | --sha=* | --sh=*)
561     sharedstatedir=$ac_optarg ;;
562
563   -site | --site | --sit)
564     ac_prev=site ;;
565   -site=* | --site=* | --sit=*)
566     site=$ac_optarg ;;
567
568   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569     ac_prev=srcdir ;;
570   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571     srcdir=$ac_optarg ;;
572
573   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574   | --syscon | --sysco | --sysc | --sys | --sy)
575     ac_prev=sysconfdir ;;
576   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578     sysconfdir=$ac_optarg ;;
579
580   -target | --target | --targe | --targ | --tar | --ta | --t)
581     ac_prev=target_alias ;;
582   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583     target_alias=$ac_optarg ;;
584
585   -v | -verbose | --verbose | --verbos | --verbo | --verb)
586     verbose=yes ;;
587
588   -version | --version | --versio | --versi | --vers | -V)
589     ac_init_version=: ;;
590
591   -with-* | --with-*)
592     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593     # Reject names that are not valid shell variable names.
594     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595       { echo "$as_me: error: invalid package name: $ac_package" >&2
596    { (exit 1); exit 1; }; }
597     ac_package=`echo $ac_package| sed 's/-/_/g'`
598     case $ac_option in
599       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600       *) ac_optarg=yes ;;
601     esac
602     eval "with_$ac_package='$ac_optarg'" ;;
603
604   -without-* | --without-*)
605     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606     # Reject names that are not valid shell variable names.
607     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608       { echo "$as_me: error: invalid package name: $ac_package" >&2
609    { (exit 1); exit 1; }; }
610     ac_package=`echo $ac_package | sed 's/-/_/g'`
611     eval "with_$ac_package=no" ;;
612
613   --x)
614     # Obsolete; use --with-x.
615     with_x=yes ;;
616
617   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618   | --x-incl | --x-inc | --x-in | --x-i)
619     ac_prev=x_includes ;;
620   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622     x_includes=$ac_optarg ;;
623
624   -x-libraries | --x-libraries | --x-librarie | --x-librari \
625   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626     ac_prev=x_libraries ;;
627   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629     x_libraries=$ac_optarg ;;
630
631   -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633    { (exit 1); exit 1; }; }
634     ;;
635
636   *=*)
637     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638     # Reject names that are not valid shell variable names.
639     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641    { (exit 1); exit 1; }; }
642     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643     eval "$ac_envvar='$ac_optarg'"
644     export $ac_envvar ;;
645
646   *)
647     # FIXME: should be removed in autoconf 3.0.
648     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652     ;;
653
654   esac
655 done
656
657 if test -n "$ac_prev"; then
658   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659   { echo "$as_me: error: missing argument to $ac_option" >&2
660    { (exit 1); exit 1; }; }
661 fi
662
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
665 do
666   eval ac_val=$`echo $ac_var`
667   case $ac_val in
668     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670    { (exit 1); exit 1; }; };;
671   esac
672 done
673
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676               localstatedir libdir includedir oldincludedir infodir mandir
677 do
678   eval ac_val=$`echo $ac_var`
679   case $ac_val in
680     [\\/$]* | ?:[\\/]* ) ;;
681     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682    { (exit 1); exit 1; }; };;
683   esac
684 done
685
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
689 build=$build_alias
690 host=$host_alias
691 target=$target_alias
692
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695   if test "x$build_alias" = x; then
696     cross_compiling=maybe
697     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698     If a cross compiler is detected then cross compile mode will be used." >&2
699   elif test "x$build_alias" != "x$host_alias"; then
700     cross_compiling=yes
701   fi
702 fi
703
704 ac_tool_prefix=
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707 test "$silent" = yes && exec 6>/dev/null
708
709
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712   ac_srcdir_defaulted=yes
713   # Try the directory containing this script, then its parent.
714   ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716          X"$0" : 'X\(//\)[^/]' \| \
717          X"$0" : 'X\(//\)$' \| \
718          X"$0" : 'X\(/\)' \| \
719          .     : '\(.\)' 2>/dev/null ||
720 echo X"$0" |
721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723           /^X\(\/\/\)$/{ s//\1/; q; }
724           /^X\(\/\).*/{ s//\1/; q; }
725           s/.*/./; q'`
726   srcdir=$ac_confdir
727   if test ! -r $srcdir/$ac_unique_file; then
728     srcdir=..
729   fi
730 else
731   ac_srcdir_defaulted=no
732 fi
733 if test ! -r $srcdir/$ac_unique_file; then
734   if test "$ac_srcdir_defaulted" = yes; then
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736    { (exit 1); exit 1; }; }
737   else
738     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739    { (exit 1); exit 1; }; }
740   fi
741 fi
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744    { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
759 ac_env_CC_value=$CC
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778 ac_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
779 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
780 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
781 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
782 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
783 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
784 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
785 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
786
787 #
788 # Report the --help message.
789 #
790 if test "$ac_init_help" = "long"; then
791   # Omit some internal or obsolete options to make the list less imposing.
792   # This message is too long to be a string in the A/UX 3.1 sh.
793   cat <<_ACEOF
794 \`configure' configures PostgreSQL 8.3beta1 to adapt to many kinds of systems.
795
796 Usage: $0 [OPTION]... [VAR=VALUE]...
797
798 To assign environment variables (e.g., CC, CFLAGS...), specify them as
799 VAR=VALUE.  See below for descriptions of some of the useful variables.
800
801 Defaults for the options are specified in brackets.
802
803 Configuration:
804   -h, --help              display this help and exit
805       --help=short        display options specific to this package
806       --help=recursive    display the short help of all the included packages
807   -V, --version           display version information and exit
808   -q, --quiet, --silent   do not print \`checking...' messages
809       --cache-file=FILE   cache test results in FILE [disabled]
810   -C, --config-cache      alias for \`--cache-file=config.cache'
811   -n, --no-create         do not create output files
812       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
813
814 _ACEOF
815
816   cat <<_ACEOF
817 Installation directories:
818   --prefix=PREFIX         install architecture-independent files in PREFIX
819                           [$ac_default_prefix]
820   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
821                           [PREFIX]
822
823 By default, \`make install' will install all the files in
824 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
825 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826 for instance \`--prefix=\$HOME'.
827
828 For better control, use the options below.
829
830 Fine tuning of the installation directories:
831   --bindir=DIR           user executables [EPREFIX/bin]
832   --sbindir=DIR          system admin executables [EPREFIX/sbin]
833   --libexecdir=DIR       program executables [EPREFIX/libexec]
834   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
835   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
836   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
837   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
838   --libdir=DIR           object code libraries [EPREFIX/lib]
839   --includedir=DIR       C header files [PREFIX/include]
840   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
841   --infodir=DIR          info documentation [PREFIX/info]
842   --mandir=DIR           man documentation [PREFIX/man]
843 _ACEOF
844
845   cat <<\_ACEOF
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   case $ac_init_help in
855      short | recursive ) echo "Configuration of PostgreSQL 8.3beta1:";;
856    esac
857   cat <<\_ACEOF
858
859 Optional Features:
860   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
861   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
862   --enable-integer-datetimes  enable 64-bit integer date/time support
863   --enable-nls[=LANGUAGES]  enable Native Language Support
864   --disable-shared        do not build shared libraries
865   --disable-rpath         do not embed shared library search path in executables
866   --disable-spinlocks     do not use spinlocks
867   --enable-debug          build with debugging symbols (-g)
868   --enable-profiling      build with profiling enabled
869   --enable-dtrace         build with DTrace support
870   --enable-depend         turn on automatic dependency tracking
871   --enable-cassert        enable assertion checks (for debugging)
872   --enable-thread-safety  make client libraries thread-safe
873   --enable-thread-safety-force  force thread-safety despite thread test failure
874   --disable-largefile     omit support for large files
875
876 Optional Packages:
877   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879
880   --with-docdir=DIR       install the documentation in DIR [PREFIX/doc]
881   --without-docdir        do not install the documentation
882   --with-includes=DIRS    look for additional header files in DIRS
883   --with-libraries=DIRS   look for additional libraries in DIRS
884   --with-libs=DIRS        alternative spelling of --with-libraries
885   --with-pgport=PORTNUM   change default port number [5432]
886   --with-tcl              build Tcl modules (PL/Tcl)
887   --with-tclconfig=DIR    tclConfig.sh is in DIR
888   --with-perl             build Perl modules (PL/Perl)
889   --with-python           build Python modules (PL/Python)
890   --with-gssapi           build with GSSAPI support
891   --with-krb5             build with Kerberos 5 support
892   --with-krb-srvnam=NAME  default service principal name in Kerberos [postgres]
893   --with-pam              build with PAM support
894   --with-ldap             build with LDAP support
895   --with-bonjour          build with Bonjour support
896   --with-openssl          build with OpenSSL support
897   --without-readline      do not use GNU Readline nor BSD Libedit for editing
898   --with-libedit-preferred  prefer BSD Libedit over GNU Readline
899   --with-ossp-uuid        build with OSSP UUID library for UUID generation
900   --with-libxml           build with XML support
901   --with-libxslt          build with XSLT support
902   --with-system-tzdata=DIR  use system time zone data in DIR
903   --without-zlib          do not use Zlib
904   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
905
906 Some influential environment variables:
907   CC          C compiler command
908   CFLAGS      C compiler flags
909   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
910               nonstandard directory <lib dir>
911   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
912               headers in a nonstandard directory <include dir>
913   CPP         C preprocessor
914   LDFLAGS_SL
915   DOCBOOKSTYLE
916               location of DocBook stylesheets
917
918 Use these variables to override the choices made by `configure' or to help
919 it to find libraries and programs with nonstandard names/locations.
920
921 Report bugs to <pgsql-bugs@postgresql.org>.
922 _ACEOF
923 fi
924
925 if test "$ac_init_help" = "recursive"; then
926   # If there are subdirs, report their specific --help.
927   ac_popdir=`pwd`
928   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
929     test -d $ac_dir || continue
930     ac_builddir=.
931
932 if test "$ac_dir" != .; then
933   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
934   # A "../" for each directory in $ac_dir_suffix.
935   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
936 else
937   ac_dir_suffix= ac_top_builddir=
938 fi
939
940 case $srcdir in
941   .)  # No --srcdir option.  We are building in place.
942     ac_srcdir=.
943     if test -z "$ac_top_builddir"; then
944        ac_top_srcdir=.
945     else
946        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
947     fi ;;
948   [\\/]* | ?:[\\/]* )  # Absolute path.
949     ac_srcdir=$srcdir$ac_dir_suffix;
950     ac_top_srcdir=$srcdir ;;
951   *) # Relative path.
952     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
953     ac_top_srcdir=$ac_top_builddir$srcdir ;;
954 esac
955
956 # Do not use `cd foo && pwd` to compute absolute paths, because
957 # the directories may not exist.
958 case `pwd` in
959 .) ac_abs_builddir="$ac_dir";;
960 *)
961   case "$ac_dir" in
962   .) ac_abs_builddir=`pwd`;;
963   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
964   *) ac_abs_builddir=`pwd`/"$ac_dir";;
965   esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *)
970   case ${ac_top_builddir}. in
971   .) ac_abs_top_builddir=$ac_abs_builddir;;
972   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
973   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
974   esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_srcdir=$ac_srcdir;;
978 *)
979   case $ac_srcdir in
980   .) ac_abs_srcdir=$ac_abs_builddir;;
981   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
982   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
983   esac;;
984 esac
985 case $ac_abs_builddir in
986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *)
988   case $ac_top_srcdir in
989   .) ac_abs_top_srcdir=$ac_abs_builddir;;
990   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
991   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992   esac;;
993 esac
994
995     cd $ac_dir
996     # Check for guested configure; otherwise get Cygnus style configure.
997     if test -f $ac_srcdir/configure.gnu; then
998       echo
999       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1000     elif test -f $ac_srcdir/configure; then
1001       echo
1002       $SHELL $ac_srcdir/configure  --help=recursive
1003     elif test -f $ac_srcdir/configure.ac ||
1004            test -f $ac_srcdir/configure.in; then
1005       echo
1006       $ac_configure --help
1007     else
1008       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1009     fi
1010     cd $ac_popdir
1011   done
1012 fi
1013
1014 test -n "$ac_init_help" && exit 0
1015 if $ac_init_version; then
1016   cat <<\_ACEOF
1017 PostgreSQL configure 8.3beta1
1018 generated by GNU Autoconf 2.59
1019
1020 Copyright (C) 2003 Free Software Foundation, Inc.
1021 This configure script is free software; the Free Software Foundation
1022 gives unlimited permission to copy, distribute and modify it.
1023
1024 Copyright (c) 1996-2007, PostgreSQL Global Development Group
1025 _ACEOF
1026   exit 0
1027 fi
1028 exec 5>config.log
1029 cat >&5 <<_ACEOF
1030 This file contains any messages produced by compilers while
1031 running configure, to aid debugging if configure makes a mistake.
1032
1033 It was created by PostgreSQL $as_me 8.3beta1, which was
1034 generated by GNU Autoconf 2.59.  Invocation command line was
1035
1036   $ $0 $@
1037
1038 _ACEOF
1039 {
1040 cat <<_ASUNAME
1041 ## --------- ##
1042 ## Platform. ##
1043 ## --------- ##
1044
1045 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1046 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1047 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1048 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1049 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1050
1051 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1052 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1053
1054 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1055 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1056 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1057 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1058 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1059 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1060 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1061
1062 _ASUNAME
1063
1064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1065 for as_dir in $PATH
1066 do
1067   IFS=$as_save_IFS
1068   test -z "$as_dir" && as_dir=.
1069   echo "PATH: $as_dir"
1070 done
1071
1072 } >&5
1073
1074 cat >&5 <<_ACEOF
1075
1076
1077 ## ----------- ##
1078 ## Core tests. ##
1079 ## ----------- ##
1080
1081 _ACEOF
1082
1083
1084 # Keep a trace of the command line.
1085 # Strip out --no-create and --no-recursion so they do not pile up.
1086 # Strip out --silent because we don't want to record it for future runs.
1087 # Also quote any args containing shell meta-characters.
1088 # Make two passes to allow for proper duplicate-argument suppression.
1089 ac_configure_args=
1090 ac_configure_args0=
1091 ac_configure_args1=
1092 ac_sep=
1093 ac_must_keep_next=false
1094 for ac_pass in 1 2
1095 do
1096   for ac_arg
1097   do
1098     case $ac_arg in
1099     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1100     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101     | -silent | --silent | --silen | --sile | --sil)
1102       continue ;;
1103     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1104       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1105     esac
1106     case $ac_pass in
1107     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1108     2)
1109       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1110       if test $ac_must_keep_next = true; then
1111         ac_must_keep_next=false # Got value, back to normal.
1112       else
1113         case $ac_arg in
1114           *=* | --config-cache | -C | -disable-* | --disable-* \
1115           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1116           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1117           | -with-* | --with-* | -without-* | --without-* | --x)
1118             case "$ac_configure_args0 " in
1119               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1120             esac
1121             ;;
1122           -* ) ac_must_keep_next=true ;;
1123         esac
1124       fi
1125       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1126       # Get rid of the leading space.
1127       ac_sep=" "
1128       ;;
1129     esac
1130   done
1131 done
1132 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1133 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1134
1135 # When interrupted or exit'd, cleanup temporary files, and complete
1136 # config.log.  We remove comments because anyway the quotes in there
1137 # would cause problems or look ugly.
1138 # WARNING: Be sure not to use single quotes in there, as some shells,
1139 # such as our DU 5.0 friend, will then `close' the trap.
1140 trap 'exit_status=$?
1141   # Save into config.log some information that might help in debugging.
1142   {
1143     echo
1144
1145     cat <<\_ASBOX
1146 ## ---------------- ##
1147 ## Cache variables. ##
1148 ## ---------------- ##
1149 _ASBOX
1150     echo
1151     # The following way of writing the cache mishandles newlines in values,
1152 {
1153   (set) 2>&1 |
1154     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1155     *ac_space=\ *)
1156       sed -n \
1157         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1158           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1159       ;;
1160     *)
1161       sed -n \
1162         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1163       ;;
1164     esac;
1165 }
1166     echo
1167
1168     cat <<\_ASBOX
1169 ## ----------------- ##
1170 ## Output variables. ##
1171 ## ----------------- ##
1172 _ASBOX
1173     echo
1174     for ac_var in $ac_subst_vars
1175     do
1176       eval ac_val=$`echo $ac_var`
1177       echo "$ac_var='"'"'$ac_val'"'"'"
1178     done | sort
1179     echo
1180
1181     if test -n "$ac_subst_files"; then
1182       cat <<\_ASBOX
1183 ## ------------- ##
1184 ## Output files. ##
1185 ## ------------- ##
1186 _ASBOX
1187       echo
1188       for ac_var in $ac_subst_files
1189       do
1190         eval ac_val=$`echo $ac_var`
1191         echo "$ac_var='"'"'$ac_val'"'"'"
1192       done | sort
1193       echo
1194     fi
1195
1196     if test -s confdefs.h; then
1197       cat <<\_ASBOX
1198 ## ----------- ##
1199 ## confdefs.h. ##
1200 ## ----------- ##
1201 _ASBOX
1202       echo
1203       sed "/^$/d" confdefs.h | sort
1204       echo
1205     fi
1206     test "$ac_signal" != 0 &&
1207       echo "$as_me: caught signal $ac_signal"
1208     echo "$as_me: exit $exit_status"
1209   } >&5
1210   rm -f core *.core &&
1211   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1212     exit $exit_status
1213      ' 0
1214 for ac_signal in 1 2 13 15; do
1215   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1216 done
1217 ac_signal=0
1218
1219 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1220 rm -rf conftest* confdefs.h
1221 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1222 echo >confdefs.h
1223
1224 # Predefined preprocessor variables.
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_NAME "$PACKAGE_NAME"
1228 _ACEOF
1229
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1233 _ACEOF
1234
1235
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1238 _ACEOF
1239
1240
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_STRING "$PACKAGE_STRING"
1243 _ACEOF
1244
1245
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1248 _ACEOF
1249
1250
1251 # Let the site file select an alternate cache file if it wants to.
1252 # Prefer explicitly selected file to automatically selected ones.
1253 if test -z "$CONFIG_SITE"; then
1254   if test "x$prefix" != xNONE; then
1255     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1256   else
1257     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1258   fi
1259 fi
1260 for ac_site_file in $CONFIG_SITE; do
1261   if test -r "$ac_site_file"; then
1262     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1263 echo "$as_me: loading site script $ac_site_file" >&6;}
1264     sed 's/^/| /' "$ac_site_file" >&5
1265     . "$ac_site_file"
1266   fi
1267 done
1268
1269 if test -r "$cache_file"; then
1270   # Some versions of bash will fail to source /dev/null (special
1271   # files actually), so we avoid doing that.
1272   if test -f "$cache_file"; then
1273     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1274 echo "$as_me: loading cache $cache_file" >&6;}
1275     case $cache_file in
1276       [\\/]* | ?:[\\/]* ) . $cache_file;;
1277       *)                      . ./$cache_file;;
1278     esac
1279   fi
1280 else
1281   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1282 echo "$as_me: creating cache $cache_file" >&6;}
1283   >$cache_file
1284 fi
1285
1286 # Check that the precious variables saved in the cache have kept the same
1287 # value.
1288 ac_cache_corrupted=false
1289 for ac_var in `(set) 2>&1 |
1290                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1291   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1292   eval ac_new_set=\$ac_env_${ac_var}_set
1293   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1294   eval ac_new_val="\$ac_env_${ac_var}_value"
1295   case $ac_old_set,$ac_new_set in
1296     set,)
1297       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1298 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1299       ac_cache_corrupted=: ;;
1300     ,set)
1301       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1302 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1303       ac_cache_corrupted=: ;;
1304     ,);;
1305     *)
1306       if test "x$ac_old_val" != "x$ac_new_val"; then
1307         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1308 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1309         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1310 echo "$as_me:   former value:  $ac_old_val" >&2;}
1311         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1312 echo "$as_me:   current value: $ac_new_val" >&2;}
1313         ac_cache_corrupted=:
1314       fi;;
1315   esac
1316   # Pass precious variables to config.status.
1317   if test "$ac_new_set" = set; then
1318     case $ac_new_val in
1319     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1320       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1321     *) ac_arg=$ac_var=$ac_new_val ;;
1322     esac
1323     case " $ac_configure_args " in
1324       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1325       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1326     esac
1327   fi
1328 done
1329 if $ac_cache_corrupted; then
1330   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334    { (exit 1); exit 1; }; }
1335 fi
1336
1337 ac_ext=c
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373 ac_aux_dir=
1374 for ac_dir in config $srcdir/config; do
1375   if test -f $ac_dir/install-sh; then
1376     ac_aux_dir=$ac_dir
1377     ac_install_sh="$ac_aux_dir/install-sh -c"
1378     break
1379   elif test -f $ac_dir/install.sh; then
1380     ac_aux_dir=$ac_dir
1381     ac_install_sh="$ac_aux_dir/install.sh -c"
1382     break
1383   elif test -f $ac_dir/shtool; then
1384     ac_aux_dir=$ac_dir
1385     ac_install_sh="$ac_aux_dir/shtool install -c"
1386     break
1387   fi
1388 done
1389 if test -z "$ac_aux_dir"; then
1390   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1391 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1392    { (exit 1); exit 1; }; }
1393 fi
1394 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1395 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1396 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1397
1398
1399 configure_args=$ac_configure_args
1400
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PG_VERSION "$PACKAGE_VERSION"
1405 _ACEOF
1406
1407
1408 # Make sure we can run config.sub.
1409 $ac_config_sub sun4 >/dev/null 2>&1 ||
1410   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1411 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1412    { (exit 1); exit 1; }; }
1413
1414 echo "$as_me:$LINENO: checking build system type" >&5
1415 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1416 if test "${ac_cv_build+set}" = set; then
1417   echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419   ac_cv_build_alias=$build_alias
1420 test -z "$ac_cv_build_alias" &&
1421   ac_cv_build_alias=`$ac_config_guess`
1422 test -z "$ac_cv_build_alias" &&
1423   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1424 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1425    { (exit 1); exit 1; }; }
1426 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1427   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1428 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1429    { (exit 1); exit 1; }; }
1430
1431 fi
1432 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1433 echo "${ECHO_T}$ac_cv_build" >&6
1434 build=$ac_cv_build
1435 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1436 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1437 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1438
1439
1440 echo "$as_me:$LINENO: checking host system type" >&5
1441 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1442 if test "${ac_cv_host+set}" = set; then
1443   echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445   ac_cv_host_alias=$host_alias
1446 test -z "$ac_cv_host_alias" &&
1447   ac_cv_host_alias=$ac_cv_build_alias
1448 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1449   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1451    { (exit 1); exit 1; }; }
1452
1453 fi
1454 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1455 echo "${ECHO_T}$ac_cv_host" >&6
1456 host=$ac_cv_host
1457 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460
1461
1462
1463 template=
1464 echo "$as_me:$LINENO: checking which template to use" >&5
1465 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1466
1467
1468 pgac_args="$pgac_args with_template"
1469
1470
1471 # Check whether --with-template or --without-template was given.
1472 if test "${with_template+set}" = set; then
1473   withval="$with_template"
1474
1475   case $withval in
1476     yes)
1477       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1478 echo "$as_me: error: argument required for --with-template option" >&2;}
1479    { (exit 1); exit 1; }; }
1480       ;;
1481     no)
1482       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1483 echo "$as_me: error: argument required for --with-template option" >&2;}
1484    { (exit 1); exit 1; }; }
1485       ;;
1486     *)
1487
1488   case $withval in
1489     list)   echo; ls "$srcdir/src/template"; exit;;
1490     *)      if test -f "$srcdir/src/template/$with_template" ; then
1491               template=$withval
1492             else
1493               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1494 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1495    { (exit 1); exit 1; }; }
1496             fi;;
1497   esac
1498
1499       ;;
1500   esac
1501
1502 else
1503
1504 # --with-template not given
1505
1506 case $host_os in
1507      aix*) template=aix ;;
1508     bsdi*) template=bsdi ;;
1509   cygwin*) template=cygwin ;;
1510   darwin*) template=darwin ;;
1511     dgux*) template=dgux ;;
1512  freebsd*) template=freebsd ;;
1513     hpux*) template=hpux ;;
1514     irix*) template=irix ;;
1515  linux*|gnu*|k*bsd*-gnu)
1516            template=linux ;;
1517    mingw*) template=win32 ;;
1518   netbsd*) template=netbsd ;;
1519 nextstep*) template=nextstep ;;
1520  openbsd*) template=openbsd ;;
1521      osf*) template=osf ;;
1522      sco*) template=sco ;;
1523  solaris*) template=solaris ;;
1524    sunos*) template=sunos4 ;;
1525  sysv4.2*)
1526         case $host_vendor in
1527           univel) template=univel ;;
1528         esac ;;
1529    sysv4*) template=svr4 ;;
1530    sysv5*) template=unixware ;;
1531   ultrix*) template=ultrix4 ;;
1532 esac
1533
1534   if test x"$template" = x"" ; then
1535     { { echo "$as_me:$LINENO: error:
1536 *******************************************************************
1537 PostgreSQL has apparently not been ported to your platform yet.
1538 To try a manual configuration, look into the src/template directory
1539 for a similar platform and use the '--with-template=' option.
1540
1541 Please also contact <pgsql-ports@postgresql.org> to see about
1542 rectifying this.  Include the above 'checking host system type...'
1543 line.
1544 *******************************************************************
1545 " >&5
1546 echo "$as_me: error:
1547 *******************************************************************
1548 PostgreSQL has apparently not been ported to your platform yet.
1549 To try a manual configuration, look into the src/template directory
1550 for a similar platform and use the '--with-template=' option.
1551
1552 Please also contact <pgsql-ports@postgresql.org> to see about
1553 rectifying this.  Include the above 'checking host system type...'
1554 line.
1555 *******************************************************************
1556 " >&2;}
1557    { (exit 1); exit 1; }; }
1558   fi
1559
1560
1561 fi;
1562
1563
1564 echo "$as_me:$LINENO: result: $template" >&5
1565 echo "${ECHO_T}$template" >&6
1566
1567 PORTNAME=$template
1568
1569
1570 # Initialize default assumption that we do not need separate assembly code
1571 # for TAS (test-and-set).  This can be overridden by the template file
1572 # when it's executed.
1573 need_tas=no
1574 tas_file=dummy.s
1575
1576
1577
1578 ##
1579 ## Command line options
1580 ##
1581
1582 #
1583 # Installation directory for documentation
1584 #
1585
1586 pgac_args="$pgac_args with_docdir"
1587
1588
1589 # Check whether --with-docdir or --without-docdir was given.
1590 if test "${with_docdir+set}" = set; then
1591   withval="$with_docdir"
1592
1593   case $withval in
1594     yes)
1595       { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1596 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1597    { (exit 1); exit 1; }; }
1598       ;;
1599     no)
1600       docdir=
1601       ;;
1602     *)
1603       docdir=$withval
1604       ;;
1605   esac
1606
1607 else
1608   docdir='${prefix}/doc'
1609 fi;
1610
1611
1612
1613
1614 #
1615 # Add non-standard directories to the include path
1616 #
1617
1618 pgac_args="$pgac_args with_includes"
1619
1620
1621 # Check whether --with-includes or --without-includes was given.
1622 if test "${with_includes+set}" = set; then
1623   withval="$with_includes"
1624
1625   case $withval in
1626     yes)
1627       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1628 echo "$as_me: error: argument required for --with-includes option" >&2;}
1629    { (exit 1); exit 1; }; }
1630       ;;
1631     no)
1632       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1633 echo "$as_me: error: argument required for --with-includes option" >&2;}
1634    { (exit 1); exit 1; }; }
1635       ;;
1636     *)
1637
1638       ;;
1639   esac
1640
1641 fi;
1642
1643
1644
1645 #
1646 # Add non-standard directories to the library search path
1647 #
1648
1649 pgac_args="$pgac_args with_libraries"
1650
1651
1652 # Check whether --with-libraries or --without-libraries was given.
1653 if test "${with_libraries+set}" = set; then
1654   withval="$with_libraries"
1655
1656   case $withval in
1657     yes)
1658       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1659 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1660    { (exit 1); exit 1; }; }
1661       ;;
1662     no)
1663       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1664 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1665    { (exit 1); exit 1; }; }
1666       ;;
1667     *)
1668       LIBRARY_DIRS=$withval
1669       ;;
1670   esac
1671
1672 fi;
1673
1674
1675
1676 pgac_args="$pgac_args with_libs"
1677
1678
1679 # Check whether --with-libs or --without-libs was given.
1680 if test "${with_libs+set}" = set; then
1681   withval="$with_libs"
1682
1683   case $withval in
1684     yes)
1685       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1686 echo "$as_me: error: argument required for --with-libs option" >&2;}
1687    { (exit 1); exit 1; }; }
1688       ;;
1689     no)
1690       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1691 echo "$as_me: error: argument required for --with-libs option" >&2;}
1692    { (exit 1); exit 1; }; }
1693       ;;
1694     *)
1695       LIBRARY_DIRS=$withval
1696       ;;
1697   esac
1698
1699 fi;
1700
1701
1702
1703 #
1704 # 64-bit integer date/time storage (--enable-integer-datetimes)
1705 #
1706 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1707 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1708
1709 pgac_args="$pgac_args enable_integer_datetimes"
1710
1711 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1712 if test "${enable_integer_datetimes+set}" = set; then
1713   enableval="$enable_integer_datetimes"
1714
1715   case $enableval in
1716     yes)
1717
1718 cat >>confdefs.h <<\_ACEOF
1719 #define USE_INTEGER_DATETIMES 1
1720 _ACEOF
1721
1722       ;;
1723     no)
1724       :
1725       ;;
1726     *)
1727       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1728 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1729    { (exit 1); exit 1; }; }
1730       ;;
1731   esac
1732
1733 else
1734   enable_integer_datetimes=no
1735
1736 fi;
1737
1738 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1739 echo "${ECHO_T}$enable_integer_datetimes" >&6
1740
1741
1742 #
1743 # NLS
1744 #
1745 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1746 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1747
1748 pgac_args="$pgac_args enable_nls"
1749
1750 # Check whether --enable-nls or --disable-nls was given.
1751 if test "${enable_nls+set}" = set; then
1752   enableval="$enable_nls"
1753
1754   case $enableval in
1755     yes)
1756       :
1757       ;;
1758     no)
1759       :
1760       ;;
1761     *)
1762       enable_nls=yes
1763 WANTED_LANGUAGES=$enableval
1764       ;;
1765   esac
1766
1767 else
1768   enable_nls=no
1769 fi;
1770
1771
1772 if test "$enable_nls" = yes; then
1773
1774 cat >>confdefs.h <<\_ACEOF
1775 #define ENABLE_NLS 1
1776 _ACEOF
1777
1778 fi
1779
1780 echo "$as_me:$LINENO: result: $enable_nls" >&5
1781 echo "${ECHO_T}$enable_nls" >&6
1782
1783
1784
1785 #
1786 # Default port number (--with-pgport), default 5432
1787 #
1788 echo "$as_me:$LINENO: checking for default port number" >&5
1789 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1790
1791 pgac_args="$pgac_args with_pgport"
1792
1793
1794 # Check whether --with-pgport or --without-pgport was given.
1795 if test "${with_pgport+set}" = set; then
1796   withval="$with_pgport"
1797
1798   case $withval in
1799     yes)
1800       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1801 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1802    { (exit 1); exit 1; }; }
1803       ;;
1804     no)
1805       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1806 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1807    { (exit 1); exit 1; }; }
1808       ;;
1809     *)
1810       default_port=$withval
1811       ;;
1812   esac
1813
1814 else
1815   default_port=5432
1816 fi;
1817
1818 echo "$as_me:$LINENO: result: $default_port" >&5
1819 echo "${ECHO_T}$default_port" >&6
1820 # Need both of these because some places want an integer and some a string
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define DEF_PGPORT ${default_port}
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define DEF_PGPORT_STR "${default_port}"
1829 _ACEOF
1830
1831
1832
1833 #
1834 # Option to disable shared libraries
1835 #
1836
1837 pgac_args="$pgac_args enable_shared"
1838
1839 # Check whether --enable-shared or --disable-shared was given.
1840 if test "${enable_shared+set}" = set; then
1841   enableval="$enable_shared"
1842
1843   case $enableval in
1844     yes)
1845       :
1846       ;;
1847     no)
1848       :
1849       ;;
1850     *)
1851       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1852 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1853    { (exit 1); exit 1; }; }
1854       ;;
1855   esac
1856
1857 else
1858   enable_shared=yes
1859
1860 fi;
1861
1862
1863
1864 #
1865 # '-rpath'-like feature can be disabled
1866 #
1867
1868 pgac_args="$pgac_args enable_rpath"
1869
1870 # Check whether --enable-rpath or --disable-rpath was given.
1871 if test "${enable_rpath+set}" = set; then
1872   enableval="$enable_rpath"
1873
1874   case $enableval in
1875     yes)
1876       :
1877       ;;
1878     no)
1879       :
1880       ;;
1881     *)
1882       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1883 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1884    { (exit 1); exit 1; }; }
1885       ;;
1886   esac
1887
1888 else
1889   enable_rpath=yes
1890
1891 fi;
1892
1893
1894
1895 #
1896 # Spinlocks
1897 #
1898
1899 pgac_args="$pgac_args enable_spinlocks"
1900
1901 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1902 if test "${enable_spinlocks+set}" = set; then
1903   enableval="$enable_spinlocks"
1904
1905   case $enableval in
1906     yes)
1907       :
1908       ;;
1909     no)
1910       :
1911       ;;
1912     *)
1913       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1914 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1915    { (exit 1); exit 1; }; }
1916       ;;
1917   esac
1918
1919 else
1920   enable_spinlocks=yes
1921
1922 fi;
1923
1924
1925 #
1926 # --enable-debug adds -g to compiler flags
1927 #
1928
1929 pgac_args="$pgac_args enable_debug"
1930
1931 # Check whether --enable-debug or --disable-debug was given.
1932 if test "${enable_debug+set}" = set; then
1933   enableval="$enable_debug"
1934
1935   case $enableval in
1936     yes)
1937       :
1938       ;;
1939     no)
1940       :
1941       ;;
1942     *)
1943       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1944 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1945    { (exit 1); exit 1; }; }
1946       ;;
1947   esac
1948
1949 else
1950   enable_debug=no
1951
1952 fi;
1953
1954
1955
1956 #
1957 # --enable-profiling enables gcc profiling
1958 #
1959
1960 pgac_args="$pgac_args enable_profiling"
1961
1962 # Check whether --enable-profiling or --disable-profiling was given.
1963 if test "${enable_profiling+set}" = set; then
1964   enableval="$enable_profiling"
1965
1966   case $enableval in
1967     yes)
1968       :
1969       ;;
1970     no)
1971       :
1972       ;;
1973     *)
1974       { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
1975 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
1976    { (exit 1); exit 1; }; }
1977       ;;
1978   esac
1979
1980 else
1981   enable_profiling=no
1982
1983 fi;
1984
1985
1986
1987 #
1988 # DTrace
1989 #
1990
1991 pgac_args="$pgac_args enable_dtrace"
1992
1993 # Check whether --enable-dtrace or --disable-dtrace was given.
1994 if test "${enable_dtrace+set}" = set; then
1995   enableval="$enable_dtrace"
1996
1997   case $enableval in
1998     yes)
1999
2000 cat >>confdefs.h <<\_ACEOF
2001 #define ENABLE_DTRACE 1
2002 _ACEOF
2003
2004 for ac_prog in dtrace
2005 do
2006   # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_DTRACE+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   if test -n "$DTRACE"; then
2014   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021   for ac_exec_ext in '' $ac_executable_extensions; do
2022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023     ac_cv_prog_DTRACE="$ac_prog"
2024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025     break 2
2026   fi
2027 done
2028 done
2029
2030 fi
2031 fi
2032 DTRACE=$ac_cv_prog_DTRACE
2033 if test -n "$DTRACE"; then
2034   echo "$as_me:$LINENO: result: $DTRACE" >&5
2035 echo "${ECHO_T}$DTRACE" >&6
2036 else
2037   echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2039 fi
2040
2041   test -n "$DTRACE" && break
2042 done
2043
2044 if test -z "$DTRACE"; then
2045   { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2046 echo "$as_me: error: dtrace not found" >&2;}
2047    { (exit 1); exit 1; }; }
2048 fi
2049
2050       ;;
2051     no)
2052       :
2053       ;;
2054     *)
2055       { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2056 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2057    { (exit 1); exit 1; }; }
2058       ;;
2059   esac
2060
2061 else
2062   enable_dtrace=no
2063
2064 fi;
2065
2066
2067
2068 #
2069 # C compiler
2070 #
2071
2072 # For historical reasons you can also use --with-CC to specify the C compiler
2073 # to use, although the standard way to do this is to set the CC environment
2074 # variable.
2075
2076 pgac_args="$pgac_args with_CC"
2077
2078
2079 # Check whether --with-CC or --without-CC was given.
2080 if test "${with_CC+set}" = set; then
2081   withval="$with_CC"
2082
2083   case $withval in
2084     yes)
2085       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2086 echo "$as_me: error: argument required for --with-CC option" >&2;}
2087    { (exit 1); exit 1; }; }
2088       ;;
2089     no)
2090       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2091 echo "$as_me: error: argument required for --with-CC option" >&2;}
2092    { (exit 1); exit 1; }; }
2093       ;;
2094     *)
2095       CC=$with_CC
2096       ;;
2097   esac
2098
2099 fi;
2100
2101
2102 case $template in
2103   aix) pgac_cc_list="gcc xlc";;
2104  irix) pgac_cc_list="cc";; # no gcc
2105     *) pgac_cc_list="gcc cc";;
2106 esac
2107
2108 ac_ext=c
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113 if test -n "$ac_tool_prefix"; then
2114   for ac_prog in $pgac_cc_list
2115   do
2116     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_CC+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   if test -n "$CC"; then
2124   ac_cv_prog_CC="$CC" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129   IFS=$as_save_IFS
2130   test -z "$as_dir" && as_dir=.
2131   for ac_exec_ext in '' $ac_executable_extensions; do
2132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135     break 2
2136   fi
2137 done
2138 done
2139
2140 fi
2141 fi
2142 CC=$ac_cv_prog_CC
2143 if test -n "$CC"; then
2144   echo "$as_me:$LINENO: result: $CC" >&5
2145 echo "${ECHO_T}$CC" >&6
2146 else
2147   echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2149 fi
2150
2151     test -n "$CC" && break
2152   done
2153 fi
2154 if test -z "$CC"; then
2155   ac_ct_CC=$CC
2156   for ac_prog in $pgac_cc_list
2157 do
2158   # Extract the first word of "$ac_prog", so it can be a program name with args.
2159 set dummy $ac_prog; ac_word=$2
2160 echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2163   echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165   if test -n "$ac_ct_CC"; then
2166   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2167 else
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2170 do
2171   IFS=$as_save_IFS
2172   test -z "$as_dir" && as_dir=.
2173   for ac_exec_ext in '' $ac_executable_extensions; do
2174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175     ac_cv_prog_ac_ct_CC="$ac_prog"
2176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177     break 2
2178   fi
2179 done
2180 done
2181
2182 fi
2183 fi
2184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2185 if test -n "$ac_ct_CC"; then
2186   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2187 echo "${ECHO_T}$ac_ct_CC" >&6
2188 else
2189   echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2191 fi
2192
2193   test -n "$ac_ct_CC" && break
2194 done
2195
2196   CC=$ac_ct_CC
2197 fi
2198
2199
2200 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: no acceptable C compiler found in \$PATH
2203 See \`config.log' for more details." >&2;}
2204    { (exit 1); exit 1; }; }
2205
2206 # Provide some information about the compiler.
2207 echo "$as_me:$LINENO:" \
2208      "checking for C compiler version" >&5
2209 ac_compiler=`set X $ac_compile; echo $2`
2210 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2211   (eval $ac_compiler --version </dev/null >&5) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }
2215 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2216   (eval $ac_compiler -v </dev/null >&5) 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }
2220 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2221   (eval $ac_compiler -V </dev/null >&5) 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }
2225
2226 cat >conftest.$ac_ext <<_ACEOF
2227 /* confdefs.h.  */
2228 _ACEOF
2229 cat confdefs.h >>conftest.$ac_ext
2230 cat >>conftest.$ac_ext <<_ACEOF
2231 /* end confdefs.h.  */
2232
2233 int
2234 main ()
2235 {
2236
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 ac_clean_files_save=$ac_clean_files
2242 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2243 # Try to create an executable without -o first, disregard a.out.
2244 # It will help us diagnose broken compilers, and finding out an intuition
2245 # of exeext.
2246 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2247 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2248 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2249 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2250   (eval $ac_link_default) 2>&5
2251   ac_status=$?
2252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253   (exit $ac_status); }; then
2254   # Find the output, starting from the most likely.  This scheme is
2255 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2256 # resort.
2257
2258 # Be careful to initialize this variable, since it used to be cached.
2259 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2260 ac_cv_exeext=
2261 # b.out is created by i960 compilers.
2262 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2263 do
2264   test -f "$ac_file" || continue
2265   case $ac_file in
2266     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2267         ;;
2268     conftest.$ac_ext )
2269         # This is the source file.
2270         ;;
2271     [ab].out )
2272         # We found the default executable, but exeext='' is most
2273         # certainly right.
2274         break;;
2275     *.* )
2276         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277         # FIXME: I believe we export ac_cv_exeext for Libtool,
2278         # but it would be cool to find out if it's true.  Does anybody
2279         # maintain Libtool? --akim.
2280         export ac_cv_exeext
2281         break;;
2282     * )
2283         break;;
2284   esac
2285 done
2286 else
2287   echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2289
2290 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: C compiler cannot create executables
2293 See \`config.log' for more details." >&2;}
2294    { (exit 77); exit 77; }; }
2295 fi
2296
2297 ac_exeext=$ac_cv_exeext
2298 echo "$as_me:$LINENO: result: $ac_file" >&5
2299 echo "${ECHO_T}$ac_file" >&6
2300
2301 # Check the compiler produces executables we can run.  If not, either
2302 # the compiler is broken, or we cross compile.
2303 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2304 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2305 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2306 # If not cross compiling, check that we can run a simple program.
2307 if test "$cross_compiling" != yes; then
2308   if { ac_try='./$ac_file'
2309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310   (eval $ac_try) 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); }; }; then
2314     cross_compiling=no
2315   else
2316     if test "$cross_compiling" = maybe; then
2317         cross_compiling=yes
2318     else
2319         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2320 If you meant to cross compile, use \`--host'.
2321 See \`config.log' for more details." >&5
2322 echo "$as_me: error: cannot run C compiled programs.
2323 If you meant to cross compile, use \`--host'.
2324 See \`config.log' for more details." >&2;}
2325    { (exit 1); exit 1; }; }
2326     fi
2327   fi
2328 fi
2329 echo "$as_me:$LINENO: result: yes" >&5
2330 echo "${ECHO_T}yes" >&6
2331
2332 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2333 ac_clean_files=$ac_clean_files_save
2334 # Check the compiler produces executables we can run.  If not, either
2335 # the compiler is broken, or we cross compile.
2336 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2337 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2338 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2339 echo "${ECHO_T}$cross_compiling" >&6
2340
2341 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2342 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2344   (eval $ac_link) 2>&5
2345   ac_status=$?
2346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347   (exit $ac_status); }; then
2348   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2349 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2350 # work properly (i.e., refer to `conftest.exe'), while it won't with
2351 # `rm'.
2352 for ac_file in conftest.exe conftest conftest.*; do
2353   test -f "$ac_file" || continue
2354   case $ac_file in
2355     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2356     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2357           export ac_cv_exeext
2358           break;;
2359     * ) break;;
2360   esac
2361 done
2362 else
2363   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2366 See \`config.log' for more details." >&2;}
2367    { (exit 1); exit 1; }; }
2368 fi
2369
2370 rm -f conftest$ac_cv_exeext
2371 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2372 echo "${ECHO_T}$ac_cv_exeext" >&6
2373
2374 rm -f conftest.$ac_ext
2375 EXEEXT=$ac_cv_exeext
2376 ac_exeext=$EXEEXT
2377 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2378 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2379 if test "${ac_cv_objext+set}" = set; then
2380   echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382   cat >conftest.$ac_ext <<_ACEOF
2383 /* confdefs.h.  */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h.  */
2388
2389 int
2390 main ()
2391 {
2392
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 rm -f conftest.o conftest.obj
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399   (eval $ac_compile) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }; then
2403   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2404   case $ac_file in
2405     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2406     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2407        break;;
2408   esac
2409 done
2410 else
2411   echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2417 See \`config.log' for more details." >&2;}
2418    { (exit 1); exit 1; }; }
2419 fi
2420
2421 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2422 fi
2423 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2424 echo "${ECHO_T}$ac_cv_objext" >&6
2425 OBJEXT=$ac_cv_objext
2426 ac_objext=$OBJEXT
2427 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2428 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2429 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2430   echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432   cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h.  */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h.  */
2438
2439 int
2440 main ()
2441 {
2442 #ifndef __GNUC__
2443        choke me
2444 #endif
2445
2446   ;
2447   return 0;
2448 }
2449 _ACEOF
2450 rm -f conftest.$ac_objext
2451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452   (eval $ac_compile) 2>conftest.er1
2453   ac_status=$?
2454   grep -v '^ *+' conftest.er1 >conftest.err
2455   rm -f conftest.er1
2456   cat conftest.err >&5
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); } &&
2459          { ac_try='test -z "$ac_c_werror_flag"
2460                          || test ! -s conftest.err'
2461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462   (eval $ac_try) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }; } &&
2466          { ac_try='test -s conftest.$ac_objext'
2467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468   (eval $ac_try) 2>&5
2469   ac_status=$?
2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471   (exit $ac_status); }; }; then
2472   ac_compiler_gnu=yes
2473 else
2474   echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 ac_compiler_gnu=no
2478 fi
2479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2481
2482 fi
2483 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2484 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2485 GCC=`test $ac_compiler_gnu = yes && echo yes`
2486 ac_test_CFLAGS=${CFLAGS+set}
2487 ac_save_CFLAGS=$CFLAGS
2488 CFLAGS="-g"
2489 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2490 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2491 if test "${ac_cv_prog_cc_g+set}" = set; then
2492   echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494   cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h.  */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h.  */
2500
2501 int
2502 main ()
2503 {
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 rm -f conftest.$ac_objext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511   (eval $ac_compile) 2>conftest.er1
2512   ac_status=$?
2513   grep -v '^ *+' conftest.er1 >conftest.err
2514   rm -f conftest.er1
2515   cat conftest.err >&5
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); } &&
2518          { ac_try='test -z "$ac_c_werror_flag"
2519                          || test ! -s conftest.err'
2520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521   (eval $ac_try) 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }; } &&
2525          { ac_try='test -s conftest.$ac_objext'
2526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527   (eval $ac_try) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; }; then
2531   ac_cv_prog_cc_g=yes
2532 else
2533   echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2535
2536 ac_cv_prog_cc_g=no
2537 fi
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539 fi
2540 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2541 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2542 if test "$ac_test_CFLAGS" = set; then
2543   CFLAGS=$ac_save_CFLAGS
2544 elif test $ac_cv_prog_cc_g = yes; then
2545   if test "$GCC" = yes; then
2546     CFLAGS="-g -O2"
2547   else
2548     CFLAGS="-g"
2549   fi
2550 else
2551   if test "$GCC" = yes; then
2552     CFLAGS="-O2"
2553   else
2554     CFLAGS=
2555   fi
2556 fi
2557 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2558 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2559 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2560   echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562   ac_cv_prog_cc_stdc=no
2563 ac_save_CC=$CC
2564 cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h.  */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h.  */
2570 #include <stdarg.h>
2571 #include <stdio.h>
2572 #include <sys/types.h>
2573 #include <sys/stat.h>
2574 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2575 struct buf { int x; };
2576 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2577 static char *e (p, i)
2578      char **p;
2579      int i;
2580 {
2581   return p[i];
2582 }
2583 static char *f (char * (*g) (char **, int), char **p, ...)
2584 {
2585   char *s;
2586   va_list v;
2587   va_start (v,p);
2588   s = g (p, va_arg (v,int));
2589   va_end (v);
2590   return s;
2591 }
2592
2593 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2594    function prototypes and stuff, but not '\xHH' hex character constants.
2595    These don't provoke an error unfortunately, instead are silently treated
2596    as 'x'.  The following induces an error, until -std1 is added to get
2597    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2598    array size at least.  It's necessary to write '\x00'==0 to get something
2599    that's true only with -std1.  */
2600 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2601
2602 int test (int i, double x);
2603 struct s1 {int (*f) (int a);};
2604 struct s2 {int (*f) (double a);};
2605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2606 int argc;
2607 char **argv;
2608 int
2609 main ()
2610 {
2611 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 # Don't try gcc -ansi; that turns off useful extensions and
2617 # breaks some systems' header files.
2618 # AIX                   -qlanglvl=ansi
2619 # Ultrix and OSF/1      -std1
2620 # HP-UX 10.20 and later -Ae
2621 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2622 # SVR4                  -Xc -D__EXTENSIONS__
2623 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2624 do
2625   CC="$ac_save_CC $ac_arg"
2626   rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628   (eval $ac_compile) 2>conftest.er1
2629   ac_status=$?
2630   grep -v '^ *+' conftest.er1 >conftest.err
2631   rm -f conftest.er1
2632   cat conftest.err >&5
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); } &&
2635          { ac_try='test -z "$ac_c_werror_flag"
2636                          || test ! -s conftest.err'
2637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638   (eval $ac_try) 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; } &&
2642          { ac_try='test -s conftest.$ac_objext'
2643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644   (eval $ac_try) 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); }; }; then
2648   ac_cv_prog_cc_stdc=$ac_arg
2649 break
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 fi
2655 rm -f conftest.err conftest.$ac_objext
2656 done
2657 rm -f conftest.$ac_ext conftest.$ac_objext
2658 CC=$ac_save_CC
2659
2660 fi
2661
2662 case "x$ac_cv_prog_cc_stdc" in
2663   x|xno)
2664     echo "$as_me:$LINENO: result: none needed" >&5
2665 echo "${ECHO_T}none needed" >&6 ;;
2666   *)
2667     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2668 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2669     CC="$CC $ac_cv_prog_cc_stdc" ;;
2670 esac
2671
2672 # Some people use a C++ compiler to compile C.  Since we use `exit',
2673 # in C++ we need to declare it.  In case someone uses the same compiler
2674 # for both compiling C and C++ we need to have the C++ compiler decide
2675 # the declaration of exit, since it's the most demanding environment.
2676 cat >conftest.$ac_ext <<_ACEOF
2677 #ifndef __cplusplus
2678   choke me
2679 #endif
2680 _ACEOF
2681 rm -f conftest.$ac_objext
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683   (eval $ac_compile) 2>conftest.er1
2684   ac_status=$?
2685   grep -v '^ *+' conftest.er1 >conftest.err
2686   rm -f conftest.er1
2687   cat conftest.err >&5
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); } &&
2690          { ac_try='test -z "$ac_c_werror_flag"
2691                          || test ! -s conftest.err'
2692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693   (eval $ac_try) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); }; } &&
2697          { ac_try='test -s conftest.$ac_objext'
2698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699   (eval $ac_try) 2>&5
2700   ac_status=$?
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); }; }; then
2703   for ac_declaration in \
2704    '' \
2705    'extern "C" void std::exit (int) throw (); using std::exit;' \
2706    'extern "C" void std::exit (int); using std::exit;' \
2707    'extern "C" void exit (int) throw ();' \
2708    'extern "C" void exit (int);' \
2709    'void exit (int);'
2710 do
2711   cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717 $ac_declaration
2718 #include <stdlib.h>
2719 int
2720 main ()
2721 {
2722 exit (42);
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729   (eval $ac_compile) 2>conftest.er1
2730   ac_status=$?
2731   grep -v '^ *+' conftest.er1 >conftest.err
2732   rm -f conftest.er1
2733   cat conftest.err >&5
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); } &&
2736          { ac_try='test -z "$ac_c_werror_flag"
2737                          || test ! -s conftest.err'
2738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; } &&
2743          { ac_try='test -s conftest.$ac_objext'
2744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; }; then
2749   :
2750 else
2751   echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 continue
2755 fi
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757   cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763 $ac_declaration
2764 int
2765 main ()
2766 {
2767 exit (42);
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774   (eval $ac_compile) 2>conftest.er1
2775   ac_status=$?
2776   grep -v '^ *+' conftest.er1 >conftest.err
2777   rm -f conftest.er1
2778   cat conftest.err >&5
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -z "$ac_c_werror_flag"
2782                          || test ! -s conftest.err'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; } &&
2788          { ac_try='test -s conftest.$ac_objext'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; }; then
2794   break
2795 else
2796   echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799 fi
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801 done
2802 rm -f conftest*
2803 if test -n "$ac_declaration"; then
2804   echo '#ifdef __cplusplus' >>confdefs.h
2805   echo $ac_declaration      >>confdefs.h
2806   echo '#endif'             >>confdefs.h
2807 fi
2808
2809 else
2810   echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2812
2813 fi
2814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2815 ac_ext=c
2816 ac_cpp='$CPP $CPPFLAGS'
2817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820
2821
2822 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
2823 # but has idiosyncrasies of its own.  We assume icc will define
2824 # __INTEL_COMPILER regardless of CFLAGS.
2825
2826 cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h.  */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h.  */
2832
2833 int
2834 main ()
2835 {
2836 #ifndef __INTEL_COMPILER
2837 choke me
2838 #endif
2839   ;
2840   return 0;
2841 }
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845   (eval $ac_compile) 2>conftest.er1
2846   ac_status=$?
2847   grep -v '^ *+' conftest.er1 >conftest.err
2848   rm -f conftest.er1
2849   cat conftest.err >&5
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); } &&
2852          { ac_try='test -z "$ac_c_werror_flag"
2853                          || test ! -s conftest.err'
2854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; } &&
2859          { ac_try='test -s conftest.$ac_objext'
2860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861   (eval $ac_try) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); }; }; then
2865   ICC=yes
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 ICC=no
2871 fi
2872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2873
2874 unset CFLAGS
2875
2876 #
2877 # Read the template
2878 #
2879 . "$srcdir/src/template/$template" || exit
2880
2881 # CFLAGS are selected so:
2882 # If the user specifies something in the environment, that is used.
2883 # else:  If the template file set something, that is used.
2884 # else:  If the compiler is GCC, then we use -O2.
2885 # else:  If the compiler is something else, then we use -0.
2886
2887 if test "$ac_env_CFLAGS_set" = set; then
2888   CFLAGS=$ac_env_CFLAGS_value
2889 elif test "${CFLAGS+set}" = set; then
2890   : # (keep what template set)
2891 elif test "$GCC" = yes; then
2892   CFLAGS="-O2"
2893 else
2894   # if the user selected debug mode, don't use -O
2895   if test "$enable_debug" != yes; then
2896     CFLAGS="-O"
2897   fi
2898 fi
2899
2900 # Some versions of GCC support some additional useful warning flags.
2901 # Check whether they are supported, and add them to CFLAGS if so.
2902 # ICC pretends to be GCC but it's lying; it doesn't support these options.
2903
2904 if test "$GCC" = yes -a "$ICC" = no; then
2905   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2906   # These work in some but not all gcc versions
2907   echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2908 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2909 pgac_save_CFLAGS=$CFLAGS
2910 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2911 cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h.  */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h.  */
2917
2918 int
2919 main ()
2920 {
2921
2922   ;
2923   return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928   (eval $ac_compile) 2>conftest.er1
2929   ac_status=$?
2930   grep -v '^ *+' conftest.er1 >conftest.err
2931   rm -f conftest.er1
2932   cat conftest.err >&5
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } &&
2935          { ac_try='test -z "$ac_c_werror_flag"
2936                          || test ! -s conftest.err'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; } &&
2942          { ac_try='test -s conftest.$ac_objext'
2943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944   (eval $ac_try) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }; }; then
2948   echo "$as_me:$LINENO: result: yes" >&5
2949 echo "${ECHO_T}yes" >&6
2950 else
2951   echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 CFLAGS="$pgac_save_CFLAGS"
2955                     echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6
2957 fi
2958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2959
2960   echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2961 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2962 pgac_save_CFLAGS=$CFLAGS
2963 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970
2971 int
2972 main ()
2973 {
2974
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981   (eval $ac_compile) 2>conftest.er1
2982   ac_status=$?
2983   grep -v '^ *+' conftest.er1 >conftest.err
2984   rm -f conftest.er1
2985   cat conftest.err >&5
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); } &&
2988          { ac_try='test -z "$ac_c_werror_flag"
2989                          || test ! -s conftest.err'
2990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991   (eval $ac_try) 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }; } &&
2995          { ac_try='test -s conftest.$ac_objext'
2996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997   (eval $ac_try) 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }; }; then
3001   echo "$as_me:$LINENO: result: yes" >&5
3002 echo "${ECHO_T}yes" >&6
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007 CFLAGS="$pgac_save_CFLAGS"
3008                     echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6
3010 fi
3011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3012
3013   # Disable strict-aliasing rules; needed for gcc 3.3+
3014   echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3015 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3016 pgac_save_CFLAGS=$CFLAGS
3017 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h.  */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h.  */
3024
3025 int
3026 main ()
3027 {
3028
3029   ;
3030   return 0;
3031 }
3032 _ACEOF
3033 rm -f conftest.$ac_objext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3035   (eval $ac_compile) 2>conftest.er1
3036   ac_status=$?
3037   grep -v '^ *+' conftest.er1 >conftest.err
3038   rm -f conftest.er1
3039   cat conftest.err >&5
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); } &&
3042          { ac_try='test -z "$ac_c_werror_flag"
3043                          || test ! -s conftest.err'
3044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045   (eval $ac_try) 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; } &&
3049          { ac_try='test -s conftest.$ac_objext'
3050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051   (eval $ac_try) 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; }; then
3055   echo "$as_me:$LINENO: result: yes" >&5
3056 echo "${ECHO_T}yes" >&6
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 CFLAGS="$pgac_save_CFLAGS"
3062                     echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6
3064 fi
3065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3066
3067 elif test "$ICC" = yes; then
3068   # Intel's compiler has a bug/misoptimization in checking for
3069   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
3070   echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3071 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6
3072 pgac_save_CFLAGS=$CFLAGS
3073 CFLAGS="$pgac_save_CFLAGS -mp1"
3074 cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h.  */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h.  */
3080
3081 int
3082 main ()
3083 {
3084
3085   ;
3086   return 0;
3087 }
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091   (eval $ac_compile) 2>conftest.er1
3092   ac_status=$?
3093   grep -v '^ *+' conftest.er1 >conftest.err
3094   rm -f conftest.er1
3095   cat conftest.err >&5
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } &&
3098          { ac_try='test -z "$ac_c_werror_flag"
3099                          || test ! -s conftest.err'
3100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101   (eval $ac_try) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; } &&
3105          { ac_try='test -s conftest.$ac_objext'
3106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107   (eval $ac_try) 2>&5
3108   ac_status=$?
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); }; }; then
3111   echo "$as_me:$LINENO: result: yes" >&5
3112 echo "${ECHO_T}yes" >&6
3113 else
3114   echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117 CFLAGS="$pgac_save_CFLAGS"
3118                     echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3120 fi
3121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3122
3123   # Make sure strict aliasing is off (though this is said to be the default)
3124   echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3125 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3126 pgac_save_CFLAGS=$CFLAGS
3127 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3128 cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h.  */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h.  */
3134
3135 int
3136 main ()
3137 {
3138
3139   ;
3140   return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest.$ac_objext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145   (eval $ac_compile) 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } &&
3152          { ac_try='test -z "$ac_c_werror_flag"
3153                          || test ! -s conftest.err'
3154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155   (eval $ac_try) 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; } &&
3159          { ac_try='test -s conftest.$ac_objext'
3160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161   (eval $ac_try) 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; }; then
3165   echo "$as_me:$LINENO: result: yes" >&5
3166 echo "${ECHO_T}yes" >&6
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 CFLAGS="$pgac_save_CFLAGS"
3172                     echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3174 fi
3175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3176
3177 elif test x"${CC}" = x"xlc"; then
3178   # AIX xlc has to have strict aliasing turned off too
3179   echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3180 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6
3181 pgac_save_CFLAGS=$CFLAGS
3182 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h.  */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h.  */
3189
3190 int
3191 main ()
3192 {
3193
3194   ;
3195   return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200   (eval $ac_compile) 2>conftest.er1
3201   ac_status=$?
3202   grep -v '^ *+' conftest.er1 >conftest.err
3203   rm -f conftest.er1
3204   cat conftest.err >&5
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); } &&
3207          { ac_try='test -z "$ac_c_werror_flag"
3208                          || test ! -s conftest.err'
3209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210   (eval $ac_try) 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); }; } &&
3214          { ac_try='test -s conftest.$ac_objext'
3215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216   (eval $ac_try) 2>&5
3217   ac_status=$?
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); }; }; then
3220   echo "$as_me:$LINENO: result: yes" >&5
3221 echo "${ECHO_T}yes" >&6
3222 else
3223   echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3225
3226 CFLAGS="$pgac_save_CFLAGS"
3227                     echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3229 fi
3230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3231
3232 fi
3233
3234 # supply -g if --enable-debug
3235 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3236   CFLAGS="$CFLAGS -g"
3237 fi
3238
3239 # enable profiling if --enable-profiling
3240 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3241   if test "$GCC" = yes; then
3242
3243 cat >>confdefs.h <<\_ACEOF
3244 #define PROFILE_PID_DIR 1
3245 _ACEOF
3246
3247     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
3248   else
3249     { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3250 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3251    { (exit 1); exit 1; }; }
3252   fi
3253 fi
3254
3255 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3256 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3257
3258 # We already have this in Makefile.win32, but configure needs it too
3259 if test "$PORTNAME" = "win32"; then
3260   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3261 fi
3262
3263 # Check if the compiler still works with the template settings
3264 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3265 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
3266 cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272
3273 int
3274 main ()
3275 {
3276 return 0;
3277   ;
3278   return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext conftest$ac_exeext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3283   (eval $ac_link) 2>conftest.er1
3284   ac_status=$?
3285   grep -v '^ *+' conftest.er1 >conftest.err
3286   rm -f conftest.er1
3287   cat conftest.err >&5
3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289   (exit $ac_status); } &&
3290          { ac_try='test -z "$ac_c_werror_flag"
3291                          || test ! -s conftest.err'
3292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293   (eval $ac_try) 2>&5
3294   ac_status=$?
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); }; } &&
3297          { ac_try='test -s conftest$ac_exeext'
3298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299   (eval $ac_try) 2>&5
3300   ac_status=$?
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); }; }; then
3303   echo "$as_me:$LINENO: result: yes" >&5
3304 echo "${ECHO_T}yes" >&6
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3311    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3312 echo "$as_me: error: cannot proceed" >&2;}
3313    { (exit 1); exit 1; }; }
3314 fi
3315 rm -f conftest.err conftest.$ac_objext \
3316       conftest$ac_exeext conftest.$ac_ext
3317
3318 # Defend against gcc -ffast-math
3319 if test "$GCC" = yes; then
3320 cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h.  */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h.  */
3326
3327 int
3328 main ()
3329 {
3330 #ifdef __FAST_MATH__
3331 choke me
3332 #endif
3333   ;
3334   return 0;
3335 }
3336 _ACEOF
3337 rm -f conftest.$ac_objext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3339   (eval $ac_compile) 2>conftest.er1
3340   ac_status=$?
3341   grep -v '^ *+' conftest.er1 >conftest.err
3342   rm -f conftest.er1
3343   cat conftest.err >&5
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } &&
3346          { ac_try='test -z "$ac_c_werror_flag"
3347                          || test ! -s conftest.err'
3348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349   (eval $ac_try) 2>&5
3350   ac_status=$?
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); }; } &&
3353          { ac_try='test -s conftest.$ac_objext'
3354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355   (eval $ac_try) 2>&5
3356   ac_status=$?
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); }; }; then
3359   :
3360 else
3361   echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3365 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3366    { (exit 1); exit 1; }; }
3367 fi
3368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3369 fi
3370
3371 ac_ext=c
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3377 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3378 # On Suns, sometimes $CPP names a directory.
3379 if test -n "$CPP" && test -d "$CPP"; then
3380   CPP=
3381 fi
3382 if test -z "$CPP"; then
3383   if test "${ac_cv_prog_CPP+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386       # Double quotes because CPP needs to be expanded
3387     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3388     do
3389       ac_preproc_ok=false
3390 for ac_c_preproc_warn_flag in '' yes
3391 do
3392   # Use a header file that comes with gcc, so configuring glibc
3393   # with a fresh cross-compiler works.
3394   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395   # <limits.h> exists even on freestanding compilers.
3396   # On the NeXT, cc -E runs the code through the compiler's parser,
3397   # not just through cpp. "Syntax error" is here to catch this case.
3398   cat >conftest.$ac_ext <<_ACEOF
3399 /* confdefs.h.  */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h.  */
3404 #ifdef __STDC__
3405 # include <limits.h>
3406 #else
3407 # include <assert.h>
3408 #endif
3409                      Syntax error
3410 _ACEOF
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } >/dev/null; then
3419   if test -s conftest.err; then
3420     ac_cpp_err=$ac_c_preproc_warn_flag
3421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422   else
3423     ac_cpp_err=
3424   fi
3425 else
3426   ac_cpp_err=yes
3427 fi
3428 if test -z "$ac_cpp_err"; then
3429   :
3430 else
3431   echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434   # Broken: fails on valid input.
3435 continue
3436 fi
3437 rm -f conftest.err conftest.$ac_ext
3438
3439   # OK, works on sane cases.  Now check whether non-existent headers
3440   # can be detected and how.
3441   cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 #include <ac_nonexistent.h>
3448 _ACEOF
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3451   ac_status=$?
3452   grep -v '^ *+' conftest.er1 >conftest.err
3453   rm -f conftest.er1
3454   cat conftest.err >&5
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } >/dev/null; then
3457   if test -s conftest.err; then
3458     ac_cpp_err=$ac_c_preproc_warn_flag
3459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460   else
3461     ac_cpp_err=
3462   fi
3463 else
3464   ac_cpp_err=yes
3465 fi
3466 if test -z "$ac_cpp_err"; then
3467   # Broken: success on invalid input.
3468 continue
3469 else
3470   echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473   # Passes both tests.
3474 ac_preproc_ok=:
3475 break
3476 fi
3477 rm -f conftest.err conftest.$ac_ext
3478
3479 done
3480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3481 rm -f conftest.err conftest.$ac_ext
3482 if $ac_preproc_ok; then
3483   break
3484 fi
3485
3486     done
3487     ac_cv_prog_CPP=$CPP
3488
3489 fi
3490   CPP=$ac_cv_prog_CPP
3491 else
3492   ac_cv_prog_CPP=$CPP
3493 fi
3494 echo "$as_me:$LINENO: result: $CPP" >&5
3495 echo "${ECHO_T}$CPP" >&6
3496 ac_preproc_ok=false
3497 for ac_c_preproc_warn_flag in '' yes
3498 do
3499   # Use a header file that comes with gcc, so configuring glibc
3500   # with a fresh cross-compiler works.
3501   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502   # <limits.h> exists even on freestanding compilers.
3503   # On the NeXT, cc -E runs the code through the compiler's parser,
3504   # not just through cpp. "Syntax error" is here to catch this case.
3505   cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511 #ifdef __STDC__
3512 # include <limits.h>
3513 #else
3514 # include <assert.h>
3515 #endif
3516                      Syntax error
3517 _ACEOF
3518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } >/dev/null; then
3526   if test -s conftest.err; then
3527     ac_cpp_err=$ac_c_preproc_warn_flag
3528     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3529   else
3530     ac_cpp_err=
3531   fi
3532 else
3533   ac_cpp_err=yes
3534 fi
3535 if test -z "$ac_cpp_err"; then
3536   :
3537 else
3538   echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3540
3541   # Broken: fails on valid input.
3542 continue
3543 fi
3544 rm -f conftest.err conftest.$ac_ext
3545
3546   # OK, works on sane cases.  Now check whether non-existent headers
3547   # can be detected and how.
3548   cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h.  */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h.  */
3554 #include <ac_nonexistent.h>
3555 _ACEOF
3556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } >/dev/null; then
3564   if test -s conftest.err; then
3565     ac_cpp_err=$ac_c_preproc_warn_flag
3566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567   else
3568     ac_cpp_err=
3569   fi
3570 else
3571   ac_cpp_err=yes
3572 fi
3573 if test -z "$ac_cpp_err"; then
3574   # Broken: success on invalid input.
3575 continue
3576 else
3577   echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580   # Passes both tests.
3581 ac_preproc_ok=:
3582 break
3583 fi
3584 rm -f conftest.err conftest.$ac_ext
3585
3586 done
3587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3588 rm -f conftest.err conftest.$ac_ext
3589 if $ac_preproc_ok; then
3590   :
3591 else
3592   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3593 See \`config.log' for more details." >&5
3594 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3595 See \`config.log' for more details." >&2;}
3596    { (exit 1); exit 1; }; }
3597 fi
3598
3599 ac_ext=c
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604
3605
3606
3607 # Create compiler version string
3608 if test x"$GCC" = x"yes" ; then
3609   cc_string="GCC `${CC} --version | sed q`"
3610 else
3611   cc_string=$CC
3612 fi
3613
3614 cat >>confdefs.h <<_ACEOF
3615 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3616 _ACEOF
3617
3618
3619
3620 #
3621 # Set up TAS assembly code if needed; the template file has now had its
3622 # chance to request this.
3623 #
3624           ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3625
3626
3627 if test "$need_tas" = yes ; then
3628   TAS=tas.o
3629 else
3630   TAS=""
3631 fi
3632
3633
3634
3635 #
3636 # Automatic dependency tracking
3637 #
3638
3639 pgac_args="$pgac_args enable_depend"
3640
3641 # Check whether --enable-depend or --disable-depend was given.
3642 if test "${enable_depend+set}" = set; then
3643   enableval="$enable_depend"
3644
3645   case $enableval in
3646     yes)
3647       autodepend=yes
3648       ;;
3649     no)
3650       :
3651       ;;
3652     *)
3653       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3654 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3655    { (exit 1); exit 1; }; }
3656       ;;
3657   esac
3658
3659 else
3660   enable_depend=no
3661
3662 fi;
3663
3664
3665
3666
3667 #
3668 # Enable assert checks
3669 #
3670
3671 pgac_args="$pgac_args enable_cassert"
3672
3673 # Check whether --enable-cassert or --disable-cassert was given.
3674 if test "${enable_cassert+set}" = set; then
3675   enableval="$enable_cassert"
3676
3677   case $enableval in
3678     yes)
3679
3680 cat >>confdefs.h <<\_ACEOF
3681 #define USE_ASSERT_CHECKING 1
3682 _ACEOF
3683
3684       ;;
3685     no)
3686       :
3687       ;;
3688     *)
3689       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3690 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3691    { (exit 1); exit 1; }; }
3692       ;;
3693   esac
3694
3695 else
3696   enable_cassert=no
3697
3698 fi;
3699
3700
3701
3702 #
3703 # Include directories
3704 #
3705 ac_save_IFS=$IFS
3706 IFS="${IFS}${PATH_SEPARATOR}"
3707 # SRCH_INC comes from the template file
3708 for dir in $with_includes $SRCH_INC; do
3709   if test -d "$dir"; then
3710     INCLUDES="$INCLUDES -I$dir"
3711   else
3712     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3713 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3714   fi
3715 done
3716 IFS=$ac_save_IFS
3717
3718
3719
3720 #
3721 # Library directories
3722 #
3723 ac_save_IFS=$IFS
3724 IFS="${IFS}${PATH_SEPARATOR}"
3725 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3726 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3727   if test -d "$dir"; then
3728     LIBDIRS="$LIBDIRS -L$dir"
3729   else
3730     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3731 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3732   fi
3733 done
3734 IFS=$ac_save_IFS
3735
3736 #
3737 # Enable thread-safe client libraries
3738 #
3739 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3740 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3741 if test "$PORTNAME" != "win32"; then
3742
3743 pgac_args="$pgac_args enable_thread_safety"
3744
3745 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3746 if test "${enable_thread_safety+set}" = set; then
3747   enableval="$enable_thread_safety"
3748
3749   case $enableval in
3750     yes)
3751       :
3752       ;;
3753     no)
3754       :
3755       ;;
3756     *)
3757       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3758 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3759    { (exit 1); exit 1; }; }
3760       ;;
3761   esac
3762
3763 else
3764   enable_thread_safety=no
3765
3766 fi;
3767
3768 else
3769 # Win32 should always use threads
3770
3771 pgac_args="$pgac_args enable_thread_safety"
3772
3773 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3774 if test "${enable_thread_safety+set}" = set; then
3775   enableval="$enable_thread_safety"
3776
3777   case $enableval in
3778     yes)
3779       :
3780       ;;
3781     no)
3782       :
3783       ;;
3784     *)
3785       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3786 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3787    { (exit 1); exit 1; }; }
3788       ;;
3789   esac
3790
3791 else
3792   enable_thread_safety=yes
3793
3794 fi;
3795
3796 fi
3797
3798
3799 pgac_args="$pgac_args enable_thread_safety_force"
3800
3801 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3802 if test "${enable_thread_safety_force+set}" = set; then
3803   enableval="$enable_thread_safety_force"
3804
3805   case $enableval in
3806     yes)
3807       :
3808       ;;
3809     no)
3810       :
3811       ;;
3812     *)
3813       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3814 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3815    { (exit 1); exit 1; }; }
3816       ;;
3817   esac
3818
3819 else
3820   enable_thread_safety_force=no
3821
3822 fi;
3823
3824 if test "$enable_thread_safety" = yes -o \
3825         "$enable_thread_safety_force" = yes; then
3826   enable_thread_safety="yes"    # for 'force'
3827
3828 cat >>confdefs.h <<\_ACEOF
3829 #define ENABLE_THREAD_SAFETY 1
3830 _ACEOF
3831
3832 fi
3833 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3834 echo "${ECHO_T}$enable_thread_safety" >&6
3835
3836
3837 #
3838 # Optionally build Tcl modules (PL/Tcl)
3839 #
3840 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3841 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3842
3843 pgac_args="$pgac_args with_tcl"
3844
3845
3846 # Check whether --with-tcl or --without-tcl was given.
3847 if test "${with_tcl+set}" = set; then
3848   withval="$with_tcl"
3849
3850   case $withval in
3851     yes)
3852       :
3853       ;;
3854     no)
3855       :
3856       ;;
3857     *)
3858       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3859 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3860    { (exit 1); exit 1; }; }
3861       ;;
3862   esac
3863
3864 else
3865   with_tcl=no
3866
3867 fi;
3868
3869 echo "$as_me:$LINENO: result: $with_tcl" >&5
3870 echo "${ECHO_T}$with_tcl" >&6
3871
3872
3873 # We see if the path to the Tcl/Tk configuration scripts is specified.
3874 # This will override the use of tclsh to find the paths to search.
3875
3876
3877 pgac_args="$pgac_args with_tclconfig"
3878
3879
3880 # Check whether --with-tclconfig or --without-tclconfig was given.
3881 if test "${with_tclconfig+set}" = set; then
3882   withval="$with_tclconfig"
3883
3884   case $withval in
3885     yes)
3886       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3887 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3888    { (exit 1); exit 1; }; }
3889       ;;
3890     no)
3891       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3892 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3893    { (exit 1); exit 1; }; }
3894       ;;
3895     *)
3896
3897       ;;
3898   esac
3899
3900 fi;
3901
3902
3903 #
3904 # Optionally build Perl modules (PL/Perl)
3905 #
3906 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3907 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3908
3909 pgac_args="$pgac_args with_perl"
3910
3911
3912 # Check whether --with-perl or --without-perl was given.
3913 if test "${with_perl+set}" = set; then
3914   withval="$with_perl"
3915
3916   case $withval in
3917     yes)
3918       :
3919       ;;
3920     no)
3921       :
3922       ;;
3923     *)
3924       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3925 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3926    { (exit 1); exit 1; }; }
3927       ;;
3928   esac
3929
3930 else
3931   with_perl=no
3932
3933 fi;
3934
3935 echo "$as_me:$LINENO: result: $with_perl" >&5
3936 echo "${ECHO_T}$with_perl" >&6
3937
3938
3939 #
3940 # Optionally build Python modules (PL/Python)
3941 #
3942 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3943 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3944
3945 pgac_args="$pgac_args with_python"
3946
3947
3948 # Check whether --with-python or --without-python was given.
3949 if test "${with_python+set}" = set; then
3950   withval="$with_python"
3951
3952   case $withval in
3953     yes)
3954       :
3955       ;;
3956     no)
3957       :
3958       ;;
3959     *)
3960       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3961 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3962    { (exit 1); exit 1; }; }
3963       ;;
3964   esac
3965
3966 else
3967   with_python=no
3968
3969 fi;
3970
3971 echo "$as_me:$LINENO: result: $with_python" >&5
3972 echo "${ECHO_T}$with_python" >&6
3973
3974
3975 #
3976 # GSSAPI
3977 #
3978 echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
3979 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6
3980
3981 pgac_args="$pgac_args with_gssapi"
3982
3983
3984 # Check whether --with-gssapi or --without-gssapi was given.
3985 if test "${with_gssapi+set}" = set; then
3986   withval="$with_gssapi"
3987
3988   case $withval in
3989     yes)
3990
3991
3992 cat >>confdefs.h <<\_ACEOF
3993 #define ENABLE_GSS 1
3994 _ACEOF
3995
3996   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3997
3998       ;;
3999     no)
4000       :
4001       ;;
4002     *)
4003       { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4004 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4005    { (exit 1); exit 1; }; }
4006       ;;
4007   esac
4008
4009 else
4010   with_gssapi=no
4011
4012 fi;
4013
4014 echo "$as_me:$LINENO: result: $with_gssapi" >&5
4015 echo "${ECHO_T}$with_gssapi" >&6
4016
4017
4018 #
4019 # Kerberos 5
4020 #
4021 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4022 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
4023
4024 pgac_args="$pgac_args with_krb5"
4025
4026
4027 # Check whether --with-krb5 or --without-krb5 was given.
4028 if test "${with_krb5+set}" = set; then
4029   withval="$with_krb5"
4030
4031   case $withval in
4032     yes)
4033
4034
4035 cat >>confdefs.h <<\_ACEOF
4036 #define KRB5 1
4037 _ACEOF
4038
4039   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4040
4041       ;;
4042     no)
4043       :
4044       ;;
4045     *)
4046       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4047 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4048    { (exit 1); exit 1; }; }
4049       ;;
4050   esac
4051
4052 else
4053   with_krb5=no
4054
4055 fi;
4056
4057 echo "$as_me:$LINENO: result: $with_krb5" >&5
4058 echo "${ECHO_T}$with_krb5" >&6
4059
4060
4061
4062
4063
4064
4065 #
4066 # Kerberos configuration parameters
4067 #
4068
4069 pgac_args="$pgac_args with_krb_srvnam"
4070
4071
4072 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
4073 if test "${with_krb_srvnam+set}" = set; then
4074   withval="$with_krb_srvnam"
4075
4076   case $withval in
4077     yes)
4078       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4079 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4080    { (exit 1); exit 1; }; }
4081       ;;
4082     no)
4083       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4084 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4085    { (exit 1); exit 1; }; }
4086       ;;
4087     *)
4088
4089       ;;
4090   esac
4091
4092 else
4093   with_krb_srvnam="postgres"
4094 fi;
4095
4096
4097 cat >>confdefs.h <<_ACEOF
4098 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4099 _ACEOF
4100
4101
4102
4103 #
4104 # PAM
4105 #
4106 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4107 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
4108
4109 pgac_args="$pgac_args with_pam"
4110
4111
4112 # Check whether --with-pam or --without-pam was given.
4113 if test "${with_pam+set}" = set; then
4114   withval="$with_pam"
4115
4116   case $withval in
4117     yes)
4118
4119 cat >>confdefs.h <<\_ACEOF
4120 #define USE_PAM 1
4121 _ACEOF
4122
4123       ;;
4124     no)
4125       :
4126       ;;
4127     *)
4128       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4129 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4130    { (exit 1); exit 1; }; }
4131       ;;
4132   esac
4133
4134 else
4135   with_pam=no
4136
4137 fi;
4138
4139 echo "$as_me:$LINENO: result: $with_pam" >&5
4140 echo "${ECHO_T}$with_pam" >&6
4141
4142
4143
4144 #
4145 # LDAP
4146 #
4147 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4148 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
4149
4150 pgac_args="$pgac_args with_ldap"
4151
4152
4153 # Check whether --with-ldap or --without-ldap was given.
4154 if test "${with_ldap+set}" = set; then
4155   withval="$with_ldap"
4156
4157   case $withval in
4158     yes)
4159
4160 cat >>confdefs.h <<\_ACEOF
4161 #define USE_LDAP 1
4162 _ACEOF
4163
4164       ;;
4165     no)
4166       :
4167       ;;
4168     *)
4169       { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4170 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4171    { (exit 1); exit 1; }; }
4172       ;;
4173   esac
4174
4175 else
4176   with_ldap=no
4177
4178 fi;
4179
4180 echo "$as_me:$LINENO: result: $with_ldap" >&5
4181 echo "${ECHO_T}$with_ldap" >&6
4182
4183
4184
4185 #
4186 # Bonjour
4187 #
4188 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4189 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
4190
4191 pgac_args="$pgac_args with_bonjour"
4192
4193
4194 # Check whether --with-bonjour or --without-bonjour was given.
4195 if test "${with_bonjour+set}" = set; then
4196   withval="$with_bonjour"
4197
4198   case $withval in
4199     yes)
4200
4201 cat >>confdefs.h <<\_ACEOF
4202 #define USE_BONJOUR 1
4203 _ACEOF
4204
4205       ;;
4206     no)
4207       :
4208       ;;
4209     *)
4210       { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4211 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4212    { (exit 1); exit 1; }; }
4213       ;;
4214   esac
4215
4216 else
4217   with_bonjour=no
4218
4219 fi;
4220
4221 echo "$as_me:$LINENO: result: $with_bonjour" >&5
4222 echo "${ECHO_T}$with_bonjour" >&6
4223
4224
4225
4226 #
4227 # OpenSSL
4228 #
4229 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4230 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
4231
4232 pgac_args="$pgac_args with_openssl"
4233
4234
4235 # Check whether --with-openssl or --without-openssl was given.
4236 if test "${with_openssl+set}" = set; then
4237   withval="$with_openssl"
4238
4239   case $withval in
4240     yes)
4241
4242 cat >>confdefs.h <<\_ACEOF
4243 #define USE_SSL 1
4244 _ACEOF
4245
4246       ;;
4247     no)
4248       :
4249       ;;
4250     *)
4251       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4252 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4253    { (exit 1); exit 1; }; }
4254       ;;
4255   esac
4256
4257 else
4258   with_openssl=no
4259
4260 fi;
4261
4262 echo "$as_me:$LINENO: result: $with_openssl" >&5
4263 echo "${ECHO_T}$with_openssl" >&6
4264
4265
4266
4267 #
4268 # Readline
4269 #
4270
4271 pgac_args="$pgac_args with_readline"
4272
4273
4274 # Check whether --with-readline or --without-readline was given.
4275 if test "${with_readline+set}" = set; then
4276   withval="$with_readline"
4277
4278   case $withval in
4279     yes)
4280       :
4281       ;;
4282     no)
4283       :
4284       ;;
4285     *)
4286       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4287 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4288    { (exit 1); exit 1; }; }
4289       ;;
4290   esac
4291
4292 else
4293   with_readline=yes
4294
4295 fi;
4296
4297 # readline on MinGW has problems with backslashes in psql and other bugs.
4298 # This is particularly a problem with non-US code pages.
4299 # Therefore disable its use until we understand the cause. 2004-07-20
4300 if test "$PORTNAME" = "win32"; then
4301   if test "$with_readline" = yes; then
4302     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4303 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4304     with_readline=no
4305   fi
4306 fi
4307
4308
4309 #
4310 # Prefer libedit
4311 #
4312
4313 pgac_args="$pgac_args with_libedit_preferred"
4314
4315
4316 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
4317 if test "${with_libedit_preferred+set}" = set; then
4318   withval="$with_libedit_preferred"
4319
4320   case $withval in
4321     yes)
4322       :
4323       ;;
4324     no)
4325       :
4326       ;;
4327     *)
4328       { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4329 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4330    { (exit 1); exit 1; }; }
4331       ;;
4332   esac
4333
4334 else
4335   with_libedit_preferred=no
4336
4337 fi;
4338
4339
4340
4341 #
4342 # OSSP UUID library
4343 #
4344
4345 pgac_args="$pgac_args with_ossp_uuid"
4346
4347
4348 # Check whether --with-ossp-uuid or --without-ossp-uuid was given.
4349 if test "${with_ossp_uuid+set}" = set; then
4350   withval="$with_ossp_uuid"
4351
4352   case $withval in
4353     yes)
4354       :
4355       ;;
4356     no)
4357       :
4358       ;;
4359     *)
4360       { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
4361 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
4362    { (exit 1); exit 1; }; }
4363       ;;
4364   esac
4365
4366 else
4367   with_ossp_uuid=no
4368
4369 fi;
4370
4371
4372
4373
4374 #
4375 # XML
4376 #
4377
4378 pgac_args="$pgac_args with_libxml"
4379
4380
4381 # Check whether --with-libxml or --without-libxml was given.
4382 if test "${with_libxml+set}" = set; then
4383   withval="$with_libxml"
4384
4385   case $withval in
4386     yes)
4387
4388 cat >>confdefs.h <<\_ACEOF
4389 #define USE_LIBXML 1
4390 _ACEOF
4391
4392       ;;
4393     no)
4394       :
4395       ;;
4396     *)
4397       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
4398 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
4399    { (exit 1); exit 1; }; }
4400       ;;
4401   esac
4402
4403 else
4404   with_libxml=no
4405
4406 fi;
4407
4408
4409 if test "$with_libxml" = yes ; then
4410   for ac_prog in xml2-config
4411 do
4412   # Extract the first word of "$ac_prog", so it can be a program name with args.
4413 set dummy $ac_prog; ac_word=$2
4414 echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4416 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   if test -n "$XML2_CONFIG"; then
4420   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425   IFS=$as_save_IFS
4426   test -z "$as_dir" && as_dir=.
4427   for ac_exec_ext in '' $ac_executable_extensions; do
4428   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4429     ac_cv_prog_XML2_CONFIG="$ac_prog"
4430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431     break 2
4432   fi
4433 done
4434 done
4435
4436 fi
4437 fi
4438 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
4439 if test -n "$XML2_CONFIG"; then
4440   echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
4441 echo "${ECHO_T}$XML2_CONFIG" >&6
4442 else
4443   echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6
4445 fi
4446
4447   test -n "$XML2_CONFIG" && break
4448 done
4449
4450   if test -n "$XML2_CONFIG"; then
4451     for pgac_option in `$XML2_CONFIG --cflags`; do
4452       case $pgac_option in
4453         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
4454       esac
4455     done
4456     for pgac_option in `$XML2_CONFIG --libs`; do
4457       case $pgac_option in
4458         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
4459       esac
4460     done
4461   fi
4462 fi
4463
4464
4465
4466 #
4467 # XSLT
4468 #
4469
4470 pgac_args="$pgac_args with_libxslt"
4471
4472
4473 # Check whether --with-libxslt or --without-libxslt was given.
4474 if test "${with_libxslt+set}" = set; then
4475   withval="$with_libxslt"
4476
4477   case $withval in
4478     yes)
4479
4480 cat >>confdefs.h <<\_ACEOF
4481 #define USE_LIBXSLT 1
4482 _ACEOF
4483
4484       ;;
4485     no)
4486       :
4487       ;;
4488     *)
4489       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
4490 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
4491    { (exit 1); exit 1; }; }
4492       ;;
4493   esac
4494
4495 else
4496   with_libxslt=no
4497
4498 fi;
4499
4500
4501
4502
4503
4504 #
4505 # tzdata
4506 #
4507
4508 pgac_args="$pgac_args with_system_tzdata"
4509
4510
4511 # Check whether --with-system-tzdata or --without-system-tzdata was given.
4512 if test "${with_system_tzdata+set}" = set; then
4513   withval="$with_system_tzdata"
4514
4515   case $withval in
4516     yes)
4517       { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
4518 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
4519    { (exit 1); exit 1; }; }
4520       ;;
4521     no)
4522       { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
4523 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
4524    { (exit 1); exit 1; }; }
4525       ;;
4526     *)
4527
4528       ;;
4529   esac
4530
4531 fi;
4532
4533
4534
4535 #
4536 # Zlib
4537 #
4538
4539 pgac_args="$pgac_args with_zlib"
4540
4541
4542 # Check whether --with-zlib or --without-zlib was given.
4543 if test "${with_zlib+set}" = set; then
4544   withval="$with_zlib"
4545
4546   case $withval in
4547     yes)
4548       :
4549       ;;
4550     no)
4551       :
4552       ;;
4553     *)
4554       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
4555 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
4556    { (exit 1); exit 1; }; }
4557       ;;
4558   esac
4559
4560 else
4561   with_zlib=yes
4562
4563 fi;
4564
4565
4566
4567 #
4568 # Elf
4569 #
4570
4571 # Assume system is ELF if it predefines __ELF__ as 1,
4572 # otherwise believe host_os based default.
4573 case $host_os in
4574     freebsd1*|freebsd2*) elf=no;;
4575     freebsd3*|freebsd4*) elf=yes;;
4576 esac
4577
4578
4579 echo "$as_me:$LINENO: checking for egrep" >&5
4580 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4581 if test "${ac_cv_prog_egrep+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4585     then ac_cv_prog_egrep='grep -E'
4586     else ac_cv_prog_egrep='egrep'
4587     fi
4588 fi
4589 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4590 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4591  EGREP=$ac_cv_prog_egrep
4592
4593
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h.  */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h.  */
4600 #if __ELF__
4601   yes
4602 #endif
4603
4604 _ACEOF
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606   $EGREP "yes" >/dev/null 2>&1; then
4607   ELF_SYS=true
4608 else
4609   if test "X$elf" = "Xyes" ; then
4610   ELF_SYS=true
4611 else
4612   ELF_SYS=
4613 fi
4614 fi
4615 rm -f conftest*
4616
4617
4618
4619 #
4620 # Assignments
4621 #
4622
4623 CPPFLAGS="$CPPFLAGS $INCLUDES"
4624 LDFLAGS="$LDFLAGS $LIBDIRS"
4625
4626 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4627 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4628 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4629 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4630
4631
4632
4633
4634 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4635 if test "${with_gnu_ld+set}" = set; then
4636   withval="$with_gnu_ld"
4637   test "$withval" = no || with_gnu_ld=yes
4638 else
4639   with_gnu_ld=no
4640 fi;
4641 ac_prog=ld
4642 if test "$GCC" = yes; then
4643   # Check if gcc -print-prog-name=ld gives a path.
4644   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4645 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4646   case $host in
4647   *-*-mingw*)
4648     # gcc leaves a trailing carriage return which upsets mingw
4649     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4650   *)
4651     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4652   esac
4653   case "$ac_prog" in
4654     # Accept absolute paths.
4655     [\\/]* | [A-Za-z]:[\\/]*)
4656       re_direlt='/[^/][^/]*/\.\./'
4657       # Canonicalize the path of ld
4658       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4659       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4660         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4661       done
4662       test -z "$LD" && LD="$ac_prog"
4663       ;;
4664   "")
4665     # If it fails, then pretend we aren't using GCC.
4666     ac_prog=ld
4667     ;;
4668   *)
4669     # If it is relative, then search for the first ld in PATH.
4670     with_gnu_ld=unknown
4671     ;;
4672   esac
4673 elif test "$with_gnu_ld" = yes; then
4674   echo "$as_me:$LINENO: checking for GNU ld" >&5
4675 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4676 else
4677   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4678 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4679 fi
4680 if test "${ac_cv_path_LD+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   if test -z "$LD"; then
4684   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4685   for ac_dir in $PATH; do
4686     test -z "$ac_dir" && ac_dir=.
4687     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4688       ac_cv_path_LD="$ac_dir/$ac_prog"
4689       # Check to see if the program is GNU ld.  I'd rather use --version,
4690       # but apparently some GNU ld's only accept -v.
4691       # Break only if it was the GNU/non-GNU ld that we prefer.
4692       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4693         test "$with_gnu_ld" != no && break
4694       else
4695         test "$with_gnu_ld" != yes && break
4696       fi
4697     fi
4698   done
4699   IFS="$ac_save_ifs"
4700 else
4701   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4702 fi
4703 fi
4704
4705 LD="$ac_cv_path_LD"
4706 if test -n "$LD"; then
4707   echo "$as_me:$LINENO: result: $LD" >&5
4708 echo "${ECHO_T}$LD" >&6
4709 else
4710   echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6
4712 fi
4713 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4714 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4715    { (exit 1); exit 1; }; }
4716 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4717 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4718 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4722 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4723   ac_cv_prog_gnu_ld=yes
4724 else
4725   ac_cv_prog_gnu_ld=no
4726 fi
4727 fi
4728 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4729 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4730 with_gnu_ld=$ac_cv_prog_gnu_ld
4731
4732
4733
4734
4735 case $host_os in sysv5*)
4736   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4737 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4738 if test "${pgac_cv_prog_ld_R+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741
4742     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
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
4754   ;
4755   return 0;
4756 }
4757 _ACEOF
4758 rm -f conftest.$ac_objext conftest$ac_exeext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760   (eval $ac_link) 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_exeext'
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   pgac_cv_prog_ld_R=yes
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785 pgac_cv_prog_ld_R=no
4786 fi
4787 rm -f conftest.err conftest.$ac_objext \
4788       conftest$ac_exeext conftest.$ac_ext
4789     LDFLAGS=$pgac_save_LDFLAGS
4790
4791 fi
4792 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4793 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4794   ld_R_works=$pgac_cv_prog_ld_R
4795
4796 esac
4797 if test -n "$ac_tool_prefix"; then
4798   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4799 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4800 echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4802 if test "${ac_cv_prog_RANLIB+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   if test -n "$RANLIB"; then
4806   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811   IFS=$as_save_IFS
4812   test -z "$as_dir" && as_dir=.
4813   for ac_exec_ext in '' $ac_executable_extensions; do
4814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817     break 2
4818   fi
4819 done
4820 done
4821
4822 fi
4823 fi
4824 RANLIB=$ac_cv_prog_RANLIB
4825 if test -n "$RANLIB"; then
4826   echo "$as_me:$LINENO: result: $RANLIB" >&5
4827 echo "${ECHO_T}$RANLIB" >&6
4828 else
4829   echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6
4831 fi
4832
4833 fi
4834 if test -z "$ac_cv_prog_RANLIB"; then
4835   ac_ct_RANLIB=$RANLIB
4836   # Extract the first word of "ranlib", so it can be a program name with args.
4837 set dummy ranlib; ac_word=$2
4838 echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4841   echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843   if test -n "$ac_ct_RANLIB"; then
4844   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4848 do
4849   IFS=$as_save_IFS
4850   test -z "$as_dir" && as_dir=.
4851   for ac_exec_ext in '' $ac_executable_extensions; do
4852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853     ac_cv_prog_ac_ct_RANLIB="ranlib"
4854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855     break 2
4856   fi
4857 done
4858 done
4859
4860   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4861 fi
4862 fi
4863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4864 if test -n "$ac_ct_RANLIB"; then
4865   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4866 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4867 else
4868   echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4870 fi
4871
4872   RANLIB=$ac_ct_RANLIB
4873 else
4874   RANLIB="$ac_cv_prog_RANLIB"
4875 fi
4876
4877
4878   if test -n "$ac_tool_prefix"; then
4879   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4880 set dummy ${ac_tool_prefix}strip; ac_word=$2
4881 echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4883 if test "${ac_cv_prog_STRIP+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   if test -n "$STRIP"; then
4887   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4891 do
4892   IFS=$as_save_IFS
4893   test -z "$as_dir" && as_dir=.
4894   for ac_exec_ext in '' $ac_executable_extensions; do
4895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898     break 2
4899   fi
4900 done
4901 done
4902
4903 fi
4904 fi
4905 STRIP=$ac_cv_prog_STRIP
4906 if test -n "$STRIP"; then
4907   echo "$as_me:$LINENO: result: $STRIP" >&5
4908 echo "${ECHO_T}$STRIP" >&6
4909 else
4910   echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6
4912 fi
4913
4914 fi
4915 if test -z "$ac_cv_prog_STRIP"; then
4916   ac_ct_STRIP=$STRIP
4917   # Extract the first word of "strip", so it can be a program name with args.
4918 set dummy strip; ac_word=$2
4919 echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4921 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924   if test -n "$ac_ct_STRIP"; then
4925   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930   IFS=$as_save_IFS
4931   test -z "$as_dir" && as_dir=.
4932   for ac_exec_ext in '' $ac_executable_extensions; do
4933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934     ac_cv_prog_ac_ct_STRIP="strip"
4935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936     break 2
4937   fi
4938 done
4939 done
4940
4941   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4942 fi
4943 fi
4944 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4945 if test -n "$ac_ct_STRIP"; then
4946   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4947 echo "${ECHO_T}$ac_ct_STRIP" >&6
4948 else
4949   echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6
4951 fi
4952
4953   STRIP=$ac_ct_STRIP
4954 else
4955   STRIP="$ac_cv_prog_STRIP"
4956 fi
4957
4958
4959   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4960 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4961   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4962     STRIP_STATIC_LIB="$STRIP -x"
4963     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4964     echo "$as_me:$LINENO: result: yes" >&5
4965 echo "${ECHO_T}yes" >&6
4966   else
4967     STRIP_STATIC_LIB=:
4968     STRIP_SHARED_LIB=:
4969     echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6
4971   fi
4972
4973
4974
4975
4976 # Extract the first word of "tar", so it can be a program name with args.
4977 set dummy tar; ac_word=$2
4978 echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980 if test "${ac_cv_path_TAR+set}" = set; then
4981   echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983   case $TAR in
4984   [\\/]* | ?:[\\/]*)
4985   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4986   ;;
4987   *)
4988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991   IFS=$as_save_IFS
4992   test -z "$as_dir" && as_dir=.
4993   for ac_exec_ext in '' $ac_executable_extensions; do
4994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997     break 2
4998   fi
4999 done
5000 done
5001
5002   ;;
5003 esac
5004 fi
5005 TAR=$ac_cv_path_TAR
5006
5007 if test -n "$TAR"; then
5008   echo "$as_me:$LINENO: result: $TAR" >&5
5009 echo "${ECHO_T}$TAR" >&6
5010 else
5011   echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5013 fi
5014
5015 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5016 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5017 LN_S=$as_ln_s
5018 if test "$LN_S" = "ln -s"; then
5019   echo "$as_me:$LINENO: result: yes" >&5
5020 echo "${ECHO_T}yes" >&6
5021 else
5022   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5023 echo "${ECHO_T}no, using $LN_S" >&6
5024 fi
5025
5026 for ac_prog in gawk mawk nawk awk
5027 do
5028   # Extract the first word of "$ac_prog", so it can be a program name with args.
5029 set dummy $ac_prog; ac_word=$2
5030 echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032 if test "${ac_cv_prog_AWK+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   if test -n "$AWK"; then
5036   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041   IFS=$as_save_IFS
5042   test -z "$as_dir" && as_dir=.
5043   for ac_exec_ext in '' $ac_executable_extensions; do
5044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045     ac_cv_prog_AWK="$ac_prog"
5046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047     break 2
5048   fi
5049 done
5050 done
5051
5052 fi
5053 fi
5054 AWK=$ac_cv_prog_AWK
5055 if test -n "$AWK"; then
5056   echo "$as_me:$LINENO: result: $AWK" >&5
5057 echo "${ECHO_T}$AWK" >&6
5058 else
5059   echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6
5061 fi
5062
5063   test -n "$AWK" && break
5064 done
5065
5066
5067 # Let the user override the search
5068 if test -z "$YACC"; then
5069   for ac_prog in 'bison -y'
5070 do
5071   # Extract the first word of "$ac_prog", so it can be a program name with args.
5072 set dummy $ac_prog; ac_word=$2
5073 echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075 if test "${ac_cv_prog_YACC+set}" = set; then
5076   echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078   if test -n "$YACC"; then
5079   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084   IFS=$as_save_IFS
5085   test -z "$as_dir" && as_dir=.
5086   for ac_exec_ext in '' $ac_executable_extensions; do
5087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088     ac_cv_prog_YACC="$ac_prog"
5089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090     break 2
5091   fi
5092 done
5093 done
5094
5095 fi
5096 fi
5097 YACC=$ac_cv_prog_YACC
5098 if test -n "$YACC"; then
5099   echo "$as_me:$LINENO: result: $YACC" >&5
5100 echo "${ECHO_T}$YACC" >&6
5101 else
5102   echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6
5104 fi
5105
5106   test -n "$YACC" && break
5107 done
5108
5109 fi
5110
5111 if test "$YACC"; then
5112   pgac_yacc_version=`$YACC --version 2>/dev/null | sed q`
5113   { echo "$as_me:$LINENO: using $pgac_yacc_version" >&5
5114 echo "$as_me: using $pgac_yacc_version" >&6;}
5115   if echo "$pgac_yacc_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
5116   then
5117     { echo "$as_me:$LINENO: WARNING:
5118 *** The installed version of Bison is too old to use with PostgreSQL.
5119 *** Bison version 1.875 or later is required." >&5
5120 echo "$as_me: WARNING:
5121 *** The installed version of Bison is too old to use with PostgreSQL.
5122 *** Bison version 1.875 or later is required." >&2;}
5123     YACC=""
5124   fi
5125 fi
5126
5127 if test -z "$YACC"; then
5128   { echo "$as_me:$LINENO: WARNING:
5129 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5130 *** change any of the parser definition files.  You can obtain Bison from
5131 *** a GNU mirror site.  (If you are using the official distribution of
5132 *** PostgreSQL then you do not need to worry about this, because the Bison
5133 *** output is pre-generated.)  To use a different yacc program (possible,
5134 *** but not recommended), set the environment variable YACC before running
5135 *** 'configure'." >&5
5136 echo "$as_me: WARNING:
5137 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5138 *** change any of the parser definition files.  You can obtain Bison from
5139 *** a GNU mirror site.  (If you are using the official distribution of
5140 *** PostgreSQL then you do not need to worry about this, because the Bison
5141 *** output is pre-generated.)  To use a different yacc program (possible,
5142 *** but not recommended), set the environment variable YACC before running
5143 *** 'configure'." >&2;}
5144 fi
5145 # We don't need AC_SUBST(YACC) because AC_PATH_PROG did it
5146
5147
5148 echo "$as_me:$LINENO: checking for flex" >&5
5149 echo $ECHO_N "checking for flex... $ECHO_C" >&6
5150 if test "${pgac_cv_path_flex+set}" = set; then
5151   echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153   # Let the user override the test
5154 if test -n "$FLEX"; then
5155   pgac_cv_path_flex=$FLEX
5156 else
5157   pgac_save_IFS=$IFS
5158   IFS=$PATH_SEPARATOR
5159   for pgac_dir in $PATH; do
5160     IFS=$pgac_save_IFS
5161     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
5162       pgac_dir=`pwd`
5163     fi
5164     for pgac_prog in flex lex; do
5165       pgac_candidate="$pgac_dir/$pgac_prog"
5166       if test -f "$pgac_candidate" \
5167         && $pgac_candidate --version </dev/null >/dev/null 2>&1
5168       then
5169         echo '%%'  > conftest.l
5170         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
5171           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
5172             pgac_broken_flex=$pgac_candidate
5173             continue
5174           fi
5175
5176           pgac_cv_path_flex=$pgac_candidate
5177           break 2
5178         fi
5179       fi
5180     done
5181   done
5182   rm -f conftest.l lex.yy.c
5183   : ${pgac_cv_path_flex=no}
5184 fi
5185
5186 fi
5187 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
5188 echo "${ECHO_T}$pgac_cv_path_flex" >&6
5189 if test x"$pgac_cv_path_flex" = x"no"; then
5190   if test -n "$pgac_broken_flex"; then
5191     { echo "$as_me:$LINENO: WARNING:
5192 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5193 *** should get version 2.5.4 or later." >&5
5194 echo "$as_me: WARNING:
5195 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5196 *** should get version 2.5.4 or later." >&2;}
5197   fi
5198
5199   { echo "$as_me:$LINENO: WARNING:
5200 *** Without Flex you will not be able to build PostgreSQL from CVS or
5201 *** change any of the scanner definition files.  You can obtain Flex from
5202 *** a GNU mirror site.  (If you are using the official distribution of
5203 *** PostgreSQL then you do not need to worry about this because the Flex
5204 *** output is pre-generated.)" >&5
5205 echo "$as_me: WARNING:
5206 *** Without Flex you will not be able to build PostgreSQL from CVS or
5207 *** change any of the scanner definition files.  You can obtain Flex from
5208 *** a GNU mirror site.  (If you are using the official distribution of
5209 *** PostgreSQL then you do not need to worry about this because the Flex
5210 *** output is pre-generated.)" >&2;}
5211
5212   FLEX=
5213 else
5214   FLEX=$pgac_cv_path_flex
5215   pgac_flex_version=`$FLEX -V 2>/dev/null`
5216   { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
5217 echo "$as_me: using $pgac_flex_version" >&6;}
5218 fi
5219
5220
5221
5222
5223
5224 # Extract the first word of "perl", so it can be a program name with args.
5225 set dummy perl; ac_word=$2
5226 echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 if test "${ac_cv_path_PERL+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231   case $PERL in
5232   [\\/]* | ?:[\\/]*)
5233   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5234   ;;
5235   *)
5236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5238 do
5239   IFS=$as_save_IFS
5240   test -z "$as_dir" && as_dir=.
5241   for ac_exec_ext in '' $ac_executable_extensions; do
5242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245     break 2
5246   fi
5247 done
5248 done
5249
5250   ;;
5251 esac
5252 fi
5253 PERL=$ac_cv_path_PERL
5254
5255 if test -n "$PERL"; then
5256   echo "$as_me:$LINENO: result: $PERL" >&5
5257 echo "${ECHO_T}$PERL" >&6
5258 else
5259   echo "$as_me:$LINENO: result: no" >&5
5260 echo "${ECHO_T}no" >&6
5261 fi
5262
5263 if test "$with_perl" = yes; then
5264
5265 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
5266 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
5267 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
5268 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
5269 echo "${ECHO_T}$perl_archlibexp" >&6
5270 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
5271 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
5272 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
5273 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
5274 echo "${ECHO_T}$perl_privlibexp" >&6
5275 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
5276 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
5277 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
5278 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
5279 echo "${ECHO_T}$perl_useshrplib" >&6
5280
5281 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
5282 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
5283 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
5284 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
5285 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
5286 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
5287 echo "${ECHO_T}$perl_embed_ldflags" >&6
5288 fi
5289
5290 if test "$with_python" = yes; then
5291   # Extract the first word of "python", so it can be a program name with args.
5292 set dummy python; ac_word=$2
5293 echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5295 if test "${ac_cv_path_PYTHON+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   case $PYTHON in
5299   [\\/]* | ?:[\\/]*)
5300   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5301   ;;
5302   *)
5303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5305 do
5306   IFS=$as_save_IFS
5307   test -z "$as_dir" && as_dir=.
5308   for ac_exec_ext in '' $ac_executable_extensions; do
5309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5312     break 2
5313   fi
5314 done
5315 done
5316
5317   ;;
5318 esac
5319 fi
5320 PYTHON=$ac_cv_path_PYTHON
5321
5322 if test -n "$PYTHON"; then
5323   echo "$as_me:$LINENO: result: $PYTHON" >&5
5324 echo "${ECHO_T}$PYTHON" >&6
5325 else
5326   echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5328 fi
5329
5330 if test x"$PYTHON" = x""; then
5331   { { echo "$as_me:$LINENO: error: Python not found" >&5
5332 echo "$as_me: error: Python not found" >&2;}
5333    { (exit 1); exit 1; }; }
5334 fi
5335
5336
5337 echo "$as_me:$LINENO: checking for Python distutils module" >&5
5338 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
5339 if "${PYTHON}" 2>&- -c 'import distutils'
5340 then
5341     echo "$as_me:$LINENO: result: yes" >&5
5342 echo "${ECHO_T}yes" >&6
5343 else
5344     echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6
5346     { { echo "$as_me:$LINENO: error: distutils module not found" >&5
5347 echo "$as_me: error: distutils module not found" >&2;}
5348    { (exit 1); exit 1; }; }
5349 fi
5350 echo "$as_me:$LINENO: checking Python configuration directory" >&5
5351 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
5352 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5353 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print os.path.join(f(plat_specific=1,standard_lib=1),'config')"`
5354 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
5355
5356 # This should be enough of a message.
5357 echo "$as_me:$LINENO: result: $python_configdir" >&5
5358 echo "${ECHO_T}$python_configdir" >&6
5359
5360
5361 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5362 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5363
5364 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
5365 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
5366 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
5367 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
5368
5369 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
5370 then
5371         # New way: use the official shared library
5372         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
5373         python_libspec="-L${python_libdir} -l${ldlibrary}"
5374 else
5375         # Old way: use libpython from python_configdir
5376         python_libdir="${python_configdir}"
5377         python_libspec="-L${python_libdir} -lpython${python_version}"
5378 fi
5379
5380 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
5381
5382 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
5383 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
5384
5385
5386 # threaded python is not supported on bsd's
5387 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
5388 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
5389 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
5390 if test "$pythreads" = "1"; then
5391   echo "$as_me:$LINENO: result: yes" >&5
5392 echo "${ECHO_T}yes" >&6
5393   case $host_os in
5394   openbsd*|freebsd*)
5395     { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
5396 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
5397    { (exit 1); exit 1; }; }
5398     ;;
5399   esac
5400 else
5401   echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6
5403 fi
5404
5405
5406 fi
5407
5408 # Supply a numeric version string for use by 3rd party add-ons
5409 # awk -F is a regex on some platforms, and not on others, so make "." a tab
5410 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
5411 tr '.' '        ' |
5412 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
5413
5414 cat >>confdefs.h <<_ACEOF
5415 #define PG_VERSION_NUM $PG_VERSION_NUM
5416 _ACEOF
5417
5418
5419 ##
5420 ## Libraries
5421 ##
5422 ## Most libraries are included only if they demonstrably provide a function
5423 ## we need, but libm is an exception: always include it, because there are
5424 ## too many compilers that play cute optimization games that will break
5425 ## probes for standard functions such as pow().
5426 ##
5427
5428
5429 echo "$as_me:$LINENO: checking for main in -lm" >&5
5430 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5431 if test "${ac_cv_lib_m_main+set}" = set; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434   ac_check_lib_save_LIBS=$LIBS
5435 LIBS="-lm  $LIBS"
5436 cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h.  */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h.  */
5442
5443
5444 int
5445 main ()
5446 {
5447 main ();
5448   ;
5449   return 0;
5450 }
5451 _ACEOF
5452 rm -f conftest.$ac_objext conftest$ac_exeext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5454   (eval $ac_link) 2>conftest.er1
5455   ac_status=$?
5456   grep -v '^ *+' conftest.er1 >conftest.err
5457   rm -f conftest.er1
5458   cat conftest.err >&5
5459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); } &&
5461          { ac_try='test -z "$ac_c_werror_flag"
5462                          || test ! -s conftest.err'
5463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464   (eval $ac_try) 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }; } &&
5468          { ac_try='test -s conftest$ac_exeext'
5469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470   (eval $ac_try) 2>&5
5471   ac_status=$?
5472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473   (exit $ac_status); }; }; then
5474   ac_cv_lib_m_main=yes
5475 else
5476   echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5478
5479 ac_cv_lib_m_main=no
5480 fi
5481 rm -f conftest.err conftest.$ac_objext \
5482       conftest$ac_exeext conftest.$ac_ext
5483 LIBS=$ac_check_lib_save_LIBS
5484 fi
5485 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5486 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5487 if test $ac_cv_lib_m_main = yes; then
5488   cat >>confdefs.h <<_ACEOF
5489 #define HAVE_LIBM 1
5490 _ACEOF
5491
5492   LIBS="-lm $LIBS"
5493
5494 fi
5495
5496 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
5497 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
5498 if test "${ac_cv_search_setproctitle+set}" = set; then
5499   echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501   ac_func_search_save_LIBS=$LIBS
5502 ac_cv_search_setproctitle=no
5503 cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h.  */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h.  */
5509
5510 /* Override any gcc2 internal prototype to avoid an error.  */
5511 #ifdef __cplusplus
5512 extern "C"
5513 #endif
5514 /* We use char because int might match the return type of a gcc2
5515    builtin and then its argument prototype would still apply.  */
5516 char setproctitle ();
5517 int
5518 main ()
5519 {
5520 setproctitle ();
5521   ;
5522   return 0;
5523 }
5524 _ACEOF
5525 rm -f conftest.$ac_objext conftest$ac_exeext
5526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5527   (eval $ac_link) 2>conftest.er1
5528   ac_status=$?
5529   grep -v '^ *+' conftest.er1 >conftest.err
5530   rm -f conftest.er1
5531   cat conftest.err >&5
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); } &&
5534          { ac_try='test -z "$ac_c_werror_flag"
5535                          || test ! -s conftest.err'
5536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537   (eval $ac_try) 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); }; } &&
5541          { ac_try='test -s conftest$ac_exeext'
5542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543   (eval $ac_try) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); }; }; then
5547   ac_cv_search_setproctitle="none required"
5548 else
5549   echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5551
5552 fi
5553 rm -f conftest.err conftest.$ac_objext \
5554       conftest$ac_exeext conftest.$ac_ext
5555 if test "$ac_cv_search_setproctitle" = no; then
5556   for ac_lib in util; do
5557     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5558     cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h.  */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h.  */
5564
5565 /* Override any gcc2 internal prototype to avoid an error.  */
5566 #ifdef __cplusplus
5567 extern "C"
5568 #endif
5569 /* We use char because int might match the return type of a gcc2
5570    builtin and then its argument prototype would still apply.  */
5571 char setproctitle ();
5572 int
5573 main ()
5574 {
5575 setproctitle ();
5576   ;
5577   return 0;
5578 }
5579 _ACEOF
5580 rm -f conftest.$ac_objext conftest$ac_exeext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5582   (eval $ac_link) 2>conftest.er1
5583   ac_status=$?
5584   grep -v '^ *+' conftest.er1 >conftest.err
5585   rm -f conftest.er1
5586   cat conftest.err >&5
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); } &&
5589          { ac_try='test -z "$ac_c_werror_flag"
5590                          || test ! -s conftest.err'
5591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592   (eval $ac_try) 2>&5
5593   ac_status=$?
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); }; } &&
5596          { ac_try='test -s conftest$ac_exeext'
5597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598   (eval $ac_try) 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); }; }; then
5602   ac_cv_search_setproctitle="-l$ac_lib"
5603 break
5604 else
5605   echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 fi
5609 rm -f conftest.err conftest.$ac_objext \
5610       conftest$ac_exeext conftest.$ac_ext
5611   done
5612 fi
5613 LIBS=$ac_func_search_save_LIBS
5614 fi
5615 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
5616 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
5617 if test "$ac_cv_search_setproctitle" != no; then
5618   test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
5619
5620 fi
5621
5622 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5623 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5624 if test "${ac_cv_search_dlopen+set}" = set; then
5625   echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627   ac_func_search_save_LIBS=$LIBS
5628 ac_cv_search_dlopen=no
5629 cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h.  */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h.  */
5635
5636 /* Override any gcc2 internal prototype to avoid an error.  */
5637 #ifdef __cplusplus
5638 extern "C"
5639 #endif
5640 /* We use char because int might match the return type of a gcc2
5641    builtin and then its argument prototype would still apply.  */
5642 char dlopen ();
5643 int
5644 main ()
5645 {
5646 dlopen ();
5647   ;
5648   return 0;
5649 }
5650 _ACEOF
5651 rm -f conftest.$ac_objext conftest$ac_exeext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5653   (eval $ac_link) 2>conftest.er1
5654   ac_status=$?
5655   grep -v '^ *+' conftest.er1 >conftest.err
5656   rm -f conftest.er1
5657   cat conftest.err >&5
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } &&
5660          { ac_try='test -z "$ac_c_werror_flag"
5661                          || test ! -s conftest.err'
5662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663   (eval $ac_try) 2>&5
5664   ac_status=$?
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); }; } &&
5667          { ac_try='test -s conftest$ac_exeext'
5668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669   (eval $ac_try) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }; }; then
5673   ac_cv_search_dlopen="none required"
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678 fi
5679 rm -f conftest.err conftest.$ac_objext \
5680       conftest$ac_exeext conftest.$ac_ext
5681 if test "$ac_cv_search_dlopen" = no; then
5682   for ac_lib in dl; do
5683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5684     cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690
5691 /* Override any gcc2 internal prototype to avoid an error.  */
5692 #ifdef __cplusplus
5693 extern "C"
5694 #endif
5695 /* We use char because int might match the return type of a gcc2
5696    builtin and then its argument prototype would still apply.  */
5697 char dlopen ();
5698 int
5699 main ()
5700 {
5701 dlopen ();
5702   ;
5703   return 0;
5704 }
5705 _ACEOF
5706 rm -f conftest.$ac_objext conftest$ac_exeext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5708   (eval $ac_link) 2>conftest.er1
5709   ac_status=$?
5710   grep -v '^ *+' conftest.er1 >conftest.err
5711   rm -f conftest.er1
5712   cat conftest.err >&5
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); } &&
5715          { ac_try='test -z "$ac_c_werror_flag"
5716                          || test ! -s conftest.err'
5717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718   (eval $ac_try) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); }; } &&
5722          { ac_try='test -s conftest$ac_exeext'
5723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724   (eval $ac_try) 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); }; }; then
5728   ac_cv_search_dlopen="-l$ac_lib"
5729 break
5730 else
5731   echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 fi
5735 rm -f conftest.err conftest.$ac_objext \
5736       conftest$ac_exeext conftest.$ac_ext
5737   done
5738 fi
5739 LIBS=$ac_func_search_save_LIBS
5740 fi
5741 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5742 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5743 if test "$ac_cv_search_dlopen" != no; then
5744   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5745
5746 fi
5747
5748 echo "$as_me:$LINENO: checking for library containing socket" >&5
5749 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5750 if test "${ac_cv_search_socket+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   ac_func_search_save_LIBS=$LIBS
5754 ac_cv_search_socket=no
5755 cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h.  */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h.  */
5761
5762 /* Override any gcc2 internal prototype to avoid an error.  */
5763 #ifdef __cplusplus
5764 extern "C"
5765 #endif
5766 /* We use char because int might match the return type of a gcc2
5767    builtin and then its argument prototype would still apply.  */
5768 char socket ();
5769 int
5770 main ()
5771 {
5772 socket ();
5773   ;
5774   return 0;
5775 }
5776 _ACEOF
5777 rm -f conftest.$ac_objext conftest$ac_exeext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5779   (eval $ac_link) 2>conftest.er1
5780   ac_status=$?
5781   grep -v '^ *+' conftest.er1 >conftest.err
5782   rm -f conftest.er1
5783   cat conftest.err >&5
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } &&
5786          { ac_try='test -z "$ac_c_werror_flag"
5787                          || test ! -s conftest.err'
5788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789   (eval $ac_try) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); }; } &&
5793          { ac_try='test -s conftest$ac_exeext'
5794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795   (eval $ac_try) 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }; }; then
5799   ac_cv_search_socket="none required"
5800 else
5801   echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 fi
5805 rm -f conftest.err conftest.$ac_objext \
5806       conftest$ac_exeext conftest.$ac_ext
5807 if test "$ac_cv_search_socket" = no; then
5808   for ac_lib in socket wsock32; do
5809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5810     cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h.  */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h.  */
5816
5817 /* Override any gcc2 internal prototype to avoid an error.  */
5818 #ifdef __cplusplus
5819 extern "C"
5820 #endif
5821 /* We use char because int might match the return type of a gcc2
5822    builtin and then its argument prototype would still apply.  */
5823 char socket ();
5824 int
5825 main ()
5826 {
5827 socket ();
5828   ;
5829   return 0;
5830 }
5831 _ACEOF
5832 rm -f conftest.$ac_objext conftest$ac_exeext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834   (eval $ac_link) 2>conftest.er1
5835   ac_status=$?
5836   grep -v '^ *+' conftest.er1 >conftest.err
5837   rm -f conftest.er1
5838   cat conftest.err >&5
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); } &&
5841          { ac_try='test -z "$ac_c_werror_flag"
5842                          || test ! -s conftest.err'
5843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844   (eval $ac_try) 2>&5
5845   ac_status=$?
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; } &&
5848          { ac_try='test -s conftest$ac_exeext'
5849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850   (eval $ac_try) 2>&5
5851   ac_status=$?
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); }; }; then
5854   ac_cv_search_socket="-l$ac_lib"
5855 break
5856 else
5857   echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5859
5860 fi
5861 rm -f conftest.err conftest.$ac_objext \
5862       conftest$ac_exeext conftest.$ac_ext
5863   done
5864 fi
5865 LIBS=$ac_func_search_save_LIBS
5866 fi
5867 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5868 echo "${ECHO_T}$ac_cv_search_socket" >&6
5869 if test "$ac_cv_search_socket" != no; then
5870   test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5871
5872 fi
5873
5874 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5875 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5876 if test "${ac_cv_search_shl_load+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   ac_func_search_save_LIBS=$LIBS
5880 ac_cv_search_shl_load=no
5881 cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h.  */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h.  */
5887
5888 /* Override any gcc2 internal prototype to avoid an error.  */
5889 #ifdef __cplusplus
5890 extern "C"
5891 #endif
5892 /* We use char because int might match the return type of a gcc2
5893    builtin and then its argument prototype would still apply.  */
5894 char shl_load ();
5895 int
5896 main ()
5897 {
5898 shl_load ();
5899   ;
5900   return 0;
5901 }
5902 _ACEOF
5903 rm -f conftest.$ac_objext conftest$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905   (eval $ac_link) 2>conftest.er1
5906   ac_status=$?
5907   grep -v '^ *+' conftest.er1 >conftest.err
5908   rm -f conftest.er1
5909   cat conftest.err >&5
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); } &&
5912          { ac_try='test -z "$ac_c_werror_flag"
5913                          || test ! -s conftest.err'
5914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915   (eval $ac_try) 2>&5
5916   ac_status=$?
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); }; } &&
5919          { ac_try='test -s conftest$ac_exeext'
5920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921   (eval $ac_try) 2>&5
5922   ac_status=$?
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); }; }; then
5925   ac_cv_search_shl_load="none required"
5926 else
5927   echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5929
5930 fi
5931 rm -f conftest.err conftest.$ac_objext \
5932       conftest$ac_exeext conftest.$ac_ext
5933 if test "$ac_cv_search_shl_load" = no; then
5934   for ac_lib in dld; do
5935     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5936     cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h.  */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h.  */
5942
5943 /* Override any gcc2 internal prototype to avoid an error.  */
5944 #ifdef __cplusplus
5945 extern "C"
5946 #endif
5947 /* We use char because int might match the return type of a gcc2
5948    builtin and then its argument prototype would still apply.  */
5949 char shl_load ();
5950 int
5951 main ()
5952 {
5953 shl_load ();
5954   ;
5955   return 0;
5956 }
5957 _ACEOF
5958 rm -f conftest.$ac_objext conftest$ac_exeext
5959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5960   (eval $ac_link) 2>conftest.er1
5961   ac_status=$?
5962   grep -v '^ *+' conftest.er1 >conftest.err
5963   rm -f conftest.er1
5964   cat conftest.err >&5
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); } &&
5967          { ac_try='test -z "$ac_c_werror_flag"
5968                          || test ! -s conftest.err'
5969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970   (eval $ac_try) 2>&5
5971   ac_status=$?
5972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); }; } &&
5974          { ac_try='test -s conftest$ac_exeext'
5975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976   (eval $ac_try) 2>&5
5977   ac_status=$?
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); }; }; then
5980   ac_cv_search_shl_load="-l$ac_lib"
5981 break
5982 else
5983   echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5985
5986 fi
5987 rm -f conftest.err conftest.$ac_objext \
5988       conftest$ac_exeext conftest.$ac_ext
5989   done
5990 fi
5991 LIBS=$ac_func_search_save_LIBS
5992 fi
5993 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5994 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5995 if test "$ac_cv_search_shl_load" != no; then
5996   test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5997
5998 fi
5999
6000 # We only use libld in port/dynloader/aix.c
6001 case $host_os in
6002      aix*)
6003         echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6004 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
6005 if test "${ac_cv_search_ldopen+set}" = set; then
6006   echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008   ac_func_search_save_LIBS=$LIBS
6009 ac_cv_search_ldopen=no
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h.  */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h.  */
6016
6017 /* Override any gcc2 internal prototype to avoid an error.  */
6018 #ifdef __cplusplus
6019 extern "C"
6020 #endif
6021 /* We use char because int might match the return type of a gcc2
6022    builtin and then its argument prototype would still apply.  */
6023 char ldopen ();
6024 int
6025 main ()
6026 {
6027 ldopen ();
6028   ;
6029   return 0;
6030 }
6031 _ACEOF
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034   (eval $ac_link) 2>conftest.er1
6035   ac_status=$?
6036   grep -v '^ *+' conftest.er1 >conftest.err
6037   rm -f conftest.er1
6038   cat conftest.err >&5
6039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040   (exit $ac_status); } &&
6041          { ac_try='test -z "$ac_c_werror_flag"
6042                          || test ! -s conftest.err'
6043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044   (eval $ac_try) 2>&5
6045   ac_status=$?
6046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047   (exit $ac_status); }; } &&
6048          { ac_try='test -s conftest$ac_exeext'
6049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050   (eval $ac_try) 2>&5
6051   ac_status=$?
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); }; }; then
6054   ac_cv_search_ldopen="none required"
6055 else
6056   echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6058
6059 fi
6060 rm -f conftest.err conftest.$ac_objext \
6061       conftest$ac_exeext conftest.$ac_ext
6062 if test "$ac_cv_search_ldopen" = no; then
6063   for ac_lib in ld; do
6064     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6065     cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h.  */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h.  */
6071
6072 /* Override any gcc2 internal prototype to avoid an error.  */
6073 #ifdef __cplusplus
6074 extern "C"
6075 #endif
6076 /* We use char because int might match the return type of a gcc2
6077    builtin and then its argument prototype would still apply.  */
6078 char ldopen ();
6079 int
6080 main ()
6081 {
6082 ldopen ();
6083   ;
6084   return 0;
6085 }
6086 _ACEOF
6087 rm -f conftest.$ac_objext conftest$ac_exeext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6089   (eval $ac_link) 2>conftest.er1
6090   ac_status=$?
6091   grep -v '^ *+' conftest.er1 >conftest.err
6092   rm -f conftest.er1
6093   cat conftest.err >&5
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); } &&
6096          { ac_try='test -z "$ac_c_werror_flag"
6097                          || test ! -s conftest.err'
6098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099   (eval $ac_try) 2>&5
6100   ac_status=$?
6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); }; } &&
6103          { ac_try='test -s conftest$ac_exeext'
6104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105   (eval $ac_try) 2>&5
6106   ac_status=$?
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); }; }; then
6109   ac_cv_search_ldopen="-l$ac_lib"
6110 break
6111 else
6112   echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 fi
6116 rm -f conftest.err conftest.$ac_objext \
6117       conftest$ac_exeext conftest.$ac_ext
6118   done
6119 fi
6120 LIBS=$ac_func_search_save_LIBS
6121 fi
6122 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6123 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
6124 if test "$ac_cv_search_ldopen" != no; then
6125   test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
6126
6127 fi
6128
6129         ;;
6130 esac
6131 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6132 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
6133 if test "${ac_cv_search_getopt_long+set}" = set; then
6134   echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136   ac_func_search_save_LIBS=$LIBS
6137 ac_cv_search_getopt_long=no
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h.  */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h.  */
6144
6145 /* Override any gcc2 internal prototype to avoid an error.  */
6146 #ifdef __cplusplus
6147 extern "C"
6148 #endif
6149 /* We use char because int might match the return type of a gcc2
6150    builtin and then its argument prototype would still apply.  */
6151 char getopt_long ();
6152 int
6153 main ()
6154 {
6155 getopt_long ();
6156   ;
6157   return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162   (eval $ac_link) 2>conftest.er1
6163   ac_status=$?
6164   grep -v '^ *+' conftest.er1 >conftest.err
6165   rm -f conftest.er1
6166   cat conftest.err >&5
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); } &&
6169          { ac_try='test -z "$ac_c_werror_flag"
6170                          || test ! -s conftest.err'
6171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172   (eval $ac_try) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }; } &&
6176          { ac_try='test -s conftest$ac_exeext'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; }; then
6182   ac_cv_search_getopt_long="none required"
6183 else
6184   echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 fi
6188 rm -f conftest.err conftest.$ac_objext \
6189       conftest$ac_exeext conftest.$ac_ext
6190 if test "$ac_cv_search_getopt_long" = no; then
6191   for ac_lib in getopt gnugetopt; do
6192     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6193     cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h.  */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h.  */
6199
6200 /* Override any gcc2 internal prototype to avoid an error.  */
6201 #ifdef __cplusplus
6202 extern "C"
6203 #endif
6204 /* We use char because int might match the return type of a gcc2
6205    builtin and then its argument prototype would still apply.  */
6206 char getopt_long ();
6207 int
6208 main ()
6209 {
6210 getopt_long ();
6211   ;
6212   return 0;
6213 }
6214 _ACEOF
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6217   (eval $ac_link) 2>conftest.er1
6218   ac_status=$?
6219   grep -v '^ *+' conftest.er1 >conftest.err
6220   rm -f conftest.er1
6221   cat conftest.err >&5
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); } &&
6224          { ac_try='test -z "$ac_c_werror_flag"
6225                          || test ! -s conftest.err'
6226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227   (eval $ac_try) 2>&5
6228   ac_status=$?
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); }; } &&
6231          { ac_try='test -s conftest$ac_exeext'
6232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233   (eval $ac_try) 2>&5
6234   ac_status=$?
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); }; }; then
6237   ac_cv_search_getopt_long="-l$ac_lib"
6238 break
6239 else
6240   echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6242
6243 fi
6244 rm -f conftest.err conftest.$ac_objext \
6245       conftest$ac_exeext conftest.$ac_ext
6246   done
6247 fi
6248 LIBS=$ac_func_search_save_LIBS
6249 fi
6250 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6251 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
6252 if test "$ac_cv_search_getopt_long" != no; then
6253   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
6254
6255 fi
6256
6257 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6258 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6259 if test "${ac_cv_search_crypt+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   ac_func_search_save_LIBS=$LIBS
6263 ac_cv_search_crypt=no
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h.  */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h.  */
6270
6271 /* Override any gcc2 internal prototype to avoid an error.  */
6272 #ifdef __cplusplus
6273 extern "C"
6274 #endif
6275 /* We use char because int might match the return type of a gcc2
6276    builtin and then its argument prototype would still apply.  */
6277 char crypt ();
6278 int
6279 main ()
6280 {
6281 crypt ();
6282   ;
6283   return 0;
6284 }
6285 _ACEOF
6286 rm -f conftest.$ac_objext conftest$ac_exeext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6288   (eval $ac_link) 2>conftest.er1
6289   ac_status=$?
6290   grep -v '^ *+' conftest.er1 >conftest.err
6291   rm -f conftest.er1
6292   cat conftest.err >&5
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); } &&
6295          { ac_try='test -z "$ac_c_werror_flag"
6296                          || test ! -s conftest.err'
6297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298   (eval $ac_try) 2>&5
6299   ac_status=$?
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); }; } &&
6302          { ac_try='test -s conftest$ac_exeext'
6303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304   (eval $ac_try) 2>&5
6305   ac_status=$?
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); }; }; then
6308   ac_cv_search_crypt="none required"
6309 else
6310   echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6312
6313 fi
6314 rm -f conftest.err conftest.$ac_objext \
6315       conftest$ac_exeext conftest.$ac_ext
6316 if test "$ac_cv_search_crypt" = no; then
6317   for ac_lib in crypt; do
6318     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6319     cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325
6326 /* Override any gcc2 internal prototype to avoid an error.  */
6327 #ifdef __cplusplus
6328 extern "C"
6329 #endif
6330 /* We use char because int might match the return type of a gcc2
6331    builtin and then its argument prototype would still apply.  */
6332 char crypt ();
6333 int
6334 main ()
6335 {
6336 crypt ();
6337   ;
6338   return 0;
6339 }
6340 _ACEOF
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343   (eval $ac_link) 2>conftest.er1
6344   ac_status=$?
6345   grep -v '^ *+' conftest.er1 >conftest.err
6346   rm -f conftest.er1
6347   cat conftest.err >&5
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); } &&
6350          { ac_try='test -z "$ac_c_werror_flag"
6351                          || test ! -s conftest.err'
6352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353   (eval $ac_try) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); }; } &&
6357          { ac_try='test -s conftest$ac_exeext'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363   ac_cv_search_crypt="-l$ac_lib"
6364 break
6365 else
6366   echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369 fi
6370 rm -f conftest.err conftest.$ac_objext \
6371       conftest$ac_exeext conftest.$ac_ext
6372   done
6373 fi
6374 LIBS=$ac_func_search_save_LIBS
6375 fi
6376 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6377 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6378 if test "$ac_cv_search_crypt" != no; then
6379   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6380
6381 fi
6382
6383 # Solaris:
6384 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6385 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6386 if test "${ac_cv_search_fdatasync+set}" = set; then
6387   echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389   ac_func_search_save_LIBS=$LIBS
6390 ac_cv_search_fdatasync=no
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h.  */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h.  */
6397
6398 /* Override any gcc2 internal prototype to avoid an error.  */
6399 #ifdef __cplusplus
6400 extern "C"
6401 #endif
6402 /* We use char because int might match the return type of a gcc2
6403    builtin and then its argument prototype would still apply.  */
6404 char fdatasync ();
6405 int
6406 main ()
6407 {
6408 fdatasync ();
6409   ;
6410   return 0;
6411 }
6412 _ACEOF
6413 rm -f conftest.$ac_objext conftest$ac_exeext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6415   (eval $ac_link) 2>conftest.er1
6416   ac_status=$?
6417   grep -v '^ *+' conftest.er1 >conftest.err
6418   rm -f conftest.er1
6419   cat conftest.err >&5
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); } &&
6422          { ac_try='test -z "$ac_c_werror_flag"
6423                          || test ! -s conftest.err'
6424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425   (eval $ac_try) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); }; } &&
6429          { ac_try='test -s conftest$ac_exeext'
6430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431   (eval $ac_try) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); }; }; then
6435   ac_cv_search_fdatasync="none required"
6436 else
6437   echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6439
6440 fi
6441 rm -f conftest.err conftest.$ac_objext \
6442       conftest$ac_exeext conftest.$ac_ext
6443 if test "$ac_cv_search_fdatasync" = no; then
6444   for ac_lib in rt posix4; do
6445     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6446     cat >conftest.$ac_ext <<_ACEOF
6447 /* confdefs.h.  */
6448 _ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h.  */
6452
6453 /* Override any gcc2 internal prototype to avoid an error.  */
6454 #ifdef __cplusplus
6455 extern "C"
6456 #endif
6457 /* We use char because int might match the return type of a gcc2
6458    builtin and then its argument prototype would still apply.  */
6459 char fdatasync ();
6460 int
6461 main ()
6462 {
6463 fdatasync ();
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470   (eval $ac_link) 2>conftest.er1
6471   ac_status=$?
6472   grep -v '^ *+' conftest.er1 >conftest.err
6473   rm -f conftest.er1
6474   cat conftest.err >&5
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } &&
6477          { ac_try='test -z "$ac_c_werror_flag"
6478                          || test ! -s conftest.err'
6479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480   (eval $ac_try) 2>&5
6481   ac_status=$?
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); }; } &&
6484          { ac_try='test -s conftest$ac_exeext'
6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486   (eval $ac_try) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); }; }; then
6490   ac_cv_search_fdatasync="-l$ac_lib"
6491 break
6492 else
6493   echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6495
6496 fi
6497 rm -f conftest.err conftest.$ac_objext \
6498       conftest$ac_exeext conftest.$ac_ext
6499   done
6500 fi
6501 LIBS=$ac_func_search_save_LIBS
6502 fi
6503 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6504 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6505 if test "$ac_cv_search_fdatasync" != no; then
6506   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6507
6508 fi
6509
6510 # Cygwin:
6511 echo "$as_me:$LINENO: checking for library containing shmget" >&5
6512 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
6513 if test "${ac_cv_search_shmget+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516   ac_func_search_save_LIBS=$LIBS
6517 ac_cv_search_shmget=no
6518 cat >conftest.$ac_ext <<_ACEOF
6519 /* confdefs.h.  */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h.  */
6524
6525 /* Override any gcc2 internal prototype to avoid an error.  */
6526 #ifdef __cplusplus
6527 extern "C"
6528 #endif
6529 /* We use char because int might match the return type of a gcc2
6530    builtin and then its argument prototype would still apply.  */
6531 char shmget ();
6532 int
6533 main ()
6534 {
6535 shmget ();
6536   ;
6537   return 0;
6538 }
6539 _ACEOF
6540 rm -f conftest.$ac_objext conftest$ac_exeext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6542   (eval $ac_link) 2>conftest.er1
6543   ac_status=$?
6544   grep -v '^ *+' conftest.er1 >conftest.err
6545   rm -f conftest.er1
6546   cat conftest.err >&5
6547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548   (exit $ac_status); } &&
6549          { ac_try='test -z "$ac_c_werror_flag"
6550                          || test ! -s conftest.err'
6551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552   (eval $ac_try) 2>&5
6553   ac_status=$?
6554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555   (exit $ac_status); }; } &&
6556          { ac_try='test -s conftest$ac_exeext'
6557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558   (eval $ac_try) 2>&5
6559   ac_status=$?
6560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561   (exit $ac_status); }; }; then
6562   ac_cv_search_shmget="none required"
6563 else
6564   echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6566
6567 fi
6568 rm -f conftest.err conftest.$ac_objext \
6569       conftest$ac_exeext conftest.$ac_ext
6570 if test "$ac_cv_search_shmget" = no; then
6571   for ac_lib in cygipc; do
6572     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6573     cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h.  */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h.  */
6579
6580 /* Override any gcc2 internal prototype to avoid an error.  */
6581 #ifdef __cplusplus
6582 extern "C"
6583 #endif
6584 /* We use char because int might match the return type of a gcc2
6585    builtin and then its argument prototype would still apply.  */
6586 char shmget ();
6587 int
6588 main ()
6589 {
6590 shmget ();
6591   ;
6592   return 0;
6593 }
6594 _ACEOF
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597   (eval $ac_link) 2>conftest.er1
6598   ac_status=$?
6599   grep -v '^ *+' conftest.er1 >conftest.err
6600   rm -f conftest.er1
6601   cat conftest.err >&5
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); } &&
6604          { ac_try='test -z "$ac_c_werror_flag"
6605                          || test ! -s conftest.err'
6606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607   (eval $ac_try) 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); }; } &&
6611          { ac_try='test -s conftest$ac_exeext'
6612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613   (eval $ac_try) 2>&5
6614   ac_status=$?
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); }; }; then
6617   ac_cv_search_shmget="-l$ac_lib"
6618 break
6619 else
6620   echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623 fi
6624 rm -f conftest.err conftest.$ac_objext \
6625       conftest$ac_exeext conftest.$ac_ext
6626   done
6627 fi
6628 LIBS=$ac_func_search_save_LIBS
6629 fi
6630 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6631 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6632 if test "$ac_cv_search_shmget" != no; then
6633   test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6634
6635 fi
6636
6637
6638 if test "$with_readline" = yes; then
6639
6640
6641 if test "${pgac_cv_check_readline+set}" = set; then
6642   echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644   pgac_cv_check_readline=no
6645 pgac_save_LIBS=$LIBS
6646 if test x"$with_libedit_preferred" != x"yes"
6647 then    READLINE_ORDER="-lreadline -ledit"
6648 else    READLINE_ORDER="-ledit -lreadline"
6649 fi
6650 for pgac_rllib in $READLINE_ORDER ; do
6651   echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6652 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6653   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6654     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6655     cat >conftest.$ac_ext <<_ACEOF
6656 /* confdefs.h.  */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h.  */
6661
6662 /* Override any gcc2 internal prototype to avoid an error.  */
6663 #ifdef __cplusplus
6664 extern "C"
6665 #endif
6666 /* We use char because int might match the return type of a gcc2
6667    builtin and then its argument prototype would still apply.  */
6668 char readline ();
6669 int
6670 main ()
6671 {
6672 readline ();
6673   ;
6674   return 0;
6675 }
6676 _ACEOF
6677 rm -f conftest.$ac_objext conftest$ac_exeext
6678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6679   (eval $ac_link) 2>conftest.er1
6680   ac_status=$?
6681   grep -v '^ *+' conftest.er1 >conftest.err
6682   rm -f conftest.er1
6683   cat conftest.err >&5
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); } &&
6686          { ac_try='test -z "$ac_c_werror_flag"
6687                          || test ! -s conftest.err'
6688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689   (eval $ac_try) 2>&5
6690   ac_status=$?
6691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692   (exit $ac_status); }; } &&
6693          { ac_try='test -s conftest$ac_exeext'
6694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695   (eval $ac_try) 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); }; }; then
6699
6700       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6701       # recognize dependent libraries; assume curses is needed if we didn't
6702       # find any dependency.
6703       case $host_os in
6704         netbsd* | openbsd* | irix*)
6705           if test x"$pgac_lib" = x"" ; then
6706             pgac_lib=" -lcurses"
6707           fi ;;
6708       esac
6709
6710       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6711       break
6712
6713 else
6714   echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6716
6717 fi
6718 rm -f conftest.err conftest.$ac_objext \
6719       conftest$ac_exeext conftest.$ac_ext
6720   done
6721   if test "$pgac_cv_check_readline" != no ; then
6722     echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6723 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6724     break
6725   else
6726     echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6
6728   fi
6729 done
6730 LIBS=$pgac_save_LIBS
6731
6732 fi
6733
6734 if test "$pgac_cv_check_readline" != no ; then
6735   LIBS="$pgac_cv_check_readline $LIBS"
6736
6737 cat >>confdefs.h <<\_ACEOF
6738 #define HAVE_LIBREADLINE 1
6739 _ACEOF
6740
6741 fi
6742
6743
6744   if test x"$pgac_cv_check_readline" = x"no"; then
6745     { { echo "$as_me:$LINENO: error: readline library not found
6746 If you have readline already installed, see config.log for details on the
6747 failure.  It is possible the compiler isn't looking in the proper directory.
6748 Use --without-readline to disable readline support." >&5
6749 echo "$as_me: error: readline library not found
6750 If you have readline already installed, see config.log for details on the
6751 failure.  It is possible the compiler isn't looking in the proper directory.
6752 Use --without-readline to disable readline support." >&2;}
6753    { (exit 1); exit 1; }; }
6754   fi
6755 fi
6756
6757 if test "$with_zlib" = yes; then
6758
6759 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6760 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6761 if test "${ac_cv_lib_z_inflate+set}" = set; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   ac_check_lib_save_LIBS=$LIBS
6765 LIBS="-lz  $LIBS"
6766 cat >conftest.$ac_ext <<_ACEOF
6767 /* confdefs.h.  */
6768 _ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h.  */
6772
6773 /* Override any gcc2 internal prototype to avoid an error.  */
6774 #ifdef __cplusplus
6775 extern "C"
6776 #endif
6777 /* We use char because int might match the return type of a gcc2
6778    builtin and then its argument prototype would still apply.  */
6779 char inflate ();
6780 int
6781 main ()
6782 {
6783 inflate ();
6784   ;
6785   return 0;
6786 }
6787 _ACEOF
6788 rm -f conftest.$ac_objext conftest$ac_exeext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790   (eval $ac_link) 2>conftest.er1
6791   ac_status=$?
6792   grep -v '^ *+' conftest.er1 >conftest.err
6793   rm -f conftest.er1
6794   cat conftest.err >&5
6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796   (exit $ac_status); } &&
6797          { ac_try='test -z "$ac_c_werror_flag"
6798                          || test ! -s conftest.err'
6799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800   (eval $ac_try) 2>&5
6801   ac_status=$?
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); }; } &&
6804          { ac_try='test -s conftest$ac_exeext'
6805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806   (eval $ac_try) 2>&5
6807   ac_status=$?
6808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809   (exit $ac_status); }; }; then
6810   ac_cv_lib_z_inflate=yes
6811 else
6812   echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815 ac_cv_lib_z_inflate=no
6816 fi
6817 rm -f conftest.err conftest.$ac_objext \
6818       conftest$ac_exeext conftest.$ac_ext
6819 LIBS=$ac_check_lib_save_LIBS
6820 fi
6821 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6822 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6823 if test $ac_cv_lib_z_inflate = yes; then
6824   cat >>confdefs.h <<_ACEOF
6825 #define HAVE_LIBZ 1
6826 _ACEOF
6827
6828   LIBS="-lz $LIBS"
6829
6830 else
6831   { { echo "$as_me:$LINENO: error: zlib library not found
6832 If you have zlib already installed, see config.log for details on the
6833 failure.  It is possible the compiler isn't looking in the proper directory.
6834 Use --without-zlib to disable zlib support." >&5
6835 echo "$as_me: error: zlib library not found
6836 If you have zlib already installed, see config.log for details on the
6837 failure.  It is possible the compiler isn't looking in the proper directory.
6838 Use --without-zlib to disable zlib support." >&2;}
6839    { (exit 1); exit 1; }; }
6840 fi
6841
6842 fi
6843
6844 if test "$enable_spinlocks" = yes; then
6845
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_SPINLOCKS 1
6848 _ACEOF
6849
6850 else
6851   { echo "$as_me:$LINENO: WARNING:
6852 *** Not using spinlocks will cause poor performance." >&5
6853 echo "$as_me: WARNING:
6854 *** Not using spinlocks will cause poor performance." >&2;}
6855 fi
6856
6857 if test "$with_gssapi" = yes ; then
6858   if test "$PORTNAME" != "win32"; then
6859     echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
6860 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6
6861 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
6862   echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864   ac_func_search_save_LIBS=$LIBS
6865 ac_cv_search_gss_init_sec_context=no
6866 cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h.  */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h.  */
6872
6873 /* Override any gcc2 internal prototype to avoid an error.  */
6874 #ifdef __cplusplus
6875 extern "C"
6876 #endif
6877 /* We use char because int might match the return type of a gcc2
6878    builtin and then its argument prototype would still apply.  */
6879 char gss_init_sec_context ();
6880 int
6881 main ()
6882 {
6883 gss_init_sec_context ();
6884   ;
6885   return 0;
6886 }
6887 _ACEOF
6888 rm -f conftest.$ac_objext conftest$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890   (eval $ac_link) 2>conftest.er1
6891   ac_status=$?
6892   grep -v '^ *+' conftest.er1 >conftest.err
6893   rm -f conftest.er1
6894   cat conftest.err >&5
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); } &&
6897          { ac_try='test -z "$ac_c_werror_flag"
6898                          || test ! -s conftest.err'
6899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900   (eval $ac_try) 2>&5
6901   ac_status=$?
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); }; } &&
6904          { ac_try='test -s conftest$ac_exeext'
6905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906   (eval $ac_try) 2>&5
6907   ac_status=$?
6908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); }; }; then
6910   ac_cv_search_gss_init_sec_context="none required"
6911 else
6912   echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6914
6915 fi
6916 rm -f conftest.err conftest.$ac_objext \
6917       conftest$ac_exeext conftest.$ac_ext
6918 if test "$ac_cv_search_gss_init_sec_context" = no; then
6919   for ac_lib in gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
6920     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6921     cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h.  */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h.  */
6927
6928 /* Override any gcc2 internal prototype to avoid an error.  */
6929 #ifdef __cplusplus
6930 extern "C"
6931 #endif
6932 /* We use char because int might match the return type of a gcc2
6933    builtin and then its argument prototype would still apply.  */
6934 char gss_init_sec_context ();
6935 int
6936 main ()
6937 {
6938 gss_init_sec_context ();
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945   (eval $ac_link) 2>conftest.er1
6946   ac_status=$?
6947   grep -v '^ *+' conftest.er1 >conftest.err
6948   rm -f conftest.er1
6949   cat conftest.err >&5
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); } &&
6952          { ac_try='test -z "$ac_c_werror_flag"
6953                          || test ! -s conftest.err'
6954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955   (eval $ac_try) 2>&5
6956   ac_status=$?
6957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958   (exit $ac_status); }; } &&
6959          { ac_try='test -s conftest$ac_exeext'
6960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961   (eval $ac_try) 2>&5
6962   ac_status=$?
6963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); }; }; then
6965   ac_cv_search_gss_init_sec_context="-l$ac_lib"
6966 break
6967 else
6968   echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971 fi
6972 rm -f conftest.err conftest.$ac_objext \
6973       conftest$ac_exeext conftest.$ac_ext
6974   done
6975 fi
6976 LIBS=$ac_func_search_save_LIBS
6977 fi
6978 echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
6979 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6
6980 if test "$ac_cv_search_gss_init_sec_context" != no; then
6981   test "$ac_cv_search_gss_init_sec_context" = "none required" || LIBS="$ac_cv_search_gss_init_sec_context $LIBS"
6982
6983 else
6984   { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
6985 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
6986    { (exit 1); exit 1; }; }
6987 fi
6988
6989   else
6990     LIBS="$LIBS -lgssapi32"
6991   fi
6992 fi
6993
6994 if test "$with_krb5" = yes ; then
6995   if test "$PORTNAME" != "win32"; then
6996      echo "$as_me:$LINENO: checking for library containing com_err" >&5
6997 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6998 if test "${ac_cv_search_com_err+set}" = set; then
6999   echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001   ac_func_search_save_LIBS=$LIBS
7002 ac_cv_search_com_err=no
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h.  */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h.  */
7009
7010 /* Override any gcc2 internal prototype to avoid an error.  */
7011 #ifdef __cplusplus
7012 extern "C"
7013 #endif
7014 /* We use char because int might match the return type of a gcc2
7015    builtin and then its argument prototype would still apply.  */
7016 char com_err ();
7017 int
7018 main ()
7019 {
7020 com_err ();
7021   ;
7022   return 0;
7023 }
7024 _ACEOF
7025 rm -f conftest.$ac_objext conftest$ac_exeext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027   (eval $ac_link) 2>conftest.er1
7028   ac_status=$?
7029   grep -v '^ *+' conftest.er1 >conftest.err
7030   rm -f conftest.er1
7031   cat conftest.err >&5
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); } &&
7034          { ac_try='test -z "$ac_c_werror_flag"
7035                          || test ! -s conftest.err'
7036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037   (eval $ac_try) 2>&5
7038   ac_status=$?
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); }; } &&
7041          { ac_try='test -s conftest$ac_exeext'
7042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043   (eval $ac_try) 2>&5
7044   ac_status=$?
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); }; }; then
7047   ac_cv_search_com_err="none required"
7048 else
7049   echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7051
7052 fi
7053 rm -f conftest.err conftest.$ac_objext \
7054       conftest$ac_exeext conftest.$ac_ext
7055 if test "$ac_cv_search_com_err" = no; then
7056   for ac_lib in krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7057     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7058     cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h.  */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h.  */
7064
7065 /* Override any gcc2 internal prototype to avoid an error.  */
7066 #ifdef __cplusplus
7067 extern "C"
7068 #endif
7069 /* We use char because int might match the return type of a gcc2
7070    builtin and then its argument prototype would still apply.  */
7071 char com_err ();
7072 int
7073 main ()
7074 {
7075 com_err ();
7076   ;
7077   return 0;
7078 }
7079 _ACEOF
7080 rm -f conftest.$ac_objext conftest$ac_exeext
7081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7082   (eval $ac_link) 2>conftest.er1
7083   ac_status=$?
7084   grep -v '^ *+' conftest.er1 >conftest.err
7085   rm -f conftest.er1
7086   cat conftest.err >&5
7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); } &&
7089          { ac_try='test -z "$ac_c_werror_flag"
7090                          || test ! -s conftest.err'
7091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092   (eval $ac_try) 2>&5
7093   ac_status=$?
7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095   (exit $ac_status); }; } &&
7096          { ac_try='test -s conftest$ac_exeext'
7097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098   (eval $ac_try) 2>&5
7099   ac_status=$?
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); }; }; then
7102   ac_cv_search_com_err="-l$ac_lib"
7103 break
7104 else
7105   echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7107
7108 fi
7109 rm -f conftest.err conftest.$ac_objext \
7110       conftest$ac_exeext conftest.$ac_ext
7111   done
7112 fi
7113 LIBS=$ac_func_search_save_LIBS
7114 fi
7115 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7116 echo "${ECHO_T}$ac_cv_search_com_err" >&6
7117 if test "$ac_cv_search_com_err" != no; then
7118   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
7119
7120 else
7121   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7122 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7123    { (exit 1); exit 1; }; }
7124 fi
7125
7126      echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7127 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
7128 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131   ac_func_search_save_LIBS=$LIBS
7132 ac_cv_search_krb5_sendauth=no
7133 cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h.  */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h.  */
7139
7140 /* Override any gcc2 internal prototype to avoid an error.  */
7141 #ifdef __cplusplus
7142 extern "C"
7143 #endif
7144 /* We use char because int might match the return type of a gcc2
7145    builtin and then its argument prototype would still apply.  */
7146 char krb5_sendauth ();
7147 int
7148 main ()
7149 {
7150 krb5_sendauth ();
7151   ;
7152   return 0;
7153 }
7154 _ACEOF
7155 rm -f conftest.$ac_objext conftest$ac_exeext
7156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7157   (eval $ac_link) 2>conftest.er1
7158   ac_status=$?
7159   grep -v '^ *+' conftest.er1 >conftest.err
7160   rm -f conftest.er1
7161   cat conftest.err >&5
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); } &&
7164          { ac_try='test -z "$ac_c_werror_flag"
7165                          || test ! -s conftest.err'
7166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167   (eval $ac_try) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); }; } &&
7171          { ac_try='test -s conftest$ac_exeext'
7172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173   (eval $ac_try) 2>&5
7174   ac_status=$?
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); }; }; then
7177   ac_cv_search_krb5_sendauth="none required"
7178 else
7179   echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7181
7182 fi
7183 rm -f conftest.err conftest.$ac_objext \
7184       conftest$ac_exeext conftest.$ac_ext
7185 if test "$ac_cv_search_krb5_sendauth" = no; then
7186   for ac_lib in krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7187     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7188     cat >conftest.$ac_ext <<_ACEOF
7189 /* confdefs.h.  */
7190 _ACEOF
7191 cat confdefs.h >>conftest.$ac_ext
7192 cat >>conftest.$ac_ext <<_ACEOF
7193 /* end confdefs.h.  */
7194
7195 /* Override any gcc2 internal prototype to avoid an error.  */
7196 #ifdef __cplusplus
7197 extern "C"
7198 #endif
7199 /* We use char because int might match the return type of a gcc2
7200    builtin and then its argument prototype would still apply.  */
7201 char krb5_sendauth ();
7202 int
7203 main ()
7204 {
7205 krb5_sendauth ();
7206   ;
7207   return 0;
7208 }
7209 _ACEOF
7210 rm -f conftest.$ac_objext conftest$ac_exeext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212   (eval $ac_link) 2>conftest.er1
7213   ac_status=$?
7214   grep -v '^ *+' conftest.er1 >conftest.err
7215   rm -f conftest.er1
7216   cat conftest.err >&5
7217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); } &&
7219          { ac_try='test -z "$ac_c_werror_flag"
7220                          || test ! -s conftest.err'
7221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222   (eval $ac_try) 2>&5
7223   ac_status=$?
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); }; } &&
7226          { ac_try='test -s conftest$ac_exeext'
7227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228   (eval $ac_try) 2>&5
7229   ac_status=$?
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); }; }; then
7232   ac_cv_search_krb5_sendauth="-l$ac_lib"
7233 break
7234 else
7235   echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7237
7238 fi
7239 rm -f conftest.err conftest.$ac_objext \
7240       conftest$ac_exeext conftest.$ac_ext
7241   done
7242 fi
7243 LIBS=$ac_func_search_save_LIBS
7244 fi
7245 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7246 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7247 if test "$ac_cv_search_krb5_sendauth" != no; then
7248   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7249
7250 else
7251   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7252 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7253    { (exit 1); exit 1; }; }
7254 fi
7255
7256   else
7257      echo "$as_me:$LINENO: checking for library containing com_err" >&5
7258 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
7259 if test "${ac_cv_search_com_err+set}" = set; then
7260   echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262   ac_func_search_save_LIBS=$LIBS
7263 ac_cv_search_com_err=no
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h.  */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h.  */
7270
7271 /* Override any gcc2 internal prototype to avoid an error.  */
7272 #ifdef __cplusplus
7273 extern "C"
7274 #endif
7275 /* We use char because int might match the return type of a gcc2
7276    builtin and then its argument prototype would still apply.  */
7277 char com_err ();
7278 int
7279 main ()
7280 {
7281 com_err ();
7282   ;
7283   return 0;
7284 }
7285 _ACEOF
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7288   (eval $ac_link) 2>conftest.er1
7289   ac_status=$?
7290   grep -v '^ *+' conftest.er1 >conftest.err
7291   rm -f conftest.er1
7292   cat conftest.err >&5
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); } &&
7295          { ac_try='test -z "$ac_c_werror_flag"
7296                          || test ! -s conftest.err'
7297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298   (eval $ac_try) 2>&5
7299   ac_status=$?
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); }; } &&
7302          { ac_try='test -s conftest$ac_exeext'
7303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304   (eval $ac_try) 2>&5
7305   ac_status=$?
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); }; }; then
7308   ac_cv_search_com_err="none required"
7309 else
7310   echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 fi
7314 rm -f conftest.err conftest.$ac_objext \
7315       conftest$ac_exeext conftest.$ac_ext
7316 if test "$ac_cv_search_com_err" = no; then
7317   for ac_lib in 'comerr32 -lkrb5_32'; do
7318     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7319     cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h.  */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h.  */
7325
7326 /* Override any gcc2 internal prototype to avoid an error.  */
7327 #ifdef __cplusplus
7328 extern "C"
7329 #endif
7330 /* We use char because int might match the return type of a gcc2
7331    builtin and then its argument prototype would still apply.  */
7332 char com_err ();
7333 int
7334 main ()
7335 {
7336 com_err ();
7337   ;
7338   return 0;
7339 }
7340 _ACEOF
7341 rm -f conftest.$ac_objext conftest$ac_exeext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7343   (eval $ac_link) 2>conftest.er1
7344   ac_status=$?
7345   grep -v '^ *+' conftest.er1 >conftest.err
7346   rm -f conftest.er1
7347   cat conftest.err >&5
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); } &&
7350          { ac_try='test -z "$ac_c_werror_flag"
7351                          || test ! -s conftest.err'
7352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353   (eval $ac_try) 2>&5
7354   ac_status=$?
7355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356   (exit $ac_status); }; } &&
7357          { ac_try='test -s conftest$ac_exeext'
7358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359   (eval $ac_try) 2>&5
7360   ac_status=$?
7361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362   (exit $ac_status); }; }; then
7363   ac_cv_search_com_err="-l$ac_lib"
7364 break
7365 else
7366   echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7368
7369 fi
7370 rm -f conftest.err conftest.$ac_objext \
7371       conftest$ac_exeext conftest.$ac_ext
7372   done
7373 fi
7374 LIBS=$ac_func_search_save_LIBS
7375 fi
7376 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7377 echo "${ECHO_T}$ac_cv_search_com_err" >&6
7378 if test "$ac_cv_search_com_err" != no; then
7379   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
7380
7381 else
7382   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7383 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7384    { (exit 1); exit 1; }; }
7385 fi
7386
7387   fi
7388 fi
7389
7390 if test "$with_openssl" = yes ; then
7391     if test "$PORTNAME" != "win32"; then
7392
7393 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7394 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7395 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398   ac_check_lib_save_LIBS=$LIBS
7399 LIBS="-lcrypto  $LIBS"
7400 cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h.  */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h.  */
7406
7407 /* Override any gcc2 internal prototype to avoid an error.  */
7408 #ifdef __cplusplus
7409 extern "C"
7410 #endif
7411 /* We use char because int might match the return type of a gcc2
7412    builtin and then its argument prototype would still apply.  */
7413 char CRYPTO_new_ex_data ();
7414 int
7415 main ()
7416 {
7417 CRYPTO_new_ex_data ();
7418   ;
7419   return 0;
7420 }
7421 _ACEOF
7422 rm -f conftest.$ac_objext conftest$ac_exeext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7424   (eval $ac_link) 2>conftest.er1
7425   ac_status=$?
7426   grep -v '^ *+' conftest.er1 >conftest.err
7427   rm -f conftest.er1
7428   cat conftest.err >&5
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); } &&
7431          { ac_try='test -z "$ac_c_werror_flag"
7432                          || test ! -s conftest.err'
7433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434   (eval $ac_try) 2>&5
7435   ac_status=$?
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); }; } &&
7438          { ac_try='test -s conftest$ac_exeext'
7439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440   (eval $ac_try) 2>&5
7441   ac_status=$?
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); }; }; then
7444   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7445 else
7446   echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7448
7449 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7450 fi
7451 rm -f conftest.err conftest.$ac_objext \
7452       conftest$ac_exeext conftest.$ac_ext
7453 LIBS=$ac_check_lib_save_LIBS
7454 fi
7455 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7456 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7457 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7458   cat >>confdefs.h <<_ACEOF
7459 #define HAVE_LIBCRYPTO 1
7460 _ACEOF
7461
7462   LIBS="-lcrypto $LIBS"
7463
7464 else
7465   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7466 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7467    { (exit 1); exit 1; }; }
7468 fi
7469
7470
7471 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7472 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7473 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7474   echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476   ac_check_lib_save_LIBS=$LIBS
7477 LIBS="-lssl  $LIBS"
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h.  */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h.  */
7484
7485 /* Override any gcc2 internal prototype to avoid an error.  */
7486 #ifdef __cplusplus
7487 extern "C"
7488 #endif
7489 /* We use char because int might match the return type of a gcc2
7490    builtin and then its argument prototype would still apply.  */
7491 char SSL_library_init ();
7492 int
7493 main ()
7494 {
7495 SSL_library_init ();
7496   ;
7497   return 0;
7498 }
7499 _ACEOF
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7502   (eval $ac_link) 2>conftest.er1
7503   ac_status=$?
7504   grep -v '^ *+' conftest.er1 >conftest.err
7505   rm -f conftest.er1
7506   cat conftest.err >&5
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); } &&
7509          { ac_try='test -z "$ac_c_werror_flag"
7510                          || test ! -s conftest.err'
7511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512   (eval $ac_try) 2>&5
7513   ac_status=$?
7514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515   (exit $ac_status); }; } &&
7516          { ac_try='test -s conftest$ac_exeext'
7517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518   (eval $ac_try) 2>&5
7519   ac_status=$?
7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521   (exit $ac_status); }; }; then
7522   ac_cv_lib_ssl_SSL_library_init=yes
7523 else
7524   echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7526
7527 ac_cv_lib_ssl_SSL_library_init=no
7528 fi
7529 rm -f conftest.err conftest.$ac_objext \
7530       conftest$ac_exeext conftest.$ac_ext
7531 LIBS=$ac_check_lib_save_LIBS
7532 fi
7533 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7534 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7535 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7536   cat >>confdefs.h <<_ACEOF
7537 #define HAVE_LIBSSL 1
7538 _ACEOF
7539
7540   LIBS="-lssl $LIBS"
7541
7542 else
7543   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7544 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7545    { (exit 1); exit 1; }; }
7546 fi
7547
7548   else
7549
7550 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7551 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7552 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   ac_check_lib_save_LIBS=$LIBS
7556 LIBS="-leay32  $LIBS"
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h.  */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h.  */
7563
7564 /* Override any gcc2 internal prototype to avoid an error.  */
7565 #ifdef __cplusplus
7566 extern "C"
7567 #endif
7568 /* We use char because int might match the return type of a gcc2
7569    builtin and then its argument prototype would still apply.  */
7570 char CRYPTO_new_ex_data ();
7571 int
7572 main ()
7573 {
7574 CRYPTO_new_ex_data ();
7575   ;
7576   return 0;
7577 }
7578 _ACEOF
7579 rm -f conftest.$ac_objext conftest$ac_exeext
7580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581   (eval $ac_link) 2>conftest.er1
7582   ac_status=$?
7583   grep -v '^ *+' conftest.er1 >conftest.err
7584   rm -f conftest.er1
7585   cat conftest.err >&5
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); } &&
7588          { ac_try='test -z "$ac_c_werror_flag"
7589                          || test ! -s conftest.err'
7590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591   (eval $ac_try) 2>&5
7592   ac_status=$?
7593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594   (exit $ac_status); }; } &&
7595          { ac_try='test -s conftest$ac_exeext'
7596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597   (eval $ac_try) 2>&5
7598   ac_status=$?
7599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600   (exit $ac_status); }; }; then
7601   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7602 else
7603   echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7605
7606 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7607 fi
7608 rm -f conftest.err conftest.$ac_objext \
7609       conftest$ac_exeext conftest.$ac_ext
7610 LIBS=$ac_check_lib_save_LIBS
7611 fi
7612 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7613 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7614 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7615   cat >>confdefs.h <<_ACEOF
7616 #define HAVE_LIBEAY32 1
7617 _ACEOF
7618
7619   LIBS="-leay32 $LIBS"
7620
7621 else
7622   { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7623 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7624    { (exit 1); exit 1; }; }
7625 fi
7626
7627
7628 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7629 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7630 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7631   echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633   ac_check_lib_save_LIBS=$LIBS
7634 LIBS="-lssleay32  $LIBS"
7635 cat >conftest.$ac_ext <<_ACEOF
7636 /* confdefs.h.  */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h.  */
7641
7642 /* Override any gcc2 internal prototype to avoid an error.  */
7643 #ifdef __cplusplus
7644 extern "C"
7645 #endif
7646 /* We use char because int might match the return type of a gcc2
7647    builtin and then its argument prototype would still apply.  */
7648 char SSL_library_init ();
7649 int
7650 main ()
7651 {
7652 SSL_library_init ();
7653   ;
7654   return 0;
7655 }
7656 _ACEOF
7657 rm -f conftest.$ac_objext conftest$ac_exeext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659   (eval $ac_link) 2>conftest.er1
7660   ac_status=$?
7661   grep -v '^ *+' conftest.er1 >conftest.err
7662   rm -f conftest.er1
7663   cat conftest.err >&5
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); } &&
7666          { ac_try='test -z "$ac_c_werror_flag"
7667                          || test ! -s conftest.err'
7668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669   (eval $ac_try) 2>&5
7670   ac_status=$?
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); }; } &&
7673          { ac_try='test -s conftest$ac_exeext'
7674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675   (eval $ac_try) 2>&5
7676   ac_status=$?
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); }; }; then
7679   ac_cv_lib_ssleay32_SSL_library_init=yes
7680 else
7681   echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684 ac_cv_lib_ssleay32_SSL_library_init=no
7685 fi
7686 rm -f conftest.err conftest.$ac_objext \
7687       conftest$ac_exeext conftest.$ac_ext
7688 LIBS=$ac_check_lib_save_LIBS
7689 fi
7690 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7691 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7692 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7693   cat >>confdefs.h <<_ACEOF
7694 #define HAVE_LIBSSLEAY32 1
7695 _ACEOF
7696
7697   LIBS="-lssleay32 $LIBS"
7698
7699 else
7700   { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7701 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7702    { (exit 1); exit 1; }; }
7703 fi
7704
7705   fi
7706 fi
7707
7708 if test "$with_pam" = yes ; then
7709
7710 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7711 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7712 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715   ac_check_lib_save_LIBS=$LIBS
7716 LIBS="-lpam  $LIBS"
7717 cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h.  */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h.  */
7723
7724 /* Override any gcc2 internal prototype to avoid an error.  */
7725 #ifdef __cplusplus
7726 extern "C"
7727 #endif
7728 /* We use char because int might match the return type of a gcc2
7729    builtin and then its argument prototype would still apply.  */
7730 char pam_start ();
7731 int
7732 main ()
7733 {
7734 pam_start ();
7735   ;
7736   return 0;
7737 }
7738 _ACEOF
7739 rm -f conftest.$ac_objext conftest$ac_exeext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741   (eval $ac_link) 2>conftest.er1
7742   ac_status=$?
7743   grep -v '^ *+' conftest.er1 >conftest.err
7744   rm -f conftest.er1
7745   cat conftest.err >&5
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); } &&
7748          { ac_try='test -z "$ac_c_werror_flag"
7749                          || test ! -s conftest.err'
7750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751   (eval $ac_try) 2>&5
7752   ac_status=$?
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); }; } &&
7755          { ac_try='test -s conftest$ac_exeext'
7756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757   (eval $ac_try) 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); }; }; then
7761   ac_cv_lib_pam_pam_start=yes
7762 else
7763   echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7765
7766 ac_cv_lib_pam_pam_start=no
7767 fi
7768 rm -f conftest.err conftest.$ac_objext \
7769       conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_lib_save_LIBS
7771 fi
7772 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7773 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7774 if test $ac_cv_lib_pam_pam_start = yes; then
7775   cat >>confdefs.h <<_ACEOF
7776 #define HAVE_LIBPAM 1
7777 _ACEOF
7778
7779   LIBS="-lpam $LIBS"
7780
7781 else
7782   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7783 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7784    { (exit 1); exit 1; }; }
7785 fi
7786
7787 fi
7788
7789 if test "$with_libxml" = yes ; then
7790
7791 echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
7792 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6
7793 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796   ac_check_lib_save_LIBS=$LIBS
7797 LIBS="-lxml2  $LIBS"
7798 cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h.  */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h.  */
7804
7805 /* Override any gcc2 internal prototype to avoid an error.  */
7806 #ifdef __cplusplus
7807 extern "C"
7808 #endif
7809 /* We use char because int might match the return type of a gcc2
7810    builtin and then its argument prototype would still apply.  */
7811 char xmlSaveToBuffer ();
7812 int
7813 main ()
7814 {
7815 xmlSaveToBuffer ();
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822   (eval $ac_link) 2>conftest.er1
7823   ac_status=$?
7824   grep -v '^ *+' conftest.er1 >conftest.err
7825   rm -f conftest.er1
7826   cat conftest.err >&5
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } &&
7829          { ac_try='test -z "$ac_c_werror_flag"
7830                          || test ! -s conftest.err'
7831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832   (eval $ac_try) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; } &&
7836          { ac_try='test -s conftest$ac_exeext'
7837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838   (eval $ac_try) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); }; }; then
7842   ac_cv_lib_xml2_xmlSaveToBuffer=yes
7843 else
7844   echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7846
7847 ac_cv_lib_xml2_xmlSaveToBuffer=no
7848 fi
7849 rm -f conftest.err conftest.$ac_objext \
7850       conftest$ac_exeext conftest.$ac_ext
7851 LIBS=$ac_check_lib_save_LIBS
7852 fi
7853 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
7854 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6
7855 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
7856   cat >>confdefs.h <<_ACEOF
7857 #define HAVE_LIBXML2 1
7858 _ACEOF
7859
7860   LIBS="-lxml2 $LIBS"
7861
7862 else
7863   { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
7864 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
7865    { (exit 1); exit 1; }; }
7866 fi
7867
7868 fi
7869
7870 if test "$with_libxslt" = yes ; then
7871
7872 echo "$as_me:$LINENO: checking for xsltLibxmlVersion in -lxslt" >&5
7873 echo $ECHO_N "checking for xsltLibxmlVersion in -lxslt... $ECHO_C" >&6
7874 if test "${ac_cv_lib_xslt_xsltLibxmlVersion+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   ac_check_lib_save_LIBS=$LIBS
7878 LIBS="-lxslt  $LIBS"
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885
7886 /* Override any gcc2 internal prototype to avoid an error.  */
7887 #ifdef __cplusplus
7888 extern "C"
7889 #endif
7890 /* We use char because int might match the return type of a gcc2
7891    builtin and then its argument prototype would still apply.  */
7892 char xsltLibxmlVersion ();
7893 int
7894 main ()
7895 {
7896 xsltLibxmlVersion ();
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903   (eval $ac_link) 2>conftest.er1
7904   ac_status=$?
7905   grep -v '^ *+' conftest.er1 >conftest.err
7906   rm -f conftest.er1
7907   cat conftest.err >&5
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); } &&
7910          { ac_try='test -z "$ac_c_werror_flag"
7911                          || test ! -s conftest.err'
7912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913   (eval $ac_try) 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); }; } &&
7917          { ac_try='test -s conftest$ac_exeext'
7918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919   (eval $ac_try) 2>&5
7920   ac_status=$?
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); }; }; then
7923   ac_cv_lib_xslt_xsltLibxmlVersion=yes
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928 ac_cv_lib_xslt_xsltLibxmlVersion=no
7929 fi
7930 rm -f conftest.err conftest.$ac_objext \
7931       conftest$ac_exeext conftest.$ac_ext
7932 LIBS=$ac_check_lib_save_LIBS
7933 fi
7934 echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltLibxmlVersion" >&5
7935 echo "${ECHO_T}$ac_cv_lib_xslt_xsltLibxmlVersion" >&6
7936 if test $ac_cv_lib_xslt_xsltLibxmlVersion = yes; then
7937   cat >>confdefs.h <<_ACEOF
7938 #define HAVE_LIBXSLT 1
7939 _ACEOF
7940
7941   LIBS="-lxslt $LIBS"
7942
7943 else
7944   { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
7945 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
7946    { (exit 1); exit 1; }; }
7947 fi
7948
7949 fi
7950
7951
7952 ##
7953 ## Header files
7954 ##
7955
7956 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7957 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7958 if test "${ac_cv_header_stdc+set}" = set; then
7959   echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961   cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h.  */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h.  */
7967 #include <stdlib.h>
7968 #include <stdarg.h>
7969 #include <string.h>
7970 #include <float.h>
7971
7972 int
7973 main ()
7974 {
7975
7976   ;
7977   return 0;
7978 }
7979 _ACEOF
7980 rm -f conftest.$ac_objext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7982   (eval $ac_compile) 2>conftest.er1
7983   ac_status=$?
7984   grep -v '^ *+' conftest.er1 >conftest.err
7985   rm -f conftest.er1
7986   cat conftest.err >&5
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); } &&
7989          { ac_try='test -z "$ac_c_werror_flag"
7990                          || test ! -s conftest.err'
7991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992   (eval $ac_try) 2>&5
7993   ac_status=$?
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); }; } &&
7996          { ac_try='test -s conftest.$ac_objext'
7997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998   (eval $ac_try) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); }; }; then
8002   ac_cv_header_stdc=yes
8003 else
8004   echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8006
8007 ac_cv_header_stdc=no
8008 fi
8009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8010
8011 if test $ac_cv_header_stdc = yes; then
8012   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8013   cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h.  */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h.  */
8019 #include <string.h>
8020
8021 _ACEOF
8022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8023   $EGREP "memchr" >/dev/null 2>&1; then
8024   :
8025 else
8026   ac_cv_header_stdc=no
8027 fi
8028 rm -f conftest*
8029
8030 fi
8031
8032 if test $ac_cv_header_stdc = yes; then
8033   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8034   cat >conftest.$ac_ext <<_ACEOF
8035 /* confdefs.h.  */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h.  */
8040 #include <stdlib.h>
8041
8042 _ACEOF
8043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8044   $EGREP "free" >/dev/null 2>&1; then
8045   :
8046 else
8047   ac_cv_header_stdc=no
8048 fi
8049 rm -f conftest*
8050
8051 fi
8052
8053 if test $ac_cv_header_stdc = yes; then
8054   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8055   if test "$cross_compiling" = yes; then
8056   :
8057 else
8058   cat >conftest.$ac_ext <<_ACEOF
8059 /* confdefs.h.  */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h.  */
8064 #include <ctype.h>
8065 #if ((' ' & 0x0FF) == 0x020)
8066 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8067 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8068 #else
8069 # define ISLOWER(c) \
8070                    (('a' <= (c) && (c) <= 'i') \
8071                      || ('j' <= (c) && (c) <= 'r') \
8072                      || ('s' <= (c) && (c) <= 'z'))
8073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8074 #endif
8075
8076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8077 int
8078 main ()
8079 {
8080   int i;
8081   for (i = 0; i < 256; i++)
8082     if (XOR (islower (i), ISLOWER (i))
8083         || toupper (i) != TOUPPER (i))
8084       exit(2);
8085   exit (0);
8086 }
8087 _ACEOF
8088 rm -f conftest$ac_exeext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090   (eval $ac_link) 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095   (eval $ac_try) 2>&5
8096   ac_status=$?
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); }; }; then
8099   :
8100 else
8101   echo "$as_me: program exited with status $ac_status" >&5
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105 ( exit $ac_status )
8106 ac_cv_header_stdc=no
8107 fi
8108 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8109 fi
8110 fi
8111 fi
8112 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8113 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8114 if test $ac_cv_header_stdc = yes; then
8115
8116 cat >>confdefs.h <<\_ACEOF
8117 #define STDC_HEADERS 1
8118 _ACEOF
8119
8120 fi
8121
8122 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8133                   inttypes.h stdint.h unistd.h
8134 do
8135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8136 echo "$as_me:$LINENO: checking for $ac_header" >&5
8137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141   cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h.  */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h.  */
8147 $ac_includes_default
8148
8149 #include <$ac_header>
8150 _ACEOF
8151 rm -f conftest.$ac_objext
8152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8153   (eval $ac_compile) 2>conftest.er1
8154   ac_status=$?
8155   grep -v '^ *+' conftest.er1 >conftest.err
8156   rm -f conftest.er1
8157   cat conftest.err >&5
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   (exit $ac_status); } &&
8160          { ac_try='test -z "$ac_c_werror_flag"
8161                          || test ! -s conftest.err'
8162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163   (eval $ac_try) 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); }; } &&
8167          { ac_try='test -s conftest.$ac_objext'
8168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169   (eval $ac_try) 2>&5
8170   ac_status=$?
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); }; }; then
8173   eval "$as_ac_Header=yes"
8174 else
8175   echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8177
8178 eval "$as_ac_Header=no"
8179 fi
8180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8181 fi
8182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8185   cat >>confdefs.h <<_ACEOF
8186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8187 _ACEOF
8188
8189 fi
8190
8191 done
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
8221 do
8222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8224   echo "$as_me:$LINENO: checking for $ac_header" >&5
8225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8227   echo $ECHO_N "(cached) $ECHO_C" >&6
8228 fi
8229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8231 else
8232   # Is the header compilable?
8233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8235 cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h.  */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h.  */
8241 $ac_includes_default
8242 #include <$ac_header>
8243 _ACEOF
8244 rm -f conftest.$ac_objext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8246   (eval $ac_compile) 2>conftest.er1
8247   ac_status=$?
8248   grep -v '^ *+' conftest.er1 >conftest.err
8249   rm -f conftest.er1
8250   cat conftest.err >&5
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); } &&
8253          { ac_try='test -z "$ac_c_werror_flag"
8254                          || test ! -s conftest.err'
8255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256   (eval $ac_try) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; } &&
8260          { ac_try='test -s conftest.$ac_objext'
8261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262   (eval $ac_try) 2>&5
8263   ac_status=$?
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); }; }; then
8266   ac_header_compiler=yes
8267 else
8268   echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8270
8271 ac_header_compiler=no
8272 fi
8273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8275 echo "${ECHO_T}$ac_header_compiler" >&6
8276
8277 # Is the header present?
8278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8280 cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h.  */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h.  */
8286 #include <$ac_header>
8287 _ACEOF
8288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8290   ac_status=$?
8291   grep -v '^ *+' conftest.er1 >conftest.err
8292   rm -f conftest.er1
8293   cat conftest.err >&5
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); } >/dev/null; then
8296   if test -s conftest.err; then
8297     ac_cpp_err=$ac_c_preproc_warn_flag
8298     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8299   else
8300     ac_cpp_err=
8301   fi
8302 else
8303   ac_cpp_err=yes
8304 fi
8305 if test -z "$ac_cpp_err"; then
8306   ac_header_preproc=yes
8307 else
8308   echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8310
8311   ac_header_preproc=no
8312 fi
8313 rm -f conftest.err conftest.$ac_ext
8314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8315 echo "${ECHO_T}$ac_header_preproc" >&6
8316
8317 # So?  What about this header?
8318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8319   yes:no: )
8320     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8324     ac_header_preproc=yes
8325     ;;
8326   no:yes:* )
8327     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8329     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8330 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8331     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8333     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8334 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8337     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8339     (
8340       cat <<\_ASBOX
8341 ## ---------------------------------------- ##
8342 ## Report this to pgsql-bugs@postgresql.org ##
8343 ## ---------------------------------------- ##
8344 _ASBOX
8345     ) |
8346       sed "s/^/$as_me: WARNING:     /" >&2
8347     ;;
8348 esac
8349 echo "$as_me:$LINENO: checking for $ac_header" >&5
8350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8352   echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354   eval "$as_ac_Header=\$ac_header_preproc"
8355 fi
8356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8358
8359 fi
8360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8361   cat >>confdefs.h <<_ACEOF
8362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8363 _ACEOF
8364
8365 fi
8366
8367 done
8368
8369
8370 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8371 # netinet/in.h is included first.
8372
8373 for ac_header in netinet/in.h
8374 do
8375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8377   echo "$as_me:$LINENO: checking for $ac_header" >&5
8378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 fi
8382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8384 else
8385   # Is the header compilable?
8386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h.  */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h.  */
8394 $ac_includes_default
8395 #include <$ac_header>
8396 _ACEOF
8397 rm -f conftest.$ac_objext
8398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8399   (eval $ac_compile) 2>conftest.er1
8400   ac_status=$?
8401   grep -v '^ *+' conftest.er1 >conftest.err
8402   rm -f conftest.er1
8403   cat conftest.err >&5
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); } &&
8406          { ac_try='test -z "$ac_c_werror_flag"
8407                          || test ! -s conftest.err'
8408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409   (eval $ac_try) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; } &&
8413          { ac_try='test -s conftest.$ac_objext'
8414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415   (eval $ac_try) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   ac_header_compiler=yes
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424 ac_header_compiler=no
8425 fi
8426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8428 echo "${ECHO_T}$ac_header_compiler" >&6
8429
8430 # Is the header present?
8431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8433 cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h.  */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h.  */
8439 #include <$ac_header>
8440 _ACEOF
8441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8443   ac_status=$?
8444   grep -v '^ *+' conftest.er1 >conftest.err
8445   rm -f conftest.er1
8446   cat conftest.err >&5
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); } >/dev/null; then
8449   if test -s conftest.err; then
8450     ac_cpp_err=$ac_c_preproc_warn_flag
8451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8452   else
8453     ac_cpp_err=
8454   fi
8455 else
8456   ac_cpp_err=yes
8457 fi
8458 if test -z "$ac_cpp_err"; then
8459   ac_header_preproc=yes
8460 else
8461   echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464   ac_header_preproc=no
8465 fi
8466 rm -f conftest.err conftest.$ac_ext
8467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8468 echo "${ECHO_T}$ac_header_preproc" >&6
8469
8470 # So?  What about this header?
8471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8472   yes:no: )
8473     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8477     ac_header_preproc=yes
8478     ;;
8479   no:yes:* )
8480     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8482     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8483 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8484     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8486     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8487 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8490     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8492     (
8493       cat <<\_ASBOX
8494 ## ---------------------------------------- ##
8495 ## Report this to pgsql-bugs@postgresql.org ##
8496 ## ---------------------------------------- ##
8497 _ASBOX
8498     ) |
8499       sed "s/^/$as_me: WARNING:     /" >&2
8500     ;;
8501 esac
8502 echo "$as_me:$LINENO: checking for $ac_header" >&5
8503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   eval "$as_ac_Header=\$ac_header_preproc"
8508 fi
8509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8511
8512 fi
8513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8514   cat >>confdefs.h <<_ACEOF
8515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8516 _ACEOF
8517
8518 fi
8519
8520 done
8521
8522
8523 for ac_header in netinet/tcp.h
8524 do
8525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8526 echo "$as_me:$LINENO: checking for $ac_header" >&5
8527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8529   echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531   cat >conftest.$ac_ext <<_ACEOF
8532 /* confdefs.h.  */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h.  */
8537 $ac_includes_default
8538 #ifdef HAVE_NETINET_IN_H
8539 #include <netinet/in.h>
8540 #endif
8541
8542
8543 #include <$ac_header>
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547   (eval $ac_compile) 2>conftest.er1
8548   ac_status=$?
8549   grep -v '^ *+' conftest.er1 >conftest.err
8550   rm -f conftest.er1
8551   cat conftest.err >&5
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } &&
8554          { ac_try='test -z "$ac_c_werror_flag"
8555                          || test ! -s conftest.err'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; } &&
8561          { ac_try='test -s conftest.$ac_objext'
8562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563   (eval $ac_try) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; }; then
8567   eval "$as_ac_Header=yes"
8568 else
8569   echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 eval "$as_ac_Header=no"
8573 fi
8574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8575 fi
8576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8579   cat >>confdefs.h <<_ACEOF
8580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8581 _ACEOF
8582
8583 fi
8584
8585 done
8586
8587
8588 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8589
8590 for ac_header in readline/readline.h
8591 do
8592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594   echo "$as_me:$LINENO: checking for $ac_header" >&5
8595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 fi
8599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8601 else
8602   # Is the header compilable?
8603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8605 cat >conftest.$ac_ext <<_ACEOF
8606 /* confdefs.h.  */
8607 _ACEOF
8608 cat confdefs.h >>conftest.$ac_ext
8609 cat >>conftest.$ac_ext <<_ACEOF
8610 /* end confdefs.h.  */
8611 $ac_includes_default
8612 #include <$ac_header>
8613 _ACEOF
8614 rm -f conftest.$ac_objext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8616   (eval $ac_compile) 2>conftest.er1
8617   ac_status=$?
8618   grep -v '^ *+' conftest.er1 >conftest.err
8619   rm -f conftest.er1
8620   cat conftest.err >&5
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); } &&
8623          { ac_try='test -z "$ac_c_werror_flag"
8624                          || test ! -s conftest.err'
8625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626   (eval $ac_try) 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); }; } &&
8630          { ac_try='test -s conftest.$ac_objext'
8631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632   (eval $ac_try) 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); }; }; then
8636   ac_header_compiler=yes
8637 else
8638   echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8640
8641 ac_header_compiler=no
8642 fi
8643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645 echo "${ECHO_T}$ac_header_compiler" >&6
8646
8647 # Is the header present?
8648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656 #include <$ac_header>
8657 _ACEOF
8658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8659   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8660   ac_status=$?
8661   grep -v '^ *+' conftest.er1 >conftest.err
8662   rm -f conftest.er1
8663   cat conftest.err >&5
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); } >/dev/null; then
8666   if test -s conftest.err; then
8667     ac_cpp_err=$ac_c_preproc_warn_flag
8668     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8669   else
8670     ac_cpp_err=
8671   fi
8672 else
8673   ac_cpp_err=yes
8674 fi
8675 if test -z "$ac_cpp_err"; then
8676   ac_header_preproc=yes
8677 else
8678   echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8680
8681   ac_header_preproc=no
8682 fi
8683 rm -f conftest.err conftest.$ac_ext
8684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8685 echo "${ECHO_T}$ac_header_preproc" >&6
8686
8687 # So?  What about this header?
8688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8689   yes:no: )
8690     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8694     ac_header_preproc=yes
8695     ;;
8696   no:yes:* )
8697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8699     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8700 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8701     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8703     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8704 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8707     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8709     (
8710       cat <<\_ASBOX
8711 ## ---------------------------------------- ##
8712 ## Report this to pgsql-bugs@postgresql.org ##
8713 ## ---------------------------------------- ##
8714 _ASBOX
8715     ) |
8716       sed "s/^/$as_me: WARNING:     /" >&2
8717     ;;
8718 esac
8719 echo "$as_me:$LINENO: checking for $ac_header" >&5
8720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724   eval "$as_ac_Header=\$ac_header_preproc"
8725 fi
8726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8728
8729 fi
8730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8731   cat >>confdefs.h <<_ACEOF
8732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8733 _ACEOF
8734
8735 else
8736
8737 for ac_header in readline.h
8738 do
8739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741   echo "$as_me:$LINENO: checking for $ac_header" >&5
8742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8744   echo $ECHO_N "(cached) $ECHO_C" >&6
8745 fi
8746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8748 else
8749   # Is the header compilable?
8750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h.  */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h.  */
8758 $ac_includes_default
8759 #include <$ac_header>
8760 _ACEOF
8761 rm -f conftest.$ac_objext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8763   (eval $ac_compile) 2>conftest.er1
8764   ac_status=$?
8765   grep -v '^ *+' conftest.er1 >conftest.err
8766   rm -f conftest.er1
8767   cat conftest.err >&5
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); } &&
8770          { ac_try='test -z "$ac_c_werror_flag"
8771                          || test ! -s conftest.err'
8772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773   (eval $ac_try) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; } &&
8777          { ac_try='test -s conftest.$ac_objext'
8778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779   (eval $ac_try) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; }; then
8783   ac_header_compiler=yes
8784 else
8785   echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8787
8788 ac_header_compiler=no
8789 fi
8790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8792 echo "${ECHO_T}$ac_header_compiler" >&6
8793
8794 # Is the header present?
8795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h.  */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h.  */
8803 #include <$ac_header>
8804 _ACEOF
8805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8807   ac_status=$?
8808   grep -v '^ *+' conftest.er1 >conftest.err
8809   rm -f conftest.er1
8810   cat conftest.err >&5
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); } >/dev/null; then
8813   if test -s conftest.err; then
8814     ac_cpp_err=$ac_c_preproc_warn_flag
8815     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8816   else
8817     ac_cpp_err=
8818   fi
8819 else
8820   ac_cpp_err=yes
8821 fi
8822 if test -z "$ac_cpp_err"; then
8823   ac_header_preproc=yes
8824 else
8825   echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8827
8828   ac_header_preproc=no
8829 fi
8830 rm -f conftest.err conftest.$ac_ext
8831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8832 echo "${ECHO_T}$ac_header_preproc" >&6
8833
8834 # So?  What about this header?
8835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8836   yes:no: )
8837     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8841     ac_header_preproc=yes
8842     ;;
8843   no:yes:* )
8844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8846     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8847 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8848     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8850     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8851 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8854     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8856     (
8857       cat <<\_ASBOX
8858 ## ---------------------------------------- ##
8859 ## Report this to pgsql-bugs@postgresql.org ##
8860 ## ---------------------------------------- ##
8861 _ASBOX
8862     ) |
8863       sed "s/^/$as_me: WARNING:     /" >&2
8864     ;;
8865 esac
8866 echo "$as_me:$LINENO: checking for $ac_header" >&5
8867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8869   echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871   eval "$as_ac_Header=\$ac_header_preproc"
8872 fi
8873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8875
8876 fi
8877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8878   cat >>confdefs.h <<_ACEOF
8879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8880 _ACEOF
8881
8882 else
8883   { { echo "$as_me:$LINENO: error: readline header not found
8884 If you have readline already installed, see config.log for details on the
8885 failure.  It is possible the compiler isn't looking in the proper directory.
8886 Use --without-readline to disable readline support." >&5
8887 echo "$as_me: error: readline header not found
8888 If you have readline already installed, see config.log for details on the
8889 failure.  It is possible the compiler isn't looking in the proper directory.
8890 Use --without-readline to disable readline support." >&2;}
8891    { (exit 1); exit 1; }; }
8892 fi
8893
8894 done
8895
8896 fi
8897
8898 done
8899
8900
8901 for ac_header in readline/history.h
8902 do
8903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8905   echo "$as_me:$LINENO: checking for $ac_header" >&5
8906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8908   echo $ECHO_N "(cached) $ECHO_C" >&6
8909 fi
8910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8912 else
8913   # Is the header compilable?
8914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8916 cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h.  */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h.  */
8922 $ac_includes_default
8923 #include <$ac_header>
8924 _ACEOF
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927   (eval $ac_compile) 2>conftest.er1
8928   ac_status=$?
8929   grep -v '^ *+' conftest.er1 >conftest.err
8930   rm -f conftest.er1
8931   cat conftest.err >&5
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); } &&
8934          { ac_try='test -z "$ac_c_werror_flag"
8935                          || test ! -s conftest.err'
8936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937   (eval $ac_try) 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); }; } &&
8941          { ac_try='test -s conftest.$ac_objext'
8942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943   (eval $ac_try) 2>&5
8944   ac_status=$?
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); }; }; then
8947   ac_header_compiler=yes
8948 else
8949   echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952 ac_header_compiler=no
8953 fi
8954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8956 echo "${ECHO_T}$ac_header_compiler" >&6
8957
8958 # Is the header present?
8959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8961 cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h.  */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h.  */
8967 #include <$ac_header>
8968 _ACEOF
8969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8971   ac_status=$?
8972   grep -v '^ *+' conftest.er1 >conftest.err
8973   rm -f conftest.er1
8974   cat conftest.err >&5
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); } >/dev/null; then
8977   if test -s conftest.err; then
8978     ac_cpp_err=$ac_c_preproc_warn_flag
8979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8980   else
8981     ac_cpp_err=
8982   fi
8983 else
8984   ac_cpp_err=yes
8985 fi
8986 if test -z "$ac_cpp_err"; then
8987   ac_header_preproc=yes
8988 else
8989   echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8991
8992   ac_header_preproc=no
8993 fi
8994 rm -f conftest.err conftest.$ac_ext
8995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8996 echo "${ECHO_T}$ac_header_preproc" >&6
8997
8998 # So?  What about this header?
8999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9000   yes:no: )
9001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9005     ac_header_preproc=yes
9006     ;;
9007   no:yes:* )
9008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9020     (
9021       cat <<\_ASBOX
9022 ## ---------------------------------------- ##
9023 ## Report this to pgsql-bugs@postgresql.org ##
9024 ## ---------------------------------------- ##
9025 _ASBOX
9026     ) |
9027       sed "s/^/$as_me: WARNING:     /" >&2
9028     ;;
9029 esac
9030 echo "$as_me:$LINENO: checking for $ac_header" >&5
9031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9033   echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035   eval "$as_ac_Header=\$ac_header_preproc"
9036 fi
9037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9039
9040 fi
9041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9042   cat >>confdefs.h <<_ACEOF
9043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9044 _ACEOF
9045
9046 else
9047
9048 for ac_header in history.h
9049 do
9050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9052   echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055   echo $ECHO_N "(cached) $ECHO_C" >&6
9056 fi
9057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9059 else
9060   # Is the header compilable?
9061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9063 cat >conftest.$ac_ext <<_ACEOF
9064 /* confdefs.h.  */
9065 _ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h.  */
9069 $ac_includes_default
9070 #include <$ac_header>
9071 _ACEOF
9072 rm -f conftest.$ac_objext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9074   (eval $ac_compile) 2>conftest.er1
9075   ac_status=$?
9076   grep -v '^ *+' conftest.er1 >conftest.err
9077   rm -f conftest.er1
9078   cat conftest.err >&5
9079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   (exit $ac_status); } &&
9081          { ac_try='test -z "$ac_c_werror_flag"
9082                          || test ! -s conftest.err'
9083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084   (eval $ac_try) 2>&5
9085   ac_status=$?
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); }; } &&
9088          { ac_try='test -s conftest.$ac_objext'
9089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090   (eval $ac_try) 2>&5
9091   ac_status=$?
9092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093   (exit $ac_status); }; }; then
9094   ac_header_compiler=yes
9095 else
9096   echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9098
9099 ac_header_compiler=no
9100 fi
9101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9103 echo "${ECHO_T}$ac_header_compiler" >&6
9104
9105 # Is the header present?
9106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h.  */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h.  */
9114 #include <$ac_header>
9115 _ACEOF
9116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9118   ac_status=$?
9119   grep -v '^ *+' conftest.er1 >conftest.err
9120   rm -f conftest.er1
9121   cat conftest.err >&5
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); } >/dev/null; then
9124   if test -s conftest.err; then
9125     ac_cpp_err=$ac_c_preproc_warn_flag
9126     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9127   else
9128     ac_cpp_err=
9129   fi
9130 else
9131   ac_cpp_err=yes
9132 fi
9133 if test -z "$ac_cpp_err"; then
9134   ac_header_preproc=yes
9135 else
9136   echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9138
9139   ac_header_preproc=no
9140 fi
9141 rm -f conftest.err conftest.$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9143 echo "${ECHO_T}$ac_header_preproc" >&6
9144
9145 # So?  What about this header?
9146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9147   yes:no: )
9148     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9152     ac_header_preproc=yes
9153     ;;
9154   no:yes:* )
9155     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9157     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9158 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9159     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9161     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9162 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9165     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9167     (
9168       cat <<\_ASBOX
9169 ## ---------------------------------------- ##
9170 ## Report this to pgsql-bugs@postgresql.org ##
9171 ## ---------------------------------------- ##
9172 _ASBOX
9173     ) |
9174       sed "s/^/$as_me: WARNING:     /" >&2
9175     ;;
9176 esac
9177 echo "$as_me:$LINENO: checking for $ac_header" >&5
9178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182   eval "$as_ac_Header=\$ac_header_preproc"
9183 fi
9184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9186
9187 fi
9188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9189   cat >>confdefs.h <<_ACEOF
9190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9191 _ACEOF
9192
9193 else
9194   { { echo "$as_me:$LINENO: error: history header not found
9195 If you have readline already installed, see config.log for details on the
9196 failure.  It is possible the compiler isn't looking in the proper directory.
9197 Use --without-readline to disable readline support." >&5
9198 echo "$as_me: error: history header not found
9199 If you have readline already installed, see config.log for details on the
9200 failure.  It is possible the compiler isn't looking in the proper directory.
9201 Use --without-readline to disable readline support." >&2;}
9202    { (exit 1); exit 1; }; }
9203 fi
9204
9205 done
9206
9207 fi
9208
9209 done
9210
9211 fi
9212
9213 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9214 # Some installations of libedit usurp /usr/include/readline/, which seems
9215 # bad practice, since in combined installations readline will have its headers
9216 # there.  We might have to resort to AC_EGREP checks to make sure we found
9217 # the proper header...
9218
9219 for ac_header in editline/readline.h
9220 do
9221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9223   echo "$as_me:$LINENO: checking for $ac_header" >&5
9224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9226   echo $ECHO_N "(cached) $ECHO_C" >&6
9227 fi
9228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9230 else
9231   # Is the header compilable?
9232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h.  */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h.  */
9240 $ac_includes_default
9241 #include <$ac_header>
9242 _ACEOF
9243 rm -f conftest.$ac_objext
9244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9245   (eval $ac_compile) 2>conftest.er1
9246   ac_status=$?
9247   grep -v '^ *+' conftest.er1 >conftest.err
9248   rm -f conftest.er1
9249   cat conftest.err >&5
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); } &&
9252          { ac_try='test -z "$ac_c_werror_flag"
9253                          || test ! -s conftest.err'
9254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255   (eval $ac_try) 2>&5
9256   ac_status=$?
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); }; } &&
9259          { ac_try='test -s conftest.$ac_objext'
9260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261   (eval $ac_try) 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); }; }; then
9265   ac_header_compiler=yes
9266 else
9267   echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9269
9270 ac_header_compiler=no
9271 fi
9272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9274 echo "${ECHO_T}$ac_header_compiler" >&6
9275
9276 # Is the header present?
9277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9279 cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285 #include <$ac_header>
9286 _ACEOF
9287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9288   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9289   ac_status=$?
9290   grep -v '^ *+' conftest.er1 >conftest.err
9291   rm -f conftest.er1
9292   cat conftest.err >&5
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); } >/dev/null; then
9295   if test -s conftest.err; then
9296     ac_cpp_err=$ac_c_preproc_warn_flag
9297     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9298   else
9299     ac_cpp_err=
9300   fi
9301 else
9302   ac_cpp_err=yes
9303 fi
9304 if test -z "$ac_cpp_err"; then
9305   ac_header_preproc=yes
9306 else
9307   echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9309
9310   ac_header_preproc=no
9311 fi
9312 rm -f conftest.err conftest.$ac_ext
9313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9314 echo "${ECHO_T}$ac_header_preproc" >&6
9315
9316 # So?  What about this header?
9317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9318   yes:no: )
9319     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9323     ac_header_preproc=yes
9324     ;;
9325   no:yes:* )
9326     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9328     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9329 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9330     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9332     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9333 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9336     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9338     (
9339       cat <<\_ASBOX
9340 ## ---------------------------------------- ##
9341 ## Report this to pgsql-bugs@postgresql.org ##
9342 ## ---------------------------------------- ##
9343 _ASBOX
9344     ) |
9345       sed "s/^/$as_me: WARNING:     /" >&2
9346     ;;
9347 esac
9348 echo "$as_me:$LINENO: checking for $ac_header" >&5
9349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9351   echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353   eval "$as_ac_Header=\$ac_header_preproc"
9354 fi
9355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9357
9358 fi
9359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9360   cat >>confdefs.h <<_ACEOF
9361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9362 _ACEOF
9363
9364 else
9365
9366 for ac_header in readline.h
9367 do
9368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9370   echo "$as_me:$LINENO: checking for $ac_header" >&5
9371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9373   echo $ECHO_N "(cached) $ECHO_C" >&6
9374 fi
9375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9377 else
9378   # Is the header compilable?
9379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9381 cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h.  */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h.  */
9387 $ac_includes_default
9388 #include <$ac_header>
9389 _ACEOF
9390 rm -f conftest.$ac_objext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9392   (eval $ac_compile) 2>conftest.er1
9393   ac_status=$?
9394   grep -v '^ *+' conftest.er1 >conftest.err
9395   rm -f conftest.er1
9396   cat conftest.err >&5
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); } &&
9399          { ac_try='test -z "$ac_c_werror_flag"
9400                          || test ! -s conftest.err'
9401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402   (eval $ac_try) 2>&5
9403   ac_status=$?
9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); }; } &&
9406          { ac_try='test -s conftest.$ac_objext'
9407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408   (eval $ac_try) 2>&5
9409   ac_status=$?
9410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411   (exit $ac_status); }; }; then
9412   ac_header_compiler=yes
9413 else
9414   echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9416
9417 ac_header_compiler=no
9418 fi
9419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9421 echo "${ECHO_T}$ac_header_compiler" >&6
9422
9423 # Is the header present?
9424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h.  */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h.  */
9432 #include <$ac_header>
9433 _ACEOF
9434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9436   ac_status=$?
9437   grep -v '^ *+' conftest.er1 >conftest.err
9438   rm -f conftest.er1
9439   cat conftest.err >&5
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); } >/dev/null; then
9442   if test -s conftest.err; then
9443     ac_cpp_err=$ac_c_preproc_warn_flag
9444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9445   else
9446     ac_cpp_err=
9447   fi
9448 else
9449   ac_cpp_err=yes
9450 fi
9451 if test -z "$ac_cpp_err"; then
9452   ac_header_preproc=yes
9453 else
9454   echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.$ac_ext >&5
9456
9457   ac_header_preproc=no
9458 fi
9459 rm -f conftest.err conftest.$ac_ext
9460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9461 echo "${ECHO_T}$ac_header_preproc" >&6
9462
9463 # So?  What about this header?
9464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9465   yes:no: )
9466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9470     ac_header_preproc=yes
9471     ;;
9472   no:yes:* )
9473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9485     (
9486       cat <<\_ASBOX
9487 ## ---------------------------------------- ##
9488 ## Report this to pgsql-bugs@postgresql.org ##
9489 ## ---------------------------------------- ##
9490 _ASBOX
9491     ) |
9492       sed "s/^/$as_me: WARNING:     /" >&2
9493     ;;
9494 esac
9495 echo "$as_me:$LINENO: checking for $ac_header" >&5
9496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500   eval "$as_ac_Header=\$ac_header_preproc"
9501 fi
9502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9504
9505 fi
9506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9507   cat >>confdefs.h <<_ACEOF
9508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9509 _ACEOF
9510
9511 else
9512
9513 for ac_header in readline/readline.h
9514 do
9515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9517   echo "$as_me:$LINENO: checking for $ac_header" >&5
9518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9520   echo $ECHO_N "(cached) $ECHO_C" >&6
9521 fi
9522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9524 else
9525   # Is the header compilable?
9526 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9528 cat >conftest.$ac_ext <<_ACEOF
9529 /* confdefs.h.  */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h.  */
9534 $ac_includes_default
9535 #include <$ac_header>
9536 _ACEOF
9537 rm -f conftest.$ac_objext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9539   (eval $ac_compile) 2>conftest.er1
9540   ac_status=$?
9541   grep -v '^ *+' conftest.er1 >conftest.err
9542   rm -f conftest.er1
9543   cat conftest.err >&5
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); } &&
9546          { ac_try='test -z "$ac_c_werror_flag"
9547                          || test ! -s conftest.err'
9548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549   (eval $ac_try) 2>&5
9550   ac_status=$?
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); }; } &&
9553          { ac_try='test -s conftest.$ac_objext'
9554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555   (eval $ac_try) 2>&5
9556   ac_status=$?
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); }; }; then
9559   ac_header_compiler=yes
9560 else
9561   echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9563
9564 ac_header_compiler=no
9565 fi
9566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9568 echo "${ECHO_T}$ac_header_compiler" >&6
9569
9570 # Is the header present?
9571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h.  */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h.  */
9579 #include <$ac_header>
9580 _ACEOF
9581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9582   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9583   ac_status=$?
9584   grep -v '^ *+' conftest.er1 >conftest.err
9585   rm -f conftest.er1
9586   cat conftest.err >&5
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); } >/dev/null; then
9589   if test -s conftest.err; then
9590     ac_cpp_err=$ac_c_preproc_warn_flag
9591     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9592   else
9593     ac_cpp_err=
9594   fi
9595 else
9596   ac_cpp_err=yes
9597 fi
9598 if test -z "$ac_cpp_err"; then
9599   ac_header_preproc=yes
9600 else
9601   echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9603
9604   ac_header_preproc=no
9605 fi
9606 rm -f conftest.err conftest.$ac_ext
9607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9608 echo "${ECHO_T}$ac_header_preproc" >&6
9609
9610 # So?  What about this header?
9611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9612   yes:no: )
9613     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9617     ac_header_preproc=yes
9618     ;;
9619   no:yes:* )
9620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9622     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9623 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9624     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9626     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9627 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9630     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9632     (
9633       cat <<\_ASBOX
9634 ## ---------------------------------------- ##
9635 ## Report this to pgsql-bugs@postgresql.org ##
9636 ## ---------------------------------------- ##
9637 _ASBOX
9638     ) |
9639       sed "s/^/$as_me: WARNING:     /" >&2
9640     ;;
9641 esac
9642 echo "$as_me:$LINENO: checking for $ac_header" >&5
9643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9645   echo $ECHO_N "(cached) $ECHO_C" >&6
9646 else
9647   eval "$as_ac_Header=\$ac_header_preproc"
9648 fi
9649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9651
9652 fi
9653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9654   cat >>confdefs.h <<_ACEOF
9655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9656 _ACEOF
9657
9658 else
9659   { { echo "$as_me:$LINENO: error: readline header not found
9660 If you have libedit already installed, see config.log for details on the
9661 failure.  It is possible the compiler isn't looking in the proper directory.
9662 Use --without-readline to disable libedit support." >&5
9663 echo "$as_me: error: readline header not found
9664 If you have libedit already installed, see config.log for details on the
9665 failure.  It is possible the compiler isn't looking in the proper directory.
9666 Use --without-readline to disable libedit support." >&2;}
9667    { (exit 1); exit 1; }; }
9668 fi
9669
9670 done
9671
9672 fi
9673
9674 done
9675
9676 fi
9677
9678 done
9679
9680 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9681 # not be there at all.  Hence, don't complain if not found.  We must check
9682 # though, since in yet other versions it is an independent header.
9683
9684 for ac_header in editline/history.h
9685 do
9686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9688   echo "$as_me:$LINENO: checking for $ac_header" >&5
9689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9691   echo $ECHO_N "(cached) $ECHO_C" >&6
9692 fi
9693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9695 else
9696   # Is the header compilable?
9697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h.  */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h.  */
9705 $ac_includes_default
9706 #include <$ac_header>
9707 _ACEOF
9708 rm -f conftest.$ac_objext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9710   (eval $ac_compile) 2>conftest.er1
9711   ac_status=$?
9712   grep -v '^ *+' conftest.er1 >conftest.err
9713   rm -f conftest.er1
9714   cat conftest.err >&5
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); } &&
9717          { ac_try='test -z "$ac_c_werror_flag"
9718                          || test ! -s conftest.err'
9719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720   (eval $ac_try) 2>&5
9721   ac_status=$?
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); }; } &&
9724          { ac_try='test -s conftest.$ac_objext'
9725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726   (eval $ac_try) 2>&5
9727   ac_status=$?
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); }; }; then
9730   ac_header_compiler=yes
9731 else
9732   echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9734
9735 ac_header_compiler=no
9736 fi
9737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9739 echo "${ECHO_T}$ac_header_compiler" >&6
9740
9741 # Is the header present?
9742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h.  */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h.  */
9750 #include <$ac_header>
9751 _ACEOF
9752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9753   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9754   ac_status=$?
9755   grep -v '^ *+' conftest.er1 >conftest.err
9756   rm -f conftest.er1
9757   cat conftest.err >&5
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); } >/dev/null; then
9760   if test -s conftest.err; then
9761     ac_cpp_err=$ac_c_preproc_warn_flag
9762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9763   else
9764     ac_cpp_err=
9765   fi
9766 else
9767   ac_cpp_err=yes
9768 fi
9769 if test -z "$ac_cpp_err"; then
9770   ac_header_preproc=yes
9771 else
9772   echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9774
9775   ac_header_preproc=no
9776 fi
9777 rm -f conftest.err conftest.$ac_ext
9778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9779 echo "${ECHO_T}$ac_header_preproc" >&6
9780
9781 # So?  What about this header?
9782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9783   yes:no: )
9784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9788     ac_header_preproc=yes
9789     ;;
9790   no:yes:* )
9791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9803     (
9804       cat <<\_ASBOX
9805 ## ---------------------------------------- ##
9806 ## Report this to pgsql-bugs@postgresql.org ##
9807 ## ---------------------------------------- ##
9808 _ASBOX
9809     ) |
9810       sed "s/^/$as_me: WARNING:     /" >&2
9811     ;;
9812 esac
9813 echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816   echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818   eval "$as_ac_Header=\$ac_header_preproc"
9819 fi
9820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9822
9823 fi
9824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9825   cat >>confdefs.h <<_ACEOF
9826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9827 _ACEOF
9828
9829 else
9830
9831 for ac_header in history.h
9832 do
9833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9835   echo "$as_me:$LINENO: checking for $ac_header" >&5
9836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9838   echo $ECHO_N "(cached) $ECHO_C" >&6
9839 fi
9840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9842 else
9843   # Is the header compilable?
9844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9846 cat >conftest.$ac_ext <<_ACEOF
9847 /* confdefs.h.  */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h.  */
9852 $ac_includes_default
9853 #include <$ac_header>
9854 _ACEOF
9855 rm -f conftest.$ac_objext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857   (eval $ac_compile) 2>conftest.er1
9858   ac_status=$?
9859   grep -v '^ *+' conftest.er1 >conftest.err
9860   rm -f conftest.er1
9861   cat conftest.err >&5
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); } &&
9864          { ac_try='test -z "$ac_c_werror_flag"
9865                          || test ! -s conftest.err'
9866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867   (eval $ac_try) 2>&5
9868   ac_status=$?
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); }; } &&
9871          { ac_try='test -s conftest.$ac_objext'
9872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873   (eval $ac_try) 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); }; }; then
9877   ac_header_compiler=yes
9878 else
9879   echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882 ac_header_compiler=no
9883 fi
9884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9886 echo "${ECHO_T}$ac_header_compiler" >&6
9887
9888 # Is the header present?
9889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h.  */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h.  */
9897 #include <$ac_header>
9898 _ACEOF
9899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9901   ac_status=$?
9902   grep -v '^ *+' conftest.er1 >conftest.err
9903   rm -f conftest.er1
9904   cat conftest.err >&5
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); } >/dev/null; then
9907   if test -s conftest.err; then
9908     ac_cpp_err=$ac_c_preproc_warn_flag
9909     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9910   else
9911     ac_cpp_err=
9912   fi
9913 else
9914   ac_cpp_err=yes
9915 fi
9916 if test -z "$ac_cpp_err"; then
9917   ac_header_preproc=yes
9918 else
9919   echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922   ac_header_preproc=no
9923 fi
9924 rm -f conftest.err conftest.$ac_ext
9925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9926 echo "${ECHO_T}$ac_header_preproc" >&6
9927
9928 # So?  What about this header?
9929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9930   yes:no: )
9931     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9935     ac_header_preproc=yes
9936     ;;
9937   no:yes:* )
9938     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9940     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9941 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9942     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9944     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9945 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9948     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9950     (
9951       cat <<\_ASBOX
9952 ## ---------------------------------------- ##
9953 ## Report this to pgsql-bugs@postgresql.org ##
9954 ## ---------------------------------------- ##
9955 _ASBOX
9956     ) |
9957       sed "s/^/$as_me: WARNING:     /" >&2
9958     ;;
9959 esac
9960 echo "$as_me:$LINENO: checking for $ac_header" >&5
9961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9963   echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965   eval "$as_ac_Header=\$ac_header_preproc"
9966 fi
9967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9969
9970 fi
9971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9972   cat >>confdefs.h <<_ACEOF
9973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9974 _ACEOF
9975
9976 else
9977
9978 for ac_header in readline/history.h
9979 do
9980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9982   echo "$as_me:$LINENO: checking for $ac_header" >&5
9983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9985   echo $ECHO_N "(cached) $ECHO_C" >&6
9986 fi
9987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9989 else
9990   # Is the header compilable?
9991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9993 cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h.  */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h.  */
9999 $ac_includes_default
10000 #include <$ac_header>
10001 _ACEOF
10002 rm -f conftest.$ac_objext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10004   (eval $ac_compile) 2>conftest.er1
10005   ac_status=$?
10006   grep -v '^ *+' conftest.er1 >conftest.err
10007   rm -f conftest.er1
10008   cat conftest.err >&5
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); } &&
10011          { ac_try='test -z "$ac_c_werror_flag"
10012                          || test ! -s conftest.err'
10013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014   (eval $ac_try) 2>&5
10015   ac_status=$?
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); }; } &&
10018          { ac_try='test -s conftest.$ac_objext'
10019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020   (eval $ac_try) 2>&5
10021   ac_status=$?
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); }; }; then
10024   ac_header_compiler=yes
10025 else
10026   echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10028
10029 ac_header_compiler=no
10030 fi
10031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10033 echo "${ECHO_T}$ac_header_compiler" >&6
10034
10035 # Is the header present?
10036 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10038 cat >conftest.$ac_ext <<_ACEOF
10039 /* confdefs.h.  */
10040 _ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h.  */
10044 #include <$ac_header>
10045 _ACEOF
10046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10048   ac_status=$?
10049   grep -v '^ *+' conftest.er1 >conftest.err
10050   rm -f conftest.er1
10051   cat conftest.err >&5
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } >/dev/null; then
10054   if test -s conftest.err; then
10055     ac_cpp_err=$ac_c_preproc_warn_flag
10056     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10057   else
10058     ac_cpp_err=
10059   fi
10060 else
10061   ac_cpp_err=yes
10062 fi
10063 if test -z "$ac_cpp_err"; then
10064   ac_header_preproc=yes
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069   ac_header_preproc=no
10070 fi
10071 rm -f conftest.err conftest.$ac_ext
10072 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10073 echo "${ECHO_T}$ac_header_preproc" >&6
10074
10075 # So?  What about this header?
10076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10077   yes:no: )
10078     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10082     ac_header_preproc=yes
10083     ;;
10084   no:yes:* )
10085     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10087     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10088 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10089     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10091     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10092 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10095     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10097     (
10098       cat <<\_ASBOX
10099 ## ---------------------------------------- ##
10100 ## Report this to pgsql-bugs@postgresql.org ##
10101 ## ---------------------------------------- ##
10102 _ASBOX
10103     ) |
10104       sed "s/^/$as_me: WARNING:     /" >&2
10105     ;;
10106 esac
10107 echo "$as_me:$LINENO: checking for $ac_header" >&5
10108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10110   echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112   eval "$as_ac_Header=\$ac_header_preproc"
10113 fi
10114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10116
10117 fi
10118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10119   cat >>confdefs.h <<_ACEOF
10120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10121 _ACEOF
10122
10123 fi
10124
10125 done
10126
10127 fi
10128
10129 done
10130
10131 fi
10132
10133 done
10134
10135 fi
10136
10137 if test "$with_zlib" = yes; then
10138   if test "${ac_cv_header_zlib_h+set}" = set; then
10139   echo "$as_me:$LINENO: checking for zlib.h" >&5
10140 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
10141 if test "${ac_cv_header_zlib_h+set}" = set; then
10142   echo $ECHO_N "(cached) $ECHO_C" >&6
10143 fi
10144 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10145 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
10146 else
10147   # Is the header compilable?
10148 echo "$as_me:$LINENO: checking zlib.h usability" >&5
10149 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h.  */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h.  */
10156 $ac_includes_default
10157 #include <zlib.h>
10158 _ACEOF
10159 rm -f conftest.$ac_objext
10160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10161   (eval $ac_compile) 2>conftest.er1
10162   ac_status=$?
10163   grep -v '^ *+' conftest.er1 >conftest.err
10164   rm -f conftest.er1
10165   cat conftest.err >&5
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); } &&
10168          { ac_try='test -z "$ac_c_werror_flag"
10169                          || test ! -s conftest.err'
10170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171   (eval $ac_try) 2>&5
10172   ac_status=$?
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); }; } &&
10175          { ac_try='test -s conftest.$ac_objext'
10176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177   (eval $ac_try) 2>&5
10178   ac_status=$?
10179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180   (exit $ac_status); }; }; then
10181   ac_header_compiler=yes
10182 else
10183   echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10185
10186 ac_header_compiler=no
10187 fi
10188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10190 echo "${ECHO_T}$ac_header_compiler" >&6
10191
10192 # Is the header present?
10193 echo "$as_me:$LINENO: checking zlib.h presence" >&5
10194 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
10195 cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h.  */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h.  */
10201 #include <zlib.h>
10202 _ACEOF
10203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10205   ac_status=$?
10206   grep -v '^ *+' conftest.er1 >conftest.err
10207   rm -f conftest.er1
10208   cat conftest.err >&5
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); } >/dev/null; then
10211   if test -s conftest.err; then
10212     ac_cpp_err=$ac_c_preproc_warn_flag
10213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10214   else
10215     ac_cpp_err=
10216   fi
10217 else
10218   ac_cpp_err=yes
10219 fi
10220 if test -z "$ac_cpp_err"; then
10221   ac_header_preproc=yes
10222 else
10223   echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226   ac_header_preproc=no
10227 fi
10228 rm -f conftest.err conftest.$ac_ext
10229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10230 echo "${ECHO_T}$ac_header_preproc" >&6
10231
10232 # So?  What about this header?
10233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10234   yes:no: )
10235     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10236 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10237     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10238 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10239     ac_header_preproc=yes
10240     ;;
10241   no:yes:* )
10242     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10243 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10244     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
10245 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
10246     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10247 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10248     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
10249 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10250     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10251 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10252     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10253 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10254     (
10255       cat <<\_ASBOX
10256 ## ---------------------------------------- ##
10257 ## Report this to pgsql-bugs@postgresql.org ##
10258 ## ---------------------------------------- ##
10259 _ASBOX
10260     ) |
10261       sed "s/^/$as_me: WARNING:     /" >&2
10262     ;;
10263 esac
10264 echo "$as_me:$LINENO: checking for zlib.h" >&5
10265 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
10266 if test "${ac_cv_header_zlib_h+set}" = set; then
10267   echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269   ac_cv_header_zlib_h=$ac_header_preproc
10270 fi
10271 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10272 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
10273
10274 fi
10275 if test $ac_cv_header_zlib_h = yes; then
10276   :
10277 else
10278   { { echo "$as_me:$LINENO: error: zlib header not found
10279 If you have zlib already installed, see config.log for details on the
10280 failure.  It is possible the compiler isn't looking in the proper directory.
10281 Use --without-zlib to disable zlib support." >&5
10282 echo "$as_me: error: zlib header not found
10283 If you have zlib already installed, see config.log for details on the
10284 failure.  It is possible the compiler isn't looking in the proper directory.
10285 Use --without-zlib to disable zlib support." >&2;}
10286    { (exit 1); exit 1; }; }
10287 fi
10288
10289
10290 fi
10291
10292 if test "$with_gssapi" = yes ; then
10293
10294 for ac_header in gssapi/gssapi.h
10295 do
10296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10298   echo "$as_me:$LINENO: checking for $ac_header" >&5
10299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10301   echo $ECHO_N "(cached) $ECHO_C" >&6
10302 fi
10303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10305 else
10306   # Is the header compilable?
10307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10309 cat >conftest.$ac_ext <<_ACEOF
10310 /* confdefs.h.  */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h.  */
10315 $ac_includes_default
10316 #include <$ac_header>
10317 _ACEOF
10318 rm -f conftest.$ac_objext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320   (eval $ac_compile) 2>conftest.er1
10321   ac_status=$?
10322   grep -v '^ *+' conftest.er1 >conftest.err
10323   rm -f conftest.er1
10324   cat conftest.err >&5
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } &&
10327          { ac_try='test -z "$ac_c_werror_flag"
10328                          || test ! -s conftest.err'
10329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330   (eval $ac_try) 2>&5
10331   ac_status=$?
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); }; } &&
10334          { ac_try='test -s conftest.$ac_objext'
10335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336   (eval $ac_try) 2>&5
10337   ac_status=$?
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); }; }; then
10340   ac_header_compiler=yes
10341 else
10342   echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10344
10345 ac_header_compiler=no
10346 fi
10347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10349 echo "${ECHO_T}$ac_header_compiler" >&6
10350
10351 # Is the header present?
10352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10354 cat >conftest.$ac_ext <<_ACEOF
10355 /* confdefs.h.  */
10356 _ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h.  */
10360 #include <$ac_header>
10361 _ACEOF
10362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10364   ac_status=$?
10365   grep -v '^ *+' conftest.er1 >conftest.err
10366   rm -f conftest.er1
10367   cat conftest.err >&5
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); } >/dev/null; then
10370   if test -s conftest.err; then
10371     ac_cpp_err=$ac_c_preproc_warn_flag
10372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10373   else
10374     ac_cpp_err=
10375   fi
10376 else
10377   ac_cpp_err=yes
10378 fi
10379 if test -z "$ac_cpp_err"; then
10380   ac_header_preproc=yes
10381 else
10382   echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10384
10385   ac_header_preproc=no
10386 fi
10387 rm -f conftest.err conftest.$ac_ext
10388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10389 echo "${ECHO_T}$ac_header_preproc" >&6
10390
10391 # So?  What about this header?
10392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10393   yes:no: )
10394     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10398     ac_header_preproc=yes
10399     ;;
10400   no:yes:* )
10401     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10403     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10404 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10405     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10407     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10408 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10411     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10413     (
10414       cat <<\_ASBOX
10415 ## ---------------------------------------- ##
10416 ## Report this to pgsql-bugs@postgresql.org ##
10417 ## ---------------------------------------- ##
10418 _ASBOX
10419     ) |
10420       sed "s/^/$as_me: WARNING:     /" >&2
10421     ;;
10422 esac
10423 echo "$as_me:$LINENO: checking for $ac_header" >&5
10424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10426   echo $ECHO_N "(cached) $ECHO_C" >&6
10427 else
10428   eval "$as_ac_Header=\$ac_header_preproc"
10429 fi
10430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10432
10433 fi
10434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10435   cat >>confdefs.h <<_ACEOF
10436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10437 _ACEOF
10438
10439 else
10440
10441 for ac_header in gssapi.h
10442 do
10443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10445   echo "$as_me:$LINENO: checking for $ac_header" >&5
10446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10448   echo $ECHO_N "(cached) $ECHO_C" >&6
10449 fi
10450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10452 else
10453   # Is the header compilable?
10454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10456 cat >conftest.$ac_ext <<_ACEOF
10457 /* confdefs.h.  */
10458 _ACEOF
10459 cat confdefs.h >>conftest.$ac_ext
10460 cat >>conftest.$ac_ext <<_ACEOF
10461 /* end confdefs.h.  */
10462 $ac_includes_default
10463 #include <$ac_header>
10464 _ACEOF
10465 rm -f conftest.$ac_objext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10467   (eval $ac_compile) 2>conftest.er1
10468   ac_status=$?
10469   grep -v '^ *+' conftest.er1 >conftest.err
10470   rm -f conftest.er1
10471   cat conftest.err >&5
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); } &&
10474          { ac_try='test -z "$ac_c_werror_flag"
10475                          || test ! -s conftest.err'
10476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477   (eval $ac_try) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); }; } &&
10481          { ac_try='test -s conftest.$ac_objext'
10482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483   (eval $ac_try) 2>&5
10484   ac_status=$?
10485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486   (exit $ac_status); }; }; then
10487   ac_header_compiler=yes
10488 else
10489   echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10491
10492 ac_header_compiler=no
10493 fi
10494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10496 echo "${ECHO_T}$ac_header_compiler" >&6
10497
10498 # Is the header present?
10499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10501 cat >conftest.$ac_ext <<_ACEOF
10502 /* confdefs.h.  */
10503 _ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h.  */
10507 #include <$ac_header>
10508 _ACEOF
10509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10511   ac_status=$?
10512   grep -v '^ *+' conftest.er1 >conftest.err
10513   rm -f conftest.er1
10514   cat conftest.err >&5
10515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516   (exit $ac_status); } >/dev/null; then
10517   if test -s conftest.err; then
10518     ac_cpp_err=$ac_c_preproc_warn_flag
10519     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10520   else
10521     ac_cpp_err=
10522   fi
10523 else
10524   ac_cpp_err=yes
10525 fi
10526 if test -z "$ac_cpp_err"; then
10527   ac_header_preproc=yes
10528 else
10529   echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10531
10532   ac_header_preproc=no
10533 fi
10534 rm -f conftest.err conftest.$ac_ext
10535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10536 echo "${ECHO_T}$ac_header_preproc" >&6
10537
10538 # So?  What about this header?
10539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10540   yes:no: )
10541     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10545     ac_header_preproc=yes
10546     ;;
10547   no:yes:* )
10548     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10550     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10551 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10552     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10554     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10555 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10558     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10560     (
10561       cat <<\_ASBOX
10562 ## ---------------------------------------- ##
10563 ## Report this to pgsql-bugs@postgresql.org ##
10564 ## ---------------------------------------- ##
10565 _ASBOX
10566     ) |
10567       sed "s/^/$as_me: WARNING:     /" >&2
10568     ;;
10569 esac
10570 echo "$as_me:$LINENO: checking for $ac_header" >&5
10571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10573   echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575   eval "$as_ac_Header=\$ac_header_preproc"
10576 fi
10577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10579
10580 fi
10581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10582   cat >>confdefs.h <<_ACEOF
10583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10584 _ACEOF
10585
10586 else
10587   { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10588 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
10589    { (exit 1); exit 1; }; }
10590 fi
10591
10592 done
10593
10594 fi
10595
10596 done
10597
10598 fi
10599
10600 if test "$with_krb5" = yes ; then
10601   if test "${ac_cv_header_krb5_h+set}" = set; then
10602   echo "$as_me:$LINENO: checking for krb5.h" >&5
10603 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10604 if test "${ac_cv_header_krb5_h+set}" = set; then
10605   echo $ECHO_N "(cached) $ECHO_C" >&6
10606 fi
10607 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10608 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10609 else
10610   # Is the header compilable?
10611 echo "$as_me:$LINENO: checking krb5.h usability" >&5
10612 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619 $ac_includes_default
10620 #include <krb5.h>
10621 _ACEOF
10622 rm -f conftest.$ac_objext
10623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10624   (eval $ac_compile) 2>conftest.er1
10625   ac_status=$?
10626   grep -v '^ *+' conftest.er1 >conftest.err
10627   rm -f conftest.er1
10628   cat conftest.err >&5
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); } &&
10631          { ac_try='test -z "$ac_c_werror_flag"
10632                          || test ! -s conftest.err'
10633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634   (eval $ac_try) 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); }; } &&
10638          { ac_try='test -s conftest.$ac_objext'
10639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640   (eval $ac_try) 2>&5
10641   ac_status=$?
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); }; }; then
10644   ac_header_compiler=yes
10645 else
10646   echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10648
10649 ac_header_compiler=no
10650 fi
10651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10653 echo "${ECHO_T}$ac_header_compiler" >&6
10654
10655 # Is the header present?
10656 echo "$as_me:$LINENO: checking krb5.h presence" >&5
10657 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
10658 cat >conftest.$ac_ext <<_ACEOF
10659 /* confdefs.h.  */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h.  */
10664 #include <krb5.h>
10665 _ACEOF
10666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10668   ac_status=$?
10669   grep -v '^ *+' conftest.er1 >conftest.err
10670   rm -f conftest.er1
10671   cat conftest.err >&5
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); } >/dev/null; then
10674   if test -s conftest.err; then
10675     ac_cpp_err=$ac_c_preproc_warn_flag
10676     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10677   else
10678     ac_cpp_err=
10679   fi
10680 else
10681   ac_cpp_err=yes
10682 fi
10683 if test -z "$ac_cpp_err"; then
10684   ac_header_preproc=yes
10685 else
10686   echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10688
10689   ac_header_preproc=no
10690 fi
10691 rm -f conftest.err conftest.$ac_ext
10692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10693 echo "${ECHO_T}$ac_header_preproc" >&6
10694
10695 # So?  What about this header?
10696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10697   yes:no: )
10698     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
10699 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10700     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
10701 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
10702     ac_header_preproc=yes
10703     ;;
10704   no:yes:* )
10705     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
10706 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
10707     { echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
10708 echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
10709     { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
10710 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
10711     { echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
10712 echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10713     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
10714 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
10715     { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
10716 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
10717     (
10718       cat <<\_ASBOX
10719 ## ---------------------------------------- ##
10720 ## Report this to pgsql-bugs@postgresql.org ##
10721 ## ---------------------------------------- ##
10722 _ASBOX
10723     ) |
10724       sed "s/^/$as_me: WARNING:     /" >&2
10725     ;;
10726 esac
10727 echo "$as_me:$LINENO: checking for krb5.h" >&5
10728 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10729 if test "${ac_cv_header_krb5_h+set}" = set; then
10730   echo $ECHO_N "(cached) $ECHO_C" >&6
10731 else
10732   ac_cv_header_krb5_h=$ac_header_preproc
10733 fi
10734 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10735 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10736
10737 fi
10738 if test $ac_cv_header_krb5_h = yes; then
10739   :
10740 else
10741   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
10742 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
10743    { (exit 1); exit 1; }; }
10744 fi
10745
10746
10747 fi
10748
10749 if test "$with_openssl" = yes ; then
10750   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10751   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10752 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10753 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10754   echo $ECHO_N "(cached) $ECHO_C" >&6
10755 fi
10756 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10757 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10758 else
10759   # Is the header compilable?
10760 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10761 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
10762 cat >conftest.$ac_ext <<_ACEOF
10763 /* confdefs.h.  */
10764 _ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h.  */
10768 $ac_includes_default
10769 #include <openssl/ssl.h>
10770 _ACEOF
10771 rm -f conftest.$ac_objext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773   (eval $ac_compile) 2>conftest.er1
10774   ac_status=$?
10775   grep -v '^ *+' conftest.er1 >conftest.err
10776   rm -f conftest.er1
10777   cat conftest.err >&5
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); } &&
10780          { ac_try='test -z "$ac_c_werror_flag"
10781                          || test ! -s conftest.err'
10782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783   (eval $ac_try) 2>&5
10784   ac_status=$?
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); }; } &&
10787          { ac_try='test -s conftest.$ac_objext'
10788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789   (eval $ac_try) 2>&5
10790   ac_status=$?
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); }; }; then
10793   ac_header_compiler=yes
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798 ac_header_compiler=no
10799 fi
10800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10802 echo "${ECHO_T}$ac_header_compiler" >&6
10803
10804 # Is the header present?
10805 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10806 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h.  */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h.  */
10813 #include <openssl/ssl.h>
10814 _ACEOF
10815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10817   ac_status=$?
10818   grep -v '^ *+' conftest.er1 >conftest.err
10819   rm -f conftest.er1
10820   cat conftest.err >&5
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); } >/dev/null; then
10823   if test -s conftest.err; then
10824     ac_cpp_err=$ac_c_preproc_warn_flag
10825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10826   else
10827     ac_cpp_err=
10828   fi
10829 else
10830   ac_cpp_err=yes
10831 fi
10832 if test -z "$ac_cpp_err"; then
10833   ac_header_preproc=yes
10834 else
10835   echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10837
10838   ac_header_preproc=no
10839 fi
10840 rm -f conftest.err conftest.$ac_ext
10841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10842 echo "${ECHO_T}$ac_header_preproc" >&6
10843
10844 # So?  What about this header?
10845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10846   yes:no: )
10847     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10848 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10849     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10850 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10851     ac_header_preproc=yes
10852     ;;
10853   no:yes:* )
10854     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10855 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10856     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
10857 echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
10858     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10859 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10860     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
10861 echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10862     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10863 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10864     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10865 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10866     (
10867       cat <<\_ASBOX
10868 ## ---------------------------------------- ##
10869 ## Report this to pgsql-bugs@postgresql.org ##
10870 ## ---------------------------------------- ##
10871 _ASBOX
10872     ) |
10873       sed "s/^/$as_me: WARNING:     /" >&2
10874     ;;
10875 esac
10876 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10877 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10878 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881   ac_cv_header_openssl_ssl_h=$ac_header_preproc
10882 fi
10883 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10884 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10885
10886 fi
10887 if test $ac_cv_header_openssl_ssl_h = yes; then
10888   :
10889 else
10890   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10891 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10892    { (exit 1); exit 1; }; }
10893 fi
10894
10895
10896   if test "${ac_cv_header_openssl_err_h+set}" = set; then
10897   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10898 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10899 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10900   echo $ECHO_N "(cached) $ECHO_C" >&6
10901 fi
10902 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10903 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10904 else
10905   # Is the header compilable?
10906 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10907 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h.  */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h.  */
10914 $ac_includes_default
10915 #include <openssl/err.h>
10916 _ACEOF
10917 rm -f conftest.$ac_objext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10919   (eval $ac_compile) 2>conftest.er1
10920   ac_status=$?
10921   grep -v '^ *+' conftest.er1 >conftest.err
10922   rm -f conftest.er1
10923   cat conftest.err >&5
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); } &&
10926          { ac_try='test -z "$ac_c_werror_flag"
10927                          || test ! -s conftest.err'
10928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929   (eval $ac_try) 2>&5
10930   ac_status=$?
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); }; } &&
10933          { ac_try='test -s conftest.$ac_objext'
10934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935   (eval $ac_try) 2>&5
10936   ac_status=$?
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); }; }; then
10939   ac_header_compiler=yes
10940 else
10941   echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10943
10944 ac_header_compiler=no
10945 fi
10946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10948 echo "${ECHO_T}$ac_header_compiler" >&6
10949
10950 # Is the header present?
10951 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10952 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h.  */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h.  */
10959 #include <openssl/err.h>
10960 _ACEOF
10961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10962   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10963   ac_status=$?
10964   grep -v '^ *+' conftest.er1 >conftest.err
10965   rm -f conftest.er1
10966   cat conftest.err >&5
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); } >/dev/null; then
10969   if test -s conftest.err; then
10970     ac_cpp_err=$ac_c_preproc_warn_flag
10971     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10972   else
10973     ac_cpp_err=
10974   fi
10975 else
10976   ac_cpp_err=yes
10977 fi
10978 if test -z "$ac_cpp_err"; then
10979   ac_header_preproc=yes
10980 else
10981   echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10983
10984   ac_header_preproc=no
10985 fi
10986 rm -f conftest.err conftest.$ac_ext
10987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10988 echo "${ECHO_T}$ac_header_preproc" >&6
10989
10990 # So?  What about this header?
10991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10992   yes:no: )
10993     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10994 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10995     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10996 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10997     ac_header_preproc=yes
10998     ;;
10999   no:yes:* )
11000     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11001 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11002     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
11003 echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
11004     { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11005 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11006     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
11007 echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11008     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11009 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11010     { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11011 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11012     (
11013       cat <<\_ASBOX
11014 ## ---------------------------------------- ##
11015 ## Report this to pgsql-bugs@postgresql.org ##
11016 ## ---------------------------------------- ##
11017 _ASBOX
11018     ) |
11019       sed "s/^/$as_me: WARNING:     /" >&2
11020     ;;
11021 esac
11022 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11023 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
11024 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11025   echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027   ac_cv_header_openssl_err_h=$ac_header_preproc
11028 fi
11029 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11030 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
11031
11032 fi
11033 if test $ac_cv_header_openssl_err_h = yes; then
11034   :
11035 else
11036   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11037 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11038    { (exit 1); exit 1; }; }
11039 fi
11040
11041
11042
11043 for ac_func in ERR_set_mark
11044 do
11045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11046 echo "$as_me:$LINENO: checking for $ac_func" >&5
11047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11048 if eval "test \"\${$as_ac_var+set}\" = set"; then
11049   echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051   cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h.  */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h.  */
11057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11059 #define $ac_func innocuous_$ac_func
11060
11061 /* System header to define __stub macros and hopefully few prototypes,
11062     which can conflict with char $ac_func (); below.
11063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11064     <limits.h> exists even on freestanding compilers.  */
11065
11066 #ifdef __STDC__
11067 # include <limits.h>
11068 #else
11069 # include <assert.h>
11070 #endif
11071
11072 #undef $ac_func
11073
11074 /* Override any gcc2 internal prototype to avoid an error.  */
11075 #ifdef __cplusplus
11076 extern "C"
11077 {
11078 #endif
11079 /* We use char because int might match the return type of a gcc2
11080    builtin and then its argument prototype would still apply.  */
11081 char $ac_func ();
11082 /* The GNU C library defines this for functions which it implements
11083     to always fail with ENOSYS.  Some functions are actually named
11084     something starting with __ and the normal name is an alias.  */
11085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11086 choke me
11087 #else
11088 char (*f) () = $ac_func;
11089 #endif
11090 #ifdef __cplusplus
11091 }
11092 #endif
11093
11094 int
11095 main ()
11096 {
11097 return f != $ac_func;
11098   ;
11099   return 0;
11100 }
11101 _ACEOF
11102 rm -f conftest.$ac_objext conftest$ac_exeext
11103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11104   (eval $ac_link) 2>conftest.er1
11105   ac_status=$?
11106   grep -v '^ *+' conftest.er1 >conftest.err
11107   rm -f conftest.er1
11108   cat conftest.err >&5
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); } &&
11111          { ac_try='test -z "$ac_c_werror_flag"
11112                          || test ! -s conftest.err'
11113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114   (eval $ac_try) 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); }; } &&
11118          { ac_try='test -s conftest$ac_exeext'
11119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120   (eval $ac_try) 2>&5
11121   ac_status=$?
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); }; }; then
11124   eval "$as_ac_var=yes"
11125 else
11126   echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11128
11129 eval "$as_ac_var=no"
11130 fi
11131 rm -f conftest.err conftest.$ac_objext \
11132       conftest$ac_exeext conftest.$ac_ext
11133 fi
11134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11136 if test `eval echo '${'$as_ac_var'}'` = yes; then
11137   cat >>confdefs.h <<_ACEOF
11138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11139 _ACEOF
11140
11141 fi
11142 done
11143
11144 fi
11145
11146 if test "$with_pam" = yes ; then
11147
11148 for ac_header in security/pam_appl.h
11149 do
11150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11152   echo "$as_me:$LINENO: checking for $ac_header" >&5
11153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11155   echo $ECHO_N "(cached) $ECHO_C" >&6
11156 fi
11157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11159 else
11160   # Is the header compilable?
11161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h.  */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h.  */
11169 $ac_includes_default
11170 #include <$ac_header>
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11174   (eval $ac_compile) 2>conftest.er1
11175   ac_status=$?
11176   grep -v '^ *+' conftest.er1 >conftest.err
11177   rm -f conftest.er1
11178   cat conftest.err >&5
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); } &&
11181          { ac_try='test -z "$ac_c_werror_flag"
11182                          || test ! -s conftest.err'
11183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184   (eval $ac_try) 2>&5
11185   ac_status=$?
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); }; } &&
11188          { ac_try='test -s conftest.$ac_objext'
11189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190   (eval $ac_try) 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); }; }; then
11194   ac_header_compiler=yes
11195 else
11196   echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11198
11199 ac_header_compiler=no
11200 fi
11201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11203 echo "${ECHO_T}$ac_header_compiler" >&6
11204
11205 # Is the header present?
11206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11208 cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h.  */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h.  */
11214 #include <$ac_header>
11215 _ACEOF
11216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11218   ac_status=$?
11219   grep -v '^ *+' conftest.er1 >conftest.err
11220   rm -f conftest.er1
11221   cat conftest.err >&5
11222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); } >/dev/null; then
11224   if test -s conftest.err; then
11225     ac_cpp_err=$ac_c_preproc_warn_flag
11226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11227   else
11228     ac_cpp_err=
11229   fi
11230 else
11231   ac_cpp_err=yes
11232 fi
11233 if test -z "$ac_cpp_err"; then
11234   ac_header_preproc=yes
11235 else
11236   echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239   ac_header_preproc=no
11240 fi
11241 rm -f conftest.err conftest.$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243 echo "${ECHO_T}$ac_header_preproc" >&6
11244
11245 # So?  What about this header?
11246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11247   yes:no: )
11248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11252     ac_header_preproc=yes
11253     ;;
11254   no:yes:* )
11255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11267     (
11268       cat <<\_ASBOX
11269 ## ---------------------------------------- ##
11270 ## Report this to pgsql-bugs@postgresql.org ##
11271 ## ---------------------------------------- ##
11272 _ASBOX
11273     ) |
11274       sed "s/^/$as_me: WARNING:     /" >&2
11275     ;;
11276 esac
11277 echo "$as_me:$LINENO: checking for $ac_header" >&5
11278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11280   echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282   eval "$as_ac_Header=\$ac_header_preproc"
11283 fi
11284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11286
11287 fi
11288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11289   cat >>confdefs.h <<_ACEOF
11290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11291 _ACEOF
11292
11293 else
11294
11295 for ac_header in pam/pam_appl.h
11296 do
11297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11299   echo "$as_me:$LINENO: checking for $ac_header" >&5
11300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11302   echo $ECHO_N "(cached) $ECHO_C" >&6
11303 fi
11304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11306 else
11307   # Is the header compilable?
11308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11310 cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h.  */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h.  */
11316 $ac_includes_default
11317 #include <$ac_header>
11318 _ACEOF
11319 rm -f conftest.$ac_objext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11321   (eval $ac_compile) 2>conftest.er1
11322   ac_status=$?
11323   grep -v '^ *+' conftest.er1 >conftest.err
11324   rm -f conftest.er1
11325   cat conftest.err >&5
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); } &&
11328          { ac_try='test -z "$ac_c_werror_flag"
11329                          || test ! -s conftest.err'
11330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331   (eval $ac_try) 2>&5
11332   ac_status=$?
11333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334   (exit $ac_status); }; } &&
11335          { ac_try='test -s conftest.$ac_objext'
11336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337   (eval $ac_try) 2>&5
11338   ac_status=$?
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); }; }; then
11341   ac_header_compiler=yes
11342 else
11343   echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11345
11346 ac_header_compiler=no
11347 fi
11348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11350 echo "${ECHO_T}$ac_header_compiler" >&6
11351
11352 # Is the header present?
11353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11355 cat >conftest.$ac_ext <<_ACEOF
11356 /* confdefs.h.  */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h.  */
11361 #include <$ac_header>
11362 _ACEOF
11363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11364   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11365   ac_status=$?
11366   grep -v '^ *+' conftest.er1 >conftest.err
11367   rm -f conftest.er1
11368   cat conftest.err >&5
11369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370   (exit $ac_status); } >/dev/null; then
11371   if test -s conftest.err; then
11372     ac_cpp_err=$ac_c_preproc_warn_flag
11373     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11374   else
11375     ac_cpp_err=
11376   fi
11377 else
11378   ac_cpp_err=yes
11379 fi
11380 if test -z "$ac_cpp_err"; then
11381   ac_header_preproc=yes
11382 else
11383   echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11385
11386   ac_header_preproc=no
11387 fi
11388 rm -f conftest.err conftest.$ac_ext
11389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11390 echo "${ECHO_T}$ac_header_preproc" >&6
11391
11392 # So?  What about this header?
11393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11394   yes:no: )
11395     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11399     ac_header_preproc=yes
11400     ;;
11401   no:yes:* )
11402     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11404     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11405 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11406     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11408     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11409 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11412     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11414     (
11415       cat <<\_ASBOX
11416 ## ---------------------------------------- ##
11417 ## Report this to pgsql-bugs@postgresql.org ##
11418 ## ---------------------------------------- ##
11419 _ASBOX
11420     ) |
11421       sed "s/^/$as_me: WARNING:     /" >&2
11422     ;;
11423 esac
11424 echo "$as_me:$LINENO: checking for $ac_header" >&5
11425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11427   echo $ECHO_N "(cached) $ECHO_C" >&6
11428 else
11429   eval "$as_ac_Header=\$ac_header_preproc"
11430 fi
11431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11433
11434 fi
11435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11436   cat >>confdefs.h <<_ACEOF
11437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11438 _ACEOF
11439
11440 else
11441   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11442 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11443    { (exit 1); exit 1; }; }
11444 fi
11445
11446 done
11447
11448 fi
11449
11450 done
11451
11452 fi
11453
11454 if test "$with_libxml" = yes ; then
11455   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11456   echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11457 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
11458 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 fi
11461 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11462 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
11463 else
11464   # Is the header compilable?
11465 echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11466 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6
11467 cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h.  */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h.  */
11473 $ac_includes_default
11474 #include <libxml/parser.h>
11475 _ACEOF
11476 rm -f conftest.$ac_objext
11477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11478   (eval $ac_compile) 2>conftest.er1
11479   ac_status=$?
11480   grep -v '^ *+' conftest.er1 >conftest.err
11481   rm -f conftest.er1
11482   cat conftest.err >&5
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); } &&
11485          { ac_try='test -z "$ac_c_werror_flag"
11486                          || test ! -s conftest.err'
11487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488   (eval $ac_try) 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; } &&
11492          { ac_try='test -s conftest.$ac_objext'
11493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494   (eval $ac_try) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; }; then
11498   ac_header_compiler=yes
11499 else
11500   echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11502
11503 ac_header_compiler=no
11504 fi
11505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11507 echo "${ECHO_T}$ac_header_compiler" >&6
11508
11509 # Is the header present?
11510 echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11511 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6
11512 cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h.  */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h.  */
11518 #include <libxml/parser.h>
11519 _ACEOF
11520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11522   ac_status=$?
11523   grep -v '^ *+' conftest.er1 >conftest.err
11524   rm -f conftest.er1
11525   cat conftest.err >&5
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); } >/dev/null; then
11528   if test -s conftest.err; then
11529     ac_cpp_err=$ac_c_preproc_warn_flag
11530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11531   else
11532     ac_cpp_err=
11533   fi
11534 else
11535   ac_cpp_err=yes
11536 fi
11537 if test -z "$ac_cpp_err"; then
11538   ac_header_preproc=yes
11539 else
11540   echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11542
11543   ac_header_preproc=no
11544 fi
11545 rm -f conftest.err conftest.$ac_ext
11546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11547 echo "${ECHO_T}$ac_header_preproc" >&6
11548
11549 # So?  What about this header?
11550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11551   yes:no: )
11552     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11553 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11554     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11555 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11556     ac_header_preproc=yes
11557     ;;
11558   no:yes:* )
11559     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11560 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11561     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
11562 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
11563     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11564 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11565     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
11566 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11567     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11568 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11569     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11570 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11571     (
11572       cat <<\_ASBOX
11573 ## ---------------------------------------- ##
11574 ## Report this to pgsql-bugs@postgresql.org ##
11575 ## ---------------------------------------- ##
11576 _ASBOX
11577     ) |
11578       sed "s/^/$as_me: WARNING:     /" >&2
11579     ;;
11580 esac
11581 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11582 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
11583 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11584   echo $ECHO_N "(cached) $ECHO_C" >&6
11585 else
11586   ac_cv_header_libxml_parser_h=$ac_header_preproc
11587 fi
11588 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11589 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
11590
11591 fi
11592 if test $ac_cv_header_libxml_parser_h = yes; then
11593   :
11594 else
11595   { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11596 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11597    { (exit 1); exit 1; }; }
11598 fi
11599
11600
11601 fi
11602
11603 if test "$with_libxslt" = yes ; then
11604   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11605   echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11606 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
11607 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11608   echo $ECHO_N "(cached) $ECHO_C" >&6
11609 fi
11610 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11611 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
11612 else
11613   # Is the header compilable?
11614 echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11615 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6
11616 cat >conftest.$ac_ext <<_ACEOF
11617 /* confdefs.h.  */
11618 _ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h.  */
11622 $ac_includes_default
11623 #include <libxslt/xslt.h>
11624 _ACEOF
11625 rm -f conftest.$ac_objext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11627   (eval $ac_compile) 2>conftest.er1
11628   ac_status=$?
11629   grep -v '^ *+' conftest.er1 >conftest.err
11630   rm -f conftest.er1
11631   cat conftest.err >&5
11632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); } &&
11634          { ac_try='test -z "$ac_c_werror_flag"
11635                          || test ! -s conftest.err'
11636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637   (eval $ac_try) 2>&5
11638   ac_status=$?
11639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640   (exit $ac_status); }; } &&
11641          { ac_try='test -s conftest.$ac_objext'
11642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643   (eval $ac_try) 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); }; }; then
11647   ac_header_compiler=yes
11648 else
11649   echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11651
11652 ac_header_compiler=no
11653 fi
11654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11656 echo "${ECHO_T}$ac_header_compiler" >&6
11657
11658 # Is the header present?
11659 echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11660 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6
11661 cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h.  */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h.  */
11667 #include <libxslt/xslt.h>
11668 _ACEOF
11669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11670   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11671   ac_status=$?
11672   grep -v '^ *+' conftest.er1 >conftest.err
11673   rm -f conftest.er1
11674   cat conftest.err >&5
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); } >/dev/null; then
11677   if test -s conftest.err; then
11678     ac_cpp_err=$ac_c_preproc_warn_flag
11679     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11680   else
11681     ac_cpp_err=
11682   fi
11683 else
11684   ac_cpp_err=yes
11685 fi
11686 if test -z "$ac_cpp_err"; then
11687   ac_header_preproc=yes
11688 else
11689   echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692   ac_header_preproc=no
11693 fi
11694 rm -f conftest.err conftest.$ac_ext
11695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11696 echo "${ECHO_T}$ac_header_preproc" >&6
11697
11698 # So?  What about this header?
11699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11700   yes:no: )
11701     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
11702 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11703     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
11704 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
11705     ac_header_preproc=yes
11706     ;;
11707   no:yes:* )
11708     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
11709 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
11710     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
11711 echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
11712     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
11713 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
11714     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
11715 echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11716     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
11717 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
11718     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
11719 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
11720     (
11721       cat <<\_ASBOX
11722 ## ---------------------------------------- ##
11723 ## Report this to pgsql-bugs@postgresql.org ##
11724 ## ---------------------------------------- ##
11725 _ASBOX
11726     ) |
11727       sed "s/^/$as_me: WARNING:     /" >&2
11728     ;;
11729 esac
11730 echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11731 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
11732 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11733   echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
11736 fi
11737 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11738 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
11739
11740 fi
11741 if test $ac_cv_header_libxslt_xslt_h = yes; then
11742   :
11743 else
11744   { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
11745 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
11746    { (exit 1); exit 1; }; }
11747 fi
11748
11749
11750 fi
11751
11752 if test "$with_ldap" = yes ; then
11753   if test "$PORTNAME" != "win32"; then
11754
11755 for ac_header in ldap.h
11756 do
11757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11759   echo "$as_me:$LINENO: checking for $ac_header" >&5
11760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11762   echo $ECHO_N "(cached) $ECHO_C" >&6
11763 fi
11764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11766 else
11767   # Is the header compilable?
11768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h.  */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h.  */
11776 $ac_includes_default
11777 #include <$ac_header>
11778 _ACEOF
11779 rm -f conftest.$ac_objext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11781   (eval $ac_compile) 2>conftest.er1
11782   ac_status=$?
11783   grep -v '^ *+' conftest.er1 >conftest.err
11784   rm -f conftest.er1
11785   cat conftest.err >&5
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); } &&
11788          { ac_try='test -z "$ac_c_werror_flag"
11789                          || test ! -s conftest.err'
11790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791   (eval $ac_try) 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); }; } &&
11795          { ac_try='test -s conftest.$ac_objext'
11796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797   (eval $ac_try) 2>&5
11798   ac_status=$?
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); }; }; then
11801   ac_header_compiler=yes
11802 else
11803   echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806 ac_header_compiler=no
11807 fi
11808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11810 echo "${ECHO_T}$ac_header_compiler" >&6
11811
11812 # Is the header present?
11813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11815 cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h.  */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h.  */
11821 #include <$ac_header>
11822 _ACEOF
11823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11825   ac_status=$?
11826   grep -v '^ *+' conftest.er1 >conftest.err
11827   rm -f conftest.er1
11828   cat conftest.err >&5
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); } >/dev/null; then
11831   if test -s conftest.err; then
11832     ac_cpp_err=$ac_c_preproc_warn_flag
11833     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11834   else
11835     ac_cpp_err=
11836   fi
11837 else
11838   ac_cpp_err=yes
11839 fi
11840 if test -z "$ac_cpp_err"; then
11841   ac_header_preproc=yes
11842 else
11843   echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846   ac_header_preproc=no
11847 fi
11848 rm -f conftest.err conftest.$ac_ext
11849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11850 echo "${ECHO_T}$ac_header_preproc" >&6
11851
11852 # So?  What about this header?
11853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11854   yes:no: )
11855     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11859     ac_header_preproc=yes
11860     ;;
11861   no:yes:* )
11862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11864     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11865 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11866     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11868     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11869 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11872     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11874     (
11875       cat <<\_ASBOX
11876 ## ---------------------------------------- ##
11877 ## Report this to pgsql-bugs@postgresql.org ##
11878 ## ---------------------------------------- ##
11879 _ASBOX
11880     ) |
11881       sed "s/^/$as_me: WARNING:     /" >&2
11882     ;;
11883 esac
11884 echo "$as_me:$LINENO: checking for $ac_header" >&5
11885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11887   echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
11889   eval "$as_ac_Header=\$ac_header_preproc"
11890 fi
11891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11893
11894 fi
11895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11896   cat >>confdefs.h <<_ACEOF
11897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11898 _ACEOF
11899
11900 else
11901   { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
11902 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
11903    { (exit 1); exit 1; }; }
11904 fi
11905
11906 done
11907
11908   else
11909
11910 for ac_header in winldap.h
11911 do
11912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11913 echo "$as_me:$LINENO: checking for $ac_header" >&5
11914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918   cat >conftest.$ac_ext <<_ACEOF
11919 /* confdefs.h.  */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h.  */
11924 $ac_includes_default
11925 #include <windows.h>
11926
11927
11928 #include <$ac_header>
11929 _ACEOF
11930 rm -f conftest.$ac_objext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11932   (eval $ac_compile) 2>conftest.er1
11933   ac_status=$?
11934   grep -v '^ *+' conftest.er1 >conftest.err
11935   rm -f conftest.er1
11936   cat conftest.err >&5
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); } &&
11939          { ac_try='test -z "$ac_c_werror_flag"
11940                          || test ! -s conftest.err'
11941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942   (eval $ac_try) 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); }; } &&
11946          { ac_try='test -s conftest.$ac_objext'
11947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948   (eval $ac_try) 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   eval "$as_ac_Header=yes"
11953 else
11954   echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 eval "$as_ac_Header=no"
11958 fi
11959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11960 fi
11961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11964   cat >>confdefs.h <<_ACEOF
11965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11966 _ACEOF
11967
11968 else
11969   { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
11970 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
11971    { (exit 1); exit 1; }; }
11972 fi
11973
11974 done
11975
11976   fi
11977 fi
11978
11979 if test "$with_bonjour" = yes ; then
11980   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11981   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
11982 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
11983 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11984   echo $ECHO_N "(cached) $ECHO_C" >&6
11985 fi
11986 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
11987 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
11988 else
11989   # Is the header compilable?
11990 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
11991 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
11992 cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h.  */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h.  */
11998 $ac_includes_default
11999 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12000 _ACEOF
12001 rm -f conftest.$ac_objext
12002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12003   (eval $ac_compile) 2>conftest.er1
12004   ac_status=$?
12005   grep -v '^ *+' conftest.er1 >conftest.err
12006   rm -f conftest.er1
12007   cat conftest.err >&5
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); } &&
12010          { ac_try='test -z "$ac_c_werror_flag"
12011                          || test ! -s conftest.err'
12012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013   (eval $ac_try) 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); }; } &&
12017          { ac_try='test -s conftest.$ac_objext'
12018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019   (eval $ac_try) 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); }; }; then
12023   ac_header_compiler=yes
12024 else
12025   echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028 ac_header_compiler=no
12029 fi
12030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12032 echo "${ECHO_T}$ac_header_compiler" >&6
12033
12034 # Is the header present?
12035 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12036 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
12037 cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h.  */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h.  */
12043 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12044 _ACEOF
12045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12047   ac_status=$?
12048   grep -v '^ *+' conftest.er1 >conftest.err
12049   rm -f conftest.er1
12050   cat conftest.err >&5
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); } >/dev/null; then
12053   if test -s conftest.err; then
12054     ac_cpp_err=$ac_c_preproc_warn_flag
12055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12056   else
12057     ac_cpp_err=
12058   fi
12059 else
12060   ac_cpp_err=yes
12061 fi
12062 if test -z "$ac_cpp_err"; then
12063   ac_header_preproc=yes
12064 else
12065   echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068   ac_header_preproc=no
12069 fi
12070 rm -f conftest.err conftest.$ac_ext
12071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12072 echo "${ECHO_T}$ac_header_preproc" >&6
12073
12074 # So?  What about this header?
12075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12076   yes:no: )
12077     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12078 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12079     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12080 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12081     ac_header_preproc=yes
12082     ;;
12083   no:yes:* )
12084     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12085 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12086     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
12087 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
12088     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12089 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12090     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
12091 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12092     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12093 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12094     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12095 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12096     (
12097       cat <<\_ASBOX
12098 ## ---------------------------------------- ##
12099 ## Report this to pgsql-bugs@postgresql.org ##
12100 ## ---------------------------------------- ##
12101 _ASBOX
12102     ) |
12103       sed "s/^/$as_me: WARNING:     /" >&2
12104     ;;
12105 esac
12106 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12107 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
12108 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12109   echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12112 fi
12113 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12114 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
12115
12116 fi
12117 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12118   :
12119 else
12120   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12121 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12122    { (exit 1); exit 1; }; }
12123 fi
12124
12125
12126 fi
12127
12128
12129 ##
12130 ## Types, structures, compiler characteristics
12131 ##
12132
12133  echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12134 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12135 if test "${ac_cv_c_bigendian+set}" = set; then
12136   echo $ECHO_N "(cached) $ECHO_C" >&6
12137 else
12138   # See if sys/param.h defines the BYTE_ORDER macro.
12139 cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h.  */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h.  */
12145 #include <sys/types.h>
12146 #include <sys/param.h>
12147
12148 int
12149 main ()
12150 {
12151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12152  bogus endian macros
12153 #endif
12154
12155   ;
12156   return 0;
12157 }
12158 _ACEOF
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161   (eval $ac_compile) 2>conftest.er1
12162   ac_status=$?
12163   grep -v '^ *+' conftest.er1 >conftest.err
12164   rm -f conftest.er1
12165   cat conftest.err >&5
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); } &&
12168          { ac_try='test -z "$ac_c_werror_flag"
12169                          || test ! -s conftest.err'
12170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171   (eval $ac_try) 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); }; } &&
12175          { ac_try='test -s conftest.$ac_objext'
12176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177   (eval $ac_try) 2>&5
12178   ac_status=$?
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); }; }; then
12181   # It does; now see whether it defined to BIG_ENDIAN or not.
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h.  */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h.  */
12188 #include <sys/types.h>
12189 #include <sys/param.h>
12190
12191 int
12192 main ()
12193 {
12194 #if BYTE_ORDER != BIG_ENDIAN
12195  not big endian
12196 #endif
12197
12198   ;
12199   return 0;
12200 }
12201 _ACEOF
12202 rm -f conftest.$ac_objext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12204   (eval $ac_compile) 2>conftest.er1
12205   ac_status=$?
12206   grep -v '^ *+' conftest.er1 >conftest.err
12207   rm -f conftest.er1
12208   cat conftest.err >&5
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } &&
12211          { ac_try='test -z "$ac_c_werror_flag"
12212                          || test ! -s conftest.err'
12213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214   (eval $ac_try) 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); }; } &&
12218          { ac_try='test -s conftest.$ac_objext'
12219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220   (eval $ac_try) 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); }; }; then
12224   ac_cv_c_bigendian=yes
12225 else
12226   echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 ac_cv_c_bigendian=no
12230 fi
12231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236 # It does not; compile a test program.
12237 if test "$cross_compiling" = yes; then
12238   # try to guess the endianness by grepping values into an object file
12239   ac_cv_c_bigendian=unknown
12240   cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h.  */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h.  */
12246 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12247 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12248 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12249 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12250 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12251 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12252 int
12253 main ()
12254 {
12255  _ascii (); _ebcdic ();
12256   ;
12257   return 0;
12258 }
12259 _ACEOF
12260 rm -f conftest.$ac_objext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12262   (eval $ac_compile) 2>conftest.er1
12263   ac_status=$?
12264   grep -v '^ *+' conftest.er1 >conftest.err
12265   rm -f conftest.er1
12266   cat conftest.err >&5
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); } &&
12269          { ac_try='test -z "$ac_c_werror_flag"
12270                          || test ! -s conftest.err'
12271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272   (eval $ac_try) 2>&5
12273   ac_status=$?
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); }; } &&
12276          { ac_try='test -s conftest.$ac_objext'
12277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278   (eval $ac_try) 2>&5
12279   ac_status=$?
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); }; }; then
12282   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12283   ac_cv_c_bigendian=yes
12284 fi
12285 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12286   if test "$ac_cv_c_bigendian" = unknown; then
12287     ac_cv_c_bigendian=no
12288   else
12289     # finding both strings is unlikely to happen, but who knows?
12290     ac_cv_c_bigendian=unknown
12291   fi
12292 fi
12293 else
12294   echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12296
12297 fi
12298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12299 else
12300   cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h.  */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h.  */
12306 int
12307 main ()
12308 {
12309   /* Are we little or big endian?  From Harbison&Steele.  */
12310   union
12311   {
12312     long l;
12313     char c[sizeof (long)];
12314   } u;
12315   u.l = 1;
12316   exit (u.c[sizeof (long) - 1] == 1);
12317 }
12318 _ACEOF
12319 rm -f conftest$ac_exeext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321   (eval $ac_link) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326   (eval $ac_try) 2>&5
12327   ac_status=$?
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); }; }; then
12330   ac_cv_c_bigendian=no
12331 else
12332   echo "$as_me: program exited with status $ac_status" >&5
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 ( exit $ac_status )
12337 ac_cv_c_bigendian=yes
12338 fi
12339 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12340 fi
12341 fi
12342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12343 fi
12344 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12345 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12346 case $ac_cv_c_bigendian in
12347   yes)
12348
12349 cat >>confdefs.h <<\_ACEOF
12350 #define WORDS_BIGENDIAN 1
12351 _ACEOF
12352  ;;
12353   no)
12354      ;;
12355   *)
12356     { { echo "$as_me:$LINENO: error: unknown endianness
12357 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12358 echo "$as_me: error: unknown endianness
12359 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12360    { (exit 1); exit 1; }; } ;;
12361 esac
12362
12363 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12364 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12365 if test "${ac_cv_c_const+set}" = set; then
12366   echo $ECHO_N "(cached) $ECHO_C" >&6
12367 else
12368   cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h.  */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h.  */
12374
12375 int
12376 main ()
12377 {
12378 /* FIXME: Include the comments suggested by Paul. */
12379 #ifndef __cplusplus
12380   /* Ultrix mips cc rejects this.  */
12381   typedef int charset[2];
12382   const charset x;
12383   /* SunOS 4.1.1 cc rejects this.  */
12384   char const *const *ccp;
12385   char **p;
12386   /* NEC SVR4.0.2 mips cc rejects this.  */
12387   struct point {int x, y;};
12388   static struct point const zero = {0,0};
12389   /* AIX XL C 1.02.0.0 rejects this.
12390      It does not let you subtract one const X* pointer from another in
12391      an arm of an if-expression whose if-part is not a constant
12392      expression */
12393   const char *g = "string";
12394   ccp = &g + (g ? g-g : 0);
12395   /* HPUX 7.0 cc rejects these. */
12396   ++ccp;
12397   p = (char**) ccp;
12398   ccp = (char const *const *) p;
12399   { /* SCO 3.2v4 cc rejects this.  */
12400     char *t;
12401     char const *s = 0 ? (char *) 0 : (char const *) 0;
12402
12403     *t++ = 0;
12404   }
12405   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12406     int x[] = {25, 17};
12407     const int *foo = &x[0];
12408     ++foo;
12409   }
12410   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12411     typedef const int *iptr;
12412     iptr p = 0;
12413     ++p;
12414   }
12415   { /* AIX XL C 1.02.0.0 rejects this saying
12416        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12417     struct s { int j; const int *ap[3]; };
12418     struct s *b; b->j = 5;
12419   }
12420   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12421     const int foo = 10;
12422   }
12423 #endif
12424
12425   ;
12426   return 0;
12427 }
12428 _ACEOF
12429 rm -f conftest.$ac_objext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12431   (eval $ac_compile) 2>conftest.er1
12432   ac_status=$?
12433   grep -v '^ *+' conftest.er1 >conftest.err
12434   rm -f conftest.er1
12435   cat conftest.err >&5
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); } &&
12438          { ac_try='test -z "$ac_c_werror_flag"
12439                          || test ! -s conftest.err'
12440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441   (eval $ac_try) 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; } &&
12445          { ac_try='test -s conftest.$ac_objext'
12446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447   (eval $ac_try) 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); }; }; then
12451   ac_cv_c_const=yes
12452 else
12453   echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 ac_cv_c_const=no
12457 fi
12458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12459 fi
12460 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12461 echo "${ECHO_T}$ac_cv_c_const" >&6
12462 if test $ac_cv_c_const = no; then
12463
12464 cat >>confdefs.h <<\_ACEOF
12465 #define const
12466 _ACEOF
12467
12468 fi
12469
12470
12471 echo "$as_me:$LINENO: checking for inline" >&5
12472 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12473 if test "${ac_cv_c_inline+set}" = set; then
12474   echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476   ac_cv_c_inline=no
12477 for ac_kw in inline __inline__ __inline; do
12478   cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h.  */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h.  */
12484 #ifndef __cplusplus
12485 typedef int foo_t;
12486 static $ac_kw foo_t static_foo () {return 0; }
12487 $ac_kw int foo () {return 0; }
12488 #endif
12489
12490 _ACEOF
12491 rm -f conftest.$ac_objext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12493   (eval $ac_compile) 2>conftest.er1
12494   ac_status=$?
12495   grep -v '^ *+' conftest.er1 >conftest.err
12496   rm -f conftest.er1
12497   cat conftest.err >&5
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); } &&
12500          { ac_try='test -z "$ac_c_werror_flag"
12501                          || test ! -s conftest.err'
12502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503   (eval $ac_try) 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; } &&
12507          { ac_try='test -s conftest.$ac_objext'
12508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509   (eval $ac_try) 2>&5
12510   ac_status=$?
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); }; }; then
12513   ac_cv_c_inline=$ac_kw; break
12514 else
12515   echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12517
12518 fi
12519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12520 done
12521
12522 fi
12523 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12524 echo "${ECHO_T}$ac_cv_c_inline" >&6
12525 case $ac_cv_c_inline in
12526   inline | yes) ;;
12527   no)
12528 cat >>confdefs.h <<\_ACEOF
12529 #define inline
12530 _ACEOF
12531  ;;
12532   *)  cat >>confdefs.h <<_ACEOF
12533 #define inline $ac_cv_c_inline
12534 _ACEOF
12535  ;;
12536 esac
12537
12538 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
12539 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
12540 if test "${ac_cv_c_stringize+set}" = set; then
12541   echo $ECHO_N "(cached) $ECHO_C" >&6
12542 else
12543   cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h.  */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h.  */
12549 #define x(y) #y
12550
12551 char *s = x(teststring);
12552 _ACEOF
12553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12554   $EGREP "#teststring" >/dev/null 2>&1; then
12555   ac_cv_c_stringize=no
12556 else
12557   ac_cv_c_stringize=yes
12558 fi
12559 rm -f conftest*
12560
12561 fi
12562 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
12563 echo "${ECHO_T}$ac_cv_c_stringize" >&6
12564 if test $ac_cv_c_stringize = yes; then
12565
12566 cat >>confdefs.h <<\_ACEOF
12567 #define HAVE_STRINGIZE 1
12568 _ACEOF
12569
12570 fi
12571
12572 echo "$as_me:$LINENO: checking for signed types" >&5
12573 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
12574 if test "${pgac_cv_c_signed+set}" = set; then
12575   echo $ECHO_N "(cached) $ECHO_C" >&6
12576 else
12577   cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12583
12584 int
12585 main ()
12586 {
12587 signed char c; signed short s; signed int i;
12588   ;
12589   return 0;
12590 }
12591 _ACEOF
12592 rm -f conftest.$ac_objext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12594   (eval $ac_compile) 2>conftest.er1
12595   ac_status=$?
12596   grep -v '^ *+' conftest.er1 >conftest.err
12597   rm -f conftest.er1
12598   cat conftest.err >&5
12599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); } &&
12601          { ac_try='test -z "$ac_c_werror_flag"
12602                          || test ! -s conftest.err'
12603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604   (eval $ac_try) 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; } &&
12608          { ac_try='test -s conftest.$ac_objext'
12609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610   (eval $ac_try) 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); }; }; then
12614   pgac_cv_c_signed=yes
12615 else
12616   echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12618
12619 pgac_cv_c_signed=no
12620 fi
12621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12622 fi
12623 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
12624 echo "${ECHO_T}$pgac_cv_c_signed" >&6
12625 if test x"$pgac_cv_c_signed" = xno ; then
12626
12627 cat >>confdefs.h <<\_ACEOF
12628 #define signed
12629 _ACEOF
12630
12631 fi
12632 echo "$as_me:$LINENO: checking for working volatile" >&5
12633 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
12634 if test "${ac_cv_c_volatile+set}" = set; then
12635   echo $ECHO_N "(cached) $ECHO_C" >&6
12636 else
12637   cat >conftest.$ac_ext <<_ACEOF
12638 /* confdefs.h.  */
12639 _ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h.  */
12643
12644 int
12645 main ()
12646 {
12647
12648 volatile int x;
12649 int * volatile y;
12650   ;
12651   return 0;
12652 }
12653 _ACEOF
12654 rm -f conftest.$ac_objext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12656   (eval $ac_compile) 2>conftest.er1
12657   ac_status=$?
12658   grep -v '^ *+' conftest.er1 >conftest.err
12659   rm -f conftest.er1
12660   cat conftest.err >&5
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); } &&
12663          { ac_try='test -z "$ac_c_werror_flag"
12664                          || test ! -s conftest.err'
12665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666   (eval $ac_try) 2>&5
12667   ac_status=$?
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); }; } &&
12670          { ac_try='test -s conftest.$ac_objext'
12671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672   (eval $ac_try) 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); }; }; then
12676   ac_cv_c_volatile=yes
12677 else
12678   echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12680
12681 ac_cv_c_volatile=no
12682 fi
12683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12684 fi
12685 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12686 echo "${ECHO_T}$ac_cv_c_volatile" >&6
12687 if test $ac_cv_c_volatile = no; then
12688
12689 cat >>confdefs.h <<\_ACEOF
12690 #define volatile
12691 _ACEOF
12692
12693 fi
12694
12695 echo "$as_me:$LINENO: checking for __func__" >&5
12696 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
12697 if test "${pgac_cv_funcname_func_support+set}" = set; then
12698   echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700   cat >conftest.$ac_ext <<_ACEOF
12701 /* confdefs.h.  */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h.  */
12706 #include <stdio.h>
12707 int
12708 main ()
12709 {
12710 printf("%s\n", __func__);
12711   ;
12712   return 0;
12713 }
12714 _ACEOF
12715 rm -f conftest.$ac_objext
12716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12717   (eval $ac_compile) 2>conftest.er1
12718   ac_status=$?
12719   grep -v '^ *+' conftest.er1 >conftest.err
12720   rm -f conftest.er1
12721   cat conftest.err >&5
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } &&
12724          { ac_try='test -z "$ac_c_werror_flag"
12725                          || test ! -s conftest.err'
12726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727   (eval $ac_try) 2>&5
12728   ac_status=$?
12729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730   (exit $ac_status); }; } &&
12731          { ac_try='test -s conftest.$ac_objext'
12732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733   (eval $ac_try) 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); }; }; then
12737   pgac_cv_funcname_func_support=yes
12738 else
12739   echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12741
12742 pgac_cv_funcname_func_support=no
12743 fi
12744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12745 fi
12746 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
12747 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
12748 if test x"$pgac_cv_funcname_func_support" = xyes ; then
12749
12750 cat >>confdefs.h <<\_ACEOF
12751 #define HAVE_FUNCNAME__FUNC 1
12752 _ACEOF
12753
12754 else
12755 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
12756 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
12757 if test "${pgac_cv_funcname_function_support+set}" = set; then
12758   echo $ECHO_N "(cached) $ECHO_C" >&6
12759 else
12760   cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h.  */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h.  */
12766 #include <stdio.h>
12767 int
12768 main ()
12769 {
12770 printf("%s\n", __FUNCTION__);
12771   ;
12772   return 0;
12773 }
12774 _ACEOF
12775 rm -f conftest.$ac_objext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777   (eval $ac_compile) 2>conftest.er1
12778   ac_status=$?
12779   grep -v '^ *+' conftest.er1 >conftest.err
12780   rm -f conftest.er1
12781   cat conftest.err >&5
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); } &&
12784          { ac_try='test -z "$ac_c_werror_flag"
12785                          || test ! -s conftest.err'
12786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787   (eval $ac_try) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); }; } &&
12791          { ac_try='test -s conftest.$ac_objext'
12792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793   (eval $ac_try) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); }; }; then
12797   pgac_cv_funcname_function_support=yes
12798 else
12799   echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802 pgac_cv_funcname_function_support=no
12803 fi
12804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12805 fi
12806 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
12807 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
12808 if test x"$pgac_cv_funcname_function_support" = xyes ; then
12809
12810 cat >>confdefs.h <<\_ACEOF
12811 #define HAVE_FUNCNAME__FUNCTION 1
12812 _ACEOF
12813
12814 fi
12815 fi
12816 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12817 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12818 if test "${ac_cv_struct_tm+set}" = set; then
12819   echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821   cat >conftest.$ac_ext <<_ACEOF
12822 /* confdefs.h.  */
12823 _ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h.  */
12827 #include <sys/types.h>
12828 #include <time.h>
12829
12830 int
12831 main ()
12832 {
12833 struct tm *tp; tp->tm_sec;
12834   ;
12835   return 0;
12836 }
12837 _ACEOF
12838 rm -f conftest.$ac_objext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12840   (eval $ac_compile) 2>conftest.er1
12841   ac_status=$?
12842   grep -v '^ *+' conftest.er1 >conftest.err
12843   rm -f conftest.er1
12844   cat conftest.err >&5
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); } &&
12847          { ac_try='test -z "$ac_c_werror_flag"
12848                          || test ! -s conftest.err'
12849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850   (eval $ac_try) 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); }; } &&
12854          { ac_try='test -s conftest.$ac_objext'
12855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856   (eval $ac_try) 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; }; then
12860   ac_cv_struct_tm=time.h
12861 else
12862   echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12864
12865 ac_cv_struct_tm=sys/time.h
12866 fi
12867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12868 fi
12869 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12870 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12871 if test $ac_cv_struct_tm = sys/time.h; then
12872
12873 cat >>confdefs.h <<\_ACEOF
12874 #define TM_IN_SYS_TIME 1
12875 _ACEOF
12876
12877 fi
12878
12879 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12880 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12881 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12882   echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884   cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h.  */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h.  */
12890 #include <sys/types.h>
12891 #include <$ac_cv_struct_tm>
12892
12893
12894 int
12895 main ()
12896 {
12897 static struct tm ac_aggr;
12898 if (ac_aggr.tm_zone)
12899 return 0;
12900   ;
12901   return 0;
12902 }
12903 _ACEOF
12904 rm -f conftest.$ac_objext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906   (eval $ac_compile) 2>conftest.er1
12907   ac_status=$?
12908   grep -v '^ *+' conftest.er1 >conftest.err
12909   rm -f conftest.er1
12910   cat conftest.err >&5
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); } &&
12913          { ac_try='test -z "$ac_c_werror_flag"
12914                          || test ! -s conftest.err'
12915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916   (eval $ac_try) 2>&5
12917   ac_status=$?
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); }; } &&
12920          { ac_try='test -s conftest.$ac_objext'
12921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922   (eval $ac_try) 2>&5
12923   ac_status=$?
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); }; }; then
12926   ac_cv_member_struct_tm_tm_zone=yes
12927 else
12928   echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12930
12931 cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h.  */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h.  */
12937 #include <sys/types.h>
12938 #include <$ac_cv_struct_tm>
12939
12940
12941 int
12942 main ()
12943 {
12944 static struct tm ac_aggr;
12945 if (sizeof ac_aggr.tm_zone)
12946 return 0;
12947   ;
12948   return 0;
12949 }
12950 _ACEOF
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953   (eval $ac_compile) 2>conftest.er1
12954   ac_status=$?
12955   grep -v '^ *+' conftest.er1 >conftest.err
12956   rm -f conftest.er1
12957   cat conftest.err >&5
12958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); } &&
12960          { ac_try='test -z "$ac_c_werror_flag"
12961                          || test ! -s conftest.err'
12962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963   (eval $ac_try) 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; } &&
12967          { ac_try='test -s conftest.$ac_objext'
12968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969   (eval $ac_try) 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); }; }; then
12973   ac_cv_member_struct_tm_tm_zone=yes
12974 else
12975   echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12977
12978 ac_cv_member_struct_tm_tm_zone=no
12979 fi
12980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12981 fi
12982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12983 fi
12984 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12985 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12986 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12987
12988 cat >>confdefs.h <<_ACEOF
12989 #define HAVE_STRUCT_TM_TM_ZONE 1
12990 _ACEOF
12991
12992
12993 fi
12994
12995 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12996
12997 cat >>confdefs.h <<\_ACEOF
12998 #define HAVE_TM_ZONE 1
12999 _ACEOF
13000
13001 fi
13002 echo "$as_me:$LINENO: checking for tzname" >&5
13003 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
13004 if test "${ac_cv_var_tzname+set}" = set; then
13005   echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007   cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h.  */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h.  */
13013 #include <time.h>
13014 #ifndef tzname /* For SGI.  */
13015 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
13016 #endif
13017
13018 int
13019 main ()
13020 {
13021 atoi(*tzname);
13022   ;
13023   return 0;
13024 }
13025 _ACEOF
13026 rm -f conftest.$ac_objext conftest$ac_exeext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13028   (eval $ac_link) 2>conftest.er1
13029   ac_status=$?
13030   grep -v '^ *+' conftest.er1 >conftest.err
13031   rm -f conftest.er1
13032   cat conftest.err >&5
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); } &&
13035          { ac_try='test -z "$ac_c_werror_flag"
13036                          || test ! -s conftest.err'
13037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038   (eval $ac_try) 2>&5
13039   ac_status=$?
13040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041   (exit $ac_status); }; } &&
13042          { ac_try='test -s conftest$ac_exeext'
13043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044   (eval $ac_try) 2>&5
13045   ac_status=$?
13046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047   (exit $ac_status); }; }; then
13048   ac_cv_var_tzname=yes
13049 else
13050   echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13052
13053 ac_cv_var_tzname=no
13054 fi
13055 rm -f conftest.err conftest.$ac_objext \
13056       conftest$ac_exeext conftest.$ac_ext
13057 fi
13058 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13059 echo "${ECHO_T}$ac_cv_var_tzname" >&6
13060 if test $ac_cv_var_tzname = yes; then
13061
13062 cat >>confdefs.h <<\_ACEOF
13063 #define HAVE_TZNAME 1
13064 _ACEOF
13065
13066 fi
13067
13068 echo "$as_me:$LINENO: checking for union semun" >&5
13069 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
13070 if test "${ac_cv_type_union_semun+set}" = set; then
13071   echo $ECHO_N "(cached) $ECHO_C" >&6
13072 else
13073   cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h.  */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h.  */
13079 #include <sys/types.h>
13080 #include <sys/ipc.h>
13081 #include <sys/sem.h>
13082
13083 int
13084 main ()
13085 {
13086 if ((union semun *) 0)
13087   return 0;
13088 if (sizeof (union semun))
13089   return 0;
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 rm -f conftest.$ac_objext
13095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13096   (eval $ac_compile) 2>conftest.er1
13097   ac_status=$?
13098   grep -v '^ *+' conftest.er1 >conftest.err
13099   rm -f conftest.er1
13100   cat conftest.err >&5
13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); } &&
13103          { ac_try='test -z "$ac_c_werror_flag"
13104                          || test ! -s conftest.err'
13105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106   (eval $ac_try) 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; } &&
13110          { ac_try='test -s conftest.$ac_objext'
13111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112   (eval $ac_try) 2>&5
13113   ac_status=$?
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); }; }; then
13116   ac_cv_type_union_semun=yes
13117 else
13118   echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13120
13121 ac_cv_type_union_semun=no
13122 fi
13123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13124 fi
13125 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13126 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
13127 if test $ac_cv_type_union_semun = yes; then
13128
13129 cat >>confdefs.h <<_ACEOF
13130 #define HAVE_UNION_SEMUN 1
13131 _ACEOF
13132
13133
13134 fi
13135
13136 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13137 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
13138 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13139   echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141   cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h.  */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h.  */
13147 #include <sys/types.h>
13148 #ifdef HAVE_SYS_UN_H
13149 #include <sys/un.h>
13150 #endif
13151
13152
13153 int
13154 main ()
13155 {
13156 if ((struct sockaddr_un *) 0)
13157   return 0;
13158 if (sizeof (struct sockaddr_un))
13159   return 0;
13160   ;
13161   return 0;
13162 }
13163 _ACEOF
13164 rm -f conftest.$ac_objext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166   (eval $ac_compile) 2>conftest.er1
13167   ac_status=$?
13168   grep -v '^ *+' conftest.er1 >conftest.err
13169   rm -f conftest.er1
13170   cat conftest.err >&5
13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); } &&
13173          { ac_try='test -z "$ac_c_werror_flag"
13174                          || test ! -s conftest.err'
13175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176   (eval $ac_try) 2>&5
13177   ac_status=$?
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); }; } &&
13180          { ac_try='test -s conftest.$ac_objext'
13181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182   (eval $ac_try) 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); }; }; then
13186   ac_cv_type_struct_sockaddr_un=yes
13187 else
13188   echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13190
13191 ac_cv_type_struct_sockaddr_un=no
13192 fi
13193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13194 fi
13195 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13196 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
13197 if test $ac_cv_type_struct_sockaddr_un = yes; then
13198
13199 cat >>confdefs.h <<_ACEOF
13200 #define HAVE_STRUCT_SOCKADDR_UN 1
13201 _ACEOF
13202
13203
13204 cat >>confdefs.h <<\_ACEOF
13205 #define HAVE_UNIX_SOCKETS 1
13206 _ACEOF
13207
13208 fi
13209
13210 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13211 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
13212 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13213   echo $ECHO_N "(cached) $ECHO_C" >&6
13214 else
13215   cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h.  */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h.  */
13221 #include <sys/types.h>
13222 #ifdef HAVE_SYS_SOCKET_H
13223 #include <sys/socket.h>
13224 #endif
13225
13226
13227 int
13228 main ()
13229 {
13230 if ((struct sockaddr_storage *) 0)
13231   return 0;
13232 if (sizeof (struct sockaddr_storage))
13233   return 0;
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240   (eval $ac_compile) 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } &&
13247          { ac_try='test -z "$ac_c_werror_flag"
13248                          || test ! -s conftest.err'
13249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250   (eval $ac_try) 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; } &&
13254          { ac_try='test -s conftest.$ac_objext'
13255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256   (eval $ac_try) 2>&5
13257   ac_status=$?
13258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259   (exit $ac_status); }; }; then
13260   ac_cv_type_struct_sockaddr_storage=yes
13261 else
13262   echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13264
13265 ac_cv_type_struct_sockaddr_storage=no
13266 fi
13267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13268 fi
13269 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13270 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
13271 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13272
13273 cat >>confdefs.h <<_ACEOF
13274 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13275 _ACEOF
13276
13277
13278 fi
13279
13280 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13281 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
13282 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13283   echo $ECHO_N "(cached) $ECHO_C" >&6
13284 else
13285   cat >conftest.$ac_ext <<_ACEOF
13286 /* confdefs.h.  */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h.  */
13291 #include <sys/types.h>
13292 #ifdef HAVE_SYS_SOCKET_H
13293 #include <sys/socket.h>
13294 #endif
13295
13296
13297 int
13298 main ()
13299 {
13300 static struct sockaddr_storage ac_aggr;
13301 if (ac_aggr.ss_family)
13302 return 0;
13303   ;
13304   return 0;
13305 }
13306 _ACEOF
13307 rm -f conftest.$ac_objext
13308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13309   (eval $ac_compile) 2>conftest.er1
13310   ac_status=$?
13311   grep -v '^ *+' conftest.er1 >conftest.err
13312   rm -f conftest.er1
13313   cat conftest.err >&5
13314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315   (exit $ac_status); } &&
13316          { ac_try='test -z "$ac_c_werror_flag"
13317                          || test ! -s conftest.err'
13318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319   (eval $ac_try) 2>&5
13320   ac_status=$?
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); }; } &&
13323          { ac_try='test -s conftest.$ac_objext'
13324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325   (eval $ac_try) 2>&5
13326   ac_status=$?
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); }; }; then
13329   ac_cv_member_struct_sockaddr_storage_ss_family=yes
13330 else
13331   echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13333
13334 cat >conftest.$ac_ext <<_ACEOF
13335 /* confdefs.h.  */
13336 _ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h.  */
13340 #include <sys/types.h>
13341 #ifdef HAVE_SYS_SOCKET_H
13342 #include <sys/socket.h>
13343 #endif
13344
13345
13346 int
13347 main ()
13348 {
13349 static struct sockaddr_storage ac_aggr;
13350 if (sizeof ac_aggr.ss_family)
13351 return 0;
13352   ;
13353   return 0;
13354 }
13355 _ACEOF
13356 rm -f conftest.$ac_objext
13357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13358   (eval $ac_compile) 2>conftest.er1
13359   ac_status=$?
13360   grep -v '^ *+' conftest.er1 >conftest.err
13361   rm -f conftest.er1
13362   cat conftest.err >&5
13363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364   (exit $ac_status); } &&
13365          { ac_try='test -z "$ac_c_werror_flag"
13366                          || test ! -s conftest.err'
13367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368   (eval $ac_try) 2>&5
13369   ac_status=$?
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); }; } &&
13372          { ac_try='test -s conftest.$ac_objext'
13373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374   (eval $ac_try) 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; }; then
13378   ac_cv_member_struct_sockaddr_storage_ss_family=yes
13379 else
13380   echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383 ac_cv_member_struct_sockaddr_storage_ss_family=no
13384 fi
13385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13386 fi
13387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13388 fi
13389 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13390 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
13391 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13392
13393 cat >>confdefs.h <<_ACEOF
13394 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13395 _ACEOF
13396
13397
13398 fi
13399 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13400 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
13401 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404   cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h.  */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h.  */
13410 #include <sys/types.h>
13411 #ifdef HAVE_SYS_SOCKET_H
13412 #include <sys/socket.h>
13413 #endif
13414
13415
13416 int
13417 main ()
13418 {
13419 static struct sockaddr_storage ac_aggr;
13420 if (ac_aggr.__ss_family)
13421 return 0;
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 rm -f conftest.$ac_objext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13428   (eval $ac_compile) 2>conftest.er1
13429   ac_status=$?
13430   grep -v '^ *+' conftest.er1 >conftest.err
13431   rm -f conftest.er1
13432   cat conftest.err >&5
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); } &&
13435          { ac_try='test -z "$ac_c_werror_flag"
13436                          || test ! -s conftest.err'
13437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438   (eval $ac_try) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); }; } &&
13442          { ac_try='test -s conftest.$ac_objext'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; }; then
13448   ac_cv_member_struct_sockaddr_storage___ss_family=yes
13449 else
13450   echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13452
13453 cat >conftest.$ac_ext <<_ACEOF
13454 /* confdefs.h.  */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h.  */
13459 #include <sys/types.h>
13460 #ifdef HAVE_SYS_SOCKET_H
13461 #include <sys/socket.h>
13462 #endif
13463
13464
13465 int
13466 main ()
13467 {
13468 static struct sockaddr_storage ac_aggr;
13469 if (sizeof ac_aggr.__ss_family)
13470 return 0;
13471   ;
13472   return 0;
13473 }
13474 _ACEOF
13475 rm -f conftest.$ac_objext
13476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13477   (eval $ac_compile) 2>conftest.er1
13478   ac_status=$?
13479   grep -v '^ *+' conftest.er1 >conftest.err
13480   rm -f conftest.er1
13481   cat conftest.err >&5
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); } &&
13484          { ac_try='test -z "$ac_c_werror_flag"
13485                          || test ! -s conftest.err'
13486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487   (eval $ac_try) 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); }; } &&
13491          { ac_try='test -s conftest.$ac_objext'
13492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493   (eval $ac_try) 2>&5
13494   ac_status=$?
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); }; }; then
13497   ac_cv_member_struct_sockaddr_storage___ss_family=yes
13498 else
13499   echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13501
13502 ac_cv_member_struct_sockaddr_storage___ss_family=no
13503 fi
13504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13505 fi
13506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13507 fi
13508 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
13509 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
13510 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
13511
13512 cat >>confdefs.h <<_ACEOF
13513 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
13514 _ACEOF
13515
13516
13517 fi
13518 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
13519 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
13520 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
13521   echo $ECHO_N "(cached) $ECHO_C" >&6
13522 else
13523   cat >conftest.$ac_ext <<_ACEOF
13524 /* confdefs.h.  */
13525 _ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h.  */
13529 #include <sys/types.h>
13530 #ifdef HAVE_SYS_SOCKET_H
13531 #include <sys/socket.h>
13532 #endif
13533
13534
13535 int
13536 main ()
13537 {
13538 static struct sockaddr_storage ac_aggr;
13539 if (ac_aggr.ss_len)
13540 return 0;
13541   ;
13542   return 0;
13543 }
13544 _ACEOF
13545 rm -f conftest.$ac_objext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547   (eval $ac_compile) 2>conftest.er1
13548   ac_status=$?
13549   grep -v '^ *+' conftest.er1 >conftest.err
13550   rm -f conftest.er1
13551   cat conftest.err >&5
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); } &&
13554          { ac_try='test -z "$ac_c_werror_flag"
13555                          || test ! -s conftest.err'
13556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557   (eval $ac_try) 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); }; } &&
13561          { ac_try='test -s conftest.$ac_objext'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; }; then
13567   ac_cv_member_struct_sockaddr_storage_ss_len=yes
13568 else
13569   echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13571
13572 cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h.  */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h.  */
13578 #include <sys/types.h>
13579 #ifdef HAVE_SYS_SOCKET_H
13580 #include <sys/socket.h>
13581 #endif
13582
13583
13584 int
13585 main ()
13586 {
13587 static struct sockaddr_storage ac_aggr;
13588 if (sizeof ac_aggr.ss_len)
13589 return 0;
13590   ;
13591   return 0;
13592 }
13593 _ACEOF
13594 rm -f conftest.$ac_objext
13595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13596   (eval $ac_compile) 2>conftest.er1
13597   ac_status=$?
13598   grep -v '^ *+' conftest.er1 >conftest.err
13599   rm -f conftest.er1
13600   cat conftest.err >&5
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); } &&
13603          { ac_try='test -z "$ac_c_werror_flag"
13604                          || test ! -s conftest.err'
13605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606   (eval $ac_try) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); }; } &&
13610          { ac_try='test -s conftest.$ac_objext'
13611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612   (eval $ac_try) 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }; }; then
13616   ac_cv_member_struct_sockaddr_storage_ss_len=yes
13617 else
13618   echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13620
13621 ac_cv_member_struct_sockaddr_storage_ss_len=no
13622 fi
13623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13624 fi
13625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13626 fi
13627 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
13628 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
13629 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
13630
13631 cat >>confdefs.h <<_ACEOF
13632 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
13633 _ACEOF
13634
13635
13636 fi
13637 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
13638 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
13639 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
13640   echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642   cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h.  */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h.  */
13648 #include <sys/types.h>
13649 #ifdef HAVE_SYS_SOCKET_H
13650 #include <sys/socket.h>
13651 #endif
13652
13653
13654 int
13655 main ()
13656 {
13657 static struct sockaddr_storage ac_aggr;
13658 if (ac_aggr.__ss_len)
13659 return 0;
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666   (eval $ac_compile) 2>conftest.er1
13667   ac_status=$?
13668   grep -v '^ *+' conftest.er1 >conftest.err
13669   rm -f conftest.er1
13670   cat conftest.err >&5
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); } &&
13673          { ac_try='test -z "$ac_c_werror_flag"
13674                          || test ! -s conftest.err'
13675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676   (eval $ac_try) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; } &&
13680          { ac_try='test -s conftest.$ac_objext'
13681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682   (eval $ac_try) 2>&5
13683   ac_status=$?
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); }; }; then
13686   ac_cv_member_struct_sockaddr_storage___ss_len=yes
13687 else
13688   echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691 cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h.  */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h.  */
13697 #include <sys/types.h>
13698 #ifdef HAVE_SYS_SOCKET_H
13699 #include <sys/socket.h>
13700 #endif
13701
13702
13703 int
13704 main ()
13705 {
13706 static struct sockaddr_storage ac_aggr;
13707 if (sizeof ac_aggr.__ss_len)
13708 return 0;
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 rm -f conftest.$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715   (eval $ac_compile) 2>conftest.er1
13716   ac_status=$?
13717   grep -v '^ *+' conftest.er1 >conftest.err
13718   rm -f conftest.er1
13719   cat conftest.err >&5
13720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); } &&
13722          { ac_try='test -z "$ac_c_werror_flag"
13723                          || test ! -s conftest.err'
13724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725   (eval $ac_try) 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); }; } &&
13729          { ac_try='test -s conftest.$ac_objext'
13730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731   (eval $ac_try) 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); }; }; then
13735   ac_cv_member_struct_sockaddr_storage___ss_len=yes
13736 else
13737   echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13739
13740 ac_cv_member_struct_sockaddr_storage___ss_len=no
13741 fi
13742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13743 fi
13744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13745 fi
13746 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
13747 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
13748 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
13749
13750 cat >>confdefs.h <<_ACEOF
13751 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
13752 _ACEOF
13753
13754
13755 fi
13756 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13757 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13758 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
13759   echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761   cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h.  */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h.  */
13767 #include <sys/types.h>
13768 #ifdef HAVE_SYS_SOCKET_H
13769 #include <sys/socket.h>
13770 #endif
13771
13772
13773 int
13774 main ()
13775 {
13776 static struct sockaddr ac_aggr;
13777 if (ac_aggr.sa_len)
13778 return 0;
13779   ;
13780   return 0;
13781 }
13782 _ACEOF
13783 rm -f conftest.$ac_objext
13784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13785   (eval $ac_compile) 2>conftest.er1
13786   ac_status=$?
13787   grep -v '^ *+' conftest.er1 >conftest.err
13788   rm -f conftest.er1
13789   cat conftest.err >&5
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); } &&
13792          { ac_try='test -z "$ac_c_werror_flag"
13793                          || test ! -s conftest.err'
13794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795   (eval $ac_try) 2>&5
13796   ac_status=$?
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); }; } &&
13799          { ac_try='test -s conftest.$ac_objext'
13800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801   (eval $ac_try) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); }; }; then
13805   ac_cv_member_struct_sockaddr_sa_len=yes
13806 else
13807   echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13809
13810 cat >conftest.$ac_ext <<_ACEOF
13811 /* confdefs.h.  */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h.  */
13816 #include <sys/types.h>
13817 #ifdef HAVE_SYS_SOCKET_H
13818 #include <sys/socket.h>
13819 #endif
13820
13821
13822 int
13823 main ()
13824 {
13825 static struct sockaddr ac_aggr;
13826 if (sizeof ac_aggr.sa_len)
13827 return 0;
13828   ;
13829   return 0;
13830 }
13831 _ACEOF
13832 rm -f conftest.$ac_objext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834   (eval $ac_compile) 2>conftest.er1
13835   ac_status=$?
13836   grep -v '^ *+' conftest.er1 >conftest.err
13837   rm -f conftest.er1
13838   cat conftest.err >&5
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); } &&
13841          { ac_try='test -z "$ac_c_werror_flag"
13842                          || test ! -s conftest.err'
13843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844   (eval $ac_try) 2>&5
13845   ac_status=$?
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); }; } &&
13848          { ac_try='test -s conftest.$ac_objext'
13849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850   (eval $ac_try) 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); }; }; then
13854   ac_cv_member_struct_sockaddr_sa_len=yes
13855 else
13856   echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13858
13859 ac_cv_member_struct_sockaddr_sa_len=no
13860 fi
13861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13862 fi
13863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13864 fi
13865 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13866 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13867 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
13868
13869 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13871 _ACEOF
13872
13873
13874 fi
13875
13876 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13877 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
13878 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
13879   echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881   cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h.  */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h.  */
13887 #include <sys/types.h>
13888 #include <sys/socket.h>
13889 #include <netdb.h>
13890
13891
13892 int
13893 main ()
13894 {
13895 if ((struct addrinfo *) 0)
13896   return 0;
13897 if (sizeof (struct addrinfo))
13898   return 0;
13899   ;
13900   return 0;
13901 }
13902 _ACEOF
13903 rm -f conftest.$ac_objext
13904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13905   (eval $ac_compile) 2>conftest.er1
13906   ac_status=$?
13907   grep -v '^ *+' conftest.er1 >conftest.err
13908   rm -f conftest.er1
13909   cat conftest.err >&5
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); } &&
13912          { ac_try='test -z "$ac_c_werror_flag"
13913                          || test ! -s conftest.err'
13914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915   (eval $ac_try) 2>&5
13916   ac_status=$?
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); }; } &&
13919          { ac_try='test -s conftest.$ac_objext'
13920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921   (eval $ac_try) 2>&5
13922   ac_status=$?
13923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924   (exit $ac_status); }; }; then
13925   ac_cv_type_struct_addrinfo=yes
13926 else
13927   echo "$as_me: failed program was:" >&5
13928 sed 's/^/| /' conftest.$ac_ext >&5
13929
13930 ac_cv_type_struct_addrinfo=no
13931 fi
13932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13933 fi
13934 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
13935 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
13936 if test $ac_cv_type_struct_addrinfo = yes; then
13937
13938 cat >>confdefs.h <<_ACEOF
13939 #define HAVE_STRUCT_ADDRINFO 1
13940 _ACEOF
13941
13942
13943 fi
13944
13945
13946 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
13947 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
13948 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
13949   echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13951   cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h.  */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h.  */
13957 #include <sys/param.h>
13958 #include <sys/types.h>
13959 #include <sys/socket.h>
13960 #include <sys/ucred.h>
13961
13962 int
13963 main ()
13964 {
13965 if ((struct cmsgcred *) 0)
13966   return 0;
13967 if (sizeof (struct cmsgcred))
13968   return 0;
13969   ;
13970   return 0;
13971 }
13972 _ACEOF
13973 rm -f conftest.$ac_objext
13974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13975   (eval $ac_compile) 2>conftest.er1
13976   ac_status=$?
13977   grep -v '^ *+' conftest.er1 >conftest.err
13978   rm -f conftest.er1
13979   cat conftest.err >&5
13980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981   (exit $ac_status); } &&
13982          { ac_try='test -z "$ac_c_werror_flag"
13983                          || test ! -s conftest.err'
13984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985   (eval $ac_try) 2>&5
13986   ac_status=$?
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); }; } &&
13989          { ac_try='test -s conftest.$ac_objext'
13990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991   (eval $ac_try) 2>&5
13992   ac_status=$?
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); }; }; then
13995   ac_cv_type_struct_cmsgcred=yes
13996 else
13997   echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
13999
14000 ac_cv_type_struct_cmsgcred=no
14001 fi
14002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14003 fi
14004 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14005 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
14006 if test $ac_cv_type_struct_cmsgcred = yes; then
14007
14008 cat >>confdefs.h <<_ACEOF
14009 #define HAVE_STRUCT_CMSGCRED 1
14010 _ACEOF
14011
14012
14013 fi
14014 echo "$as_me:$LINENO: checking for struct fcred" >&5
14015 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
14016 if test "${ac_cv_type_struct_fcred+set}" = set; then
14017   echo $ECHO_N "(cached) $ECHO_C" >&6
14018 else
14019   cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h.  */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h.  */
14025 #include <sys/param.h>
14026 #include <sys/types.h>
14027 #include <sys/socket.h>
14028 #include <sys/ucred.h>
14029
14030 int
14031 main ()
14032 {
14033 if ((struct fcred *) 0)
14034   return 0;
14035 if (sizeof (struct fcred))
14036   return 0;
14037   ;
14038   return 0;
14039 }
14040 _ACEOF
14041 rm -f conftest.$ac_objext
14042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14043   (eval $ac_compile) 2>conftest.er1
14044   ac_status=$?
14045   grep -v '^ *+' conftest.er1 >conftest.err
14046   rm -f conftest.er1
14047   cat conftest.err >&5
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); } &&
14050          { ac_try='test -z "$ac_c_werror_flag"
14051                          || test ! -s conftest.err'
14052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053   (eval $ac_try) 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); }; } &&
14057          { ac_try='test -s conftest.$ac_objext'
14058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059   (eval $ac_try) 2>&5
14060   ac_status=$?
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); }; }; then
14063   ac_cv_type_struct_fcred=yes
14064 else
14065   echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14067
14068 ac_cv_type_struct_fcred=no
14069 fi
14070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14071 fi
14072 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14073 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
14074 if test $ac_cv_type_struct_fcred = yes; then
14075
14076 cat >>confdefs.h <<_ACEOF
14077 #define HAVE_STRUCT_FCRED 1
14078 _ACEOF
14079
14080
14081 fi
14082 echo "$as_me:$LINENO: checking for struct sockcred" >&5
14083 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
14084 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14085   echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087   cat >conftest.$ac_ext <<_ACEOF
14088 /* confdefs.h.  */
14089 _ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h.  */
14093 #include <sys/param.h>
14094 #include <sys/types.h>
14095 #include <sys/socket.h>
14096 #include <sys/ucred.h>
14097
14098 int
14099 main ()
14100 {
14101 if ((struct sockcred *) 0)
14102   return 0;
14103 if (sizeof (struct sockcred))
14104   return 0;
14105   ;
14106   return 0;
14107 }
14108 _ACEOF
14109 rm -f conftest.$ac_objext
14110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14111   (eval $ac_compile) 2>conftest.er1
14112   ac_status=$?
14113   grep -v '^ *+' conftest.er1 >conftest.err
14114   rm -f conftest.er1
14115   cat conftest.err >&5
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); } &&
14118          { ac_try='test -z "$ac_c_werror_flag"
14119                          || test ! -s conftest.err'
14120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121   (eval $ac_try) 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); }; } &&
14125          { ac_try='test -s conftest.$ac_objext'
14126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127   (eval $ac_try) 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); }; }; then
14131   ac_cv_type_struct_sockcred=yes
14132 else
14133   echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14135
14136 ac_cv_type_struct_sockcred=no
14137 fi
14138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14139 fi
14140 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14141 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
14142 if test $ac_cv_type_struct_sockcred = yes; then
14143
14144 cat >>confdefs.h <<_ACEOF
14145 #define HAVE_STRUCT_SOCKCRED 1
14146 _ACEOF
14147
14148
14149 fi
14150
14151
14152 echo "$as_me:$LINENO: checking for struct option" >&5
14153 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
14154 if test "${ac_cv_type_struct_option+set}" = set; then
14155   echo $ECHO_N "(cached) $ECHO_C" >&6
14156 else
14157   cat >conftest.$ac_ext <<_ACEOF
14158 /* confdefs.h.  */
14159 _ACEOF
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h.  */
14163 #ifdef HAVE_GETOPT_H
14164 #include <getopt.h>
14165 #endif
14166
14167 int
14168 main ()
14169 {
14170 if ((struct option *) 0)
14171   return 0;
14172 if (sizeof (struct option))
14173   return 0;
14174   ;
14175   return 0;
14176 }
14177 _ACEOF
14178 rm -f conftest.$ac_objext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14180   (eval $ac_compile) 2>conftest.er1
14181   ac_status=$?
14182   grep -v '^ *+' conftest.er1 >conftest.err
14183   rm -f conftest.er1
14184   cat conftest.err >&5
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); } &&
14187          { ac_try='test -z "$ac_c_werror_flag"
14188                          || test ! -s conftest.err'
14189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190   (eval $ac_try) 2>&5
14191   ac_status=$?
14192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193   (exit $ac_status); }; } &&
14194          { ac_try='test -s conftest.$ac_objext'
14195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196   (eval $ac_try) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); }; }; then
14200   ac_cv_type_struct_option=yes
14201 else
14202   echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14204
14205 ac_cv_type_struct_option=no
14206 fi
14207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14208 fi
14209 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14210 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
14211 if test $ac_cv_type_struct_option = yes; then
14212
14213 cat >>confdefs.h <<_ACEOF
14214 #define HAVE_STRUCT_OPTION 1
14215 _ACEOF
14216
14217
14218 fi
14219
14220
14221 if test "$with_zlib" = yes; then
14222   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14223   # did not).  While we could work around the lack of z_streamp, it
14224   # seems unwise to encourage people to use such old zlib versions...
14225   echo "$as_me:$LINENO: checking for z_streamp" >&5
14226 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
14227 if test "${ac_cv_type_z_streamp+set}" = set; then
14228   echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230   cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h.  */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h.  */
14236 #include <zlib.h>
14237
14238 int
14239 main ()
14240 {
14241 if ((z_streamp *) 0)
14242   return 0;
14243 if (sizeof (z_streamp))
14244   return 0;
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 rm -f conftest.$ac_objext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14251   (eval $ac_compile) 2>conftest.er1
14252   ac_status=$?
14253   grep -v '^ *+' conftest.er1 >conftest.err
14254   rm -f conftest.er1
14255   cat conftest.err >&5
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); } &&
14258          { ac_try='test -z "$ac_c_werror_flag"
14259                          || test ! -s conftest.err'
14260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261   (eval $ac_try) 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }; } &&
14265          { ac_try='test -s conftest.$ac_objext'
14266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267   (eval $ac_try) 2>&5
14268   ac_status=$?
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); }; }; then
14271   ac_cv_type_z_streamp=yes
14272 else
14273   echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14275
14276 ac_cv_type_z_streamp=no
14277 fi
14278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14279 fi
14280 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14281 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
14282 if test $ac_cv_type_z_streamp = yes; then
14283   :
14284 else
14285   { { echo "$as_me:$LINENO: error: zlib version is too old
14286 Use --without-zlib to disable zlib support." >&5
14287 echo "$as_me: error: zlib version is too old
14288 Use --without-zlib to disable zlib support." >&2;}
14289    { (exit 1); exit 1; }; }
14290 fi
14291
14292 fi
14293
14294 if test "$with_krb5" = yes; then
14295 # Check for differences between MIT and Heimdal (KTH) releases
14296   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14297 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
14298 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14299   echo $ECHO_N "(cached) $ECHO_C" >&6
14300 else
14301   cat >conftest.$ac_ext <<_ACEOF
14302 /* confdefs.h.  */
14303 _ACEOF
14304 cat confdefs.h >>conftest.$ac_ext
14305 cat >>conftest.$ac_ext <<_ACEOF
14306 /* end confdefs.h.  */
14307 #include <krb5.h>
14308
14309 int
14310 main ()
14311 {
14312 static krb5_ticket ac_aggr;
14313 if (ac_aggr.enc_part2)
14314 return 0;
14315   ;
14316   return 0;
14317 }
14318 _ACEOF
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321   (eval $ac_compile) 2>conftest.er1
14322   ac_status=$?
14323   grep -v '^ *+' conftest.er1 >conftest.err
14324   rm -f conftest.er1
14325   cat conftest.err >&5
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); } &&
14328          { ac_try='test -z "$ac_c_werror_flag"
14329                          || test ! -s conftest.err'
14330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331   (eval $ac_try) 2>&5
14332   ac_status=$?
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); }; } &&
14335          { ac_try='test -s conftest.$ac_objext'
14336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337   (eval $ac_try) 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); }; }; then
14341   ac_cv_member_krb5_ticket_enc_part2=yes
14342 else
14343   echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14345
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h.  */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h.  */
14352 #include <krb5.h>
14353
14354 int
14355 main ()
14356 {
14357 static krb5_ticket ac_aggr;
14358 if (sizeof ac_aggr.enc_part2)
14359 return 0;
14360   ;
14361   return 0;
14362 }
14363 _ACEOF
14364 rm -f conftest.$ac_objext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14366   (eval $ac_compile) 2>conftest.er1
14367   ac_status=$?
14368   grep -v '^ *+' conftest.er1 >conftest.err
14369   rm -f conftest.er1
14370   cat conftest.err >&5
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } &&
14373          { ac_try='test -z "$ac_c_werror_flag"
14374                          || test ! -s conftest.err'
14375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376   (eval $ac_try) 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }; } &&
14380          { ac_try='test -s conftest.$ac_objext'
14381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382   (eval $ac_try) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); }; }; then
14386   ac_cv_member_krb5_ticket_enc_part2=yes
14387 else
14388   echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14390
14391 ac_cv_member_krb5_ticket_enc_part2=no
14392 fi
14393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14394 fi
14395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14396 fi
14397 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14398 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
14399 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14400
14401 cat >>confdefs.h <<_ACEOF
14402 #define HAVE_KRB5_TICKET_ENC_PART2 1
14403 _ACEOF
14404
14405
14406 else
14407   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14408 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
14409 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14410   echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412   cat >conftest.$ac_ext <<_ACEOF
14413 /* confdefs.h.  */
14414 _ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h.  */
14418 #include <krb5.h>
14419
14420 int
14421 main ()
14422 {
14423 static krb5_ticket ac_aggr;
14424 if (ac_aggr.client)
14425 return 0;
14426   ;
14427   return 0;
14428 }
14429 _ACEOF
14430 rm -f conftest.$ac_objext
14431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14432   (eval $ac_compile) 2>conftest.er1
14433   ac_status=$?
14434   grep -v '^ *+' conftest.er1 >conftest.err
14435   rm -f conftest.er1
14436   cat conftest.err >&5
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); } &&
14439          { ac_try='test -z "$ac_c_werror_flag"
14440                          || test ! -s conftest.err'
14441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442   (eval $ac_try) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; } &&
14446          { ac_try='test -s conftest.$ac_objext'
14447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448   (eval $ac_try) 2>&5
14449   ac_status=$?
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); }; }; then
14452   ac_cv_member_krb5_ticket_client=yes
14453 else
14454   echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14456
14457 cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463 #include <krb5.h>
14464
14465 int
14466 main ()
14467 {
14468 static krb5_ticket ac_aggr;
14469 if (sizeof ac_aggr.client)
14470 return 0;
14471   ;
14472   return 0;
14473 }
14474 _ACEOF
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477   (eval $ac_compile) 2>conftest.er1
14478   ac_status=$?
14479   grep -v '^ *+' conftest.er1 >conftest.err
14480   rm -f conftest.er1
14481   cat conftest.err >&5
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); } &&
14484          { ac_try='test -z "$ac_c_werror_flag"
14485                          || test ! -s conftest.err'
14486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487   (eval $ac_try) 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; } &&
14491          { ac_try='test -s conftest.$ac_objext'
14492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493   (eval $ac_try) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; }; then
14497   ac_cv_member_krb5_ticket_client=yes
14498 else
14499   echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 ac_cv_member_krb5_ticket_client=no
14503 fi
14504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14505 fi
14506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14507 fi
14508 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
14509 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
14510 if test $ac_cv_member_krb5_ticket_client = yes; then
14511
14512 cat >>confdefs.h <<_ACEOF
14513 #define HAVE_KRB5_TICKET_CLIENT 1
14514 _ACEOF
14515
14516
14517 else
14518   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
14519 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
14520    { (exit 1); exit 1; }; }
14521 fi
14522
14523 fi
14524
14525   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
14526 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
14527 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
14528   echo $ECHO_N "(cached) $ECHO_C" >&6
14529 else
14530   cat >conftest.$ac_ext <<_ACEOF
14531 /* confdefs.h.  */
14532 _ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h.  */
14536 #include <krb5.h>
14537
14538 int
14539 main ()
14540 {
14541 static krb5_error ac_aggr;
14542 if (ac_aggr.text.data)
14543 return 0;
14544   ;
14545   return 0;
14546 }
14547 _ACEOF
14548 rm -f conftest.$ac_objext
14549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14550   (eval $ac_compile) 2>conftest.er1
14551   ac_status=$?
14552   grep -v '^ *+' conftest.er1 >conftest.err
14553   rm -f conftest.er1
14554   cat conftest.err >&5
14555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556   (exit $ac_status); } &&
14557          { ac_try='test -z "$ac_c_werror_flag"
14558                          || test ! -s conftest.err'
14559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560   (eval $ac_try) 2>&5
14561   ac_status=$?
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); }; } &&
14564          { ac_try='test -s conftest.$ac_objext'
14565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566   (eval $ac_try) 2>&5
14567   ac_status=$?
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); }; }; then
14570   ac_cv_member_krb5_error_text_data=yes
14571 else
14572   echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14574
14575 cat >conftest.$ac_ext <<_ACEOF
14576 /* confdefs.h.  */
14577 _ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h.  */
14581 #include <krb5.h>
14582
14583 int
14584 main ()
14585 {
14586 static krb5_error ac_aggr;
14587 if (sizeof ac_aggr.text.data)
14588 return 0;
14589   ;
14590   return 0;
14591 }
14592 _ACEOF
14593 rm -f conftest.$ac_objext
14594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14595   (eval $ac_compile) 2>conftest.er1
14596   ac_status=$?
14597   grep -v '^ *+' conftest.er1 >conftest.err
14598   rm -f conftest.er1
14599   cat conftest.err >&5
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); } &&
14602          { ac_try='test -z "$ac_c_werror_flag"
14603                          || test ! -s conftest.err'
14604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605   (eval $ac_try) 2>&5
14606   ac_status=$?
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); }; } &&
14609          { ac_try='test -s conftest.$ac_objext'
14610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611   (eval $ac_try) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); }; }; then
14615   ac_cv_member_krb5_error_text_data=yes
14616 else
14617   echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14619
14620 ac_cv_member_krb5_error_text_data=no
14621 fi
14622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14623 fi
14624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14625 fi
14626 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
14627 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
14628 if test $ac_cv_member_krb5_error_text_data = yes; then
14629
14630 cat >>confdefs.h <<_ACEOF
14631 #define HAVE_KRB5_ERROR_TEXT_DATA 1
14632 _ACEOF
14633
14634
14635 else
14636   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
14637 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
14638 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
14639   echo $ECHO_N "(cached) $ECHO_C" >&6
14640 else
14641   cat >conftest.$ac_ext <<_ACEOF
14642 /* confdefs.h.  */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h.  */
14647 #include <krb5.h>
14648
14649 int
14650 main ()
14651 {
14652 static krb5_error ac_aggr;
14653 if (ac_aggr.e_data)
14654 return 0;
14655   ;
14656   return 0;
14657 }
14658 _ACEOF
14659 rm -f conftest.$ac_objext
14660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14661   (eval $ac_compile) 2>conftest.er1
14662   ac_status=$?
14663   grep -v '^ *+' conftest.er1 >conftest.err
14664   rm -f conftest.er1
14665   cat conftest.err >&5
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); } &&
14668          { ac_try='test -z "$ac_c_werror_flag"
14669                          || test ! -s conftest.err'
14670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671   (eval $ac_try) 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); }; } &&
14675          { ac_try='test -s conftest.$ac_objext'
14676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677   (eval $ac_try) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; }; then
14681   ac_cv_member_krb5_error_e_data=yes
14682 else
14683   echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14685
14686 cat >conftest.$ac_ext <<_ACEOF
14687 /* confdefs.h.  */
14688 _ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h.  */
14692 #include <krb5.h>
14693
14694 int
14695 main ()
14696 {
14697 static krb5_error ac_aggr;
14698 if (sizeof ac_aggr.e_data)
14699 return 0;
14700   ;
14701   return 0;
14702 }
14703 _ACEOF
14704 rm -f conftest.$ac_objext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706   (eval $ac_compile) 2>conftest.er1
14707   ac_status=$?
14708   grep -v '^ *+' conftest.er1 >conftest.err
14709   rm -f conftest.er1
14710   cat conftest.err >&5
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); } &&
14713          { ac_try='test -z "$ac_c_werror_flag"
14714                          || test ! -s conftest.err'
14715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716   (eval $ac_try) 2>&5
14717   ac_status=$?
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); }; } &&
14720          { ac_try='test -s conftest.$ac_objext'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }; then
14726   ac_cv_member_krb5_error_e_data=yes
14727 else
14728   echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14730
14731 ac_cv_member_krb5_error_e_data=no
14732 fi
14733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14734 fi
14735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14736 fi
14737 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
14738 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
14739 if test $ac_cv_member_krb5_error_e_data = yes; then
14740
14741 cat >>confdefs.h <<_ACEOF
14742 #define HAVE_KRB5_ERROR_E_DATA 1
14743 _ACEOF
14744
14745
14746 else
14747   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
14748 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
14749    { (exit 1); exit 1; }; }
14750 fi
14751
14752 fi
14753
14754
14755 # Win32 requires headers to be loaded for __stdcall, so can't use
14756 # AC_CHECK_FUNCS here.
14757   echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
14758 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6
14759   cat >conftest.$ac_ext <<_ACEOF
14760 /* confdefs.h.  */
14761 _ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h.  */
14765 #include <krb5.h>
14766 int
14767 main ()
14768 {
14769 krb5_free_unparsed_name(NULL,NULL);
14770   ;
14771   return 0;
14772 }
14773 _ACEOF
14774 rm -f conftest.$ac_objext conftest$ac_exeext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14776   (eval $ac_link) 2>conftest.er1
14777   ac_status=$?
14778   grep -v '^ *+' conftest.er1 >conftest.err
14779   rm -f conftest.er1
14780   cat conftest.err >&5
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); } &&
14783          { ac_try='test -z "$ac_c_werror_flag"
14784                          || test ! -s conftest.err'
14785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786   (eval $ac_try) 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); }; } &&
14790          { ac_try='test -s conftest$ac_exeext'
14791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792   (eval $ac_try) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); }; }; then
14796
14797 cat >>confdefs.h <<\_ACEOF
14798 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
14799 _ACEOF
14800
14801 echo "$as_me:$LINENO: result: yes" >&5
14802 echo "${ECHO_T}yes" >&6
14803 else
14804   echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14806
14807 echo "$as_me:$LINENO: result: no" >&5
14808 echo "${ECHO_T}no" >&6
14809 fi
14810 rm -f conftest.err conftest.$ac_objext \
14811       conftest$ac_exeext conftest.$ac_ext
14812 fi
14813
14814
14815 ##
14816 ## Functions, global variables
14817 ##
14818
14819 echo "$as_me:$LINENO: checking for int timezone" >&5
14820 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
14821 if test "${pgac_cv_var_int_timezone+set}" = set; then
14822   echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824   cat >conftest.$ac_ext <<_ACEOF
14825 /* confdefs.h.  */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h.  */
14830 #include <time.h>
14831 int res;
14832 int
14833 main ()
14834 {
14835 #ifndef __CYGWIN__
14836 res = timezone / 60;
14837 #else
14838 res = _timezone / 60;
14839 #endif
14840   ;
14841   return 0;
14842 }
14843 _ACEOF
14844 rm -f conftest.$ac_objext conftest$ac_exeext
14845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14846   (eval $ac_link) 2>conftest.er1
14847   ac_status=$?
14848   grep -v '^ *+' conftest.er1 >conftest.err
14849   rm -f conftest.er1
14850   cat conftest.err >&5
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); } &&
14853          { ac_try='test -z "$ac_c_werror_flag"
14854                          || test ! -s conftest.err'
14855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856   (eval $ac_try) 2>&5
14857   ac_status=$?
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); }; } &&
14860          { ac_try='test -s conftest$ac_exeext'
14861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862   (eval $ac_try) 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; }; then
14866   pgac_cv_var_int_timezone=yes
14867 else
14868   echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14870
14871 pgac_cv_var_int_timezone=no
14872 fi
14873 rm -f conftest.err conftest.$ac_objext \
14874       conftest$ac_exeext conftest.$ac_ext
14875 fi
14876 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
14877 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
14878 if test x"$pgac_cv_var_int_timezone" = xyes ; then
14879
14880 cat >>confdefs.h <<\_ACEOF
14881 #define HAVE_INT_TIMEZONE
14882 _ACEOF
14883
14884 fi
14885 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
14886 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
14887  if test "${ac_cv_func_accept_return+set}" = set; then
14888   echo $ECHO_N "(cached) $ECHO_C" >&6
14889 else
14890    if test "${ac_cv_func_accept_arg1+set}" = set; then
14891   echo $ECHO_N "(cached) $ECHO_C" >&6
14892 else
14893     if test "${ac_cv_func_accept_arg2+set}" = set; then
14894   echo $ECHO_N "(cached) $ECHO_C" >&6
14895 else
14896      if test "${ac_cv_func_accept_arg3+set}" = set; then
14897   echo $ECHO_N "(cached) $ECHO_C" >&6
14898 else
14899       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
14900       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
14901        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
14902         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
14903          cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h.  */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h.  */
14909 #ifdef HAVE_SYS_TYPES_H
14910 #include <sys/types.h>
14911 #endif
14912 #ifdef HAVE_SYS_SOCKET_H
14913 #include <sys/socket.h>
14914 #endif
14915 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
14916 int
14917 main ()
14918 {
14919
14920   ;
14921   return 0;
14922 }
14923 _ACEOF
14924 rm -f conftest.$ac_objext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14926   (eval $ac_compile) 2>conftest.er1
14927   ac_status=$?
14928   grep -v '^ *+' conftest.er1 >conftest.err
14929   rm -f conftest.er1
14930   cat conftest.err >&5
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); } &&
14933          { ac_try='test -z "$ac_c_werror_flag"
14934                          || test ! -s conftest.err'
14935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936   (eval $ac_try) 2>&5
14937   ac_status=$?
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); }; } &&
14940          { ac_try='test -s conftest.$ac_objext'
14941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942   (eval $ac_try) 2>&5
14943   ac_status=$?
14944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945   (exit $ac_status); }; }; then
14946   ac_not_found=no; break 4
14947 else
14948   echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14950
14951 ac_not_found=yes
14952 fi
14953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14954        done
14955       done
14956      done
14957     done
14958     if test "$ac_not_found" = yes; then
14959       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
14960 echo "$as_me: error: could not determine argument types" >&2;}
14961    { (exit 1); exit 1; }; }
14962     fi
14963     if test "$ac_cv_func_accept_arg3" = "void"; then
14964       ac_cv_func_accept_arg3=int
14965     fi
14966
14967 fi
14968
14969 fi
14970
14971 fi
14972
14973 fi
14974  echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
14975 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
14976
14977 cat >>confdefs.h <<_ACEOF
14978 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
14979 _ACEOF
14980
14981
14982 cat >>confdefs.h <<_ACEOF
14983 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
14984 _ACEOF
14985
14986
14987 cat >>confdefs.h <<_ACEOF
14988 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
14989 _ACEOF
14990
14991
14992 cat >>confdefs.h <<_ACEOF
14993 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
14994 _ACEOF
14995
14996
14997 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
14998 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
14999 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15000   echo $ECHO_N "(cached) $ECHO_C" >&6
15001 else
15002   cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h.  */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h.  */
15008 #include <sys/time.h>
15009 int
15010 main ()
15011 {
15012 struct timeval *tp;
15013 struct timezone *tzp;
15014 gettimeofday(tp,tzp);
15015   ;
15016   return 0;
15017 }
15018 _ACEOF
15019 rm -f conftest.$ac_objext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15021   (eval $ac_compile) 2>conftest.er1
15022   ac_status=$?
15023   grep -v '^ *+' conftest.er1 >conftest.err
15024   rm -f conftest.er1
15025   cat conftest.err >&5
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); } &&
15028          { ac_try='test -z "$ac_c_werror_flag"
15029                          || test ! -s conftest.err'
15030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031   (eval $ac_try) 2>&5
15032   ac_status=$?
15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034   (exit $ac_status); }; } &&
15035          { ac_try='test -s conftest.$ac_objext'
15036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037   (eval $ac_try) 2>&5
15038   ac_status=$?
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); }; }; then
15041   pgac_cv_func_gettimeofday_1arg=no
15042 else
15043   echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15045
15046 pgac_cv_func_gettimeofday_1arg=yes
15047 fi
15048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15049 fi
15050 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15051 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
15052 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15053
15054 cat >>confdefs.h <<\_ACEOF
15055 #define GETTIMEOFDAY_1ARG
15056 _ACEOF
15057
15058 fi
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15083 do
15084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15085 echo "$as_me:$LINENO: checking for $ac_func" >&5
15086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15087 if eval "test \"\${$as_ac_var+set}\" = set"; then
15088   echo $ECHO_N "(cached) $ECHO_C" >&6
15089 else
15090   cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h.  */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h.  */
15096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15098 #define $ac_func innocuous_$ac_func
15099
15100 /* System header to define __stub macros and hopefully few prototypes,
15101     which can conflict with char $ac_func (); below.
15102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15103     <limits.h> exists even on freestanding compilers.  */
15104
15105 #ifdef __STDC__
15106 # include <limits.h>
15107 #else
15108 # include <assert.h>
15109 #endif
15110
15111 #undef $ac_func
15112
15113 /* Override any gcc2 internal prototype to avoid an error.  */
15114 #ifdef __cplusplus
15115 extern "C"
15116 {
15117 #endif
15118 /* We use char because int might match the return type of a gcc2
15119    builtin and then its argument prototype would still apply.  */
15120 char $ac_func ();
15121 /* The GNU C library defines this for functions which it implements
15122     to always fail with ENOSYS.  Some functions are actually named
15123     something starting with __ and the normal name is an alias.  */
15124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15125 choke me
15126 #else
15127 char (*f) () = $ac_func;
15128 #endif
15129 #ifdef __cplusplus
15130 }
15131 #endif
15132
15133 int
15134 main ()
15135 {
15136 return f != $ac_func;
15137   ;
15138   return 0;
15139 }
15140 _ACEOF
15141 rm -f conftest.$ac_objext conftest$ac_exeext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15143   (eval $ac_link) 2>conftest.er1
15144   ac_status=$?
15145   grep -v '^ *+' conftest.er1 >conftest.err
15146   rm -f conftest.er1
15147   cat conftest.err >&5
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); } &&
15150          { ac_try='test -z "$ac_c_werror_flag"
15151                          || test ! -s conftest.err'
15152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153   (eval $ac_try) 2>&5
15154   ac_status=$?
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); }; } &&
15157          { ac_try='test -s conftest$ac_exeext'
15158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159   (eval $ac_try) 2>&5
15160   ac_status=$?
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); }; }; then
15163   eval "$as_ac_var=yes"
15164 else
15165   echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15167
15168 eval "$as_ac_var=no"
15169 fi
15170 rm -f conftest.err conftest.$ac_objext \
15171       conftest$ac_exeext conftest.$ac_ext
15172 fi
15173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15175 if test `eval echo '${'$as_ac_var'}'` = yes; then
15176   cat >>confdefs.h <<_ACEOF
15177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15178 _ACEOF
15179
15180 fi
15181 done
15182
15183
15184 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15185 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
15186 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15187   echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189   cat >conftest.$ac_ext <<_ACEOF
15190 /* confdefs.h.  */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h.  */
15195 #include <unistd.h>
15196
15197 int
15198 main ()
15199 {
15200 #ifndef fdatasync
15201   char *p = (char *) fdatasync;
15202 #endif
15203
15204   ;
15205   return 0;
15206 }
15207 _ACEOF
15208 rm -f conftest.$ac_objext
15209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15210   (eval $ac_compile) 2>conftest.er1
15211   ac_status=$?
15212   grep -v '^ *+' conftest.er1 >conftest.err
15213   rm -f conftest.er1
15214   cat conftest.err >&5
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); } &&
15217          { ac_try='test -z "$ac_c_werror_flag"
15218                          || test ! -s conftest.err'
15219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220   (eval $ac_try) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); }; } &&
15224          { ac_try='test -s conftest.$ac_objext'
15225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226   (eval $ac_try) 2>&5
15227   ac_status=$?
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); }; }; then
15230   ac_cv_have_decl_fdatasync=yes
15231 else
15232   echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15234
15235 ac_cv_have_decl_fdatasync=no
15236 fi
15237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15238 fi
15239 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15240 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
15241 if test $ac_cv_have_decl_fdatasync = yes; then
15242
15243 cat >>confdefs.h <<_ACEOF
15244 #define HAVE_DECL_FDATASYNC 1
15245 _ACEOF
15246
15247
15248 else
15249   cat >>confdefs.h <<_ACEOF
15250 #define HAVE_DECL_FDATASYNC 0
15251 _ACEOF
15252
15253
15254 fi
15255
15256
15257 echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15258 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6
15259 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15260   echo $ECHO_N "(cached) $ECHO_C" >&6
15261 else
15262   cat >conftest.$ac_ext <<_ACEOF
15263 /* confdefs.h.  */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h.  */
15268 #include <fcntl.h>
15269
15270 int
15271 main ()
15272 {
15273 #ifndef posix_fadvise
15274   char *p = (char *) posix_fadvise;
15275 #endif
15276
15277   ;
15278   return 0;
15279 }
15280 _ACEOF
15281 rm -f conftest.$ac_objext
15282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15283   (eval $ac_compile) 2>conftest.er1
15284   ac_status=$?
15285   grep -v '^ *+' conftest.er1 >conftest.err
15286   rm -f conftest.er1
15287   cat conftest.err >&5
15288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289   (exit $ac_status); } &&
15290          { ac_try='test -z "$ac_c_werror_flag"
15291                          || test ! -s conftest.err'
15292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293   (eval $ac_try) 2>&5
15294   ac_status=$?
15295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296   (exit $ac_status); }; } &&
15297          { ac_try='test -s conftest.$ac_objext'
15298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299   (eval $ac_try) 2>&5
15300   ac_status=$?
15301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302   (exit $ac_status); }; }; then
15303   ac_cv_have_decl_posix_fadvise=yes
15304 else
15305   echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15307
15308 ac_cv_have_decl_posix_fadvise=no
15309 fi
15310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15311 fi
15312 echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15313 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6
15314 if test $ac_cv_have_decl_posix_fadvise = yes; then
15315
15316 cat >>confdefs.h <<_ACEOF
15317 #define HAVE_DECL_POSIX_FADVISE 1
15318 _ACEOF
15319
15320
15321 else
15322   cat >>confdefs.h <<_ACEOF
15323 #define HAVE_DECL_POSIX_FADVISE 0
15324 _ACEOF
15325
15326
15327 fi
15328
15329
15330 echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15331 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6
15332 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15333   echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335   cat >conftest.$ac_ext <<_ACEOF
15336 /* confdefs.h.  */
15337 _ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h.  */
15341 $ac_includes_default
15342 int
15343 main ()
15344 {
15345 #ifndef strlcat
15346   char *p = (char *) strlcat;
15347 #endif
15348
15349   ;
15350   return 0;
15351 }
15352 _ACEOF
15353 rm -f conftest.$ac_objext
15354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15355   (eval $ac_compile) 2>conftest.er1
15356   ac_status=$?
15357   grep -v '^ *+' conftest.er1 >conftest.err
15358   rm -f conftest.er1
15359   cat conftest.err >&5
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); } &&
15362          { ac_try='test -z "$ac_c_werror_flag"
15363                          || test ! -s conftest.err'
15364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365   (eval $ac_try) 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); }; } &&
15369          { ac_try='test -s conftest.$ac_objext'
15370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371   (eval $ac_try) 2>&5
15372   ac_status=$?
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); }; }; then
15375   ac_cv_have_decl_strlcat=yes
15376 else
15377   echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15379
15380 ac_cv_have_decl_strlcat=no
15381 fi
15382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15383 fi
15384 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15385 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6
15386 if test $ac_cv_have_decl_strlcat = yes; then
15387
15388 cat >>confdefs.h <<_ACEOF
15389 #define HAVE_DECL_STRLCAT 1
15390 _ACEOF
15391
15392
15393 else
15394   cat >>confdefs.h <<_ACEOF
15395 #define HAVE_DECL_STRLCAT 0
15396 _ACEOF
15397
15398
15399 fi
15400 echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15401 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6
15402 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15403   echo $ECHO_N "(cached) $ECHO_C" >&6
15404 else
15405   cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h.  */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h.  */
15411 $ac_includes_default
15412 int
15413 main ()
15414 {
15415 #ifndef strlcpy
15416   char *p = (char *) strlcpy;
15417 #endif
15418
15419   ;
15420   return 0;
15421 }
15422 _ACEOF
15423 rm -f conftest.$ac_objext
15424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15425   (eval $ac_compile) 2>conftest.er1
15426   ac_status=$?
15427   grep -v '^ *+' conftest.er1 >conftest.err
15428   rm -f conftest.er1
15429   cat conftest.err >&5
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); } &&
15432          { ac_try='test -z "$ac_c_werror_flag"
15433                          || test ! -s conftest.err'
15434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435   (eval $ac_try) 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; } &&
15439          { ac_try='test -s conftest.$ac_objext'
15440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441   (eval $ac_try) 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; }; then
15445   ac_cv_have_decl_strlcpy=yes
15446 else
15447   echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15449
15450 ac_cv_have_decl_strlcpy=no
15451 fi
15452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15453 fi
15454 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15455 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6
15456 if test $ac_cv_have_decl_strlcpy = yes; then
15457
15458 cat >>confdefs.h <<_ACEOF
15459 #define HAVE_DECL_STRLCPY 1
15460 _ACEOF
15461
15462
15463 else
15464   cat >>confdefs.h <<_ACEOF
15465 #define HAVE_DECL_STRLCPY 0
15466 _ACEOF
15467
15468
15469 fi
15470
15471
15472 # This is probably only present on Darwin, but may as well check always
15473 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15474 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
15475 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15476   echo $ECHO_N "(cached) $ECHO_C" >&6
15477 else
15478   cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484 #include <fcntl.h>
15485
15486 int
15487 main ()
15488 {
15489 #ifndef F_FULLFSYNC
15490   char *p = (char *) F_FULLFSYNC;
15491 #endif
15492
15493   ;
15494   return 0;
15495 }
15496 _ACEOF
15497 rm -f conftest.$ac_objext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15499   (eval $ac_compile) 2>conftest.er1
15500   ac_status=$?
15501   grep -v '^ *+' conftest.er1 >conftest.err
15502   rm -f conftest.er1
15503   cat conftest.err >&5
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } &&
15506          { ac_try='test -z "$ac_c_werror_flag"
15507                          || test ! -s conftest.err'
15508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509   (eval $ac_try) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; } &&
15513          { ac_try='test -s conftest.$ac_objext'
15514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515   (eval $ac_try) 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; }; then
15519   ac_cv_have_decl_F_FULLFSYNC=yes
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524 ac_cv_have_decl_F_FULLFSYNC=no
15525 fi
15526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15527 fi
15528 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15529 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
15530 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15531
15532 cat >>confdefs.h <<_ACEOF
15533 #define HAVE_DECL_F_FULLFSYNC 1
15534 _ACEOF
15535
15536
15537 else
15538   cat >>confdefs.h <<_ACEOF
15539 #define HAVE_DECL_F_FULLFSYNC 0
15540 _ACEOF
15541
15542
15543 fi
15544
15545
15546
15547 HAVE_IPV6=no
15548 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
15549 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
15550 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
15551   echo $ECHO_N "(cached) $ECHO_C" >&6
15552 else
15553   cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h.  */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h.  */
15559 $ac_includes_default
15560 #include <netinet/in.h>
15561
15562 int
15563 main ()
15564 {
15565 if ((struct sockaddr_in6 *) 0)
15566   return 0;
15567 if (sizeof (struct sockaddr_in6))
15568   return 0;
15569   ;
15570   return 0;
15571 }
15572 _ACEOF
15573 rm -f conftest.$ac_objext
15574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15575   (eval $ac_compile) 2>conftest.er1
15576   ac_status=$?
15577   grep -v '^ *+' conftest.er1 >conftest.err
15578   rm -f conftest.er1
15579   cat conftest.err >&5
15580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581   (exit $ac_status); } &&
15582          { ac_try='test -z "$ac_c_werror_flag"
15583                          || test ! -s conftest.err'
15584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585   (eval $ac_try) 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; } &&
15589          { ac_try='test -s conftest.$ac_objext'
15590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591   (eval $ac_try) 2>&5
15592   ac_status=$?
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); }; }; then
15595   ac_cv_type_struct_sockaddr_in6=yes
15596 else
15597   echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600 ac_cv_type_struct_sockaddr_in6=no
15601 fi
15602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15603 fi
15604 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
15605 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
15606 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
15607
15608 cat >>confdefs.h <<\_ACEOF
15609 #define HAVE_IPV6 1
15610 _ACEOF
15611
15612          HAVE_IPV6=yes
15613 fi
15614
15615
15616
15617 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
15618 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
15619 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
15620   echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622   cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h.  */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h.  */
15628 #include <machine/vmparam.h>
15629 #include <sys/exec.h>
15630
15631 int
15632 main ()
15633 {
15634 PS_STRINGS->ps_nargvstr = 1;
15635 PS_STRINGS->ps_argvstr = "foo";
15636   ;
15637   return 0;
15638 }
15639 _ACEOF
15640 rm -f conftest.$ac_objext conftest$ac_exeext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15642   (eval $ac_link) 2>conftest.er1
15643   ac_status=$?
15644   grep -v '^ *+' conftest.er1 >conftest.err
15645   rm -f conftest.er1
15646   cat conftest.err >&5
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); } &&
15649          { ac_try='test -z "$ac_c_werror_flag"
15650                          || test ! -s conftest.err'
15651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652   (eval $ac_try) 2>&5
15653   ac_status=$?
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); }; } &&
15656          { ac_try='test -s conftest$ac_exeext'
15657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658   (eval $ac_try) 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; }; then
15662   pgac_cv_var_PS_STRINGS=yes
15663 else
15664   echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15666
15667 pgac_cv_var_PS_STRINGS=no
15668 fi
15669 rm -f conftest.err conftest.$ac_objext \
15670       conftest$ac_exeext conftest.$ac_ext
15671 fi
15672 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
15673 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
15674 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
15675
15676 cat >>confdefs.h <<\_ACEOF
15677 #define HAVE_PS_STRINGS
15678 _ACEOF
15679
15680 fi
15681
15682
15683 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
15684 # is missing.  Yes, there are machines that have only one.  We may
15685 # also decide to use snprintf.c if snprintf() is present but does not
15686 # have all the features we need --- see below.
15687
15688 if test "$PORTNAME" = "win32"; then
15689   # Win32 gets snprintf.c built unconditionally.
15690   #
15691   # To properly translate all NLS languages strings, we must support the
15692   # *printf() %$ format, which allows *printf() arguments to be selected
15693   # by position in the translated string.
15694   #
15695   # libintl versions < 0.13 use the native *printf() functions, and Win32
15696   # *printf() doesn't understand %$, so we must use our /port versions,
15697   # which do understand %$. libintl versions >= 0.13 include their own
15698   # *printf versions on Win32.  The libintl 0.13 release note text is:
15699   #
15700   #   C format strings with positions, as they arise when a translator
15701   #   needs to reorder a sentence, are now supported on all platforms.
15702   #   On those few platforms (NetBSD and Woe32) for which the native
15703   #   printf()/fprintf()/... functions don't support such format
15704   #   strings, replacements are provided through <libintl.h>.
15705   #
15706   # We could use libintl >= 0.13's *printf() if we were sure that we had
15707   # a litint >= 0.13 at runtime, but seeing that there is no clean way
15708   # to guarantee that, it is best to just use our own, so we are sure to
15709   # get %$ support. In include/port.h we disable the *printf() macros
15710   # that might have been defined by libintl.
15711   #
15712   # We do this unconditionally whether NLS is used or not so we are sure
15713   # that all Win32 libraries and binaries behave the same.
15714   pgac_need_repl_snprintf=yes
15715 else
15716   pgac_need_repl_snprintf=no
15717
15718 for ac_func in snprintf
15719 do
15720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15721 echo "$as_me:$LINENO: checking for $ac_func" >&5
15722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15723 if eval "test \"\${$as_ac_var+set}\" = set"; then
15724   echo $ECHO_N "(cached) $ECHO_C" >&6
15725 else
15726   cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h.  */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h.  */
15732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15734 #define $ac_func innocuous_$ac_func
15735
15736 /* System header to define __stub macros and hopefully few prototypes,
15737     which can conflict with char $ac_func (); below.
15738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15739     <limits.h> exists even on freestanding compilers.  */
15740
15741 #ifdef __STDC__
15742 # include <limits.h>
15743 #else
15744 # include <assert.h>
15745 #endif
15746
15747 #undef $ac_func
15748
15749 /* Override any gcc2 internal prototype to avoid an error.  */
15750 #ifdef __cplusplus
15751 extern "C"
15752 {
15753 #endif
15754 /* We use char because int might match the return type of a gcc2
15755    builtin and then its argument prototype would still apply.  */
15756 char $ac_func ();
15757 /* The GNU C library defines this for functions which it implements
15758     to always fail with ENOSYS.  Some functions are actually named
15759     something starting with __ and the normal name is an alias.  */
15760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15761 choke me
15762 #else
15763 char (*f) () = $ac_func;
15764 #endif
15765 #ifdef __cplusplus
15766 }
15767 #endif
15768
15769 int
15770 main ()
15771 {
15772 return f != $ac_func;
15773   ;
15774   return 0;
15775 }
15776 _ACEOF
15777 rm -f conftest.$ac_objext conftest$ac_exeext
15778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15779   (eval $ac_link) 2>conftest.er1
15780   ac_status=$?
15781   grep -v '^ *+' conftest.er1 >conftest.err
15782   rm -f conftest.er1
15783   cat conftest.err >&5
15784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785   (exit $ac_status); } &&
15786          { ac_try='test -z "$ac_c_werror_flag"
15787                          || test ! -s conftest.err'
15788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789   (eval $ac_try) 2>&5
15790   ac_status=$?
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); }; } &&
15793          { ac_try='test -s conftest$ac_exeext'
15794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795   (eval $ac_try) 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; }; then
15799   eval "$as_ac_var=yes"
15800 else
15801   echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804 eval "$as_ac_var=no"
15805 fi
15806 rm -f conftest.err conftest.$ac_objext \
15807       conftest$ac_exeext conftest.$ac_ext
15808 fi
15809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15811 if test `eval echo '${'$as_ac_var'}'` = yes; then
15812   cat >>confdefs.h <<_ACEOF
15813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15814 _ACEOF
15815
15816 else
15817   pgac_need_repl_snprintf=yes
15818 fi
15819 done
15820
15821
15822 for ac_func in vsnprintf
15823 do
15824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15825 echo "$as_me:$LINENO: checking for $ac_func" >&5
15826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15827 if eval "test \"\${$as_ac_var+set}\" = set"; then
15828   echo $ECHO_N "(cached) $ECHO_C" >&6
15829 else
15830   cat >conftest.$ac_ext <<_ACEOF
15831 /* confdefs.h.  */
15832 _ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h.  */
15836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15838 #define $ac_func innocuous_$ac_func
15839
15840 /* System header to define __stub macros and hopefully few prototypes,
15841     which can conflict with char $ac_func (); below.
15842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15843     <limits.h> exists even on freestanding compilers.  */
15844
15845 #ifdef __STDC__
15846 # include <limits.h>
15847 #else
15848 # include <assert.h>
15849 #endif
15850
15851 #undef $ac_func
15852
15853 /* Override any gcc2 internal prototype to avoid an error.  */
15854 #ifdef __cplusplus
15855 extern "C"
15856 {
15857 #endif
15858 /* We use char because int might match the return type of a gcc2
15859    builtin and then its argument prototype would still apply.  */
15860 char $ac_func ();
15861 /* The GNU C library defines this for functions which it implements
15862     to always fail with ENOSYS.  Some functions are actually named
15863     something starting with __ and the normal name is an alias.  */
15864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15865 choke me
15866 #else
15867 char (*f) () = $ac_func;
15868 #endif
15869 #ifdef __cplusplus
15870 }
15871 #endif
15872
15873 int
15874 main ()
15875 {
15876 return f != $ac_func;
15877   ;
15878   return 0;
15879 }
15880 _ACEOF
15881 rm -f conftest.$ac_objext conftest$ac_exeext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15883   (eval $ac_link) 2>conftest.er1
15884   ac_status=$?
15885   grep -v '^ *+' conftest.er1 >conftest.err
15886   rm -f conftest.er1
15887   cat conftest.err >&5
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); } &&
15890          { ac_try='test -z "$ac_c_werror_flag"
15891                          || test ! -s conftest.err'
15892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893   (eval $ac_try) 2>&5
15894   ac_status=$?
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); }; } &&
15897          { ac_try='test -s conftest$ac_exeext'
15898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899   (eval $ac_try) 2>&5
15900   ac_status=$?
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); }; }; then
15903   eval "$as_ac_var=yes"
15904 else
15905   echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15907
15908 eval "$as_ac_var=no"
15909 fi
15910 rm -f conftest.err conftest.$ac_objext \
15911       conftest$ac_exeext conftest.$ac_ext
15912 fi
15913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15915 if test `eval echo '${'$as_ac_var'}'` = yes; then
15916   cat >>confdefs.h <<_ACEOF
15917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15918 _ACEOF
15919
15920 else
15921   pgac_need_repl_snprintf=yes
15922 fi
15923 done
15924
15925 fi
15926
15927
15928 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
15929 # include/c.h will provide declarations.  Note this is a separate test
15930 # from whether the functions exist in the C library --- there are
15931 # systems that have the functions but don't bother to declare them :-(
15932
15933 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15934 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
15935 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15936   echo $ECHO_N "(cached) $ECHO_C" >&6
15937 else
15938   cat >conftest.$ac_ext <<_ACEOF
15939 /* confdefs.h.  */
15940 _ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h.  */
15944 $ac_includes_default
15945 int
15946 main ()
15947 {
15948 #ifndef snprintf
15949   char *p = (char *) snprintf;
15950 #endif
15951
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 rm -f conftest.$ac_objext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15958   (eval $ac_compile) 2>conftest.er1
15959   ac_status=$?
15960   grep -v '^ *+' conftest.er1 >conftest.err
15961   rm -f conftest.er1
15962   cat conftest.err >&5
15963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964   (exit $ac_status); } &&
15965          { ac_try='test -z "$ac_c_werror_flag"
15966                          || test ! -s conftest.err'
15967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968   (eval $ac_try) 2>&5
15969   ac_status=$?
15970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971   (exit $ac_status); }; } &&
15972          { ac_try='test -s conftest.$ac_objext'
15973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974   (eval $ac_try) 2>&5
15975   ac_status=$?
15976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977   (exit $ac_status); }; }; then
15978   ac_cv_have_decl_snprintf=yes
15979 else
15980   echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15982
15983 ac_cv_have_decl_snprintf=no
15984 fi
15985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15986 fi
15987 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15988 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
15989 if test $ac_cv_have_decl_snprintf = yes; then
15990
15991 cat >>confdefs.h <<_ACEOF
15992 #define HAVE_DECL_SNPRINTF 1
15993 _ACEOF
15994
15995
15996 else
15997   cat >>confdefs.h <<_ACEOF
15998 #define HAVE_DECL_SNPRINTF 0
15999 _ACEOF
16000
16001
16002 fi
16003 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16004 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16005 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16006   echo $ECHO_N "(cached) $ECHO_C" >&6
16007 else
16008   cat >conftest.$ac_ext <<_ACEOF
16009 /* confdefs.h.  */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h.  */
16014 $ac_includes_default
16015 int
16016 main ()
16017 {
16018 #ifndef vsnprintf
16019   char *p = (char *) vsnprintf;
16020 #endif
16021
16022   ;
16023   return 0;
16024 }
16025 _ACEOF
16026 rm -f conftest.$ac_objext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16028   (eval $ac_compile) 2>conftest.er1
16029   ac_status=$?
16030   grep -v '^ *+' conftest.er1 >conftest.err
16031   rm -f conftest.er1
16032   cat conftest.err >&5
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); } &&
16035          { ac_try='test -z "$ac_c_werror_flag"
16036                          || test ! -s conftest.err'
16037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038   (eval $ac_try) 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); }; } &&
16042          { ac_try='test -s conftest.$ac_objext'
16043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044   (eval $ac_try) 2>&5
16045   ac_status=$?
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); }; }; then
16048   ac_cv_have_decl_vsnprintf=yes
16049 else
16050   echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16052
16053 ac_cv_have_decl_vsnprintf=no
16054 fi
16055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16056 fi
16057 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16058 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
16059 if test $ac_cv_have_decl_vsnprintf = yes; then
16060
16061 cat >>confdefs.h <<_ACEOF
16062 #define HAVE_DECL_VSNPRINTF 1
16063 _ACEOF
16064
16065
16066 else
16067   cat >>confdefs.h <<_ACEOF
16068 #define HAVE_DECL_VSNPRINTF 0
16069 _ACEOF
16070
16071
16072 fi
16073
16074
16075
16076
16077 echo "$as_me:$LINENO: checking for isinf" >&5
16078 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
16079 if test "${ac_cv_func_isinf+set}" = set; then
16080   echo $ECHO_N "(cached) $ECHO_C" >&6
16081 else
16082   cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h.  */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h.  */
16088
16089 #include <math.h>
16090 double glob_double;
16091
16092 int
16093 main ()
16094 {
16095 return isinf(glob_double) ? 0 : 1;
16096   ;
16097   return 0;
16098 }
16099 _ACEOF
16100 rm -f conftest.$ac_objext conftest$ac_exeext
16101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16102   (eval $ac_link) 2>conftest.er1
16103   ac_status=$?
16104   grep -v '^ *+' conftest.er1 >conftest.err
16105   rm -f conftest.er1
16106   cat conftest.err >&5
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); } &&
16109          { ac_try='test -z "$ac_c_werror_flag"
16110                          || test ! -s conftest.err'
16111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112   (eval $ac_try) 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; } &&
16116          { ac_try='test -s conftest$ac_exeext'
16117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118   (eval $ac_try) 2>&5
16119   ac_status=$?
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); }; }; then
16122   ac_cv_func_isinf=yes
16123 else
16124   echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16126
16127 ac_cv_func_isinf=no
16128 fi
16129 rm -f conftest.err conftest.$ac_objext \
16130       conftest$ac_exeext conftest.$ac_ext
16131 fi
16132 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16133 echo "${ECHO_T}$ac_cv_func_isinf" >&6
16134
16135 if test $ac_cv_func_isinf = yes ; then
16136
16137 cat >>confdefs.h <<\_ACEOF
16138 #define HAVE_ISINF 1
16139 _ACEOF
16140
16141 else
16142   case $LIBOBJS in
16143     "isinf.$ac_objext"   | \
16144   *" isinf.$ac_objext"   | \
16145     "isinf.$ac_objext "* | \
16146   *" isinf.$ac_objext "* ) ;;
16147   *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
16148 esac
16149
16150   # Look for a way to implement a substitute for isinf()
16151
16152
16153
16154
16155 for ac_func in fpclass fp_class fp_class_d class
16156 do
16157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16158 echo "$as_me:$LINENO: checking for $ac_func" >&5
16159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16160 if eval "test \"\${$as_ac_var+set}\" = set"; then
16161   echo $ECHO_N "(cached) $ECHO_C" >&6
16162 else
16163   cat >conftest.$ac_ext <<_ACEOF
16164 /* confdefs.h.  */
16165 _ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h.  */
16169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16171 #define $ac_func innocuous_$ac_func
16172
16173 /* System header to define __stub macros and hopefully few prototypes,
16174     which can conflict with char $ac_func (); below.
16175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16176     <limits.h> exists even on freestanding compilers.  */
16177
16178 #ifdef __STDC__
16179 # include <limits.h>
16180 #else
16181 # include <assert.h>
16182 #endif
16183
16184 #undef $ac_func
16185
16186 /* Override any gcc2 internal prototype to avoid an error.  */
16187 #ifdef __cplusplus
16188 extern "C"
16189 {
16190 #endif
16191 /* We use char because int might match the return type of a gcc2
16192    builtin and then its argument prototype would still apply.  */
16193 char $ac_func ();
16194 /* The GNU C library defines this for functions which it implements
16195     to always fail with ENOSYS.  Some functions are actually named
16196     something starting with __ and the normal name is an alias.  */
16197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16198 choke me
16199 #else
16200 char (*f) () = $ac_func;
16201 #endif
16202 #ifdef __cplusplus
16203 }
16204 #endif
16205
16206 int
16207 main ()
16208 {
16209 return f != $ac_func;
16210   ;
16211   return 0;
16212 }
16213 _ACEOF
16214 rm -f conftest.$ac_objext conftest$ac_exeext
16215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16216   (eval $ac_link) 2>conftest.er1
16217   ac_status=$?
16218   grep -v '^ *+' conftest.er1 >conftest.err
16219   rm -f conftest.er1
16220   cat conftest.err >&5
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } &&
16223          { ac_try='test -z "$ac_c_werror_flag"
16224                          || test ! -s conftest.err'
16225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226   (eval $ac_try) 2>&5
16227   ac_status=$?
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); }; } &&
16230          { ac_try='test -s conftest$ac_exeext'
16231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232   (eval $ac_try) 2>&5
16233   ac_status=$?
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); }; }; then
16236   eval "$as_ac_var=yes"
16237 else
16238   echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16240
16241 eval "$as_ac_var=no"
16242 fi
16243 rm -f conftest.err conftest.$ac_objext \
16244       conftest$ac_exeext conftest.$ac_ext
16245 fi
16246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16248 if test `eval echo '${'$as_ac_var'}'` = yes; then
16249   cat >>confdefs.h <<_ACEOF
16250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16251 _ACEOF
16252  break
16253 fi
16254 done
16255
16256 fi
16257
16258 # Some versions of libedit contain strlcpy(); so disregard that library while
16259 # checking for these standard libc functions.
16260 pgac_save_LIBS="$LIBS"
16261 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16279 do
16280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16281 echo "$as_me:$LINENO: checking for $ac_func" >&5
16282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16283 if eval "test \"\${$as_ac_var+set}\" = set"; then
16284   echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286   cat >conftest.$ac_ext <<_ACEOF
16287 /* confdefs.h.  */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h.  */
16292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16294 #define $ac_func innocuous_$ac_func
16295
16296 /* System header to define __stub macros and hopefully few prototypes,
16297     which can conflict with char $ac_func (); below.
16298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16299     <limits.h> exists even on freestanding compilers.  */
16300
16301 #ifdef __STDC__
16302 # include <limits.h>
16303 #else
16304 # include <assert.h>
16305 #endif
16306
16307 #undef $ac_func
16308
16309 /* Override any gcc2 internal prototype to avoid an error.  */
16310 #ifdef __cplusplus
16311 extern "C"
16312 {
16313 #endif
16314 /* We use char because int might match the return type of a gcc2
16315    builtin and then its argument prototype would still apply.  */
16316 char $ac_func ();
16317 /* The GNU C library defines this for functions which it implements
16318     to always fail with ENOSYS.  Some functions are actually named
16319     something starting with __ and the normal name is an alias.  */
16320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16321 choke me
16322 #else
16323 char (*f) () = $ac_func;
16324 #endif
16325 #ifdef __cplusplus
16326 }
16327 #endif
16328
16329 int
16330 main ()
16331 {
16332 return f != $ac_func;
16333   ;
16334   return 0;
16335 }
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339   (eval $ac_link) 2>conftest.er1
16340   ac_status=$?
16341   grep -v '^ *+' conftest.er1 >conftest.err
16342   rm -f conftest.er1
16343   cat conftest.err >&5
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); } &&
16346          { ac_try='test -z "$ac_c_werror_flag"
16347                          || test ! -s conftest.err'
16348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349   (eval $ac_try) 2>&5
16350   ac_status=$?
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); }; } &&
16353          { ac_try='test -s conftest$ac_exeext'
16354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355   (eval $ac_try) 2>&5
16356   ac_status=$?
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); }; }; then
16359   eval "$as_ac_var=yes"
16360 else
16361   echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16363
16364 eval "$as_ac_var=no"
16365 fi
16366 rm -f conftest.err conftest.$ac_objext \
16367       conftest$ac_exeext conftest.$ac_ext
16368 fi
16369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16371 if test `eval echo '${'$as_ac_var'}'` = yes; then
16372   cat >>confdefs.h <<_ACEOF
16373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16374 _ACEOF
16375
16376 else
16377   case $LIBOBJS in
16378     "$ac_func.$ac_objext"   | \
16379   *" $ac_func.$ac_objext"   | \
16380     "$ac_func.$ac_objext "* | \
16381   *" $ac_func.$ac_objext "* ) ;;
16382   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16383 esac
16384
16385 fi
16386 done
16387
16388
16389
16390 LIBS="$pgac_save_LIBS"
16391
16392 # System's version of getaddrinfo(), if any, may be used only if we found
16393 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16394 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16395 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
16396 # because we want to use our own getaddrinfo.c on Windows anyway.)
16397 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
16398
16399 for ac_func in getaddrinfo
16400 do
16401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16402 echo "$as_me:$LINENO: checking for $ac_func" >&5
16403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16404 if eval "test \"\${$as_ac_var+set}\" = set"; then
16405   echo $ECHO_N "(cached) $ECHO_C" >&6
16406 else
16407   cat >conftest.$ac_ext <<_ACEOF
16408 /* confdefs.h.  */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h.  */
16413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16415 #define $ac_func innocuous_$ac_func
16416
16417 /* System header to define __stub macros and hopefully few prototypes,
16418     which can conflict with char $ac_func (); below.
16419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16420     <limits.h> exists even on freestanding compilers.  */
16421
16422 #ifdef __STDC__
16423 # include <limits.h>
16424 #else
16425 # include <assert.h>
16426 #endif
16427
16428 #undef $ac_func
16429
16430 /* Override any gcc2 internal prototype to avoid an error.  */
16431 #ifdef __cplusplus
16432 extern "C"
16433 {
16434 #endif
16435 /* We use char because int might match the return type of a gcc2
16436    builtin and then its argument prototype would still apply.  */
16437 char $ac_func ();
16438 /* The GNU C library defines this for functions which it implements
16439     to always fail with ENOSYS.  Some functions are actually named
16440     something starting with __ and the normal name is an alias.  */
16441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16442 choke me
16443 #else
16444 char (*f) () = $ac_func;
16445 #endif
16446 #ifdef __cplusplus
16447 }
16448 #endif
16449
16450 int
16451 main ()
16452 {
16453 return f != $ac_func;
16454   ;
16455   return 0;
16456 }
16457 _ACEOF
16458 rm -f conftest.$ac_objext conftest$ac_exeext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16460   (eval $ac_link) 2>conftest.er1
16461   ac_status=$?
16462   grep -v '^ *+' conftest.er1 >conftest.err
16463   rm -f conftest.er1
16464   cat conftest.err >&5
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); } &&
16467          { ac_try='test -z "$ac_c_werror_flag"
16468                          || test ! -s conftest.err'
16469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470   (eval $ac_try) 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; } &&
16474          { ac_try='test -s conftest$ac_exeext'
16475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476   (eval $ac_try) 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); }; }; then
16480   eval "$as_ac_var=yes"
16481 else
16482   echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16484
16485 eval "$as_ac_var=no"
16486 fi
16487 rm -f conftest.err conftest.$ac_objext \
16488       conftest$ac_exeext conftest.$ac_ext
16489 fi
16490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16492 if test `eval echo '${'$as_ac_var'}'` = yes; then
16493   cat >>confdefs.h <<_ACEOF
16494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16495 _ACEOF
16496
16497 else
16498   case $LIBOBJS in
16499     "$ac_func.$ac_objext"   | \
16500   *" $ac_func.$ac_objext"   | \
16501     "$ac_func.$ac_objext "* | \
16502   *" $ac_func.$ac_objext "* ) ;;
16503   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16504 esac
16505
16506 fi
16507 done
16508
16509
16510 else
16511   case $LIBOBJS in
16512     "getaddrinfo.$ac_objext"   | \
16513   *" getaddrinfo.$ac_objext"   | \
16514     "getaddrinfo.$ac_objext "* | \
16515   *" getaddrinfo.$ac_objext "* ) ;;
16516   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
16517 esac
16518
16519 fi
16520
16521 # similarly, use system's getopt_long() only if system provides struct option.
16522 if test x"$ac_cv_type_struct_option" = xyes ; then
16523
16524 for ac_func in getopt_long
16525 do
16526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16527 echo "$as_me:$LINENO: checking for $ac_func" >&5
16528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16529 if eval "test \"\${$as_ac_var+set}\" = set"; then
16530   echo $ECHO_N "(cached) $ECHO_C" >&6
16531 else
16532   cat >conftest.$ac_ext <<_ACEOF
16533 /* confdefs.h.  */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h.  */
16538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16540 #define $ac_func innocuous_$ac_func
16541
16542 /* System header to define __stub macros and hopefully few prototypes,
16543     which can conflict with char $ac_func (); below.
16544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16545     <limits.h> exists even on freestanding compilers.  */
16546
16547 #ifdef __STDC__
16548 # include <limits.h>
16549 #else
16550 # include <assert.h>
16551 #endif
16552
16553 #undef $ac_func
16554
16555 /* Override any gcc2 internal prototype to avoid an error.  */
16556 #ifdef __cplusplus
16557 extern "C"
16558 {
16559 #endif
16560 /* We use char because int might match the return type of a gcc2
16561    builtin and then its argument prototype would still apply.  */
16562 char $ac_func ();
16563 /* The GNU C library defines this for functions which it implements
16564     to always fail with ENOSYS.  Some functions are actually named
16565     something starting with __ and the normal name is an alias.  */
16566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16567 choke me
16568 #else
16569 char (*f) () = $ac_func;
16570 #endif
16571 #ifdef __cplusplus
16572 }
16573 #endif
16574
16575 int
16576 main ()
16577 {
16578 return f != $ac_func;
16579   ;
16580   return 0;
16581 }
16582 _ACEOF
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16585   (eval $ac_link) 2>conftest.er1
16586   ac_status=$?
16587   grep -v '^ *+' conftest.er1 >conftest.err
16588   rm -f conftest.er1
16589   cat conftest.err >&5
16590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591   (exit $ac_status); } &&
16592          { ac_try='test -z "$ac_c_werror_flag"
16593                          || test ! -s conftest.err'
16594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595   (eval $ac_try) 2>&5
16596   ac_status=$?
16597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598   (exit $ac_status); }; } &&
16599          { ac_try='test -s conftest$ac_exeext'
16600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601   (eval $ac_try) 2>&5
16602   ac_status=$?
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); }; }; then
16605   eval "$as_ac_var=yes"
16606 else
16607   echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16609
16610 eval "$as_ac_var=no"
16611 fi
16612 rm -f conftest.err conftest.$ac_objext \
16613       conftest$ac_exeext conftest.$ac_ext
16614 fi
16615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16617 if test `eval echo '${'$as_ac_var'}'` = yes; then
16618   cat >>confdefs.h <<_ACEOF
16619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16620 _ACEOF
16621
16622 else
16623   case $LIBOBJS in
16624     "$ac_func.$ac_objext"   | \
16625   *" $ac_func.$ac_objext"   | \
16626     "$ac_func.$ac_objext "* | \
16627   *" $ac_func.$ac_objext "* ) ;;
16628   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16629 esac
16630
16631 fi
16632 done
16633
16634
16635 else
16636   case $LIBOBJS in
16637     "getopt_long.$ac_objext"   | \
16638   *" getopt_long.$ac_objext"   | \
16639     "getopt_long.$ac_objext "* | \
16640   *" getopt_long.$ac_objext "* ) ;;
16641   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
16642 esac
16643
16644 fi
16645
16646 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
16647 # We override the previous test that said fseeko/ftello didn't exist
16648 # OS tests are also done in include/c.h and port/fseeko.c
16649 case $host_os in bsdi*|netbsd*)
16650 ac_cv_func_fseeko=yes
16651 esac
16652
16653 # Win32 support
16654 if test "$PORTNAME" = "win32"; then
16655 case $LIBOBJS in
16656     "gettimeofday.$ac_objext"   | \
16657   *" gettimeofday.$ac_objext"   | \
16658     "gettimeofday.$ac_objext "* | \
16659   *" gettimeofday.$ac_objext "* ) ;;
16660   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
16661 esac
16662
16663 case $LIBOBJS in
16664     "kill.$ac_objext"   | \
16665   *" kill.$ac_objext"   | \
16666     "kill.$ac_objext "* | \
16667   *" kill.$ac_objext "* ) ;;
16668   *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
16669 esac
16670
16671 case $LIBOBJS in
16672     "open.$ac_objext"   | \
16673   *" open.$ac_objext"   | \
16674     "open.$ac_objext "* | \
16675   *" open.$ac_objext "* ) ;;
16676   *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
16677 esac
16678
16679 case $LIBOBJS in
16680     "rand.$ac_objext"   | \
16681   *" rand.$ac_objext"   | \
16682     "rand.$ac_objext "* | \
16683   *" rand.$ac_objext "* ) ;;
16684   *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
16685 esac
16686
16687 case $LIBOBJS in
16688     "win32error.$ac_objext"   | \
16689   *" win32error.$ac_objext"   | \
16690     "win32error.$ac_objext "* | \
16691   *" win32error.$ac_objext "* ) ;;
16692   *) LIBOBJS="$LIBOBJS win32error.$ac_objext" ;;
16693 esac
16694
16695
16696 cat >>confdefs.h <<\_ACEOF
16697 #define HAVE_SYMLINK 1
16698 _ACEOF
16699
16700 fi
16701
16702 if test "$with_readline" = yes; then
16703   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
16704 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
16705 cat >conftest.$ac_ext <<_ACEOF
16706 /* confdefs.h.  */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h.  */
16711 #include <stdio.h>
16712 #ifdef HAVE_READLINE_READLINE_H
16713 # include <readline/readline.h>
16714 #elif defined(HAVE_READLINE_H)
16715 # include <readline.h>
16716 #endif
16717
16718 int
16719 main ()
16720 {
16721 rl_completion_append_character = 'x';
16722   ;
16723   return 0;
16724 }
16725 _ACEOF
16726 rm -f conftest.$ac_objext conftest$ac_exeext
16727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728   (eval $ac_link) 2>conftest.er1
16729   ac_status=$?
16730   grep -v '^ *+' conftest.er1 >conftest.err
16731   rm -f conftest.er1
16732   cat conftest.err >&5
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); } &&
16735          { ac_try='test -z "$ac_c_werror_flag"
16736                          || test ! -s conftest.err'
16737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738   (eval $ac_try) 2>&5
16739   ac_status=$?
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); }; } &&
16742          { ac_try='test -s conftest$ac_exeext'
16743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744   (eval $ac_try) 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); }; }; then
16748   echo "$as_me:$LINENO: result: yes" >&5
16749 echo "${ECHO_T}yes" >&6
16750
16751 cat >>confdefs.h <<\_ACEOF
16752 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
16753 _ACEOF
16754
16755 else
16756   echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16758
16759 echo "$as_me:$LINENO: result: no" >&5
16760 echo "${ECHO_T}no" >&6
16761 fi
16762 rm -f conftest.err conftest.$ac_objext \
16763       conftest$ac_exeext conftest.$ac_ext
16764
16765
16766 for ac_func in rl_completion_matches rl_filename_completion_function
16767 do
16768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16769 echo "$as_me:$LINENO: checking for $ac_func" >&5
16770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16771 if eval "test \"\${$as_ac_var+set}\" = set"; then
16772   echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774   cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h.  */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h.  */
16780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16782 #define $ac_func innocuous_$ac_func
16783
16784 /* System header to define __stub macros and hopefully few prototypes,
16785     which can conflict with char $ac_func (); below.
16786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787     <limits.h> exists even on freestanding compilers.  */
16788
16789 #ifdef __STDC__
16790 # include <limits.h>
16791 #else
16792 # include <assert.h>
16793 #endif
16794
16795 #undef $ac_func
16796
16797 /* Override any gcc2 internal prototype to avoid an error.  */
16798 #ifdef __cplusplus
16799 extern "C"
16800 {
16801 #endif
16802 /* We use char because int might match the return type of a gcc2
16803    builtin and then its argument prototype would still apply.  */
16804 char $ac_func ();
16805 /* The GNU C library defines this for functions which it implements
16806     to always fail with ENOSYS.  Some functions are actually named
16807     something starting with __ and the normal name is an alias.  */
16808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16809 choke me
16810 #else
16811 char (*f) () = $ac_func;
16812 #endif
16813 #ifdef __cplusplus
16814 }
16815 #endif
16816
16817 int
16818 main ()
16819 {
16820 return f != $ac_func;
16821   ;
16822   return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext conftest$ac_exeext
16826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16827   (eval $ac_link) 2>conftest.er1
16828   ac_status=$?
16829   grep -v '^ *+' conftest.er1 >conftest.err
16830   rm -f conftest.er1
16831   cat conftest.err >&5
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); } &&
16834          { ac_try='test -z "$ac_c_werror_flag"
16835                          || test ! -s conftest.err'
16836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837   (eval $ac_try) 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }; } &&
16841          { ac_try='test -s conftest$ac_exeext'
16842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843   (eval $ac_try) 2>&5
16844   ac_status=$?
16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846   (exit $ac_status); }; }; then
16847   eval "$as_ac_var=yes"
16848 else
16849   echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16851
16852 eval "$as_ac_var=no"
16853 fi
16854 rm -f conftest.err conftest.$ac_objext \
16855       conftest$ac_exeext conftest.$ac_ext
16856 fi
16857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16859 if test `eval echo '${'$as_ac_var'}'` = yes; then
16860   cat >>confdefs.h <<_ACEOF
16861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16862 _ACEOF
16863
16864 fi
16865 done
16866
16867
16868 for ac_func in replace_history_entry
16869 do
16870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16871 echo "$as_me:$LINENO: checking for $ac_func" >&5
16872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16873 if eval "test \"\${$as_ac_var+set}\" = set"; then
16874   echo $ECHO_N "(cached) $ECHO_C" >&6
16875 else
16876   cat >conftest.$ac_ext <<_ACEOF
16877 /* confdefs.h.  */
16878 _ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h.  */
16882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16884 #define $ac_func innocuous_$ac_func
16885
16886 /* System header to define __stub macros and hopefully few prototypes,
16887     which can conflict with char $ac_func (); below.
16888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16889     <limits.h> exists even on freestanding compilers.  */
16890
16891 #ifdef __STDC__
16892 # include <limits.h>
16893 #else
16894 # include <assert.h>
16895 #endif
16896
16897 #undef $ac_func
16898
16899 /* Override any gcc2 internal prototype to avoid an error.  */
16900 #ifdef __cplusplus
16901 extern "C"
16902 {
16903 #endif
16904 /* We use char because int might match the return type of a gcc2
16905    builtin and then its argument prototype would still apply.  */
16906 char $ac_func ();
16907 /* The GNU C library defines this for functions which it implements
16908     to always fail with ENOSYS.  Some functions are actually named
16909     something starting with __ and the normal name is an alias.  */
16910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16911 choke me
16912 #else
16913 char (*f) () = $ac_func;
16914 #endif
16915 #ifdef __cplusplus
16916 }
16917 #endif
16918
16919 int
16920 main ()
16921 {
16922 return f != $ac_func;
16923   ;
16924   return 0;
16925 }
16926 _ACEOF
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16929   (eval $ac_link) 2>conftest.er1
16930   ac_status=$?
16931   grep -v '^ *+' conftest.er1 >conftest.err
16932   rm -f conftest.er1
16933   cat conftest.err >&5
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); } &&
16936          { ac_try='test -z "$ac_c_werror_flag"
16937                          || test ! -s conftest.err'
16938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939   (eval $ac_try) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; } &&
16943          { ac_try='test -s conftest$ac_exeext'
16944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945   (eval $ac_try) 2>&5
16946   ac_status=$?
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); }; }; then
16949   eval "$as_ac_var=yes"
16950 else
16951   echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16953
16954 eval "$as_ac_var=no"
16955 fi
16956 rm -f conftest.err conftest.$ac_objext \
16957       conftest$ac_exeext conftest.$ac_ext
16958 fi
16959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16961 if test `eval echo '${'$as_ac_var'}'` = yes; then
16962   cat >>confdefs.h <<_ACEOF
16963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16964 _ACEOF
16965
16966 fi
16967 done
16968
16969 fi
16970
16971
16972 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16973 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16974 cat >conftest.$ac_ext <<_ACEOF
16975 /* confdefs.h.  */
16976 _ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h.  */
16980 #include <setjmp.h>
16981 int
16982 main ()
16983 {
16984 sigjmp_buf x; sigsetjmp(x, 1);
16985   ;
16986   return 0;
16987 }
16988 _ACEOF
16989 rm -f conftest.$ac_objext conftest$ac_exeext
16990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16991   (eval $ac_link) 2>conftest.er1
16992   ac_status=$?
16993   grep -v '^ *+' conftest.er1 >conftest.err
16994   rm -f conftest.er1
16995   cat conftest.err >&5
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); } &&
16998          { ac_try='test -z "$ac_c_werror_flag"
16999                          || test ! -s conftest.err'
17000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001   (eval $ac_try) 2>&5
17002   ac_status=$?
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); }; } &&
17005          { ac_try='test -s conftest$ac_exeext'
17006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007   (eval $ac_try) 2>&5
17008   ac_status=$?
17009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010   (exit $ac_status); }; }; then
17011
17012 cat >>confdefs.h <<\_ACEOF
17013 #define HAVE_SIGSETJMP 1
17014 _ACEOF
17015
17016 echo "$as_me:$LINENO: result: yes" >&5
17017 echo "${ECHO_T}yes" >&6
17018 else
17019   echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17021
17022 echo "$as_me:$LINENO: result: no" >&5
17023 echo "${ECHO_T}no" >&6
17024 fi
17025 rm -f conftest.err conftest.$ac_objext \
17026       conftest$ac_exeext conftest.$ac_ext
17027
17028 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17029 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
17030 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17031   echo $ECHO_N "(cached) $ECHO_C" >&6
17032 else
17033   cat >conftest.$ac_ext <<_ACEOF
17034 /* confdefs.h.  */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h.  */
17039 #include <signal.h>
17040 /* NetBSD declares sys_siglist in unistd.h.  */
17041 #if HAVE_UNISTD_H
17042 # include <unistd.h>
17043 #endif
17044
17045
17046 int
17047 main ()
17048 {
17049 #ifndef sys_siglist
17050   char *p = (char *) sys_siglist;
17051 #endif
17052
17053   ;
17054   return 0;
17055 }
17056 _ACEOF
17057 rm -f conftest.$ac_objext
17058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17059   (eval $ac_compile) 2>conftest.er1
17060   ac_status=$?
17061   grep -v '^ *+' conftest.er1 >conftest.err
17062   rm -f conftest.er1
17063   cat conftest.err >&5
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); } &&
17066          { ac_try='test -z "$ac_c_werror_flag"
17067                          || test ! -s conftest.err'
17068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069   (eval $ac_try) 2>&5
17070   ac_status=$?
17071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072   (exit $ac_status); }; } &&
17073          { ac_try='test -s conftest.$ac_objext'
17074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075   (eval $ac_try) 2>&5
17076   ac_status=$?
17077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078   (exit $ac_status); }; }; then
17079   ac_cv_have_decl_sys_siglist=yes
17080 else
17081   echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17083
17084 ac_cv_have_decl_sys_siglist=no
17085 fi
17086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17087 fi
17088 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17089 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
17090 if test $ac_cv_have_decl_sys_siglist = yes; then
17091
17092 cat >>confdefs.h <<_ACEOF
17093 #define HAVE_DECL_SYS_SIGLIST 1
17094 _ACEOF
17095
17096
17097 else
17098   cat >>confdefs.h <<_ACEOF
17099 #define HAVE_DECL_SYS_SIGLIST 0
17100 _ACEOF
17101
17102
17103 fi
17104
17105
17106
17107
17108 echo "$as_me:$LINENO: checking for syslog" >&5
17109 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
17110 if test "${ac_cv_func_syslog+set}" = set; then
17111   echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113   cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h.  */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h.  */
17119 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17121 #define syslog innocuous_syslog
17122
17123 /* System header to define __stub macros and hopefully few prototypes,
17124     which can conflict with char syslog (); below.
17125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17126     <limits.h> exists even on freestanding compilers.  */
17127
17128 #ifdef __STDC__
17129 # include <limits.h>
17130 #else
17131 # include <assert.h>
17132 #endif
17133
17134 #undef syslog
17135
17136 /* Override any gcc2 internal prototype to avoid an error.  */
17137 #ifdef __cplusplus
17138 extern "C"
17139 {
17140 #endif
17141 /* We use char because int might match the return type of a gcc2
17142    builtin and then its argument prototype would still apply.  */
17143 char syslog ();
17144 /* The GNU C library defines this for functions which it implements
17145     to always fail with ENOSYS.  Some functions are actually named
17146     something starting with __ and the normal name is an alias.  */
17147 #if defined (__stub_syslog) || defined (__stub___syslog)
17148 choke me
17149 #else
17150 char (*f) () = syslog;
17151 #endif
17152 #ifdef __cplusplus
17153 }
17154 #endif
17155
17156 int
17157 main ()
17158 {
17159 return f != syslog;
17160   ;
17161   return 0;
17162 }
17163 _ACEOF
17164 rm -f conftest.$ac_objext conftest$ac_exeext
17165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17166   (eval $ac_link) 2>conftest.er1
17167   ac_status=$?
17168   grep -v '^ *+' conftest.er1 >conftest.err
17169   rm -f conftest.er1
17170   cat conftest.err >&5
17171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); } &&
17173          { ac_try='test -z "$ac_c_werror_flag"
17174                          || test ! -s conftest.err'
17175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176   (eval $ac_try) 2>&5
17177   ac_status=$?
17178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179   (exit $ac_status); }; } &&
17180          { ac_try='test -s conftest$ac_exeext'
17181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182   (eval $ac_try) 2>&5
17183   ac_status=$?
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); }; }; then
17186   ac_cv_func_syslog=yes
17187 else
17188   echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17190
17191 ac_cv_func_syslog=no
17192 fi
17193 rm -f conftest.err conftest.$ac_objext \
17194       conftest$ac_exeext conftest.$ac_ext
17195 fi
17196 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17197 echo "${ECHO_T}$ac_cv_func_syslog" >&6
17198 if test $ac_cv_func_syslog = yes; then
17199   if test "${ac_cv_header_syslog_h+set}" = set; then
17200   echo "$as_me:$LINENO: checking for syslog.h" >&5
17201 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
17202 if test "${ac_cv_header_syslog_h+set}" = set; then
17203   echo $ECHO_N "(cached) $ECHO_C" >&6
17204 fi
17205 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17206 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
17207 else
17208   # Is the header compilable?
17209 echo "$as_me:$LINENO: checking syslog.h usability" >&5
17210 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
17211 cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h.  */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h.  */
17217 $ac_includes_default
17218 #include <syslog.h>
17219 _ACEOF
17220 rm -f conftest.$ac_objext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17222   (eval $ac_compile) 2>conftest.er1
17223   ac_status=$?
17224   grep -v '^ *+' conftest.er1 >conftest.err
17225   rm -f conftest.er1
17226   cat conftest.err >&5
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } &&
17229          { ac_try='test -z "$ac_c_werror_flag"
17230                          || test ! -s conftest.err'
17231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232   (eval $ac_try) 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); }; } &&
17236          { ac_try='test -s conftest.$ac_objext'
17237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238   (eval $ac_try) 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   ac_header_compiler=yes
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 ac_header_compiler=no
17248 fi
17249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17251 echo "${ECHO_T}$ac_header_compiler" >&6
17252
17253 # Is the header present?
17254 echo "$as_me:$LINENO: checking syslog.h presence" >&5
17255 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
17256 cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h.  */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h.  */
17262 #include <syslog.h>
17263 _ACEOF
17264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17266   ac_status=$?
17267   grep -v '^ *+' conftest.er1 >conftest.err
17268   rm -f conftest.er1
17269   cat conftest.err >&5
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); } >/dev/null; then
17272   if test -s conftest.err; then
17273     ac_cpp_err=$ac_c_preproc_warn_flag
17274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17275   else
17276     ac_cpp_err=
17277   fi
17278 else
17279   ac_cpp_err=yes
17280 fi
17281 if test -z "$ac_cpp_err"; then
17282   ac_header_preproc=yes
17283 else
17284   echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17286
17287   ac_header_preproc=no
17288 fi
17289 rm -f conftest.err conftest.$ac_ext
17290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17291 echo "${ECHO_T}$ac_header_preproc" >&6
17292
17293 # So?  What about this header?
17294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17295   yes:no: )
17296     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17297 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17298     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17299 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17300     ac_header_preproc=yes
17301     ;;
17302   no:yes:* )
17303     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17304 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17305     { echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
17306 echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
17307     { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17308 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17309     { echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
17310 echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17311     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17312 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17313     { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17314 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17315     (
17316       cat <<\_ASBOX
17317 ## ---------------------------------------- ##
17318 ## Report this to pgsql-bugs@postgresql.org ##
17319 ## ---------------------------------------- ##
17320 _ASBOX
17321     ) |
17322       sed "s/^/$as_me: WARNING:     /" >&2
17323     ;;
17324 esac
17325 echo "$as_me:$LINENO: checking for syslog.h" >&5
17326 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
17327 if test "${ac_cv_header_syslog_h+set}" = set; then
17328   echo $ECHO_N "(cached) $ECHO_C" >&6
17329 else
17330   ac_cv_header_syslog_h=$ac_header_preproc
17331 fi
17332 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17333 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
17334
17335 fi
17336 if test $ac_cv_header_syslog_h = yes; then
17337
17338 cat >>confdefs.h <<\_ACEOF
17339 #define HAVE_SYSLOG 1
17340 _ACEOF
17341
17342 fi
17343
17344
17345 fi
17346
17347
17348 echo "$as_me:$LINENO: checking for optreset" >&5
17349 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
17350 if test "${pgac_cv_var_int_optreset+set}" = set; then
17351   echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353   cat >conftest.$ac_ext <<_ACEOF
17354 /* confdefs.h.  */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h.  */
17359 #include <unistd.h>
17360 int
17361 main ()
17362 {
17363 extern int optreset; optreset = 1;
17364   ;
17365   return 0;
17366 }
17367 _ACEOF
17368 rm -f conftest.$ac_objext conftest$ac_exeext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17370   (eval $ac_link) 2>conftest.er1
17371   ac_status=$?
17372   grep -v '^ *+' conftest.er1 >conftest.err
17373   rm -f conftest.er1
17374   cat conftest.err >&5
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } &&
17377          { ac_try='test -z "$ac_c_werror_flag"
17378                          || test ! -s conftest.err'
17379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380   (eval $ac_try) 2>&5
17381   ac_status=$?
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); }; } &&
17384          { ac_try='test -s conftest$ac_exeext'
17385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386   (eval $ac_try) 2>&5
17387   ac_status=$?
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); }; }; then
17390   pgac_cv_var_int_optreset=yes
17391 else
17392   echo "$as_me: failed program was:" >&5
17393 sed 's/^/| /' conftest.$ac_ext >&5
17394
17395 pgac_cv_var_int_optreset=no
17396 fi
17397 rm -f conftest.err conftest.$ac_objext \
17398       conftest$ac_exeext conftest.$ac_ext
17399 fi
17400 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17401 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
17402 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
17403
17404 cat >>confdefs.h <<\_ACEOF
17405 #define HAVE_INT_OPTRESET 1
17406 _ACEOF
17407
17408 fi
17409
17410
17411
17412 for ac_func in strtoll strtoq
17413 do
17414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17415 echo "$as_me:$LINENO: checking for $ac_func" >&5
17416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17417 if eval "test \"\${$as_ac_var+set}\" = set"; then
17418   echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420   cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h.  */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h.  */
17426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17428 #define $ac_func innocuous_$ac_func
17429
17430 /* System header to define __stub macros and hopefully few prototypes,
17431     which can conflict with char $ac_func (); below.
17432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17433     <limits.h> exists even on freestanding compilers.  */
17434
17435 #ifdef __STDC__
17436 # include <limits.h>
17437 #else
17438 # include <assert.h>
17439 #endif
17440
17441 #undef $ac_func
17442
17443 /* Override any gcc2 internal prototype to avoid an error.  */
17444 #ifdef __cplusplus
17445 extern "C"
17446 {
17447 #endif
17448 /* We use char because int might match the return type of a gcc2
17449    builtin and then its argument prototype would still apply.  */
17450 char $ac_func ();
17451 /* The GNU C library defines this for functions which it implements
17452     to always fail with ENOSYS.  Some functions are actually named
17453     something starting with __ and the normal name is an alias.  */
17454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17455 choke me
17456 #else
17457 char (*f) () = $ac_func;
17458 #endif
17459 #ifdef __cplusplus
17460 }
17461 #endif
17462
17463 int
17464 main ()
17465 {
17466 return f != $ac_func;
17467   ;
17468   return 0;
17469 }
17470 _ACEOF
17471 rm -f conftest.$ac_objext conftest$ac_exeext
17472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17473   (eval $ac_link) 2>conftest.er1
17474   ac_status=$?
17475   grep -v '^ *+' conftest.er1 >conftest.err
17476   rm -f conftest.er1
17477   cat conftest.err >&5
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); } &&
17480          { ac_try='test -z "$ac_c_werror_flag"
17481                          || test ! -s conftest.err'
17482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483   (eval $ac_try) 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); }; } &&
17487          { ac_try='test -s conftest$ac_exeext'
17488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489   (eval $ac_try) 2>&5
17490   ac_status=$?
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); }; }; then
17493   eval "$as_ac_var=yes"
17494 else
17495   echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17497
17498 eval "$as_ac_var=no"
17499 fi
17500 rm -f conftest.err conftest.$ac_objext \
17501       conftest$ac_exeext conftest.$ac_ext
17502 fi
17503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17505 if test `eval echo '${'$as_ac_var'}'` = yes; then
17506   cat >>confdefs.h <<_ACEOF
17507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17508 _ACEOF
17509  break
17510 fi
17511 done
17512
17513
17514
17515 for ac_func in strtoull strtouq
17516 do
17517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17518 echo "$as_me:$LINENO: checking for $ac_func" >&5
17519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17520 if eval "test \"\${$as_ac_var+set}\" = set"; then
17521   echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523   cat >conftest.$ac_ext <<_ACEOF
17524 /* confdefs.h.  */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h.  */
17529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17531 #define $ac_func innocuous_$ac_func
17532
17533 /* System header to define __stub macros and hopefully few prototypes,
17534     which can conflict with char $ac_func (); below.
17535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17536     <limits.h> exists even on freestanding compilers.  */
17537
17538 #ifdef __STDC__
17539 # include <limits.h>
17540 #else
17541 # include <assert.h>
17542 #endif
17543
17544 #undef $ac_func
17545
17546 /* Override any gcc2 internal prototype to avoid an error.  */
17547 #ifdef __cplusplus
17548 extern "C"
17549 {
17550 #endif
17551 /* We use char because int might match the return type of a gcc2
17552    builtin and then its argument prototype would still apply.  */
17553 char $ac_func ();
17554 /* The GNU C library defines this for functions which it implements
17555     to always fail with ENOSYS.  Some functions are actually named
17556     something starting with __ and the normal name is an alias.  */
17557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17558 choke me
17559 #else
17560 char (*f) () = $ac_func;
17561 #endif
17562 #ifdef __cplusplus
17563 }
17564 #endif
17565
17566 int
17567 main ()
17568 {
17569 return f != $ac_func;
17570   ;
17571   return 0;
17572 }
17573 _ACEOF
17574 rm -f conftest.$ac_objext conftest$ac_exeext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17576   (eval $ac_link) 2>conftest.er1
17577   ac_status=$?
17578   grep -v '^ *+' conftest.er1 >conftest.err
17579   rm -f conftest.er1
17580   cat conftest.err >&5
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); } &&
17583          { ac_try='test -z "$ac_c_werror_flag"
17584                          || test ! -s conftest.err'
17585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586   (eval $ac_try) 2>&5
17587   ac_status=$?
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); }; } &&
17590          { ac_try='test -s conftest$ac_exeext'
17591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592   (eval $ac_try) 2>&5
17593   ac_status=$?
17594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595   (exit $ac_status); }; }; then
17596   eval "$as_ac_var=yes"
17597 else
17598   echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17600
17601 eval "$as_ac_var=no"
17602 fi
17603 rm -f conftest.err conftest.$ac_objext \
17604       conftest$ac_exeext conftest.$ac_ext
17605 fi
17606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17608 if test `eval echo '${'$as_ac_var'}'` = yes; then
17609   cat >>confdefs.h <<_ACEOF
17610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17611 _ACEOF
17612  break
17613 fi
17614 done
17615
17616
17617 # Check for one of atexit() or on_exit()
17618
17619 for ac_func in atexit
17620 do
17621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17622 echo "$as_me:$LINENO: checking for $ac_func" >&5
17623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17624 if eval "test \"\${$as_ac_var+set}\" = set"; then
17625   echo $ECHO_N "(cached) $ECHO_C" >&6
17626 else
17627   cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h.  */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h.  */
17633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17635 #define $ac_func innocuous_$ac_func
17636
17637 /* System header to define __stub macros and hopefully few prototypes,
17638     which can conflict with char $ac_func (); below.
17639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17640     <limits.h> exists even on freestanding compilers.  */
17641
17642 #ifdef __STDC__
17643 # include <limits.h>
17644 #else
17645 # include <assert.h>
17646 #endif
17647
17648 #undef $ac_func
17649
17650 /* Override any gcc2 internal prototype to avoid an error.  */
17651 #ifdef __cplusplus
17652 extern "C"
17653 {
17654 #endif
17655 /* We use char because int might match the return type of a gcc2
17656    builtin and then its argument prototype would still apply.  */
17657 char $ac_func ();
17658 /* The GNU C library defines this for functions which it implements
17659     to always fail with ENOSYS.  Some functions are actually named
17660     something starting with __ and the normal name is an alias.  */
17661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17662 choke me
17663 #else
17664 char (*f) () = $ac_func;
17665 #endif
17666 #ifdef __cplusplus
17667 }
17668 #endif
17669
17670 int
17671 main ()
17672 {
17673 return f != $ac_func;
17674   ;
17675   return 0;
17676 }
17677 _ACEOF
17678 rm -f conftest.$ac_objext conftest$ac_exeext
17679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680   (eval $ac_link) 2>conftest.er1
17681   ac_status=$?
17682   grep -v '^ *+' conftest.er1 >conftest.err
17683   rm -f conftest.er1
17684   cat conftest.err >&5
17685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686   (exit $ac_status); } &&
17687          { ac_try='test -z "$ac_c_werror_flag"
17688                          || test ! -s conftest.err'
17689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690   (eval $ac_try) 2>&5
17691   ac_status=$?
17692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693   (exit $ac_status); }; } &&
17694          { ac_try='test -s conftest$ac_exeext'
17695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696   (eval $ac_try) 2>&5
17697   ac_status=$?
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); }; }; then
17700   eval "$as_ac_var=yes"
17701 else
17702   echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17704
17705 eval "$as_ac_var=no"
17706 fi
17707 rm -f conftest.err conftest.$ac_objext \
17708       conftest$ac_exeext conftest.$ac_ext
17709 fi
17710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17712 if test `eval echo '${'$as_ac_var'}'` = yes; then
17713   cat >>confdefs.h <<_ACEOF
17714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17715 _ACEOF
17716
17717 else
17718
17719 for ac_func in on_exit
17720 do
17721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17722 echo "$as_me:$LINENO: checking for $ac_func" >&5
17723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17724 if eval "test \"\${$as_ac_var+set}\" = set"; then
17725   echo $ECHO_N "(cached) $ECHO_C" >&6
17726 else
17727   cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h.  */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h.  */
17733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17735 #define $ac_func innocuous_$ac_func
17736
17737 /* System header to define __stub macros and hopefully few prototypes,
17738     which can conflict with char $ac_func (); below.
17739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17740     <limits.h> exists even on freestanding compilers.  */
17741
17742 #ifdef __STDC__
17743 # include <limits.h>
17744 #else
17745 # include <assert.h>
17746 #endif
17747
17748 #undef $ac_func
17749
17750 /* Override any gcc2 internal prototype to avoid an error.  */
17751 #ifdef __cplusplus
17752 extern "C"
17753 {
17754 #endif
17755 /* We use char because int might match the return type of a gcc2
17756    builtin and then its argument prototype would still apply.  */
17757 char $ac_func ();
17758 /* The GNU C library defines this for functions which it implements
17759     to always fail with ENOSYS.  Some functions are actually named
17760     something starting with __ and the normal name is an alias.  */
17761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17762 choke me
17763 #else
17764 char (*f) () = $ac_func;
17765 #endif
17766 #ifdef __cplusplus
17767 }
17768 #endif
17769
17770 int
17771 main ()
17772 {
17773 return f != $ac_func;
17774   ;
17775   return 0;
17776 }
17777 _ACEOF
17778 rm -f conftest.$ac_objext conftest$ac_exeext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17780   (eval $ac_link) 2>conftest.er1
17781   ac_status=$?
17782   grep -v '^ *+' conftest.er1 >conftest.err
17783   rm -f conftest.er1
17784   cat conftest.err >&5
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); } &&
17787          { ac_try='test -z "$ac_c_werror_flag"
17788                          || test ! -s conftest.err'
17789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790   (eval $ac_try) 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }; } &&
17794          { ac_try='test -s conftest$ac_exeext'
17795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796   (eval $ac_try) 2>&5
17797   ac_status=$?
17798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); }; }; then
17800   eval "$as_ac_var=yes"
17801 else
17802   echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17804
17805 eval "$as_ac_var=no"
17806 fi
17807 rm -f conftest.err conftest.$ac_objext \
17808       conftest$ac_exeext conftest.$ac_ext
17809 fi
17810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17812 if test `eval echo '${'$as_ac_var'}'` = yes; then
17813   cat >>confdefs.h <<_ACEOF
17814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17815 _ACEOF
17816
17817 else
17818   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
17819 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
17820    { (exit 1); exit 1; }; }
17821 fi
17822 done
17823
17824 fi
17825 done
17826
17827
17828 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17829 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17830 if test "${ac_cv_sys_largefile_source+set}" = set; then
17831   echo $ECHO_N "(cached) $ECHO_C" >&6
17832 else
17833   while :; do
17834   ac_cv_sys_largefile_source=no
17835   cat >conftest.$ac_ext <<_ACEOF
17836 /* confdefs.h.  */
17837 _ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h.  */
17841 #include <stdio.h>
17842 int
17843 main ()
17844 {
17845 return !fseeko;
17846   ;
17847   return 0;
17848 }
17849 _ACEOF
17850 rm -f conftest.$ac_objext
17851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17852   (eval $ac_compile) 2>conftest.er1
17853   ac_status=$?
17854   grep -v '^ *+' conftest.er1 >conftest.err
17855   rm -f conftest.er1
17856   cat conftest.err >&5
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); } &&
17859          { ac_try='test -z "$ac_c_werror_flag"
17860                          || test ! -s conftest.err'
17861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862   (eval $ac_try) 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; } &&
17866          { ac_try='test -s conftest.$ac_objext'
17867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868   (eval $ac_try) 2>&5
17869   ac_status=$?
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); }; }; then
17872   break
17873 else
17874   echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 fi
17878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17879   cat >conftest.$ac_ext <<_ACEOF
17880 /* confdefs.h.  */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h.  */
17885 #define _LARGEFILE_SOURCE 1
17886 #include <stdio.h>
17887 int
17888 main ()
17889 {
17890 return !fseeko;
17891   ;
17892   return 0;
17893 }
17894 _ACEOF
17895 rm -f conftest.$ac_objext
17896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17897   (eval $ac_compile) 2>conftest.er1
17898   ac_status=$?
17899   grep -v '^ *+' conftest.er1 >conftest.err
17900   rm -f conftest.er1
17901   cat conftest.err >&5
17902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903   (exit $ac_status); } &&
17904          { ac_try='test -z "$ac_c_werror_flag"
17905                          || test ! -s conftest.err'
17906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907   (eval $ac_try) 2>&5
17908   ac_status=$?
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); }; } &&
17911          { ac_try='test -s conftest.$ac_objext'
17912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913   (eval $ac_try) 2>&5
17914   ac_status=$?
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); }; }; then
17917   ac_cv_sys_largefile_source=1; break
17918 else
17919   echo "$as_me: failed program was:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17921
17922 fi
17923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17924   break
17925 done
17926 fi
17927 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17928 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17929 if test "$ac_cv_sys_largefile_source" != no; then
17930
17931 cat >>confdefs.h <<_ACEOF
17932 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17933 _ACEOF
17934
17935 fi
17936 rm -f conftest*
17937
17938 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17939 # in glibc 2.1.3, but that breaks too many other things.
17940 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17941 echo "$as_me:$LINENO: checking for fseeko" >&5
17942 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17943 if test "${ac_cv_func_fseeko+set}" = set; then
17944   echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946   cat >conftest.$ac_ext <<_ACEOF
17947 /* confdefs.h.  */
17948 _ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h.  */
17952 #include <stdio.h>
17953 int
17954 main ()
17955 {
17956 return fseeko && fseeko (stdin, 0, 0);
17957   ;
17958   return 0;
17959 }
17960 _ACEOF
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17963   (eval $ac_link) 2>conftest.er1
17964   ac_status=$?
17965   grep -v '^ *+' conftest.er1 >conftest.err
17966   rm -f conftest.er1
17967   cat conftest.err >&5
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); } &&
17970          { ac_try='test -z "$ac_c_werror_flag"
17971                          || test ! -s conftest.err'
17972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973   (eval $ac_try) 2>&5
17974   ac_status=$?
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); }; } &&
17977          { ac_try='test -s conftest$ac_exeext'
17978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979   (eval $ac_try) 2>&5
17980   ac_status=$?
17981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982   (exit $ac_status); }; }; then
17983   ac_cv_func_fseeko=yes
17984 else
17985   echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17987
17988 ac_cv_func_fseeko=no
17989 fi
17990 rm -f conftest.err conftest.$ac_objext \
17991       conftest$ac_exeext conftest.$ac_ext
17992 fi
17993 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17994 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17995 if test $ac_cv_func_fseeko = yes; then
17996
17997 cat >>confdefs.h <<\_ACEOF
17998 #define HAVE_FSEEKO 1
17999 _ACEOF
18000
18001 fi
18002
18003
18004 #
18005 # Pthreads
18006 #
18007 # For each platform, we need to know about any special compile and link
18008 # libraries, and whether the normal C function names are thread-safe.
18009 # See the comment at the top of src/port/thread.c for more information.
18010 # WIN32 doesn't need the pthread tests;  it always uses threads
18011 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18012
18013
18014
18015
18016 ac_ext=c
18017 ac_cpp='$CPP $CPPFLAGS'
18018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18021
18022 acx_pthread_ok=no
18023
18024 # We used to check for pthread.h first, but this fails if pthread.h
18025 # requires special compiler flags (e.g. on True64 or Sequent).
18026 # It gets checked for in the link test anyway.
18027
18028 # First of all, check if the user has set any of the PTHREAD_LIBS,
18029 # etcetera environment variables, and if threads linking works using
18030 # them:
18031 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18032         save_CFLAGS="$CFLAGS"
18033         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18034         save_LIBS="$LIBS"
18035         LIBS="$PTHREAD_LIBS $LIBS"
18036         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18037 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
18038         cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h.  */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h.  */
18044
18045 /* Override any gcc2 internal prototype to avoid an error.  */
18046 #ifdef __cplusplus
18047 extern "C"
18048 #endif
18049 /* We use char because int might match the return type of a gcc2
18050    builtin and then its argument prototype would still apply.  */
18051 char pthread_join ();
18052 int
18053 main ()
18054 {
18055 pthread_join ();
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18062   (eval $ac_link) 2>conftest.er1
18063   ac_status=$?
18064   grep -v '^ *+' conftest.er1 >conftest.err
18065   rm -f conftest.er1
18066   cat conftest.err >&5
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); } &&
18069          { ac_try='test -z "$ac_c_werror_flag"
18070                          || test ! -s conftest.err'
18071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072   (eval $ac_try) 2>&5
18073   ac_status=$?
18074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075   (exit $ac_status); }; } &&
18076          { ac_try='test -s conftest$ac_exeext'
18077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078   (eval $ac_try) 2>&5
18079   ac_status=$?
18080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081   (exit $ac_status); }; }; then
18082   acx_pthread_ok=yes
18083 else
18084   echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18086
18087 fi
18088 rm -f conftest.err conftest.$ac_objext \
18089       conftest$ac_exeext conftest.$ac_ext
18090         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18091 echo "${ECHO_T}$acx_pthread_ok" >&6
18092         if test x"$acx_pthread_ok" = xno; then
18093                 PTHREAD_LIBS=""
18094                 PTHREAD_CFLAGS=""
18095         fi
18096         LIBS="$save_LIBS"
18097         CFLAGS="$save_CFLAGS"
18098 fi
18099
18100 # We must check for the threads library under a number of different
18101 # names; the ordering is very important because some systems
18102 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18103 # libraries is broken (non-POSIX).
18104
18105 # Create a list of thread flags to try.  Items starting with a "-" are
18106 # C compiler flags, and other items are library names, except for "none"
18107 # which indicates that we try without any flags at all, and "pthread-config"
18108 # which is a program returning the flags for the Pth emulation library.
18109
18110 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18111
18112 # The ordering *is* (sometimes) important.  Some notes on the
18113 # individual items follow:
18114
18115 # pthreads: AIX (must check this before -lpthread)
18116 # none: in case threads are in libc; should be tried before -Kthread and
18117 #       other compiler flags to prevent continual compiler warnings
18118 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18119 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18120 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18121 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18122 # -pthreads: Solaris/gcc
18123 # -mthreads: Mingw32/gcc, Lynx/gcc
18124 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18125 #      doesn't hurt to check since this sometimes defines pthreads too;
18126 #      also defines -D_REENTRANT)
18127 # pthread: Linux, etcetera
18128 # --thread-safe: KAI C++
18129 # pthread-config: use pthread-config program (for GNU Pth library)
18130
18131 case "${host_cpu}-${host_os}" in
18132         *solaris*)
18133
18134         # On Solaris (at least, for some versions), libc contains stubbed
18135         # (non-functional) versions of the pthreads routines, so link-based
18136         # tests will erroneously succeed.  (We need to link with -pthread or
18137         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
18138         # a function called by this macro, so we could check for that, but
18139         # who knows whether they'll stub that too in a future libc.)  So,
18140         # we'll just look for -pthreads and -lpthread first:
18141
18142         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18143         ;;
18144 esac
18145
18146 if test x"$acx_pthread_ok" = xno; then
18147 for flag in $acx_pthread_flags; do
18148
18149         tryPTHREAD_CFLAGS=""
18150         tryPTHREAD_LIBS=""
18151         case $flag in
18152                 none)
18153                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18154 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
18155                 ;;
18156
18157                 -*)
18158                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18159 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
18160                 tryPTHREAD_CFLAGS="$flag"
18161                 ;;
18162
18163                 pthread-config)
18164                 # skip this if we already have flags defined, for PostgreSQL
18165                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18166                 # Extract the first word of "pthread-config", so it can be a program name with args.
18167 set dummy pthread-config; ac_word=$2
18168 echo "$as_me:$LINENO: checking for $ac_word" >&5
18169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18170 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18171   echo $ECHO_N "(cached) $ECHO_C" >&6
18172 else
18173   if test -n "$acx_pthread_config"; then
18174   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18175 else
18176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18177 for as_dir in $PATH
18178 do
18179   IFS=$as_save_IFS
18180   test -z "$as_dir" && as_dir=.
18181   for ac_exec_ext in '' $ac_executable_extensions; do
18182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18183     ac_cv_prog_acx_pthread_config="yes"
18184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18185     break 2
18186   fi
18187 done
18188 done
18189
18190   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18191 fi
18192 fi
18193 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18194 if test -n "$acx_pthread_config"; then
18195   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18196 echo "${ECHO_T}$acx_pthread_config" >&6
18197 else
18198   echo "$as_me:$LINENO: result: no" >&5
18199 echo "${ECHO_T}no" >&6
18200 fi
18201
18202                 if test x"$acx_pthread_config" = xno; then continue; fi
18203                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18204                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18205                 ;;
18206
18207                 *)
18208                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18209 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
18210                 tryPTHREAD_LIBS="-l$flag"
18211                 ;;
18212         esac
18213
18214         save_LIBS="$LIBS"
18215         save_CFLAGS="$CFLAGS"
18216         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18217         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18218
18219         # Check for various functions.  We must include pthread.h,
18220         # since some functions may be macros.  (On the Sequent, we
18221         # need a special flag -Kthread to make this header compile.)
18222         # We check for pthread_join because it is in -lpthread on IRIX
18223         # while pthread_create is in libc.  We check for pthread_attr_init
18224         # due to DEC craziness with -lpthreads.  We check for
18225         # pthread_cleanup_push because it is one of the few pthread
18226         # functions on Solaris that doesn't have a non-functional libc stub.
18227         # We try pthread_create on general principles.
18228         cat >conftest.$ac_ext <<_ACEOF
18229 /* confdefs.h.  */
18230 _ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h.  */
18234 #include <pthread.h>
18235 int
18236 main ()
18237 {
18238 pthread_t th; pthread_join(th, 0);
18239                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
18240                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18241   ;
18242   return 0;
18243 }
18244 _ACEOF
18245 rm -f conftest.$ac_objext conftest$ac_exeext
18246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18247   (eval $ac_link) 2>conftest.er1
18248   ac_status=$?
18249   grep -v '^ *+' conftest.er1 >conftest.err
18250   rm -f conftest.er1
18251   cat conftest.err >&5
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); } &&
18254          { ac_try='test -z "$ac_c_werror_flag"
18255                          || test ! -s conftest.err'
18256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257   (eval $ac_try) 2>&5
18258   ac_status=$?
18259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); }; } &&
18261          { ac_try='test -s conftest$ac_exeext'
18262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263   (eval $ac_try) 2>&5
18264   ac_status=$?
18265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266   (exit $ac_status); }; }; then
18267   acx_pthread_ok=yes
18268 else
18269   echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18271
18272 acx_pthread_ok=no
18273 fi
18274 rm -f conftest.err conftest.$ac_objext \
18275       conftest$ac_exeext conftest.$ac_ext
18276
18277         if test "x$acx_pthread_ok" = xyes; then
18278             # Don't use options that are ignored by the compiler.
18279             # We find them by checking stderror.
18280             cat >conftest.$ac_ext <<_ACEOF
18281 int
18282 main (int argc, char **argv)
18283 {
18284   (void) argc;
18285   (void) argv;
18286   return 0;
18287 }
18288 _ACEOF
18289             rm -f conftest.$ac_objext conftest$ac_exeext
18290             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18291                 # we continue with more flags because Linux needs -lpthread
18292                 # for libpq builds on PostgreSQL.  The test above only
18293                 # tests for building binaries, not shared libraries.
18294                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18295                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18296             else   acx_pthread_ok=no
18297             fi
18298         fi
18299
18300         LIBS="$save_LIBS"
18301         CFLAGS="$save_CFLAGS"
18302
18303         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18304 echo "${ECHO_T}$acx_pthread_ok" >&6
18305 done
18306 fi
18307
18308 # Various other checks:
18309 if test "x$acx_pthread_ok" = xyes; then
18310         save_LIBS="$LIBS"
18311         LIBS="$PTHREAD_LIBS $LIBS"
18312         save_CFLAGS="$CFLAGS"
18313         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18314
18315         # Detect AIX lossage: threads are created detached by default
18316         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18317         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18318 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
18319         cat >conftest.$ac_ext <<_ACEOF
18320 /* confdefs.h.  */
18321 _ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h.  */
18325 #include <pthread.h>
18326 int
18327 main ()
18328 {
18329 int attr=PTHREAD_CREATE_JOINABLE;
18330   ;
18331   return 0;
18332 }
18333 _ACEOF
18334 rm -f conftest.$ac_objext conftest$ac_exeext
18335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18336   (eval $ac_link) 2>conftest.er1
18337   ac_status=$?
18338   grep -v '^ *+' conftest.er1 >conftest.err
18339   rm -f conftest.er1
18340   cat conftest.err >&5
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); } &&
18343          { ac_try='test -z "$ac_c_werror_flag"
18344                          || test ! -s conftest.err'
18345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346   (eval $ac_try) 2>&5
18347   ac_status=$?
18348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349   (exit $ac_status); }; } &&
18350          { ac_try='test -s conftest$ac_exeext'
18351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352   (eval $ac_try) 2>&5
18353   ac_status=$?
18354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355   (exit $ac_status); }; }; then
18356   ok=PTHREAD_CREATE_JOINABLE
18357 else
18358   echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18360
18361 ok=unknown
18362 fi
18363 rm -f conftest.err conftest.$ac_objext \
18364       conftest$ac_exeext conftest.$ac_ext
18365         if test x"$ok" = xunknown; then
18366                 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h.  */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h.  */
18372 #include <pthread.h>
18373 int
18374 main ()
18375 {
18376 int attr=PTHREAD_CREATE_UNDETACHED;
18377   ;
18378   return 0;
18379 }
18380 _ACEOF
18381 rm -f conftest.$ac_objext conftest$ac_exeext
18382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18383   (eval $ac_link) 2>conftest.er1
18384   ac_status=$?
18385   grep -v '^ *+' conftest.er1 >conftest.err
18386   rm -f conftest.er1
18387   cat conftest.err >&5
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); } &&
18390          { ac_try='test -z "$ac_c_werror_flag"
18391                          || test ! -s conftest.err'
18392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393   (eval $ac_try) 2>&5
18394   ac_status=$?
18395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396   (exit $ac_status); }; } &&
18397          { ac_try='test -s conftest$ac_exeext'
18398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399   (eval $ac_try) 2>&5
18400   ac_status=$?
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); }; }; then
18403   ok=PTHREAD_CREATE_UNDETACHED
18404 else
18405   echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18407
18408 ok=unknown
18409 fi
18410 rm -f conftest.err conftest.$ac_objext \
18411       conftest$ac_exeext conftest.$ac_ext
18412         fi
18413         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
18414
18415 cat >>confdefs.h <<\_ACEOF
18416 #define PTHREAD_CREATE_JOINABLE $ok
18417 _ACEOF
18418
18419         fi
18420         echo "$as_me:$LINENO: result: ${ok}" >&5
18421 echo "${ECHO_T}${ok}" >&6
18422         if test x"$ok" = xunknown; then
18423                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18424 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18425         fi
18426
18427         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18428 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
18429         flag=no
18430 # We always add these in PostgreSQL
18431 #       case "${host_cpu}-${host_os}" in
18432 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18433 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18434 #       esac
18435         echo "$as_me:$LINENO: result: ${flag}" >&5
18436 echo "${ECHO_T}${flag}" >&6
18437         if test "x$flag" != xno; then
18438                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18439         fi
18440
18441         LIBS="$save_LIBS"
18442         CFLAGS="$save_CFLAGS"
18443
18444 # Supporting cc_r would require a special CC in all places that
18445 # use libpq, and that is ugly, so we don't do it.  Users can still
18446 # define their compiler as cc_r to do thread builds of everything.
18447         # More AIX lossage: must compile with cc_r
18448         # Extract the first word of "cc_r", so it can be a program name with args.
18449 set dummy cc_r; ac_word=$2
18450 echo "$as_me:$LINENO: checking for $ac_word" >&5
18451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18452 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
18453   echo $ECHO_N "(cached) $ECHO_C" >&6
18454 else
18455   if test -n "$PTHREAD_CC"; then
18456   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18457 else
18458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18459 for as_dir in $PATH
18460 do
18461   IFS=$as_save_IFS
18462   test -z "$as_dir" && as_dir=.
18463   for ac_exec_ext in '' $ac_executable_extensions; do
18464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18465     ac_cv_prog_PTHREAD_CC="cc_r"
18466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18467     break 2
18468   fi
18469 done
18470 done
18471
18472   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
18473 fi
18474 fi
18475 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18476 if test -n "$PTHREAD_CC"; then
18477   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
18478 echo "${ECHO_T}$PTHREAD_CC" >&6
18479 else
18480   echo "$as_me:$LINENO: result: no" >&5
18481 echo "${ECHO_T}no" >&6
18482 fi
18483
18484 else
18485         PTHREAD_CC="$CC"
18486 fi
18487
18488
18489
18490
18491
18492 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18493 if test x"$acx_pthread_ok" = xyes; then
18494
18495 cat >>confdefs.h <<\_ACEOF
18496 #define HAVE_PTHREAD 1
18497 _ACEOF
18498
18499         :
18500 else
18501         acx_pthread_ok=no
18502
18503 fi
18504 ac_ext=c
18505 ac_cpp='$CPP $CPPFLAGS'
18506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18509
18510         # set thread flags
18511
18512 # Some platforms use these, so just defineed them.  They can't hurt if they
18513 # are not supported.
18514 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
18515
18516
18517 # At this point, we don't want to muck with the compiler name for threading.
18518 # Let's see who fails, perhaps AIX.  2004-04-23
18519 if test "$PTHREAD_CC" != "$CC"; then
18520 { { echo "$as_me:$LINENO: error:
18521 PostgreSQL does not support platforms that require a special compiler
18522 for thread safety." >&5
18523 echo "$as_me: error:
18524 PostgreSQL does not support platforms that require a special compiler
18525 for thread safety." >&2;}
18526    { (exit 1); exit 1; }; }
18527 fi
18528
18529 if test "$THREAD_SUPPORT" = no; then
18530 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
18531 This platform is known to not support thread-safe programs.  For details,
18532 compile and run src/bin/pg_thread_test." >&5
18533 echo "$as_me: error: cannot enable threads on this platform
18534 This platform is known to not support thread-safe programs.  For details,
18535 compile and run src/bin/pg_thread_test." >&2;}
18536    { (exit 1); exit 1; }; }
18537 fi
18538
18539 # Check for *_r functions
18540 _CFLAGS="$CFLAGS"
18541 _LIBS="$LIBS"
18542 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18543 LIBS="$LIBS $PTHREAD_LIBS"
18544
18545 if test "$PORTNAME" != "win32"; then
18546 if test "${ac_cv_header_pthread_h+set}" = set; then
18547   echo "$as_me:$LINENO: checking for pthread.h" >&5
18548 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
18549 if test "${ac_cv_header_pthread_h+set}" = set; then
18550   echo $ECHO_N "(cached) $ECHO_C" >&6
18551 fi
18552 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18553 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
18554 else
18555   # Is the header compilable?
18556 echo "$as_me:$LINENO: checking pthread.h usability" >&5
18557 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
18558 cat >conftest.$ac_ext <<_ACEOF
18559 /* confdefs.h.  */
18560 _ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h.  */
18564 $ac_includes_default
18565 #include <pthread.h>
18566 _ACEOF
18567 rm -f conftest.$ac_objext
18568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18569   (eval $ac_compile) 2>conftest.er1
18570   ac_status=$?
18571   grep -v '^ *+' conftest.er1 >conftest.err
18572   rm -f conftest.er1
18573   cat conftest.err >&5
18574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); } &&
18576          { ac_try='test -z "$ac_c_werror_flag"
18577                          || test ! -s conftest.err'
18578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579   (eval $ac_try) 2>&5
18580   ac_status=$?
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); }; } &&
18583          { ac_try='test -s conftest.$ac_objext'
18584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585   (eval $ac_try) 2>&5
18586   ac_status=$?
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); }; }; then
18589   ac_header_compiler=yes
18590 else
18591   echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18593
18594 ac_header_compiler=no
18595 fi
18596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18598 echo "${ECHO_T}$ac_header_compiler" >&6
18599
18600 # Is the header present?
18601 echo "$as_me:$LINENO: checking pthread.h presence" >&5
18602 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
18603 cat >conftest.$ac_ext <<_ACEOF
18604 /* confdefs.h.  */
18605 _ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h.  */
18609 #include <pthread.h>
18610 _ACEOF
18611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18613   ac_status=$?
18614   grep -v '^ *+' conftest.er1 >conftest.err
18615   rm -f conftest.er1
18616   cat conftest.err >&5
18617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618   (exit $ac_status); } >/dev/null; then
18619   if test -s conftest.err; then
18620     ac_cpp_err=$ac_c_preproc_warn_flag
18621     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18622   else
18623     ac_cpp_err=
18624   fi
18625 else
18626   ac_cpp_err=yes
18627 fi
18628 if test -z "$ac_cpp_err"; then
18629   ac_header_preproc=yes
18630 else
18631   echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18633
18634   ac_header_preproc=no
18635 fi
18636 rm -f conftest.err conftest.$ac_ext
18637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18638 echo "${ECHO_T}$ac_header_preproc" >&6
18639
18640 # So?  What about this header?
18641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18642   yes:no: )
18643     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
18644 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18645     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
18646 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
18647     ac_header_preproc=yes
18648     ;;
18649   no:yes:* )
18650     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
18651 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
18652     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
18653 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
18654     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
18655 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
18656     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
18657 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18658     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
18659 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
18660     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
18661 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
18662     (
18663       cat <<\_ASBOX
18664 ## ---------------------------------------- ##
18665 ## Report this to pgsql-bugs@postgresql.org ##
18666 ## ---------------------------------------- ##
18667 _ASBOX
18668     ) |
18669       sed "s/^/$as_me: WARNING:     /" >&2
18670     ;;
18671 esac
18672 echo "$as_me:$LINENO: checking for pthread.h" >&5
18673 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
18674 if test "${ac_cv_header_pthread_h+set}" = set; then
18675   echo $ECHO_N "(cached) $ECHO_C" >&6
18676 else
18677   ac_cv_header_pthread_h=$ac_header_preproc
18678 fi
18679 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18680 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
18681
18682 fi
18683 if test $ac_cv_header_pthread_h = yes; then
18684   :
18685 else
18686   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
18687 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
18688    { (exit 1); exit 1; }; }
18689 fi
18690
18691
18692 fi
18693
18694
18695
18696
18697 for ac_func in strerror_r getpwuid_r gethostbyname_r
18698 do
18699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18700 echo "$as_me:$LINENO: checking for $ac_func" >&5
18701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18702 if eval "test \"\${$as_ac_var+set}\" = set"; then
18703   echo $ECHO_N "(cached) $ECHO_C" >&6
18704 else
18705   cat >conftest.$ac_ext <<_ACEOF
18706 /* confdefs.h.  */
18707 _ACEOF
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h.  */
18711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18713 #define $ac_func innocuous_$ac_func
18714
18715 /* System header to define __stub macros and hopefully few prototypes,
18716     which can conflict with char $ac_func (); below.
18717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18718     <limits.h> exists even on freestanding compilers.  */
18719
18720 #ifdef __STDC__
18721 # include <limits.h>
18722 #else
18723 # include <assert.h>
18724 #endif
18725
18726 #undef $ac_func
18727
18728 /* Override any gcc2 internal prototype to avoid an error.  */
18729 #ifdef __cplusplus
18730 extern "C"
18731 {
18732 #endif
18733 /* We use char because int might match the return type of a gcc2
18734    builtin and then its argument prototype would still apply.  */
18735 char $ac_func ();
18736 /* The GNU C library defines this for functions which it implements
18737     to always fail with ENOSYS.  Some functions are actually named
18738     something starting with __ and the normal name is an alias.  */
18739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18740 choke me
18741 #else
18742 char (*f) () = $ac_func;
18743 #endif
18744 #ifdef __cplusplus
18745 }
18746 #endif
18747
18748 int
18749 main ()
18750 {
18751 return f != $ac_func;
18752   ;
18753   return 0;
18754 }
18755 _ACEOF
18756 rm -f conftest.$ac_objext conftest$ac_exeext
18757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18758   (eval $ac_link) 2>conftest.er1
18759   ac_status=$?
18760   grep -v '^ *+' conftest.er1 >conftest.err
18761   rm -f conftest.er1
18762   cat conftest.err >&5
18763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764   (exit $ac_status); } &&
18765          { ac_try='test -z "$ac_c_werror_flag"
18766                          || test ! -s conftest.err'
18767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768   (eval $ac_try) 2>&5
18769   ac_status=$?
18770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771   (exit $ac_status); }; } &&
18772          { ac_try='test -s conftest$ac_exeext'
18773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774   (eval $ac_try) 2>&5
18775   ac_status=$?
18776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777   (exit $ac_status); }; }; then
18778   eval "$as_ac_var=yes"
18779 else
18780   echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18782
18783 eval "$as_ac_var=no"
18784 fi
18785 rm -f conftest.err conftest.$ac_objext \
18786       conftest$ac_exeext conftest.$ac_ext
18787 fi
18788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18790 if test `eval echo '${'$as_ac_var'}'` = yes; then
18791   cat >>confdefs.h <<_ACEOF
18792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18793 _ACEOF
18794
18795 fi
18796 done
18797
18798
18799 # Do test here with the proper thread flags
18800 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
18801 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
18802 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
18803   echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805   cat >conftest.$ac_ext <<_ACEOF
18806 /* confdefs.h.  */
18807 _ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h.  */
18811 #include <sys/types.h>
18812 #include <pwd.h>
18813 int
18814 main ()
18815 {
18816 uid_t uid;
18817 struct passwd *space;
18818 char *buf;
18819 size_t bufsize;
18820 struct passwd **result;
18821 getpwuid_r(uid, space, buf, bufsize, result);
18822   ;
18823   return 0;
18824 }
18825 _ACEOF
18826 rm -f conftest.$ac_objext
18827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18828   (eval $ac_compile) 2>conftest.er1
18829   ac_status=$?
18830   grep -v '^ *+' conftest.er1 >conftest.err
18831   rm -f conftest.er1
18832   cat conftest.err >&5
18833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834   (exit $ac_status); } &&
18835          { ac_try='test -z "$ac_c_werror_flag"
18836                          || test ! -s conftest.err'
18837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838   (eval $ac_try) 2>&5
18839   ac_status=$?
18840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841   (exit $ac_status); }; } &&
18842          { ac_try='test -s conftest.$ac_objext'
18843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844   (eval $ac_try) 2>&5
18845   ac_status=$?
18846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847   (exit $ac_status); }; }; then
18848   pgac_func_getpwuid_r_5arg=yes
18849 else
18850   echo "$as_me: failed program was:" >&5
18851 sed 's/^/| /' conftest.$ac_ext >&5
18852
18853 pgac_func_getpwuid_r_5arg=no
18854 fi
18855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18856 fi
18857 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
18858 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
18859 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
18860
18861 cat >>confdefs.h <<\_ACEOF
18862 #define GETPWUID_R_5ARG
18863 _ACEOF
18864
18865 fi
18866
18867 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
18868 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
18869 if test "${pgac_func_strerror_r_int+set}" = set; then
18870   echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872   cat >conftest.$ac_ext <<_ACEOF
18873 /* confdefs.h.  */
18874 _ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h.  */
18878 #include <string.h>
18879 int
18880 main ()
18881 {
18882 #ifndef _AIX
18883 int strerror_r(int, char *, size_t);
18884 #else
18885 /* Older AIX has 'int' for the third argument so we don't test the args. */
18886 int strerror_r();
18887 #endif
18888   ;
18889   return 0;
18890 }
18891 _ACEOF
18892 rm -f conftest.$ac_objext
18893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18894   (eval $ac_compile) 2>conftest.er1
18895   ac_status=$?
18896   grep -v '^ *+' conftest.er1 >conftest.err
18897   rm -f conftest.er1
18898   cat conftest.err >&5
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); } &&
18901          { ac_try='test -z "$ac_c_werror_flag"
18902                          || test ! -s conftest.err'
18903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904   (eval $ac_try) 2>&5
18905   ac_status=$?
18906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); }; } &&
18908          { ac_try='test -s conftest.$ac_objext'
18909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910   (eval $ac_try) 2>&5
18911   ac_status=$?
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); }; }; then
18914   pgac_func_strerror_r_int=yes
18915 else
18916   echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18918
18919 pgac_func_strerror_r_int=no
18920 fi
18921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18922 fi
18923 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
18924 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
18925 if test x"$pgac_func_strerror_r_int" = xyes ; then
18926
18927 cat >>confdefs.h <<\_ACEOF
18928 #define STRERROR_R_INT
18929 _ACEOF
18930
18931 fi
18932
18933
18934 CFLAGS="$_CFLAGS"
18935 LIBS="$_LIBS"
18936
18937 else
18938 # do not use values from template file
18939 PTHREAD_CFLAGS=
18940 PTHREAD_LIBS=
18941 fi
18942
18943
18944
18945
18946
18947 # We can test for libldap_r only after we know PTHREAD_LIBS
18948 if test "$with_ldap" = yes ; then
18949   _LIBS="$LIBS"
18950   if test "$PORTNAME" != "win32"; then
18951
18952 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
18953 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
18954 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
18955   echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957   ac_check_lib_save_LIBS=$LIBS
18958 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
18959 cat >conftest.$ac_ext <<_ACEOF
18960 /* confdefs.h.  */
18961 _ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h.  */
18965
18966 /* Override any gcc2 internal prototype to avoid an error.  */
18967 #ifdef __cplusplus
18968 extern "C"
18969 #endif
18970 /* We use char because int might match the return type of a gcc2
18971    builtin and then its argument prototype would still apply.  */
18972 char ldap_bind ();
18973 int
18974 main ()
18975 {
18976 ldap_bind ();
18977   ;
18978   return 0;
18979 }
18980 _ACEOF
18981 rm -f conftest.$ac_objext conftest$ac_exeext
18982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18983   (eval $ac_link) 2>conftest.er1
18984   ac_status=$?
18985   grep -v '^ *+' conftest.er1 >conftest.err
18986   rm -f conftest.er1
18987   cat conftest.err >&5
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); } &&
18990          { ac_try='test -z "$ac_c_werror_flag"
18991                          || test ! -s conftest.err'
18992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993   (eval $ac_try) 2>&5
18994   ac_status=$?
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); }; } &&
18997          { ac_try='test -s conftest$ac_exeext'
18998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999   (eval $ac_try) 2>&5
19000   ac_status=$?
19001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002   (exit $ac_status); }; }; then
19003   ac_cv_lib_ldap_ldap_bind=yes
19004 else
19005   echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19007
19008 ac_cv_lib_ldap_ldap_bind=no
19009 fi
19010 rm -f conftest.err conftest.$ac_objext \
19011       conftest$ac_exeext conftest.$ac_ext
19012 LIBS=$ac_check_lib_save_LIBS
19013 fi
19014 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19015 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
19016 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19017   cat >>confdefs.h <<_ACEOF
19018 #define HAVE_LIBLDAP 1
19019 _ACEOF
19020
19021   LIBS="-lldap $LIBS"
19022
19023 else
19024   { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19025 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19026    { (exit 1); exit 1; }; }
19027 fi
19028
19029     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19030     if test "$enable_thread_safety" = yes; then
19031       # on some platforms ldap_r fails to link without PTHREAD_LIBS
19032
19033 echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19034 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6
19035 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19036   echo $ECHO_N "(cached) $ECHO_C" >&6
19037 else
19038   ac_check_lib_save_LIBS=$LIBS
19039 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19040 cat >conftest.$ac_ext <<_ACEOF
19041 /* confdefs.h.  */
19042 _ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h.  */
19046
19047 /* Override any gcc2 internal prototype to avoid an error.  */
19048 #ifdef __cplusplus
19049 extern "C"
19050 #endif
19051 /* We use char because int might match the return type of a gcc2
19052    builtin and then its argument prototype would still apply.  */
19053 char ldap_simple_bind ();
19054 int
19055 main ()
19056 {
19057 ldap_simple_bind ();
19058   ;
19059   return 0;
19060 }
19061 _ACEOF
19062 rm -f conftest.$ac_objext conftest$ac_exeext
19063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19064   (eval $ac_link) 2>conftest.er1
19065   ac_status=$?
19066   grep -v '^ *+' conftest.er1 >conftest.err
19067   rm -f conftest.er1
19068   cat conftest.err >&5
19069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070   (exit $ac_status); } &&
19071          { ac_try='test -z "$ac_c_werror_flag"
19072                          || test ! -s conftest.err'
19073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074   (eval $ac_try) 2>&5
19075   ac_status=$?
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); }; } &&
19078          { ac_try='test -s conftest$ac_exeext'
19079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080   (eval $ac_try) 2>&5
19081   ac_status=$?
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); }; }; then
19084   ac_cv_lib_ldap_r_ldap_simple_bind=yes
19085 else
19086   echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19088
19089 ac_cv_lib_ldap_r_ldap_simple_bind=no
19090 fi
19091 rm -f conftest.err conftest.$ac_objext \
19092       conftest$ac_exeext conftest.$ac_ext
19093 LIBS=$ac_check_lib_save_LIBS
19094 fi
19095 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19096 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6
19097 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19098   cat >>confdefs.h <<_ACEOF
19099 #define HAVE_LIBLDAP_R 1
19100 _ACEOF
19101
19102   LIBS="-lldap_r $LIBS"
19103
19104 else
19105   { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19106 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19107    { (exit 1); exit 1; }; }
19108 fi
19109
19110       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19111     else
19112       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19113     fi
19114   else
19115
19116 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19117 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
19118 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19119   echo $ECHO_N "(cached) $ECHO_C" >&6
19120 else
19121   ac_check_lib_save_LIBS=$LIBS
19122 LIBS="-lwldap32  $LIBS"
19123 cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h.  */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h.  */
19129
19130 /* Override any gcc2 internal prototype to avoid an error.  */
19131 #ifdef __cplusplus
19132 extern "C"
19133 #endif
19134 /* We use char because int might match the return type of a gcc2
19135    builtin and then its argument prototype would still apply.  */
19136 char ldap_bind ();
19137 int
19138 main ()
19139 {
19140 ldap_bind ();
19141   ;
19142   return 0;
19143 }
19144 _ACEOF
19145 rm -f conftest.$ac_objext conftest$ac_exeext
19146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19147   (eval $ac_link) 2>conftest.er1
19148   ac_status=$?
19149   grep -v '^ *+' conftest.er1 >conftest.err
19150   rm -f conftest.er1
19151   cat conftest.err >&5
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); } &&
19154          { ac_try='test -z "$ac_c_werror_flag"
19155                          || test ! -s conftest.err'
19156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157   (eval $ac_try) 2>&5
19158   ac_status=$?
19159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160   (exit $ac_status); }; } &&
19161          { ac_try='test -s conftest$ac_exeext'
19162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163   (eval $ac_try) 2>&5
19164   ac_status=$?
19165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166   (exit $ac_status); }; }; then
19167   ac_cv_lib_wldap32_ldap_bind=yes
19168 else
19169   echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19171
19172 ac_cv_lib_wldap32_ldap_bind=no
19173 fi
19174 rm -f conftest.err conftest.$ac_objext \
19175       conftest$ac_exeext conftest.$ac_ext
19176 LIBS=$ac_check_lib_save_LIBS
19177 fi
19178 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19179 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
19180 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19181   cat >>confdefs.h <<_ACEOF
19182 #define HAVE_LIBWLDAP32 1
19183 _ACEOF
19184
19185   LIBS="-lwldap32 $LIBS"
19186
19187 else
19188   { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19189 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19190    { (exit 1); exit 1; }; }
19191 fi
19192
19193     LDAP_LIBS_FE="-lwldap32"
19194     LDAP_LIBS_BE="-lwldap32"
19195   fi
19196   LIBS="$_LIBS"
19197 fi
19198
19199
19200
19201
19202 # This test makes sure that run tests work at all.  Sometimes a shared
19203 # library is found by the linker, but the runtime linker can't find it.
19204 # This check should come after all modifications of compiler or linker
19205 # variables, and before any other run tests.
19206 echo "$as_me:$LINENO: checking test program" >&5
19207 echo $ECHO_N "checking test program... $ECHO_C" >&6
19208 if test "$cross_compiling" = yes; then
19209   echo "$as_me:$LINENO: result: cross-compiling" >&5
19210 echo "${ECHO_T}cross-compiling" >&6
19211 else
19212   cat >conftest.$ac_ext <<_ACEOF
19213 /* confdefs.h.  */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h.  */
19218 int main() { return 0; }
19219 _ACEOF
19220 rm -f conftest$ac_exeext
19221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19222   (eval $ac_link) 2>&5
19223   ac_status=$?
19224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227   (eval $ac_try) 2>&5
19228   ac_status=$?
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); }; }; then
19231   echo "$as_me:$LINENO: result: ok" >&5
19232 echo "${ECHO_T}ok" >&6
19233 else
19234   echo "$as_me: program exited with status $ac_status" >&5
19235 echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19237
19238 ( exit $ac_status )
19239 echo "$as_me:$LINENO: result: failed" >&5
19240 echo "${ECHO_T}failed" >&6
19241 { { echo "$as_me:$LINENO: error:
19242 Could not execute a simple test program.  This may be a problem
19243 related to locating shared libraries.  Check the file 'config.log'
19244 for the exact reason." >&5
19245 echo "$as_me: error:
19246 Could not execute a simple test program.  This may be a problem
19247 related to locating shared libraries.  Check the file 'config.log'
19248 for the exact reason." >&2;}
19249    { (exit 1); exit 1; }; }
19250 fi
19251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19252 fi
19253
19254 # --------------------
19255 # Run tests below here
19256 # --------------------
19257
19258 # Force use of our snprintf if system's doesn't do arg control
19259 # See comment above at snprintf test for details.
19260 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19261   echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19262 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
19263 if test "${pgac_cv_printf_arg_control+set}" = set; then
19264   echo $ECHO_N "(cached) $ECHO_C" >&6
19265 else
19266   if test "$cross_compiling" = yes; then
19267   pgac_cv_printf_arg_control=cross
19268 else
19269   cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h.  */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h.  */
19275 #include <stdio.h>
19276 #include <string.h>
19277
19278 int main()
19279 {
19280   char buf[100];
19281
19282   /* can it swap arguments? */
19283   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19284   if (strcmp(buf, "4 3") != 0)
19285     return 1;
19286   return 0;
19287 }
19288 _ACEOF
19289 rm -f conftest$ac_exeext
19290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19291   (eval $ac_link) 2>&5
19292   ac_status=$?
19293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296   (eval $ac_try) 2>&5
19297   ac_status=$?
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); }; }; then
19300   pgac_cv_printf_arg_control=yes
19301 else
19302   echo "$as_me: program exited with status $ac_status" >&5
19303 echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19305
19306 ( exit $ac_status )
19307 pgac_cv_printf_arg_control=no
19308 fi
19309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19310 fi
19311
19312 fi
19313 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19314 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
19315
19316   if test $pgac_cv_printf_arg_control != yes ; then
19317     pgac_need_repl_snprintf=yes
19318   fi
19319 fi
19320
19321
19322
19323 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19324 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
19325 if test "${pgac_cv_type_long_int_64+set}" = set; then
19326   echo $ECHO_N "(cached) $ECHO_C" >&6
19327 else
19328   if test "$cross_compiling" = yes; then
19329   # If cross-compiling, check the size reported by the compiler and
19330 # trust that the arithmetic works.
19331 cat >conftest.$ac_ext <<_ACEOF
19332 /* confdefs.h.  */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h.  */
19337
19338 int
19339 main ()
19340 {
19341 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19342 test_array [0] = 0
19343
19344   ;
19345   return 0;
19346 }
19347 _ACEOF
19348 rm -f conftest.$ac_objext
19349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19350   (eval $ac_compile) 2>conftest.er1
19351   ac_status=$?
19352   grep -v '^ *+' conftest.er1 >conftest.err
19353   rm -f conftest.er1
19354   cat conftest.err >&5
19355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356   (exit $ac_status); } &&
19357          { ac_try='test -z "$ac_c_werror_flag"
19358                          || test ! -s conftest.err'
19359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360   (eval $ac_try) 2>&5
19361   ac_status=$?
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); }; } &&
19364          { ac_try='test -s conftest.$ac_objext'
19365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366   (eval $ac_try) 2>&5
19367   ac_status=$?
19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369   (exit $ac_status); }; }; then
19370   pgac_cv_type_long_int_64=yes
19371 else
19372   echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375 pgac_cv_type_long_int_64=no
19376 fi
19377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19378 else
19379   cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h.  */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h.  */
19385 typedef long int ac_int64;
19386
19387 /*
19388  * These are globals to discourage the compiler from folding all the
19389  * arithmetic tests down to compile-time constants.
19390  */
19391 ac_int64 a = 20000001;
19392 ac_int64 b = 40000005;
19393
19394 int does_int64_work()
19395 {
19396   ac_int64 c,d;
19397
19398   if (sizeof(ac_int64) != 8)
19399     return 0;                   /* definitely not the right size */
19400
19401   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19402   c = a * b;
19403   d = (c + b) / b;
19404   if (d != a+1)
19405     return 0;
19406   return 1;
19407 }
19408 main() {
19409   exit(! does_int64_work());
19410 }
19411 _ACEOF
19412 rm -f conftest$ac_exeext
19413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19414   (eval $ac_link) 2>&5
19415   ac_status=$?
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419   (eval $ac_try) 2>&5
19420   ac_status=$?
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); }; }; then
19423   pgac_cv_type_long_int_64=yes
19424 else
19425   echo "$as_me: program exited with status $ac_status" >&5
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19428
19429 ( exit $ac_status )
19430 pgac_cv_type_long_int_64=no
19431 fi
19432 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19433 fi
19434 fi
19435 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19436 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
19437
19438 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
19439 if test x"$pgac_cv_type_long_int_64" = xyes ; then
19440
19441 cat >>confdefs.h <<\_ACEOF
19442 #define HAVE_LONG_INT_64
19443 _ACEOF
19444
19445 fi
19446
19447
19448 if test x"$HAVE_LONG_INT_64" = x"no" ; then
19449   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
19450 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
19451 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
19452   echo $ECHO_N "(cached) $ECHO_C" >&6
19453 else
19454   if test "$cross_compiling" = yes; then
19455   # If cross-compiling, check the size reported by the compiler and
19456 # trust that the arithmetic works.
19457 cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h.  */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h.  */
19463
19464 int
19465 main ()
19466 {
19467 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
19468 test_array [0] = 0
19469
19470   ;
19471   return 0;
19472 }
19473 _ACEOF
19474 rm -f conftest.$ac_objext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19476   (eval $ac_compile) 2>conftest.er1
19477   ac_status=$?
19478   grep -v '^ *+' conftest.er1 >conftest.err
19479   rm -f conftest.er1
19480   cat conftest.err >&5
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); } &&
19483          { ac_try='test -z "$ac_c_werror_flag"
19484                          || test ! -s conftest.err'
19485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486   (eval $ac_try) 2>&5
19487   ac_status=$?
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); }; } &&
19490          { ac_try='test -s conftest.$ac_objext'
19491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492   (eval $ac_try) 2>&5
19493   ac_status=$?
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); }; }; then
19496   pgac_cv_type_long_long_int_64=yes
19497 else
19498   echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19500
19501 pgac_cv_type_long_long_int_64=no
19502 fi
19503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19504 else
19505   cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h.  */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h.  */
19511 typedef long long int ac_int64;
19512
19513 /*
19514  * These are globals to discourage the compiler from folding all the
19515  * arithmetic tests down to compile-time constants.
19516  */
19517 ac_int64 a = 20000001;
19518 ac_int64 b = 40000005;
19519
19520 int does_int64_work()
19521 {
19522   ac_int64 c,d;
19523
19524   if (sizeof(ac_int64) != 8)
19525     return 0;                   /* definitely not the right size */
19526
19527   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19528   c = a * b;
19529   d = (c + b) / b;
19530   if (d != a+1)
19531     return 0;
19532   return 1;
19533 }
19534 main() {
19535   exit(! does_int64_work());
19536 }
19537 _ACEOF
19538 rm -f conftest$ac_exeext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540   (eval $ac_link) 2>&5
19541   ac_status=$?
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545   (eval $ac_try) 2>&5
19546   ac_status=$?
19547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548   (exit $ac_status); }; }; then
19549   pgac_cv_type_long_long_int_64=yes
19550 else
19551   echo "$as_me: program exited with status $ac_status" >&5
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19554
19555 ( exit $ac_status )
19556 pgac_cv_type_long_long_int_64=no
19557 fi
19558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19559 fi
19560 fi
19561 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
19562 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
19563
19564 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
19565 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
19566
19567 cat >>confdefs.h <<\_ACEOF
19568 #define HAVE_LONG_LONG_INT_64
19569 _ACEOF
19570
19571 fi
19572
19573 fi
19574
19575
19576
19577 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
19578   cat >conftest.$ac_ext <<_ACEOF
19579 /* confdefs.h.  */
19580 _ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h.  */
19584
19585 #define INT64CONST(x)  x##LL
19586 long long int foo = INT64CONST(0x1234567890123456);
19587
19588 int
19589 main ()
19590 {
19591
19592   ;
19593   return 0;
19594 }
19595 _ACEOF
19596 rm -f conftest.$ac_objext
19597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598   (eval $ac_compile) 2>conftest.er1
19599   ac_status=$?
19600   grep -v '^ *+' conftest.er1 >conftest.err
19601   rm -f conftest.er1
19602   cat conftest.err >&5
19603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604   (exit $ac_status); } &&
19605          { ac_try='test -z "$ac_c_werror_flag"
19606                          || test ! -s conftest.err'
19607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608   (eval $ac_try) 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); }; } &&
19612          { ac_try='test -s conftest.$ac_objext'
19613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614   (eval $ac_try) 2>&5
19615   ac_status=$?
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); }; }; then
19618
19619 cat >>confdefs.h <<\_ACEOF
19620 #define HAVE_LL_CONSTANTS 1
19621 _ACEOF
19622
19623 else
19624   echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19626
19627 fi
19628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19629 fi
19630
19631
19632 # If we found "long int" is 64 bits, assume snprintf handles it.  If
19633 # we found we need to use "long long int", better check.  We cope with
19634 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
19635 # work, fall back to our own snprintf emulation (which we know uses %lld).
19636
19637 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
19638   if test $pgac_need_repl_snprintf = no; then
19639     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
19640 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
19641 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
19642   echo $ECHO_N "(cached) $ECHO_C" >&6
19643 else
19644   for pgac_format in '%lld' '%qd' '%I64d'; do
19645 if test "$cross_compiling" = yes; then
19646   pgac_cv_snprintf_long_long_int_format=cross; break
19647 else
19648   cat >conftest.$ac_ext <<_ACEOF
19649 /* confdefs.h.  */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h.  */
19654 #include <stdio.h>
19655 typedef long long int ac_int64;
19656 #define INT64_FORMAT "$pgac_format"
19657
19658 ac_int64 a = 20000001;
19659 ac_int64 b = 40000005;
19660
19661 int does_int64_snprintf_work()
19662 {
19663   ac_int64 c;
19664   char buf[100];
19665
19666   if (sizeof(ac_int64) != 8)
19667     return 0;                   /* doesn't look like the right size */
19668
19669   c = a * b;
19670   snprintf(buf, 100, INT64_FORMAT, c);
19671   if (strcmp(buf, "800000140000005") != 0)
19672     return 0;                   /* either multiply or snprintf is busted */
19673   return 1;
19674 }
19675 main() {
19676   exit(! does_int64_snprintf_work());
19677 }
19678 _ACEOF
19679 rm -f conftest$ac_exeext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19681   (eval $ac_link) 2>&5
19682   ac_status=$?
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686   (eval $ac_try) 2>&5
19687   ac_status=$?
19688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689   (exit $ac_status); }; }; then
19690   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
19691 else
19692   echo "$as_me: program exited with status $ac_status" >&5
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696 fi
19697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19698 fi
19699 done
19700 fi
19701
19702 LONG_LONG_INT_FORMAT=''
19703
19704 case $pgac_cv_snprintf_long_long_int_format in
19705   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
19706 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
19707   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
19708 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
19709          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
19710   *)     echo "$as_me:$LINENO: result: none" >&5
19711 echo "${ECHO_T}none" >&6;;
19712 esac
19713     if test "$LONG_LONG_INT_FORMAT" = ""; then
19714       # Force usage of our own snprintf, since system snprintf is broken
19715       pgac_need_repl_snprintf=yes
19716       LONG_LONG_INT_FORMAT='%lld'
19717     fi
19718   else
19719     # Here if we previously decided we needed to use our own snprintf
19720     LONG_LONG_INT_FORMAT='%lld'
19721   fi
19722   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
19723   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
19724   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
19725 else
19726   # Here if we are not using 'long long int' at all
19727   INT64_FORMAT='"%ld"'
19728   UINT64_FORMAT='"%lu"'
19729 fi
19730
19731
19732 cat >>confdefs.h <<_ACEOF
19733 #define INT64_FORMAT $INT64_FORMAT
19734 _ACEOF
19735
19736
19737
19738 cat >>confdefs.h <<_ACEOF
19739 #define UINT64_FORMAT $UINT64_FORMAT
19740 _ACEOF
19741
19742
19743 # Now we have checked all the reasons to replace snprintf
19744 if test $pgac_need_repl_snprintf = yes; then
19745
19746 cat >>confdefs.h <<\_ACEOF
19747 #define USE_REPL_SNPRINTF 1
19748 _ACEOF
19749
19750   case $LIBOBJS in
19751     "snprintf.$ac_objext"   | \
19752   *" snprintf.$ac_objext"   | \
19753     "snprintf.$ac_objext "* | \
19754   *" snprintf.$ac_objext "* ) ;;
19755   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
19756 esac
19757
19758 fi
19759
19760 # Need a #define for the size of Datum (unsigned long)
19761 echo "$as_me:$LINENO: checking for unsigned long" >&5
19762 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
19763 if test "${ac_cv_type_unsigned_long+set}" = set; then
19764   echo $ECHO_N "(cached) $ECHO_C" >&6
19765 else
19766   cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h.  */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h.  */
19772 $ac_includes_default
19773 int
19774 main ()
19775 {
19776 if ((unsigned long *) 0)
19777   return 0;
19778 if (sizeof (unsigned long))
19779   return 0;
19780   ;
19781   return 0;
19782 }
19783 _ACEOF
19784 rm -f conftest.$ac_objext
19785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19786   (eval $ac_compile) 2>conftest.er1
19787   ac_status=$?
19788   grep -v '^ *+' conftest.er1 >conftest.err
19789   rm -f conftest.er1
19790   cat conftest.err >&5
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); } &&
19793          { ac_try='test -z "$ac_c_werror_flag"
19794                          || test ! -s conftest.err'
19795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796   (eval $ac_try) 2>&5
19797   ac_status=$?
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); }; } &&
19800          { ac_try='test -s conftest.$ac_objext'
19801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802   (eval $ac_try) 2>&5
19803   ac_status=$?
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); }; }; then
19806   ac_cv_type_unsigned_long=yes
19807 else
19808   echo "$as_me: failed program was:" >&5
19809 sed 's/^/| /' conftest.$ac_ext >&5
19810
19811 ac_cv_type_unsigned_long=no
19812 fi
19813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19814 fi
19815 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
19816 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
19817
19818 echo "$as_me:$LINENO: checking size of unsigned long" >&5
19819 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
19820 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
19821   echo $ECHO_N "(cached) $ECHO_C" >&6
19822 else
19823   if test "$ac_cv_type_unsigned_long" = yes; then
19824   # The cast to unsigned long works around a bug in the HP C Compiler
19825   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19826   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19827   # This bug is HP SR number 8606223364.
19828   if test "$cross_compiling" = yes; then
19829   # Depending upon the size, compute the lo and hi bounds.
19830 cat >conftest.$ac_ext <<_ACEOF
19831 /* confdefs.h.  */
19832 _ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h.  */
19836 $ac_includes_default
19837 int
19838 main ()
19839 {
19840 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
19841 test_array [0] = 0
19842
19843   ;
19844   return 0;
19845 }
19846 _ACEOF
19847 rm -f conftest.$ac_objext
19848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19849   (eval $ac_compile) 2>conftest.er1
19850   ac_status=$?
19851   grep -v '^ *+' conftest.er1 >conftest.err
19852   rm -f conftest.er1
19853   cat conftest.err >&5
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); } &&
19856          { ac_try='test -z "$ac_c_werror_flag"
19857                          || test ! -s conftest.err'
19858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859   (eval $ac_try) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); }; } &&
19863          { ac_try='test -s conftest.$ac_objext'
19864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865   (eval $ac_try) 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; }; then
19869   ac_lo=0 ac_mid=0
19870   while :; do
19871     cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h.  */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h.  */
19877 $ac_includes_default
19878 int
19879 main ()
19880 {
19881 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
19882 test_array [0] = 0
19883
19884   ;
19885   return 0;
19886 }
19887 _ACEOF
19888 rm -f conftest.$ac_objext
19889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19890   (eval $ac_compile) 2>conftest.er1
19891   ac_status=$?
19892   grep -v '^ *+' conftest.er1 >conftest.err
19893   rm -f conftest.er1
19894   cat conftest.err >&5
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); } &&
19897          { ac_try='test -z "$ac_c_werror_flag"
19898                          || test ! -s conftest.err'
19899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900   (eval $ac_try) 2>&5
19901   ac_status=$?
19902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); }; } &&
19904          { ac_try='test -s conftest.$ac_objext'
19905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906   (eval $ac_try) 2>&5
19907   ac_status=$?
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); }; }; then
19910   ac_hi=$ac_mid; break
19911 else
19912   echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19914
19915 ac_lo=`expr $ac_mid + 1`
19916                     if test $ac_lo -le $ac_mid; then
19917                       ac_lo= ac_hi=
19918                       break
19919                     fi
19920                     ac_mid=`expr 2 '*' $ac_mid + 1`
19921 fi
19922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19923   done
19924 else
19925   echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928 cat >conftest.$ac_ext <<_ACEOF
19929 /* confdefs.h.  */
19930 _ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h.  */
19934 $ac_includes_default
19935 int
19936 main ()
19937 {
19938 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
19939 test_array [0] = 0
19940
19941   ;
19942   return 0;
19943 }
19944 _ACEOF
19945 rm -f conftest.$ac_objext
19946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19947   (eval $ac_compile) 2>conftest.er1
19948   ac_status=$?
19949   grep -v '^ *+' conftest.er1 >conftest.err
19950   rm -f conftest.er1
19951   cat conftest.err >&5
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); } &&
19954          { ac_try='test -z "$ac_c_werror_flag"
19955                          || test ! -s conftest.err'
19956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957   (eval $ac_try) 2>&5
19958   ac_status=$?
19959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960   (exit $ac_status); }; } &&
19961          { ac_try='test -s conftest.$ac_objext'
19962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963   (eval $ac_try) 2>&5
19964   ac_status=$?
19965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966   (exit $ac_status); }; }; then
19967   ac_hi=-1 ac_mid=-1
19968   while :; do
19969     cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h.  */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h.  */
19975 $ac_includes_default
19976 int
19977 main ()
19978 {
19979 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
19980 test_array [0] = 0
19981
19982   ;
19983   return 0;
19984 }
19985 _ACEOF
19986 rm -f conftest.$ac_objext
19987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19988   (eval $ac_compile) 2>conftest.er1
19989   ac_status=$?
19990   grep -v '^ *+' conftest.er1 >conftest.err
19991   rm -f conftest.er1
19992   cat conftest.err >&5
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } &&
19995          { ac_try='test -z "$ac_c_werror_flag"
19996                          || test ! -s conftest.err'
19997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998   (eval $ac_try) 2>&5
19999   ac_status=$?
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); }; } &&
20002          { ac_try='test -s conftest.$ac_objext'
20003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004   (eval $ac_try) 2>&5
20005   ac_status=$?
20006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007   (exit $ac_status); }; }; then
20008   ac_lo=$ac_mid; break
20009 else
20010   echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20012
20013 ac_hi=`expr '(' $ac_mid ')' - 1`
20014                        if test $ac_mid -le $ac_hi; then
20015                          ac_lo= ac_hi=
20016                          break
20017                        fi
20018                        ac_mid=`expr 2 '*' $ac_mid`
20019 fi
20020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20021   done
20022 else
20023   echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20025
20026 ac_lo= ac_hi=
20027 fi
20028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20029 fi
20030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20031 # Binary search between lo and hi bounds.
20032 while test "x$ac_lo" != "x$ac_hi"; do
20033   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20034   cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h.  */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h.  */
20040 $ac_includes_default
20041 int
20042 main ()
20043 {
20044 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
20045 test_array [0] = 0
20046
20047   ;
20048   return 0;
20049 }
20050 _ACEOF
20051 rm -f conftest.$ac_objext
20052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20053   (eval $ac_compile) 2>conftest.er1
20054   ac_status=$?
20055   grep -v '^ *+' conftest.er1 >conftest.err
20056   rm -f conftest.er1
20057   cat conftest.err >&5
20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059   (exit $ac_status); } &&
20060          { ac_try='test -z "$ac_c_werror_flag"
20061                          || test ! -s conftest.err'
20062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063   (eval $ac_try) 2>&5
20064   ac_status=$?
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); }; } &&
20067          { ac_try='test -s conftest.$ac_objext'
20068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069   (eval $ac_try) 2>&5
20070   ac_status=$?
20071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072   (exit $ac_status); }; }; then
20073   ac_hi=$ac_mid
20074 else
20075   echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20077
20078 ac_lo=`expr '(' $ac_mid ')' + 1`
20079 fi
20080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20081 done
20082 case $ac_lo in
20083 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20084 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
20085 See \`config.log' for more details." >&5
20086 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
20087 See \`config.log' for more details." >&2;}
20088    { (exit 1); exit 1; }; } ;;
20089 esac
20090 else
20091   if test "$cross_compiling" = yes; then
20092   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20093 See \`config.log' for more details." >&5
20094 echo "$as_me: error: cannot run test program while cross compiling
20095 See \`config.log' for more details." >&2;}
20096    { (exit 1); exit 1; }; }
20097 else
20098   cat >conftest.$ac_ext <<_ACEOF
20099 /* confdefs.h.  */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h.  */
20104 $ac_includes_default
20105 long longval () { return (long) (sizeof (unsigned long)); }
20106 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
20107 #include <stdio.h>
20108 #include <stdlib.h>
20109 int
20110 main ()
20111 {
20112
20113   FILE *f = fopen ("conftest.val", "w");
20114   if (! f)
20115     exit (1);
20116   if (((long) (sizeof (unsigned long))) < 0)
20117     {
20118       long i = longval ();
20119       if (i != ((long) (sizeof (unsigned long))))
20120         exit (1);
20121       fprintf (f, "%ld\n", i);
20122     }
20123   else
20124     {
20125       unsigned long i = ulongval ();
20126       if (i != ((long) (sizeof (unsigned long))))
20127         exit (1);
20128       fprintf (f, "%lu\n", i);
20129     }
20130   exit (ferror (f) || fclose (f) != 0);
20131
20132   ;
20133   return 0;
20134 }
20135 _ACEOF
20136 rm -f conftest$ac_exeext
20137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20138   (eval $ac_link) 2>&5
20139   ac_status=$?
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143   (eval $ac_try) 2>&5
20144   ac_status=$?
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); }; }; then
20147   ac_cv_sizeof_unsigned_long=`cat conftest.val`
20148 else
20149   echo "$as_me: program exited with status $ac_status" >&5
20150 echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20152
20153 ( exit $ac_status )
20154 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
20155 See \`config.log' for more details." >&5
20156 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
20157 See \`config.log' for more details." >&2;}
20158    { (exit 1); exit 1; }; }
20159 fi
20160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20161 fi
20162 fi
20163 rm -f conftest.val
20164 else
20165   ac_cv_sizeof_unsigned_long=0
20166 fi
20167 fi
20168 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20169 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
20170 cat >>confdefs.h <<_ACEOF
20171 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20172 _ACEOF
20173
20174
20175
20176 # And one for the size of size_t (enables tweaks for > 32bit address space)
20177 echo "$as_me:$LINENO: checking for size_t" >&5
20178 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20179 if test "${ac_cv_type_size_t+set}" = set; then
20180   echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182   cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h.  */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h.  */
20188 $ac_includes_default
20189 int
20190 main ()
20191 {
20192 if ((size_t *) 0)
20193   return 0;
20194 if (sizeof (size_t))
20195   return 0;
20196   ;
20197   return 0;
20198 }
20199 _ACEOF
20200 rm -f conftest.$ac_objext
20201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20202   (eval $ac_compile) 2>conftest.er1
20203   ac_status=$?
20204   grep -v '^ *+' conftest.er1 >conftest.err
20205   rm -f conftest.er1
20206   cat conftest.err >&5
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); } &&
20209          { ac_try='test -z "$ac_c_werror_flag"
20210                          || test ! -s conftest.err'
20211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212   (eval $ac_try) 2>&5
20213   ac_status=$?
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); }; } &&
20216          { ac_try='test -s conftest.$ac_objext'
20217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218   (eval $ac_try) 2>&5
20219   ac_status=$?
20220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221   (exit $ac_status); }; }; then
20222   ac_cv_type_size_t=yes
20223 else
20224   echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227 ac_cv_type_size_t=no
20228 fi
20229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20230 fi
20231 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20232 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20233
20234 echo "$as_me:$LINENO: checking size of size_t" >&5
20235 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20236 if test "${ac_cv_sizeof_size_t+set}" = set; then
20237   echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239   if test "$ac_cv_type_size_t" = yes; then
20240   # The cast to unsigned long works around a bug in the HP C Compiler
20241   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20242   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20243   # This bug is HP SR number 8606223364.
20244   if test "$cross_compiling" = yes; then
20245   # Depending upon the size, compute the lo and hi bounds.
20246 cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h.  */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h.  */
20252 $ac_includes_default
20253 int
20254 main ()
20255 {
20256 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20257 test_array [0] = 0
20258
20259   ;
20260   return 0;
20261 }
20262 _ACEOF
20263 rm -f conftest.$ac_objext
20264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20265   (eval $ac_compile) 2>conftest.er1
20266   ac_status=$?
20267   grep -v '^ *+' conftest.er1 >conftest.err
20268   rm -f conftest.er1
20269   cat conftest.err >&5
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); } &&
20272          { ac_try='test -z "$ac_c_werror_flag"
20273                          || test ! -s conftest.err'
20274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275   (eval $ac_try) 2>&5
20276   ac_status=$?
20277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278   (exit $ac_status); }; } &&
20279          { ac_try='test -s conftest.$ac_objext'
20280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281   (eval $ac_try) 2>&5
20282   ac_status=$?
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); }; }; then
20285   ac_lo=0 ac_mid=0
20286   while :; do
20287     cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h.  */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h.  */
20293 $ac_includes_default
20294 int
20295 main ()
20296 {
20297 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20298 test_array [0] = 0
20299
20300   ;
20301   return 0;
20302 }
20303 _ACEOF
20304 rm -f conftest.$ac_objext
20305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20306   (eval $ac_compile) 2>conftest.er1
20307   ac_status=$?
20308   grep -v '^ *+' conftest.er1 >conftest.err
20309   rm -f conftest.er1
20310   cat conftest.err >&5
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); } &&
20313          { ac_try='test -z "$ac_c_werror_flag"
20314                          || test ! -s conftest.err'
20315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316   (eval $ac_try) 2>&5
20317   ac_status=$?
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); }; } &&
20320          { ac_try='test -s conftest.$ac_objext'
20321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322   (eval $ac_try) 2>&5
20323   ac_status=$?
20324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325   (exit $ac_status); }; }; then
20326   ac_hi=$ac_mid; break
20327 else
20328   echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20330
20331 ac_lo=`expr $ac_mid + 1`
20332                     if test $ac_lo -le $ac_mid; then
20333                       ac_lo= ac_hi=
20334                       break
20335                     fi
20336                     ac_mid=`expr 2 '*' $ac_mid + 1`
20337 fi
20338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20339   done
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h.  */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h.  */
20350 $ac_includes_default
20351 int
20352 main ()
20353 {
20354 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20355 test_array [0] = 0
20356
20357   ;
20358   return 0;
20359 }
20360 _ACEOF
20361 rm -f conftest.$ac_objext
20362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20363   (eval $ac_compile) 2>conftest.er1
20364   ac_status=$?
20365   grep -v '^ *+' conftest.er1 >conftest.err
20366   rm -f conftest.er1
20367   cat conftest.err >&5
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); } &&
20370          { ac_try='test -z "$ac_c_werror_flag"
20371                          || test ! -s conftest.err'
20372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373   (eval $ac_try) 2>&5
20374   ac_status=$?
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); }; } &&
20377          { ac_try='test -s conftest.$ac_objext'
20378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379   (eval $ac_try) 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); }; }; then
20383   ac_hi=-1 ac_mid=-1
20384   while :; do
20385     cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h.  */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h.  */
20391 $ac_includes_default
20392 int
20393 main ()
20394 {
20395 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20396 test_array [0] = 0
20397
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20404   (eval $ac_compile) 2>conftest.er1
20405   ac_status=$?
20406   grep -v '^ *+' conftest.er1 >conftest.err
20407   rm -f conftest.er1
20408   cat conftest.err >&5
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); } &&
20411          { ac_try='test -z "$ac_c_werror_flag"
20412                          || test ! -s conftest.err'
20413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414   (eval $ac_try) 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); }; } &&
20418          { ac_try='test -s conftest.$ac_objext'
20419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420   (eval $ac_try) 2>&5
20421   ac_status=$?
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); }; }; then
20424   ac_lo=$ac_mid; break
20425 else
20426   echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20428
20429 ac_hi=`expr '(' $ac_mid ')' - 1`
20430                        if test $ac_mid -le $ac_hi; then
20431                          ac_lo= ac_hi=
20432                          break
20433                        fi
20434                        ac_mid=`expr 2 '*' $ac_mid`
20435 fi
20436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20437   done
20438 else
20439   echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20441
20442 ac_lo= ac_hi=
20443 fi
20444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20445 fi
20446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20447 # Binary search between lo and hi bounds.
20448 while test "x$ac_lo" != "x$ac_hi"; do
20449   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20450   cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h.  */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h.  */
20456 $ac_includes_default
20457 int
20458 main ()
20459 {
20460 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20461 test_array [0] = 0
20462
20463   ;
20464   return 0;
20465 }
20466 _ACEOF
20467 rm -f conftest.$ac_objext
20468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20469   (eval $ac_compile) 2>conftest.er1
20470   ac_status=$?
20471   grep -v '^ *+' conftest.er1 >conftest.err
20472   rm -f conftest.er1
20473   cat conftest.err >&5
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); } &&
20476          { ac_try='test -z "$ac_c_werror_flag"
20477                          || test ! -s conftest.err'
20478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479   (eval $ac_try) 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); }; } &&
20483          { ac_try='test -s conftest.$ac_objext'
20484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485   (eval $ac_try) 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); }; }; then
20489   ac_hi=$ac_mid
20490 else
20491   echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494 ac_lo=`expr '(' $ac_mid ')' + 1`
20495 fi
20496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20497 done
20498 case $ac_lo in
20499 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20500 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20501 See \`config.log' for more details." >&5
20502 echo "$as_me: error: cannot compute sizeof (size_t), 77
20503 See \`config.log' for more details." >&2;}
20504    { (exit 1); exit 1; }; } ;;
20505 esac
20506 else
20507   if test "$cross_compiling" = yes; then
20508   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20509 See \`config.log' for more details." >&5
20510 echo "$as_me: error: cannot run test program while cross compiling
20511 See \`config.log' for more details." >&2;}
20512    { (exit 1); exit 1; }; }
20513 else
20514   cat >conftest.$ac_ext <<_ACEOF
20515 /* confdefs.h.  */
20516 _ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h.  */
20520 $ac_includes_default
20521 long longval () { return (long) (sizeof (size_t)); }
20522 unsigned long ulongval () { return (long) (sizeof (size_t)); }
20523 #include <stdio.h>
20524 #include <stdlib.h>
20525 int
20526 main ()
20527 {
20528
20529   FILE *f = fopen ("conftest.val", "w");
20530   if (! f)
20531     exit (1);
20532   if (((long) (sizeof (size_t))) < 0)
20533     {
20534       long i = longval ();
20535       if (i != ((long) (sizeof (size_t))))
20536         exit (1);
20537       fprintf (f, "%ld\n", i);
20538     }
20539   else
20540     {
20541       unsigned long i = ulongval ();
20542       if (i != ((long) (sizeof (size_t))))
20543         exit (1);
20544       fprintf (f, "%lu\n", i);
20545     }
20546   exit (ferror (f) || fclose (f) != 0);
20547
20548   ;
20549   return 0;
20550 }
20551 _ACEOF
20552 rm -f conftest$ac_exeext
20553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20554   (eval $ac_link) 2>&5
20555   ac_status=$?
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559   (eval $ac_try) 2>&5
20560   ac_status=$?
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); }; }; then
20563   ac_cv_sizeof_size_t=`cat conftest.val`
20564 else
20565   echo "$as_me: program exited with status $ac_status" >&5
20566 echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20568
20569 ( exit $ac_status )
20570 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20571 See \`config.log' for more details." >&5
20572 echo "$as_me: error: cannot compute sizeof (size_t), 77
20573 See \`config.log' for more details." >&2;}
20574    { (exit 1); exit 1; }; }
20575 fi
20576 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20577 fi
20578 fi
20579 rm -f conftest.val
20580 else
20581   ac_cv_sizeof_size_t=0
20582 fi
20583 fi
20584 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20585 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20586 cat >>confdefs.h <<_ACEOF
20587 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20588 _ACEOF
20589
20590
20591
20592 # Determine memory alignment requirements for the basic C data types.
20593
20594 echo "$as_me:$LINENO: checking for short" >&5
20595 echo $ECHO_N "checking for short... $ECHO_C" >&6
20596 if test "${ac_cv_type_short+set}" = set; then
20597   echo $ECHO_N "(cached) $ECHO_C" >&6
20598 else
20599   cat >conftest.$ac_ext <<_ACEOF
20600 /* confdefs.h.  */
20601 _ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h.  */
20605 $ac_includes_default
20606 int
20607 main ()
20608 {
20609 if ((short *) 0)
20610   return 0;
20611 if (sizeof (short))
20612   return 0;
20613   ;
20614   return 0;
20615 }
20616 _ACEOF
20617 rm -f conftest.$ac_objext
20618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20619   (eval $ac_compile) 2>conftest.er1
20620   ac_status=$?
20621   grep -v '^ *+' conftest.er1 >conftest.err
20622   rm -f conftest.er1
20623   cat conftest.err >&5
20624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625   (exit $ac_status); } &&
20626          { ac_try='test -z "$ac_c_werror_flag"
20627                          || test ! -s conftest.err'
20628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629   (eval $ac_try) 2>&5
20630   ac_status=$?
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); }; } &&
20633          { ac_try='test -s conftest.$ac_objext'
20634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635   (eval $ac_try) 2>&5
20636   ac_status=$?
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); }; }; then
20639   ac_cv_type_short=yes
20640 else
20641   echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20643
20644 ac_cv_type_short=no
20645 fi
20646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20647 fi
20648 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20649 echo "${ECHO_T}$ac_cv_type_short" >&6
20650
20651 echo "$as_me:$LINENO: checking alignment of short" >&5
20652 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
20653 if test "${pgac_cv_alignof_short+set}" = set; then
20654   echo $ECHO_N "(cached) $ECHO_C" >&6
20655 else
20656   if test "$ac_cv_type_short" = yes; then
20657   if test "$cross_compiling" = yes; then
20658   # Depending upon the size, compute the lo and hi bounds.
20659 cat >conftest.$ac_ext <<_ACEOF
20660 /* confdefs.h.  */
20661 _ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h.  */
20665 $ac_includes_default
20666 struct { char filler; short field; } pgac_struct;
20667 int
20668 main ()
20669 {
20670 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20671 test_array [0] = 0
20672
20673   ;
20674   return 0;
20675 }
20676 _ACEOF
20677 rm -f conftest.$ac_objext
20678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20679   (eval $ac_compile) 2>conftest.er1
20680   ac_status=$?
20681   grep -v '^ *+' conftest.er1 >conftest.err
20682   rm -f conftest.er1
20683   cat conftest.err >&5
20684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685   (exit $ac_status); } &&
20686          { ac_try='test -z "$ac_c_werror_flag"
20687                          || test ! -s conftest.err'
20688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689   (eval $ac_try) 2>&5
20690   ac_status=$?
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); }; } &&
20693          { ac_try='test -s conftest.$ac_objext'
20694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695   (eval $ac_try) 2>&5
20696   ac_status=$?
20697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698   (exit $ac_status); }; }; then
20699   ac_lo=0 ac_mid=0
20700   while :; do
20701     cat >conftest.$ac_ext <<_ACEOF
20702 /* confdefs.h.  */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h.  */
20707 $ac_includes_default
20708 struct { char filler; short field; } pgac_struct;
20709 int
20710 main ()
20711 {
20712 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20713 test_array [0] = 0
20714
20715   ;
20716   return 0;
20717 }
20718 _ACEOF
20719 rm -f conftest.$ac_objext
20720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20721   (eval $ac_compile) 2>conftest.er1
20722   ac_status=$?
20723   grep -v '^ *+' conftest.er1 >conftest.err
20724   rm -f conftest.er1
20725   cat conftest.err >&5
20726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); } &&
20728          { ac_try='test -z "$ac_c_werror_flag"
20729                          || test ! -s conftest.err'
20730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731   (eval $ac_try) 2>&5
20732   ac_status=$?
20733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734   (exit $ac_status); }; } &&
20735          { ac_try='test -s conftest.$ac_objext'
20736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737   (eval $ac_try) 2>&5
20738   ac_status=$?
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); }; }; then
20741   ac_hi=$ac_mid; break
20742 else
20743   echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20745
20746 ac_lo=`expr $ac_mid + 1`
20747                     if test $ac_lo -le $ac_mid; then
20748                       ac_lo= ac_hi=
20749                       break
20750                     fi
20751                     ac_mid=`expr 2 '*' $ac_mid + 1`
20752 fi
20753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20754   done
20755 else
20756   echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759 cat >conftest.$ac_ext <<_ACEOF
20760 /* confdefs.h.  */
20761 _ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h.  */
20765 $ac_includes_default
20766 struct { char filler; short field; } pgac_struct;
20767 int
20768 main ()
20769 {
20770 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20771 test_array [0] = 0
20772
20773   ;
20774   return 0;
20775 }
20776 _ACEOF
20777 rm -f conftest.$ac_objext
20778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20779   (eval $ac_compile) 2>conftest.er1
20780   ac_status=$?
20781   grep -v '^ *+' conftest.er1 >conftest.err
20782   rm -f conftest.er1
20783   cat conftest.err >&5
20784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785   (exit $ac_status); } &&
20786          { ac_try='test -z "$ac_c_werror_flag"
20787                          || test ! -s conftest.err'
20788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20789   (eval $ac_try) 2>&5
20790   ac_status=$?
20791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792   (exit $ac_status); }; } &&
20793          { ac_try='test -s conftest.$ac_objext'
20794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795   (eval $ac_try) 2>&5
20796   ac_status=$?
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); }; }; then
20799   ac_hi=-1 ac_mid=-1
20800   while :; do
20801     cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h.  */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h.  */
20807 $ac_includes_default
20808 struct { char filler; short field; } pgac_struct;
20809 int
20810 main ()
20811 {
20812 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20813 test_array [0] = 0
20814
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 rm -f conftest.$ac_objext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20821   (eval $ac_compile) 2>conftest.er1
20822   ac_status=$?
20823   grep -v '^ *+' conftest.er1 >conftest.err
20824   rm -f conftest.er1
20825   cat conftest.err >&5
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); } &&
20828          { ac_try='test -z "$ac_c_werror_flag"
20829                          || test ! -s conftest.err'
20830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831   (eval $ac_try) 2>&5
20832   ac_status=$?
20833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); }; } &&
20835          { ac_try='test -s conftest.$ac_objext'
20836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837   (eval $ac_try) 2>&5
20838   ac_status=$?
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); }; }; then
20841   ac_lo=$ac_mid; break
20842 else
20843   echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20845
20846 ac_hi=`expr '(' $ac_mid ')' - 1`
20847                        if test $ac_mid -le $ac_hi; then
20848                          ac_lo= ac_hi=
20849                          break
20850                        fi
20851                        ac_mid=`expr 2 '*' $ac_mid`
20852 fi
20853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20854   done
20855 else
20856   echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20858
20859 ac_lo= ac_hi=
20860 fi
20861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20862 fi
20863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20864 # Binary search between lo and hi bounds.
20865 while test "x$ac_lo" != "x$ac_hi"; do
20866   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20867   cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873 $ac_includes_default
20874 struct { char filler; short field; } pgac_struct;
20875 int
20876 main ()
20877 {
20878 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20879 test_array [0] = 0
20880
20881   ;
20882   return 0;
20883 }
20884 _ACEOF
20885 rm -f conftest.$ac_objext
20886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20887   (eval $ac_compile) 2>conftest.er1
20888   ac_status=$?
20889   grep -v '^ *+' conftest.er1 >conftest.err
20890   rm -f conftest.er1
20891   cat conftest.err >&5
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); } &&
20894          { ac_try='test -z "$ac_c_werror_flag"
20895                          || test ! -s conftest.err'
20896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897   (eval $ac_try) 2>&5
20898   ac_status=$?
20899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900   (exit $ac_status); }; } &&
20901          { ac_try='test -s conftest.$ac_objext'
20902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903   (eval $ac_try) 2>&5
20904   ac_status=$?
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); }; }; then
20907   ac_hi=$ac_mid
20908 else
20909   echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20911
20912 ac_lo=`expr '(' $ac_mid ')' + 1`
20913 fi
20914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20915 done
20916 case $ac_lo in
20917 ?*) pgac_cv_alignof_short=$ac_lo;;
20918 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
20919 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
20920    { (exit 1); exit 1; }; } ;;
20921 esac
20922 else
20923   if test "$cross_compiling" = yes; then
20924   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20925 See \`config.log' for more details." >&5
20926 echo "$as_me: error: cannot run test program while cross compiling
20927 See \`config.log' for more details." >&2;}
20928    { (exit 1); exit 1; }; }
20929 else
20930   cat >conftest.$ac_ext <<_ACEOF
20931 /* confdefs.h.  */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h.  */
20936 $ac_includes_default
20937 struct { char filler; short field; } pgac_struct;
20938 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20939 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20940 #include <stdio.h>
20941 #include <stdlib.h>
20942 int
20943 main ()
20944 {
20945
20946   FILE *f = fopen ("conftest.val", "w");
20947   if (! f)
20948     exit (1);
20949   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20950     {
20951       long i = longval ();
20952       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20953         exit (1);
20954       fprintf (f, "%ld\n", i);
20955     }
20956   else
20957     {
20958       unsigned long i = ulongval ();
20959       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20960         exit (1);
20961       fprintf (f, "%lu\n", i);
20962     }
20963   exit (ferror (f) || fclose (f) != 0);
20964
20965   ;
20966   return 0;
20967 }
20968 _ACEOF
20969 rm -f conftest$ac_exeext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20971   (eval $ac_link) 2>&5
20972   ac_status=$?
20973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976   (eval $ac_try) 2>&5
20977   ac_status=$?
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); }; }; then
20980   pgac_cv_alignof_short=`cat conftest.val`
20981 else
20982   echo "$as_me: program exited with status $ac_status" >&5
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20985
20986 ( exit $ac_status )
20987 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
20988 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
20989    { (exit 1); exit 1; }; }
20990 fi
20991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20992 fi
20993 fi
20994 rm -f conftest.val
20995 else
20996   pgac_cv_alignof_short=0
20997 fi
20998 fi
20999 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
21000 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
21001 cat >>confdefs.h <<_ACEOF
21002 #define ALIGNOF_SHORT $pgac_cv_alignof_short
21003 _ACEOF
21004
21005
21006 echo "$as_me:$LINENO: checking for int" >&5
21007 echo $ECHO_N "checking for int... $ECHO_C" >&6
21008 if test "${ac_cv_type_int+set}" = set; then
21009   echo $ECHO_N "(cached) $ECHO_C" >&6
21010 else
21011   cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h.  */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h.  */
21017 $ac_includes_default
21018 int
21019 main ()
21020 {
21021 if ((int *) 0)
21022   return 0;
21023 if (sizeof (int))
21024   return 0;
21025   ;
21026   return 0;
21027 }
21028 _ACEOF
21029 rm -f conftest.$ac_objext
21030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21031   (eval $ac_compile) 2>conftest.er1
21032   ac_status=$?
21033   grep -v '^ *+' conftest.er1 >conftest.err
21034   rm -f conftest.er1
21035   cat conftest.err >&5
21036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037   (exit $ac_status); } &&
21038          { ac_try='test -z "$ac_c_werror_flag"
21039                          || test ! -s conftest.err'
21040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041   (eval $ac_try) 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); }; } &&
21045          { ac_try='test -s conftest.$ac_objext'
21046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047   (eval $ac_try) 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); }; }; then
21051   ac_cv_type_int=yes
21052 else
21053   echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056 ac_cv_type_int=no
21057 fi
21058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21059 fi
21060 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21061 echo "${ECHO_T}$ac_cv_type_int" >&6
21062
21063 echo "$as_me:$LINENO: checking alignment of int" >&5
21064 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
21065 if test "${pgac_cv_alignof_int+set}" = set; then
21066   echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068   if test "$ac_cv_type_int" = yes; then
21069   if test "$cross_compiling" = yes; then
21070   # Depending upon the size, compute the lo and hi bounds.
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077 $ac_includes_default
21078 struct { char filler; int field; } pgac_struct;
21079 int
21080 main ()
21081 {
21082 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21083 test_array [0] = 0
21084
21085   ;
21086   return 0;
21087 }
21088 _ACEOF
21089 rm -f conftest.$ac_objext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21091   (eval $ac_compile) 2>conftest.er1
21092   ac_status=$?
21093   grep -v '^ *+' conftest.er1 >conftest.err
21094   rm -f conftest.er1
21095   cat conftest.err >&5
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); } &&
21098          { ac_try='test -z "$ac_c_werror_flag"
21099                          || test ! -s conftest.err'
21100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101   (eval $ac_try) 2>&5
21102   ac_status=$?
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); }; } &&
21105          { ac_try='test -s conftest.$ac_objext'
21106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107   (eval $ac_try) 2>&5
21108   ac_status=$?
21109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110   (exit $ac_status); }; }; then
21111   ac_lo=0 ac_mid=0
21112   while :; do
21113     cat >conftest.$ac_ext <<_ACEOF
21114 /* confdefs.h.  */
21115 _ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h.  */
21119 $ac_includes_default
21120 struct { char filler; int field; } pgac_struct;
21121 int
21122 main ()
21123 {
21124 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21125 test_array [0] = 0
21126
21127   ;
21128   return 0;
21129 }
21130 _ACEOF
21131 rm -f conftest.$ac_objext
21132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21133   (eval $ac_compile) 2>conftest.er1
21134   ac_status=$?
21135   grep -v '^ *+' conftest.er1 >conftest.err
21136   rm -f conftest.er1
21137   cat conftest.err >&5
21138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); } &&
21140          { ac_try='test -z "$ac_c_werror_flag"
21141                          || test ! -s conftest.err'
21142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143   (eval $ac_try) 2>&5
21144   ac_status=$?
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); }; } &&
21147          { ac_try='test -s conftest.$ac_objext'
21148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149   (eval $ac_try) 2>&5
21150   ac_status=$?
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); }; }; then
21153   ac_hi=$ac_mid; break
21154 else
21155   echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21157
21158 ac_lo=`expr $ac_mid + 1`
21159                     if test $ac_lo -le $ac_mid; then
21160                       ac_lo= ac_hi=
21161                       break
21162                     fi
21163                     ac_mid=`expr 2 '*' $ac_mid + 1`
21164 fi
21165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21166   done
21167 else
21168   echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21170
21171 cat >conftest.$ac_ext <<_ACEOF
21172 /* confdefs.h.  */
21173 _ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h.  */
21177 $ac_includes_default
21178 struct { char filler; int field; } pgac_struct;
21179 int
21180 main ()
21181 {
21182 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21183 test_array [0] = 0
21184
21185   ;
21186   return 0;
21187 }
21188 _ACEOF
21189 rm -f conftest.$ac_objext
21190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21191   (eval $ac_compile) 2>conftest.er1
21192   ac_status=$?
21193   grep -v '^ *+' conftest.er1 >conftest.err
21194   rm -f conftest.er1
21195   cat conftest.err >&5
21196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197   (exit $ac_status); } &&
21198          { ac_try='test -z "$ac_c_werror_flag"
21199                          || test ! -s conftest.err'
21200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201   (eval $ac_try) 2>&5
21202   ac_status=$?
21203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204   (exit $ac_status); }; } &&
21205          { ac_try='test -s conftest.$ac_objext'
21206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207   (eval $ac_try) 2>&5
21208   ac_status=$?
21209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210   (exit $ac_status); }; }; then
21211   ac_hi=-1 ac_mid=-1
21212   while :; do
21213     cat >conftest.$ac_ext <<_ACEOF
21214 /* confdefs.h.  */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h.  */
21219 $ac_includes_default
21220 struct { char filler; int field; } pgac_struct;
21221 int
21222 main ()
21223 {
21224 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21225 test_array [0] = 0
21226
21227   ;
21228   return 0;
21229 }
21230 _ACEOF
21231 rm -f conftest.$ac_objext
21232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21233   (eval $ac_compile) 2>conftest.er1
21234   ac_status=$?
21235   grep -v '^ *+' conftest.er1 >conftest.err
21236   rm -f conftest.er1
21237   cat conftest.err >&5
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); } &&
21240          { ac_try='test -z "$ac_c_werror_flag"
21241                          || test ! -s conftest.err'
21242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243   (eval $ac_try) 2>&5
21244   ac_status=$?
21245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246   (exit $ac_status); }; } &&
21247          { ac_try='test -s conftest.$ac_objext'
21248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249   (eval $ac_try) 2>&5
21250   ac_status=$?
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); }; }; then
21253   ac_lo=$ac_mid; break
21254 else
21255   echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21257
21258 ac_hi=`expr '(' $ac_mid ')' - 1`
21259                        if test $ac_mid -le $ac_hi; then
21260                          ac_lo= ac_hi=
21261                          break
21262                        fi
21263                        ac_mid=`expr 2 '*' $ac_mid`
21264 fi
21265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21266   done
21267 else
21268   echo "$as_me: failed program was:" >&5
21269 sed 's/^/| /' conftest.$ac_ext >&5
21270
21271 ac_lo= ac_hi=
21272 fi
21273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21274 fi
21275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21276 # Binary search between lo and hi bounds.
21277 while test "x$ac_lo" != "x$ac_hi"; do
21278   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21279   cat >conftest.$ac_ext <<_ACEOF
21280 /* confdefs.h.  */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h.  */
21285 $ac_includes_default
21286 struct { char filler; int field; } pgac_struct;
21287 int
21288 main ()
21289 {
21290 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21291 test_array [0] = 0
21292
21293   ;
21294   return 0;
21295 }
21296 _ACEOF
21297 rm -f conftest.$ac_objext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21299   (eval $ac_compile) 2>conftest.er1
21300   ac_status=$?
21301   grep -v '^ *+' conftest.er1 >conftest.err
21302   rm -f conftest.er1
21303   cat conftest.err >&5
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); } &&
21306          { ac_try='test -z "$ac_c_werror_flag"
21307                          || test ! -s conftest.err'
21308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309   (eval $ac_try) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); }; } &&
21313          { ac_try='test -s conftest.$ac_objext'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; }; then
21319   ac_hi=$ac_mid
21320 else
21321   echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324 ac_lo=`expr '(' $ac_mid ')' + 1`
21325 fi
21326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21327 done
21328 case $ac_lo in
21329 ?*) pgac_cv_alignof_int=$ac_lo;;
21330 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
21331 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
21332    { (exit 1); exit 1; }; } ;;
21333 esac
21334 else
21335   if test "$cross_compiling" = yes; then
21336   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21337 See \`config.log' for more details." >&5
21338 echo "$as_me: error: cannot run test program while cross compiling
21339 See \`config.log' for more details." >&2;}
21340    { (exit 1); exit 1; }; }
21341 else
21342   cat >conftest.$ac_ext <<_ACEOF
21343 /* confdefs.h.  */
21344 _ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h.  */
21348 $ac_includes_default
21349 struct { char filler; int field; } pgac_struct;
21350 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21351 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21352 #include <stdio.h>
21353 #include <stdlib.h>
21354 int
21355 main ()
21356 {
21357
21358   FILE *f = fopen ("conftest.val", "w");
21359   if (! f)
21360     exit (1);
21361   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21362     {
21363       long i = longval ();
21364       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21365         exit (1);
21366       fprintf (f, "%ld\n", i);
21367     }
21368   else
21369     {
21370       unsigned long i = ulongval ();
21371       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21372         exit (1);
21373       fprintf (f, "%lu\n", i);
21374     }
21375   exit (ferror (f) || fclose (f) != 0);
21376
21377   ;
21378   return 0;
21379 }
21380 _ACEOF
21381 rm -f conftest$ac_exeext
21382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21383   (eval $ac_link) 2>&5
21384   ac_status=$?
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21388   (eval $ac_try) 2>&5
21389   ac_status=$?
21390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391   (exit $ac_status); }; }; then
21392   pgac_cv_alignof_int=`cat conftest.val`
21393 else
21394   echo "$as_me: program exited with status $ac_status" >&5
21395 echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21397
21398 ( exit $ac_status )
21399 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
21400 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
21401    { (exit 1); exit 1; }; }
21402 fi
21403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21404 fi
21405 fi
21406 rm -f conftest.val
21407 else
21408   pgac_cv_alignof_int=0
21409 fi
21410 fi
21411 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
21412 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
21413 cat >>confdefs.h <<_ACEOF
21414 #define ALIGNOF_INT $pgac_cv_alignof_int
21415 _ACEOF
21416
21417
21418 echo "$as_me:$LINENO: checking for long" >&5
21419 echo $ECHO_N "checking for long... $ECHO_C" >&6
21420 if test "${ac_cv_type_long+set}" = set; then
21421   echo $ECHO_N "(cached) $ECHO_C" >&6
21422 else
21423   cat >conftest.$ac_ext <<_ACEOF
21424 /* confdefs.h.  */
21425 _ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h.  */
21429 $ac_includes_default
21430 int
21431 main ()
21432 {
21433 if ((long *) 0)
21434   return 0;
21435 if (sizeof (long))
21436   return 0;
21437   ;
21438   return 0;
21439 }
21440 _ACEOF
21441 rm -f conftest.$ac_objext
21442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21443   (eval $ac_compile) 2>conftest.er1
21444   ac_status=$?
21445   grep -v '^ *+' conftest.er1 >conftest.err
21446   rm -f conftest.er1
21447   cat conftest.err >&5
21448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); } &&
21450          { ac_try='test -z "$ac_c_werror_flag"
21451                          || test ! -s conftest.err'
21452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453   (eval $ac_try) 2>&5
21454   ac_status=$?
21455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456   (exit $ac_status); }; } &&
21457          { ac_try='test -s conftest.$ac_objext'
21458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459   (eval $ac_try) 2>&5
21460   ac_status=$?
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); }; }; then
21463   ac_cv_type_long=yes
21464 else
21465   echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21467
21468 ac_cv_type_long=no
21469 fi
21470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21471 fi
21472 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21473 echo "${ECHO_T}$ac_cv_type_long" >&6
21474
21475 echo "$as_me:$LINENO: checking alignment of long" >&5
21476 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
21477 if test "${pgac_cv_alignof_long+set}" = set; then
21478   echo $ECHO_N "(cached) $ECHO_C" >&6
21479 else
21480   if test "$ac_cv_type_long" = yes; then
21481   if test "$cross_compiling" = yes; then
21482   # Depending upon the size, compute the lo and hi bounds.
21483 cat >conftest.$ac_ext <<_ACEOF
21484 /* confdefs.h.  */
21485 _ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h.  */
21489 $ac_includes_default
21490 struct { char filler; long field; } pgac_struct;
21491 int
21492 main ()
21493 {
21494 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21495 test_array [0] = 0
21496
21497   ;
21498   return 0;
21499 }
21500 _ACEOF
21501 rm -f conftest.$ac_objext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21503   (eval $ac_compile) 2>conftest.er1
21504   ac_status=$?
21505   grep -v '^ *+' conftest.er1 >conftest.err
21506   rm -f conftest.er1
21507   cat conftest.err >&5
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); } &&
21510          { ac_try='test -z "$ac_c_werror_flag"
21511                          || test ! -s conftest.err'
21512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513   (eval $ac_try) 2>&5
21514   ac_status=$?
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); }; } &&
21517          { ac_try='test -s conftest.$ac_objext'
21518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519   (eval $ac_try) 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); }; }; then
21523   ac_lo=0 ac_mid=0
21524   while :; do
21525     cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h.  */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h.  */
21531 $ac_includes_default
21532 struct { char filler; long field; } pgac_struct;
21533 int
21534 main ()
21535 {
21536 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21537 test_array [0] = 0
21538
21539   ;
21540   return 0;
21541 }
21542 _ACEOF
21543 rm -f conftest.$ac_objext
21544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21545   (eval $ac_compile) 2>conftest.er1
21546   ac_status=$?
21547   grep -v '^ *+' conftest.er1 >conftest.err
21548   rm -f conftest.er1
21549   cat conftest.err >&5
21550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); } &&
21552          { ac_try='test -z "$ac_c_werror_flag"
21553                          || test ! -s conftest.err'
21554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555   (eval $ac_try) 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); }; } &&
21559          { ac_try='test -s conftest.$ac_objext'
21560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561   (eval $ac_try) 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); }; }; then
21565   ac_hi=$ac_mid; break
21566 else
21567   echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 ac_lo=`expr $ac_mid + 1`
21571                     if test $ac_lo -le $ac_mid; then
21572                       ac_lo= ac_hi=
21573                       break
21574                     fi
21575                     ac_mid=`expr 2 '*' $ac_mid + 1`
21576 fi
21577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21578   done
21579 else
21580   echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21582
21583 cat >conftest.$ac_ext <<_ACEOF
21584 /* confdefs.h.  */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h.  */
21589 $ac_includes_default
21590 struct { char filler; long field; } pgac_struct;
21591 int
21592 main ()
21593 {
21594 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21595 test_array [0] = 0
21596
21597   ;
21598   return 0;
21599 }
21600 _ACEOF
21601 rm -f conftest.$ac_objext
21602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21603   (eval $ac_compile) 2>conftest.er1
21604   ac_status=$?
21605   grep -v '^ *+' conftest.er1 >conftest.err
21606   rm -f conftest.er1
21607   cat conftest.err >&5
21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609   (exit $ac_status); } &&
21610          { ac_try='test -z "$ac_c_werror_flag"
21611                          || test ! -s conftest.err'
21612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613   (eval $ac_try) 2>&5
21614   ac_status=$?
21615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616   (exit $ac_status); }; } &&
21617          { ac_try='test -s conftest.$ac_objext'
21618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619   (eval $ac_try) 2>&5
21620   ac_status=$?
21621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622   (exit $ac_status); }; }; then
21623   ac_hi=-1 ac_mid=-1
21624   while :; do
21625     cat >conftest.$ac_ext <<_ACEOF
21626 /* confdefs.h.  */
21627 _ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h.  */
21631 $ac_includes_default
21632 struct { char filler; long field; } pgac_struct;
21633 int
21634 main ()
21635 {
21636 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21637 test_array [0] = 0
21638
21639   ;
21640   return 0;
21641 }
21642 _ACEOF
21643 rm -f conftest.$ac_objext
21644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21645   (eval $ac_compile) 2>conftest.er1
21646   ac_status=$?
21647   grep -v '^ *+' conftest.er1 >conftest.err
21648   rm -f conftest.er1
21649   cat conftest.err >&5
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); } &&
21652          { ac_try='test -z "$ac_c_werror_flag"
21653                          || test ! -s conftest.err'
21654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655   (eval $ac_try) 2>&5
21656   ac_status=$?
21657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658   (exit $ac_status); }; } &&
21659          { ac_try='test -s conftest.$ac_objext'
21660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661   (eval $ac_try) 2>&5
21662   ac_status=$?
21663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664   (exit $ac_status); }; }; then
21665   ac_lo=$ac_mid; break
21666 else
21667   echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21669
21670 ac_hi=`expr '(' $ac_mid ')' - 1`
21671                        if test $ac_mid -le $ac_hi; then
21672                          ac_lo= ac_hi=
21673                          break
21674                        fi
21675                        ac_mid=`expr 2 '*' $ac_mid`
21676 fi
21677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21678   done
21679 else
21680   echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21682
21683 ac_lo= ac_hi=
21684 fi
21685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21686 fi
21687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21688 # Binary search between lo and hi bounds.
21689 while test "x$ac_lo" != "x$ac_hi"; do
21690   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21691   cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h.  */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h.  */
21697 $ac_includes_default
21698 struct { char filler; long field; } pgac_struct;
21699 int
21700 main ()
21701 {
21702 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21703 test_array [0] = 0
21704
21705   ;
21706   return 0;
21707 }
21708 _ACEOF
21709 rm -f conftest.$ac_objext
21710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21711   (eval $ac_compile) 2>conftest.er1
21712   ac_status=$?
21713   grep -v '^ *+' conftest.er1 >conftest.err
21714   rm -f conftest.er1
21715   cat conftest.err >&5
21716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); } &&
21718          { ac_try='test -z "$ac_c_werror_flag"
21719                          || test ! -s conftest.err'
21720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721   (eval $ac_try) 2>&5
21722   ac_status=$?
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); }; } &&
21725          { ac_try='test -s conftest.$ac_objext'
21726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727   (eval $ac_try) 2>&5
21728   ac_status=$?
21729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); }; }; then
21731   ac_hi=$ac_mid
21732 else
21733   echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21735
21736 ac_lo=`expr '(' $ac_mid ')' + 1`
21737 fi
21738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21739 done
21740 case $ac_lo in
21741 ?*) pgac_cv_alignof_long=$ac_lo;;
21742 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
21743 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
21744    { (exit 1); exit 1; }; } ;;
21745 esac
21746 else
21747   if test "$cross_compiling" = yes; then
21748   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21749 See \`config.log' for more details." >&5
21750 echo "$as_me: error: cannot run test program while cross compiling
21751 See \`config.log' for more details." >&2;}
21752    { (exit 1); exit 1; }; }
21753 else
21754   cat >conftest.$ac_ext <<_ACEOF
21755 /* confdefs.h.  */
21756 _ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h.  */
21760 $ac_includes_default
21761 struct { char filler; long field; } pgac_struct;
21762 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21763 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21764 #include <stdio.h>
21765 #include <stdlib.h>
21766 int
21767 main ()
21768 {
21769
21770   FILE *f = fopen ("conftest.val", "w");
21771   if (! f)
21772     exit (1);
21773   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21774     {
21775       long i = longval ();
21776       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21777         exit (1);
21778       fprintf (f, "%ld\n", i);
21779     }
21780   else
21781     {
21782       unsigned long i = ulongval ();
21783       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21784         exit (1);
21785       fprintf (f, "%lu\n", i);
21786     }
21787   exit (ferror (f) || fclose (f) != 0);
21788
21789   ;
21790   return 0;
21791 }
21792 _ACEOF
21793 rm -f conftest$ac_exeext
21794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21795   (eval $ac_link) 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800   (eval $ac_try) 2>&5
21801   ac_status=$?
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); }; }; then
21804   pgac_cv_alignof_long=`cat conftest.val`
21805 else
21806   echo "$as_me: program exited with status $ac_status" >&5
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810 ( exit $ac_status )
21811 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
21812 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
21813    { (exit 1); exit 1; }; }
21814 fi
21815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21816 fi
21817 fi
21818 rm -f conftest.val
21819 else
21820   pgac_cv_alignof_long=0
21821 fi
21822 fi
21823 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
21824 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
21825 cat >>confdefs.h <<_ACEOF
21826 #define ALIGNOF_LONG $pgac_cv_alignof_long
21827 _ACEOF
21828
21829
21830 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
21831   echo "$as_me:$LINENO: checking for long long int" >&5
21832 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
21833 if test "${ac_cv_type_long_long_int+set}" = set; then
21834   echo $ECHO_N "(cached) $ECHO_C" >&6
21835 else
21836   cat >conftest.$ac_ext <<_ACEOF
21837 /* confdefs.h.  */
21838 _ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h.  */
21842 $ac_includes_default
21843 int
21844 main ()
21845 {
21846 if ((long long int *) 0)
21847   return 0;
21848 if (sizeof (long long int))
21849   return 0;
21850   ;
21851   return 0;
21852 }
21853 _ACEOF
21854 rm -f conftest.$ac_objext
21855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21856   (eval $ac_compile) 2>conftest.er1
21857   ac_status=$?
21858   grep -v '^ *+' conftest.er1 >conftest.err
21859   rm -f conftest.er1
21860   cat conftest.err >&5
21861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862   (exit $ac_status); } &&
21863          { ac_try='test -z "$ac_c_werror_flag"
21864                          || test ! -s conftest.err'
21865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866   (eval $ac_try) 2>&5
21867   ac_status=$?
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); }; } &&
21870          { ac_try='test -s conftest.$ac_objext'
21871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872   (eval $ac_try) 2>&5
21873   ac_status=$?
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); }; }; then
21876   ac_cv_type_long_long_int=yes
21877 else
21878   echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21880
21881 ac_cv_type_long_long_int=no
21882 fi
21883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21884 fi
21885 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21886 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
21887
21888 echo "$as_me:$LINENO: checking alignment of long long int" >&5
21889 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
21890 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
21891   echo $ECHO_N "(cached) $ECHO_C" >&6
21892 else
21893   if test "$ac_cv_type_long_long_int" = yes; then
21894   if test "$cross_compiling" = yes; then
21895   # Depending upon the size, compute the lo and hi bounds.
21896 cat >conftest.$ac_ext <<_ACEOF
21897 /* confdefs.h.  */
21898 _ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h.  */
21902 $ac_includes_default
21903 struct { char filler; long long int field; } pgac_struct;
21904 int
21905 main ()
21906 {
21907 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21908 test_array [0] = 0
21909
21910   ;
21911   return 0;
21912 }
21913 _ACEOF
21914 rm -f conftest.$ac_objext
21915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21916   (eval $ac_compile) 2>conftest.er1
21917   ac_status=$?
21918   grep -v '^ *+' conftest.er1 >conftest.err
21919   rm -f conftest.er1
21920   cat conftest.err >&5
21921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922   (exit $ac_status); } &&
21923          { ac_try='test -z "$ac_c_werror_flag"
21924                          || test ! -s conftest.err'
21925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926   (eval $ac_try) 2>&5
21927   ac_status=$?
21928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929   (exit $ac_status); }; } &&
21930          { ac_try='test -s conftest.$ac_objext'
21931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21932   (eval $ac_try) 2>&5
21933   ac_status=$?
21934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935   (exit $ac_status); }; }; then
21936   ac_lo=0 ac_mid=0
21937   while :; do
21938     cat >conftest.$ac_ext <<_ACEOF
21939 /* confdefs.h.  */
21940 _ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h.  */
21944 $ac_includes_default
21945 struct { char filler; long long int field; } pgac_struct;
21946 int
21947 main ()
21948 {
21949 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21950 test_array [0] = 0
21951
21952   ;
21953   return 0;
21954 }
21955 _ACEOF
21956 rm -f conftest.$ac_objext
21957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21958   (eval $ac_compile) 2>conftest.er1
21959   ac_status=$?
21960   grep -v '^ *+' conftest.er1 >conftest.err
21961   rm -f conftest.er1
21962   cat conftest.err >&5
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); } &&
21965          { ac_try='test -z "$ac_c_werror_flag"
21966                          || test ! -s conftest.err'
21967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968   (eval $ac_try) 2>&5
21969   ac_status=$?
21970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971   (exit $ac_status); }; } &&
21972          { ac_try='test -s conftest.$ac_objext'
21973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974   (eval $ac_try) 2>&5
21975   ac_status=$?
21976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977   (exit $ac_status); }; }; then
21978   ac_hi=$ac_mid; break
21979 else
21980   echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21982
21983 ac_lo=`expr $ac_mid + 1`
21984                     if test $ac_lo -le $ac_mid; then
21985                       ac_lo= ac_hi=
21986                       break
21987                     fi
21988                     ac_mid=`expr 2 '*' $ac_mid + 1`
21989 fi
21990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21991   done
21992 else
21993   echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21995
21996 cat >conftest.$ac_ext <<_ACEOF
21997 /* confdefs.h.  */
21998 _ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h.  */
22002 $ac_includes_default
22003 struct { char filler; long long int field; } pgac_struct;
22004 int
22005 main ()
22006 {
22007 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
22008 test_array [0] = 0
22009
22010   ;
22011   return 0;
22012 }
22013 _ACEOF
22014 rm -f conftest.$ac_objext
22015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22016   (eval $ac_compile) 2>conftest.er1
22017   ac_status=$?
22018   grep -v '^ *+' conftest.er1 >conftest.err
22019   rm -f conftest.er1
22020   cat conftest.err >&5
22021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022   (exit $ac_status); } &&
22023          { ac_try='test -z "$ac_c_werror_flag"
22024                          || test ! -s conftest.err'
22025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026   (eval $ac_try) 2>&5
22027   ac_status=$?
22028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029   (exit $ac_status); }; } &&
22030          { ac_try='test -s conftest.$ac_objext'
22031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032   (eval $ac_try) 2>&5
22033   ac_status=$?
22034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035   (exit $ac_status); }; }; then
22036   ac_hi=-1 ac_mid=-1
22037   while :; do
22038     cat >conftest.$ac_ext <<_ACEOF
22039 /* confdefs.h.  */
22040 _ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h.  */
22044 $ac_includes_default
22045 struct { char filler; long long int field; } pgac_struct;
22046 int
22047 main ()
22048 {
22049 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
22050 test_array [0] = 0
22051
22052   ;
22053   return 0;
22054 }
22055 _ACEOF
22056 rm -f conftest.$ac_objext
22057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22058   (eval $ac_compile) 2>conftest.er1
22059   ac_status=$?
22060   grep -v '^ *+' conftest.er1 >conftest.err
22061   rm -f conftest.er1
22062   cat conftest.err >&5
22063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064   (exit $ac_status); } &&
22065          { ac_try='test -z "$ac_c_werror_flag"
22066                          || test ! -s conftest.err'
22067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068   (eval $ac_try) 2>&5
22069   ac_status=$?
22070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071   (exit $ac_status); }; } &&
22072          { ac_try='test -s conftest.$ac_objext'
22073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22074   (eval $ac_try) 2>&5
22075   ac_status=$?
22076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077   (exit $ac_status); }; }; then
22078   ac_lo=$ac_mid; break
22079 else
22080   echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22082
22083 ac_hi=`expr '(' $ac_mid ')' - 1`
22084                        if test $ac_mid -le $ac_hi; then
22085                          ac_lo= ac_hi=
22086                          break
22087                        fi
22088                        ac_mid=`expr 2 '*' $ac_mid`
22089 fi
22090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22091   done
22092 else
22093   echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22095
22096 ac_lo= ac_hi=
22097 fi
22098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22099 fi
22100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22101 # Binary search between lo and hi bounds.
22102 while test "x$ac_lo" != "x$ac_hi"; do
22103   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22104   cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h.  */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h.  */
22110 $ac_includes_default
22111 struct { char filler; long long int field; } pgac_struct;
22112 int
22113 main ()
22114 {
22115 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22116 test_array [0] = 0
22117
22118   ;
22119   return 0;
22120 }
22121 _ACEOF
22122 rm -f conftest.$ac_objext
22123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22124   (eval $ac_compile) 2>conftest.er1
22125   ac_status=$?
22126   grep -v '^ *+' conftest.er1 >conftest.err
22127   rm -f conftest.er1
22128   cat conftest.err >&5
22129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130   (exit $ac_status); } &&
22131          { ac_try='test -z "$ac_c_werror_flag"
22132                          || test ! -s conftest.err'
22133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134   (eval $ac_try) 2>&5
22135   ac_status=$?
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); }; } &&
22138          { ac_try='test -s conftest.$ac_objext'
22139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140   (eval $ac_try) 2>&5
22141   ac_status=$?
22142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143   (exit $ac_status); }; }; then
22144   ac_hi=$ac_mid
22145 else
22146   echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22148
22149 ac_lo=`expr '(' $ac_mid ')' + 1`
22150 fi
22151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22152 done
22153 case $ac_lo in
22154 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
22155 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
22156 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
22157    { (exit 1); exit 1; }; } ;;
22158 esac
22159 else
22160   if test "$cross_compiling" = yes; then
22161   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22162 See \`config.log' for more details." >&5
22163 echo "$as_me: error: cannot run test program while cross compiling
22164 See \`config.log' for more details." >&2;}
22165    { (exit 1); exit 1; }; }
22166 else
22167   cat >conftest.$ac_ext <<_ACEOF
22168 /* confdefs.h.  */
22169 _ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h.  */
22173 $ac_includes_default
22174 struct { char filler; long long int field; } pgac_struct;
22175 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22176 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22177 #include <stdio.h>
22178 #include <stdlib.h>
22179 int
22180 main ()
22181 {
22182
22183   FILE *f = fopen ("conftest.val", "w");
22184   if (! f)
22185     exit (1);
22186   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
22187     {
22188       long i = longval ();
22189       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22190         exit (1);
22191       fprintf (f, "%ld\n", i);
22192     }
22193   else
22194     {
22195       unsigned long i = ulongval ();
22196       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22197         exit (1);
22198       fprintf (f, "%lu\n", i);
22199     }
22200   exit (ferror (f) || fclose (f) != 0);
22201
22202   ;
22203   return 0;
22204 }
22205 _ACEOF
22206 rm -f conftest$ac_exeext
22207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22208   (eval $ac_link) 2>&5
22209   ac_status=$?
22210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213   (eval $ac_try) 2>&5
22214   ac_status=$?
22215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216   (exit $ac_status); }; }; then
22217   pgac_cv_alignof_long_long_int=`cat conftest.val`
22218 else
22219   echo "$as_me: program exited with status $ac_status" >&5
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22222
22223 ( exit $ac_status )
22224 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
22225 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
22226    { (exit 1); exit 1; }; }
22227 fi
22228 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22229 fi
22230 fi
22231 rm -f conftest.val
22232 else
22233   pgac_cv_alignof_long_long_int=0
22234 fi
22235 fi
22236 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
22237 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
22238 cat >>confdefs.h <<_ACEOF
22239 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
22240 _ACEOF
22241
22242
22243 fi
22244 echo "$as_me:$LINENO: checking for double" >&5
22245 echo $ECHO_N "checking for double... $ECHO_C" >&6
22246 if test "${ac_cv_type_double+set}" = set; then
22247   echo $ECHO_N "(cached) $ECHO_C" >&6
22248 else
22249   cat >conftest.$ac_ext <<_ACEOF
22250 /* confdefs.h.  */
22251 _ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h.  */
22255 $ac_includes_default
22256 int
22257 main ()
22258 {
22259 if ((double *) 0)
22260   return 0;
22261 if (sizeof (double))
22262   return 0;
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 rm -f conftest.$ac_objext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22269   (eval $ac_compile) 2>conftest.er1
22270   ac_status=$?
22271   grep -v '^ *+' conftest.er1 >conftest.err
22272   rm -f conftest.er1
22273   cat conftest.err >&5
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); } &&
22276          { ac_try='test -z "$ac_c_werror_flag"
22277                          || test ! -s conftest.err'
22278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279   (eval $ac_try) 2>&5
22280   ac_status=$?
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); }; } &&
22283          { ac_try='test -s conftest.$ac_objext'
22284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285   (eval $ac_try) 2>&5
22286   ac_status=$?
22287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288   (exit $ac_status); }; }; then
22289   ac_cv_type_double=yes
22290 else
22291   echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22293
22294 ac_cv_type_double=no
22295 fi
22296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22297 fi
22298 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22299 echo "${ECHO_T}$ac_cv_type_double" >&6
22300
22301 echo "$as_me:$LINENO: checking alignment of double" >&5
22302 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
22303 if test "${pgac_cv_alignof_double+set}" = set; then
22304   echo $ECHO_N "(cached) $ECHO_C" >&6
22305 else
22306   if test "$ac_cv_type_double" = yes; then
22307   if test "$cross_compiling" = yes; then
22308   # Depending upon the size, compute the lo and hi bounds.
22309 cat >conftest.$ac_ext <<_ACEOF
22310 /* confdefs.h.  */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h.  */
22315 $ac_includes_default
22316 struct { char filler; double field; } pgac_struct;
22317 int
22318 main ()
22319 {
22320 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
22321 test_array [0] = 0
22322
22323   ;
22324   return 0;
22325 }
22326 _ACEOF
22327 rm -f conftest.$ac_objext
22328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22329   (eval $ac_compile) 2>conftest.er1
22330   ac_status=$?
22331   grep -v '^ *+' conftest.er1 >conftest.err
22332   rm -f conftest.er1
22333   cat conftest.err >&5
22334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335   (exit $ac_status); } &&
22336          { ac_try='test -z "$ac_c_werror_flag"
22337                          || test ! -s conftest.err'
22338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339   (eval $ac_try) 2>&5
22340   ac_status=$?
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); }; } &&
22343          { ac_try='test -s conftest.$ac_objext'
22344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345   (eval $ac_try) 2>&5
22346   ac_status=$?
22347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348   (exit $ac_status); }; }; then
22349   ac_lo=0 ac_mid=0
22350   while :; do
22351     cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h.  */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h.  */
22357 $ac_includes_default
22358 struct { char filler; double field; } pgac_struct;
22359 int
22360 main ()
22361 {
22362 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22363 test_array [0] = 0
22364
22365   ;
22366   return 0;
22367 }
22368 _ACEOF
22369 rm -f conftest.$ac_objext
22370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22371   (eval $ac_compile) 2>conftest.er1
22372   ac_status=$?
22373   grep -v '^ *+' conftest.er1 >conftest.err
22374   rm -f conftest.er1
22375   cat conftest.err >&5
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); } &&
22378          { ac_try='test -z "$ac_c_werror_flag"
22379                          || test ! -s conftest.err'
22380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381   (eval $ac_try) 2>&5
22382   ac_status=$?
22383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384   (exit $ac_status); }; } &&
22385          { ac_try='test -s conftest.$ac_objext'
22386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387   (eval $ac_try) 2>&5
22388   ac_status=$?
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); }; }; then
22391   ac_hi=$ac_mid; break
22392 else
22393   echo "$as_me: failed program was:" >&5
22394 sed 's/^/| /' conftest.$ac_ext >&5
22395
22396 ac_lo=`expr $ac_mid + 1`
22397                     if test $ac_lo -le $ac_mid; then
22398                       ac_lo= ac_hi=
22399                       break
22400                     fi
22401                     ac_mid=`expr 2 '*' $ac_mid + 1`
22402 fi
22403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22404   done
22405 else
22406   echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22408
22409 cat >conftest.$ac_ext <<_ACEOF
22410 /* confdefs.h.  */
22411 _ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h.  */
22415 $ac_includes_default
22416 struct { char filler; double field; } pgac_struct;
22417 int
22418 main ()
22419 {
22420 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
22421 test_array [0] = 0
22422
22423   ;
22424   return 0;
22425 }
22426 _ACEOF
22427 rm -f conftest.$ac_objext
22428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22429   (eval $ac_compile) 2>conftest.er1
22430   ac_status=$?
22431   grep -v '^ *+' conftest.er1 >conftest.err
22432   rm -f conftest.er1
22433   cat conftest.err >&5
22434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435   (exit $ac_status); } &&
22436          { ac_try='test -z "$ac_c_werror_flag"
22437                          || test ! -s conftest.err'
22438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439   (eval $ac_try) 2>&5
22440   ac_status=$?
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); }; } &&
22443          { ac_try='test -s conftest.$ac_objext'
22444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445   (eval $ac_try) 2>&5
22446   ac_status=$?
22447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448   (exit $ac_status); }; }; then
22449   ac_hi=-1 ac_mid=-1
22450   while :; do
22451     cat >conftest.$ac_ext <<_ACEOF
22452 /* confdefs.h.  */
22453 _ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h.  */
22457 $ac_includes_default
22458 struct { char filler; double field; } pgac_struct;
22459 int
22460 main ()
22461 {
22462 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
22463 test_array [0] = 0
22464
22465   ;
22466   return 0;
22467 }
22468 _ACEOF
22469 rm -f conftest.$ac_objext
22470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22471   (eval $ac_compile) 2>conftest.er1
22472   ac_status=$?
22473   grep -v '^ *+' conftest.er1 >conftest.err
22474   rm -f conftest.er1
22475   cat conftest.err >&5
22476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); } &&
22478          { ac_try='test -z "$ac_c_werror_flag"
22479                          || test ! -s conftest.err'
22480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481   (eval $ac_try) 2>&5
22482   ac_status=$?
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); }; } &&
22485          { ac_try='test -s conftest.$ac_objext'
22486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487   (eval $ac_try) 2>&5
22488   ac_status=$?
22489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490   (exit $ac_status); }; }; then
22491   ac_lo=$ac_mid; break
22492 else
22493   echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22495
22496 ac_hi=`expr '(' $ac_mid ')' - 1`
22497                        if test $ac_mid -le $ac_hi; then
22498                          ac_lo= ac_hi=
22499                          break
22500                        fi
22501                        ac_mid=`expr 2 '*' $ac_mid`
22502 fi
22503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22504   done
22505 else
22506   echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22508
22509 ac_lo= ac_hi=
22510 fi
22511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22512 fi
22513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22514 # Binary search between lo and hi bounds.
22515 while test "x$ac_lo" != "x$ac_hi"; do
22516   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22517   cat >conftest.$ac_ext <<_ACEOF
22518 /* confdefs.h.  */
22519 _ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h.  */
22523 $ac_includes_default
22524 struct { char filler; double field; } pgac_struct;
22525 int
22526 main ()
22527 {
22528 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22529 test_array [0] = 0
22530
22531   ;
22532   return 0;
22533 }
22534 _ACEOF
22535 rm -f conftest.$ac_objext
22536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22537   (eval $ac_compile) 2>conftest.er1
22538   ac_status=$?
22539   grep -v '^ *+' conftest.er1 >conftest.err
22540   rm -f conftest.er1
22541   cat conftest.err >&5
22542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543   (exit $ac_status); } &&
22544          { ac_try='test -z "$ac_c_werror_flag"
22545                          || test ! -s conftest.err'
22546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22547   (eval $ac_try) 2>&5
22548   ac_status=$?
22549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550   (exit $ac_status); }; } &&
22551          { ac_try='test -s conftest.$ac_objext'
22552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553   (eval $ac_try) 2>&5
22554   ac_status=$?
22555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556   (exit $ac_status); }; }; then
22557   ac_hi=$ac_mid
22558 else
22559   echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22561
22562 ac_lo=`expr '(' $ac_mid ')' + 1`
22563 fi
22564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22565 done
22566 case $ac_lo in
22567 ?*) pgac_cv_alignof_double=$ac_lo;;
22568 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
22569 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
22570    { (exit 1); exit 1; }; } ;;
22571 esac
22572 else
22573   if test "$cross_compiling" = yes; then
22574   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22575 See \`config.log' for more details." >&5
22576 echo "$as_me: error: cannot run test program while cross compiling
22577 See \`config.log' for more details." >&2;}
22578    { (exit 1); exit 1; }; }
22579 else
22580   cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h.  */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h.  */
22586 $ac_includes_default
22587 struct { char filler; double field; } pgac_struct;
22588 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22589 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22590 #include <stdio.h>
22591 #include <stdlib.h>
22592 int
22593 main ()
22594 {
22595
22596   FILE *f = fopen ("conftest.val", "w");
22597   if (! f)
22598     exit (1);
22599   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
22600     {
22601       long i = longval ();
22602       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22603         exit (1);
22604       fprintf (f, "%ld\n", i);
22605     }
22606   else
22607     {
22608       unsigned long i = ulongval ();
22609       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22610         exit (1);
22611       fprintf (f, "%lu\n", i);
22612     }
22613   exit (ferror (f) || fclose (f) != 0);
22614
22615   ;
22616   return 0;
22617 }
22618 _ACEOF
22619 rm -f conftest$ac_exeext
22620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22621   (eval $ac_link) 2>&5
22622   ac_status=$?
22623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626   (eval $ac_try) 2>&5
22627   ac_status=$?
22628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629   (exit $ac_status); }; }; then
22630   pgac_cv_alignof_double=`cat conftest.val`
22631 else
22632   echo "$as_me: program exited with status $ac_status" >&5
22633 echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22635
22636 ( exit $ac_status )
22637 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
22638 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
22639    { (exit 1); exit 1; }; }
22640 fi
22641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22642 fi
22643 fi
22644 rm -f conftest.val
22645 else
22646   pgac_cv_alignof_double=0
22647 fi
22648 fi
22649 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
22650 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
22651 cat >>confdefs.h <<_ACEOF
22652 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
22653 _ACEOF
22654
22655
22656
22657 # Compute maximum alignment of any basic type.
22658 # We assume long's alignment is at least as strong as char, short, or int;
22659 # but we must check long long (if it exists) and double.
22660
22661 MAX_ALIGNOF=$pgac_cv_alignof_long
22662 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
22663   MAX_ALIGNOF=$pgac_cv_alignof_double
22664 fi
22665 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
22666   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
22667 fi
22668
22669 cat >>confdefs.h <<_ACEOF
22670 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
22671 _ACEOF
22672
22673
22674
22675 # Some platforms predefine the types int8, int16, etc.  Only check
22676 # a (hopefully) representative subset.
22677 echo "$as_me:$LINENO: checking for int8" >&5
22678 echo $ECHO_N "checking for int8... $ECHO_C" >&6
22679 if test "${ac_cv_type_int8+set}" = set; then
22680   echo $ECHO_N "(cached) $ECHO_C" >&6
22681 else
22682   cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h.  */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h.  */
22688 #include <stdio.h>
22689 #ifdef HAVE_SUPPORTDEFS_H
22690 #include <SupportDefs.h>
22691 #endif
22692
22693 int
22694 main ()
22695 {
22696 if ((int8 *) 0)
22697   return 0;
22698 if (sizeof (int8))
22699   return 0;
22700   ;
22701   return 0;
22702 }
22703 _ACEOF
22704 rm -f conftest.$ac_objext
22705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22706   (eval $ac_compile) 2>conftest.er1
22707   ac_status=$?
22708   grep -v '^ *+' conftest.er1 >conftest.err
22709   rm -f conftest.er1
22710   cat conftest.err >&5
22711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712   (exit $ac_status); } &&
22713          { ac_try='test -z "$ac_c_werror_flag"
22714                          || test ! -s conftest.err'
22715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716   (eval $ac_try) 2>&5
22717   ac_status=$?
22718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719   (exit $ac_status); }; } &&
22720          { ac_try='test -s conftest.$ac_objext'
22721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22722   (eval $ac_try) 2>&5
22723   ac_status=$?
22724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725   (exit $ac_status); }; }; then
22726   ac_cv_type_int8=yes
22727 else
22728   echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22730
22731 ac_cv_type_int8=no
22732 fi
22733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22734 fi
22735 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
22736 echo "${ECHO_T}$ac_cv_type_int8" >&6
22737 if test $ac_cv_type_int8 = yes; then
22738
22739 cat >>confdefs.h <<_ACEOF
22740 #define HAVE_INT8 1
22741 _ACEOF
22742
22743
22744 fi
22745 echo "$as_me:$LINENO: checking for uint8" >&5
22746 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
22747 if test "${ac_cv_type_uint8+set}" = set; then
22748   echo $ECHO_N "(cached) $ECHO_C" >&6
22749 else
22750   cat >conftest.$ac_ext <<_ACEOF
22751 /* confdefs.h.  */
22752 _ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h.  */
22756 #include <stdio.h>
22757 #ifdef HAVE_SUPPORTDEFS_H
22758 #include <SupportDefs.h>
22759 #endif
22760
22761 int
22762 main ()
22763 {
22764 if ((uint8 *) 0)
22765   return 0;
22766 if (sizeof (uint8))
22767   return 0;
22768   ;
22769   return 0;
22770 }
22771 _ACEOF
22772 rm -f conftest.$ac_objext
22773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22774   (eval $ac_compile) 2>conftest.er1
22775   ac_status=$?
22776   grep -v '^ *+' conftest.er1 >conftest.err
22777   rm -f conftest.er1
22778   cat conftest.err >&5
22779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); } &&
22781          { ac_try='test -z "$ac_c_werror_flag"
22782                          || test ! -s conftest.err'
22783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784   (eval $ac_try) 2>&5
22785   ac_status=$?
22786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787   (exit $ac_status); }; } &&
22788          { ac_try='test -s conftest.$ac_objext'
22789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22790   (eval $ac_try) 2>&5
22791   ac_status=$?
22792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793   (exit $ac_status); }; }; then
22794   ac_cv_type_uint8=yes
22795 else
22796   echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22798
22799 ac_cv_type_uint8=no
22800 fi
22801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22802 fi
22803 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
22804 echo "${ECHO_T}$ac_cv_type_uint8" >&6
22805 if test $ac_cv_type_uint8 = yes; then
22806
22807 cat >>confdefs.h <<_ACEOF
22808 #define HAVE_UINT8 1
22809 _ACEOF
22810
22811
22812 fi
22813 echo "$as_me:$LINENO: checking for int64" >&5
22814 echo $ECHO_N "checking for int64... $ECHO_C" >&6
22815 if test "${ac_cv_type_int64+set}" = set; then
22816   echo $ECHO_N "(cached) $ECHO_C" >&6
22817 else
22818   cat >conftest.$ac_ext <<_ACEOF
22819 /* confdefs.h.  */
22820 _ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h.  */
22824 #include <stdio.h>
22825 #ifdef HAVE_SUPPORTDEFS_H
22826 #include <SupportDefs.h>
22827 #endif
22828
22829 int
22830 main ()
22831 {
22832 if ((int64 *) 0)
22833   return 0;
22834 if (sizeof (int64))
22835   return 0;
22836   ;
22837   return 0;
22838 }
22839 _ACEOF
22840 rm -f conftest.$ac_objext
22841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22842   (eval $ac_compile) 2>conftest.er1
22843   ac_status=$?
22844   grep -v '^ *+' conftest.er1 >conftest.err
22845   rm -f conftest.er1
22846   cat conftest.err >&5
22847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848   (exit $ac_status); } &&
22849          { ac_try='test -z "$ac_c_werror_flag"
22850                          || test ! -s conftest.err'
22851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852   (eval $ac_try) 2>&5
22853   ac_status=$?
22854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855   (exit $ac_status); }; } &&
22856          { ac_try='test -s conftest.$ac_objext'
22857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858   (eval $ac_try) 2>&5
22859   ac_status=$?
22860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861   (exit $ac_status); }; }; then
22862   ac_cv_type_int64=yes
22863 else
22864   echo "$as_me: failed program was:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22866
22867 ac_cv_type_int64=no
22868 fi
22869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22870 fi
22871 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
22872 echo "${ECHO_T}$ac_cv_type_int64" >&6
22873 if test $ac_cv_type_int64 = yes; then
22874
22875 cat >>confdefs.h <<_ACEOF
22876 #define HAVE_INT64 1
22877 _ACEOF
22878
22879
22880 fi
22881 echo "$as_me:$LINENO: checking for uint64" >&5
22882 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
22883 if test "${ac_cv_type_uint64+set}" = set; then
22884   echo $ECHO_N "(cached) $ECHO_C" >&6
22885 else
22886   cat >conftest.$ac_ext <<_ACEOF
22887 /* confdefs.h.  */
22888 _ACEOF
22889 cat confdefs.h >>conftest.$ac_ext
22890 cat >>conftest.$ac_ext <<_ACEOF
22891 /* end confdefs.h.  */
22892 #include <stdio.h>
22893 #ifdef HAVE_SUPPORTDEFS_H
22894 #include <SupportDefs.h>
22895 #endif
22896
22897 int
22898 main ()
22899 {
22900 if ((uint64 *) 0)
22901   return 0;
22902 if (sizeof (uint64))
22903   return 0;
22904   ;
22905   return 0;
22906 }
22907 _ACEOF
22908 rm -f conftest.$ac_objext
22909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22910   (eval $ac_compile) 2>conftest.er1
22911   ac_status=$?
22912   grep -v '^ *+' conftest.er1 >conftest.err
22913   rm -f conftest.er1
22914   cat conftest.err >&5
22915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916   (exit $ac_status); } &&
22917          { ac_try='test -z "$ac_c_werror_flag"
22918                          || test ! -s conftest.err'
22919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920   (eval $ac_try) 2>&5
22921   ac_status=$?
22922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); }; } &&
22924          { ac_try='test -s conftest.$ac_objext'
22925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926   (eval $ac_try) 2>&5
22927   ac_status=$?
22928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); }; }; then
22930   ac_cv_type_uint64=yes
22931 else
22932   echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935 ac_cv_type_uint64=no
22936 fi
22937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22938 fi
22939 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
22940 echo "${ECHO_T}$ac_cv_type_uint64" >&6
22941 if test $ac_cv_type_uint64 = yes; then
22942
22943 cat >>confdefs.h <<_ACEOF
22944 #define HAVE_UINT64 1
22945 _ACEOF
22946
22947
22948 fi
22949
22950
22951 # We also check for sig_atomic_t, which *should* be defined per ANSI
22952 # C, but is missing on some old platforms.
22953 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
22954 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
22955 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
22956   echo $ECHO_N "(cached) $ECHO_C" >&6
22957 else
22958   cat >conftest.$ac_ext <<_ACEOF
22959 /* confdefs.h.  */
22960 _ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h.  */
22964 #include <signal.h>
22965
22966 int
22967 main ()
22968 {
22969 if ((sig_atomic_t *) 0)
22970   return 0;
22971 if (sizeof (sig_atomic_t))
22972   return 0;
22973   ;
22974   return 0;
22975 }
22976 _ACEOF
22977 rm -f conftest.$ac_objext
22978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22979   (eval $ac_compile) 2>conftest.er1
22980   ac_status=$?
22981   grep -v '^ *+' conftest.er1 >conftest.err
22982   rm -f conftest.er1
22983   cat conftest.err >&5
22984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985   (exit $ac_status); } &&
22986          { ac_try='test -z "$ac_c_werror_flag"
22987                          || test ! -s conftest.err'
22988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989   (eval $ac_try) 2>&5
22990   ac_status=$?
22991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992   (exit $ac_status); }; } &&
22993          { ac_try='test -s conftest.$ac_objext'
22994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995   (eval $ac_try) 2>&5
22996   ac_status=$?
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); }; }; then
22999   ac_cv_type_sig_atomic_t=yes
23000 else
23001   echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23003
23004 ac_cv_type_sig_atomic_t=no
23005 fi
23006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23007 fi
23008 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23009 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
23010 if test $ac_cv_type_sig_atomic_t = yes; then
23011
23012 cat >>confdefs.h <<_ACEOF
23013 #define HAVE_SIG_ATOMIC_T 1
23014 _ACEOF
23015
23016
23017 fi
23018
23019
23020
23021 if test "$PORTNAME" != "win32"
23022 then
23023 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23024 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
23025 if test "${pgac_cv_func_posix_signals+set}" = set; then
23026   echo $ECHO_N "(cached) $ECHO_C" >&6
23027 else
23028   cat >conftest.$ac_ext <<_ACEOF
23029 /* confdefs.h.  */
23030 _ACEOF
23031 cat confdefs.h >>conftest.$ac_ext
23032 cat >>conftest.$ac_ext <<_ACEOF
23033 /* end confdefs.h.  */
23034 #include <signal.h>
23035
23036 int
23037 main ()
23038 {
23039 struct sigaction act, oact;
23040 sigemptyset(&act.sa_mask);
23041 act.sa_flags = SA_RESTART;
23042 sigaction(0, &act, &oact);
23043   ;
23044   return 0;
23045 }
23046 _ACEOF
23047 rm -f conftest.$ac_objext conftest$ac_exeext
23048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23049   (eval $ac_link) 2>conftest.er1
23050   ac_status=$?
23051   grep -v '^ *+' conftest.er1 >conftest.err
23052   rm -f conftest.er1
23053   cat conftest.err >&5
23054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055   (exit $ac_status); } &&
23056          { ac_try='test -z "$ac_c_werror_flag"
23057                          || test ! -s conftest.err'
23058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059   (eval $ac_try) 2>&5
23060   ac_status=$?
23061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062   (exit $ac_status); }; } &&
23063          { ac_try='test -s conftest$ac_exeext'
23064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23065   (eval $ac_try) 2>&5
23066   ac_status=$?
23067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068   (exit $ac_status); }; }; then
23069   pgac_cv_func_posix_signals=yes
23070 else
23071   echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23073
23074 pgac_cv_func_posix_signals=no
23075 fi
23076 rm -f conftest.err conftest.$ac_objext \
23077       conftest$ac_exeext conftest.$ac_ext
23078 fi
23079 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23080 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
23081 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23082
23083 cat >>confdefs.h <<\_ACEOF
23084 #define HAVE_POSIX_SIGNALS
23085 _ACEOF
23086
23087 fi
23088 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23089
23090 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23091   { { echo "$as_me:$LINENO: error:
23092 Thread-safety requires POSIX signals, which are not supported by this
23093 operating system." >&5
23094 echo "$as_me: error:
23095 Thread-safety requires POSIX signals, which are not supported by this
23096 operating system." >&2;}
23097    { (exit 1); exit 1; }; }
23098 fi
23099 fi
23100
23101 if test $ac_cv_func_fseeko = yes; then
23102 # Check whether --enable-largefile or --disable-largefile was given.
23103 if test "${enable_largefile+set}" = set; then
23104   enableval="$enable_largefile"
23105
23106 fi;
23107 if test "$enable_largefile" != no; then
23108
23109   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23110 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
23111 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23112   echo $ECHO_N "(cached) $ECHO_C" >&6
23113 else
23114   ac_cv_sys_largefile_CC=no
23115      if test "$GCC" != yes; then
23116        ac_save_CC=$CC
23117        while :; do
23118          # IRIX 6.2 and later do not support large files by default,
23119          # so use the C compiler's -n32 option if that helps.
23120          cat >conftest.$ac_ext <<_ACEOF
23121 /* confdefs.h.  */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h.  */
23126 #include <sys/types.h>
23127  /* Check that off_t can represent 2**63 - 1 correctly.
23128     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23129     since some C++ compilers masquerading as C compilers
23130     incorrectly reject 9223372036854775807.  */
23131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23132   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23133                        && LARGE_OFF_T % 2147483647 == 1)
23134                       ? 1 : -1];
23135 int
23136 main ()
23137 {
23138
23139   ;
23140   return 0;
23141 }
23142 _ACEOF
23143          rm -f conftest.$ac_objext
23144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23145   (eval $ac_compile) 2>conftest.er1
23146   ac_status=$?
23147   grep -v '^ *+' conftest.er1 >conftest.err
23148   rm -f conftest.er1
23149   cat conftest.err >&5
23150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); } &&
23152          { ac_try='test -z "$ac_c_werror_flag"
23153                          || test ! -s conftest.err'
23154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155   (eval $ac_try) 2>&5
23156   ac_status=$?
23157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158   (exit $ac_status); }; } &&
23159          { ac_try='test -s conftest.$ac_objext'
23160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161   (eval $ac_try) 2>&5
23162   ac_status=$?
23163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164   (exit $ac_status); }; }; then
23165   break
23166 else
23167   echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23169
23170 fi
23171 rm -f conftest.err conftest.$ac_objext
23172          CC="$CC -n32"
23173          rm -f conftest.$ac_objext
23174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23175   (eval $ac_compile) 2>conftest.er1
23176   ac_status=$?
23177   grep -v '^ *+' conftest.er1 >conftest.err
23178   rm -f conftest.er1
23179   cat conftest.err >&5
23180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181   (exit $ac_status); } &&
23182          { ac_try='test -z "$ac_c_werror_flag"
23183                          || test ! -s conftest.err'
23184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23185   (eval $ac_try) 2>&5
23186   ac_status=$?
23187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188   (exit $ac_status); }; } &&
23189          { ac_try='test -s conftest.$ac_objext'
23190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191   (eval $ac_try) 2>&5
23192   ac_status=$?
23193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); }; }; then
23195   ac_cv_sys_largefile_CC=' -n32'; break
23196 else
23197   echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23199
23200 fi
23201 rm -f conftest.err conftest.$ac_objext
23202          break
23203        done
23204        CC=$ac_save_CC
23205        rm -f conftest.$ac_ext
23206     fi
23207 fi
23208 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
23209 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
23210   if test "$ac_cv_sys_largefile_CC" != no; then
23211     CC=$CC$ac_cv_sys_largefile_CC
23212   fi
23213
23214   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23215 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
23216 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23217   echo $ECHO_N "(cached) $ECHO_C" >&6
23218 else
23219   while :; do
23220   ac_cv_sys_file_offset_bits=no
23221   cat >conftest.$ac_ext <<_ACEOF
23222 /* confdefs.h.  */
23223 _ACEOF
23224 cat confdefs.h >>conftest.$ac_ext
23225 cat >>conftest.$ac_ext <<_ACEOF
23226 /* end confdefs.h.  */
23227 #include <sys/types.h>
23228  /* Check that off_t can represent 2**63 - 1 correctly.
23229     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23230     since some C++ compilers masquerading as C compilers
23231     incorrectly reject 9223372036854775807.  */
23232 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23233   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23234                        && LARGE_OFF_T % 2147483647 == 1)
23235                       ? 1 : -1];
23236 int
23237 main ()
23238 {
23239
23240   ;
23241   return 0;
23242 }
23243 _ACEOF
23244 rm -f conftest.$ac_objext
23245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23246   (eval $ac_compile) 2>conftest.er1
23247   ac_status=$?
23248   grep -v '^ *+' conftest.er1 >conftest.err
23249   rm -f conftest.er1
23250   cat conftest.err >&5
23251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252   (exit $ac_status); } &&
23253          { ac_try='test -z "$ac_c_werror_flag"
23254                          || test ! -s conftest.err'
23255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256   (eval $ac_try) 2>&5
23257   ac_status=$?
23258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259   (exit $ac_status); }; } &&
23260          { ac_try='test -s conftest.$ac_objext'
23261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262   (eval $ac_try) 2>&5
23263   ac_status=$?
23264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265   (exit $ac_status); }; }; then
23266   break
23267 else
23268   echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23270
23271 fi
23272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23273   cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h.  */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h.  */
23279 #define _FILE_OFFSET_BITS 64
23280 #include <sys/types.h>
23281  /* Check that off_t can represent 2**63 - 1 correctly.
23282     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23283     since some C++ compilers masquerading as C compilers
23284     incorrectly reject 9223372036854775807.  */
23285 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23286   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23287                        && LARGE_OFF_T % 2147483647 == 1)
23288                       ? 1 : -1];
23289 int
23290 main ()
23291 {
23292
23293   ;
23294   return 0;
23295 }
23296 _ACEOF
23297 rm -f conftest.$ac_objext
23298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23299   (eval $ac_compile) 2>conftest.er1
23300   ac_status=$?
23301   grep -v '^ *+' conftest.er1 >conftest.err
23302   rm -f conftest.er1
23303   cat conftest.err >&5
23304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305   (exit $ac_status); } &&
23306          { ac_try='test -z "$ac_c_werror_flag"
23307                          || test ! -s conftest.err'
23308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309   (eval $ac_try) 2>&5
23310   ac_status=$?
23311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312   (exit $ac_status); }; } &&
23313          { ac_try='test -s conftest.$ac_objext'
23314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23315   (eval $ac_try) 2>&5
23316   ac_status=$?
23317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318   (exit $ac_status); }; }; then
23319   ac_cv_sys_file_offset_bits=64; break
23320 else
23321   echo "$as_me: failed program was:" >&5
23322 sed 's/^/| /' conftest.$ac_ext >&5
23323
23324 fi
23325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23326   break
23327 done
23328 fi
23329 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23330 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
23331 if test "$ac_cv_sys_file_offset_bits" != no; then
23332
23333 cat >>confdefs.h <<_ACEOF
23334 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23335 _ACEOF
23336
23337 fi
23338 rm -f conftest*
23339   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23340 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
23341 if test "${ac_cv_sys_large_files+set}" = set; then
23342   echo $ECHO_N "(cached) $ECHO_C" >&6
23343 else
23344   while :; do
23345   ac_cv_sys_large_files=no
23346   cat >conftest.$ac_ext <<_ACEOF
23347 /* confdefs.h.  */
23348 _ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h.  */
23352 #include <sys/types.h>
23353  /* Check that off_t can represent 2**63 - 1 correctly.
23354     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23355     since some C++ compilers masquerading as C compilers
23356     incorrectly reject 9223372036854775807.  */
23357 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23358   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23359                        && LARGE_OFF_T % 2147483647 == 1)
23360                       ? 1 : -1];
23361 int
23362 main ()
23363 {
23364
23365   ;
23366   return 0;
23367 }
23368 _ACEOF
23369 rm -f conftest.$ac_objext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23371   (eval $ac_compile) 2>conftest.er1
23372   ac_status=$?
23373   grep -v '^ *+' conftest.er1 >conftest.err
23374   rm -f conftest.er1
23375   cat conftest.err >&5
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); } &&
23378          { ac_try='test -z "$ac_c_werror_flag"
23379                          || test ! -s conftest.err'
23380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381   (eval $ac_try) 2>&5
23382   ac_status=$?
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); }; } &&
23385          { ac_try='test -s conftest.$ac_objext'
23386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387   (eval $ac_try) 2>&5
23388   ac_status=$?
23389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); }; }; then
23391   break
23392 else
23393   echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23395
23396 fi
23397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23398   cat >conftest.$ac_ext <<_ACEOF
23399 /* confdefs.h.  */
23400 _ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h.  */
23404 #define _LARGE_FILES 1
23405 #include <sys/types.h>
23406  /* Check that off_t can represent 2**63 - 1 correctly.
23407     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23408     since some C++ compilers masquerading as C compilers
23409     incorrectly reject 9223372036854775807.  */
23410 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23411   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23412                        && LARGE_OFF_T % 2147483647 == 1)
23413                       ? 1 : -1];
23414 int
23415 main ()
23416 {
23417
23418   ;
23419   return 0;
23420 }
23421 _ACEOF
23422 rm -f conftest.$ac_objext
23423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23424   (eval $ac_compile) 2>conftest.er1
23425   ac_status=$?
23426   grep -v '^ *+' conftest.er1 >conftest.err
23427   rm -f conftest.er1
23428   cat conftest.err >&5
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); } &&
23431          { ac_try='test -z "$ac_c_werror_flag"
23432                          || test ! -s conftest.err'
23433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434   (eval $ac_try) 2>&5
23435   ac_status=$?
23436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); }; } &&
23438          { ac_try='test -s conftest.$ac_objext'
23439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440   (eval $ac_try) 2>&5
23441   ac_status=$?
23442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443   (exit $ac_status); }; }; then
23444   ac_cv_sys_large_files=1; break
23445 else
23446   echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23448
23449 fi
23450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23451   break
23452 done
23453 fi
23454 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23455 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
23456 if test "$ac_cv_sys_large_files" != no; then
23457
23458 cat >>confdefs.h <<_ACEOF
23459 #define _LARGE_FILES $ac_cv_sys_large_files
23460 _ACEOF
23461
23462 fi
23463 rm -f conftest*
23464 fi
23465
23466 fi
23467
23468 # SunOS doesn't handle negative byte comparisons properly with +/- return
23469 echo "$as_me:$LINENO: checking for working memcmp" >&5
23470 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
23471 if test "${ac_cv_func_memcmp_working+set}" = set; then
23472   echo $ECHO_N "(cached) $ECHO_C" >&6
23473 else
23474   if test "$cross_compiling" = yes; then
23475   ac_cv_func_memcmp_working=no
23476 else
23477   cat >conftest.$ac_ext <<_ACEOF
23478 /* confdefs.h.  */
23479 _ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h.  */
23483 $ac_includes_default
23484 int
23485 main ()
23486 {
23487
23488   /* Some versions of memcmp are not 8-bit clean.  */
23489   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23490   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23491     exit (1);
23492
23493   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23494      or more and with at least one buffer not starting on a 4-byte boundary.
23495      William Lewis provided this test program.   */
23496   {
23497     char foo[21];
23498     char bar[21];
23499     int i;
23500     for (i = 0; i < 4; i++)
23501       {
23502         char *a = foo + i;
23503         char *b = bar + i;
23504         strcpy (a, "--------01111111");
23505         strcpy (b, "--------10000000");
23506         if (memcmp (a, b, 16) >= 0)
23507           exit (1);
23508       }
23509     exit (0);
23510   }
23511
23512   ;
23513   return 0;
23514 }
23515 _ACEOF
23516 rm -f conftest$ac_exeext
23517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23518   (eval $ac_link) 2>&5
23519   ac_status=$?
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523   (eval $ac_try) 2>&5
23524   ac_status=$?
23525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526   (exit $ac_status); }; }; then
23527   ac_cv_func_memcmp_working=yes
23528 else
23529   echo "$as_me: program exited with status $ac_status" >&5
23530 echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23532
23533 ( exit $ac_status )
23534 ac_cv_func_memcmp_working=no
23535 fi
23536 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23537 fi
23538 fi
23539 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
23540 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
23541 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
23542     "memcmp.$ac_objext"   | \
23543   *" memcmp.$ac_objext"   | \
23544     "memcmp.$ac_objext "* | \
23545   *" memcmp.$ac_objext "* ) ;;
23546   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
23547 esac
23548
23549
23550
23551
23552 # Select semaphore implementation type.
23553 if test "$PORTNAME" != "win32"; then
23554   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
23555
23556 cat >>confdefs.h <<\_ACEOF
23557 #define USE_NAMED_POSIX_SEMAPHORES 1
23558 _ACEOF
23559
23560     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
23561   else
23562     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
23563
23564 cat >>confdefs.h <<\_ACEOF
23565 #define USE_UNNAMED_POSIX_SEMAPHORES 1
23566 _ACEOF
23567
23568       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
23569     else
23570
23571 cat >>confdefs.h <<\_ACEOF
23572 #define USE_SYSV_SEMAPHORES 1
23573 _ACEOF
23574
23575       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
23576     fi
23577   fi
23578 else
23579
23580 cat >>confdefs.h <<\_ACEOF
23581 #define USE_WIN32_SEMAPHORES 1
23582 _ACEOF
23583
23584   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
23585 fi
23586
23587
23588 # Select shared-memory implementation type.
23589 if test "$PORTNAME" != "win32"; then
23590
23591 cat >>confdefs.h <<\_ACEOF
23592 #define USE_SYSV_SHARED_MEMORY 1
23593 _ACEOF
23594
23595   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
23596 else
23597
23598 cat >>confdefs.h <<\_ACEOF
23599 #define USE_WIN32_SHARED_MEMORY 1
23600 _ACEOF
23601
23602   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
23603 fi
23604
23605 # If not set in template file, set bytes to use libc memset()
23606 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
23607   MEMSET_LOOP_LIMIT=1024
23608 fi
23609
23610 cat >>confdefs.h <<_ACEOF
23611 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
23612 _ACEOF
23613
23614
23615
23616 if test "$enable_nls" = yes ; then
23617
23618   echo "$as_me:$LINENO: checking for library containing gettext" >&5
23619 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
23620 if test "${ac_cv_search_gettext+set}" = set; then
23621   echo $ECHO_N "(cached) $ECHO_C" >&6
23622 else
23623   ac_func_search_save_LIBS=$LIBS
23624 ac_cv_search_gettext=no
23625 cat >conftest.$ac_ext <<_ACEOF
23626 /* confdefs.h.  */
23627 _ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h.  */
23631
23632 /* Override any gcc2 internal prototype to avoid an error.  */
23633 #ifdef __cplusplus
23634 extern "C"
23635 #endif
23636 /* We use char because int might match the return type of a gcc2
23637    builtin and then its argument prototype would still apply.  */
23638 char gettext ();
23639 int
23640 main ()
23641 {
23642 gettext ();
23643   ;
23644   return 0;
23645 }
23646 _ACEOF
23647 rm -f conftest.$ac_objext conftest$ac_exeext
23648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23649   (eval $ac_link) 2>conftest.er1
23650   ac_status=$?
23651   grep -v '^ *+' conftest.er1 >conftest.err
23652   rm -f conftest.er1
23653   cat conftest.err >&5
23654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655   (exit $ac_status); } &&
23656          { ac_try='test -z "$ac_c_werror_flag"
23657                          || test ! -s conftest.err'
23658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659   (eval $ac_try) 2>&5
23660   ac_status=$?
23661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662   (exit $ac_status); }; } &&
23663          { ac_try='test -s conftest$ac_exeext'
23664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665   (eval $ac_try) 2>&5
23666   ac_status=$?
23667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668   (exit $ac_status); }; }; then
23669   ac_cv_search_gettext="none required"
23670 else
23671   echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23673
23674 fi
23675 rm -f conftest.err conftest.$ac_objext \
23676       conftest$ac_exeext conftest.$ac_ext
23677 if test "$ac_cv_search_gettext" = no; then
23678   for ac_lib in intl; do
23679     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23680     cat >conftest.$ac_ext <<_ACEOF
23681 /* confdefs.h.  */
23682 _ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h.  */
23686
23687 /* Override any gcc2 internal prototype to avoid an error.  */
23688 #ifdef __cplusplus
23689 extern "C"
23690 #endif
23691 /* We use char because int might match the return type of a gcc2
23692    builtin and then its argument prototype would still apply.  */
23693 char gettext ();
23694 int
23695 main ()
23696 {
23697 gettext ();
23698   ;
23699   return 0;
23700 }
23701 _ACEOF
23702 rm -f conftest.$ac_objext conftest$ac_exeext
23703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23704   (eval $ac_link) 2>conftest.er1
23705   ac_status=$?
23706   grep -v '^ *+' conftest.er1 >conftest.err
23707   rm -f conftest.er1
23708   cat conftest.err >&5
23709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710   (exit $ac_status); } &&
23711          { ac_try='test -z "$ac_c_werror_flag"
23712                          || test ! -s conftest.err'
23713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23714   (eval $ac_try) 2>&5
23715   ac_status=$?
23716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717   (exit $ac_status); }; } &&
23718          { ac_try='test -s conftest$ac_exeext'
23719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23720   (eval $ac_try) 2>&5
23721   ac_status=$?
23722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723   (exit $ac_status); }; }; then
23724   ac_cv_search_gettext="-l$ac_lib"
23725 break
23726 else
23727   echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23729
23730 fi
23731 rm -f conftest.err conftest.$ac_objext \
23732       conftest$ac_exeext conftest.$ac_ext
23733   done
23734 fi
23735 LIBS=$ac_func_search_save_LIBS
23736 fi
23737 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
23738 echo "${ECHO_T}$ac_cv_search_gettext" >&6
23739 if test "$ac_cv_search_gettext" != no; then
23740   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
23741
23742 else
23743   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
23744 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
23745    { (exit 1); exit 1; }; }
23746 fi
23747
23748   if test "${ac_cv_header_libintl_h+set}" = set; then
23749   echo "$as_me:$LINENO: checking for libintl.h" >&5
23750 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
23751 if test "${ac_cv_header_libintl_h+set}" = set; then
23752   echo $ECHO_N "(cached) $ECHO_C" >&6
23753 fi
23754 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23755 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
23756 else
23757   # Is the header compilable?
23758 echo "$as_me:$LINENO: checking libintl.h usability" >&5
23759 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
23760 cat >conftest.$ac_ext <<_ACEOF
23761 /* confdefs.h.  */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h.  */
23766 $ac_includes_default
23767 #include <libintl.h>
23768 _ACEOF
23769 rm -f conftest.$ac_objext
23770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23771   (eval $ac_compile) 2>conftest.er1
23772   ac_status=$?
23773   grep -v '^ *+' conftest.er1 >conftest.err
23774   rm -f conftest.er1
23775   cat conftest.err >&5
23776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777   (exit $ac_status); } &&
23778          { ac_try='test -z "$ac_c_werror_flag"
23779                          || test ! -s conftest.err'
23780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23781   (eval $ac_try) 2>&5
23782   ac_status=$?
23783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784   (exit $ac_status); }; } &&
23785          { ac_try='test -s conftest.$ac_objext'
23786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787   (eval $ac_try) 2>&5
23788   ac_status=$?
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); }; }; then
23791   ac_header_compiler=yes
23792 else
23793   echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23795
23796 ac_header_compiler=no
23797 fi
23798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23800 echo "${ECHO_T}$ac_header_compiler" >&6
23801
23802 # Is the header present?
23803 echo "$as_me:$LINENO: checking libintl.h presence" >&5
23804 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
23805 cat >conftest.$ac_ext <<_ACEOF
23806 /* confdefs.h.  */
23807 _ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h.  */
23811 #include <libintl.h>
23812 _ACEOF
23813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23814   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23815   ac_status=$?
23816   grep -v '^ *+' conftest.er1 >conftest.err
23817   rm -f conftest.er1
23818   cat conftest.err >&5
23819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820   (exit $ac_status); } >/dev/null; then
23821   if test -s conftest.err; then
23822     ac_cpp_err=$ac_c_preproc_warn_flag
23823     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23824   else
23825     ac_cpp_err=
23826   fi
23827 else
23828   ac_cpp_err=yes
23829 fi
23830 if test -z "$ac_cpp_err"; then
23831   ac_header_preproc=yes
23832 else
23833   echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23835
23836   ac_header_preproc=no
23837 fi
23838 rm -f conftest.err conftest.$ac_ext
23839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23840 echo "${ECHO_T}$ac_header_preproc" >&6
23841
23842 # So?  What about this header?
23843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23844   yes:no: )
23845     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23846 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23847     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
23848 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
23849     ac_header_preproc=yes
23850     ;;
23851   no:yes:* )
23852     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
23853 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
23854     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
23855 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
23856     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
23857 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
23858     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
23859 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23860     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
23861 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
23862     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
23863 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
23864     (
23865       cat <<\_ASBOX
23866 ## ---------------------------------------- ##
23867 ## Report this to pgsql-bugs@postgresql.org ##
23868 ## ---------------------------------------- ##
23869 _ASBOX
23870     ) |
23871       sed "s/^/$as_me: WARNING:     /" >&2
23872     ;;
23873 esac
23874 echo "$as_me:$LINENO: checking for libintl.h" >&5
23875 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
23876 if test "${ac_cv_header_libintl_h+set}" = set; then
23877   echo $ECHO_N "(cached) $ECHO_C" >&6
23878 else
23879   ac_cv_header_libintl_h=$ac_header_preproc
23880 fi
23881 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23882 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
23883
23884 fi
23885 if test $ac_cv_header_libintl_h = yes; then
23886   :
23887 else
23888   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
23889 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
23890    { (exit 1); exit 1; }; }
23891 fi
23892
23893
23894   for ac_prog in msgfmt
23895 do
23896   # Extract the first word of "$ac_prog", so it can be a program name with args.
23897 set dummy $ac_prog; ac_word=$2
23898 echo "$as_me:$LINENO: checking for $ac_word" >&5
23899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23900 if test "${ac_cv_prog_MSGFMT+set}" = set; then
23901   echo $ECHO_N "(cached) $ECHO_C" >&6
23902 else
23903   if test -n "$MSGFMT"; then
23904   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
23905 else
23906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23907 for as_dir in $PATH
23908 do
23909   IFS=$as_save_IFS
23910   test -z "$as_dir" && as_dir=.
23911   for ac_exec_ext in '' $ac_executable_extensions; do
23912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23913     ac_cv_prog_MSGFMT="$ac_prog"
23914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23915     break 2
23916   fi
23917 done
23918 done
23919
23920 fi
23921 fi
23922 MSGFMT=$ac_cv_prog_MSGFMT
23923 if test -n "$MSGFMT"; then
23924   echo "$as_me:$LINENO: result: $MSGFMT" >&5
23925 echo "${ECHO_T}$MSGFMT" >&6
23926 else
23927   echo "$as_me:$LINENO: result: no" >&5
23928 echo "${ECHO_T}no" >&6
23929 fi
23930
23931   test -n "$MSGFMT" && break
23932 done
23933
23934   if test -z "$MSGFMT"; then
23935     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
23936 echo "$as_me: error: msgfmt is required for NLS" >&2;}
23937    { (exit 1); exit 1; }; }
23938   fi
23939   for ac_prog in msgmerge
23940 do
23941   # Extract the first word of "$ac_prog", so it can be a program name with args.
23942 set dummy $ac_prog; ac_word=$2
23943 echo "$as_me:$LINENO: checking for $ac_word" >&5
23944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23945 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
23946   echo $ECHO_N "(cached) $ECHO_C" >&6
23947 else
23948   if test -n "$MSGMERGE"; then
23949   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
23950 else
23951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23952 for as_dir in $PATH
23953 do
23954   IFS=$as_save_IFS
23955   test -z "$as_dir" && as_dir=.
23956   for ac_exec_ext in '' $ac_executable_extensions; do
23957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23958     ac_cv_prog_MSGMERGE="$ac_prog"
23959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23960     break 2
23961   fi
23962 done
23963 done
23964
23965 fi
23966 fi
23967 MSGMERGE=$ac_cv_prog_MSGMERGE
23968 if test -n "$MSGMERGE"; then
23969   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
23970 echo "${ECHO_T}$MSGMERGE" >&6
23971 else
23972   echo "$as_me:$LINENO: result: no" >&5
23973 echo "${ECHO_T}no" >&6
23974 fi
23975
23976   test -n "$MSGMERGE" && break
23977 done
23978
23979   for ac_prog in xgettext
23980 do
23981   # Extract the first word of "$ac_prog", so it can be a program name with args.
23982 set dummy $ac_prog; ac_word=$2
23983 echo "$as_me:$LINENO: checking for $ac_word" >&5
23984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23985 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
23986   echo $ECHO_N "(cached) $ECHO_C" >&6
23987 else
23988   if test -n "$XGETTEXT"; then
23989   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
23990 else
23991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23992 for as_dir in $PATH
23993 do
23994   IFS=$as_save_IFS
23995   test -z "$as_dir" && as_dir=.
23996   for ac_exec_ext in '' $ac_executable_extensions; do
23997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23998     ac_cv_prog_XGETTEXT="$ac_prog"
23999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24000     break 2
24001   fi
24002 done
24003 done
24004
24005 fi
24006 fi
24007 XGETTEXT=$ac_cv_prog_XGETTEXT
24008 if test -n "$XGETTEXT"; then
24009   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24010 echo "${ECHO_T}$XGETTEXT" >&6
24011 else
24012   echo "$as_me:$LINENO: result: no" >&5
24013 echo "${ECHO_T}no" >&6
24014 fi
24015
24016   test -n "$XGETTEXT" && break
24017 done
24018
24019
24020   # Note: share/locale is always the default, independent of $datadir
24021   localedir='${prefix}/share/locale'
24022
24023
24024 fi
24025
24026 # Check for Tcl configuration script tclConfig.sh
24027 if test "$with_tcl" = yes; then
24028     for ac_prog in tclsh tcl
24029 do
24030   # Extract the first word of "$ac_prog", so it can be a program name with args.
24031 set dummy $ac_prog; ac_word=$2
24032 echo "$as_me:$LINENO: checking for $ac_word" >&5
24033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24034 if test "${ac_cv_path_TCLSH+set}" = set; then
24035   echo $ECHO_N "(cached) $ECHO_C" >&6
24036 else
24037   case $TCLSH in
24038   [\\/]* | ?:[\\/]*)
24039   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
24040   ;;
24041   *)
24042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24043 for as_dir in $PATH
24044 do
24045   IFS=$as_save_IFS
24046   test -z "$as_dir" && as_dir=.
24047   for ac_exec_ext in '' $ac_executable_extensions; do
24048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24049     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
24050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24051     break 2
24052   fi
24053 done
24054 done
24055
24056   ;;
24057 esac
24058 fi
24059 TCLSH=$ac_cv_path_TCLSH
24060
24061 if test -n "$TCLSH"; then
24062   echo "$as_me:$LINENO: result: $TCLSH" >&5
24063 echo "${ECHO_T}$TCLSH" >&6
24064 else
24065   echo "$as_me:$LINENO: result: no" >&5
24066 echo "${ECHO_T}no" >&6
24067 fi
24068
24069   test -n "$TCLSH" && break
24070 done
24071
24072 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
24073 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
24074 # Let user override test
24075 if test -z "$TCL_CONFIG_SH"; then
24076     pgac_test_dirs="$with_tclconfig"
24077
24078     set X $pgac_test_dirs; shift
24079     if test $# -eq 0; then
24080         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
24081 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
24082    { (exit 1); exit 1; }; }
24083         set X `echo 'puts $auto_path' | $TCLSH`; shift
24084     fi
24085
24086     for pgac_dir do
24087         if test -r "$pgac_dir/tclConfig.sh"; then
24088             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
24089             break
24090         fi
24091     done
24092 fi
24093
24094 if test -z "$TCL_CONFIG_SH"; then
24095     echo "$as_me:$LINENO: result: no" >&5
24096 echo "${ECHO_T}no" >&6
24097     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
24098 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
24099    { (exit 1); exit 1; }; }
24100 else
24101     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
24102 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
24103 fi
24104
24105
24106
24107     . "$TCL_CONFIG_SH"
24108 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
24109 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
24110 eval TCL_LIBS=\"$TCL_LIBS\"
24111 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
24112 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
24113
24114         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
24115     ac_save_CPPFLAGS=$CPPFLAGS
24116     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
24117     if test "${ac_cv_header_tcl_h+set}" = set; then
24118   echo "$as_me:$LINENO: checking for tcl.h" >&5
24119 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
24120 if test "${ac_cv_header_tcl_h+set}" = set; then
24121   echo $ECHO_N "(cached) $ECHO_C" >&6
24122 fi
24123 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24124 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
24125 else
24126   # Is the header compilable?
24127 echo "$as_me:$LINENO: checking tcl.h usability" >&5
24128 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
24129 cat >conftest.$ac_ext <<_ACEOF
24130 /* confdefs.h.  */
24131 _ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h.  */
24135 $ac_includes_default
24136 #include <tcl.h>
24137 _ACEOF
24138 rm -f conftest.$ac_objext
24139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24140   (eval $ac_compile) 2>conftest.er1
24141   ac_status=$?
24142   grep -v '^ *+' conftest.er1 >conftest.err
24143   rm -f conftest.er1
24144   cat conftest.err >&5
24145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146   (exit $ac_status); } &&
24147          { ac_try='test -z "$ac_c_werror_flag"
24148                          || test ! -s conftest.err'
24149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24150   (eval $ac_try) 2>&5
24151   ac_status=$?
24152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153   (exit $ac_status); }; } &&
24154          { ac_try='test -s conftest.$ac_objext'
24155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24156   (eval $ac_try) 2>&5
24157   ac_status=$?
24158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159   (exit $ac_status); }; }; then
24160   ac_header_compiler=yes
24161 else
24162   echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24164
24165 ac_header_compiler=no
24166 fi
24167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24169 echo "${ECHO_T}$ac_header_compiler" >&6
24170
24171 # Is the header present?
24172 echo "$as_me:$LINENO: checking tcl.h presence" >&5
24173 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
24174 cat >conftest.$ac_ext <<_ACEOF
24175 /* confdefs.h.  */
24176 _ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h.  */
24180 #include <tcl.h>
24181 _ACEOF
24182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24183   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24184   ac_status=$?
24185   grep -v '^ *+' conftest.er1 >conftest.err
24186   rm -f conftest.er1
24187   cat conftest.err >&5
24188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189   (exit $ac_status); } >/dev/null; then
24190   if test -s conftest.err; then
24191     ac_cpp_err=$ac_c_preproc_warn_flag
24192     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24193   else
24194     ac_cpp_err=
24195   fi
24196 else
24197   ac_cpp_err=yes
24198 fi
24199 if test -z "$ac_cpp_err"; then
24200   ac_header_preproc=yes
24201 else
24202   echo "$as_me: failed program was:" >&5
24203 sed 's/^/| /' conftest.$ac_ext >&5
24204
24205   ac_header_preproc=no
24206 fi
24207 rm -f conftest.err conftest.$ac_ext
24208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24209 echo "${ECHO_T}$ac_header_preproc" >&6
24210
24211 # So?  What about this header?
24212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24213   yes:no: )
24214     { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24215 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24216     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
24217 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
24218     ac_header_preproc=yes
24219     ;;
24220   no:yes:* )
24221     { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
24222 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
24223     { echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
24224 echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
24225     { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
24226 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
24227     { echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
24228 echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24229     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
24230 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
24231     { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
24232 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
24233     (
24234       cat <<\_ASBOX
24235 ## ---------------------------------------- ##
24236 ## Report this to pgsql-bugs@postgresql.org ##
24237 ## ---------------------------------------- ##
24238 _ASBOX
24239     ) |
24240       sed "s/^/$as_me: WARNING:     /" >&2
24241     ;;
24242 esac
24243 echo "$as_me:$LINENO: checking for tcl.h" >&5
24244 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
24245 if test "${ac_cv_header_tcl_h+set}" = set; then
24246   echo $ECHO_N "(cached) $ECHO_C" >&6
24247 else
24248   ac_cv_header_tcl_h=$ac_header_preproc
24249 fi
24250 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24251 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
24252
24253 fi
24254 if test $ac_cv_header_tcl_h = yes; then
24255   :
24256 else
24257   { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
24258 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
24259    { (exit 1); exit 1; }; }
24260 fi
24261
24262
24263     CPPFLAGS=$ac_save_CPPFLAGS
24264 fi
24265
24266 #
24267 # Check for DocBook and tools
24268 #
24269 for ac_prog in onsgmls nsgmls
24270 do
24271   # Extract the first word of "$ac_prog", so it can be a program name with args.
24272 set dummy $ac_prog; ac_word=$2
24273 echo "$as_me:$LINENO: checking for $ac_word" >&5
24274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24275 if test "${ac_cv_prog_NSGMLS+set}" = set; then
24276   echo $ECHO_N "(cached) $ECHO_C" >&6
24277 else
24278   if test -n "$NSGMLS"; then
24279   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
24280 else
24281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24282 for as_dir in $PATH
24283 do
24284   IFS=$as_save_IFS
24285   test -z "$as_dir" && as_dir=.
24286   for ac_exec_ext in '' $ac_executable_extensions; do
24287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24288     ac_cv_prog_NSGMLS="$ac_prog"
24289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24290     break 2
24291   fi
24292 done
24293 done
24294
24295 fi
24296 fi
24297 NSGMLS=$ac_cv_prog_NSGMLS
24298 if test -n "$NSGMLS"; then
24299   echo "$as_me:$LINENO: result: $NSGMLS" >&5
24300 echo "${ECHO_T}$NSGMLS" >&6
24301 else
24302   echo "$as_me:$LINENO: result: no" >&5
24303 echo "${ECHO_T}no" >&6
24304 fi
24305
24306   test -n "$NSGMLS" && break
24307 done
24308
24309 for ac_prog in openjade jade
24310 do
24311   # Extract the first word of "$ac_prog", so it can be a program name with args.
24312 set dummy $ac_prog; ac_word=$2
24313 echo "$as_me:$LINENO: checking for $ac_word" >&5
24314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24315 if test "${ac_cv_prog_JADE+set}" = set; then
24316   echo $ECHO_N "(cached) $ECHO_C" >&6
24317 else
24318   if test -n "$JADE"; then
24319   ac_cv_prog_JADE="$JADE" # Let the user override the test.
24320 else
24321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24322 for as_dir in $PATH
24323 do
24324   IFS=$as_save_IFS
24325   test -z "$as_dir" && as_dir=.
24326   for ac_exec_ext in '' $ac_executable_extensions; do
24327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24328     ac_cv_prog_JADE="$ac_prog"
24329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24330     break 2
24331   fi
24332 done
24333 done
24334
24335 fi
24336 fi
24337 JADE=$ac_cv_prog_JADE
24338 if test -n "$JADE"; then
24339   echo "$as_me:$LINENO: result: $JADE" >&5
24340 echo "${ECHO_T}$JADE" >&6
24341 else
24342   echo "$as_me:$LINENO: result: no" >&5
24343 echo "${ECHO_T}no" >&6
24344 fi
24345
24346   test -n "$JADE" && break
24347 done
24348
24349
24350 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
24351 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
24352 if test "${pgac_cv_check_docbook+set}" = set; then
24353   echo $ECHO_N "(cached) $ECHO_C" >&6
24354 else
24355   cat >conftest.sgml <<EOF
24356 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
24357 <book>
24358  <title>test</title>
24359  <chapter>
24360   <title>random</title>
24361    <sect1>
24362     <title>testsect</title>
24363     <para>text</para>
24364   </sect1>
24365  </chapter>
24366 </book>
24367 EOF
24368
24369 pgac_cv_check_docbook=no
24370
24371 if test -n "$NSGMLS"; then
24372   $NSGMLS -s conftest.sgml 1>&5 2>&1
24373   if test $? -eq 0; then
24374     pgac_cv_check_docbook=yes
24375   fi
24376 fi
24377 rm -f conftest.sgml
24378 fi
24379 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
24380 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
24381
24382 have_docbook=$pgac_cv_check_docbook
24383
24384
24385 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
24386 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
24387 if test "${pgac_cv_path_stylesheets+set}" = set; then
24388   echo $ECHO_N "(cached) $ECHO_C" >&6
24389 else
24390   if test -n "$DOCBOOKSTYLE"; then
24391   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
24392 else
24393   for pgac_prefix in /usr /usr/local /opt; do
24394     for pgac_infix in share lib; do
24395       for pgac_postfix in \
24396         sgml/stylesheets/nwalsh-modular \
24397         sgml/stylesheets/docbook \
24398         sgml/stylesheets/dsssl/docbook \
24399         sgml/docbook-dsssl \
24400         sgml/docbook/dsssl/modular \
24401         sgml/docbook/stylesheet/dsssl/modular \
24402         sgml/docbook/dsssl-stylesheets
24403       do
24404         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
24405         if test -r "$pgac_candidate/html/docbook.dsl" \
24406            && test -r "$pgac_candidate/print/docbook.dsl"
24407         then
24408           pgac_cv_path_stylesheets=$pgac_candidate
24409           break 3
24410         fi
24411       done
24412     done
24413   done
24414 fi
24415 fi
24416
24417 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
24418
24419 if test -n "$DOCBOOKSTYLE"; then
24420   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
24421 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
24422 else
24423   echo "$as_me:$LINENO: result: no" >&5
24424 echo "${ECHO_T}no" >&6
24425 fi
24426 if test -n "$DOCBOOKSTYLE"; then
24427   for ac_prog in collateindex.pl
24428 do
24429   # Extract the first word of "$ac_prog", so it can be a program name with args.
24430 set dummy $ac_prog; ac_word=$2
24431 echo "$as_me:$LINENO: checking for $ac_word" >&5
24432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24433 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
24434   echo $ECHO_N "(cached) $ECHO_C" >&6
24435 else
24436   case $COLLATEINDEX in
24437   [\\/]* | ?:[\\/]*)
24438   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
24439   ;;
24440   *)
24441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24442 for as_dir in $DOCBOOKSTYLE/bin $PATH
24443 do
24444   IFS=$as_save_IFS
24445   test -z "$as_dir" && as_dir=.
24446   for ac_exec_ext in '' $ac_executable_extensions; do
24447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24448     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
24449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24450     break 2
24451   fi
24452 done
24453 done
24454
24455   ;;
24456 esac
24457 fi
24458 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
24459
24460 if test -n "$COLLATEINDEX"; then
24461   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
24462 echo "${ECHO_T}$COLLATEINDEX" >&6
24463 else
24464   echo "$as_me:$LINENO: result: no" >&5
24465 echo "${ECHO_T}no" >&6
24466 fi
24467
24468   test -n "$COLLATEINDEX" && break
24469 done
24470
24471 else
24472   for ac_prog in collateindex.pl
24473 do
24474   # Extract the first word of "$ac_prog", so it can be a program name with args.
24475 set dummy $ac_prog; ac_word=$2
24476 echo "$as_me:$LINENO: checking for $ac_word" >&5
24477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24478 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
24479   echo $ECHO_N "(cached) $ECHO_C" >&6
24480 else
24481   case $COLLATEINDEX in
24482   [\\/]* | ?:[\\/]*)
24483   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
24484   ;;
24485   *)
24486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24487 for as_dir in $PATH
24488 do
24489   IFS=$as_save_IFS
24490   test -z "$as_dir" && as_dir=.
24491   for ac_exec_ext in '' $ac_executable_extensions; do
24492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24493     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
24494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24495     break 2
24496   fi
24497 done
24498 done
24499
24500   ;;
24501 esac
24502 fi
24503 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
24504
24505 if test -n "$COLLATEINDEX"; then
24506   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
24507 echo "${ECHO_T}$COLLATEINDEX" >&6
24508 else
24509   echo "$as_me:$LINENO: result: no" >&5
24510 echo "${ECHO_T}no" >&6
24511 fi
24512
24513   test -n "$COLLATEINDEX" && break
24514 done
24515
24516 fi
24517 for ac_prog in sgmlspl
24518 do
24519   # Extract the first word of "$ac_prog", so it can be a program name with args.
24520 set dummy $ac_prog; ac_word=$2
24521 echo "$as_me:$LINENO: checking for $ac_word" >&5
24522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24523 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
24524   echo $ECHO_N "(cached) $ECHO_C" >&6
24525 else
24526   if test -n "$SGMLSPL"; then
24527   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
24528 else
24529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24530 for as_dir in $PATH
24531 do
24532   IFS=$as_save_IFS
24533   test -z "$as_dir" && as_dir=.
24534   for ac_exec_ext in '' $ac_executable_extensions; do
24535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24536     ac_cv_prog_SGMLSPL="$ac_prog"
24537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24538     break 2
24539   fi
24540 done
24541 done
24542
24543 fi
24544 fi
24545 SGMLSPL=$ac_cv_prog_SGMLSPL
24546 if test -n "$SGMLSPL"; then
24547   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
24548 echo "${ECHO_T}$SGMLSPL" >&6
24549 else
24550   echo "$as_me:$LINENO: result: no" >&5
24551 echo "${ECHO_T}no" >&6
24552 fi
24553
24554   test -n "$SGMLSPL" && break
24555 done
24556
24557
24558 # Thread testing
24559
24560 # We have to run the thread test near the end so we have all our symbols
24561 # defined.  Cross compiling throws a warning.
24562 #
24563 if test "$enable_thread_safety_force" = yes; then
24564 if test "$PORTNAME" != "win32"
24565 then
24566   { echo "$as_me:$LINENO: WARNING:
24567 *** Skipping thread test program.  --enable-thread-safety-force was used.
24568 *** Run the program in src/test/thread on the your machine and add proper
24569 *** locking function calls to your applications to guarantee thread safety.
24570 " >&5
24571 echo "$as_me: WARNING:
24572 *** Skipping thread test program.  --enable-thread-safety-force was used.
24573 *** Run the program in src/test/thread on the your machine and add proper
24574 *** locking function calls to your applications to guarantee thread safety.
24575 " >&2;}
24576 else
24577 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
24578 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
24579 fi
24580 elif test "$enable_thread_safety" = yes; then
24581 if test "$PORTNAME" != "win32"
24582 then
24583 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
24584 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
24585
24586 _CFLAGS="$CFLAGS"
24587 _LIBS="$LIBS"
24588 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
24589 LIBS="$LIBS $PTHREAD_LIBS"
24590 if test "$cross_compiling" = yes; then
24591   echo "$as_me:$LINENO: result: maybe" >&5
24592 echo "${ECHO_T}maybe" >&6
24593   { echo "$as_me:$LINENO: WARNING:
24594 *** Skipping thread test program because of cross-compile build.
24595 *** Run the program in src/test/thread on the target machine.
24596 " >&5
24597 echo "$as_me: WARNING:
24598 *** Skipping thread test program because of cross-compile build.
24599 *** Run the program in src/test/thread on the target machine.
24600 " >&2;}
24601 else
24602   cat >conftest.$ac_ext <<_ACEOF
24603 /* confdefs.h.  */
24604 _ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h.  */
24608 #include "$srcdir/src/test/thread/thread_test.c"
24609 _ACEOF
24610 rm -f conftest$ac_exeext
24611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24612   (eval $ac_link) 2>&5
24613   ac_status=$?
24614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617   (eval $ac_try) 2>&5
24618   ac_status=$?
24619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620   (exit $ac_status); }; }; then
24621   echo "$as_me:$LINENO: result: yes" >&5
24622 echo "${ECHO_T}yes" >&6
24623 else
24624   echo "$as_me: program exited with status $ac_status" >&5
24625 echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24627
24628 ( exit $ac_status )
24629 echo "$as_me:$LINENO: result: no" >&5
24630 echo "${ECHO_T}no" >&6
24631   { { echo "$as_me:$LINENO: error: thread test program failed
24632 This platform is not thread-safe.  Check the file 'config.log'for the
24633 exact reason.
24634
24635 You can use the configure option --enable-thread-safety-force to force
24636 threads to be enabled.  But you must then run the program in
24637 src/test/thread and add locking function calls to your applications to
24638 guarantee thread safety." >&5
24639 echo "$as_me: error: thread test program failed
24640 This platform is not thread-safe.  Check the file 'config.log'for the
24641 exact reason.
24642
24643 You can use the configure option --enable-thread-safety-force to force
24644 threads to be enabled.  But you must then run the program in
24645 src/test/thread and add locking function calls to your applications to
24646 guarantee thread safety." >&2;}
24647    { (exit 1); exit 1; }; }
24648 fi
24649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24650 fi
24651 CFLAGS="$_CFLAGS"
24652 LIBS="$_LIBS"
24653 else
24654 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
24655 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
24656 fi
24657 fi
24658
24659 # prepare build tree if outside source tree
24660 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
24661 # Note 2: /bin/pwd might be better than shell's built-in at getting
24662 #         a symlink-free name.
24663 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
24664   vpath_build=no
24665 else
24666   vpath_build=yes
24667   if test "$no_create" != yes; then
24668     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
24669     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
24670     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
24671       || { { echo "$as_me:$LINENO: error: failed" >&5
24672 echo "$as_me: error: failed" >&2;}
24673    { (exit 1); exit 1; }; }
24674     echo "$as_me:$LINENO: result: done" >&5
24675 echo "${ECHO_T}done" >&6
24676   fi
24677 fi
24678
24679
24680
24681                     ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
24682
24683
24684                                                             ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
24685
24686
24687 if test "$PORTNAME" = "win32"; then
24688           ac_config_commands="$ac_config_commands check_win32_symlinks"
24689
24690 fi
24691
24692           ac_config_headers="$ac_config_headers src/include/pg_config.h"
24693
24694
24695           ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
24696
24697
24698 cat >confcache <<\_ACEOF
24699 # This file is a shell script that caches the results of configure
24700 # tests run on this system so they can be shared between configure
24701 # scripts and configure runs, see configure's option --config-cache.
24702 # It is not useful on other systems.  If it contains results you don't
24703 # want to keep, you may remove or edit it.
24704 #
24705 # config.status only pays attention to the cache file if you give it
24706 # the --recheck option to rerun configure.
24707 #
24708 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24709 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24710 # following values.
24711
24712 _ACEOF
24713
24714 # The following way of writing the cache mishandles newlines in values,
24715 # but we know of no workaround that is simple, portable, and efficient.
24716 # So, don't put newlines in cache variables' values.
24717 # Ultrix sh set writes to stderr and can't be redirected directly,
24718 # and sets the high bit in the cache file unless we assign to the vars.
24719 {
24720   (set) 2>&1 |
24721     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24722     *ac_space=\ *)
24723       # `set' does not quote correctly, so add quotes (double-quote
24724       # substitution turns \\\\ into \\, and sed turns \\ into \).
24725       sed -n \
24726         "s/'/'\\\\''/g;
24727           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24728       ;;
24729     *)
24730       # `set' quotes correctly as required by POSIX, so do not add quotes.
24731       sed -n \
24732         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24733       ;;
24734     esac;
24735 } |
24736   sed '
24737      t clear
24738      : clear
24739      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24740      t end
24741      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24742      : end' >>confcache
24743 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24744   if test -w $cache_file; then
24745     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24746     cat confcache >$cache_file
24747   else
24748     echo "not updating unwritable cache $cache_file"
24749   fi
24750 fi
24751 rm -f confcache
24752
24753 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24754 # Let make expand exec_prefix.
24755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24756
24757 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24758 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24759 # trailing colons and then remove the whole line if VPATH becomes empty
24760 # (actually we leave an empty line to preserve line numbers).
24761 if test "x$srcdir" = x.; then
24762   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24763 s/:*\$(srcdir):*/:/;
24764 s/:*\${srcdir}:*/:/;
24765 s/:*@srcdir@:*/:/;
24766 s/^\([^=]*=[     ]*\):*/\1/;
24767 s/:*$//;
24768 s/^[^=]*=[       ]*$//;
24769 }'
24770 fi
24771
24772 DEFS=-DHAVE_CONFIG_H
24773
24774 ac_libobjs=
24775 ac_ltlibobjs=
24776 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24777   # 1. Remove the extension, and $U if already installed.
24778   ac_i=`echo "$ac_i" |
24779          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24780   # 2. Add them.
24781   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24782   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24783 done
24784 LIBOBJS=$ac_libobjs
24785
24786 LTLIBOBJS=$ac_ltlibobjs
24787
24788
24789
24790 : ${CONFIG_STATUS=./config.status}
24791 ac_clean_files_save=$ac_clean_files
24792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24793 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24794 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24795 cat >$CONFIG_STATUS <<_ACEOF
24796 #! $SHELL
24797 # Generated by $as_me.
24798 # Run this file to recreate the current configuration.
24799 # Compiler output produced by configure, useful for debugging
24800 # configure, is in config.log if it exists.
24801
24802 debug=false
24803 ac_cs_recheck=false
24804 ac_cs_silent=false
24805 SHELL=\${CONFIG_SHELL-$SHELL}
24806 _ACEOF
24807
24808 cat >>$CONFIG_STATUS <<\_ACEOF
24809 ## --------------------- ##
24810 ## M4sh Initialization.  ##
24811 ## --------------------- ##
24812
24813 # Be Bourne compatible
24814 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24815   emulate sh
24816   NULLCMD=:
24817   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24818   # is contrary to our usage.  Disable this feature.
24819   alias -g '${1+"$@"}'='"$@"'
24820 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24821   set -o posix
24822 fi
24823 DUALCASE=1; export DUALCASE # for MKS sh
24824
24825 # Support unset when possible.
24826 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24827   as_unset=unset
24828 else
24829   as_unset=false
24830 fi
24831
24832
24833 # Work around bugs in pre-3.0 UWIN ksh.
24834 $as_unset ENV MAIL MAILPATH
24835 PS1='$ '
24836 PS2='> '
24837 PS4='+ '
24838
24839 # NLS nuisances.
24840 for as_var in \
24841   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24842   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24843   LC_TELEPHONE LC_TIME
24844 do
24845   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24846     eval $as_var=C; export $as_var
24847   else
24848     $as_unset $as_var
24849   fi
24850 done
24851
24852 # Required to use basename.
24853 if expr a : '\(a\)' >/dev/null 2>&1; then
24854   as_expr=expr
24855 else
24856   as_expr=false
24857 fi
24858
24859 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24860   as_basename=basename
24861 else
24862   as_basename=false
24863 fi
24864
24865
24866 # Name of the executable.
24867 as_me=`$as_basename "$0" ||
24868 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24869          X"$0" : 'X\(//\)$' \| \
24870          X"$0" : 'X\(/\)$' \| \
24871          .     : '\(.\)' 2>/dev/null ||
24872 echo X/"$0" |
24873     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24874           /^X\/\(\/\/\)$/{ s//\1/; q; }
24875           /^X\/\(\/\).*/{ s//\1/; q; }
24876           s/.*/./; q'`
24877
24878
24879 # PATH needs CR, and LINENO needs CR and PATH.
24880 # Avoid depending upon Character Ranges.
24881 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24882 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24883 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24884 as_cr_digits='0123456789'
24885 as_cr_alnum=$as_cr_Letters$as_cr_digits
24886
24887 # The user is always right.
24888 if test "${PATH_SEPARATOR+set}" != set; then
24889   echo "#! /bin/sh" >conf$$.sh
24890   echo  "exit 0"   >>conf$$.sh
24891   chmod +x conf$$.sh
24892   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24893     PATH_SEPARATOR=';'
24894   else
24895     PATH_SEPARATOR=:
24896   fi
24897   rm -f conf$$.sh
24898 fi
24899
24900
24901   as_lineno_1=$LINENO
24902   as_lineno_2=$LINENO
24903   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24904   test "x$as_lineno_1" != "x$as_lineno_2" &&
24905   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24906   # Find who we are.  Look in the path if we contain no path at all
24907   # relative or not.
24908   case $0 in
24909     *[\\/]* ) as_myself=$0 ;;
24910     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24911 for as_dir in $PATH
24912 do
24913   IFS=$as_save_IFS
24914   test -z "$as_dir" && as_dir=.
24915   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24916 done
24917
24918        ;;
24919   esac
24920   # We did not find ourselves, most probably we were run as `sh COMMAND'
24921   # in which case we are not to be found in the path.
24922   if test "x$as_myself" = x; then
24923     as_myself=$0
24924   fi
24925   if test ! -f "$as_myself"; then
24926     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24927 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24928    { (exit 1); exit 1; }; }
24929   fi
24930   case $CONFIG_SHELL in
24931   '')
24932     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24933 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24934 do
24935   IFS=$as_save_IFS
24936   test -z "$as_dir" && as_dir=.
24937   for as_base in sh bash ksh sh5; do
24938          case $as_dir in
24939          /*)
24940            if ("$as_dir/$as_base" -c '
24941   as_lineno_1=$LINENO
24942   as_lineno_2=$LINENO
24943   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24944   test "x$as_lineno_1" != "x$as_lineno_2" &&
24945   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24946              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24947              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24948              CONFIG_SHELL=$as_dir/$as_base
24949              export CONFIG_SHELL
24950              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24951            fi;;
24952          esac
24953        done
24954 done
24955 ;;
24956   esac
24957
24958   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24959   # uniformly replaced by the line number.  The first 'sed' inserts a
24960   # line-number line before each line; the second 'sed' does the real
24961   # work.  The second script uses 'N' to pair each line-number line
24962   # with the numbered line, and appends trailing '-' during
24963   # substitution so that $LINENO is not a special case at line end.
24964   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24965   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24966   sed '=' <$as_myself |
24967     sed '
24968       N
24969       s,$,-,
24970       : loop
24971       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24972       t loop
24973       s,-$,,
24974       s,^['$as_cr_digits']*\n,,
24975     ' >$as_me.lineno &&
24976   chmod +x $as_me.lineno ||
24977     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24978 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24979    { (exit 1); exit 1; }; }
24980
24981   # Don't try to exec as it changes $[0], causing all sort of problems
24982   # (the dirname of $[0] is not the place where we might find the
24983   # original and so on.  Autoconf is especially sensible to this).
24984   . ./$as_me.lineno
24985   # Exit status is that of the last command.
24986   exit
24987 }
24988
24989
24990 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24991   *c*,-n*) ECHO_N= ECHO_C='
24992 ' ECHO_T='      ' ;;
24993   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24994   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24995 esac
24996
24997 if expr a : '\(a\)' >/dev/null 2>&1; then
24998   as_expr=expr
24999 else
25000   as_expr=false
25001 fi
25002
25003 rm -f conf$$ conf$$.exe conf$$.file
25004 echo >conf$$.file
25005 if ln -s conf$$.file conf$$ 2>/dev/null; then
25006   # We could just check for DJGPP; but this test a) works b) is more generic
25007   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25008   if test -f conf$$.exe; then
25009     # Don't use ln at all; we don't have any links
25010     as_ln_s='cp -p'
25011   else
25012     as_ln_s='ln -s'
25013   fi
25014 elif ln conf$$.file conf$$ 2>/dev/null; then
25015   as_ln_s=ln
25016 else
25017   as_ln_s='cp -p'
25018 fi
25019 rm -f conf$$ conf$$.exe conf$$.file
25020
25021 if mkdir -p . 2>/dev/null; then
25022   as_mkdir_p=:
25023 else
25024   test -d ./-p && rmdir ./-p
25025   as_mkdir_p=false
25026 fi
25027
25028 as_executable_p="test -f"
25029
25030 # Sed expression to map a string onto a valid CPP name.
25031 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25032
25033 # Sed expression to map a string onto a valid variable name.
25034 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25035
25036
25037 # IFS
25038 # We need space, tab and new line, in precisely that order.
25039 as_nl='
25040 '
25041 IFS="   $as_nl"
25042
25043 # CDPATH.
25044 $as_unset CDPATH
25045
25046 exec 6>&1
25047
25048 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25049 # report actual input values of CONFIG_FILES etc. instead of their
25050 # values after options handling.  Logging --version etc. is OK.
25051 exec 5>>config.log
25052 {
25053   echo
25054   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25055 ## Running $as_me. ##
25056 _ASBOX
25057 } >&5
25058 cat >&5 <<_CSEOF
25059
25060 This file was extended by PostgreSQL $as_me 8.3beta1, which was
25061 generated by GNU Autoconf 2.59.  Invocation command line was
25062
25063   CONFIG_FILES    = $CONFIG_FILES
25064   CONFIG_HEADERS  = $CONFIG_HEADERS
25065   CONFIG_LINKS    = $CONFIG_LINKS
25066   CONFIG_COMMANDS = $CONFIG_COMMANDS
25067   $ $0 $@
25068
25069 _CSEOF
25070 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25071 echo >&5
25072 _ACEOF
25073
25074 # Files that config.status was made for.
25075 if test -n "$ac_config_files"; then
25076   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25077 fi
25078
25079 if test -n "$ac_config_headers"; then
25080   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25081 fi
25082
25083 if test -n "$ac_config_links"; then
25084   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25085 fi
25086
25087 if test -n "$ac_config_commands"; then
25088   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25089 fi
25090
25091 cat >>$CONFIG_STATUS <<\_ACEOF
25092
25093 ac_cs_usage="\
25094 \`$as_me' instantiates files from templates according to the
25095 current configuration.
25096
25097 Usage: $0 [OPTIONS] [FILE]...
25098
25099   -h, --help       print this help, then exit
25100   -V, --version    print version number, then exit
25101   -q, --quiet      do not print progress messages
25102   -d, --debug      don't remove temporary files
25103       --recheck    update $as_me by reconfiguring in the same conditions
25104   --file=FILE[:TEMPLATE]
25105                    instantiate the configuration file FILE
25106   --header=FILE[:TEMPLATE]
25107                    instantiate the configuration header FILE
25108
25109 Configuration files:
25110 $config_files
25111
25112 Configuration headers:
25113 $config_headers
25114
25115 Configuration links:
25116 $config_links
25117
25118 Configuration commands:
25119 $config_commands
25120
25121 Report bugs to <bug-autoconf@gnu.org>."
25122 _ACEOF
25123
25124 cat >>$CONFIG_STATUS <<_ACEOF
25125 ac_cs_version="\\
25126 PostgreSQL config.status 8.3beta1
25127 configured by $0, generated by GNU Autoconf 2.59,
25128   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25129
25130 Copyright (C) 2003 Free Software Foundation, Inc.
25131 This config.status script is free software; the Free Software Foundation
25132 gives unlimited permission to copy, distribute and modify it."
25133 srcdir=$srcdir
25134 _ACEOF
25135
25136 cat >>$CONFIG_STATUS <<\_ACEOF
25137 # If no file are specified by the user, then we need to provide default
25138 # value.  By we need to know if files were specified by the user.
25139 ac_need_defaults=:
25140 while test $# != 0
25141 do
25142   case $1 in
25143   --*=*)
25144     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25145     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25146     ac_shift=:
25147     ;;
25148   -*)
25149     ac_option=$1
25150     ac_optarg=$2
25151     ac_shift=shift
25152     ;;
25153   *) # This is not an option, so the user has probably given explicit
25154      # arguments.
25155      ac_option=$1
25156      ac_need_defaults=false;;
25157   esac
25158
25159   case $ac_option in
25160   # Handling of the options.
25161 _ACEOF
25162 cat >>$CONFIG_STATUS <<\_ACEOF
25163   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25164     ac_cs_recheck=: ;;
25165   --version | --vers* | -V )
25166     echo "$ac_cs_version"; exit 0 ;;
25167   --he | --h)
25168     # Conflict between --help and --header
25169     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25170 Try \`$0 --help' for more information." >&5
25171 echo "$as_me: error: ambiguous option: $1
25172 Try \`$0 --help' for more information." >&2;}
25173    { (exit 1); exit 1; }; };;
25174   --help | --hel | -h )
25175     echo "$ac_cs_usage"; exit 0 ;;
25176   --debug | --d* | -d )
25177     debug=: ;;
25178   --file | --fil | --fi | --f )
25179     $ac_shift
25180     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25181     ac_need_defaults=false;;
25182   --header | --heade | --head | --hea )
25183     $ac_shift
25184     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25185     ac_need_defaults=false;;
25186   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25187   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25188     ac_cs_silent=: ;;
25189
25190   # This is an error.
25191   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25192 Try \`$0 --help' for more information." >&5
25193 echo "$as_me: error: unrecognized option: $1
25194 Try \`$0 --help' for more information." >&2;}
25195    { (exit 1); exit 1; }; } ;;
25196
25197   *) ac_config_targets="$ac_config_targets $1" ;;
25198
25199   esac
25200   shift
25201 done
25202
25203 ac_configure_extra_args=
25204
25205 if $ac_cs_silent; then
25206   exec 6>/dev/null
25207   ac_configure_extra_args="$ac_configure_extra_args --silent"
25208 fi
25209
25210 _ACEOF
25211 cat >>$CONFIG_STATUS <<_ACEOF
25212 if \$ac_cs_recheck; then
25213   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25214   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25215 fi
25216
25217 _ACEOF
25218
25219
25220
25221
25222
25223 cat >>$CONFIG_STATUS <<\_ACEOF
25224 for ac_config_target in $ac_config_targets
25225 do
25226   case "$ac_config_target" in
25227   # Handling of arguments.
25228   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
25229   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
25230   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
25231   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
25232   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
25233   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
25234   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
25235   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
25236   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
25237   "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
25238   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
25239   "src/interfaces/ecpg/include/ecpg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
25240   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25241 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25242    { (exit 1); exit 1; }; };;
25243   esac
25244 done
25245
25246 # If the user did not use the arguments to specify the items to instantiate,
25247 # then the envvar interface is used.  Set only those that are not.
25248 # We use the long form for the default assignment because of an extremely
25249 # bizarre bug on SunOS 4.1.3.
25250 if $ac_need_defaults; then
25251   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25252   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25253   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25254   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25255 fi
25256
25257 # Have a temporary directory for convenience.  Make it in the build tree
25258 # simply because there is no reason to put it here, and in addition,
25259 # creating and moving files from /tmp can sometimes cause problems.
25260 # Create a temporary directory, and hook for its removal unless debugging.
25261 $debug ||
25262 {
25263   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25264   trap '{ (exit 1); exit 1; }' 1 2 13 15
25265 }
25266
25267 # Create a (secure) tmp directory for tmp files.
25268
25269 {
25270   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25271   test -n "$tmp" && test -d "$tmp"
25272 }  ||
25273 {
25274   tmp=./confstat$$-$RANDOM
25275   (umask 077 && mkdir $tmp)
25276 } ||
25277 {
25278    echo "$me: cannot create a temporary directory in ." >&2
25279    { (exit 1); exit 1; }
25280 }
25281
25282 _ACEOF
25283
25284 cat >>$CONFIG_STATUS <<_ACEOF
25285
25286 #
25287 # CONFIG_FILES section.
25288 #
25289
25290 # No need to generate the scripts if there are no CONFIG_FILES.
25291 # This happens for instance when ./config.status config.h
25292 if test -n "\$CONFIG_FILES"; then
25293   # Protect against being on the right side of a sed subst in config.status.
25294   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25295    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25296 s,@SHELL@,$SHELL,;t t
25297 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25298 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25299 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25300 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25301 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25302 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25303 s,@exec_prefix@,$exec_prefix,;t t
25304 s,@prefix@,$prefix,;t t
25305 s,@program_transform_name@,$program_transform_name,;t t
25306 s,@bindir@,$bindir,;t t
25307 s,@sbindir@,$sbindir,;t t
25308 s,@libexecdir@,$libexecdir,;t t
25309 s,@datadir@,$datadir,;t t
25310 s,@sysconfdir@,$sysconfdir,;t t
25311 s,@sharedstatedir@,$sharedstatedir,;t t
25312 s,@localstatedir@,$localstatedir,;t t
25313 s,@libdir@,$libdir,;t t
25314 s,@includedir@,$includedir,;t t
25315 s,@oldincludedir@,$oldincludedir,;t t
25316 s,@infodir@,$infodir,;t t
25317 s,@mandir@,$mandir,;t t
25318 s,@build_alias@,$build_alias,;t t
25319 s,@host_alias@,$host_alias,;t t
25320 s,@target_alias@,$target_alias,;t t
25321 s,@DEFS@,$DEFS,;t t
25322 s,@ECHO_C@,$ECHO_C,;t t
25323 s,@ECHO_N@,$ECHO_N,;t t
25324 s,@ECHO_T@,$ECHO_T,;t t
25325 s,@LIBS@,$LIBS,;t t
25326 s,@configure_args@,$configure_args,;t t
25327 s,@build@,$build,;t t
25328 s,@build_cpu@,$build_cpu,;t t
25329 s,@build_vendor@,$build_vendor,;t t
25330 s,@build_os@,$build_os,;t t
25331 s,@host@,$host,;t t
25332 s,@host_cpu@,$host_cpu,;t t
25333 s,@host_vendor@,$host_vendor,;t t
25334 s,@host_os@,$host_os,;t t
25335 s,@PORTNAME@,$PORTNAME,;t t
25336 s,@docdir@,$docdir,;t t
25337 s,@enable_nls@,$enable_nls,;t t
25338 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
25339 s,@default_port@,$default_port,;t t
25340 s,@enable_shared@,$enable_shared,;t t
25341 s,@enable_rpath@,$enable_rpath,;t t
25342 s,@enable_debug@,$enable_debug,;t t
25343 s,@enable_profiling@,$enable_profiling,;t t
25344 s,@DTRACE@,$DTRACE,;t t
25345 s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
25346 s,@enable_dtrace@,$enable_dtrace,;t t
25347 s,@CC@,$CC,;t t
25348 s,@CFLAGS@,$CFLAGS,;t t
25349 s,@LDFLAGS@,$LDFLAGS,;t t
25350 s,@CPPFLAGS@,$CPPFLAGS,;t t
25351 s,@ac_ct_CC@,$ac_ct_CC,;t t
25352 s,@EXEEXT@,$EXEEXT,;t t
25353 s,@OBJEXT@,$OBJEXT,;t t
25354 s,@CPP@,$CPP,;t t
25355 s,@GCC@,$GCC,;t t
25356 s,@TAS@,$TAS,;t t
25357 s,@autodepend@,$autodepend,;t t
25358 s,@INCLUDES@,$INCLUDES,;t t
25359 s,@enable_thread_safety@,$enable_thread_safety,;t t
25360 s,@with_tcl@,$with_tcl,;t t
25361 s,@with_perl@,$with_perl,;t t
25362 s,@with_python@,$with_python,;t t
25363 s,@with_gssapi@,$with_gssapi,;t t
25364 s,@with_krb5@,$with_krb5,;t t
25365 s,@krb_srvtab@,$krb_srvtab,;t t
25366 s,@with_pam@,$with_pam,;t t
25367 s,@with_ldap@,$with_ldap,;t t
25368 s,@with_bonjour@,$with_bonjour,;t t
25369 s,@with_openssl@,$with_openssl,;t t
25370 s,@with_ossp_uuid@,$with_ossp_uuid,;t t
25371 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
25372 s,@with_libxml@,$with_libxml,;t t
25373 s,@with_libxslt@,$with_libxslt,;t t
25374 s,@with_system_tzdata@,$with_system_tzdata,;t t
25375 s,@with_zlib@,$with_zlib,;t t
25376 s,@EGREP@,$EGREP,;t t
25377 s,@ELF_SYS@,$ELF_SYS,;t t
25378 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
25379 s,@LD@,$LD,;t t
25380 s,@with_gnu_ld@,$with_gnu_ld,;t t
25381 s,@ld_R_works@,$ld_R_works,;t t
25382 s,@RANLIB@,$RANLIB,;t t
25383 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25384 s,@STRIP@,$STRIP,;t t
25385 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25386 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
25387 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
25388 s,@TAR@,$TAR,;t t
25389 s,@LN_S@,$LN_S,;t t
25390 s,@AWK@,$AWK,;t t
25391 s,@YACC@,$YACC,;t t
25392 s,@YFLAGS@,$YFLAGS,;t t
25393 s,@FLEX@,$FLEX,;t t
25394 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
25395 s,@PERL@,$PERL,;t t
25396 s,@perl_archlibexp@,$perl_archlibexp,;t t
25397 s,@perl_privlibexp@,$perl_privlibexp,;t t
25398 s,@perl_useshrplib@,$perl_useshrplib,;t t
25399 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
25400 s,@PYTHON@,$PYTHON,;t t
25401 s,@python_version@,$python_version,;t t
25402 s,@python_configdir@,$python_configdir,;t t
25403 s,@python_includespec@,$python_includespec,;t t
25404 s,@python_libdir@,$python_libdir,;t t
25405 s,@python_libspec@,$python_libspec,;t t
25406 s,@python_additional_libs@,$python_additional_libs,;t t
25407 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
25408 s,@LIBOBJS@,$LIBOBJS,;t t
25409 s,@acx_pthread_config@,$acx_pthread_config,;t t
25410 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
25411 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
25412 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
25413 s,@LDAP_LIBS_FE@,$LDAP_LIBS_FE,;t t
25414 s,@LDAP_LIBS_BE@,$LDAP_LIBS_BE,;t t
25415 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
25416 s,@MSGFMT@,$MSGFMT,;t t
25417 s,@MSGMERGE@,$MSGMERGE,;t t
25418 s,@XGETTEXT@,$XGETTEXT,;t t
25419 s,@localedir@,$localedir,;t t
25420 s,@TCLSH@,$TCLSH,;t t
25421 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
25422 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
25423 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
25424 s,@TCL_LIBS@,$TCL_LIBS,;t t
25425 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
25426 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
25427 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
25428 s,@NSGMLS@,$NSGMLS,;t t
25429 s,@JADE@,$JADE,;t t
25430 s,@have_docbook@,$have_docbook,;t t
25431 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
25432 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
25433 s,@SGMLSPL@,$SGMLSPL,;t t
25434 s,@vpath_build@,$vpath_build,;t t
25435 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25436 CEOF
25437
25438 _ACEOF
25439
25440   cat >>$CONFIG_STATUS <<\_ACEOF
25441   # Split the substitutions into bite-sized pieces for seds with
25442   # small command number limits, like on Digital OSF/1 and HP-UX.
25443   ac_max_sed_lines=48
25444   ac_sed_frag=1 # Number of current file.
25445   ac_beg=1 # First line for current file.
25446   ac_end=$ac_max_sed_lines # Line after last line for current file.
25447   ac_more_lines=:
25448   ac_sed_cmds=
25449   while $ac_more_lines; do
25450     if test $ac_beg -gt 1; then
25451       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25452     else
25453       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25454     fi
25455     if test ! -s $tmp/subs.frag; then
25456       ac_more_lines=false
25457     else
25458       # The purpose of the label and of the branching condition is to
25459       # speed up the sed processing (if there are no `@' at all, there
25460       # is no need to browse any of the substitutions).
25461       # These are the two extra sed commands mentioned above.
25462       (echo ':t
25463   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25464       if test -z "$ac_sed_cmds"; then
25465         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25466       else
25467         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25468       fi
25469       ac_sed_frag=`expr $ac_sed_frag + 1`
25470       ac_beg=$ac_end
25471       ac_end=`expr $ac_end + $ac_max_sed_lines`
25472     fi
25473   done
25474   if test -z "$ac_sed_cmds"; then
25475     ac_sed_cmds=cat
25476   fi
25477 fi # test -n "$CONFIG_FILES"
25478
25479 _ACEOF
25480 cat >>$CONFIG_STATUS <<\_ACEOF
25481 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25482   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25483   case $ac_file in
25484   - | *:- | *:-:* ) # input from stdin
25485         cat >$tmp/stdin
25486         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25487         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25488   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25489         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25490   * )   ac_file_in=$ac_file.in ;;
25491   esac
25492
25493   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25494   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25495 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25496          X"$ac_file" : 'X\(//\)[^/]' \| \
25497          X"$ac_file" : 'X\(//\)$' \| \
25498          X"$ac_file" : 'X\(/\)' \| \
25499          .     : '\(.\)' 2>/dev/null ||
25500 echo X"$ac_file" |
25501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25502           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25503           /^X\(\/\/\)$/{ s//\1/; q; }
25504           /^X\(\/\).*/{ s//\1/; q; }
25505           s/.*/./; q'`
25506   { if $as_mkdir_p; then
25507     mkdir -p "$ac_dir"
25508   else
25509     as_dir="$ac_dir"
25510     as_dirs=
25511     while test ! -d "$as_dir"; do
25512       as_dirs="$as_dir $as_dirs"
25513       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25515          X"$as_dir" : 'X\(//\)[^/]' \| \
25516          X"$as_dir" : 'X\(//\)$' \| \
25517          X"$as_dir" : 'X\(/\)' \| \
25518          .     : '\(.\)' 2>/dev/null ||
25519 echo X"$as_dir" |
25520     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25521           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25522           /^X\(\/\/\)$/{ s//\1/; q; }
25523           /^X\(\/\).*/{ s//\1/; q; }
25524           s/.*/./; q'`
25525     done
25526     test ! -n "$as_dirs" || mkdir $as_dirs
25527   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25528 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25529    { (exit 1); exit 1; }; }; }
25530
25531   ac_builddir=.
25532
25533 if test "$ac_dir" != .; then
25534   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25535   # A "../" for each directory in $ac_dir_suffix.
25536   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25537 else
25538   ac_dir_suffix= ac_top_builddir=
25539 fi
25540
25541 case $srcdir in
25542   .)  # No --srcdir option.  We are building in place.
25543     ac_srcdir=.
25544     if test -z "$ac_top_builddir"; then
25545        ac_top_srcdir=.
25546     else
25547        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25548     fi ;;
25549   [\\/]* | ?:[\\/]* )  # Absolute path.
25550     ac_srcdir=$srcdir$ac_dir_suffix;
25551     ac_top_srcdir=$srcdir ;;
25552   *) # Relative path.
25553     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25554     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25555 esac
25556
25557 # Do not use `cd foo && pwd` to compute absolute paths, because
25558 # the directories may not exist.
25559 case `pwd` in
25560 .) ac_abs_builddir="$ac_dir";;
25561 *)
25562   case "$ac_dir" in
25563   .) ac_abs_builddir=`pwd`;;
25564   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25565   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25566   esac;;
25567 esac
25568 case $ac_abs_builddir in
25569 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25570 *)
25571   case ${ac_top_builddir}. in
25572   .) ac_abs_top_builddir=$ac_abs_builddir;;
25573   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25574   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25575   esac;;
25576 esac
25577 case $ac_abs_builddir in
25578 .) ac_abs_srcdir=$ac_srcdir;;
25579 *)
25580   case $ac_srcdir in
25581   .) ac_abs_srcdir=$ac_abs_builddir;;
25582   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25583   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25584   esac;;
25585 esac
25586 case $ac_abs_builddir in
25587 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25588 *)
25589   case $ac_top_srcdir in
25590   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25591   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25592   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25593   esac;;
25594 esac
25595
25596
25597
25598   if test x"$ac_file" != x-; then
25599     { echo "$as_me:$LINENO: creating $ac_file" >&5
25600 echo "$as_me: creating $ac_file" >&6;}
25601     rm -f "$ac_file"
25602   fi
25603   # Let's still pretend it is `configure' which instantiates (i.e., don't
25604   # use $as_me), people would be surprised to read:
25605   #    /* config.h.  Generated by config.status.  */
25606   if test x"$ac_file" = x-; then
25607     configure_input=
25608   else
25609     configure_input="$ac_file.  "
25610   fi
25611   configure_input=$configure_input"Generated from `echo $ac_file_in |
25612                                      sed 's,.*/,,'` by configure."
25613
25614   # First look for the input files in the build tree, otherwise in the
25615   # src tree.
25616   ac_file_inputs=`IFS=:
25617     for f in $ac_file_in; do
25618       case $f in
25619       -) echo $tmp/stdin ;;
25620       [\\/$]*)
25621          # Absolute (can't be DOS-style, as IFS=:)
25622          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25623 echo "$as_me: error: cannot find input file: $f" >&2;}
25624    { (exit 1); exit 1; }; }
25625          echo "$f";;
25626       *) # Relative
25627          if test -f "$f"; then
25628            # Build tree
25629            echo "$f"
25630          elif test -f "$srcdir/$f"; then
25631            # Source tree
25632            echo "$srcdir/$f"
25633          else
25634            # /dev/null tree
25635            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25636 echo "$as_me: error: cannot find input file: $f" >&2;}
25637    { (exit 1); exit 1; }; }
25638          fi;;
25639       esac
25640     done` || { (exit 1); exit 1; }
25641 _ACEOF
25642 cat >>$CONFIG_STATUS <<_ACEOF
25643   sed "$ac_vpsub
25644 $extrasub
25645 _ACEOF
25646 cat >>$CONFIG_STATUS <<\_ACEOF
25647 :t
25648 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25649 s,@configure_input@,$configure_input,;t t
25650 s,@srcdir@,$ac_srcdir,;t t
25651 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25652 s,@top_srcdir@,$ac_top_srcdir,;t t
25653 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25654 s,@builddir@,$ac_builddir,;t t
25655 s,@abs_builddir@,$ac_abs_builddir,;t t
25656 s,@top_builddir@,$ac_top_builddir,;t t
25657 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25658 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25659   rm -f $tmp/stdin
25660   if test x"$ac_file" != x-; then
25661     mv $tmp/out $ac_file
25662   else
25663     cat $tmp/out
25664     rm -f $tmp/out
25665   fi
25666
25667 done
25668 _ACEOF
25669 cat >>$CONFIG_STATUS <<\_ACEOF
25670
25671 #
25672 # CONFIG_HEADER section.
25673 #
25674
25675 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25676 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25677 #
25678 # ac_d sets the value in "#define NAME VALUE" lines.
25679 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25680 ac_dB='[         ].*$,\1#\2'
25681 ac_dC=' '
25682 ac_dD=',;t'
25683 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25684 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25685 ac_uB='$,\1#\2define\3'
25686 ac_uC=' '
25687 ac_uD=',;t'
25688
25689 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25690   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25691   case $ac_file in
25692   - | *:- | *:-:* ) # input from stdin
25693         cat >$tmp/stdin
25694         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25695         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25696   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25697         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25698   * )   ac_file_in=$ac_file.in ;;
25699   esac
25700
25701   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25702 echo "$as_me: creating $ac_file" >&6;}
25703
25704   # First look for the input files in the build tree, otherwise in the
25705   # src tree.
25706   ac_file_inputs=`IFS=:
25707     for f in $ac_file_in; do
25708       case $f in
25709       -) echo $tmp/stdin ;;
25710       [\\/$]*)
25711          # Absolute (can't be DOS-style, as IFS=:)
25712          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25713 echo "$as_me: error: cannot find input file: $f" >&2;}
25714    { (exit 1); exit 1; }; }
25715          # Do quote $f, to prevent DOS paths from being IFS'd.
25716          echo "$f";;
25717       *) # Relative
25718          if test -f "$f"; then
25719            # Build tree
25720            echo "$f"
25721          elif test -f "$srcdir/$f"; then
25722            # Source tree
25723            echo "$srcdir/$f"
25724          else
25725            # /dev/null tree
25726            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25727 echo "$as_me: error: cannot find input file: $f" >&2;}
25728    { (exit 1); exit 1; }; }
25729          fi;;
25730       esac
25731     done` || { (exit 1); exit 1; }
25732   # Remove the trailing spaces.
25733   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25734
25735 _ACEOF
25736
25737 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25738 # `conftest.undefs', that substitutes the proper values into
25739 # config.h.in to produce config.h.  The first handles `#define'
25740 # templates, and the second `#undef' templates.
25741 # And first: Protect against being on the right side of a sed subst in
25742 # config.status.  Protect against being in an unquoted here document
25743 # in config.status.
25744 rm -f conftest.defines conftest.undefs
25745 # Using a here document instead of a string reduces the quoting nightmare.
25746 # Putting comments in sed scripts is not portable.
25747 #
25748 # `end' is used to avoid that the second main sed command (meant for
25749 # 0-ary CPP macros) applies to n-ary macro definitions.
25750 # See the Autoconf documentation for `clear'.
25751 cat >confdef2sed.sed <<\_ACEOF
25752 s/[\\&,]/\\&/g
25753 s,[\\$`],\\&,g
25754 t clear
25755 : clear
25756 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25757 t end
25758 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25759 : end
25760 _ACEOF
25761 # If some macros were called several times there might be several times
25762 # the same #defines, which is useless.  Nevertheless, we may not want to
25763 # sort them, since we want the *last* AC-DEFINE to be honored.
25764 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25765 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25766 rm -f confdef2sed.sed
25767
25768 # This sed command replaces #undef with comments.  This is necessary, for
25769 # example, in the case of _POSIX_SOURCE, which is predefined and required
25770 # on some systems where configure will not decide to define it.
25771 cat >>conftest.undefs <<\_ACEOF
25772 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25773 _ACEOF
25774
25775 # Break up conftest.defines because some shells have a limit on the size
25776 # of here documents, and old seds have small limits too (100 cmds).
25777 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25778 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25779 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25780 echo '  :' >>$CONFIG_STATUS
25781 rm -f conftest.tail
25782 while grep . conftest.defines >/dev/null
25783 do
25784   # Write a limited-size here document to $tmp/defines.sed.
25785   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25786   # Speed up: don't consider the non `#define' lines.
25787   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25788   # Work around the forget-to-reset-the-flag bug.
25789   echo 't clr' >>$CONFIG_STATUS
25790   echo ': clr' >>$CONFIG_STATUS
25791   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25792   echo 'CEOF
25793   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25794   rm -f $tmp/in
25795   mv $tmp/out $tmp/in
25796 ' >>$CONFIG_STATUS
25797   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25798   rm -f conftest.defines
25799   mv conftest.tail conftest.defines
25800 done
25801 rm -f conftest.defines
25802 echo '  fi # grep' >>$CONFIG_STATUS
25803 echo >>$CONFIG_STATUS
25804
25805 # Break up conftest.undefs because some shells have a limit on the size
25806 # of here documents, and old seds have small limits too (100 cmds).
25807 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25808 rm -f conftest.tail
25809 while grep . conftest.undefs >/dev/null
25810 do
25811   # Write a limited-size here document to $tmp/undefs.sed.
25812   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25813   # Speed up: don't consider the non `#undef'
25814   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25815   # Work around the forget-to-reset-the-flag bug.
25816   echo 't clr' >>$CONFIG_STATUS
25817   echo ': clr' >>$CONFIG_STATUS
25818   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25819   echo 'CEOF
25820   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25821   rm -f $tmp/in
25822   mv $tmp/out $tmp/in
25823 ' >>$CONFIG_STATUS
25824   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25825   rm -f conftest.undefs
25826   mv conftest.tail conftest.undefs
25827 done
25828 rm -f conftest.undefs
25829
25830 cat >>$CONFIG_STATUS <<\_ACEOF
25831   # Let's still pretend it is `configure' which instantiates (i.e., don't
25832   # use $as_me), people would be surprised to read:
25833   #    /* config.h.  Generated by config.status.  */
25834   if test x"$ac_file" = x-; then
25835     echo "/* Generated by configure.  */" >$tmp/config.h
25836   else
25837     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25838   fi
25839   cat $tmp/in >>$tmp/config.h
25840   rm -f $tmp/in
25841   if test x"$ac_file" != x-; then
25842     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25843       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25844 echo "$as_me: $ac_file is unchanged" >&6;}
25845     else
25846       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25848          X"$ac_file" : 'X\(//\)[^/]' \| \
25849          X"$ac_file" : 'X\(//\)$' \| \
25850          X"$ac_file" : 'X\(/\)' \| \
25851          .     : '\(.\)' 2>/dev/null ||
25852 echo X"$ac_file" |
25853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25854           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25855           /^X\(\/\/\)$/{ s//\1/; q; }
25856           /^X\(\/\).*/{ s//\1/; q; }
25857           s/.*/./; q'`
25858       { if $as_mkdir_p; then
25859     mkdir -p "$ac_dir"
25860   else
25861     as_dir="$ac_dir"
25862     as_dirs=
25863     while test ! -d "$as_dir"; do
25864       as_dirs="$as_dir $as_dirs"
25865       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25867          X"$as_dir" : 'X\(//\)[^/]' \| \
25868          X"$as_dir" : 'X\(//\)$' \| \
25869          X"$as_dir" : 'X\(/\)' \| \
25870          .     : '\(.\)' 2>/dev/null ||
25871 echo X"$as_dir" |
25872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25874           /^X\(\/\/\)$/{ s//\1/; q; }
25875           /^X\(\/\).*/{ s//\1/; q; }
25876           s/.*/./; q'`
25877     done
25878     test ! -n "$as_dirs" || mkdir $as_dirs
25879   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25881    { (exit 1); exit 1; }; }; }
25882
25883       rm -f $ac_file
25884       mv $tmp/config.h $ac_file
25885     fi
25886   else
25887     cat $tmp/config.h
25888     rm -f $tmp/config.h
25889   fi
25890   # Run the commands associated with the file.
25891   case $ac_file in
25892     src/include/pg_config.h )
25893 # Update timestamp for pg_config.h (see Makefile.global)
25894 echo >src/include/stamp-h
25895  ;;
25896   esac
25897 done
25898 _ACEOF
25899 cat >>$CONFIG_STATUS <<\_ACEOF
25900
25901 #
25902 # CONFIG_LINKS section.
25903 #
25904
25905 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25906   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25907   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25908
25909   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25910 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25911
25912   if test ! -r $srcdir/$ac_source; then
25913     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25914 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25915    { (exit 1); exit 1; }; }
25916   fi
25917   rm -f $ac_dest
25918
25919   # Make relative symlinks.
25920   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25921 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25922          X"$ac_dest" : 'X\(//\)[^/]' \| \
25923          X"$ac_dest" : 'X\(//\)$' \| \
25924          X"$ac_dest" : 'X\(/\)' \| \
25925          .     : '\(.\)' 2>/dev/null ||
25926 echo X"$ac_dest" |
25927     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25928           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25929           /^X\(\/\/\)$/{ s//\1/; q; }
25930           /^X\(\/\).*/{ s//\1/; q; }
25931           s/.*/./; q'`
25932   { if $as_mkdir_p; then
25933     mkdir -p "$ac_dest_dir"
25934   else
25935     as_dir="$ac_dest_dir"
25936     as_dirs=
25937     while test ! -d "$as_dir"; do
25938       as_dirs="$as_dir $as_dirs"
25939       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25941          X"$as_dir" : 'X\(//\)[^/]' \| \
25942          X"$as_dir" : 'X\(//\)$' \| \
25943          X"$as_dir" : 'X\(/\)' \| \
25944          .     : '\(.\)' 2>/dev/null ||
25945 echo X"$as_dir" |
25946     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25947           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25948           /^X\(\/\/\)$/{ s//\1/; q; }
25949           /^X\(\/\).*/{ s//\1/; q; }
25950           s/.*/./; q'`
25951     done
25952     test ! -n "$as_dirs" || mkdir $as_dirs
25953   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25954 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25955    { (exit 1); exit 1; }; }; }
25956
25957   ac_builddir=.
25958
25959 if test "$ac_dest_dir" != .; then
25960   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25961   # A "../" for each directory in $ac_dir_suffix.
25962   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25963 else
25964   ac_dir_suffix= ac_top_builddir=
25965 fi
25966
25967 case $srcdir in
25968   .)  # No --srcdir option.  We are building in place.
25969     ac_srcdir=.
25970     if test -z "$ac_top_builddir"; then
25971        ac_top_srcdir=.
25972     else
25973        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25974     fi ;;
25975   [\\/]* | ?:[\\/]* )  # Absolute path.
25976     ac_srcdir=$srcdir$ac_dir_suffix;
25977     ac_top_srcdir=$srcdir ;;
25978   *) # Relative path.
25979     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25980     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25981 esac
25982
25983 # Do not use `cd foo && pwd` to compute absolute paths, because
25984 # the directories may not exist.
25985 case `pwd` in
25986 .) ac_abs_builddir="$ac_dest_dir";;
25987 *)
25988   case "$ac_dest_dir" in
25989   .) ac_abs_builddir=`pwd`;;
25990   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25991   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25992   esac;;
25993 esac
25994 case $ac_abs_builddir in
25995 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25996 *)
25997   case ${ac_top_builddir}. in
25998   .) ac_abs_top_builddir=$ac_abs_builddir;;
25999   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26000   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26001   esac;;
26002 esac
26003 case $ac_abs_builddir in
26004 .) ac_abs_srcdir=$ac_srcdir;;
26005 *)
26006   case $ac_srcdir in
26007   .) ac_abs_srcdir=$ac_abs_builddir;;
26008   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26009   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26010   esac;;
26011 esac
26012 case $ac_abs_builddir in
26013 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26014 *)
26015   case $ac_top_srcdir in
26016   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26017   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26018   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26019   esac;;
26020 esac
26021
26022
26023   case $srcdir in
26024   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26025       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
26026   esac
26027
26028   # Try a symlink, then a hard link, then a copy.
26029   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26030     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26031     cp -p $srcdir/$ac_source $ac_dest ||
26032     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26033 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
26034    { (exit 1); exit 1; }; }
26035 done
26036 _ACEOF
26037 cat >>$CONFIG_STATUS <<\_ACEOF
26038
26039 #
26040 # CONFIG_COMMANDS section.
26041 #
26042 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26043   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26044   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26045   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26046 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26047          X"$ac_dest" : 'X\(//\)[^/]' \| \
26048          X"$ac_dest" : 'X\(//\)$' \| \
26049          X"$ac_dest" : 'X\(/\)' \| \
26050          .     : '\(.\)' 2>/dev/null ||
26051 echo X"$ac_dest" |
26052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26053           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26054           /^X\(\/\/\)$/{ s//\1/; q; }
26055           /^X\(\/\).*/{ s//\1/; q; }
26056           s/.*/./; q'`
26057   { if $as_mkdir_p; then
26058     mkdir -p "$ac_dir"
26059   else
26060     as_dir="$ac_dir"
26061     as_dirs=
26062     while test ! -d "$as_dir"; do
26063       as_dirs="$as_dir $as_dirs"
26064       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26065 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26066          X"$as_dir" : 'X\(//\)[^/]' \| \
26067          X"$as_dir" : 'X\(//\)$' \| \
26068          X"$as_dir" : 'X\(/\)' \| \
26069          .     : '\(.\)' 2>/dev/null ||
26070 echo X"$as_dir" |
26071     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26072           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26073           /^X\(\/\/\)$/{ s//\1/; q; }
26074           /^X\(\/\).*/{ s//\1/; q; }
26075           s/.*/./; q'`
26076     done
26077     test ! -n "$as_dirs" || mkdir $as_dirs
26078   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26079 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26080    { (exit 1); exit 1; }; }; }
26081
26082   ac_builddir=.
26083
26084 if test "$ac_dir" != .; then
26085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26086   # A "../" for each directory in $ac_dir_suffix.
26087   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26088 else
26089   ac_dir_suffix= ac_top_builddir=
26090 fi
26091
26092 case $srcdir in
26093   .)  # No --srcdir option.  We are building in place.
26094     ac_srcdir=.
26095     if test -z "$ac_top_builddir"; then
26096        ac_top_srcdir=.
26097     else
26098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26099     fi ;;
26100   [\\/]* | ?:[\\/]* )  # Absolute path.
26101     ac_srcdir=$srcdir$ac_dir_suffix;
26102     ac_top_srcdir=$srcdir ;;
26103   *) # Relative path.
26104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26106 esac
26107
26108 # Do not use `cd foo && pwd` to compute absolute paths, because
26109 # the directories may not exist.
26110 case `pwd` in
26111 .) ac_abs_builddir="$ac_dir";;
26112 *)
26113   case "$ac_dir" in
26114   .) ac_abs_builddir=`pwd`;;
26115   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26116   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26117   esac;;
26118 esac
26119 case $ac_abs_builddir in
26120 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26121 *)
26122   case ${ac_top_builddir}. in
26123   .) ac_abs_top_builddir=$ac_abs_builddir;;
26124   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26125   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26126   esac;;
26127 esac
26128 case $ac_abs_builddir in
26129 .) ac_abs_srcdir=$ac_srcdir;;
26130 *)
26131   case $ac_srcdir in
26132   .) ac_abs_srcdir=$ac_abs_builddir;;
26133   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26134   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26135   esac;;
26136 esac
26137 case $ac_abs_builddir in
26138 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26139 *)
26140   case $ac_top_srcdir in
26141   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26142   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26143   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26144   esac;;
26145 esac
26146
26147
26148   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26149 echo "$as_me: executing $ac_dest commands" >&6;}
26150   case $ac_dest in
26151     check_win32_symlinks )
26152 # Links sometimes fail undetected on Mingw -
26153 # so here we detect it and warn the user
26154 for FILE in $CONFIG_LINKS
26155  do
26156         # test -e works for symlinks in the MinGW console
26157         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
26158 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
26159  done
26160  ;;
26161   esac
26162 done
26163 _ACEOF
26164
26165 cat >>$CONFIG_STATUS <<\_ACEOF
26166
26167 { (exit 0); exit 0; }
26168 _ACEOF
26169 chmod +x $CONFIG_STATUS
26170 ac_clean_files=$ac_clean_files_save
26171
26172
26173 # configure is writing to config.log, and then calls config.status.
26174 # config.status does its own redirection, appending to config.log.
26175 # Unfortunately, on DOS this fails, as config.log is still kept open
26176 # by configure, so config.status won't be able to write to it; its
26177 # output is simply discarded.  So we exec the FD to /dev/null,
26178 # effectively closing config.log, so it can be properly (re)opened and
26179 # appended to by config.status.  When coming back to configure, we
26180 # need to make the FD available again.
26181 if test "$no_create" != yes; then
26182   ac_cs_success=:
26183   ac_config_status_args=
26184   test "$silent" = yes &&
26185     ac_config_status_args="$ac_config_status_args --quiet"
26186   exec 5>/dev/null
26187   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26188   exec 5>>config.log
26189   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26190   # would make configure fail if this is the last instruction.
26191   $ac_cs_success || { (exit 1); exit 1; }
26192 fi
26193
26194
26195 # Warn about unknown options
26196 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
26197   for pgac_arg in $pgac_args with_gnu_ld; do
26198     if test "$pgac_var" = "$pgac_arg"; then
26199       continue 2
26200     fi
26201   done
26202   pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
26203   { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
26204 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
26205 done